@openchamber/web 1.11.3 → 1.11.4
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.
- package/dist/assets/{JsonTreeView-4KDa8lGo.js → JsonTreeView-YQcDxcEK.js} +1 -1
- package/dist/assets/MarkdownRendererImpl-h6uFn35l.js +6 -0
- package/dist/assets/{MultiRunWindow-BBmUkZot.js → MultiRunWindow-BXZBRXf8.js} +1 -1
- package/dist/assets/{OnboardingScreen-CmfCd-NF.js → OnboardingScreen-AGACaSpL.js} +2 -2
- package/dist/assets/{SettingsWindow-Cju1ws5b.js → SettingsWindow-DbIrbkwH.js} +1 -1
- package/dist/assets/TerminalView-ClACTVsY.js +1 -0
- package/dist/assets/{ToolOutputDialog-v9jBbw8P.js → ToolOutputDialog-C9M1QAxc.js} +1 -1
- package/dist/assets/{es-jann2TW8.js → es-nmO_Sy-z.js} +4 -4
- package/dist/assets/index-BWxr-Sly.css +1 -0
- package/dist/assets/{ko-BI4PbFHS.js → ko-DgzWO49N.js} +4 -4
- package/dist/assets/{main-d-4uuoz4.js → main-BG6I-VaN.js} +2 -2
- package/dist/assets/main-DLomPR7m.js +227 -0
- package/dist/assets/miniChat-ata1oHqJ.js +2 -0
- package/dist/assets/{modelPrefsAutoSave-bm-G98P3.js → modelPrefsAutoSave-D4IOtl1d.js} +97 -98
- package/dist/assets/{pl-eehxx-j8.js → pl-CdOdV9f8.js} +3 -3
- package/dist/assets/{pt-BR-D34YtT2a.js → pt-BR-gg2QcqbT.js} +5 -5
- package/dist/assets/renderElectronMiniChatApp-F0L1QF1k.js +2 -0
- package/dist/assets/{uk-Ce5zhj4w.js → uk-CrnDWkt0.js} +4 -4
- package/dist/assets/{vendor-.bun-CJSRTa27.js → vendor-.bun-BIr1wmDP.js} +2 -10
- package/dist/assets/{zh-CN-DOs9jvCa.js → zh-CN-CWGQwc9R.js} +5 -5
- package/dist/index.html +4 -4
- package/dist/mini-chat.html +4 -4
- package/package.json +1 -1
- package/server/lib/opencode/DOCUMENTATION.md +4 -0
- package/server/lib/opencode/config-entity-routes.js +115 -0
- package/server/lib/opencode/core-routes.js +1 -0
- package/server/lib/opencode/core-routes.test.js +17 -1
- package/server/lib/opencode/feature-routes-runtime.js +12 -0
- package/server/lib/opencode/index.js +9 -0
- package/server/lib/opencode/routes.js +14 -1
- package/server/lib/opencode/snippets.js +233 -0
- package/server/lib/opencode/snippets.test.js +68 -0
- package/server/lib/scheduled-tasks/runtime.js +4 -3
- package/dist/assets/MarkdownRendererImpl-ShCeV10r.js +0 -6
- package/dist/assets/TerminalView-K9P6-TDg.js +0 -1
- package/dist/assets/index-BG2LvnTV.css +0 -1
- package/dist/assets/main-BCXofLIN.js +0 -225
- package/dist/assets/miniChat-DCx1bzpk.js +0 -2
- package/dist/assets/renderElectronMiniChatApp-exfEAtnm.js +0 -2
- /package/dist/assets/{index-CQjRYgmJ.js → index-Dc1XJWqt.js} +0 -0
|
@@ -7,15 +7,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7
7
|
`+Ra[Kt].replace(" at new "," at ");return Rt.displayName&&no.includes("<anonymous>")&&(no=no.replace("<anonymous>",Rt.displayName)),no}while(1<=Kt&&0<=jn);break}}}finally{ti=!1,Error.prepareStackTrace=Ut}return(Ut=Rt?Rt.displayName||Rt.name:"")?ba(Ut):""}function Xa(Rt,Mt){switch(Rt.tag){case 26:case 27:case 5:return ba(Rt.type);case 16:return ba("Lazy");case 13:return Rt.child!==Mt&&Mt!==null?ba("Suspense Fallback"):ba("Suspense");case 19:return ba("SuspenseList");case 0:case 15:return ya(Rt.type,!1);case 11:return ya(Rt.type.render,!1);case 1:return ya(Rt.type,!0);case 31:return ba("Activity");default:return""}}function Ni(Rt){try{var Mt="",Ut=null;do Mt+=Xa(Rt,Ut),Ut=Rt,Rt=Rt.return;while(Rt);return Mt}catch(Kt){return`
|
|
8
8
|
Error generating stack: `+Kt.message+`
|
|
9
9
|
`+Kt.stack}}var ii=Object.prototype.hasOwnProperty,Za=At.unstable_scheduleCallback,$a=At.unstable_cancelCallback,Ya=At.unstable_shouldYield,Ta=At.unstable_requestPaint,qa=At.unstable_now,ki=At.unstable_getCurrentPriorityLevel,La=At.unstable_ImmediatePriority,Ja=At.unstable_UserBlockingPriority,qi=At.unstable_NormalPriority,co=At.unstable_LowPriority,ns=At.unstable_IdlePriority,Qo=At.log,ao=At.unstable_setDisableYieldValue,Jo=null,Ji=null;function Ms(Rt){if(typeof Qo=="function"&&ao(Rt),Ji&&typeof Ji.setStrictMode=="function")try{Ji.setStrictMode(Jo,Rt)}catch{}}var Vs=Math.clz32?Math.clz32:ho,ZA=Math.log,Xo=Math.LN2;function ho(Rt){return Rt>>>=0,Rt===0?32:31-(ZA(Rt)/Xo|0)|0}var ks=256,lA=262144,fA=4194304;function bo(Rt){var Mt=Rt&42;if(Mt!==0)return Mt;switch(Rt&-Rt){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return Rt&261888;case 262144:case 524288:case 1048576:case 2097152:return Rt&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return Rt&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return Rt}}function si(Rt,Mt,Ut){var Kt=Rt.pendingLanes;if(Kt===0)return 0;var jn=0,er=Rt.suspendedLanes,xr=Rt.pingedLanes;Rt=Rt.warmLanes;var Hr=Kt&134217727;return Hr!==0?(Kt=Hr&~er,Kt!==0?jn=bo(Kt):(xr&=Hr,xr!==0?jn=bo(xr):Ut||(Ut=Hr&~Rt,Ut!==0&&(jn=bo(Ut))))):(Hr=Kt&~er,Hr!==0?jn=bo(Hr):xr!==0?jn=bo(xr):Ut||(Ut=Kt&~Rt,Ut!==0&&(jn=bo(Ut)))),jn===0?0:Mt!==0&&Mt!==jn&&(Mt&er)===0&&(er=jn&-jn,Ut=Mt&-Mt,er>=Ut||er===32&&(Ut&4194048)!==0)?Mt:jn}function Mi(Rt,Mt){return(Rt.pendingLanes&~(Rt.suspendedLanes&~Rt.pingedLanes)&Mt)===0}function rs(Rt,Mt){switch(Rt){case 1:case 2:case 4:case 8:case 64:return Mt+250;case 16:case 32: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 Mt+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function So(){var Rt=fA;return fA<<=1,(fA&62914560)===0&&(fA=4194304),Rt}function ms(Rt){for(var Mt=[],Ut=0;31>Ut;Ut++)Mt.push(Rt);return Mt}function uo(Rt,Mt){Rt.pendingLanes|=Mt,Mt!==268435456&&(Rt.suspendedLanes=0,Rt.pingedLanes=0,Rt.warmLanes=0)}function mo(Rt,Mt,Ut,Kt,jn,er){var xr=Rt.pendingLanes;Rt.pendingLanes=Ut,Rt.suspendedLanes=0,Rt.pingedLanes=0,Rt.warmLanes=0,Rt.expiredLanes&=Ut,Rt.entangledLanes&=Ut,Rt.errorRecoveryDisabledLanes&=Ut,Rt.shellSuspendCounter=0;var Hr=Rt.entanglements,Ra=Rt.expirationTimes,Ei=Rt.hiddenUpdates;for(Ut=xr&~Ut;0<Ut;){var no=31-Vs(Ut),fo=1<<no;Hr[no]=0,Ra[no]=-1;var Pi=Ei[no];if(Pi!==null)for(Ei[no]=null,no=0;no<Pi.length;no++){var Hi=Pi[no];Hi!==null&&(Hi.lane&=-536870913)}Ut&=~fo}Kt!==0&&Ss(Rt,Kt,0),er!==0&&jn===0&&Rt.tag!==0&&(Rt.suspendedLanes|=er&~(xr&~Mt))}function Ss(Rt,Mt,Ut){Rt.pendingLanes|=Mt,Rt.suspendedLanes&=~Mt;var Kt=31-Vs(Mt);Rt.entangledLanes|=Mt,Rt.entanglements[Kt]=Rt.entanglements[Kt]|1073741824|Ut&261930}function xs(Rt,Mt){var Ut=Rt.entangledLanes|=Mt;for(Rt=Rt.entanglements;Ut;){var Kt=31-Vs(Ut),jn=1<<Kt;jn&Mt|Rt[Kt]&Mt&&(Rt[Kt]|=Mt),Ut&=~jn}}function Js(Rt,Mt){var Ut=Mt&-Mt;return Ut=(Ut&42)!==0?1:Us(Ut),(Ut&(Rt.suspendedLanes|Mt))!==0?0:Ut}function Us(Rt){switch(Rt){case 2:Rt=1;break;case 8:Rt=4;break;case 32:Rt=16;break;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:Rt=128;break;case 268435456:Rt=134217728;break;default:Rt=0}return Rt}function Es(Rt){return Rt&=-Rt,2<Rt?8<Rt?(Rt&134217727)!==0?32:268435456:8:2}function fc(){var Rt=lr.p;return Rt!==0?Rt:(Rt=window.event,Rt===void 0?32:cW(Rt.type))}function gu(Rt,Mt){var Ut=lr.p;try{return lr.p=Rt,Mt()}finally{lr.p=Ut}}var Fl=Math.random().toString(36).slice(2),sl="__reactFiber$"+Fl,Yr="__reactProps$"+Fl,ga="__reactContainer$"+Fl,za="__reactEvents$"+Fl,Ai="__reactListeners$"+Fl,Oi="__reactHandles$"+Fl,zi="__reactResources$"+Fl,es="__reactMarker$"+Fl;function eA(Rt){delete Rt[sl],delete Rt[Yr],delete Rt[za],delete Rt[Ai],delete Rt[Oi]}function Qs(Rt){var Mt=Rt[sl];if(Mt)return Mt;for(var Ut=Rt.parentNode;Ut;){if(Mt=Ut[ga]||Ut[sl]){if(Ut=Mt.alternate,Mt.child!==null||Ut!==null&&Ut.child!==null)for(Rt=KL(Rt);Rt!==null;){if(Ut=Rt[sl])return Ut;Rt=KL(Rt)}return Mt}Rt=Ut,Ut=Rt.parentNode}return null}function ec(Rt){if(Rt=Rt[sl]||Rt[ga]){var Mt=Rt.tag;if(Mt===5||Mt===6||Mt===13||Mt===31||Mt===26||Mt===27||Mt===3)return Rt}return null}function El(Rt){var Mt=Rt.tag;if(Mt===5||Mt===26||Mt===27||Mt===6)return Rt.stateNode;throw Error(pt(33))}function md(Rt){var Mt=Rt[zi];return Mt||(Mt=Rt[zi]={hoistableStyles:new Map,hoistableScripts:new Map}),Mt}function tl(Rt){Rt[es]=!0}var Ir=new Set,ia={};function hi(Rt,Mt){Uo(Rt,Mt),Uo(Rt+"Capture",Mt)}function Uo(Rt,Mt){for(ia[Rt]=Mt,Rt=0;Rt<Mt.length;Rt++)Ir.add(Mt[Rt])}var Ds=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),nl={},Ml={};function Nm(Rt){return ii.call(Ml,Rt)?!0:ii.call(nl,Rt)?!1:Ds.test(Rt)?Ml[Rt]=!0:(nl[Rt]=!0,!1)}function nu(Rt,Mt,Ut){if(Nm(Mt))if(Ut===null)Rt.removeAttribute(Mt);else{switch(typeof Ut){case"undefined":case"function":case"symbol":Rt.removeAttribute(Mt);return;case"boolean":var Kt=Mt.toLowerCase().slice(0,5);if(Kt!=="data-"&&Kt!=="aria-"){Rt.removeAttribute(Mt);return}}Rt.setAttribute(Mt,""+Ut)}}function jf(Rt,Mt,Ut){if(Ut===null)Rt.removeAttribute(Mt);else{switch(typeof Ut){case"undefined":case"function":case"symbol":case"boolean":Rt.removeAttribute(Mt);return}Rt.setAttribute(Mt,""+Ut)}}function X0(Rt,Mt,Ut,Kt){if(Kt===null)Rt.removeAttribute(Ut);else{switch(typeof Kt){case"undefined":case"function":case"symbol":case"boolean":Rt.removeAttribute(Ut);return}Rt.setAttributeNS(Mt,Ut,""+Kt)}}function Uf(Rt){switch(typeof Rt){case"bigint":case"boolean":case"number":case"string":case"undefined":return Rt;case"object":return Rt;default:return""}}function v_(Rt){var Mt=Rt.type;return(Rt=Rt.nodeName)&&Rt.toLowerCase()==="input"&&(Mt==="checkbox"||Mt==="radio")}function M3(Rt,Mt,Ut){var Kt=Object.getOwnPropertyDescriptor(Rt.constructor.prototype,Mt);if(!Rt.hasOwnProperty(Mt)&&typeof Kt<"u"&&typeof Kt.get=="function"&&typeof Kt.set=="function"){var jn=Kt.get,er=Kt.set;return Object.defineProperty(Rt,Mt,{configurable:!0,get:function(){return jn.call(this)},set:function(xr){Ut=""+xr,er.call(this,xr)}}),Object.defineProperty(Rt,Mt,{enumerable:Kt.enumerable}),{getValue:function(){return Ut},setValue:function(xr){Ut=""+xr},stopTracking:function(){Rt._valueTracker=null,delete Rt[Mt]}}}}function O_(Rt){if(!Rt._valueTracker){var Mt=v_(Rt)?"checked":"value";Rt._valueTracker=M3(Rt,Mt,""+Rt[Mt])}}function IB(Rt){if(!Rt)return!1;var Mt=Rt._valueTracker;if(!Mt)return!0;var Ut=Mt.getValue(),Kt="";return Rt&&(Kt=v_(Rt)?Rt.checked?"true":"false":Rt.value),Rt=Kt,Rt!==Ut?(Mt.setValue(Rt),!0):!1}function mE(Rt){if(Rt=Rt||(typeof document<"u"?document:void 0),typeof Rt>"u")return null;try{return Rt.activeElement||Rt.body}catch{return Rt.body}}var E4=/[\n"\\]/g;function zf(Rt){return Rt.replace(E4,function(Mt){return"\\"+Mt.charCodeAt(0).toString(16)+" "})}function DQ(Rt,Mt,Ut,Kt,jn,er,xr,Hr){Rt.name="",xr!=null&&typeof xr!="function"&&typeof xr!="symbol"&&typeof xr!="boolean"?Rt.type=xr:Rt.removeAttribute("type"),Mt!=null?xr==="number"?(Mt===0&&Rt.value===""||Rt.value!=Mt)&&(Rt.value=""+Uf(Mt)):Rt.value!==""+Uf(Mt)&&(Rt.value=""+Uf(Mt)):xr!=="submit"&&xr!=="reset"||Rt.removeAttribute("value"),Mt!=null?gE(Rt,xr,Uf(Mt)):Ut!=null?gE(Rt,xr,Uf(Ut)):Kt!=null&&Rt.removeAttribute("value"),jn==null&&er!=null&&(Rt.defaultChecked=!!er),jn!=null&&(Rt.checked=jn&&typeof jn!="function"&&typeof jn!="symbol"),Hr!=null&&typeof Hr!="function"&&typeof Hr!="symbol"&&typeof Hr!="boolean"?Rt.name=""+Uf(Hr):Rt.removeAttribute("name")}function __(Rt,Mt,Ut,Kt,jn,er,xr,Hr){if(er!=null&&typeof er!="function"&&typeof er!="symbol"&&typeof er!="boolean"&&(Rt.type=er),Mt!=null||Ut!=null){if(!(er!=="submit"&&er!=="reset"||Mt!=null)){O_(Rt);return}Ut=Ut!=null?""+Uf(Ut):"",Mt=Mt!=null?""+Uf(Mt):Ut,Hr||Mt===Rt.value||(Rt.value=Mt),Rt.defaultValue=Mt}Kt=Kt??jn,Kt=typeof Kt!="function"&&typeof Kt!="symbol"&&!!Kt,Rt.checked=Hr?Rt.checked:!!Kt,Rt.defaultChecked=!!Kt,xr!=null&&typeof xr!="function"&&typeof xr!="symbol"&&typeof xr!="boolean"&&(Rt.name=xr),O_(Rt)}function gE(Rt,Mt,Ut){Mt==="number"&&mE(Rt.ownerDocument)===Rt||Rt.defaultValue===""+Ut||(Rt.defaultValue=""+Ut)}function v1(Rt,Mt,Ut,Kt){if(Rt=Rt.options,Mt){Mt={};for(var jn=0;jn<Ut.length;jn++)Mt["$"+Ut[jn]]=!0;for(Ut=0;Ut<Rt.length;Ut++)jn=Mt.hasOwnProperty("$"+Rt[Ut].value),Rt[Ut].selected!==jn&&(Rt[Ut].selected=jn),jn&&Kt&&(Rt[Ut].defaultSelected=!0)}else{for(Ut=""+Uf(Ut),Mt=null,jn=0;jn<Rt.length;jn++){if(Rt[jn].value===Ut){Rt[jn].selected=!0,Kt&&(Rt[jn].defaultSelected=!0);return}Mt!==null||Rt[jn].disabled||(Mt=Rt[jn])}Mt!==null&&(Mt.selected=!0)}}function I_(Rt,Mt,Ut){if(Mt!=null&&(Mt=""+Uf(Mt),Mt!==Rt.value&&(Rt.value=Mt),Ut==null)){Rt.defaultValue!==Mt&&(Rt.defaultValue=Mt);return}Rt.defaultValue=Ut!=null?""+Uf(Ut):""}function $Q(Rt,Mt,Ut,Kt){if(Mt==null){if(Kt!=null){if(Ut!=null)throw Error(pt(92));if(Ar(Kt)){if(1<Kt.length)throw Error(pt(93));Kt=Kt[0]}Ut=Kt}Ut==null&&(Ut=""),Mt=Ut}Ut=Uf(Mt),Rt.defaultValue=Ut,Kt=Rt.textContent,Kt===Ut&&Kt!==""&&Kt!==null&&(Rt.value=Kt),O_(Rt)}function O1(Rt,Mt){if(Mt){var Ut=Rt.firstChild;if(Ut&&Ut===Rt.lastChild&&Ut.nodeType===3){Ut.nodeValue=Mt;return}}Rt.textContent=Mt}var rl=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function x_(Rt,Mt,Ut){var Kt=Mt.indexOf("--")===0;Ut==null||typeof Ut=="boolean"||Ut===""?Kt?Rt.setProperty(Mt,""):Mt==="float"?Rt.cssFloat="":Rt[Mt]="":Kt?Rt.setProperty(Mt,Ut):typeof Ut!="number"||Ut===0||rl.has(Mt)?Mt==="float"?Rt.cssFloat=Ut:Rt[Mt]=(""+Ut).trim():Rt[Mt]=Ut+"px"}function qc(Rt,Mt,Ut){if(Mt!=null&&typeof Mt!="object")throw Error(pt(62));if(Rt=Rt.style,Ut!=null){for(var Kt in Ut)!Ut.hasOwnProperty(Kt)||Mt!=null&&Mt.hasOwnProperty(Kt)||(Kt.indexOf("--")===0?Rt.setProperty(Kt,""):Kt==="float"?Rt.cssFloat="":Rt[Kt]="");for(var jn in Mt)Kt=Mt[jn],Mt.hasOwnProperty(jn)&&Ut[jn]!==Kt&&x_(Rt,jn,Kt)}else for(var er in Mt)Mt.hasOwnProperty(er)&&x_(Rt,er,Mt[er])}function Ic(Rt){if(Rt.indexOf("-")===-1)return!1;switch(Rt){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 S_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),TQ=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xB(Rt){return TQ.test(""+Rt)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":Rt}function W0(){}var RQ=null;function PQ(Rt){return Rt=Rt.target||Rt.srcElement||window,Rt.correspondingUseElement&&(Rt=Rt.correspondingUseElement),Rt.nodeType===3?Rt.parentNode:Rt}var _1=null,I1=null;function D_(Rt){var Mt=ec(Rt);if(Mt&&(Rt=Mt.stateNode)){var Ut=Rt[Yr]||null;e:switch(Rt=Mt.stateNode,Mt.type){case"input":if(DQ(Rt,Ut.value,Ut.defaultValue,Ut.defaultValue,Ut.checked,Ut.defaultChecked,Ut.type,Ut.name),Mt=Ut.name,Ut.type==="radio"&&Mt!=null){for(Ut=Rt;Ut.parentNode;)Ut=Ut.parentNode;for(Ut=Ut.querySelectorAll('input[name="'+zf(""+Mt)+'"][type="radio"]'),Mt=0;Mt<Ut.length;Mt++){var Kt=Ut[Mt];if(Kt!==Rt&&Kt.form===Rt.form){var jn=Kt[Yr]||null;if(!jn)throw Error(pt(90));DQ(Kt,jn.value,jn.defaultValue,jn.defaultValue,jn.checked,jn.defaultChecked,jn.type,jn.name)}}for(Mt=0;Mt<Ut.length;Mt++)Kt=Ut[Mt],Kt.form===Rt.form&&IB(Kt)}break e;case"textarea":I_(Rt,Ut.value,Ut.defaultValue);break e;case"select":Mt=Ut.value,Mt!=null&&v1(Rt,!!Ut.multiple,Mt,!1)}}}var FQ=!1;function $_(Rt,Mt,Ut){if(FQ)return Rt(Mt,Ut);FQ=!0;try{var Kt=Rt(Mt);return Kt}finally{if(FQ=!1,(_1!==null||I1!==null)&&(aD(),_1&&(Mt=_1,Rt=I1,I1=_1=null,D_(Mt),Rt)))for(Mt=0;Mt<Rt.length;Mt++)D_(Rt[Mt])}}function fE(Rt,Mt){var Ut=Rt.stateNode;if(Ut===null)return null;var Kt=Ut[Yr]||null;if(Kt===null)return null;Ut=Kt[Mt];e:switch(Mt){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Kt=!Kt.disabled)||(Rt=Rt.type,Kt=!(Rt==="button"||Rt==="input"||Rt==="select"||Rt==="textarea")),Rt=!Kt;break e;default:Rt=!1}if(Rt)return null;if(Ut&&typeof Ut!="function")throw Error(pt(231,Mt,typeof Ut));return Ut}var V0=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),MQ=!1;if(V0)try{var $r={};Object.defineProperty($r,"passive",{get:function(){MQ=!0}}),window.addEventListener("test",$r,$r),window.removeEventListener("test",$r,$r)}catch{MQ=!1}var Ur=null,oa=null,Na=null;function pi(){if(Na)return Na;var Rt,Mt=oa,Ut=Mt.length,Kt,jn="value"in Ur?Ur.value:Ur.textContent,er=jn.length;for(Rt=0;Rt<Ut&&Mt[Rt]===jn[Rt];Rt++);var xr=Ut-Rt;for(Kt=1;Kt<=xr&&Mt[Ut-Kt]===jn[er-Kt];Kt++);return Na=jn.slice(Rt,1<Kt?1-Kt:void 0)}function ji(Rt){var Mt=Rt.keyCode;return"charCode"in Rt?(Rt=Rt.charCode,Rt===0&&Mt===13&&(Rt=13)):Rt=Mt,Rt===10&&(Rt=13),32<=Rt||Rt===13?Rt:0}function cs(){return!0}function hA(){return!1}function XA(Rt){function Mt(Ut,Kt,jn,er,xr){this._reactName=Ut,this._targetInst=jn,this.type=Kt,this.nativeEvent=er,this.target=xr,this.currentTarget=null;for(var Hr in Rt)Rt.hasOwnProperty(Hr)&&(Ut=Rt[Hr],this[Hr]=Ut?Ut(er):er[Hr]);return this.isDefaultPrevented=(er.defaultPrevented!=null?er.defaultPrevented:er.returnValue===!1)?cs:hA,this.isPropagationStopped=hA,this}return Qt(Mt.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Ut=this.nativeEvent;Ut&&(Ut.preventDefault?Ut.preventDefault():typeof Ut.returnValue!="unknown"&&(Ut.returnValue=!1),this.isDefaultPrevented=cs)},stopPropagation:function(){var Ut=this.nativeEvent;Ut&&(Ut.stopPropagation?Ut.stopPropagation():typeof Ut.cancelBubble!="unknown"&&(Ut.cancelBubble=!0),this.isPropagationStopped=cs)},persist:function(){},isPersistent:cs}),Mt}var Qc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(Rt){return Rt.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gd=XA(Qc),cf=Qt({},Qc,{view:0,detail:0}),kh=XA(cf),Zi,Al,Mu,Eh=Qt({},cf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:L3,button:0,buttons:0,relatedTarget:function(Rt){return Rt.relatedTarget===void 0?Rt.fromElement===Rt.srcElement?Rt.toElement:Rt.fromElement:Rt.relatedTarget},movementX:function(Rt){return"movementX"in Rt?Rt.movementX:(Rt!==Mu&&(Mu&&Rt.type==="mousemove"?(Zi=Rt.screenX-Mu.screenX,Al=Rt.screenY-Mu.screenY):Al=Zi=0,Mu=Rt),Zi)},movementY:function(Rt){return"movementY"in Rt?Rt.movementY:Al}}),x1=XA(Eh),BZ=Qt({},Eh,{dataTransfer:0}),QZ=XA(BZ),vZ=Qt({},cf,{relatedTarget:0}),N3=XA(vZ),OZ=Qt({},Qc,{animationName:0,elapsedTime:0,pseudoElement:0}),_Z=XA(OZ),IZ=Qt({},Qc,{clipboardData:function(Rt){return"clipboardData"in Rt?Rt.clipboardData:window.clipboardData}}),xZ=XA(IZ),SZ=Qt({},Qc,{data:0}),aN=XA(SZ),DZ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$Z={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"},TZ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RZ(Rt){var Mt=this.nativeEvent;return Mt.getModifierState?Mt.getModifierState(Rt):(Rt=TZ[Rt])?!!Mt[Rt]:!1}function L3(){return RZ}var PZ=Qt({},cf,{key:function(Rt){if(Rt.key){var Mt=DZ[Rt.key]||Rt.key;if(Mt!=="Unidentified")return Mt}return Rt.type==="keypress"?(Rt=ji(Rt),Rt===13?"Enter":String.fromCharCode(Rt)):Rt.type==="keydown"||Rt.type==="keyup"?$Z[Rt.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:L3,charCode:function(Rt){return Rt.type==="keypress"?ji(Rt):0},keyCode:function(Rt){return Rt.type==="keydown"||Rt.type==="keyup"?Rt.keyCode:0},which:function(Rt){return Rt.type==="keypress"?ji(Rt):Rt.type==="keydown"||Rt.type==="keyup"?Rt.keyCode:0}}),FZ=XA(PZ),MZ=Qt({},Eh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),iN=XA(MZ),NZ=Qt({},cf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:L3}),LZ=XA(NZ),GZ=Qt({},Qc,{propertyName:0,elapsedTime:0,pseudoElement:0}),qZ=XA(GZ),jZ=Qt({},Eh,{deltaX:function(Rt){return"deltaX"in Rt?Rt.deltaX:"wheelDeltaX"in Rt?-Rt.wheelDeltaX:0},deltaY:function(Rt){return"deltaY"in Rt?Rt.deltaY:"wheelDeltaY"in Rt?-Rt.wheelDeltaY:"wheelDelta"in Rt?-Rt.wheelDelta:0},deltaZ:0,deltaMode:0}),UZ=XA(jZ),zZ=Qt({},Qc,{newState:0,oldState:0}),HZ=XA(zZ),YZ=[9,13,27,32],G3=V0&&"CompositionEvent"in window,T_=null;V0&&"documentMode"in document&&(T_=document.documentMode);var ZZ=V0&&"TextEvent"in window&&!T_,oN=V0&&(!G3||T_&&8<T_&&11>=T_),sN=" ",AN=!1;function cN(Rt,Mt){switch(Rt){case"keyup":return YZ.indexOf(Mt.keyCode)!==-1;case"keydown":return Mt.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lN(Rt){return Rt=Rt.detail,typeof Rt=="object"&&"data"in Rt?Rt.data:null}var NQ=!1;function XZ(Rt,Mt){switch(Rt){case"compositionend":return lN(Mt);case"keypress":return Mt.which!==32?null:(AN=!0,sN);case"textInput":return Rt=Mt.data,Rt===sN&&AN?null:Rt;default:return null}}function WZ(Rt,Mt){if(NQ)return Rt==="compositionend"||!G3&&cN(Rt,Mt)?(Rt=pi(),Na=oa=Ur=null,NQ=!1,Rt):null;switch(Rt){case"paste":return null;case"keypress":if(!(Mt.ctrlKey||Mt.altKey||Mt.metaKey)||Mt.ctrlKey&&Mt.altKey){if(Mt.char&&1<Mt.char.length)return Mt.char;if(Mt.which)return String.fromCharCode(Mt.which)}return null;case"compositionend":return oN&&Mt.locale!=="ko"?null:Mt.data;default:return null}}var VZ={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 uN(Rt){var Mt=Rt&&Rt.nodeName&&Rt.nodeName.toLowerCase();return Mt==="input"?!!VZ[Rt.type]:Mt==="textarea"}function dN(Rt,Mt,Ut,Kt){_1?I1?I1.push(Kt):I1=[Kt]:_1=Kt,Mt=uD(Mt,"onChange"),0<Mt.length&&(Ut=new gd("onChange","change",null,Ut,Kt),Rt.push({event:Ut,listeners:Mt}))}var R_=null,P_=null;function KZ(Rt){NL(Rt,0)}function C4(Rt){var Mt=El(Rt);if(IB(Mt))return Rt}function pN(Rt,Mt){if(Rt==="change")return Mt}var q3=!1;if(V0){var j3;if(V0){var U3="oninput"in document;if(!U3){var mN=document.createElement("div");mN.setAttribute("oninput","return;"),U3=typeof mN.oninput=="function"}j3=U3}else j3=!1;q3=j3&&(!document.documentMode||9<document.documentMode)}function gN(){R_&&(R_.detachEvent("onpropertychange",fN),P_=R_=null)}function fN(Rt){if(Rt.propertyName==="value"&&C4(P_)){var Mt=[];dN(Mt,P_,Rt,PQ(Rt)),$_(KZ,Mt)}}function JZ(Rt,Mt,Ut){Rt==="focusin"?(gN(),R_=Mt,P_=Ut,R_.attachEvent("onpropertychange",fN)):Rt==="focusout"&&gN()}function eX(Rt){if(Rt==="selectionchange"||Rt==="keyup"||Rt==="keydown")return C4(P_)}function tX(Rt,Mt){if(Rt==="click")return C4(Mt)}function nX(Rt,Mt){if(Rt==="input"||Rt==="change")return C4(Mt)}function rX(Rt,Mt){return Rt===Mt&&(Rt!==0||1/Rt===1/Mt)||Rt!==Rt&&Mt!==Mt}var t0=typeof Object.is=="function"?Object.is:rX;function F_(Rt,Mt){if(t0(Rt,Mt))return!0;if(typeof Rt!="object"||Rt===null||typeof Mt!="object"||Mt===null)return!1;var Ut=Object.keys(Rt),Kt=Object.keys(Mt);if(Ut.length!==Kt.length)return!1;for(Kt=0;Kt<Ut.length;Kt++){var jn=Ut[Kt];if(!ii.call(Mt,jn)||!t0(Rt[jn],Mt[jn]))return!1}return!0}function hN(Rt){for(;Rt&&Rt.firstChild;)Rt=Rt.firstChild;return Rt}function bN(Rt,Mt){var Ut=hN(Rt);Rt=0;for(var Kt;Ut;){if(Ut.nodeType===3){if(Kt=Rt+Ut.textContent.length,Rt<=Mt&&Kt>=Mt)return{node:Ut,offset:Mt-Rt};Rt=Kt}e:{for(;Ut;){if(Ut.nextSibling){Ut=Ut.nextSibling;break e}Ut=Ut.parentNode}Ut=void 0}Ut=hN(Ut)}}function yN(Rt,Mt){return Rt&&Mt?Rt===Mt?!0:Rt&&Rt.nodeType===3?!1:Mt&&Mt.nodeType===3?yN(Rt,Mt.parentNode):"contains"in Rt?Rt.contains(Mt):Rt.compareDocumentPosition?!!(Rt.compareDocumentPosition(Mt)&16):!1:!1}function wN(Rt){Rt=Rt!=null&&Rt.ownerDocument!=null&&Rt.ownerDocument.defaultView!=null?Rt.ownerDocument.defaultView:window;for(var Mt=mE(Rt.document);Mt instanceof Rt.HTMLIFrameElement;){try{var Ut=typeof Mt.contentWindow.location.href=="string"}catch{Ut=!1}if(Ut)Rt=Mt.contentWindow;else break;Mt=mE(Rt.document)}return Mt}function z3(Rt){var Mt=Rt&&Rt.nodeName&&Rt.nodeName.toLowerCase();return Mt&&(Mt==="input"&&(Rt.type==="text"||Rt.type==="search"||Rt.type==="tel"||Rt.type==="url"||Rt.type==="password")||Mt==="textarea"||Rt.contentEditable==="true")}var aX=V0&&"documentMode"in document&&11>=document.documentMode,LQ=null,H3=null,M_=null,Y3=!1;function kN(Rt,Mt,Ut){var Kt=Ut.window===Ut?Ut.document:Ut.nodeType===9?Ut:Ut.ownerDocument;Y3||LQ==null||LQ!==mE(Kt)||(Kt=LQ,"selectionStart"in Kt&&z3(Kt)?Kt={start:Kt.selectionStart,end:Kt.selectionEnd}:(Kt=(Kt.ownerDocument&&Kt.ownerDocument.defaultView||window).getSelection(),Kt={anchorNode:Kt.anchorNode,anchorOffset:Kt.anchorOffset,focusNode:Kt.focusNode,focusOffset:Kt.focusOffset}),M_&&F_(M_,Kt)||(M_=Kt,Kt=uD(H3,"onSelect"),0<Kt.length&&(Mt=new gd("onSelect","select",null,Mt,Ut),Rt.push({event:Mt,listeners:Kt}),Mt.target=LQ)))}function SB(Rt,Mt){var Ut={};return Ut[Rt.toLowerCase()]=Mt.toLowerCase(),Ut["Webkit"+Rt]="webkit"+Mt,Ut["Moz"+Rt]="moz"+Mt,Ut}var GQ={animationend:SB("Animation","AnimationEnd"),animationiteration:SB("Animation","AnimationIteration"),animationstart:SB("Animation","AnimationStart"),transitionrun:SB("Transition","TransitionRun"),transitionstart:SB("Transition","TransitionStart"),transitioncancel:SB("Transition","TransitionCancel"),transitionend:SB("Transition","TransitionEnd")},Z3={},EN={};V0&&(EN=document.createElement("div").style,"AnimationEvent"in window||(delete GQ.animationend.animation,delete GQ.animationiteration.animation,delete GQ.animationstart.animation),"TransitionEvent"in window||delete GQ.transitionend.transition);function DB(Rt){if(Z3[Rt])return Z3[Rt];if(!GQ[Rt])return Rt;var Mt=GQ[Rt],Ut;for(Ut in Mt)if(Mt.hasOwnProperty(Ut)&&Ut in EN)return Z3[Rt]=Mt[Ut];return Rt}var CN=DB("animationend"),BN=DB("animationiteration"),QN=DB("animationstart"),iX=DB("transitionrun"),oX=DB("transitionstart"),sX=DB("transitioncancel"),vN=DB("transitionend"),ON=new Map,X3="abort auxClick beforeToggle 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(" ");X3.push("scrollEnd");function Jb(Rt,Mt){ON.set(Rt,Mt),hi(Mt,[Rt])}var B4=typeof reportError=="function"?reportError:function(Rt){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Mt=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Rt=="object"&&Rt!==null&&typeof Rt.message=="string"?String(Rt.message):String(Rt),error:Rt});if(!window.dispatchEvent(Mt))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Rt);return}console.error(Rt)},K0=[],qQ=0,W3=0;function Q4(){for(var Rt=qQ,Mt=W3=qQ=0;Mt<Rt;){var Ut=K0[Mt];K0[Mt++]=null;var Kt=K0[Mt];K0[Mt++]=null;var jn=K0[Mt];K0[Mt++]=null;var er=K0[Mt];if(K0[Mt++]=null,Kt!==null&&jn!==null){var xr=Kt.pending;xr===null?jn.next=jn:(jn.next=xr.next,xr.next=jn),Kt.pending=jn}er!==0&&_N(Ut,jn,er)}}function v4(Rt,Mt,Ut,Kt){K0[qQ++]=Rt,K0[qQ++]=Mt,K0[qQ++]=Ut,K0[qQ++]=Kt,W3|=Kt,Rt.lanes|=Kt,Rt=Rt.alternate,Rt!==null&&(Rt.lanes|=Kt)}function V3(Rt,Mt,Ut,Kt){return v4(Rt,Mt,Ut,Kt),O4(Rt)}function $B(Rt,Mt){return v4(Rt,null,null,Mt),O4(Rt)}function _N(Rt,Mt,Ut){Rt.lanes|=Ut;var Kt=Rt.alternate;Kt!==null&&(Kt.lanes|=Ut);for(var jn=!1,er=Rt.return;er!==null;)er.childLanes|=Ut,Kt=er.alternate,Kt!==null&&(Kt.childLanes|=Ut),er.tag===22&&(Rt=er.stateNode,Rt===null||Rt._visibility&1||(jn=!0)),Rt=er,er=er.return;return Rt.tag===3?(er=Rt.stateNode,jn&&Mt!==null&&(jn=31-Vs(Ut),Rt=er.hiddenUpdates,Kt=Rt[jn],Kt===null?Rt[jn]=[Mt]:Kt.push(Mt),Mt.lane=Ut|536870912),er):null}function O4(Rt){if(50<cI)throw cI=0,A6=null,Error(pt(185));for(var Mt=Rt.return;Mt!==null;)Rt=Mt,Mt=Rt.return;return Rt.tag===3?Rt.stateNode:null}var jQ={};function AX(Rt,Mt,Ut,Kt){this.tag=Rt,this.key=Ut,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=Mt,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Kt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function n0(Rt,Mt,Ut,Kt){return new AX(Rt,Mt,Ut,Kt)}function K3(Rt){return Rt=Rt.prototype,!(!Rt||!Rt.isReactComponent)}function S1(Rt,Mt){var Ut=Rt.alternate;return Ut===null?(Ut=n0(Rt.tag,Mt,Rt.key,Rt.mode),Ut.elementType=Rt.elementType,Ut.type=Rt.type,Ut.stateNode=Rt.stateNode,Ut.alternate=Rt,Rt.alternate=Ut):(Ut.pendingProps=Mt,Ut.type=Rt.type,Ut.flags=0,Ut.subtreeFlags=0,Ut.deletions=null),Ut.flags=Rt.flags&65011712,Ut.childLanes=Rt.childLanes,Ut.lanes=Rt.lanes,Ut.child=Rt.child,Ut.memoizedProps=Rt.memoizedProps,Ut.memoizedState=Rt.memoizedState,Ut.updateQueue=Rt.updateQueue,Mt=Rt.dependencies,Ut.dependencies=Mt===null?null:{lanes:Mt.lanes,firstContext:Mt.firstContext},Ut.sibling=Rt.sibling,Ut.index=Rt.index,Ut.ref=Rt.ref,Ut.refCleanup=Rt.refCleanup,Ut}function IN(Rt,Mt){Rt.flags&=65011714;var Ut=Rt.alternate;return Ut===null?(Rt.childLanes=0,Rt.lanes=Mt,Rt.child=null,Rt.subtreeFlags=0,Rt.memoizedProps=null,Rt.memoizedState=null,Rt.updateQueue=null,Rt.dependencies=null,Rt.stateNode=null):(Rt.childLanes=Ut.childLanes,Rt.lanes=Ut.lanes,Rt.child=Ut.child,Rt.subtreeFlags=0,Rt.deletions=null,Rt.memoizedProps=Ut.memoizedProps,Rt.memoizedState=Ut.memoizedState,Rt.updateQueue=Ut.updateQueue,Rt.type=Ut.type,Mt=Ut.dependencies,Rt.dependencies=Mt===null?null:{lanes:Mt.lanes,firstContext:Mt.firstContext}),Rt}function _4(Rt,Mt,Ut,Kt,jn,er){var xr=0;if(Kt=Rt,typeof Rt=="function")K3(Rt)&&(xr=1);else if(typeof Rt=="string")xr=rW(Rt,Ut,Cr.current)?26:Rt==="html"||Rt==="head"||Rt==="body"?27:5;else e:switch(Rt){case Jt:return Rt=n0(31,Ut,Mt,jn),Rt.elementType=Jt,Rt.lanes=er,Rt;case Pt:return TB(Ut.children,jn,er,Mt);case Nt:xr=8,jn|=24;break;case Lt:return Rt=n0(12,Ut,Mt,jn|2),Rt.elementType=Lt,Rt.lanes=er,Rt;case Ht:return Rt=n0(13,Ut,Mt,jn),Rt.elementType=Ht,Rt.lanes=er,Rt;case Wt:return Rt=n0(19,Ut,Mt,jn),Rt.elementType=Wt,Rt.lanes=er,Rt;default:if(typeof Rt=="object"&&Rt!==null)switch(Rt.$$typeof){case jt:xr=10;break e;case qt:xr=9;break e;case Zt:xr=11;break e;case wn:xr=14;break e;case Qn:xr=16,Kt=null;break e}xr=29,Ut=Error(pt(130,Rt===null?"null":typeof Rt,"")),Kt=null}return Mt=n0(xr,Ut,Mt,jn),Mt.elementType=Rt,Mt.type=Kt,Mt.lanes=er,Mt}function TB(Rt,Mt,Ut,Kt){return Rt=n0(7,Rt,Kt,Mt),Rt.lanes=Ut,Rt}function J3(Rt,Mt,Ut){return Rt=n0(6,Rt,null,Mt),Rt.lanes=Ut,Rt}function xN(Rt){var Mt=n0(18,null,null,0);return Mt.stateNode=Rt,Mt}function eR(Rt,Mt,Ut){return Mt=n0(4,Rt.children!==null?Rt.children:[],Rt.key,Mt),Mt.lanes=Ut,Mt.stateNode={containerInfo:Rt.containerInfo,pendingChildren:null,implementation:Rt.implementation},Mt}var SN=new WeakMap;function J0(Rt,Mt){if(typeof Rt=="object"&&Rt!==null){var Ut=SN.get(Rt);return Ut!==void 0?Ut:(Mt={value:Rt,source:Mt,stack:Ni(Mt)},SN.set(Rt,Mt),Mt)}return{value:Rt,source:Mt,stack:Ni(Mt)}}var UQ=[],zQ=0,I4=null,N_=0,eb=[],tb=0,hE=null,iw=1,ow="";function D1(Rt,Mt){UQ[zQ++]=N_,UQ[zQ++]=I4,I4=Rt,N_=Mt}function DN(Rt,Mt,Ut){eb[tb++]=iw,eb[tb++]=ow,eb[tb++]=hE,hE=Rt;var Kt=iw;Rt=ow;var jn=32-Vs(Kt)-1;Kt&=~(1<<jn),Ut+=1;var er=32-Vs(Mt)+jn;if(30<er){var xr=jn-jn%5;er=(Kt&(1<<xr)-1).toString(32),Kt>>=xr,jn-=xr,iw=1<<32-Vs(Mt)+jn|Ut<<jn|Kt,ow=er+Rt}else iw=1<<er|Ut<<jn|Kt,ow=Rt}function tR(Rt){Rt.return!==null&&(D1(Rt,1),DN(Rt,1,0))}function nR(Rt){for(;Rt===I4;)I4=UQ[--zQ],UQ[zQ]=null,N_=UQ[--zQ],UQ[zQ]=null;for(;Rt===hE;)hE=eb[--tb],eb[tb]=null,ow=eb[--tb],eb[tb]=null,iw=eb[--tb],eb[tb]=null}function $N(Rt,Mt){eb[tb++]=iw,eb[tb++]=ow,eb[tb++]=hE,iw=Mt.id,ow=Mt.overflow,hE=Rt}var Ag=null,Ld=null,Nl=!1,bE=null,nb=!1,rR=Error(pt(519));function yE(Rt){var Mt=Error(pt(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wE(J0(Mt,Rt)),rR}function TN(Rt){var Mt=Rt.stateNode,Ut=Rt.type,Kt=Rt.memoizedProps;switch(Mt[sl]=Rt,Mt[Yr]=Kt,Ut){case"dialog":Bl("cancel",Mt),Bl("close",Mt);break;case"iframe":case"object":case"embed":Bl("load",Mt);break;case"video":case"audio":for(Ut=0;Ut<uI.length;Ut++)Bl(uI[Ut],Mt);break;case"source":Bl("error",Mt);break;case"img":case"image":case"link":Bl("error",Mt),Bl("load",Mt);break;case"details":Bl("toggle",Mt);break;case"input":Bl("invalid",Mt),__(Mt,Kt.value,Kt.defaultValue,Kt.checked,Kt.defaultChecked,Kt.type,Kt.name,!0);break;case"select":Bl("invalid",Mt);break;case"textarea":Bl("invalid",Mt),$Q(Mt,Kt.value,Kt.defaultValue,Kt.children)}Ut=Kt.children,typeof Ut!="string"&&typeof Ut!="number"&&typeof Ut!="bigint"||Mt.textContent===""+Ut||Kt.suppressHydrationWarning===!0||jL(Mt.textContent,Ut)?(Kt.popover!=null&&(Bl("beforetoggle",Mt),Bl("toggle",Mt)),Kt.onScroll!=null&&Bl("scroll",Mt),Kt.onScrollEnd!=null&&Bl("scrollend",Mt),Kt.onClick!=null&&(Mt.onclick=W0),Mt=!0):Mt=!1,Mt||yE(Rt,!0)}function RN(Rt){for(Ag=Rt.return;Ag;)switch(Ag.tag){case 5:case 31:case 13:nb=!1;return;case 27:case 3:nb=!0;return;default:Ag=Ag.return}}function HQ(Rt){if(Rt!==Ag)return!1;if(!Nl)return RN(Rt),Nl=!0,!1;var Mt=Rt.tag,Ut;if((Ut=Mt!==3&&Mt!==27)&&((Ut=Mt===5)&&(Ut=Rt.type,Ut=!(Ut!=="form"&&Ut!=="button")||B6(Rt.type,Rt.memoizedProps)),Ut=!Ut),Ut&&Ld&&yE(Rt),RN(Rt),Mt===13){if(Rt=Rt.memoizedState,Rt=Rt!==null?Rt.dehydrated:null,!Rt)throw Error(pt(317));Ld=x6(Rt)}else if(Mt===31){if(Rt=Rt.memoizedState,Rt=Rt!==null?Rt.dehydrated:null,!Rt)throw Error(pt(317));Ld=x6(Rt)}else Mt===27?(Mt=Ld,ME(Rt.type)?(Rt=I6,I6=null,Ld=Rt):Ld=Mt):Ld=Ag?ib(Rt.stateNode.nextSibling):null;return!0}function RB(){Ld=Ag=null,Nl=!1}function YQ(){var Rt=bE;return Rt!==null&&(Qh===null?Qh=Rt:Qh.push.apply(Qh,Rt),bE=null),Rt}function wE(Rt){bE===null?bE=[Rt]:bE.push(Rt)}var aR=ur(null),PB=null,sw=null;function kE(Rt,Mt,Ut){ir(aR,Mt._currentValue),Mt._currentValue=Ut}function $1(Rt){Rt._currentValue=aR.current,yr(aR)}function iR(Rt,Mt,Ut){for(;Rt!==null;){var Kt=Rt.alternate;if((Rt.childLanes&Mt)!==Mt?(Rt.childLanes|=Mt,Kt!==null&&(Kt.childLanes|=Mt)):Kt!==null&&(Kt.childLanes&Mt)!==Mt&&(Kt.childLanes|=Mt),Rt===Ut)break;Rt=Rt.return}}function oR(Rt,Mt,Ut,Kt){var jn=Rt.child;for(jn!==null&&(jn.return=Rt);jn!==null;){var er=jn.dependencies;if(er!==null){var xr=jn.child;er=er.firstContext;e:for(;er!==null;){var Hr=er;er=jn;for(var Ra=0;Ra<Mt.length;Ra++)if(Hr.context===Mt[Ra]){er.lanes|=Ut,Hr=er.alternate,Hr!==null&&(Hr.lanes|=Ut),iR(er.return,Ut,Rt),Kt||(xr=null);break e}er=Hr.next}}else if(jn.tag===18){if(xr=jn.return,xr===null)throw Error(pt(341));xr.lanes|=Ut,er=xr.alternate,er!==null&&(er.lanes|=Ut),iR(xr,Ut,Rt),xr=null}else xr=jn.child;if(xr!==null)xr.return=jn;else for(xr=jn;xr!==null;){if(xr===Rt){xr=null;break}if(jn=xr.sibling,jn!==null){jn.return=xr.return,xr=jn;break}xr=xr.return}jn=xr}}function ZQ(Rt,Mt,Ut,Kt){Rt=null;for(var jn=Mt,er=!1;jn!==null;){if(!er){if((jn.flags&524288)!==0)er=!0;else if((jn.flags&262144)!==0)break}if(jn.tag===10){var xr=jn.alternate;if(xr===null)throw Error(pt(387));if(xr=xr.memoizedProps,xr!==null){var Hr=jn.type;t0(jn.pendingProps.value,xr.value)||(Rt!==null?Rt.push(Hr):Rt=[Hr])}}else if(jn===Dr.current){if(xr=jn.alternate,xr===null)throw Error(pt(387));xr.memoizedState.memoizedState!==jn.memoizedState.memoizedState&&(Rt!==null?Rt.push(gI):Rt=[gI])}jn=jn.return}Rt!==null&&oR(Mt,Rt,Ut,Kt),Mt.flags|=262144}function L_(Rt){for(Rt=Rt.firstContext;Rt!==null;){if(!t0(Rt.context._currentValue,Rt.memoizedValue))return!0;Rt=Rt.next}return!1}function EE(Rt){PB=Rt,sw=null,Rt=Rt.dependencies,Rt!==null&&(Rt.firstContext=null)}function Ng(Rt){return sR(PB,Rt)}function G_(Rt,Mt){return PB===null&&EE(Rt),sR(Rt,Mt)}function sR(Rt,Mt){var Ut=Mt._currentValue;if(Mt={context:Mt,memoizedValue:Ut,next:null},sw===null){if(Rt===null)throw Error(pt(308));sw=Mt,Rt.dependencies={lanes:0,firstContext:Mt},Rt.flags|=524288}else sw=sw.next=Mt;return Ut}var cX=typeof AbortController<"u"?AbortController:function(){var Rt=[],Mt=this.signal={aborted:!1,addEventListener:function(Ut,Kt){Rt.push(Kt)}};this.abort=function(){Mt.aborted=!0,Rt.forEach(function(Ut){return Ut()})}},lX=At.unstable_scheduleCallback,q_=At.unstable_NormalPriority,um={$$typeof:jt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function AR(){return{controller:new cX,data:new Map,refCount:0}}function j_(Rt){Rt.refCount--,Rt.refCount===0&&lX(q_,function(){Rt.controller.abort()})}var U_=null,cR=0,XQ=0,WQ=null;function uX(Rt,Mt){if(U_===null){var Ut=U_=[];cR=0,XQ=m6(),WQ={status:"pending",value:void 0,then:function(Kt){Ut.push(Kt)}}}return cR++,Mt.then(PN,PN),Mt}function PN(){if(--cR===0&&U_!==null){WQ!==null&&(WQ.status="fulfilled");var Rt=U_;U_=null,XQ=0,WQ=null;for(var Mt=0;Mt<Rt.length;Mt++)(0,Rt[Mt])()}}function dX(Rt,Mt){var Ut=[],Kt={status:"pending",value:null,reason:null,then:function(jn){Ut.push(jn)}};return Rt.then(function(){Kt.status="fulfilled",Kt.value=Mt;for(var jn=0;jn<Ut.length;jn++)(0,Ut[jn])(Mt)},function(jn){for(Kt.status="rejected",Kt.reason=jn,jn=0;jn<Ut.length;jn++)(0,Ut[jn])(void 0)}),Kt}var FN=Yn.S;Yn.S=function(Rt,Mt){dL=qa(),typeof Mt=="object"&&Mt!==null&&typeof Mt.then=="function"&&uX(Rt,Mt),FN!==null&&FN(Rt,Mt)};var FB=ur(null);function lR(){var Rt=FB.current;return Rt!==null?Rt:fd.pooledCache}function x4(Rt,Mt){Mt===null?ir(FB,FB.current):ir(FB,Mt.pool)}function MN(){var Rt=lR();return Rt===null?null:{parent:um._currentValue,pool:Rt}}var VQ=Error(pt(460)),uR=Error(pt(474)),S4=Error(pt(542)),D4={then:function(){}};function dR(Rt){return Rt=Rt.status,Rt==="fulfilled"||Rt==="rejected"}function NN(Rt,Mt,Ut){switch(Ut=Rt[Ut],Ut===void 0?Rt.push(Mt):Ut!==Mt&&(Mt.then(W0,W0),Mt=Ut),Mt.status){case"fulfilled":return Mt.value;case"rejected":throw Rt=Mt.reason,GN(Rt),Rt;default:if(typeof Mt.status=="string")Mt.then(W0,W0);else{if(Rt=fd,Rt!==null&&100<Rt.shellSuspendCounter)throw Error(pt(482));Rt=Mt,Rt.status="pending",Rt.then(function(Kt){if(Mt.status==="pending"){var jn=Mt;jn.status="fulfilled",jn.value=Kt}},function(Kt){if(Mt.status==="pending"){var jn=Mt;jn.status="rejected",jn.reason=Kt}})}switch(Mt.status){case"fulfilled":return Mt.value;case"rejected":throw Rt=Mt.reason,GN(Rt),Rt}throw NB=Mt,VQ}}function MB(Rt){try{var Mt=Rt._init;return Mt(Rt._payload)}catch(Ut){throw Ut!==null&&typeof Ut=="object"&&typeof Ut.then=="function"?(NB=Ut,VQ):Ut}}var NB=null;function LN(){if(NB===null)throw Error(pt(459));var Rt=NB;return NB=null,Rt}function GN(Rt){if(Rt===VQ||Rt===S4)throw Error(pt(483))}var KQ=null,z_=0;function $4(Rt){var Mt=z_;return z_+=1,KQ===null&&(KQ=[]),NN(KQ,Rt,Mt)}function H_(Rt,Mt){Mt=Mt.props.ref,Rt.ref=Mt!==void 0?Mt:null}function T4(Rt,Mt){throw Mt.$$typeof===vt?Error(pt(525)):(Rt=Object.prototype.toString.call(Mt),Error(pt(31,Rt==="[object Object]"?"object with keys {"+Object.keys(Mt).join(", ")+"}":Rt)))}function qN(Rt){function Mt(oi,Ua){if(Rt){var bi=oi.deletions;bi===null?(oi.deletions=[Ua],oi.flags|=16):bi.push(Ua)}}function Ut(oi,Ua){if(!Rt)return null;for(;Ua!==null;)Mt(oi,Ua),Ua=Ua.sibling;return null}function Kt(oi){for(var Ua=new Map;oi!==null;)oi.key!==null?Ua.set(oi.key,oi):Ua.set(oi.index,oi),oi=oi.sibling;return Ua}function jn(oi,Ua){return oi=S1(oi,Ua),oi.index=0,oi.sibling=null,oi}function er(oi,Ua,bi){return oi.index=bi,Rt?(bi=oi.alternate,bi!==null?(bi=bi.index,bi<Ua?(oi.flags|=67108866,Ua):bi):(oi.flags|=67108866,Ua)):(oi.flags|=1048576,Ua)}function xr(oi){return Rt&&oi.alternate===null&&(oi.flags|=67108866),oi}function Hr(oi,Ua,bi,Vi){return Ua===null||Ua.tag!==6?(Ua=J3(bi,oi.mode,Vi),Ua.return=oi,Ua):(Ua=jn(Ua,bi),Ua.return=oi,Ua)}function Ra(oi,Ua,bi,Vi){var xA=bi.type;return xA===Pt?no(oi,Ua,bi.props.children,Vi,bi.key):Ua!==null&&(Ua.elementType===xA||typeof xA=="object"&&xA!==null&&xA.$$typeof===Qn&&MB(xA)===Ua.type)?(Ua=jn(Ua,bi.props),H_(Ua,bi),Ua.return=oi,Ua):(Ua=_4(bi.type,bi.key,bi.props,null,oi.mode,Vi),H_(Ua,bi),Ua.return=oi,Ua)}function Ei(oi,Ua,bi,Vi){return Ua===null||Ua.tag!==4||Ua.stateNode.containerInfo!==bi.containerInfo||Ua.stateNode.implementation!==bi.implementation?(Ua=eR(bi,oi.mode,Vi),Ua.return=oi,Ua):(Ua=jn(Ua,bi.children||[]),Ua.return=oi,Ua)}function no(oi,Ua,bi,Vi,xA){return Ua===null||Ua.tag!==7?(Ua=TB(bi,oi.mode,Vi,xA),Ua.return=oi,Ua):(Ua=jn(Ua,bi),Ua.return=oi,Ua)}function fo(oi,Ua,bi){if(typeof Ua=="string"&&Ua!==""||typeof Ua=="number"||typeof Ua=="bigint")return Ua=J3(""+Ua,oi.mode,bi),Ua.return=oi,Ua;if(typeof Ua=="object"&&Ua!==null){switch(Ua.$$typeof){case St:return bi=_4(Ua.type,Ua.key,Ua.props,null,oi.mode,bi),H_(bi,Ua),bi.return=oi,bi;case $t:return Ua=eR(Ua,oi.mode,bi),Ua.return=oi,Ua;case Qn:return Ua=MB(Ua),fo(oi,Ua,bi)}if(Ar(Ua)||Vn(Ua))return Ua=TB(Ua,oi.mode,bi,null),Ua.return=oi,Ua;if(typeof Ua.then=="function")return fo(oi,$4(Ua),bi);if(Ua.$$typeof===jt)return fo(oi,G_(oi,Ua),bi);T4(oi,Ua)}return null}function Pi(oi,Ua,bi,Vi){var xA=Ua!==null?Ua.key:null;if(typeof bi=="string"&&bi!==""||typeof bi=="number"||typeof bi=="bigint")return xA!==null?null:Hr(oi,Ua,""+bi,Vi);if(typeof bi=="object"&&bi!==null){switch(bi.$$typeof){case St:return bi.key===xA?Ra(oi,Ua,bi,Vi):null;case $t:return bi.key===xA?Ei(oi,Ua,bi,Vi):null;case Qn:return bi=MB(bi),Pi(oi,Ua,bi,Vi)}if(Ar(bi)||Vn(bi))return xA!==null?null:no(oi,Ua,bi,Vi,null);if(typeof bi.then=="function")return Pi(oi,Ua,$4(bi),Vi);if(bi.$$typeof===jt)return Pi(oi,Ua,G_(oi,bi),Vi);T4(oi,bi)}return null}function Hi(oi,Ua,bi,Vi,xA){if(typeof Vi=="string"&&Vi!==""||typeof Vi=="number"||typeof Vi=="bigint")return oi=oi.get(bi)||null,Hr(Ua,oi,""+Vi,xA);if(typeof Vi=="object"&&Vi!==null){switch(Vi.$$typeof){case St:return oi=oi.get(Vi.key===null?bi:Vi.key)||null,Ra(Ua,oi,Vi,xA);case $t:return oi=oi.get(Vi.key===null?bi:Vi.key)||null,Ei(Ua,oi,Vi,xA);case Qn:return Vi=MB(Vi),Hi(oi,Ua,bi,Vi,xA)}if(Ar(Vi)||Vn(Vi))return oi=oi.get(bi)||null,no(Ua,oi,Vi,xA,null);if(typeof Vi.then=="function")return Hi(oi,Ua,bi,$4(Vi),xA);if(Vi.$$typeof===jt)return Hi(oi,Ua,bi,G_(Ua,Vi),xA);T4(Ua,Vi)}return null}function nA(oi,Ua,bi,Vi){for(var xA=null,ru=null,uA=Ua,vc=Ua=0,al=null;uA!==null&&vc<bi.length;vc++){uA.index>vc?(al=uA,uA=null):al=uA.sibling;var au=Pi(oi,uA,bi[vc],Vi);if(au===null){uA===null&&(uA=al);break}Rt&&uA&&au.alternate===null&&Mt(oi,uA),Ua=er(au,Ua,vc),ru===null?xA=au:ru.sibling=au,ru=au,uA=al}if(vc===bi.length)return Ut(oi,uA),Nl&&D1(oi,vc),xA;if(uA===null){for(;vc<bi.length;vc++)uA=fo(oi,bi[vc],Vi),uA!==null&&(Ua=er(uA,Ua,vc),ru===null?xA=uA:ru.sibling=uA,ru=uA);return Nl&&D1(oi,vc),xA}for(uA=Kt(uA);vc<bi.length;vc++)al=Hi(uA,oi,vc,bi[vc],Vi),al!==null&&(Rt&&al.alternate!==null&&uA.delete(al.key===null?vc:al.key),Ua=er(al,Ua,vc),ru===null?xA=al:ru.sibling=al,ru=al);return Rt&&uA.forEach(function(j1){return Mt(oi,j1)}),Nl&&D1(oi,vc),xA}function tc(oi,Ua,bi,Vi){if(bi==null)throw Error(pt(151));for(var xA=null,ru=null,uA=Ua,vc=Ua=0,al=null,au=bi.next();uA!==null&&!au.done;vc++,au=bi.next()){uA.index>vc?(al=uA,uA=null):al=uA.sibling;var j1=Pi(oi,uA,au.value,Vi);if(j1===null){uA===null&&(uA=al);break}Rt&&uA&&j1.alternate===null&&Mt(oi,uA),Ua=er(j1,Ua,vc),ru===null?xA=j1:ru.sibling=j1,ru=j1,uA=al}if(au.done)return Ut(oi,uA),Nl&&D1(oi,vc),xA;if(uA===null){for(;!au.done;vc++,au=bi.next())au=fo(oi,au.value,Vi),au!==null&&(Ua=er(au,Ua,vc),ru===null?xA=au:ru.sibling=au,ru=au);return Nl&&D1(oi,vc),xA}for(uA=Kt(uA);!au.done;vc++,au=bi.next())au=Hi(uA,oi,vc,au.value,Vi),au!==null&&(Rt&&au.alternate!==null&&uA.delete(au.key===null?vc:au.key),Ua=er(au,Ua,vc),ru===null?xA=au:ru.sibling=au,ru=au);return Rt&&uA.forEach(function(pw){return Mt(oi,pw)}),Nl&&D1(oi,vc),xA}function hd(oi,Ua,bi,Vi){if(typeof bi=="object"&&bi!==null&&bi.type===Pt&&bi.key===null&&(bi=bi.props.children),typeof bi=="object"&&bi!==null){switch(bi.$$typeof){case St:e:{for(var xA=bi.key;Ua!==null;){if(Ua.key===xA){if(xA=bi.type,xA===Pt){if(Ua.tag===7){Ut(oi,Ua.sibling),Vi=jn(Ua,bi.props.children),Vi.return=oi,oi=Vi;break e}}else if(Ua.elementType===xA||typeof xA=="object"&&xA!==null&&xA.$$typeof===Qn&&MB(xA)===Ua.type){Ut(oi,Ua.sibling),Vi=jn(Ua,bi.props),H_(Vi,bi),Vi.return=oi,oi=Vi;break e}Ut(oi,Ua);break}else Mt(oi,Ua);Ua=Ua.sibling}bi.type===Pt?(Vi=TB(bi.props.children,oi.mode,Vi,bi.key),Vi.return=oi,oi=Vi):(Vi=_4(bi.type,bi.key,bi.props,null,oi.mode,Vi),H_(Vi,bi),Vi.return=oi,oi=Vi)}return xr(oi);case $t:e:{for(xA=bi.key;Ua!==null;){if(Ua.key===xA)if(Ua.tag===4&&Ua.stateNode.containerInfo===bi.containerInfo&&Ua.stateNode.implementation===bi.implementation){Ut(oi,Ua.sibling),Vi=jn(Ua,bi.children||[]),Vi.return=oi,oi=Vi;break e}else{Ut(oi,Ua);break}else Mt(oi,Ua);Ua=Ua.sibling}Vi=eR(bi,oi.mode,Vi),Vi.return=oi,oi=Vi}return xr(oi);case Qn:return bi=MB(bi),hd(oi,Ua,bi,Vi)}if(Ar(bi))return nA(oi,Ua,bi,Vi);if(Vn(bi)){if(xA=Vn(bi),typeof xA!="function")throw Error(pt(150));return bi=xA.call(bi),tc(oi,Ua,bi,Vi)}if(typeof bi.then=="function")return hd(oi,Ua,$4(bi),Vi);if(bi.$$typeof===jt)return hd(oi,Ua,G_(oi,bi),Vi);T4(oi,bi)}return typeof bi=="string"&&bi!==""||typeof bi=="number"||typeof bi=="bigint"?(bi=""+bi,Ua!==null&&Ua.tag===6?(Ut(oi,Ua.sibling),Vi=jn(Ua,bi),Vi.return=oi,oi=Vi):(Ut(oi,Ua),Vi=J3(bi,oi.mode,Vi),Vi.return=oi,oi=Vi),xr(oi)):Ut(oi,Ua)}return function(oi,Ua,bi,Vi){try{z_=0;var xA=hd(oi,Ua,bi,Vi);return KQ=null,xA}catch(uA){if(uA===VQ||uA===S4)throw uA;var ru=n0(29,uA,null,oi.mode);return ru.lanes=Vi,ru.return=oi,ru}}}var LB=qN(!0),jN=qN(!1),CE=!1;function pR(Rt){Rt.updateQueue={baseState:Rt.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mR(Rt,Mt){Rt=Rt.updateQueue,Mt.updateQueue===Rt&&(Mt.updateQueue={baseState:Rt.baseState,firstBaseUpdate:Rt.firstBaseUpdate,lastBaseUpdate:Rt.lastBaseUpdate,shared:Rt.shared,callbacks:null})}function BE(Rt){return{lane:Rt,tag:0,payload:null,callback:null,next:null}}function QE(Rt,Mt,Ut){var Kt=Rt.updateQueue;if(Kt===null)return null;if(Kt=Kt.shared,(ku&2)!==0){var jn=Kt.pending;return jn===null?Mt.next=Mt:(Mt.next=jn.next,jn.next=Mt),Kt.pending=Mt,Mt=O4(Rt),_N(Rt,null,Ut),Mt}return v4(Rt,Kt,Mt,Ut),O4(Rt)}function Y_(Rt,Mt,Ut){if(Mt=Mt.updateQueue,Mt!==null&&(Mt=Mt.shared,(Ut&4194048)!==0)){var Kt=Mt.lanes;Kt&=Rt.pendingLanes,Ut|=Kt,Mt.lanes=Ut,xs(Rt,Ut)}}function gR(Rt,Mt){var Ut=Rt.updateQueue,Kt=Rt.alternate;if(Kt!==null&&(Kt=Kt.updateQueue,Ut===Kt)){var jn=null,er=null;if(Ut=Ut.firstBaseUpdate,Ut!==null){do{var xr={lane:Ut.lane,tag:Ut.tag,payload:Ut.payload,callback:null,next:null};er===null?jn=er=xr:er=er.next=xr,Ut=Ut.next}while(Ut!==null);er===null?jn=er=Mt:er=er.next=Mt}else jn=er=Mt;Ut={baseState:Kt.baseState,firstBaseUpdate:jn,lastBaseUpdate:er,shared:Kt.shared,callbacks:Kt.callbacks},Rt.updateQueue=Ut;return}Rt=Ut.lastBaseUpdate,Rt===null?Ut.firstBaseUpdate=Mt:Rt.next=Mt,Ut.lastBaseUpdate=Mt}var fR=!1;function Z_(){if(fR){var Rt=WQ;if(Rt!==null)throw Rt}}function X_(Rt,Mt,Ut,Kt){fR=!1;var jn=Rt.updateQueue;CE=!1;var er=jn.firstBaseUpdate,xr=jn.lastBaseUpdate,Hr=jn.shared.pending;if(Hr!==null){jn.shared.pending=null;var Ra=Hr,Ei=Ra.next;Ra.next=null,xr===null?er=Ei:xr.next=Ei,xr=Ra;var no=Rt.alternate;no!==null&&(no=no.updateQueue,Hr=no.lastBaseUpdate,Hr!==xr&&(Hr===null?no.firstBaseUpdate=Ei:Hr.next=Ei,no.lastBaseUpdate=Ra))}if(er!==null){var fo=jn.baseState;xr=0,no=Ei=Ra=null,Hr=er;do{var Pi=Hr.lane&-536870913,Hi=Pi!==Hr.lane;if(Hi?(Tl&Pi)===Pi:(Kt&Pi)===Pi){Pi!==0&&Pi===XQ&&(fR=!0),no!==null&&(no=no.next={lane:0,tag:Hr.tag,payload:Hr.payload,callback:null,next:null});e:{var nA=Rt,tc=Hr;Pi=Mt;var hd=Ut;switch(tc.tag){case 1:if(nA=tc.payload,typeof nA=="function"){fo=nA.call(hd,fo,Pi);break e}fo=nA;break e;case 3:nA.flags=nA.flags&-65537|128;case 0:if(nA=tc.payload,Pi=typeof nA=="function"?nA.call(hd,fo,Pi):nA,Pi==null)break e;fo=Qt({},fo,Pi);break e;case 2:CE=!0}}Pi=Hr.callback,Pi!==null&&(Rt.flags|=64,Hi&&(Rt.flags|=8192),Hi=jn.callbacks,Hi===null?jn.callbacks=[Pi]:Hi.push(Pi))}else Hi={lane:Pi,tag:Hr.tag,payload:Hr.payload,callback:Hr.callback,next:null},no===null?(Ei=no=Hi,Ra=fo):no=no.next=Hi,xr|=Pi;if(Hr=Hr.next,Hr===null){if(Hr=jn.shared.pending,Hr===null)break;Hi=Hr,Hr=Hi.next,Hi.next=null,jn.lastBaseUpdate=Hi,jn.shared.pending=null}}while(!0);no===null&&(Ra=fo),jn.baseState=Ra,jn.firstBaseUpdate=Ei,jn.lastBaseUpdate=no,er===null&&(jn.shared.lanes=0),DE|=xr,Rt.lanes=xr,Rt.memoizedState=fo}}function UN(Rt,Mt){if(typeof Rt!="function")throw Error(pt(191,Rt));Rt.call(Mt)}function zN(Rt,Mt){var Ut=Rt.callbacks;if(Ut!==null)for(Rt.callbacks=null,Rt=0;Rt<Ut.length;Rt++)UN(Ut[Rt],Mt)}var JQ=ur(null),R4=ur(0);function HN(Rt,Mt){Rt=L1,ir(R4,Rt),ir(JQ,Mt),L1=Rt|Mt.baseLanes}function hR(){ir(R4,L1),ir(JQ,JQ.current)}function bR(){L1=R4.current,yr(JQ),yr(R4)}var r0=ur(null),rb=null;function vE(Rt){var Mt=Rt.alternate;ir(Lp,Lp.current&1),ir(r0,Rt),rb===null&&(Mt===null||JQ.current!==null||Mt.memoizedState!==null)&&(rb=Rt)}function yR(Rt){ir(Lp,Lp.current),ir(r0,Rt),rb===null&&(rb=Rt)}function YN(Rt){Rt.tag===22?(ir(Lp,Lp.current),ir(r0,Rt),rb===null&&(rb=Rt)):OE()}function OE(){ir(Lp,Lp.current),ir(r0,r0.current)}function a0(Rt){yr(r0),rb===Rt&&(rb=null),yr(Lp)}var Lp=ur(0);function P4(Rt){for(var Mt=Rt;Mt!==null;){if(Mt.tag===13){var Ut=Mt.memoizedState;if(Ut!==null&&(Ut=Ut.dehydrated,Ut===null||O6(Ut)||_6(Ut)))return Mt}else if(Mt.tag===19&&(Mt.memoizedProps.revealOrder==="forwards"||Mt.memoizedProps.revealOrder==="backwards"||Mt.memoizedProps.revealOrder==="unstable_legacy-backwards"||Mt.memoizedProps.revealOrder==="together")){if((Mt.flags&128)!==0)return Mt}else if(Mt.child!==null){Mt.child.return=Mt,Mt=Mt.child;continue}if(Mt===Rt)break;for(;Mt.sibling===null;){if(Mt.return===null||Mt.return===Rt)return null;Mt=Mt.return}Mt.sibling.return=Mt.return,Mt=Mt.sibling}return null}var T1=0,jc=null,Ju=null,dm=null,F4=!1,ev=!1,GB=!1,M4=0,W_=0,tv=null,pX=0;function Bp(){throw Error(pt(321))}function wR(Rt,Mt){if(Mt===null)return!1;for(var Ut=0;Ut<Mt.length&&Ut<Rt.length;Ut++)if(!t0(Rt[Ut],Mt[Ut]))return!1;return!0}function kR(Rt,Mt,Ut,Kt,jn,er){return T1=er,jc=Mt,Mt.memoizedState=null,Mt.updateQueue=null,Mt.lanes=0,Yn.H=Rt===null||Rt.memoizedState===null?x9:PR,GB=!1,er=Ut(Kt,jn),GB=!1,ev&&(er=XN(Mt,Ut,Kt,jn)),ZN(Rt),er}function ZN(Rt){Yn.H=eI;var Mt=Ju!==null&&Ju.next!==null;if(T1=0,dm=Ju=jc=null,F4=!1,W_=0,tv=null,Mt)throw Error(pt(300));Rt===null||qp||(Rt=Rt.dependencies,Rt!==null&&L_(Rt)&&(qp=!0))}function XN(Rt,Mt,Ut,Kt){jc=Rt;var jn=0;do{if(ev&&(tv=null),W_=0,ev=!1,25<=jn)throw Error(pt(301));if(jn+=1,dm=Ju=null,Rt.updateQueue!=null){var er=Rt.updateQueue;er.lastEffect=null,er.events=null,er.stores=null,er.memoCache!=null&&(er.memoCache.index=0)}Yn.H=wX,er=Mt(Ut,Kt)}while(ev);return er}function mX(){var Rt=Yn.H,Mt=Rt.useState()[0];return Mt=typeof Mt.then=="function"?V_(Mt):Mt,Rt=Rt.useState()[0],(Ju!==null?Ju.memoizedState:null)!==Rt&&(jc.flags|=1024),Mt}function CR(){var Rt=M4!==0;return M4=0,Rt}function BR(Rt,Mt,Ut){Mt.updateQueue=Rt.updateQueue,Mt.flags&=-2053,Rt.lanes&=~Ut}function QR(Rt){if(F4){for(Rt=Rt.memoizedState;Rt!==null;){var Mt=Rt.queue;Mt!==null&&(Mt.pending=null),Rt=Rt.next}F4=!1}T1=0,dm=Ju=jc=null,ev=!1,W_=M4=0,tv=null}function Hf(){var Rt={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dm===null?jc.memoizedState=dm=Rt:dm=dm.next=Rt,dm}function Gp(){if(Ju===null){var Rt=jc.alternate;Rt=Rt!==null?Rt.memoizedState:null}else Rt=Ju.next;var Mt=dm===null?jc.memoizedState:dm.next;if(Mt!==null)dm=Mt,Ju=Rt;else{if(Rt===null)throw jc.alternate===null?Error(pt(467)):Error(pt(310));Ju=Rt,Rt={memoizedState:Ju.memoizedState,baseState:Ju.baseState,baseQueue:Ju.baseQueue,queue:Ju.queue,next:null},dm===null?jc.memoizedState=dm=Rt:dm=dm.next=Rt}return dm}function N4(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function V_(Rt){var Mt=W_;return W_+=1,tv===null&&(tv=[]),Rt=NN(tv,Rt,Mt),Mt=jc,(dm===null?Mt.memoizedState:dm.next)===null&&(Mt=Mt.alternate,Yn.H=Mt===null||Mt.memoizedState===null?x9:PR),Rt}function L4(Rt){if(Rt!==null&&typeof Rt=="object"){if(typeof Rt.then=="function")return V_(Rt);if(Rt.$$typeof===jt)return Ng(Rt)}throw Error(pt(438,String(Rt)))}function vR(Rt){var Mt=null,Ut=jc.updateQueue;if(Ut!==null&&(Mt=Ut.memoCache),Mt==null){var Kt=jc.alternate;Kt!==null&&(Kt=Kt.updateQueue,Kt!==null&&(Kt=Kt.memoCache,Kt!=null&&(Mt={data:Kt.data.map(function(jn){return jn.slice()}),index:0})))}if(Mt==null&&(Mt={data:[],index:0}),Ut===null&&(Ut=N4(),jc.updateQueue=Ut),Ut.memoCache=Mt,Ut=Mt.data[Mt.index],Ut===void 0)for(Ut=Mt.data[Mt.index]=Array(Rt),Kt=0;Kt<Rt;Kt++)Ut[Kt]=Gn;return Mt.index++,Ut}function R1(Rt,Mt){return typeof Mt=="function"?Mt(Rt):Mt}function G4(Rt){var Mt=Gp();return OR(Mt,Ju,Rt)}function OR(Rt,Mt,Ut){var Kt=Rt.queue;if(Kt===null)throw Error(pt(311));Kt.lastRenderedReducer=Ut;var jn=Rt.baseQueue,er=Kt.pending;if(er!==null){if(jn!==null){var xr=jn.next;jn.next=er.next,er.next=xr}Mt.baseQueue=jn=er,Kt.pending=null}if(er=Rt.baseState,jn===null)Rt.memoizedState=er;else{Mt=jn.next;var Hr=xr=null,Ra=null,Ei=Mt,no=!1;do{var fo=Ei.lane&-536870913;if(fo!==Ei.lane?(Tl&fo)===fo:(T1&fo)===fo){var Pi=Ei.revertLane;if(Pi===0)Ra!==null&&(Ra=Ra.next={lane:0,revertLane:0,gesture:null,action:Ei.action,hasEagerState:Ei.hasEagerState,eagerState:Ei.eagerState,next:null}),fo===XQ&&(no=!0);else if((T1&Pi)===Pi){Ei=Ei.next,Pi===XQ&&(no=!0);continue}else fo={lane:0,revertLane:Ei.revertLane,gesture:null,action:Ei.action,hasEagerState:Ei.hasEagerState,eagerState:Ei.eagerState,next:null},Ra===null?(Hr=Ra=fo,xr=er):Ra=Ra.next=fo,jc.lanes|=Pi,DE|=Pi;fo=Ei.action,GB&&Ut(er,fo),er=Ei.hasEagerState?Ei.eagerState:Ut(er,fo)}else Pi={lane:fo,revertLane:Ei.revertLane,gesture:Ei.gesture,action:Ei.action,hasEagerState:Ei.hasEagerState,eagerState:Ei.eagerState,next:null},Ra===null?(Hr=Ra=Pi,xr=er):Ra=Ra.next=Pi,jc.lanes|=fo,DE|=fo;Ei=Ei.next}while(Ei!==null&&Ei!==Mt);if(Ra===null?xr=er:Ra.next=Hr,!t0(er,Rt.memoizedState)&&(qp=!0,no&&(Ut=WQ,Ut!==null)))throw Ut;Rt.memoizedState=er,Rt.baseState=xr,Rt.baseQueue=Ra,Kt.lastRenderedState=er}return jn===null&&(Kt.lanes=0),[Rt.memoizedState,Kt.dispatch]}function WN(Rt){var Mt=Gp(),Ut=Mt.queue;if(Ut===null)throw Error(pt(311));Ut.lastRenderedReducer=Rt;var Kt=Ut.dispatch,jn=Ut.pending,er=Mt.memoizedState;if(jn!==null){Ut.pending=null;var xr=jn=jn.next;do er=Rt(er,xr.action),xr=xr.next;while(xr!==jn);t0(er,Mt.memoizedState)||(qp=!0),Mt.memoizedState=er,Mt.baseQueue===null&&(Mt.baseState=er),Ut.lastRenderedState=er}return[er,Kt]}function VN(Rt,Mt,Ut){var Kt=jc,jn=Gp(),er=Nl;if(er){if(Ut===void 0)throw Error(pt(407));Ut=Ut()}else Ut=Mt();var xr=!t0((Ju||jn).memoizedState,Ut);if(xr&&(jn.memoizedState=Ut,qp=!0),jn=jn.queue,xR(e9.bind(null,Kt,jn,Rt),[Rt]),jn.getSnapshot!==Mt||xr||dm!==null&&dm.memoizedState.tag&1){if(Kt.flags|=2048,nv(9,{destroy:void 0},JN.bind(null,Kt,jn,Ut,Mt),null),fd===null)throw Error(pt(349));er||(T1&127)!==0||KN(Kt,Mt,Ut)}return Ut}function KN(Rt,Mt,Ut){Rt.flags|=16384,Rt={getSnapshot:Mt,value:Ut},Mt=jc.updateQueue,Mt===null?(Mt=N4(),jc.updateQueue=Mt,Mt.stores=[Rt]):(Ut=Mt.stores,Ut===null?Mt.stores=[Rt]:Ut.push(Rt))}function JN(Rt,Mt,Ut,Kt){Mt.value=Ut,Mt.getSnapshot=Kt,t9(Mt)&&n9(Rt)}function e9(Rt,Mt,Ut){return Ut(function(){t9(Mt)&&n9(Rt)})}function t9(Rt){var Mt=Rt.getSnapshot;Rt=Rt.value;try{var Ut=Mt();return!t0(Rt,Ut)}catch{return!0}}function n9(Rt){var Mt=$B(Rt,2);Mt!==null&&Oh(Mt,Rt,2)}function _R(Rt){var Mt=Hf();if(typeof Rt=="function"){var Ut=Rt;if(Rt=Ut(),GB){Ms(!0);try{Ut()}finally{Ms(!1)}}}return Mt.memoizedState=Mt.baseState=Rt,Mt.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:R1,lastRenderedState:Rt},Mt}function r9(Rt,Mt,Ut,Kt){return Rt.baseState=Ut,OR(Rt,Ju,typeof Kt=="function"?Kt:R1)}function gX(Rt,Mt,Ut,Kt,jn){if(z4(Rt))throw Error(pt(485));if(Rt=Mt.action,Rt!==null){var er={payload:jn,action:Rt,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(xr){er.listeners.push(xr)}};Yn.T!==null?Ut(!0):er.isTransition=!1,Kt(er),Ut=Mt.pending,Ut===null?(er.next=Mt.pending=er,a9(Mt,er)):(er.next=Ut.next,Mt.pending=Ut.next=er)}}function a9(Rt,Mt){var Ut=Mt.action,Kt=Mt.payload,jn=Rt.state;if(Mt.isTransition){var er=Yn.T,xr={};Yn.T=xr;try{var Hr=Ut(jn,Kt),Ra=Yn.S;Ra!==null&&Ra(xr,Hr),i9(Rt,Mt,Hr)}catch(Ei){IR(Rt,Mt,Ei)}finally{er!==null&&xr.types!==null&&(er.types=xr.types),Yn.T=er}}else try{er=Ut(jn,Kt),i9(Rt,Mt,er)}catch(Ei){IR(Rt,Mt,Ei)}}function i9(Rt,Mt,Ut){Ut!==null&&typeof Ut=="object"&&typeof Ut.then=="function"?Ut.then(function(Kt){o9(Rt,Mt,Kt)},function(Kt){return IR(Rt,Mt,Kt)}):o9(Rt,Mt,Ut)}function o9(Rt,Mt,Ut){Mt.status="fulfilled",Mt.value=Ut,s9(Mt),Rt.state=Ut,Mt=Rt.pending,Mt!==null&&(Ut=Mt.next,Ut===Mt?Rt.pending=null:(Ut=Ut.next,Mt.next=Ut,a9(Rt,Ut)))}function IR(Rt,Mt,Ut){var Kt=Rt.pending;if(Rt.pending=null,Kt!==null){Kt=Kt.next;do Mt.status="rejected",Mt.reason=Ut,s9(Mt),Mt=Mt.next;while(Mt!==Kt)}Rt.action=null}function s9(Rt){Rt=Rt.listeners;for(var Mt=0;Mt<Rt.length;Mt++)(0,Rt[Mt])()}function A9(Rt,Mt){return Mt}function c9(Rt,Mt){if(Nl){var Ut=fd.formState;if(Ut!==null){e:{var Kt=jc;if(Nl){if(Ld){t:{for(var jn=Ld,er=nb;jn.nodeType!==8;){if(!er){jn=null;break t}if(jn=ib(jn.nextSibling),jn===null){jn=null;break t}}er=jn.data,jn=er==="F!"||er==="F"?jn:null}if(jn){Ld=ib(jn.nextSibling),Kt=jn.data==="F!";break e}}yE(Kt)}Kt=!1}Kt&&(Mt=Ut[0])}}return Ut=Hf(),Ut.memoizedState=Ut.baseState=Mt,Kt={pending:null,lanes:0,dispatch:null,lastRenderedReducer:A9,lastRenderedState:Mt},Ut.queue=Kt,Ut=O9.bind(null,jc,Kt),Kt.dispatch=Ut,Kt=_R(!1),er=RR.bind(null,jc,!1,Kt.queue),Kt=Hf(),jn={state:Mt,dispatch:null,action:Rt,pending:null},Kt.queue=jn,Ut=gX.bind(null,jc,jn,er,Ut),jn.dispatch=Ut,Kt.memoizedState=Rt,[Mt,Ut,!1]}function l9(Rt){var Mt=Gp();return u9(Mt,Ju,Rt)}function u9(Rt,Mt,Ut){if(Mt=OR(Rt,Mt,A9)[0],Rt=G4(R1)[0],typeof Mt=="object"&&Mt!==null&&typeof Mt.then=="function")try{var Kt=V_(Mt)}catch(xr){throw xr===VQ?S4:xr}else Kt=Mt;Mt=Gp();var jn=Mt.queue,er=jn.dispatch;return Ut!==Mt.memoizedState&&(jc.flags|=2048,nv(9,{destroy:void 0},fX.bind(null,jn,Ut),null)),[Kt,er,Rt]}function fX(Rt,Mt){Rt.action=Mt}function d9(Rt){var Mt=Gp(),Ut=Ju;if(Ut!==null)return u9(Mt,Ut,Rt);Gp(),Mt=Mt.memoizedState,Ut=Gp();var Kt=Ut.queue.dispatch;return Ut.memoizedState=Rt,[Mt,Kt,!1]}function nv(Rt,Mt,Ut,Kt){return Rt={tag:Rt,create:Ut,deps:Kt,inst:Mt,next:null},Mt=jc.updateQueue,Mt===null&&(Mt=N4(),jc.updateQueue=Mt),Ut=Mt.lastEffect,Ut===null?Mt.lastEffect=Rt.next=Rt:(Kt=Ut.next,Ut.next=Rt,Rt.next=Kt,Mt.lastEffect=Rt),Rt}function p9(){return Gp().memoizedState}function q4(Rt,Mt,Ut,Kt){var jn=Hf();jc.flags|=Rt,jn.memoizedState=nv(1|Mt,{destroy:void 0},Ut,Kt===void 0?null:Kt)}function j4(Rt,Mt,Ut,Kt){var jn=Gp();Kt=Kt===void 0?null:Kt;var er=jn.memoizedState.inst;Ju!==null&&Kt!==null&&wR(Kt,Ju.memoizedState.deps)?jn.memoizedState=nv(Mt,er,Ut,Kt):(jc.flags|=Rt,jn.memoizedState=nv(1|Mt,er,Ut,Kt))}function m9(Rt,Mt){q4(8390656,8,Rt,Mt)}function xR(Rt,Mt){j4(2048,8,Rt,Mt)}function hX(Rt){jc.flags|=4;var Mt=jc.updateQueue;if(Mt===null)Mt=N4(),jc.updateQueue=Mt,Mt.events=[Rt];else{var Ut=Mt.events;Ut===null?Mt.events=[Rt]:Ut.push(Rt)}}function g9(Rt){var Mt=Gp().memoizedState;return hX({ref:Mt,nextImpl:Rt}),function(){if((ku&2)!==0)throw Error(pt(440));return Mt.impl.apply(void 0,arguments)}}function f9(Rt,Mt){return j4(4,2,Rt,Mt)}function h9(Rt,Mt){return j4(4,4,Rt,Mt)}function b9(Rt,Mt){if(typeof Mt=="function"){Rt=Rt();var Ut=Mt(Rt);return function(){typeof Ut=="function"?Ut():Mt(null)}}if(Mt!=null)return Rt=Rt(),Mt.current=Rt,function(){Mt.current=null}}function y9(Rt,Mt,Ut){Ut=Ut!=null?Ut.concat([Rt]):null,j4(4,4,b9.bind(null,Mt,Rt),Ut)}function SR(){}function w9(Rt,Mt){var Ut=Gp();Mt=Mt===void 0?null:Mt;var Kt=Ut.memoizedState;return Mt!==null&&wR(Mt,Kt[1])?Kt[0]:(Ut.memoizedState=[Rt,Mt],Rt)}function k9(Rt,Mt){var Ut=Gp();Mt=Mt===void 0?null:Mt;var Kt=Ut.memoizedState;if(Mt!==null&&wR(Mt,Kt[1]))return Kt[0];if(Kt=Rt(),GB){Ms(!0);try{Rt()}finally{Ms(!1)}}return Ut.memoizedState=[Kt,Mt],Kt}function DR(Rt,Mt,Ut){return Ut===void 0||(T1&1073741824)!==0&&(Tl&261930)===0?Rt.memoizedState=Mt:(Rt.memoizedState=Ut,Rt=mL(),jc.lanes|=Rt,DE|=Rt,Ut)}function E9(Rt,Mt,Ut,Kt){return t0(Ut,Mt)?Ut:JQ.current!==null?(Rt=DR(Rt,Ut,Kt),t0(Rt,Mt)||(qp=!0),Rt):(T1&42)===0||(T1&1073741824)!==0&&(Tl&261930)===0?(qp=!0,Rt.memoizedState=Ut):(Rt=mL(),jc.lanes|=Rt,DE|=Rt,Mt)}function C9(Rt,Mt,Ut,Kt,jn){var er=lr.p;lr.p=er!==0&&8>er?er:8;var xr=Yn.T,Hr={};Yn.T=Hr,RR(Rt,!1,Mt,Ut);try{var Ra=jn(),Ei=Yn.S;if(Ei!==null&&Ei(Hr,Ra),Ra!==null&&typeof Ra=="object"&&typeof Ra.then=="function"){var no=dX(Ra,Kt);J_(Rt,Mt,no,A0(Rt))}else J_(Rt,Mt,Kt,A0(Rt))}catch(fo){J_(Rt,Mt,{then:function(){},status:"rejected",reason:fo},A0())}finally{lr.p=er,xr!==null&&Hr.types!==null&&(xr.types=Hr.types),Yn.T=xr}}function $R(){}function K_(Rt,Mt,Ut,Kt){if(Rt.tag!==5)throw Error(pt(476));var jn=B9(Rt).queue;C9(Rt,jn,Mt,nr,Ut===null?$R:function(){return U4(Rt),Ut(Kt)})}function B9(Rt){var Mt=Rt.memoizedState;if(Mt!==null)return Mt;Mt={memoizedState:nr,baseState:nr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:R1,lastRenderedState:nr},next:null};var Ut={};return Mt.next={memoizedState:Ut,baseState:Ut,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:R1,lastRenderedState:Ut},next:null},Rt.memoizedState=Mt,Rt=Rt.alternate,Rt!==null&&(Rt.memoizedState=Mt),Mt}function U4(Rt){var Mt=B9(Rt);Mt.next===null&&(Mt=Rt.alternate.memoizedState),J_(Rt,Mt.next.queue,{},A0())}function TR(){return Ng(gI)}function Q9(){return Gp().memoizedState}function v9(){return Gp().memoizedState}function bX(Rt){for(var Mt=Rt.return;Mt!==null;){switch(Mt.tag){case 24:case 3:var Ut=A0();Rt=BE(Ut);var Kt=QE(Mt,Rt,Ut);Kt!==null&&(Oh(Kt,Mt,Ut),Y_(Kt,Mt,Ut)),Mt={cache:AR()},Rt.payload=Mt;return}Mt=Mt.return}}function yX(Rt,Mt,Ut){var Kt=A0();Ut={lane:Kt,revertLane:0,gesture:null,action:Ut,hasEagerState:!1,eagerState:null,next:null},z4(Rt)?_9(Mt,Ut):(Ut=V3(Rt,Mt,Ut,Kt),Ut!==null&&(Oh(Ut,Rt,Kt),I9(Ut,Mt,Kt)))}function O9(Rt,Mt,Ut){var Kt=A0();J_(Rt,Mt,Ut,Kt)}function J_(Rt,Mt,Ut,Kt){var jn={lane:Kt,revertLane:0,gesture:null,action:Ut,hasEagerState:!1,eagerState:null,next:null};if(z4(Rt))_9(Mt,jn);else{var er=Rt.alternate;if(Rt.lanes===0&&(er===null||er.lanes===0)&&(er=Mt.lastRenderedReducer,er!==null))try{var xr=Mt.lastRenderedState,Hr=er(xr,Ut);if(jn.hasEagerState=!0,jn.eagerState=Hr,t0(Hr,xr))return v4(Rt,Mt,jn,0),fd===null&&Q4(),!1}catch{}if(Ut=V3(Rt,Mt,jn,Kt),Ut!==null)return Oh(Ut,Rt,Kt),I9(Ut,Mt,Kt),!0}return!1}function RR(Rt,Mt,Ut,Kt){if(Kt={lane:2,revertLane:m6(),gesture:null,action:Kt,hasEagerState:!1,eagerState:null,next:null},z4(Rt)){if(Mt)throw Error(pt(479))}else Mt=V3(Rt,Ut,Kt,2),Mt!==null&&Oh(Mt,Rt,2)}function z4(Rt){var Mt=Rt.alternate;return Rt===jc||Mt!==null&&Mt===jc}function _9(Rt,Mt){ev=F4=!0;var Ut=Rt.pending;Ut===null?Mt.next=Mt:(Mt.next=Ut.next,Ut.next=Mt),Rt.pending=Mt}function I9(Rt,Mt,Ut){if((Ut&4194048)!==0){var Kt=Mt.lanes;Kt&=Rt.pendingLanes,Ut|=Kt,Mt.lanes=Ut,xs(Rt,Ut)}}var eI={readContext:Ng,use:L4,useCallback:Bp,useContext:Bp,useEffect:Bp,useImperativeHandle:Bp,useLayoutEffect:Bp,useInsertionEffect:Bp,useMemo:Bp,useReducer:Bp,useRef:Bp,useState:Bp,useDebugValue:Bp,useDeferredValue:Bp,useTransition:Bp,useSyncExternalStore:Bp,useId:Bp,useHostTransitionStatus:Bp,useFormState:Bp,useActionState:Bp,useOptimistic:Bp,useMemoCache:Bp,useCacheRefresh:Bp};eI.useEffectEvent=Bp;var x9={readContext:Ng,use:L4,useCallback:function(Rt,Mt){return Hf().memoizedState=[Rt,Mt===void 0?null:Mt],Rt},useContext:Ng,useEffect:m9,useImperativeHandle:function(Rt,Mt,Ut){Ut=Ut!=null?Ut.concat([Rt]):null,q4(4194308,4,b9.bind(null,Mt,Rt),Ut)},useLayoutEffect:function(Rt,Mt){return q4(4194308,4,Rt,Mt)},useInsertionEffect:function(Rt,Mt){q4(4,2,Rt,Mt)},useMemo:function(Rt,Mt){var Ut=Hf();Mt=Mt===void 0?null:Mt;var Kt=Rt();if(GB){Ms(!0);try{Rt()}finally{Ms(!1)}}return Ut.memoizedState=[Kt,Mt],Kt},useReducer:function(Rt,Mt,Ut){var Kt=Hf();if(Ut!==void 0){var jn=Ut(Mt);if(GB){Ms(!0);try{Ut(Mt)}finally{Ms(!1)}}}else jn=Mt;return Kt.memoizedState=Kt.baseState=jn,Rt={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rt,lastRenderedState:jn},Kt.queue=Rt,Rt=Rt.dispatch=yX.bind(null,jc,Rt),[Kt.memoizedState,Rt]},useRef:function(Rt){var Mt=Hf();return Rt={current:Rt},Mt.memoizedState=Rt},useState:function(Rt){Rt=_R(Rt);var Mt=Rt.queue,Ut=O9.bind(null,jc,Mt);return Mt.dispatch=Ut,[Rt.memoizedState,Ut]},useDebugValue:SR,useDeferredValue:function(Rt,Mt){var Ut=Hf();return DR(Ut,Rt,Mt)},useTransition:function(){var Rt=_R(!1);return Rt=C9.bind(null,jc,Rt.queue,!0,!1),Hf().memoizedState=Rt,[!1,Rt]},useSyncExternalStore:function(Rt,Mt,Ut){var Kt=jc,jn=Hf();if(Nl){if(Ut===void 0)throw Error(pt(407));Ut=Ut()}else{if(Ut=Mt(),fd===null)throw Error(pt(349));(Tl&127)!==0||KN(Kt,Mt,Ut)}jn.memoizedState=Ut;var er={value:Ut,getSnapshot:Mt};return jn.queue=er,m9(e9.bind(null,Kt,er,Rt),[Rt]),Kt.flags|=2048,nv(9,{destroy:void 0},JN.bind(null,Kt,er,Ut,Mt),null),Ut},useId:function(){var Rt=Hf(),Mt=fd.identifierPrefix;if(Nl){var Ut=ow,Kt=iw;Ut=(Kt&~(1<<32-Vs(Kt)-1)).toString(32)+Ut,Mt="_"+Mt+"R_"+Ut,Ut=M4++,0<Ut&&(Mt+="H"+Ut.toString(32)),Mt+="_"}else Ut=pX++,Mt="_"+Mt+"r_"+Ut.toString(32)+"_";return Rt.memoizedState=Mt},useHostTransitionStatus:TR,useFormState:c9,useActionState:c9,useOptimistic:function(Rt){var Mt=Hf();Mt.memoizedState=Mt.baseState=Rt;var Ut={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Mt.queue=Ut,Mt=RR.bind(null,jc,!0,Ut),Ut.dispatch=Mt,[Rt,Mt]},useMemoCache:vR,useCacheRefresh:function(){return Hf().memoizedState=bX.bind(null,jc)},useEffectEvent:function(Rt){var Mt=Hf(),Ut={impl:Rt};return Mt.memoizedState=Ut,function(){if((ku&2)!==0)throw Error(pt(440));return Ut.impl.apply(void 0,arguments)}}},PR={readContext:Ng,use:L4,useCallback:w9,useContext:Ng,useEffect:xR,useImperativeHandle:y9,useInsertionEffect:f9,useLayoutEffect:h9,useMemo:k9,useReducer:G4,useRef:p9,useState:function(){return G4(R1)},useDebugValue:SR,useDeferredValue:function(Rt,Mt){var Ut=Gp();return E9(Ut,Ju.memoizedState,Rt,Mt)},useTransition:function(){var Rt=G4(R1)[0],Mt=Gp().memoizedState;return[typeof Rt=="boolean"?Rt:V_(Rt),Mt]},useSyncExternalStore:VN,useId:Q9,useHostTransitionStatus:TR,useFormState:l9,useActionState:l9,useOptimistic:function(Rt,Mt){var Ut=Gp();return r9(Ut,Ju,Rt,Mt)},useMemoCache:vR,useCacheRefresh:v9};PR.useEffectEvent=g9;var wX={readContext:Ng,use:L4,useCallback:w9,useContext:Ng,useEffect:xR,useImperativeHandle:y9,useInsertionEffect:f9,useLayoutEffect:h9,useMemo:k9,useReducer:WN,useRef:p9,useState:function(){return WN(R1)},useDebugValue:SR,useDeferredValue:function(Rt,Mt){var Ut=Gp();return Ju===null?DR(Ut,Rt,Mt):E9(Ut,Ju.memoizedState,Rt,Mt)},useTransition:function(){var Rt=WN(R1)[0],Mt=Gp().memoizedState;return[typeof Rt=="boolean"?Rt:V_(Rt),Mt]},useSyncExternalStore:VN,useId:Q9,useHostTransitionStatus:TR,useFormState:d9,useActionState:d9,useOptimistic:function(Rt,Mt){var Ut=Gp();return Ju!==null?r9(Ut,Ju,Rt,Mt):(Ut.baseState=Rt,[Rt,Ut.queue.dispatch])},useMemoCache:vR,useCacheRefresh:v9};wX.useEffectEvent=g9;function FR(Rt,Mt,Ut,Kt){Mt=Rt.memoizedState,Ut=Ut(Kt,Mt),Ut=Ut==null?Mt:Qt({},Mt,Ut),Rt.memoizedState=Ut,Rt.lanes===0&&(Rt.updateQueue.baseState=Ut)}var H4={enqueueSetState:function(Rt,Mt,Ut){Rt=Rt._reactInternals;var Kt=A0(),jn=BE(Kt);jn.payload=Mt,Ut!=null&&(jn.callback=Ut),Mt=QE(Rt,jn,Kt),Mt!==null&&(Oh(Mt,Rt,Kt),Y_(Mt,Rt,Kt))},enqueueReplaceState:function(Rt,Mt,Ut){Rt=Rt._reactInternals;var Kt=A0(),jn=BE(Kt);jn.tag=1,jn.payload=Mt,Ut!=null&&(jn.callback=Ut),Mt=QE(Rt,jn,Kt),Mt!==null&&(Oh(Mt,Rt,Kt),Y_(Mt,Rt,Kt))},enqueueForceUpdate:function(Rt,Mt){Rt=Rt._reactInternals;var Ut=A0(),Kt=BE(Ut);Kt.tag=2,Mt!=null&&(Kt.callback=Mt),Mt=QE(Rt,Kt,Ut),Mt!==null&&(Oh(Mt,Rt,Ut),Y_(Mt,Rt,Ut))}};function S9(Rt,Mt,Ut,Kt,jn,er,xr){return Rt=Rt.stateNode,typeof Rt.shouldComponentUpdate=="function"?Rt.shouldComponentUpdate(Kt,er,xr):Mt.prototype&&Mt.prototype.isPureReactComponent?!F_(Ut,Kt)||!F_(jn,er):!0}function D9(Rt,Mt,Ut,Kt){Rt=Mt.state,typeof Mt.componentWillReceiveProps=="function"&&Mt.componentWillReceiveProps(Ut,Kt),typeof Mt.UNSAFE_componentWillReceiveProps=="function"&&Mt.UNSAFE_componentWillReceiveProps(Ut,Kt),Mt.state!==Rt&&H4.enqueueReplaceState(Mt,Mt.state,null)}function qB(Rt,Mt){var Ut=Mt;if("ref"in Mt){Ut={};for(var Kt in Mt)Kt!=="ref"&&(Ut[Kt]=Mt[Kt])}if(Rt=Rt.defaultProps){Ut===Mt&&(Ut=Qt({},Ut));for(var jn in Rt)Ut[jn]===void 0&&(Ut[jn]=Rt[jn])}return Ut}function $9(Rt){B4(Rt)}function T9(Rt){console.error(Rt)}function R9(Rt){B4(Rt)}function Y4(Rt,Mt){try{var Ut=Rt.onUncaughtError;Ut(Mt.value,{componentStack:Mt.stack})}catch(Kt){setTimeout(function(){throw Kt})}}function P9(Rt,Mt,Ut){try{var Kt=Rt.onCaughtError;Kt(Ut.value,{componentStack:Ut.stack,errorBoundary:Mt.tag===1?Mt.stateNode:null})}catch(jn){setTimeout(function(){throw jn})}}function MR(Rt,Mt,Ut){return Ut=BE(Ut),Ut.tag=3,Ut.payload={element:null},Ut.callback=function(){Y4(Rt,Mt)},Ut}function F9(Rt){return Rt=BE(Rt),Rt.tag=3,Rt}function i0(Rt,Mt,Ut,Kt){var jn=Ut.type.getDerivedStateFromError;if(typeof jn=="function"){var er=Kt.value;Rt.payload=function(){return jn(er)},Rt.callback=function(){P9(Mt,Ut,Kt)}}var xr=Ut.stateNode;xr!==null&&typeof xr.componentDidCatch=="function"&&(Rt.callback=function(){P9(Mt,Ut,Kt),typeof jn!="function"&&($E===null?$E=new Set([this]):$E.add(this));var Hr=Kt.stack;this.componentDidCatch(Kt.value,{componentStack:Hr!==null?Hr:""})})}function kX(Rt,Mt,Ut,Kt,jn){if(Ut.flags|=32768,Kt!==null&&typeof Kt=="object"&&typeof Kt.then=="function"){if(Mt=Ut.alternate,Mt!==null&&ZQ(Mt,Ut,jn,!0),Ut=r0.current,Ut!==null){switch(Ut.tag){case 31:case 13:return rb===null?iD():Ut.alternate===null&&Qp===0&&(Qp=3),Ut.flags&=-257,Ut.flags|=65536,Ut.lanes=jn,Kt===D4?Ut.flags|=16384:(Mt=Ut.updateQueue,Mt===null?Ut.updateQueue=new Set([Kt]):Mt.add(Kt),u6(Rt,Kt,jn)),!1;case 22:return Ut.flags|=65536,Kt===D4?Ut.flags|=16384:(Mt=Ut.updateQueue,Mt===null?(Mt={transitions:null,markerInstances:null,retryQueue:new Set([Kt])},Ut.updateQueue=Mt):(Ut=Mt.retryQueue,Ut===null?Mt.retryQueue=new Set([Kt]):Ut.add(Kt)),u6(Rt,Kt,jn)),!1}throw Error(pt(435,Ut.tag))}return u6(Rt,Kt,jn),iD(),!1}if(Nl)return Mt=r0.current,Mt!==null?((Mt.flags&65536)===0&&(Mt.flags|=256),Mt.flags|=65536,Mt.lanes=jn,Kt!==rR&&(Rt=Error(pt(422),{cause:Kt}),wE(J0(Rt,Ut)))):(Kt!==rR&&(Mt=Error(pt(423),{cause:Kt}),wE(J0(Mt,Ut))),Rt=Rt.current.alternate,Rt.flags|=65536,jn&=-jn,Rt.lanes|=jn,Kt=J0(Kt,Ut),jn=MR(Rt.stateNode,Kt,jn),gR(Rt,jn),Qp!==4&&(Qp=2)),!1;var er=Error(pt(520),{cause:Kt});if(er=J0(er,Ut),AI===null?AI=[er]:AI.push(er),Qp!==4&&(Qp=2),Mt===null)return!0;Kt=J0(Kt,Ut),Ut=Mt;do{switch(Ut.tag){case 3:return Ut.flags|=65536,Rt=jn&-jn,Ut.lanes|=Rt,Rt=MR(Ut.stateNode,Kt,Rt),gR(Ut,Rt),!1;case 1:if(Mt=Ut.type,er=Ut.stateNode,(Ut.flags&128)===0&&(typeof Mt.getDerivedStateFromError=="function"||er!==null&&typeof er.componentDidCatch=="function"&&($E===null||!$E.has(er))))return Ut.flags|=65536,jn&=-jn,Ut.lanes|=jn,jn=F9(jn),i0(jn,Rt,Ut,Kt),gR(Ut,jn),!1}Ut=Ut.return}while(Ut!==null);return!1}var Aw=Error(pt(461)),qp=!1;function Lg(Rt,Mt,Ut,Kt){Mt.child=Rt===null?jN(Mt,null,Ut,Kt):LB(Mt,Rt.child,Ut,Kt)}function M9(Rt,Mt,Ut,Kt,jn){Ut=Ut.render;var er=Mt.ref;if("ref"in Kt){var xr={};for(var Hr in Kt)Hr!=="ref"&&(xr[Hr]=Kt[Hr])}else xr=Kt;return EE(Mt),Kt=kR(Rt,Mt,Ut,xr,er,jn),Hr=CR(),Rt!==null&&!qp?(BR(Rt,Mt,jn),P1(Rt,Mt,jn)):(Nl&&Hr&&tR(Mt),Mt.flags|=1,Lg(Rt,Mt,Kt,jn),Mt.child)}function N9(Rt,Mt,Ut,Kt,jn){if(Rt===null){var er=Ut.type;return typeof er=="function"&&!K3(er)&&er.defaultProps===void 0&&Ut.compare===null?(Mt.tag=15,Mt.type=er,L9(Rt,Mt,er,Kt,jn)):(Rt=_4(Ut.type,null,Kt,Mt,Mt.mode,jn),Rt.ref=Mt.ref,Rt.return=Mt,Mt.child=Rt)}if(er=Rt.child,!HR(Rt,jn)){var xr=er.memoizedProps;if(Ut=Ut.compare,Ut=Ut!==null?Ut:F_,Ut(xr,Kt)&&Rt.ref===Mt.ref)return P1(Rt,Mt,jn)}return Mt.flags|=1,Rt=S1(er,Kt),Rt.ref=Mt.ref,Rt.return=Mt,Mt.child=Rt}function L9(Rt,Mt,Ut,Kt,jn){if(Rt!==null){var er=Rt.memoizedProps;if(F_(er,Kt)&&Rt.ref===Mt.ref)if(qp=!1,Mt.pendingProps=Kt=er,HR(Rt,jn))(Rt.flags&131072)!==0&&(qp=!0);else return Mt.lanes=Rt.lanes,P1(Rt,Mt,jn)}return NR(Rt,Mt,Ut,Kt,jn)}function G9(Rt,Mt,Ut,Kt){var jn=Kt.children,er=Rt!==null?Rt.memoizedState:null;if(Rt===null&&Mt.stateNode===null&&(Mt.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),Kt.mode==="hidden"){if((Mt.flags&128)!==0){if(er=er!==null?er.baseLanes|Ut:Ut,Rt!==null){for(Kt=Mt.child=Rt.child,jn=0;Kt!==null;)jn=jn|Kt.lanes|Kt.childLanes,Kt=Kt.sibling;Kt=jn&~er}else Kt=0,Mt.child=null;return q9(Rt,Mt,er,Ut,Kt)}if((Ut&536870912)!==0)Mt.memoizedState={baseLanes:0,cachePool:null},Rt!==null&&x4(Mt,er!==null?er.cachePool:null),er!==null?HN(Mt,er):hR(),YN(Mt);else return Kt=Mt.lanes=536870912,q9(Rt,Mt,er!==null?er.baseLanes|Ut:Ut,Ut,Kt)}else er!==null?(x4(Mt,er.cachePool),HN(Mt,er),OE(),Mt.memoizedState=null):(Rt!==null&&x4(Mt,null),hR(),OE());return Lg(Rt,Mt,jn,Ut),Mt.child}function tI(Rt,Mt){return Rt!==null&&Rt.tag===22||Mt.stateNode!==null||(Mt.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),Mt.sibling}function q9(Rt,Mt,Ut,Kt,jn){var er=lR();return er=er===null?null:{parent:um._currentValue,pool:er},Mt.memoizedState={baseLanes:Ut,cachePool:er},Rt!==null&&x4(Mt,null),hR(),YN(Mt),Rt!==null&&ZQ(Rt,Mt,Kt,!0),Mt.childLanes=jn,null}function Z4(Rt,Mt){return Mt=wa({mode:Mt.mode,children:Mt.children},Rt.mode),Mt.ref=Rt.ref,Rt.child=Mt,Mt.return=Rt,Mt}function j9(Rt,Mt,Ut){return LB(Mt,Rt.child,null,Ut),Rt=Z4(Mt,Mt.pendingProps),Rt.flags|=2,a0(Mt),Mt.memoizedState=null,Rt}function EX(Rt,Mt,Ut){var Kt=Mt.pendingProps,jn=(Mt.flags&128)!==0;if(Mt.flags&=-129,Rt===null){if(Nl){if(Kt.mode==="hidden")return Rt=Z4(Mt,Kt),Mt.lanes=536870912,tI(null,Rt);if(yR(Mt),(Rt=Ld)?(Rt=VL(Rt,nb),Rt=Rt!==null&&Rt.data==="&"?Rt:null,Rt!==null&&(Mt.memoizedState={dehydrated:Rt,treeContext:hE!==null?{id:iw,overflow:ow}:null,retryLane:536870912,hydrationErrors:null},Ut=xN(Rt),Ut.return=Mt,Mt.child=Ut,Ag=Mt,Ld=null)):Rt=null,Rt===null)throw yE(Mt);return Mt.lanes=536870912,null}return Z4(Mt,Kt)}var er=Rt.memoizedState;if(er!==null){var xr=er.dehydrated;if(yR(Mt),jn)if(Mt.flags&256)Mt.flags&=-257,Mt=j9(Rt,Mt,Ut);else if(Mt.memoizedState!==null)Mt.child=Rt.child,Mt.flags|=128,Mt=null;else throw Error(pt(558));else if(qp||ZQ(Rt,Mt,Ut,!1),jn=(Ut&Rt.childLanes)!==0,qp||jn){if(Kt=fd,Kt!==null&&(xr=Js(Kt,Ut),xr!==0&&xr!==er.retryLane))throw er.retryLane=xr,$B(Rt,xr),Oh(Kt,Rt,xr),Aw;iD(),Mt=j9(Rt,Mt,Ut)}else Rt=er.treeContext,Ld=ib(xr.nextSibling),Ag=Mt,Nl=!0,bE=null,nb=!1,Rt!==null&&$N(Mt,Rt),Mt=Z4(Mt,Kt),Mt.flags|=4096;return Mt}return Rt=S1(Rt.child,{mode:Kt.mode,children:Kt.children}),Rt.ref=Mt.ref,Mt.child=Rt,Rt.return=Mt,Rt}function X4(Rt,Mt){var Ut=Mt.ref;if(Ut===null)Rt!==null&&Rt.ref!==null&&(Mt.flags|=4194816);else{if(typeof Ut!="function"&&typeof Ut!="object")throw Error(pt(284));(Rt===null||Rt.ref!==Ut)&&(Mt.flags|=4194816)}}function NR(Rt,Mt,Ut,Kt,jn){return EE(Mt),Ut=kR(Rt,Mt,Ut,Kt,void 0,jn),Kt=CR(),Rt!==null&&!qp?(BR(Rt,Mt,jn),P1(Rt,Mt,jn)):(Nl&&Kt&&tR(Mt),Mt.flags|=1,Lg(Rt,Mt,Ut,jn),Mt.child)}function U9(Rt,Mt,Ut,Kt,jn,er){return EE(Mt),Mt.updateQueue=null,Ut=XN(Mt,Kt,Ut,jn),ZN(Rt),Kt=CR(),Rt!==null&&!qp?(BR(Rt,Mt,er),P1(Rt,Mt,er)):(Nl&&Kt&&tR(Mt),Mt.flags|=1,Lg(Rt,Mt,Ut,er),Mt.child)}function z9(Rt,Mt,Ut,Kt,jn){if(EE(Mt),Mt.stateNode===null){var er=jQ,xr=Ut.contextType;typeof xr=="object"&&xr!==null&&(er=Ng(xr)),er=new Ut(Kt,er),Mt.memoizedState=er.state!==null&&er.state!==void 0?er.state:null,er.updater=H4,Mt.stateNode=er,er._reactInternals=Mt,er=Mt.stateNode,er.props=Kt,er.state=Mt.memoizedState,er.refs={},pR(Mt),xr=Ut.contextType,er.context=typeof xr=="object"&&xr!==null?Ng(xr):jQ,er.state=Mt.memoizedState,xr=Ut.getDerivedStateFromProps,typeof xr=="function"&&(FR(Mt,Ut,xr,Kt),er.state=Mt.memoizedState),typeof Ut.getDerivedStateFromProps=="function"||typeof er.getSnapshotBeforeUpdate=="function"||typeof er.UNSAFE_componentWillMount!="function"&&typeof er.componentWillMount!="function"||(xr=er.state,typeof er.componentWillMount=="function"&&er.componentWillMount(),typeof er.UNSAFE_componentWillMount=="function"&&er.UNSAFE_componentWillMount(),xr!==er.state&&H4.enqueueReplaceState(er,er.state,null),X_(Mt,Kt,er,jn),Z_(),er.state=Mt.memoizedState),typeof er.componentDidMount=="function"&&(Mt.flags|=4194308),Kt=!0}else if(Rt===null){er=Mt.stateNode;var Hr=Mt.memoizedProps,Ra=qB(Ut,Hr);er.props=Ra;var Ei=er.context,no=Ut.contextType;xr=jQ,typeof no=="object"&&no!==null&&(xr=Ng(no));var fo=Ut.getDerivedStateFromProps;no=typeof fo=="function"||typeof er.getSnapshotBeforeUpdate=="function",Hr=Mt.pendingProps!==Hr,no||typeof er.UNSAFE_componentWillReceiveProps!="function"&&typeof er.componentWillReceiveProps!="function"||(Hr||Ei!==xr)&&D9(Mt,er,Kt,xr),CE=!1;var Pi=Mt.memoizedState;er.state=Pi,X_(Mt,Kt,er,jn),Z_(),Ei=Mt.memoizedState,Hr||Pi!==Ei||CE?(typeof fo=="function"&&(FR(Mt,Ut,fo,Kt),Ei=Mt.memoizedState),(Ra=CE||S9(Mt,Ut,Ra,Kt,Pi,Ei,xr))?(no||typeof er.UNSAFE_componentWillMount!="function"&&typeof er.componentWillMount!="function"||(typeof er.componentWillMount=="function"&&er.componentWillMount(),typeof er.UNSAFE_componentWillMount=="function"&&er.UNSAFE_componentWillMount()),typeof er.componentDidMount=="function"&&(Mt.flags|=4194308)):(typeof er.componentDidMount=="function"&&(Mt.flags|=4194308),Mt.memoizedProps=Kt,Mt.memoizedState=Ei),er.props=Kt,er.state=Ei,er.context=xr,Kt=Ra):(typeof er.componentDidMount=="function"&&(Mt.flags|=4194308),Kt=!1)}else{er=Mt.stateNode,mR(Rt,Mt),xr=Mt.memoizedProps,no=qB(Ut,xr),er.props=no,fo=Mt.pendingProps,Pi=er.context,Ei=Ut.contextType,Ra=jQ,typeof Ei=="object"&&Ei!==null&&(Ra=Ng(Ei)),Hr=Ut.getDerivedStateFromProps,(Ei=typeof Hr=="function"||typeof er.getSnapshotBeforeUpdate=="function")||typeof er.UNSAFE_componentWillReceiveProps!="function"&&typeof er.componentWillReceiveProps!="function"||(xr!==fo||Pi!==Ra)&&D9(Mt,er,Kt,Ra),CE=!1,Pi=Mt.memoizedState,er.state=Pi,X_(Mt,Kt,er,jn),Z_();var Hi=Mt.memoizedState;xr!==fo||Pi!==Hi||CE||Rt!==null&&Rt.dependencies!==null&&L_(Rt.dependencies)?(typeof Hr=="function"&&(FR(Mt,Ut,Hr,Kt),Hi=Mt.memoizedState),(no=CE||S9(Mt,Ut,no,Kt,Pi,Hi,Ra)||Rt!==null&&Rt.dependencies!==null&&L_(Rt.dependencies))?(Ei||typeof er.UNSAFE_componentWillUpdate!="function"&&typeof er.componentWillUpdate!="function"||(typeof er.componentWillUpdate=="function"&&er.componentWillUpdate(Kt,Hi,Ra),typeof er.UNSAFE_componentWillUpdate=="function"&&er.UNSAFE_componentWillUpdate(Kt,Hi,Ra)),typeof er.componentDidUpdate=="function"&&(Mt.flags|=4),typeof er.getSnapshotBeforeUpdate=="function"&&(Mt.flags|=1024)):(typeof er.componentDidUpdate!="function"||xr===Rt.memoizedProps&&Pi===Rt.memoizedState||(Mt.flags|=4),typeof er.getSnapshotBeforeUpdate!="function"||xr===Rt.memoizedProps&&Pi===Rt.memoizedState||(Mt.flags|=1024),Mt.memoizedProps=Kt,Mt.memoizedState=Hi),er.props=Kt,er.state=Hi,er.context=Ra,Kt=no):(typeof er.componentDidUpdate!="function"||xr===Rt.memoizedProps&&Pi===Rt.memoizedState||(Mt.flags|=4),typeof er.getSnapshotBeforeUpdate!="function"||xr===Rt.memoizedProps&&Pi===Rt.memoizedState||(Mt.flags|=1024),Kt=!1)}return er=Kt,X4(Rt,Mt),Kt=(Mt.flags&128)!==0,er||Kt?(er=Mt.stateNode,Ut=Kt&&typeof Ut.getDerivedStateFromError!="function"?null:er.render(),Mt.flags|=1,Rt!==null&&Kt?(Mt.child=LB(Mt,Rt.child,null,jn),Mt.child=LB(Mt,null,Ut,jn)):Lg(Rt,Mt,Ut,jn),Mt.memoizedState=er.state,Rt=Mt.child):Rt=P1(Rt,Mt,jn),Rt}function H9(Rt,Mt,Ut,Kt){return RB(),Mt.flags|=256,Lg(Rt,Mt,Ut,Kt),Mt.child}var LR={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function GR(Rt){return{baseLanes:Rt,cachePool:MN()}}function qR(Rt,Mt,Ut){return Rt=Rt!==null?Rt.childLanes&~Ut:0,Mt&&(Rt|=s0),Rt}function Y9(Rt,Mt,Ut){var Kt=Mt.pendingProps,jn=!1,er=(Mt.flags&128)!==0,xr;if((xr=er)||(xr=Rt!==null&&Rt.memoizedState===null?!1:(Lp.current&2)!==0),xr&&(jn=!0,Mt.flags&=-129),xr=(Mt.flags&32)!==0,Mt.flags&=-33,Rt===null){if(Nl){if(jn?vE(Mt):OE(),(Rt=Ld)?(Rt=VL(Rt,nb),Rt=Rt!==null&&Rt.data!=="&"?Rt:null,Rt!==null&&(Mt.memoizedState={dehydrated:Rt,treeContext:hE!==null?{id:iw,overflow:ow}:null,retryLane:536870912,hydrationErrors:null},Ut=xN(Rt),Ut.return=Mt,Mt.child=Ut,Ag=Mt,Ld=null)):Rt=null,Rt===null)throw yE(Mt);return _6(Rt)?Mt.lanes=32:Mt.lanes=536870912,null}var Hr=Kt.children;return Kt=Kt.fallback,jn?(OE(),jn=Mt.mode,Hr=wa({mode:"hidden",children:Hr},jn),Kt=TB(Kt,jn,Ut,null),Hr.return=Mt,Kt.return=Mt,Hr.sibling=Kt,Mt.child=Hr,Kt=Mt.child,Kt.memoizedState=GR(Ut),Kt.childLanes=qR(Rt,xr,Ut),Mt.memoizedState=LR,tI(null,Kt)):(vE(Mt),jR(Mt,Hr))}var Ra=Rt.memoizedState;if(Ra!==null&&(Hr=Ra.dehydrated,Hr!==null)){if(er)Mt.flags&256?(vE(Mt),Mt.flags&=-257,Mt=UR(Rt,Mt,Ut)):Mt.memoizedState!==null?(OE(),Mt.child=Rt.child,Mt.flags|=128,Mt=null):(OE(),Hr=Kt.fallback,jn=Mt.mode,Kt=wa({mode:"visible",children:Kt.children},jn),Hr=TB(Hr,jn,Ut,null),Hr.flags|=2,Kt.return=Mt,Hr.return=Mt,Kt.sibling=Hr,Mt.child=Kt,LB(Mt,Rt.child,null,Ut),Kt=Mt.child,Kt.memoizedState=GR(Ut),Kt.childLanes=qR(Rt,xr,Ut),Mt.memoizedState=LR,Mt=tI(null,Kt));else if(vE(Mt),_6(Hr)){if(xr=Hr.nextSibling&&Hr.nextSibling.dataset,xr)var Ei=xr.dgst;xr=Ei,Kt=Error(pt(419)),Kt.stack="",Kt.digest=xr,wE({value:Kt,source:null,stack:null}),Mt=UR(Rt,Mt,Ut)}else if(qp||ZQ(Rt,Mt,Ut,!1),xr=(Ut&Rt.childLanes)!==0,qp||xr){if(xr=fd,xr!==null&&(Kt=Js(xr,Ut),Kt!==0&&Kt!==Ra.retryLane))throw Ra.retryLane=Kt,$B(Rt,Kt),Oh(xr,Rt,Kt),Aw;O6(Hr)||iD(),Mt=UR(Rt,Mt,Ut)}else O6(Hr)?(Mt.flags|=192,Mt.child=Rt.child,Mt=null):(Rt=Ra.treeContext,Ld=ib(Hr.nextSibling),Ag=Mt,Nl=!0,bE=null,nb=!1,Rt!==null&&$N(Mt,Rt),Mt=jR(Mt,Kt.children),Mt.flags|=4096);return Mt}return jn?(OE(),Hr=Kt.fallback,jn=Mt.mode,Ra=Rt.child,Ei=Ra.sibling,Kt=S1(Ra,{mode:"hidden",children:Kt.children}),Kt.subtreeFlags=Ra.subtreeFlags&65011712,Ei!==null?Hr=S1(Ei,Hr):(Hr=TB(Hr,jn,Ut,null),Hr.flags|=2),Hr.return=Mt,Kt.return=Mt,Kt.sibling=Hr,Mt.child=Kt,tI(null,Kt),Kt=Mt.child,Hr=Rt.child.memoizedState,Hr===null?Hr=GR(Ut):(jn=Hr.cachePool,jn!==null?(Ra=um._currentValue,jn=jn.parent!==Ra?{parent:Ra,pool:Ra}:jn):jn=MN(),Hr={baseLanes:Hr.baseLanes|Ut,cachePool:jn}),Kt.memoizedState=Hr,Kt.childLanes=qR(Rt,xr,Ut),Mt.memoizedState=LR,tI(Rt.child,Kt)):(vE(Mt),Ut=Rt.child,Rt=Ut.sibling,Ut=S1(Ut,{mode:"visible",children:Kt.children}),Ut.return=Mt,Ut.sibling=null,Rt!==null&&(xr=Mt.deletions,xr===null?(Mt.deletions=[Rt],Mt.flags|=16):xr.push(Rt)),Mt.child=Ut,Mt.memoizedState=null,Ut)}function jR(Rt,Mt){return Mt=wa({mode:"visible",children:Mt},Rt.mode),Mt.return=Rt,Rt.child=Mt}function wa(Rt,Mt){return Rt=n0(22,Rt,null,Mt),Rt.lanes=0,Rt}function UR(Rt,Mt,Ut){return LB(Mt,Rt.child,null,Ut),Rt=jR(Mt,Mt.pendingProps.children),Rt.flags|=2,Mt.memoizedState=null,Rt}function Z9(Rt,Mt,Ut){Rt.lanes|=Mt;var Kt=Rt.alternate;Kt!==null&&(Kt.lanes|=Mt),iR(Rt.return,Mt,Ut)}function zR(Rt,Mt,Ut,Kt,jn,er){var xr=Rt.memoizedState;xr===null?Rt.memoizedState={isBackwards:Mt,rendering:null,renderingStartTime:0,last:Kt,tail:Ut,tailMode:jn,treeForkCount:er}:(xr.isBackwards=Mt,xr.rendering=null,xr.renderingStartTime=0,xr.last=Kt,xr.tail=Ut,xr.tailMode=jn,xr.treeForkCount=er)}function X9(Rt,Mt,Ut){var Kt=Mt.pendingProps,jn=Kt.revealOrder,er=Kt.tail;Kt=Kt.children;var xr=Lp.current,Hr=(xr&2)!==0;if(Hr?(xr=xr&1|2,Mt.flags|=128):xr&=1,ir(Lp,xr),Lg(Rt,Mt,Kt,Ut),Kt=Nl?N_:0,!Hr&&Rt!==null&&(Rt.flags&128)!==0)e:for(Rt=Mt.child;Rt!==null;){if(Rt.tag===13)Rt.memoizedState!==null&&Z9(Rt,Ut,Mt);else if(Rt.tag===19)Z9(Rt,Ut,Mt);else if(Rt.child!==null){Rt.child.return=Rt,Rt=Rt.child;continue}if(Rt===Mt)break e;for(;Rt.sibling===null;){if(Rt.return===null||Rt.return===Mt)break e;Rt=Rt.return}Rt.sibling.return=Rt.return,Rt=Rt.sibling}switch(jn){case"forwards":for(Ut=Mt.child,jn=null;Ut!==null;)Rt=Ut.alternate,Rt!==null&&P4(Rt)===null&&(jn=Ut),Ut=Ut.sibling;Ut=jn,Ut===null?(jn=Mt.child,Mt.child=null):(jn=Ut.sibling,Ut.sibling=null),zR(Mt,!1,jn,Ut,er,Kt);break;case"backwards":case"unstable_legacy-backwards":for(Ut=null,jn=Mt.child,Mt.child=null;jn!==null;){if(Rt=jn.alternate,Rt!==null&&P4(Rt)===null){Mt.child=jn;break}Rt=jn.sibling,jn.sibling=Ut,Ut=jn,jn=Rt}zR(Mt,!0,Ut,null,er,Kt);break;case"together":zR(Mt,!1,null,null,void 0,Kt);break;default:Mt.memoizedState=null}return Mt.child}function P1(Rt,Mt,Ut){if(Rt!==null&&(Mt.dependencies=Rt.dependencies),DE|=Mt.lanes,(Ut&Mt.childLanes)===0)if(Rt!==null){if(ZQ(Rt,Mt,Ut,!1),(Ut&Mt.childLanes)===0)return null}else return null;if(Rt!==null&&Mt.child!==Rt.child)throw Error(pt(153));if(Mt.child!==null){for(Rt=Mt.child,Ut=S1(Rt,Rt.pendingProps),Mt.child=Ut,Ut.return=Mt;Rt.sibling!==null;)Rt=Rt.sibling,Ut=Ut.sibling=S1(Rt,Rt.pendingProps),Ut.return=Mt;Ut.sibling=null}return Mt.child}function HR(Rt,Mt){return(Rt.lanes&Mt)!==0?!0:(Rt=Rt.dependencies,!!(Rt!==null&&L_(Rt)))}function CX(Rt,Mt,Ut){switch(Mt.tag){case 3:Gr(Mt,Mt.stateNode.containerInfo),kE(Mt,um,Rt.memoizedState.cache),RB();break;case 27:case 5:na(Mt);break;case 4:Gr(Mt,Mt.stateNode.containerInfo);break;case 10:kE(Mt,Mt.type,Mt.memoizedProps.value);break;case 31:if(Mt.memoizedState!==null)return Mt.flags|=128,yR(Mt),null;break;case 13:var Kt=Mt.memoizedState;if(Kt!==null)return Kt.dehydrated!==null?(vE(Mt),Mt.flags|=128,null):(Ut&Mt.child.childLanes)!==0?Y9(Rt,Mt,Ut):(vE(Mt),Rt=P1(Rt,Mt,Ut),Rt!==null?Rt.sibling:null);vE(Mt);break;case 19:var jn=(Rt.flags&128)!==0;if(Kt=(Ut&Mt.childLanes)!==0,Kt||(ZQ(Rt,Mt,Ut,!1),Kt=(Ut&Mt.childLanes)!==0),jn){if(Kt)return X9(Rt,Mt,Ut);Mt.flags|=128}if(jn=Mt.memoizedState,jn!==null&&(jn.rendering=null,jn.tail=null,jn.lastEffect=null),ir(Lp,Lp.current),Kt)break;return null;case 22:return Mt.lanes=0,G9(Rt,Mt,Ut,Mt.pendingProps);case 24:kE(Mt,um,Rt.memoizedState.cache)}return P1(Rt,Mt,Ut)}function W9(Rt,Mt,Ut){if(Rt!==null)if(Rt.memoizedProps!==Mt.pendingProps)qp=!0;else{if(!HR(Rt,Ut)&&(Mt.flags&128)===0)return qp=!1,CX(Rt,Mt,Ut);qp=(Rt.flags&131072)!==0}else qp=!1,Nl&&(Mt.flags&1048576)!==0&&DN(Mt,N_,Mt.index);switch(Mt.lanes=0,Mt.tag){case 16:e:{var Kt=Mt.pendingProps;if(Rt=MB(Mt.elementType),Mt.type=Rt,typeof Rt=="function")K3(Rt)?(Kt=qB(Rt,Kt),Mt.tag=1,Mt=z9(null,Mt,Rt,Kt,Ut)):(Mt.tag=0,Mt=NR(null,Mt,Rt,Kt,Ut));else{if(Rt!=null){var jn=Rt.$$typeof;if(jn===Zt){Mt.tag=11,Mt=M9(null,Mt,Rt,Kt,Ut);break e}else if(jn===wn){Mt.tag=14,Mt=N9(null,Mt,Rt,Kt,Ut);break e}}throw Mt=Xn(Rt)||Rt,Error(pt(306,Mt,""))}}return Mt;case 0:return NR(Rt,Mt,Mt.type,Mt.pendingProps,Ut);case 1:return Kt=Mt.type,jn=qB(Kt,Mt.pendingProps),z9(Rt,Mt,Kt,jn,Ut);case 3:e:{if(Gr(Mt,Mt.stateNode.containerInfo),Rt===null)throw Error(pt(387));Kt=Mt.pendingProps;var er=Mt.memoizedState;jn=er.element,mR(Rt,Mt),X_(Mt,Kt,null,Ut);var xr=Mt.memoizedState;if(Kt=xr.cache,kE(Mt,um,Kt),Kt!==er.cache&&oR(Mt,[um],Ut,!0),Z_(),Kt=xr.element,er.isDehydrated)if(er={element:Kt,isDehydrated:!1,cache:xr.cache},Mt.updateQueue.baseState=er,Mt.memoizedState=er,Mt.flags&256){Mt=H9(Rt,Mt,Kt,Ut);break e}else if(Kt!==jn){jn=J0(Error(pt(424)),Mt),wE(jn),Mt=H9(Rt,Mt,Kt,Ut);break e}else for(Rt=Mt.stateNode.containerInfo,Rt.nodeType===9?Rt=Rt.body:Rt=Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt,Ld=ib(Rt.firstChild),Ag=Mt,Nl=!0,bE=null,nb=!0,Ut=jN(Mt,null,Kt,Ut),Mt.child=Ut;Ut;)Ut.flags=Ut.flags&-3|4096,Ut=Ut.sibling;else{if(RB(),Kt===jn){Mt=P1(Rt,Mt,Ut);break e}Lg(Rt,Mt,Kt,Ut)}Mt=Mt.child}return Mt;case 26:return X4(Rt,Mt),Rt===null?(Ut=r7(Mt.type,null,Mt.pendingProps,null))?Mt.memoizedState=Ut:Nl||(Ut=Mt.type,Rt=Mt.pendingProps,Kt=dD(Br.current).createElement(Ut),Kt[sl]=Mt,Kt[Yr]=Rt,qg(Kt,Ut,Rt),tl(Kt),Mt.stateNode=Kt):Mt.memoizedState=r7(Mt.type,Rt.memoizedProps,Mt.pendingProps,Rt.memoizedState),null;case 27:return na(Mt),Rt===null&&Nl&&(Kt=Mt.stateNode=JL(Mt.type,Mt.pendingProps,Br.current),Ag=Mt,nb=!0,jn=Ld,ME(Mt.type)?(I6=jn,Ld=ib(Kt.firstChild)):Ld=jn),Lg(Rt,Mt,Mt.pendingProps.children,Ut),X4(Rt,Mt),Rt===null&&(Mt.flags|=4194304),Mt.child;case 5:return Rt===null&&Nl&&((jn=Kt=Ld)&&(Kt=XX(Kt,Mt.type,Mt.pendingProps,nb),Kt!==null?(Mt.stateNode=Kt,Ag=Mt,Ld=ib(Kt.firstChild),nb=!1,jn=!0):jn=!1),jn||yE(Mt)),na(Mt),jn=Mt.type,er=Mt.pendingProps,xr=Rt!==null?Rt.memoizedProps:null,Kt=er.children,B6(jn,er)?Kt=null:xr!==null&&B6(jn,xr)&&(Mt.flags|=32),Mt.memoizedState!==null&&(jn=kR(Rt,Mt,mX,null,null,Ut),gI._currentValue=jn),X4(Rt,Mt),Lg(Rt,Mt,Kt,Ut),Mt.child;case 6:return Rt===null&&Nl&&((Rt=Ut=Ld)&&(Ut=WX(Ut,Mt.pendingProps,nb),Ut!==null?(Mt.stateNode=Ut,Ag=Mt,Ld=null,Rt=!0):Rt=!1),Rt||yE(Mt)),null;case 13:return Y9(Rt,Mt,Ut);case 4:return Gr(Mt,Mt.stateNode.containerInfo),Kt=Mt.pendingProps,Rt===null?Mt.child=LB(Mt,null,Kt,Ut):Lg(Rt,Mt,Kt,Ut),Mt.child;case 11:return M9(Rt,Mt,Mt.type,Mt.pendingProps,Ut);case 7:return Lg(Rt,Mt,Mt.pendingProps,Ut),Mt.child;case 8:return Lg(Rt,Mt,Mt.pendingProps.children,Ut),Mt.child;case 12:return Lg(Rt,Mt,Mt.pendingProps.children,Ut),Mt.child;case 10:return Kt=Mt.pendingProps,kE(Mt,Mt.type,Kt.value),Lg(Rt,Mt,Kt.children,Ut),Mt.child;case 9:return jn=Mt.type._context,Kt=Mt.pendingProps.children,EE(Mt),jn=Ng(jn),Kt=Kt(jn),Mt.flags|=1,Lg(Rt,Mt,Kt,Ut),Mt.child;case 14:return N9(Rt,Mt,Mt.type,Mt.pendingProps,Ut);case 15:return L9(Rt,Mt,Mt.type,Mt.pendingProps,Ut);case 19:return X9(Rt,Mt,Ut);case 31:return EX(Rt,Mt,Ut);case 22:return G9(Rt,Mt,Ut,Mt.pendingProps);case 24:return EE(Mt),Kt=Ng(um),Rt===null?(jn=lR(),jn===null&&(jn=fd,er=AR(),jn.pooledCache=er,er.refCount++,er!==null&&(jn.pooledCacheLanes|=Ut),jn=er),Mt.memoizedState={parent:Kt,cache:jn},pR(Mt),kE(Mt,um,jn)):((Rt.lanes&Ut)!==0&&(mR(Rt,Mt),X_(Mt,null,null,Ut),Z_()),jn=Rt.memoizedState,er=Mt.memoizedState,jn.parent!==Kt?(jn={parent:Kt,cache:Kt},Mt.memoizedState=jn,Mt.lanes===0&&(Mt.memoizedState=Mt.updateQueue.baseState=jn),kE(Mt,um,Kt)):(Kt=er.cache,kE(Mt,um,Kt),Kt!==jn.cache&&oR(Mt,[um],Ut,!0))),Lg(Rt,Mt,Mt.pendingProps.children,Ut),Mt.child;case 29:throw Mt.pendingProps}throw Error(pt(156,Mt.tag))}function F1(Rt){Rt.flags|=4}function YR(Rt,Mt,Ut,Kt,jn){if((Mt=(Rt.mode&32)!==0)&&(Mt=!1),Mt){if(Rt.flags|=16777216,(jn&335544128)===jn)if(Rt.stateNode.complete)Rt.flags|=8192;else if(bL())Rt.flags|=8192;else throw NB=D4,uR}else Rt.flags&=-16777217}function V9(Rt,Mt){if(Mt.type!=="stylesheet"||(Mt.state.loading&4)!==0)Rt.flags&=-16777217;else if(Rt.flags|=16777216,!s7(Mt))if(bL())Rt.flags|=8192;else throw NB=D4,uR}function rv(Rt,Mt){Mt!==null&&(Rt.flags|=4),Rt.flags&16384&&(Mt=Rt.tag!==22?So():536870912,Rt.lanes|=Mt,Av|=Mt)}function nI(Rt,Mt){if(!Nl)switch(Rt.tailMode){case"hidden":Mt=Rt.tail;for(var Ut=null;Mt!==null;)Mt.alternate!==null&&(Ut=Mt),Mt=Mt.sibling;Ut===null?Rt.tail=null:Ut.sibling=null;break;case"collapsed":Ut=Rt.tail;for(var Kt=null;Ut!==null;)Ut.alternate!==null&&(Kt=Ut),Ut=Ut.sibling;Kt===null?Mt||Rt.tail===null?Rt.tail=null:Rt.tail.sibling=null:Kt.sibling=null}}function Gd(Rt){var Mt=Rt.alternate!==null&&Rt.alternate.child===Rt.child,Ut=0,Kt=0;if(Mt)for(var jn=Rt.child;jn!==null;)Ut|=jn.lanes|jn.childLanes,Kt|=jn.subtreeFlags&65011712,Kt|=jn.flags&65011712,jn.return=Rt,jn=jn.sibling;else for(jn=Rt.child;jn!==null;)Ut|=jn.lanes|jn.childLanes,Kt|=jn.subtreeFlags,Kt|=jn.flags,jn.return=Rt,jn=jn.sibling;return Rt.subtreeFlags|=Kt,Rt.childLanes=Ut,Mt}function ZR(Rt,Mt,Ut){var Kt=Mt.pendingProps;switch(nR(Mt),Mt.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gd(Mt),null;case 1:return Gd(Mt),null;case 3:return Ut=Mt.stateNode,Kt=null,Rt!==null&&(Kt=Rt.memoizedState.cache),Mt.memoizedState.cache!==Kt&&(Mt.flags|=2048),$1(um),jr(),Ut.pendingContext&&(Ut.context=Ut.pendingContext,Ut.pendingContext=null),(Rt===null||Rt.child===null)&&(HQ(Mt)?F1(Mt):Rt===null||Rt.memoizedState.isDehydrated&&(Mt.flags&256)===0||(Mt.flags|=1024,YQ())),Gd(Mt),null;case 26:var jn=Mt.type,er=Mt.memoizedState;return Rt===null?(F1(Mt),er!==null?(Gd(Mt),V9(Mt,er)):(Gd(Mt),YR(Mt,jn,null,Kt,Ut))):er?er!==Rt.memoizedState?(F1(Mt),Gd(Mt),V9(Mt,er)):(Gd(Mt),Mt.flags&=-16777217):(Rt=Rt.memoizedProps,Rt!==Kt&&F1(Mt),Gd(Mt),YR(Mt,jn,Rt,Kt,Ut)),null;case 27:if(ca(Mt),Ut=Br.current,jn=Mt.type,Rt!==null&&Mt.stateNode!=null)Rt.memoizedProps!==Kt&&F1(Mt);else{if(!Kt){if(Mt.stateNode===null)throw Error(pt(166));return Gd(Mt),null}Rt=Cr.current,HQ(Mt)?TN(Mt):(Rt=JL(jn,Kt,Ut),Mt.stateNode=Rt,F1(Mt))}return Gd(Mt),null;case 5:if(ca(Mt),jn=Mt.type,Rt!==null&&Mt.stateNode!=null)Rt.memoizedProps!==Kt&&F1(Mt);else{if(!Kt){if(Mt.stateNode===null)throw Error(pt(166));return Gd(Mt),null}if(er=Cr.current,HQ(Mt))TN(Mt);else{var xr=dD(Br.current);switch(er){case 1:er=xr.createElementNS("http://www.w3.org/2000/svg",jn);break;case 2:er=xr.createElementNS("http://www.w3.org/1998/Math/MathML",jn);break;default:switch(jn){case"svg":er=xr.createElementNS("http://www.w3.org/2000/svg",jn);break;case"math":er=xr.createElementNS("http://www.w3.org/1998/Math/MathML",jn);break;case"script":er=xr.createElement("div"),er.innerHTML="<script><\/script>",er=er.removeChild(er.firstChild);break;case"select":er=typeof Kt.is=="string"?xr.createElement("select",{is:Kt.is}):xr.createElement("select"),Kt.multiple?er.multiple=!0:Kt.size&&(er.size=Kt.size);break;default:er=typeof Kt.is=="string"?xr.createElement(jn,{is:Kt.is}):xr.createElement(jn)}}er[sl]=Mt,er[Yr]=Kt;e:for(xr=Mt.child;xr!==null;){if(xr.tag===5||xr.tag===6)er.appendChild(xr.stateNode);else if(xr.tag!==4&&xr.tag!==27&&xr.child!==null){xr.child.return=xr,xr=xr.child;continue}if(xr===Mt)break e;for(;xr.sibling===null;){if(xr.return===null||xr.return===Mt)break e;xr=xr.return}xr.sibling.return=xr.return,xr=xr.sibling}Mt.stateNode=er;e:switch(qg(er,jn,Kt),jn){case"button":case"input":case"select":case"textarea":Kt=!!Kt.autoFocus;break e;case"img":Kt=!0;break e;default:Kt=!1}Kt&&F1(Mt)}}return Gd(Mt),YR(Mt,Mt.type,Rt===null?null:Rt.memoizedProps,Mt.pendingProps,Ut),null;case 6:if(Rt&&Mt.stateNode!=null)Rt.memoizedProps!==Kt&&F1(Mt);else{if(typeof Kt!="string"&&Mt.stateNode===null)throw Error(pt(166));if(Rt=Br.current,HQ(Mt)){if(Rt=Mt.stateNode,Ut=Mt.memoizedProps,Kt=null,jn=Ag,jn!==null)switch(jn.tag){case 27:case 5:Kt=jn.memoizedProps}Rt[sl]=Mt,Rt=!!(Rt.nodeValue===Ut||Kt!==null&&Kt.suppressHydrationWarning===!0||jL(Rt.nodeValue,Ut)),Rt||yE(Mt,!0)}else Rt=dD(Rt).createTextNode(Kt),Rt[sl]=Mt,Mt.stateNode=Rt}return Gd(Mt),null;case 31:if(Ut=Mt.memoizedState,Rt===null||Rt.memoizedState!==null){if(Kt=HQ(Mt),Ut!==null){if(Rt===null){if(!Kt)throw Error(pt(318));if(Rt=Mt.memoizedState,Rt=Rt!==null?Rt.dehydrated:null,!Rt)throw Error(pt(557));Rt[sl]=Mt}else RB(),(Mt.flags&128)===0&&(Mt.memoizedState=null),Mt.flags|=4;Gd(Mt),Rt=!1}else Ut=YQ(),Rt!==null&&Rt.memoizedState!==null&&(Rt.memoizedState.hydrationErrors=Ut),Rt=!0;if(!Rt)return Mt.flags&256?(a0(Mt),Mt):(a0(Mt),null);if((Mt.flags&128)!==0)throw Error(pt(558))}return Gd(Mt),null;case 13:if(Kt=Mt.memoizedState,Rt===null||Rt.memoizedState!==null&&Rt.memoizedState.dehydrated!==null){if(jn=HQ(Mt),Kt!==null&&Kt.dehydrated!==null){if(Rt===null){if(!jn)throw Error(pt(318));if(jn=Mt.memoizedState,jn=jn!==null?jn.dehydrated:null,!jn)throw Error(pt(317));jn[sl]=Mt}else RB(),(Mt.flags&128)===0&&(Mt.memoizedState=null),Mt.flags|=4;Gd(Mt),jn=!1}else jn=YQ(),Rt!==null&&Rt.memoizedState!==null&&(Rt.memoizedState.hydrationErrors=jn),jn=!0;if(!jn)return Mt.flags&256?(a0(Mt),Mt):(a0(Mt),null)}return a0(Mt),(Mt.flags&128)!==0?(Mt.lanes=Ut,Mt):(Ut=Kt!==null,Rt=Rt!==null&&Rt.memoizedState!==null,Ut&&(Kt=Mt.child,jn=null,Kt.alternate!==null&&Kt.alternate.memoizedState!==null&&Kt.alternate.memoizedState.cachePool!==null&&(jn=Kt.alternate.memoizedState.cachePool.pool),er=null,Kt.memoizedState!==null&&Kt.memoizedState.cachePool!==null&&(er=Kt.memoizedState.cachePool.pool),er!==jn&&(Kt.flags|=2048)),Ut!==Rt&&Ut&&(Mt.child.flags|=8192),rv(Mt,Mt.updateQueue),Gd(Mt),null);case 4:return jr(),Rt===null&&y6(Mt.stateNode.containerInfo),Gd(Mt),null;case 10:return $1(Mt.type),Gd(Mt),null;case 19:if(yr(Lp),Kt=Mt.memoizedState,Kt===null)return Gd(Mt),null;if(jn=(Mt.flags&128)!==0,er=Kt.rendering,er===null)if(jn)nI(Kt,!1);else{if(Qp!==0||Rt!==null&&(Rt.flags&128)!==0)for(Rt=Mt.child;Rt!==null;){if(er=P4(Rt),er!==null){for(Mt.flags|=128,nI(Kt,!1),Rt=er.updateQueue,Mt.updateQueue=Rt,rv(Mt,Rt),Mt.subtreeFlags=0,Rt=Ut,Ut=Mt.child;Ut!==null;)IN(Ut,Rt),Ut=Ut.sibling;return ir(Lp,Lp.current&1|2),Nl&&D1(Mt,Kt.treeForkCount),Mt.child}Rt=Rt.sibling}Kt.tail!==null&&qa()>nD&&(Mt.flags|=128,jn=!0,nI(Kt,!1),Mt.lanes=4194304)}else{if(!jn)if(Rt=P4(er),Rt!==null){if(Mt.flags|=128,jn=!0,Rt=Rt.updateQueue,Mt.updateQueue=Rt,rv(Mt,Rt),nI(Kt,!0),Kt.tail===null&&Kt.tailMode==="hidden"&&!er.alternate&&!Nl)return Gd(Mt),null}else 2*qa()-Kt.renderingStartTime>nD&&Ut!==536870912&&(Mt.flags|=128,jn=!0,nI(Kt,!1),Mt.lanes=4194304);Kt.isBackwards?(er.sibling=Mt.child,Mt.child=er):(Rt=Kt.last,Rt!==null?Rt.sibling=er:Mt.child=er,Kt.last=er)}return Kt.tail!==null?(Rt=Kt.tail,Kt.rendering=Rt,Kt.tail=Rt.sibling,Kt.renderingStartTime=qa(),Rt.sibling=null,Ut=Lp.current,ir(Lp,jn?Ut&1|2:Ut&1),Nl&&D1(Mt,Kt.treeForkCount),Rt):(Gd(Mt),null);case 22:case 23:return a0(Mt),bR(),Kt=Mt.memoizedState!==null,Rt!==null?Rt.memoizedState!==null!==Kt&&(Mt.flags|=8192):Kt&&(Mt.flags|=8192),Kt?(Ut&536870912)!==0&&(Mt.flags&128)===0&&(Gd(Mt),Mt.subtreeFlags&6&&(Mt.flags|=8192)):Gd(Mt),Ut=Mt.updateQueue,Ut!==null&&rv(Mt,Ut.retryQueue),Ut=null,Rt!==null&&Rt.memoizedState!==null&&Rt.memoizedState.cachePool!==null&&(Ut=Rt.memoizedState.cachePool.pool),Kt=null,Mt.memoizedState!==null&&Mt.memoizedState.cachePool!==null&&(Kt=Mt.memoizedState.cachePool.pool),Kt!==Ut&&(Mt.flags|=2048),Rt!==null&&yr(FB),null;case 24:return Ut=null,Rt!==null&&(Ut=Rt.memoizedState.cache),Mt.memoizedState.cache!==Ut&&(Mt.flags|=2048),$1(um),Gd(Mt),null;case 25:return null;case 30:return null}throw Error(pt(156,Mt.tag))}function BX(Rt,Mt){switch(nR(Mt),Mt.tag){case 1:return Rt=Mt.flags,Rt&65536?(Mt.flags=Rt&-65537|128,Mt):null;case 3:return $1(um),jr(),Rt=Mt.flags,(Rt&65536)!==0&&(Rt&128)===0?(Mt.flags=Rt&-65537|128,Mt):null;case 26:case 27:case 5:return ca(Mt),null;case 31:if(Mt.memoizedState!==null){if(a0(Mt),Mt.alternate===null)throw Error(pt(340));RB()}return Rt=Mt.flags,Rt&65536?(Mt.flags=Rt&-65537|128,Mt):null;case 13:if(a0(Mt),Rt=Mt.memoizedState,Rt!==null&&Rt.dehydrated!==null){if(Mt.alternate===null)throw Error(pt(340));RB()}return Rt=Mt.flags,Rt&65536?(Mt.flags=Rt&-65537|128,Mt):null;case 19:return yr(Lp),null;case 4:return jr(),null;case 10:return $1(Mt.type),null;case 22:case 23:return a0(Mt),bR(),Rt!==null&&yr(FB),Rt=Mt.flags,Rt&65536?(Mt.flags=Rt&-65537|128,Mt):null;case 24:return $1(um),null;case 25:return null;default:return null}}function K9(Rt,Mt){switch(nR(Mt),Mt.tag){case 3:$1(um),jr();break;case 26:case 27:case 5:ca(Mt);break;case 4:jr();break;case 31:Mt.memoizedState!==null&&a0(Mt);break;case 13:a0(Mt);break;case 19:yr(Lp);break;case 10:$1(Mt.type);break;case 22:case 23:a0(Mt),bR(),Rt!==null&&yr(FB);break;case 24:$1(um)}}function rI(Rt,Mt){try{var Ut=Mt.updateQueue,Kt=Ut!==null?Ut.lastEffect:null;if(Kt!==null){var jn=Kt.next;Ut=jn;do{if((Ut.tag&Rt)===Rt){Kt=void 0;var er=Ut.create,xr=Ut.inst;Kt=er(),xr.destroy=Kt}Ut=Ut.next}while(Ut!==jn)}}catch(Hr){Lu(Mt,Mt.return,Hr)}}function IE(Rt,Mt,Ut){try{var Kt=Mt.updateQueue,jn=Kt!==null?Kt.lastEffect:null;if(jn!==null){var er=jn.next;Kt=er;do{if((Kt.tag&Rt)===Rt){var xr=Kt.inst,Hr=xr.destroy;if(Hr!==void 0){xr.destroy=void 0,jn=Mt;var Ra=Ut,Ei=Hr;try{Ei()}catch(no){Lu(jn,Ra,no)}}}Kt=Kt.next}while(Kt!==er)}}catch(no){Lu(Mt,Mt.return,no)}}function W4(Rt){var Mt=Rt.updateQueue;if(Mt!==null){var Ut=Rt.stateNode;try{zN(Mt,Ut)}catch(Kt){Lu(Rt,Rt.return,Kt)}}}function aI(Rt,Mt,Ut){Ut.props=qB(Rt.type,Rt.memoizedProps),Ut.state=Rt.memoizedState;try{Ut.componentWillUnmount()}catch(Kt){Lu(Rt,Mt,Kt)}}function xE(Rt,Mt){try{var Ut=Rt.ref;if(Ut!==null){switch(Rt.tag){case 26:case 27:case 5:var Kt=Rt.stateNode;break;case 30:Kt=Rt.stateNode;break;default:Kt=Rt.stateNode}typeof Ut=="function"?Rt.refCleanup=Ut(Kt):Ut.current=Kt}}catch(jn){Lu(Rt,Mt,jn)}}function cw(Rt,Mt){var Ut=Rt.ref,Kt=Rt.refCleanup;if(Ut!==null)if(typeof Kt=="function")try{Kt()}catch(jn){Lu(Rt,Mt,jn)}finally{Rt.refCleanup=null,Rt=Rt.alternate,Rt!=null&&(Rt.refCleanup=null)}else if(typeof Ut=="function")try{Ut(null)}catch(jn){Lu(Rt,Mt,jn)}else Ut.current=null}function XR(Rt){var Mt=Rt.type,Ut=Rt.memoizedProps,Kt=Rt.stateNode;try{e:switch(Mt){case"button":case"input":case"select":case"textarea":Ut.autoFocus&&Kt.focus();break e;case"img":Ut.src?Kt.src=Ut.src:Ut.srcSet&&(Kt.srcset=Ut.srcSet)}}catch(jn){Lu(Rt,Rt.return,jn)}}function WR(Rt,Mt,Ut){try{var Kt=Rt.stateNode;jX(Kt,Rt.type,Ut,Mt),Kt[Yr]=Mt}catch(jn){Lu(Rt,Rt.return,jn)}}function J9(Rt){return Rt.tag===5||Rt.tag===3||Rt.tag===26||Rt.tag===27&&ME(Rt.type)||Rt.tag===4}function av(Rt){e:for(;;){for(;Rt.sibling===null;){if(Rt.return===null||J9(Rt.return))return null;Rt=Rt.return}for(Rt.sibling.return=Rt.return,Rt=Rt.sibling;Rt.tag!==5&&Rt.tag!==6&&Rt.tag!==18;){if(Rt.tag===27&&ME(Rt.type)||Rt.flags&2||Rt.child===null||Rt.tag===4)continue e;Rt.child.return=Rt,Rt=Rt.child}if(!(Rt.flags&2))return Rt.stateNode}}function VR(Rt,Mt,Ut){var Kt=Rt.tag;if(Kt===5||Kt===6)Rt=Rt.stateNode,Mt?(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).insertBefore(Rt,Mt):(Mt=Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut,Mt.appendChild(Rt),Ut=Ut._reactRootContainer,Ut!=null||Mt.onclick!==null||(Mt.onclick=W0));else if(Kt!==4&&(Kt===27&&ME(Rt.type)&&(Ut=Rt.stateNode,Mt=null),Rt=Rt.child,Rt!==null))for(VR(Rt,Mt,Ut),Rt=Rt.sibling;Rt!==null;)VR(Rt,Mt,Ut),Rt=Rt.sibling}function V4(Rt,Mt,Ut){var Kt=Rt.tag;if(Kt===5||Kt===6)Rt=Rt.stateNode,Mt?Ut.insertBefore(Rt,Mt):Ut.appendChild(Rt);else if(Kt!==4&&(Kt===27&&ME(Rt.type)&&(Ut=Rt.stateNode),Rt=Rt.child,Rt!==null))for(V4(Rt,Mt,Ut),Rt=Rt.sibling;Rt!==null;)V4(Rt,Mt,Ut),Rt=Rt.sibling}function eL(Rt){var Mt=Rt.stateNode,Ut=Rt.memoizedProps;try{for(var Kt=Rt.type,jn=Mt.attributes;jn.length;)Mt.removeAttributeNode(jn[0]);qg(Mt,Kt,Ut),Mt[sl]=Rt,Mt[Yr]=Ut}catch(er){Lu(Rt,Rt.return,er)}}var ab=!1,pm=!1,KR=!1,tL=typeof WeakSet=="function"?WeakSet:Set,cg=null;function K4(Rt,Mt){if(Rt=Rt.containerInfo,E6=hI,Rt=wN(Rt),z3(Rt)){if("selectionStart"in Rt)var Ut={start:Rt.selectionStart,end:Rt.selectionEnd};else e:{Ut=(Ut=Rt.ownerDocument)&&Ut.defaultView||window;var Kt=Ut.getSelection&&Ut.getSelection();if(Kt&&Kt.rangeCount!==0){Ut=Kt.anchorNode;var jn=Kt.anchorOffset,er=Kt.focusNode;Kt=Kt.focusOffset;try{Ut.nodeType,er.nodeType}catch{Ut=null;break e}var xr=0,Hr=-1,Ra=-1,Ei=0,no=0,fo=Rt,Pi=null;t:for(;;){for(var Hi;fo!==Ut||jn!==0&&fo.nodeType!==3||(Hr=xr+jn),fo!==er||Kt!==0&&fo.nodeType!==3||(Ra=xr+Kt),fo.nodeType===3&&(xr+=fo.nodeValue.length),(Hi=fo.firstChild)!==null;)Pi=fo,fo=Hi;for(;;){if(fo===Rt)break t;if(Pi===Ut&&++Ei===jn&&(Hr=xr),Pi===er&&++no===Kt&&(Ra=xr),(Hi=fo.nextSibling)!==null)break;fo=Pi,Pi=fo.parentNode}fo=Hi}Ut=Hr===-1||Ra===-1?null:{start:Hr,end:Ra}}else Ut=null}Ut=Ut||{start:0,end:0}}else Ut=null;for(C6={focusedElem:Rt,selectionRange:Ut},hI=!1,cg=Mt;cg!==null;)if(Mt=cg,Rt=Mt.child,(Mt.subtreeFlags&1028)!==0&&Rt!==null)Rt.return=Mt,cg=Rt;else for(;cg!==null;){switch(Mt=cg,er=Mt.alternate,Rt=Mt.flags,Mt.tag){case 0:if((Rt&4)!==0&&(Rt=Mt.updateQueue,Rt=Rt!==null?Rt.events:null,Rt!==null))for(Ut=0;Ut<Rt.length;Ut++)jn=Rt[Ut],jn.ref.impl=jn.nextImpl;break;case 11:case 15:break;case 1:if((Rt&1024)!==0&&er!==null){Rt=void 0,Ut=Mt,jn=er.memoizedProps,er=er.memoizedState,Kt=Ut.stateNode;try{var nA=qB(Ut.type,jn);Rt=Kt.getSnapshotBeforeUpdate(nA,er),Kt.__reactInternalSnapshotBeforeUpdate=Rt}catch(tc){Lu(Ut,Ut.return,tc)}}break;case 3:if((Rt&1024)!==0){if(Rt=Mt.stateNode.containerInfo,Ut=Rt.nodeType,Ut===9)v6(Rt);else if(Ut===1)switch(Rt.nodeName){case"HEAD":case"HTML":case"BODY":v6(Rt);break;default:Rt.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((Rt&1024)!==0)throw Error(pt(163))}if(Rt=Mt.sibling,Rt!==null){Rt.return=Mt.return,cg=Rt;break}cg=Mt.return}}function nL(Rt,Mt,Ut){var Kt=Ut.flags;switch(Ut.tag){case 0:case 11:case 15:M1(Rt,Ut),Kt&4&&rI(5,Ut);break;case 1:if(M1(Rt,Ut),Kt&4)if(Rt=Ut.stateNode,Mt===null)try{Rt.componentDidMount()}catch(xr){Lu(Ut,Ut.return,xr)}else{var jn=qB(Ut.type,Mt.memoizedProps);Mt=Mt.memoizedState;try{Rt.componentDidUpdate(jn,Mt,Rt.__reactInternalSnapshotBeforeUpdate)}catch(xr){Lu(Ut,Ut.return,xr)}}Kt&64&&W4(Ut),Kt&512&&xE(Ut,Ut.return);break;case 3:if(M1(Rt,Ut),Kt&64&&(Rt=Ut.updateQueue,Rt!==null)){if(Mt=null,Ut.child!==null)switch(Ut.child.tag){case 27:case 5:Mt=Ut.child.stateNode;break;case 1:Mt=Ut.child.stateNode}try{zN(Rt,Mt)}catch(xr){Lu(Ut,Ut.return,xr)}}break;case 27:Mt===null&&Kt&4&&eL(Ut);case 26:case 5:M1(Rt,Ut),Mt===null&&Kt&4&&XR(Ut),Kt&512&&xE(Ut,Ut.return);break;case 12:M1(Rt,Ut);break;case 31:M1(Rt,Ut),Kt&4&&aL(Rt,Ut);break;case 13:M1(Rt,Ut),Kt&4&&iL(Rt,Ut),Kt&64&&(Rt=Ut.memoizedState,Rt!==null&&(Rt=Rt.dehydrated,Rt!==null&&(Ut=$X.bind(null,Ut),VX(Rt,Ut))));break;case 22:if(Kt=Ut.memoizedState!==null||ab,!Kt){Mt=Mt!==null&&Mt.memoizedState!==null||pm,jn=ab;var er=pm;ab=Kt,(pm=Mt)&&!er?N1(Rt,Ut,(Ut.subtreeFlags&8772)!==0):M1(Rt,Ut),ab=jn,pm=er}break;case 30:break;default:M1(Rt,Ut)}}function JR(Rt){var Mt=Rt.alternate;Mt!==null&&(Rt.alternate=null,JR(Mt)),Rt.child=null,Rt.deletions=null,Rt.sibling=null,Rt.tag===5&&(Mt=Rt.stateNode,Mt!==null&&eA(Mt)),Rt.stateNode=null,Rt.return=null,Rt.dependencies=null,Rt.memoizedProps=null,Rt.memoizedState=null,Rt.pendingProps=null,Rt.stateNode=null,Rt.updateQueue=null}var ep=null,lf=!1;function lw(Rt,Mt,Ut){for(Ut=Ut.child;Ut!==null;)rL(Rt,Mt,Ut),Ut=Ut.sibling}function rL(Rt,Mt,Ut){if(Ji&&typeof Ji.onCommitFiberUnmount=="function")try{Ji.onCommitFiberUnmount(Jo,Ut)}catch{}switch(Ut.tag){case 26:pm||cw(Ut,Mt),lw(Rt,Mt,Ut),Ut.memoizedState?Ut.memoizedState.count--:Ut.stateNode&&(Ut=Ut.stateNode,Ut.parentNode.removeChild(Ut));break;case 27:pm||cw(Ut,Mt);var Kt=ep,jn=lf;ME(Ut.type)&&(ep=Ut.stateNode,lf=!1),lw(Rt,Mt,Ut),pv(Ut.stateNode),ep=Kt,lf=jn;break;case 5:pm||cw(Ut,Mt);case 6:if(Kt=ep,jn=lf,ep=null,lw(Rt,Mt,Ut),ep=Kt,lf=jn,ep!==null)if(lf)try{(ep.nodeType===9?ep.body:ep.nodeName==="HTML"?ep.ownerDocument.body:ep).removeChild(Ut.stateNode)}catch(er){Lu(Ut,Mt,er)}else try{ep.removeChild(Ut.stateNode)}catch(er){Lu(Ut,Mt,er)}break;case 18:ep!==null&&(lf?(Rt=ep,XL(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt,Ut.stateNode),YB(Rt)):XL(ep,Ut.stateNode));break;case 4:Kt=ep,jn=lf,ep=Ut.stateNode.containerInfo,lf=!0,lw(Rt,Mt,Ut),ep=Kt,lf=jn;break;case 0:case 11:case 14:case 15:IE(2,Ut,Mt),pm||IE(4,Ut,Mt),lw(Rt,Mt,Ut);break;case 1:pm||(cw(Ut,Mt),Kt=Ut.stateNode,typeof Kt.componentWillUnmount=="function"&&aI(Ut,Mt,Kt)),lw(Rt,Mt,Ut);break;case 21:lw(Rt,Mt,Ut);break;case 22:pm=(Kt=pm)||Ut.memoizedState!==null,lw(Rt,Mt,Ut),pm=Kt;break;default:lw(Rt,Mt,Ut)}}function aL(Rt,Mt){if(Mt.memoizedState===null&&(Rt=Mt.alternate,Rt!==null&&(Rt=Rt.memoizedState,Rt!==null))){Rt=Rt.dehydrated;try{YB(Rt)}catch(Ut){Lu(Mt,Mt.return,Ut)}}}function iL(Rt,Mt){if(Mt.memoizedState===null&&(Rt=Mt.alternate,Rt!==null&&(Rt=Rt.memoizedState,Rt!==null&&(Rt=Rt.dehydrated,Rt!==null))))try{YB(Rt)}catch(Ut){Lu(Mt,Mt.return,Ut)}}function QX(Rt){switch(Rt.tag){case 31:case 13:case 19:var Mt=Rt.stateNode;return Mt===null&&(Mt=Rt.stateNode=new tL),Mt;case 22:return Rt=Rt.stateNode,Mt=Rt._retryCache,Mt===null&&(Mt=Rt._retryCache=new tL),Mt;default:throw Error(pt(435,Rt.tag))}}function e6(Rt,Mt){var Ut=QX(Rt);Mt.forEach(function(Kt){if(!Ut.has(Kt)){Ut.add(Kt);var jn=TX.bind(null,Rt,Kt);Kt.then(jn,jn)}})}function Ch(Rt,Mt){var Ut=Mt.deletions;if(Ut!==null)for(var Kt=0;Kt<Ut.length;Kt++){var jn=Ut[Kt],er=Rt,xr=Mt,Hr=xr;e:for(;Hr!==null;){switch(Hr.tag){case 27:if(ME(Hr.type)){ep=Hr.stateNode,lf=!1;break e}break;case 5:ep=Hr.stateNode,lf=!1;break e;case 3:case 4:ep=Hr.stateNode.containerInfo,lf=!0;break e}Hr=Hr.return}if(ep===null)throw Error(pt(160));rL(er,xr,jn),ep=null,lf=!1,er=jn.alternate,er!==null&&(er.return=null),jn.return=null}if(Mt.subtreeFlags&13886)for(Mt=Mt.child;Mt!==null;)oL(Mt,Rt),Mt=Mt.sibling}var ey=null;function oL(Rt,Mt){var Ut=Rt.alternate,Kt=Rt.flags;switch(Rt.tag){case 0:case 11:case 14:case 15:Ch(Mt,Rt),Bh(Rt),Kt&4&&(IE(3,Rt,Rt.return),rI(3,Rt),IE(5,Rt,Rt.return));break;case 1:Ch(Mt,Rt),Bh(Rt),Kt&512&&(pm||Ut===null||cw(Ut,Ut.return)),Kt&64&&ab&&(Rt=Rt.updateQueue,Rt!==null&&(Kt=Rt.callbacks,Kt!==null&&(Ut=Rt.shared.hiddenCallbacks,Rt.shared.hiddenCallbacks=Ut===null?Kt:Ut.concat(Kt))));break;case 26:var jn=ey;if(Ch(Mt,Rt),Bh(Rt),Kt&512&&(pm||Ut===null||cw(Ut,Ut.return)),Kt&4){var er=Ut!==null?Ut.memoizedState:null;if(Kt=Rt.memoizedState,Ut===null)if(Kt===null)if(Rt.stateNode===null){e:{Kt=Rt.type,Ut=Rt.memoizedProps,jn=jn.ownerDocument||jn;t:switch(Kt){case"title":er=jn.getElementsByTagName("title")[0],(!er||er[es]||er[sl]||er.namespaceURI==="http://www.w3.org/2000/svg"||er.hasAttribute("itemprop"))&&(er=jn.createElement(Kt),jn.head.insertBefore(er,jn.querySelector("head > title"))),qg(er,Kt,Ut),er[sl]=Rt,tl(er),Kt=er;break e;case"link":var xr=o7("link","href",jn).get(Kt+(Ut.href||""));if(xr){for(var Hr=0;Hr<xr.length;Hr++)if(er=xr[Hr],er.getAttribute("href")===(Ut.href==null||Ut.href===""?null:Ut.href)&&er.getAttribute("rel")===(Ut.rel==null?null:Ut.rel)&&er.getAttribute("title")===(Ut.title==null?null:Ut.title)&&er.getAttribute("crossorigin")===(Ut.crossOrigin==null?null:Ut.crossOrigin)){xr.splice(Hr,1);break t}}er=jn.createElement(Kt),qg(er,Kt,Ut),jn.head.appendChild(er);break;case"meta":if(xr=o7("meta","content",jn).get(Kt+(Ut.content||""))){for(Hr=0;Hr<xr.length;Hr++)if(er=xr[Hr],er.getAttribute("content")===(Ut.content==null?null:""+Ut.content)&&er.getAttribute("name")===(Ut.name==null?null:Ut.name)&&er.getAttribute("property")===(Ut.property==null?null:Ut.property)&&er.getAttribute("http-equiv")===(Ut.httpEquiv==null?null:Ut.httpEquiv)&&er.getAttribute("charset")===(Ut.charSet==null?null:Ut.charSet)){xr.splice(Hr,1);break t}}er=jn.createElement(Kt),qg(er,Kt,Ut),jn.head.appendChild(er);break;default:throw Error(pt(468,Kt))}er[sl]=Rt,tl(er),Kt=er}Rt.stateNode=Kt}else gD(jn,Rt.type,Rt.stateNode);else Rt.stateNode=i7(jn,Kt,Rt.memoizedProps);else er!==Kt?(er===null?Ut.stateNode!==null&&(Ut=Ut.stateNode,Ut.parentNode.removeChild(Ut)):er.count--,Kt===null?gD(jn,Rt.type,Rt.stateNode):i7(jn,Kt,Rt.memoizedProps)):Kt===null&&Rt.stateNode!==null&&WR(Rt,Rt.memoizedProps,Ut.memoizedProps)}break;case 27:Ch(Mt,Rt),Bh(Rt),Kt&512&&(pm||Ut===null||cw(Ut,Ut.return)),Ut!==null&&Kt&4&&WR(Rt,Rt.memoizedProps,Ut.memoizedProps);break;case 5:if(Ch(Mt,Rt),Bh(Rt),Kt&512&&(pm||Ut===null||cw(Ut,Ut.return)),Rt.flags&32){jn=Rt.stateNode;try{O1(jn,"")}catch(nA){Lu(Rt,Rt.return,nA)}}Kt&4&&Rt.stateNode!=null&&(jn=Rt.memoizedProps,WR(Rt,jn,Ut!==null?Ut.memoizedProps:jn)),Kt&1024&&(KR=!0);break;case 6:if(Ch(Mt,Rt),Bh(Rt),Kt&4){if(Rt.stateNode===null)throw Error(pt(162));Kt=Rt.memoizedProps,Ut=Rt.stateNode;try{Ut.nodeValue=Kt}catch(nA){Lu(Rt,Rt.return,nA)}}break;case 3:if(bv=null,jn=ey,ey=pD(Mt.containerInfo),Ch(Mt,Rt),ey=jn,Bh(Rt),Kt&4&&Ut!==null&&Ut.memoizedState.isDehydrated)try{YB(Mt.containerInfo)}catch(nA){Lu(Rt,Rt.return,nA)}KR&&(KR=!1,sL(Rt));break;case 4:Kt=ey,ey=pD(Rt.stateNode.containerInfo),Ch(Mt,Rt),Bh(Rt),ey=Kt;break;case 12:Ch(Mt,Rt),Bh(Rt);break;case 31:Ch(Mt,Rt),Bh(Rt),Kt&4&&(Kt=Rt.updateQueue,Kt!==null&&(Rt.updateQueue=null,e6(Rt,Kt)));break;case 13:Ch(Mt,Rt),Bh(Rt),Rt.child.flags&8192&&Rt.memoizedState!==null!=(Ut!==null&&Ut.memoizedState!==null)&&(tD=qa()),Kt&4&&(Kt=Rt.updateQueue,Kt!==null&&(Rt.updateQueue=null,e6(Rt,Kt)));break;case 22:jn=Rt.memoizedState!==null;var Ra=Ut!==null&&Ut.memoizedState!==null,Ei=ab,no=pm;if(ab=Ei||jn,pm=no||Ra,Ch(Mt,Rt),pm=no,ab=Ei,Bh(Rt),Kt&8192)e:for(Mt=Rt.stateNode,Mt._visibility=jn?Mt._visibility&-2:Mt._visibility|1,jn&&(Ut===null||Ra||ab||pm||jB(Rt)),Ut=null,Mt=Rt;;){if(Mt.tag===5||Mt.tag===26){if(Ut===null){Ra=Ut=Mt;try{if(er=Ra.stateNode,jn)xr=er.style,typeof xr.setProperty=="function"?xr.setProperty("display","none","important"):xr.display="none";else{Hr=Ra.stateNode;var fo=Ra.memoizedProps.style,Pi=fo!=null&&fo.hasOwnProperty("display")?fo.display:null;Hr.style.display=Pi==null||typeof Pi=="boolean"?"":(""+Pi).trim()}}catch(nA){Lu(Ra,Ra.return,nA)}}}else if(Mt.tag===6){if(Ut===null){Ra=Mt;try{Ra.stateNode.nodeValue=jn?"":Ra.memoizedProps}catch(nA){Lu(Ra,Ra.return,nA)}}}else if(Mt.tag===18){if(Ut===null){Ra=Mt;try{var Hi=Ra.stateNode;jn?WL(Hi,!0):WL(Ra.stateNode,!1)}catch(nA){Lu(Ra,Ra.return,nA)}}}else if((Mt.tag!==22&&Mt.tag!==23||Mt.memoizedState===null||Mt===Rt)&&Mt.child!==null){Mt.child.return=Mt,Mt=Mt.child;continue}if(Mt===Rt)break e;for(;Mt.sibling===null;){if(Mt.return===null||Mt.return===Rt)break e;Ut===Mt&&(Ut=null),Mt=Mt.return}Ut===Mt&&(Ut=null),Mt.sibling.return=Mt.return,Mt=Mt.sibling}Kt&4&&(Kt=Rt.updateQueue,Kt!==null&&(Ut=Kt.retryQueue,Ut!==null&&(Kt.retryQueue=null,e6(Rt,Ut))));break;case 19:Ch(Mt,Rt),Bh(Rt),Kt&4&&(Kt=Rt.updateQueue,Kt!==null&&(Rt.updateQueue=null,e6(Rt,Kt)));break;case 30:break;case 21:break;default:Ch(Mt,Rt),Bh(Rt)}}function Bh(Rt){var Mt=Rt.flags;if(Mt&2){try{for(var Ut,Kt=Rt.return;Kt!==null;){if(J9(Kt)){Ut=Kt;break}Kt=Kt.return}if(Ut==null)throw Error(pt(160));switch(Ut.tag){case 27:var jn=Ut.stateNode,er=av(Rt);V4(Rt,er,jn);break;case 5:var xr=Ut.stateNode;Ut.flags&32&&(O1(xr,""),Ut.flags&=-33);var Hr=av(Rt);V4(Rt,Hr,xr);break;case 3:case 4:var Ra=Ut.stateNode.containerInfo,Ei=av(Rt);VR(Rt,Ei,Ra);break;default:throw Error(pt(161))}}catch(no){Lu(Rt,Rt.return,no)}Rt.flags&=-3}Mt&4096&&(Rt.flags&=-4097)}function sL(Rt){if(Rt.subtreeFlags&1024)for(Rt=Rt.child;Rt!==null;){var Mt=Rt;sL(Mt),Mt.tag===5&&Mt.flags&1024&&Mt.stateNode.reset(),Rt=Rt.sibling}}function M1(Rt,Mt){if(Mt.subtreeFlags&8772)for(Mt=Mt.child;Mt!==null;)nL(Rt,Mt.alternate,Mt),Mt=Mt.sibling}function jB(Rt){for(Rt=Rt.child;Rt!==null;){var Mt=Rt;switch(Mt.tag){case 0:case 11:case 14:case 15:IE(4,Mt,Mt.return),jB(Mt);break;case 1:cw(Mt,Mt.return);var Ut=Mt.stateNode;typeof Ut.componentWillUnmount=="function"&&aI(Mt,Mt.return,Ut),jB(Mt);break;case 27:pv(Mt.stateNode);case 26:case 5:cw(Mt,Mt.return),jB(Mt);break;case 22:Mt.memoizedState===null&&jB(Mt);break;case 30:jB(Mt);break;default:jB(Mt)}Rt=Rt.sibling}}function N1(Rt,Mt,Ut){for(Ut=Ut&&(Mt.subtreeFlags&8772)!==0,Mt=Mt.child;Mt!==null;){var Kt=Mt.alternate,jn=Rt,er=Mt,xr=er.flags;switch(er.tag){case 0:case 11:case 15:N1(jn,er,Ut),rI(4,er);break;case 1:if(N1(jn,er,Ut),Kt=er,jn=Kt.stateNode,typeof jn.componentDidMount=="function")try{jn.componentDidMount()}catch(Ei){Lu(Kt,Kt.return,Ei)}if(Kt=er,jn=Kt.updateQueue,jn!==null){var Hr=Kt.stateNode;try{var Ra=jn.shared.hiddenCallbacks;if(Ra!==null)for(jn.shared.hiddenCallbacks=null,jn=0;jn<Ra.length;jn++)UN(Ra[jn],Hr)}catch(Ei){Lu(Kt,Kt.return,Ei)}}Ut&&xr&64&&W4(er),xE(er,er.return);break;case 27:eL(er);case 26:case 5:N1(jn,er,Ut),Ut&&Kt===null&&xr&4&&XR(er),xE(er,er.return);break;case 12:N1(jn,er,Ut);break;case 31:N1(jn,er,Ut),Ut&&xr&4&&aL(jn,er);break;case 13:N1(jn,er,Ut),Ut&&xr&4&&iL(jn,er);break;case 22:er.memoizedState===null&&N1(jn,er,Ut),xE(er,er.return);break;case 30:break;default:N1(jn,er,Ut)}Mt=Mt.sibling}}function t6(Rt,Mt){var Ut=null;Rt!==null&&Rt.memoizedState!==null&&Rt.memoizedState.cachePool!==null&&(Ut=Rt.memoizedState.cachePool.pool),Rt=null,Mt.memoizedState!==null&&Mt.memoizedState.cachePool!==null&&(Rt=Mt.memoizedState.cachePool.pool),Rt!==Ut&&(Rt!=null&&Rt.refCount++,Ut!=null&&j_(Ut))}function n6(Rt,Mt){Rt=null,Mt.alternate!==null&&(Rt=Mt.alternate.memoizedState.cache),Mt=Mt.memoizedState.cache,Mt!==Rt&&(Mt.refCount++,Rt!=null&&j_(Rt))}function Gg(Rt,Mt,Ut,Kt){if(Mt.subtreeFlags&10256)for(Mt=Mt.child;Mt!==null;)J4(Rt,Mt,Ut,Kt),Mt=Mt.sibling}function J4(Rt,Mt,Ut,Kt){var jn=Mt.flags;switch(Mt.tag){case 0:case 11:case 15:Gg(Rt,Mt,Ut,Kt),jn&2048&&rI(9,Mt);break;case 1:Gg(Rt,Mt,Ut,Kt);break;case 3:Gg(Rt,Mt,Ut,Kt),jn&2048&&(Rt=null,Mt.alternate!==null&&(Rt=Mt.alternate.memoizedState.cache),Mt=Mt.memoizedState.cache,Mt!==Rt&&(Mt.refCount++,Rt!=null&&j_(Rt)));break;case 12:if(jn&2048){Gg(Rt,Mt,Ut,Kt),Rt=Mt.stateNode;try{var er=Mt.memoizedProps,xr=er.id,Hr=er.onPostCommit;typeof Hr=="function"&&Hr(xr,Mt.alternate===null?"mount":"update",Rt.passiveEffectDuration,-0)}catch(Ra){Lu(Mt,Mt.return,Ra)}}else Gg(Rt,Mt,Ut,Kt);break;case 31:Gg(Rt,Mt,Ut,Kt);break;case 13:Gg(Rt,Mt,Ut,Kt);break;case 23:break;case 22:er=Mt.stateNode,xr=Mt.alternate,Mt.memoizedState!==null?er._visibility&2?Gg(Rt,Mt,Ut,Kt):iI(Rt,Mt):er._visibility&2?Gg(Rt,Mt,Ut,Kt):(er._visibility|=2,iv(Rt,Mt,Ut,Kt,(Mt.subtreeFlags&10256)!==0||!1)),jn&2048&&t6(xr,Mt);break;case 24:Gg(Rt,Mt,Ut,Kt),jn&2048&&n6(Mt.alternate,Mt);break;default:Gg(Rt,Mt,Ut,Kt)}}function iv(Rt,Mt,Ut,Kt,jn){for(jn=jn&&((Mt.subtreeFlags&10256)!==0||!1),Mt=Mt.child;Mt!==null;){var er=Rt,xr=Mt,Hr=Ut,Ra=Kt,Ei=xr.flags;switch(xr.tag){case 0:case 11:case 15:iv(er,xr,Hr,Ra,jn),rI(8,xr);break;case 23:break;case 22:var no=xr.stateNode;xr.memoizedState!==null?no._visibility&2?iv(er,xr,Hr,Ra,jn):iI(er,xr):(no._visibility|=2,iv(er,xr,Hr,Ra,jn)),jn&&Ei&2048&&t6(xr.alternate,xr);break;case 24:iv(er,xr,Hr,Ra,jn),jn&&Ei&2048&&n6(xr.alternate,xr);break;default:iv(er,xr,Hr,Ra,jn)}Mt=Mt.sibling}}function iI(Rt,Mt){if(Mt.subtreeFlags&10256)for(Mt=Mt.child;Mt!==null;){var Ut=Rt,Kt=Mt,jn=Kt.flags;switch(Kt.tag){case 22:iI(Ut,Kt),jn&2048&&t6(Kt.alternate,Kt);break;case 24:iI(Ut,Kt),jn&2048&&n6(Kt.alternate,Kt);break;default:iI(Ut,Kt)}Mt=Mt.sibling}}var oI=8192;function ov(Rt,Mt,Ut){if(Rt.subtreeFlags&oI)for(Rt=Rt.child;Rt!==null;)AL(Rt,Mt,Ut),Rt=Rt.sibling}function AL(Rt,Mt,Ut){switch(Rt.tag){case 26:ov(Rt,Mt,Ut),Rt.flags&oI&&Rt.memoizedState!==null&&aW(Ut,ey,Rt.memoizedState,Rt.memoizedProps);break;case 5:ov(Rt,Mt,Ut);break;case 3:case 4:var Kt=ey;ey=pD(Rt.stateNode.containerInfo),ov(Rt,Mt,Ut),ey=Kt;break;case 22:Rt.memoizedState===null&&(Kt=Rt.alternate,Kt!==null&&Kt.memoizedState!==null?(Kt=oI,oI=16777216,ov(Rt,Mt,Ut),oI=Kt):ov(Rt,Mt,Ut));break;default:ov(Rt,Mt,Ut)}}function cL(Rt){var Mt=Rt.alternate;if(Mt!==null&&(Rt=Mt.child,Rt!==null)){Mt.child=null;do Mt=Rt.sibling,Rt.sibling=null,Rt=Mt;while(Rt!==null)}}function sI(Rt){var Mt=Rt.deletions;if((Rt.flags&16)!==0){if(Mt!==null)for(var Ut=0;Ut<Mt.length;Ut++){var Kt=Mt[Ut];cg=Kt,uL(Kt,Rt)}cL(Rt)}if(Rt.subtreeFlags&10256)for(Rt=Rt.child;Rt!==null;)lL(Rt),Rt=Rt.sibling}function lL(Rt){switch(Rt.tag){case 0:case 11:case 15:sI(Rt),Rt.flags&2048&&IE(9,Rt,Rt.return);break;case 3:sI(Rt);break;case 12:sI(Rt);break;case 22:var Mt=Rt.stateNode;Rt.memoizedState!==null&&Mt._visibility&2&&(Rt.return===null||Rt.return.tag!==13)?(Mt._visibility&=-3,eD(Rt)):sI(Rt);break;default:sI(Rt)}}function eD(Rt){var Mt=Rt.deletions;if((Rt.flags&16)!==0){if(Mt!==null)for(var Ut=0;Ut<Mt.length;Ut++){var Kt=Mt[Ut];cg=Kt,uL(Kt,Rt)}cL(Rt)}for(Rt=Rt.child;Rt!==null;){switch(Mt=Rt,Mt.tag){case 0:case 11:case 15:IE(8,Mt,Mt.return),eD(Mt);break;case 22:Ut=Mt.stateNode,Ut._visibility&2&&(Ut._visibility&=-3,eD(Mt));break;default:eD(Mt)}Rt=Rt.sibling}}function uL(Rt,Mt){for(;cg!==null;){var Ut=cg;switch(Ut.tag){case 0:case 11:case 15:IE(8,Ut,Mt);break;case 23:case 22:if(Ut.memoizedState!==null&&Ut.memoizedState.cachePool!==null){var Kt=Ut.memoizedState.cachePool.pool;Kt!=null&&Kt.refCount++}break;case 24:j_(Ut.memoizedState.cache)}if(Kt=Ut.child,Kt!==null)Kt.return=Ut,cg=Kt;else e:for(Ut=Rt;cg!==null;){Kt=cg;var jn=Kt.sibling,er=Kt.return;if(JR(Kt),Kt===Ut){cg=null;break e}if(jn!==null){jn.return=er,cg=jn;break e}cg=er}}}var vX={getCacheForType:function(Rt){var Mt=Ng(um),Ut=Mt.data.get(Rt);return Ut===void 0&&(Ut=Rt(),Mt.data.set(Rt,Ut)),Ut},cacheSignal:function(){return Ng(um).controller.signal}},OX=typeof WeakMap=="function"?WeakMap:Map,ku=0,fd=null,Cl=null,Tl=0,Nu=0,o0=null,SE=!1,sv=!1,r6=!1,L1=0,Qp=0,DE=0,UB=0,a6=0,s0=0,Av=0,AI=null,Qh=null,i6=!1,tD=0,dL=0,nD=1/0,rD=null,$E=null,Lm=0,TE=null,cv=null,G1=0,o6=0,s6=null,pL=null,cI=0,A6=null;function A0(){return(ku&2)!==0&&Tl!==0?Tl&-Tl:Yn.T!==null?m6():fc()}function mL(){if(s0===0)if((Tl&536870912)===0||Nl){var Rt=lA;lA<<=1,(lA&3932160)===0&&(lA=262144),s0=Rt}else s0=536870912;return Rt=r0.current,Rt!==null&&(Rt.flags|=32),s0}function Oh(Rt,Mt,Ut){(Rt===fd&&(Nu===2||Nu===9)||Rt.cancelPendingCommit!==null)&&(lv(Rt,0),PE(Rt,Tl,s0,!1)),uo(Rt,Ut),((ku&2)===0||Rt!==fd)&&(Rt===fd&&((ku&2)===0&&(UB|=Ut),Qp===4&&PE(Rt,Tl,s0,!1)),uw(Rt))}function gL(Rt,Mt,Ut){if((ku&6)!==0)throw Error(pt(327));var Kt=!Ut&&(Mt&127)===0&&(Mt&Rt.expiredLanes)===0||Mi(Rt,Mt),jn=Kt?xX(Rt,Mt):l6(Rt,Mt,!0),er=Kt;do{if(jn===0){sv&&!Kt&&PE(Rt,Mt,0,!1);break}else{if(Ut=Rt.current.alternate,er&&!_X(Ut)){jn=l6(Rt,Mt,!1),er=!1;continue}if(jn===2){if(er=Mt,Rt.errorRecoveryDisabledLanes&er)var xr=0;else xr=Rt.pendingLanes&-536870913,xr=xr!==0?xr:xr&536870912?536870912:0;if(xr!==0){Mt=xr;e:{var Hr=Rt;jn=AI;var Ra=Hr.current.memoizedState.isDehydrated;if(Ra&&(lv(Hr,xr).flags|=256),xr=l6(Hr,xr,!1),xr!==2){if(r6&&!Ra){Hr.errorRecoveryDisabledLanes|=er,UB|=er,jn=4;break e}er=Qh,Qh=jn,er!==null&&(Qh===null?Qh=er:Qh.push.apply(Qh,er))}jn=xr}if(er=!1,jn!==2)continue}}if(jn===1){lv(Rt,0),PE(Rt,Mt,0,!0);break}e:{switch(Kt=Rt,er=jn,er){case 0:case 1:throw Error(pt(345));case 4:if((Mt&4194048)!==Mt)break;case 6:PE(Kt,Mt,s0,!SE);break e;case 2:Qh=null;break;case 3:case 5:break;default:throw Error(pt(329))}if((Mt&62914560)===Mt&&(jn=tD+300-qa(),10<jn)){if(PE(Kt,Mt,s0,!SE),si(Kt,0,!0)!==0)break e;G1=Mt,Kt.timeoutHandle=YL(fL.bind(null,Kt,Ut,Qh,rD,i6,Mt,s0,UB,Av,SE,er,"Throttled",-0,0),jn);break e}fL(Kt,Ut,Qh,rD,i6,Mt,s0,UB,Av,SE,er,null,-0,0)}}break}while(!0);uw(Rt)}function fL(Rt,Mt,Ut,Kt,jn,er,xr,Hr,Ra,Ei,no,fo,Pi,Hi){if(Rt.timeoutHandle=-1,fo=Mt.subtreeFlags,fo&8192||(fo&16785408)===16785408){fo={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:W0},AL(Mt,er,fo);var nA=(er&62914560)===er?tD-qa():(er&4194048)===er?dL-qa():0;if(nA=iW(fo,nA),nA!==null){G1=er,Rt.cancelPendingCommit=nA(BL.bind(null,Rt,Mt,er,Ut,Kt,jn,xr,Hr,Ra,no,fo,null,Pi,Hi)),PE(Rt,er,xr,!Ei);return}}BL(Rt,Mt,er,Ut,Kt,jn,xr,Hr,Ra)}function _X(Rt){for(var Mt=Rt;;){var Ut=Mt.tag;if((Ut===0||Ut===11||Ut===15)&&Mt.flags&16384&&(Ut=Mt.updateQueue,Ut!==null&&(Ut=Ut.stores,Ut!==null)))for(var Kt=0;Kt<Ut.length;Kt++){var jn=Ut[Kt],er=jn.getSnapshot;jn=jn.value;try{if(!t0(er(),jn))return!1}catch{return!1}}if(Ut=Mt.child,Mt.subtreeFlags&16384&&Ut!==null)Ut.return=Mt,Mt=Ut;else{if(Mt===Rt)break;for(;Mt.sibling===null;){if(Mt.return===null||Mt.return===Rt)return!0;Mt=Mt.return}Mt.sibling.return=Mt.return,Mt=Mt.sibling}}return!0}function PE(Rt,Mt,Ut,Kt){Mt&=~a6,Mt&=~UB,Rt.suspendedLanes|=Mt,Rt.pingedLanes&=~Mt,Kt&&(Rt.warmLanes|=Mt),Kt=Rt.expirationTimes;for(var jn=Mt;0<jn;){var er=31-Vs(jn),xr=1<<er;Kt[er]=-1,jn&=~xr}Ut!==0&&Ss(Rt,Ut,Mt)}function aD(){return(ku&6)===0?(lI(0),!1):!0}function c6(){if(Cl!==null){if(Nu===0)var Rt=Cl.return;else Rt=Cl,sw=PB=null,QR(Rt),KQ=null,z_=0,Rt=Cl;for(;Rt!==null;)K9(Rt.alternate,Rt),Rt=Rt.return;Cl=null}}function lv(Rt,Mt){var Ut=Rt.timeoutHandle;Ut!==-1&&(Rt.timeoutHandle=-1,HX(Ut)),Ut=Rt.cancelPendingCommit,Ut!==null&&(Rt.cancelPendingCommit=null,Ut()),G1=0,c6(),fd=Rt,Cl=Ut=S1(Rt.current,null),Tl=Mt,Nu=0,o0=null,SE=!1,sv=Mi(Rt,Mt),r6=!1,Av=s0=a6=UB=DE=Qp=0,Qh=AI=null,i6=!1,(Mt&8)!==0&&(Mt|=Mt&32);var Kt=Rt.entangledLanes;if(Kt!==0)for(Rt=Rt.entanglements,Kt&=Mt;0<Kt;){var jn=31-Vs(Kt),er=1<<jn;Mt|=Rt[jn],Kt&=~er}return L1=Mt,Q4(),Ut}function hL(Rt,Mt){jc=null,Yn.H=eI,Mt===VQ||Mt===S4?(Mt=LN(),Nu=3):Mt===uR?(Mt=LN(),Nu=4):Nu=Mt===Aw?8:Mt!==null&&typeof Mt=="object"&&typeof Mt.then=="function"?6:1,o0=Mt,Cl===null&&(Qp=1,Y4(Rt,J0(Mt,Rt.current)))}function bL(){var Rt=r0.current;return Rt===null?!0:(Tl&4194048)===Tl?rb===null:(Tl&62914560)===Tl||(Tl&536870912)!==0?Rt===rb:!1}function yL(){var Rt=Yn.H;return Yn.H=eI,Rt===null?eI:Rt}function wL(){var Rt=Yn.A;return Yn.A=vX,Rt}function iD(){Qp=4,SE||(Tl&4194048)!==Tl&&r0.current!==null||(sv=!0),(DE&134217727)===0&&(UB&134217727)===0||fd===null||PE(fd,Tl,s0,!1)}function l6(Rt,Mt,Ut){var Kt=ku;ku|=2;var jn=yL(),er=wL();(fd!==Rt||Tl!==Mt)&&(rD=null,lv(Rt,Mt)),Mt=!1;var xr=Qp;e:do try{if(Nu!==0&&Cl!==null){var Hr=Cl,Ra=o0;switch(Nu){case 8:c6(),xr=6;break e;case 3:case 2:case 9:case 6:r0.current===null&&(Mt=!0);var Ei=Nu;if(Nu=0,o0=null,uv(Rt,Hr,Ra,Ei),Ut&&sv){xr=0;break e}break;default:Ei=Nu,Nu=0,o0=null,uv(Rt,Hr,Ra,Ei)}}IX(),xr=Qp;break}catch(no){hL(Rt,no)}while(!0);return Mt&&Rt.shellSuspendCounter++,sw=PB=null,ku=Kt,Yn.H=jn,Yn.A=er,Cl===null&&(fd=null,Tl=0,Q4()),xr}function IX(){for(;Cl!==null;)kL(Cl)}function xX(Rt,Mt){var Ut=ku;ku|=2;var Kt=yL(),jn=wL();fd!==Rt||Tl!==Mt?(rD=null,nD=qa()+500,lv(Rt,Mt)):sv=Mi(Rt,Mt);e:do try{if(Nu!==0&&Cl!==null){Mt=Cl;var er=o0;t:switch(Nu){case 1:Nu=0,o0=null,uv(Rt,Mt,er,1);break;case 2:case 9:if(dR(er)){Nu=0,o0=null,EL(Mt);break}Mt=function(){Nu!==2&&Nu!==9||fd!==Rt||(Nu=7),uw(Rt)},er.then(Mt,Mt);break e;case 3:Nu=7;break e;case 4:Nu=5;break e;case 7:dR(er)?(Nu=0,o0=null,EL(Mt)):(Nu=0,o0=null,uv(Rt,Mt,er,7));break;case 5:var xr=null;switch(Cl.tag){case 26:xr=Cl.memoizedState;case 5:case 27:var Hr=Cl;if(xr?s7(xr):Hr.stateNode.complete){Nu=0,o0=null;var Ra=Hr.sibling;if(Ra!==null)Cl=Ra;else{var Ei=Hr.return;Ei!==null?(Cl=Ei,oD(Ei)):Cl=null}break t}}Nu=0,o0=null,uv(Rt,Mt,er,5);break;case 6:Nu=0,o0=null,uv(Rt,Mt,er,6);break;case 8:c6(),Qp=6;break e;default:throw Error(pt(462))}}SX();break}catch(no){hL(Rt,no)}while(!0);return sw=PB=null,Yn.H=Kt,Yn.A=jn,ku=Ut,Cl!==null?0:(fd=null,Tl=0,Q4(),Qp)}function SX(){for(;Cl!==null&&!Ya();)kL(Cl)}function kL(Rt){var Mt=W9(Rt.alternate,Rt,L1);Rt.memoizedProps=Rt.pendingProps,Mt===null?oD(Rt):Cl=Mt}function EL(Rt){var Mt=Rt,Ut=Mt.alternate;switch(Mt.tag){case 15:case 0:Mt=U9(Ut,Mt,Mt.pendingProps,Mt.type,void 0,Tl);break;case 11:Mt=U9(Ut,Mt,Mt.pendingProps,Mt.type.render,Mt.ref,Tl);break;case 5:QR(Mt);default:K9(Ut,Mt),Mt=Cl=IN(Mt,L1),Mt=W9(Ut,Mt,L1)}Rt.memoizedProps=Rt.pendingProps,Mt===null?oD(Rt):Cl=Mt}function uv(Rt,Mt,Ut,Kt){sw=PB=null,QR(Mt),KQ=null,z_=0;var jn=Mt.return;try{if(kX(Rt,jn,Mt,Ut,Tl)){Qp=1,Y4(Rt,J0(Ut,Rt.current)),Cl=null;return}}catch(er){if(jn!==null)throw Cl=jn,er;Qp=1,Y4(Rt,J0(Ut,Rt.current)),Cl=null;return}Mt.flags&32768?(Nl||Kt===1?Rt=!0:sv||(Tl&536870912)!==0?Rt=!1:(SE=Rt=!0,(Kt===2||Kt===9||Kt===3||Kt===6)&&(Kt=r0.current,Kt!==null&&Kt.tag===13&&(Kt.flags|=16384))),CL(Mt,Rt)):oD(Mt)}function oD(Rt){var Mt=Rt;do{if((Mt.flags&32768)!==0){CL(Mt,SE);return}Rt=Mt.return;var Ut=ZR(Mt.alternate,Mt,L1);if(Ut!==null){Cl=Ut;return}if(Mt=Mt.sibling,Mt!==null){Cl=Mt;return}Cl=Mt=Rt}while(Mt!==null);Qp===0&&(Qp=5)}function CL(Rt,Mt){do{var Ut=BX(Rt.alternate,Rt);if(Ut!==null){Ut.flags&=32767,Cl=Ut;return}if(Ut=Rt.return,Ut!==null&&(Ut.flags|=32768,Ut.subtreeFlags=0,Ut.deletions=null),!Mt&&(Rt=Rt.sibling,Rt!==null)){Cl=Rt;return}Cl=Rt=Ut}while(Rt!==null);Qp=6,Cl=null}function BL(Rt,Mt,Ut,Kt,jn,er,xr,Hr,Ra){Rt.cancelPendingCommit=null;do sD();while(Lm!==0);if((ku&6)!==0)throw Error(pt(327));if(Mt!==null){if(Mt===Rt.current)throw Error(pt(177));if(er=Mt.lanes|Mt.childLanes,er|=W3,mo(Rt,Ut,er,xr,Hr,Ra),Rt===fd&&(Cl=fd=null,Tl=0),cv=Mt,TE=Rt,G1=Ut,o6=er,s6=jn,pL=Kt,(Mt.subtreeFlags&10256)!==0||(Mt.flags&10256)!==0?(Rt.callbackNode=null,Rt.callbackPriority=0,RX(qi,function(){return IL(),null})):(Rt.callbackNode=null,Rt.callbackPriority=0),Kt=(Mt.flags&13878)!==0,(Mt.subtreeFlags&13878)!==0||Kt){Kt=Yn.T,Yn.T=null,jn=lr.p,lr.p=2,xr=ku,ku|=4;try{K4(Rt,Mt,Ut)}finally{ku=xr,lr.p=jn,Yn.T=Kt}}Lm=1,QL(),vL(),OL()}}function QL(){if(Lm===1){Lm=0;var Rt=TE,Mt=cv,Ut=(Mt.flags&13878)!==0;if((Mt.subtreeFlags&13878)!==0||Ut){Ut=Yn.T,Yn.T=null;var Kt=lr.p;lr.p=2;var jn=ku;ku|=4;try{oL(Mt,Rt);var er=C6,xr=wN(Rt.containerInfo),Hr=er.focusedElem,Ra=er.selectionRange;if(xr!==Hr&&Hr&&Hr.ownerDocument&&yN(Hr.ownerDocument.documentElement,Hr)){if(Ra!==null&&z3(Hr)){var Ei=Ra.start,no=Ra.end;if(no===void 0&&(no=Ei),"selectionStart"in Hr)Hr.selectionStart=Ei,Hr.selectionEnd=Math.min(no,Hr.value.length);else{var fo=Hr.ownerDocument||document,Pi=fo&&fo.defaultView||window;if(Pi.getSelection){var Hi=Pi.getSelection(),nA=Hr.textContent.length,tc=Math.min(Ra.start,nA),hd=Ra.end===void 0?tc:Math.min(Ra.end,nA);!Hi.extend&&tc>hd&&(xr=hd,hd=tc,tc=xr);var oi=bN(Hr,tc),Ua=bN(Hr,hd);if(oi&&Ua&&(Hi.rangeCount!==1||Hi.anchorNode!==oi.node||Hi.anchorOffset!==oi.offset||Hi.focusNode!==Ua.node||Hi.focusOffset!==Ua.offset)){var bi=fo.createRange();bi.setStart(oi.node,oi.offset),Hi.removeAllRanges(),tc>hd?(Hi.addRange(bi),Hi.extend(Ua.node,Ua.offset)):(bi.setEnd(Ua.node,Ua.offset),Hi.addRange(bi))}}}}for(fo=[],Hi=Hr;Hi=Hi.parentNode;)Hi.nodeType===1&&fo.push({element:Hi,left:Hi.scrollLeft,top:Hi.scrollTop});for(typeof Hr.focus=="function"&&Hr.focus(),Hr=0;Hr<fo.length;Hr++){var Vi=fo[Hr];Vi.element.scrollLeft=Vi.left,Vi.element.scrollTop=Vi.top}}hI=!!E6,C6=E6=null}finally{ku=jn,lr.p=Kt,Yn.T=Ut}}Rt.current=Mt,Lm=2}}function vL(){if(Lm===2){Lm=0;var Rt=TE,Mt=cv,Ut=(Mt.flags&8772)!==0;if((Mt.subtreeFlags&8772)!==0||Ut){Ut=Yn.T,Yn.T=null;var Kt=lr.p;lr.p=2;var jn=ku;ku|=4;try{nL(Rt,Mt.alternate,Mt)}finally{ku=jn,lr.p=Kt,Yn.T=Ut}}Lm=3}}function OL(){if(Lm===4||Lm===3){Lm=0,Ta();var Rt=TE,Mt=cv,Ut=G1,Kt=pL;(Mt.subtreeFlags&10256)!==0||(Mt.flags&10256)!==0?Lm=5:(Lm=0,cv=TE=null,_L(Rt,Rt.pendingLanes));var jn=Rt.pendingLanes;if(jn===0&&($E=null),Es(Ut),Mt=Mt.stateNode,Ji&&typeof Ji.onCommitFiberRoot=="function")try{Ji.onCommitFiberRoot(Jo,Mt,void 0,(Mt.current.flags&128)===128)}catch{}if(Kt!==null){Mt=Yn.T,jn=lr.p,lr.p=2,Yn.T=null;try{for(var er=Rt.onRecoverableError,xr=0;xr<Kt.length;xr++){var Hr=Kt[xr];er(Hr.value,{componentStack:Hr.stack})}}finally{Yn.T=Mt,lr.p=jn}}(G1&3)!==0&&sD(),uw(Rt),jn=Rt.pendingLanes,(Ut&261930)!==0&&(jn&42)!==0?Rt===A6?cI++:(cI=0,A6=Rt):cI=0,lI(0)}}function _L(Rt,Mt){(Rt.pooledCacheLanes&=Mt)===0&&(Mt=Rt.pooledCache,Mt!=null&&(Rt.pooledCache=null,j_(Mt)))}function sD(){return QL(),vL(),OL(),IL()}function IL(){if(Lm!==5)return!1;var Rt=TE,Mt=o6;o6=0;var Ut=Es(G1),Kt=Yn.T,jn=lr.p;try{lr.p=32>Ut?32:Ut,Yn.T=null,Ut=s6,s6=null;var er=TE,xr=G1;if(Lm=0,cv=TE=null,G1=0,(ku&6)!==0)throw Error(pt(331));var Hr=ku;if(ku|=4,lL(er.current),J4(er,er.current,xr,Ut),ku=Hr,lI(0,!1),Ji&&typeof Ji.onPostCommitFiberRoot=="function")try{Ji.onPostCommitFiberRoot(Jo,er)}catch{}return!0}finally{lr.p=jn,Yn.T=Kt,_L(Rt,Mt)}}function xL(Rt,Mt,Ut){Mt=J0(Ut,Mt),Mt=MR(Rt.stateNode,Mt,2),Rt=QE(Rt,Mt,2),Rt!==null&&(uo(Rt,2),uw(Rt))}function Lu(Rt,Mt,Ut){if(Rt.tag===3)xL(Rt,Rt,Ut);else for(;Mt!==null;){if(Mt.tag===3){xL(Mt,Rt,Ut);break}else if(Mt.tag===1){var Kt=Mt.stateNode;if(typeof Mt.type.getDerivedStateFromError=="function"||typeof Kt.componentDidCatch=="function"&&($E===null||!$E.has(Kt))){Rt=J0(Ut,Rt),Ut=F9(2),Kt=QE(Mt,Ut,2),Kt!==null&&(i0(Ut,Kt,Mt,Rt),uo(Kt,2),uw(Kt));break}}Mt=Mt.return}}function u6(Rt,Mt,Ut){var Kt=Rt.pingCache;if(Kt===null){Kt=Rt.pingCache=new OX;var jn=new Set;Kt.set(Mt,jn)}else jn=Kt.get(Mt),jn===void 0&&(jn=new Set,Kt.set(Mt,jn));jn.has(Ut)||(r6=!0,jn.add(Ut),Rt=DX.bind(null,Rt,Mt,Ut),Mt.then(Rt,Rt))}function DX(Rt,Mt,Ut){var Kt=Rt.pingCache;Kt!==null&&Kt.delete(Mt),Rt.pingedLanes|=Rt.suspendedLanes&Ut,Rt.warmLanes&=~Ut,fd===Rt&&(Tl&Ut)===Ut&&(Qp===4||Qp===3&&(Tl&62914560)===Tl&&300>qa()-tD?(ku&2)===0&&lv(Rt,0):a6|=Ut,Av===Tl&&(Av=0)),uw(Rt)}function SL(Rt,Mt){Mt===0&&(Mt=So()),Rt=$B(Rt,Mt),Rt!==null&&(uo(Rt,Mt),uw(Rt))}function $X(Rt){var Mt=Rt.memoizedState,Ut=0;Mt!==null&&(Ut=Mt.retryLane),SL(Rt,Ut)}function TX(Rt,Mt){var Ut=0;switch(Rt.tag){case 31:case 13:var Kt=Rt.stateNode,jn=Rt.memoizedState;jn!==null&&(Ut=jn.retryLane);break;case 19:Kt=Rt.stateNode;break;case 22:Kt=Rt.stateNode._retryCache;break;default:throw Error(pt(314))}Kt!==null&&Kt.delete(Mt),SL(Rt,Ut)}function RX(Rt,Mt){return Za(Rt,Mt)}var AD=null,dv=null,d6=!1,cD=!1,p6=!1,FE=0;function uw(Rt){Rt!==dv&&Rt.next===null&&(dv===null?AD=dv=Rt:dv=dv.next=Rt),cD=!0,d6||(d6=!0,FX())}function lI(Rt,Mt){if(!p6&&cD){p6=!0;do for(var Ut=!1,Kt=AD;Kt!==null;){if(Rt!==0){var jn=Kt.pendingLanes;if(jn===0)var er=0;else{var xr=Kt.suspendedLanes,Hr=Kt.pingedLanes;er=(1<<31-Vs(42|Rt)+1)-1,er&=jn&~(xr&~Hr),er=er&201326741?er&201326741|1:er?er|2:0}er!==0&&(Ut=!0,RL(Kt,er))}else er=Tl,er=si(Kt,Kt===fd?er:0,Kt.cancelPendingCommit!==null||Kt.timeoutHandle!==-1),(er&3)===0||Mi(Kt,er)||(Ut=!0,RL(Kt,er));Kt=Kt.next}while(Ut);p6=!1}}function PX(){DL()}function DL(){cD=d6=!1;var Rt=0;FE!==0&&zX()&&(Rt=FE);for(var Mt=qa(),Ut=null,Kt=AD;Kt!==null;){var jn=Kt.next,er=$L(Kt,Mt);er===0?(Kt.next=null,Ut===null?AD=jn:Ut.next=jn,jn===null&&(dv=Ut)):(Ut=Kt,(Rt!==0||(er&3)!==0)&&(cD=!0)),Kt=jn}Lm!==0&&Lm!==5||lI(Rt),FE!==0&&(FE=0)}function $L(Rt,Mt){for(var Ut=Rt.suspendedLanes,Kt=Rt.pingedLanes,jn=Rt.expirationTimes,er=Rt.pendingLanes&-62914561;0<er;){var xr=31-Vs(er),Hr=1<<xr,Ra=jn[xr];Ra===-1?((Hr&Ut)===0||(Hr&Kt)!==0)&&(jn[xr]=rs(Hr,Mt)):Ra<=Mt&&(Rt.expiredLanes|=Hr),er&=~Hr}if(Mt=fd,Ut=Tl,Ut=si(Rt,Rt===Mt?Ut:0,Rt.cancelPendingCommit!==null||Rt.timeoutHandle!==-1),Kt=Rt.callbackNode,Ut===0||Rt===Mt&&(Nu===2||Nu===9)||Rt.cancelPendingCommit!==null)return Kt!==null&&Kt!==null&&$a(Kt),Rt.callbackNode=null,Rt.callbackPriority=0;if((Ut&3)===0||Mi(Rt,Ut)){if(Mt=Ut&-Ut,Mt===Rt.callbackPriority)return Mt;switch(Kt!==null&&$a(Kt),Es(Ut)){case 2:case 8:Ut=Ja;break;case 32:Ut=qi;break;case 268435456:Ut=ns;break;default:Ut=qi}return Kt=TL.bind(null,Rt),Ut=Za(Ut,Kt),Rt.callbackPriority=Mt,Rt.callbackNode=Ut,Mt}return Kt!==null&&Kt!==null&&$a(Kt),Rt.callbackPriority=2,Rt.callbackNode=null,2}function TL(Rt,Mt){if(Lm!==0&&Lm!==5)return Rt.callbackNode=null,Rt.callbackPriority=0,null;var Ut=Rt.callbackNode;if(sD()&&Rt.callbackNode!==Ut)return null;var Kt=Tl;return Kt=si(Rt,Rt===fd?Kt:0,Rt.cancelPendingCommit!==null||Rt.timeoutHandle!==-1),Kt===0?null:(gL(Rt,Kt,Mt),$L(Rt,qa()),Rt.callbackNode!=null&&Rt.callbackNode===Ut?TL.bind(null,Rt):null)}function RL(Rt,Mt){if(sD())return null;gL(Rt,Mt,!0)}function FX(){YX(function(){(ku&6)!==0?Za(La,PX):DL()})}function m6(){if(FE===0){var Rt=XQ;Rt===0&&(Rt=ks,ks<<=1,(ks&261888)===0&&(ks=256)),FE=Rt}return FE}function PL(Rt){return Rt==null||typeof Rt=="symbol"||typeof Rt=="boolean"?null:typeof Rt=="function"?Rt:xB(""+Rt)}function FL(Rt,Mt){var Ut=Mt.ownerDocument.createElement("input");return Ut.name=Mt.name,Ut.value=Mt.value,Rt.id&&Ut.setAttribute("form",Rt.id),Mt.parentNode.insertBefore(Ut,Mt),Rt=new FormData(Rt),Ut.parentNode.removeChild(Ut),Rt}function ML(Rt,Mt,Ut,Kt,jn){if(Mt==="submit"&&Ut&&Ut.stateNode===jn){var er=PL((jn[Yr]||null).action),xr=Kt.submitter;xr&&(Mt=(Mt=xr[Yr]||null)?PL(Mt.formAction):xr.getAttribute("formAction"),Mt!==null&&(er=Mt,xr=null));var Hr=new gd("action","action",null,Kt,jn);Rt.push({event:Hr,listeners:[{instance:null,listener:function(){if(Kt.defaultPrevented){if(FE!==0){var Ra=xr?FL(jn,xr):new FormData(jn);K_(Ut,{pending:!0,data:Ra,method:jn.method,action:er},null,Ra)}}else typeof er=="function"&&(Hr.preventDefault(),Ra=xr?FL(jn,xr):new FormData(jn),K_(Ut,{pending:!0,data:Ra,method:jn.method,action:er},er,Ra))},currentTarget:jn}]})}}for(var g6=0;g6<X3.length;g6++){var f6=X3[g6],h6=f6.toLowerCase(),MX=f6[0].toUpperCase()+f6.slice(1);Jb(h6,"on"+MX)}Jb(CN,"onAnimationEnd"),Jb(BN,"onAnimationIteration"),Jb(QN,"onAnimationStart"),Jb("dblclick","onDoubleClick"),Jb("focusin","onFocus"),Jb("focusout","onBlur"),Jb(iX,"onTransitionRun"),Jb(oX,"onTransitionStart"),Jb(sX,"onTransitionCancel"),Jb(vN,"onTransitionEnd"),Uo("onMouseEnter",["mouseout","mouseover"]),Uo("onMouseLeave",["mouseout","mouseover"]),Uo("onPointerEnter",["pointerout","pointerover"]),Uo("onPointerLeave",["pointerout","pointerover"]),hi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),hi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),hi("onBeforeInput",["compositionend","keypress","textInput","paste"]),hi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),hi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),hi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uI="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(" "),NX=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(uI));function NL(Rt,Mt){Mt=(Mt&4)!==0;for(var Ut=0;Ut<Rt.length;Ut++){var Kt=Rt[Ut],jn=Kt.event;Kt=Kt.listeners;e:{var er=void 0;if(Mt)for(var xr=Kt.length-1;0<=xr;xr--){var Hr=Kt[xr],Ra=Hr.instance,Ei=Hr.currentTarget;if(Hr=Hr.listener,Ra!==er&&jn.isPropagationStopped())break e;er=Hr,jn.currentTarget=Ei;try{er(jn)}catch(no){B4(no)}jn.currentTarget=null,er=Ra}else for(xr=0;xr<Kt.length;xr++){if(Hr=Kt[xr],Ra=Hr.instance,Ei=Hr.currentTarget,Hr=Hr.listener,Ra!==er&&jn.isPropagationStopped())break e;er=Hr,jn.currentTarget=Ei;try{er(jn)}catch(no){B4(no)}jn.currentTarget=null,er=Ra}}}}function Bl(Rt,Mt){var Ut=Mt[za];Ut===void 0&&(Ut=Mt[za]=new Set);var Kt=Rt+"__bubble";Ut.has(Kt)||(LL(Mt,Rt,2,!1),Ut.add(Kt))}function b6(Rt,Mt,Ut){var Kt=0;Mt&&(Kt|=4),LL(Ut,Rt,Kt,Mt)}var lD="_reactListening"+Math.random().toString(36).slice(2);function y6(Rt){if(!Rt[lD]){Rt[lD]=!0,Ir.forEach(function(Ut){Ut!=="selectionchange"&&(NX.has(Ut)||b6(Ut,!1,Rt),b6(Ut,!0,Rt))});var Mt=Rt.nodeType===9?Rt:Rt.ownerDocument;Mt===null||Mt[lD]||(Mt[lD]=!0,b6("selectionchange",!1,Mt))}}function LL(Rt,Mt,Ut,Kt){switch(cW(Mt)){case 2:var jn=ob;break;case 8:jn=AW;break;default:jn=u7}Ut=jn.bind(null,Mt,Ut,Rt),jn=void 0,!MQ||Mt!=="touchstart"&&Mt!=="touchmove"&&Mt!=="wheel"||(jn=!0),Kt?jn!==void 0?Rt.addEventListener(Mt,Ut,{capture:!0,passive:jn}):Rt.addEventListener(Mt,Ut,!0):jn!==void 0?Rt.addEventListener(Mt,Ut,{passive:jn}):Rt.addEventListener(Mt,Ut,!1)}function w6(Rt,Mt,Ut,Kt,jn){var er=Kt;if((Mt&1)===0&&(Mt&2)===0&&Kt!==null)e:for(;;){if(Kt===null)return;var xr=Kt.tag;if(xr===3||xr===4){var Hr=Kt.stateNode.containerInfo;if(Hr===jn)break;if(xr===4)for(xr=Kt.return;xr!==null;){var Ra=xr.tag;if((Ra===3||Ra===4)&&xr.stateNode.containerInfo===jn)return;xr=xr.return}for(;Hr!==null;){if(xr=Qs(Hr),xr===null)return;if(Ra=xr.tag,Ra===5||Ra===6||Ra===26||Ra===27){Kt=er=xr;continue e}Hr=Hr.parentNode}}Kt=Kt.return}$_(function(){var Ei=er,no=PQ(Ut),fo=[];e:{var Pi=ON.get(Rt);if(Pi!==void 0){var Hi=gd,nA=Rt;switch(Rt){case"keypress":if(ji(Ut)===0)break e;case"keydown":case"keyup":Hi=FZ;break;case"focusin":nA="focus",Hi=N3;break;case"focusout":nA="blur",Hi=N3;break;case"beforeblur":case"afterblur":Hi=N3;break;case"click":if(Ut.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Hi=x1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Hi=QZ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Hi=LZ;break;case CN:case BN:case QN:Hi=_Z;break;case vN:Hi=qZ;break;case"scroll":case"scrollend":Hi=kh;break;case"wheel":Hi=UZ;break;case"copy":case"cut":case"paste":Hi=xZ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Hi=iN;break;case"toggle":case"beforetoggle":Hi=HZ}var tc=(Mt&4)!==0,hd=!tc&&(Rt==="scroll"||Rt==="scrollend"),oi=tc?Pi!==null?Pi+"Capture":null:Pi;tc=[];for(var Ua=Ei,bi;Ua!==null;){var Vi=Ua;if(bi=Vi.stateNode,Vi=Vi.tag,Vi!==5&&Vi!==26&&Vi!==27||bi===null||oi===null||(Vi=fE(Ua,oi),Vi!=null&&tc.push(dI(Ua,Vi,bi))),hd)break;Ua=Ua.return}0<tc.length&&(Pi=new Hi(Pi,nA,null,Ut,no),fo.push({event:Pi,listeners:tc}))}}if((Mt&7)===0){e:{if(Pi=Rt==="mouseover"||Rt==="pointerover",Hi=Rt==="mouseout"||Rt==="pointerout",Pi&&Ut!==RQ&&(nA=Ut.relatedTarget||Ut.fromElement)&&(Qs(nA)||nA[ga]))break e;if((Hi||Pi)&&(Pi=no.window===no?no:(Pi=no.ownerDocument)?Pi.defaultView||Pi.parentWindow:window,Hi?(nA=Ut.relatedTarget||Ut.toElement,Hi=Ei,nA=nA?Qs(nA):null,nA!==null&&(hd=ht(nA),tc=nA.tag,nA!==hd||tc!==5&&tc!==27&&tc!==6)&&(nA=null)):(Hi=null,nA=Ei),Hi!==nA)){if(tc=x1,Vi="onMouseLeave",oi="onMouseEnter",Ua="mouse",(Rt==="pointerout"||Rt==="pointerover")&&(tc=iN,Vi="onPointerLeave",oi="onPointerEnter",Ua="pointer"),hd=Hi==null?Pi:El(Hi),bi=nA==null?Pi:El(nA),Pi=new tc(Vi,Ua+"leave",Hi,Ut,no),Pi.target=hd,Pi.relatedTarget=bi,Vi=null,Qs(no)===Ei&&(tc=new tc(oi,Ua+"enter",nA,Ut,no),tc.target=bi,tc.relatedTarget=hd,Vi=tc),hd=Vi,Hi&&nA)t:{for(tc=LX,oi=Hi,Ua=nA,bi=0,Vi=oi;Vi;Vi=tc(Vi))bi++;Vi=0;for(var xA=Ua;xA;xA=tc(xA))Vi++;for(;0<bi-Vi;)oi=tc(oi),bi--;for(;0<Vi-bi;)Ua=tc(Ua),Vi--;for(;bi--;){if(oi===Ua||Ua!==null&&oi===Ua.alternate){tc=oi;break t}oi=tc(oi),Ua=tc(Ua)}tc=null}else tc=null;Hi!==null&&GL(fo,Pi,Hi,tc,!1),nA!==null&&hd!==null&&GL(fo,hd,nA,tc,!0)}}e:{if(Pi=Ei?El(Ei):window,Hi=Pi.nodeName&&Pi.nodeName.toLowerCase(),Hi==="select"||Hi==="input"&&Pi.type==="file")var ru=pN;else if(uN(Pi))if(q3)ru=nX;else{ru=eX;var uA=JZ}else Hi=Pi.nodeName,!Hi||Hi.toLowerCase()!=="input"||Pi.type!=="checkbox"&&Pi.type!=="radio"?Ei&&Ic(Ei.elementType)&&(ru=pN):ru=tX;if(ru&&(ru=ru(Rt,Ei))){dN(fo,ru,Ut,no);break e}uA&&uA(Rt,Pi,Ei),Rt==="focusout"&&Ei&&Pi.type==="number"&&Ei.memoizedProps.value!=null&&gE(Pi,"number",Pi.value)}switch(uA=Ei?El(Ei):window,Rt){case"focusin":(uN(uA)||uA.contentEditable==="true")&&(LQ=uA,H3=Ei,M_=null);break;case"focusout":M_=H3=LQ=null;break;case"mousedown":Y3=!0;break;case"contextmenu":case"mouseup":case"dragend":Y3=!1,kN(fo,Ut,no);break;case"selectionchange":if(aX)break;case"keydown":case"keyup":kN(fo,Ut,no)}var vc;if(G3)e:{switch(Rt){case"compositionstart":var al="onCompositionStart";break e;case"compositionend":al="onCompositionEnd";break e;case"compositionupdate":al="onCompositionUpdate";break e}al=void 0}else NQ?cN(Rt,Ut)&&(al="onCompositionEnd"):Rt==="keydown"&&Ut.keyCode===229&&(al="onCompositionStart");al&&(oN&&Ut.locale!=="ko"&&(NQ||al!=="onCompositionStart"?al==="onCompositionEnd"&&NQ&&(vc=pi()):(Ur=no,oa="value"in Ur?Ur.value:Ur.textContent,NQ=!0)),uA=uD(Ei,al),0<uA.length&&(al=new aN(al,Rt,null,Ut,no),fo.push({event:al,listeners:uA}),vc?al.data=vc:(vc=lN(Ut),vc!==null&&(al.data=vc)))),(vc=ZZ?XZ(Rt,Ut):WZ(Rt,Ut))&&(al=uD(Ei,"onBeforeInput"),0<al.length&&(uA=new aN("onBeforeInput","beforeinput",null,Ut,no),fo.push({event:uA,listeners:al}),uA.data=vc)),ML(fo,Rt,Ei,Ut,no)}NL(fo,Mt)})}function dI(Rt,Mt,Ut){return{instance:Rt,listener:Mt,currentTarget:Ut}}function uD(Rt,Mt){for(var Ut=Mt+"Capture",Kt=[];Rt!==null;){var jn=Rt,er=jn.stateNode;if(jn=jn.tag,jn!==5&&jn!==26&&jn!==27||er===null||(jn=fE(Rt,Ut),jn!=null&&Kt.unshift(dI(Rt,jn,er)),jn=fE(Rt,Mt),jn!=null&&Kt.push(dI(Rt,jn,er))),Rt.tag===3)return Kt;Rt=Rt.return}return[]}function LX(Rt){if(Rt===null)return null;do Rt=Rt.return;while(Rt&&Rt.tag!==5&&Rt.tag!==27);return Rt||null}function GL(Rt,Mt,Ut,Kt,jn){for(var er=Mt._reactName,xr=[];Ut!==null&&Ut!==Kt;){var Hr=Ut,Ra=Hr.alternate,Ei=Hr.stateNode;if(Hr=Hr.tag,Ra!==null&&Ra===Kt)break;Hr!==5&&Hr!==26&&Hr!==27||Ei===null||(Ra=Ei,jn?(Ei=fE(Ut,er),Ei!=null&&xr.unshift(dI(Ut,Ei,Ra))):jn||(Ei=fE(Ut,er),Ei!=null&&xr.push(dI(Ut,Ei,Ra)))),Ut=Ut.return}xr.length!==0&&Rt.push({event:Mt,listeners:xr})}var GX=/\r\n?/g,qX=/\u0000|\uFFFD/g;function qL(Rt){return(typeof Rt=="string"?Rt:""+Rt).replace(GX,`
|
|
10
|
-
`).replace(qX,"")}function jL(Rt,Mt){return Mt=qL(Mt),qL(Rt)===Mt}function ed(Rt,Mt,Ut,Kt,jn,er){switch(Ut){case"children":typeof Kt=="string"?Mt==="body"||Mt==="textarea"&&Kt===""||O1(Rt,Kt):(typeof Kt=="number"||typeof Kt=="bigint")&&Mt!=="body"&&O1(Rt,""+Kt);break;case"className":jf(Rt,"class",Kt);break;case"tabIndex":jf(Rt,"tabindex",Kt);break;case"dir":case"role":case"viewBox":case"width":case"height":jf(Rt,Ut,Kt);break;case"style":qc(Rt,Kt,er);break;case"data":if(Mt!=="object"){jf(Rt,"data",Kt);break}case"src":case"href":if(Kt===""&&(Mt!=="a"||Ut!=="href")){Rt.removeAttribute(Ut);break}if(Kt==null||typeof Kt=="function"||typeof Kt=="symbol"||typeof Kt=="boolean"){Rt.removeAttribute(Ut);break}Kt=xB(""+Kt),Rt.setAttribute(Ut,Kt);break;case"action":case"formAction":if(typeof Kt=="function"){Rt.setAttribute(Ut,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof er=="function"&&(Ut==="formAction"?(Mt!=="input"&&ed(Rt,Mt,"name",jn.name,jn,null),ed(Rt,Mt,"formEncType",jn.formEncType,jn,null),ed(Rt,Mt,"formMethod",jn.formMethod,jn,null),ed(Rt,Mt,"formTarget",jn.formTarget,jn,null)):(ed(Rt,Mt,"encType",jn.encType,jn,null),ed(Rt,Mt,"method",jn.method,jn,null),ed(Rt,Mt,"target",jn.target,jn,null)));if(Kt==null||typeof Kt=="symbol"||typeof Kt=="boolean"){Rt.removeAttribute(Ut);break}Kt=xB(""+Kt),Rt.setAttribute(Ut,Kt);break;case"onClick":Kt!=null&&(Rt.onclick=W0);break;case"onScroll":Kt!=null&&Bl("scroll",Rt);break;case"onScrollEnd":Kt!=null&&Bl("scrollend",Rt);break;case"dangerouslySetInnerHTML":if(Kt!=null){if(typeof Kt!="object"||!("__html"in Kt))throw Error(pt(61));if(Ut=Kt.__html,Ut!=null){if(jn.children!=null)throw Error(pt(60));Rt.innerHTML=Ut}}break;case"multiple":Rt.multiple=Kt&&typeof Kt!="function"&&typeof Kt!="symbol";break;case"muted":Rt.muted=Kt&&typeof Kt!="function"&&typeof Kt!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Kt==null||typeof Kt=="function"||typeof Kt=="boolean"||typeof Kt=="symbol"){Rt.removeAttribute("xlink:href");break}Ut=xB(""+Kt),Rt.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",Ut);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Kt!=null&&typeof Kt!="function"&&typeof Kt!="symbol"?Rt.setAttribute(Ut,""+Kt):Rt.removeAttribute(Ut);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Kt&&typeof Kt!="function"&&typeof Kt!="symbol"?Rt.setAttribute(Ut,""):Rt.removeAttribute(Ut);break;case"capture":case"download":Kt===!0?Rt.setAttribute(Ut,""):Kt!==!1&&Kt!=null&&typeof Kt!="function"&&typeof Kt!="symbol"?Rt.setAttribute(Ut,Kt):Rt.removeAttribute(Ut);break;case"cols":case"rows":case"size":case"span":Kt!=null&&typeof Kt!="function"&&typeof Kt!="symbol"&&!isNaN(Kt)&&1<=Kt?Rt.setAttribute(Ut,Kt):Rt.removeAttribute(Ut);break;case"rowSpan":case"start":Kt==null||typeof Kt=="function"||typeof Kt=="symbol"||isNaN(Kt)?Rt.removeAttribute(Ut):Rt.setAttribute(Ut,Kt);break;case"popover":Bl("beforetoggle",Rt),Bl("toggle",Rt),nu(Rt,"popover",Kt);break;case"xlinkActuate":X0(Rt,"http://www.w3.org/1999/xlink","xlink:actuate",Kt);break;case"xlinkArcrole":X0(Rt,"http://www.w3.org/1999/xlink","xlink:arcrole",Kt);break;case"xlinkRole":X0(Rt,"http://www.w3.org/1999/xlink","xlink:role",Kt);break;case"xlinkShow":X0(Rt,"http://www.w3.org/1999/xlink","xlink:show",Kt);break;case"xlinkTitle":X0(Rt,"http://www.w3.org/1999/xlink","xlink:title",Kt);break;case"xlinkType":X0(Rt,"http://www.w3.org/1999/xlink","xlink:type",Kt);break;case"xmlBase":X0(Rt,"http://www.w3.org/XML/1998/namespace","xml:base",Kt);break;case"xmlLang":X0(Rt,"http://www.w3.org/XML/1998/namespace","xml:lang",Kt);break;case"xmlSpace":X0(Rt,"http://www.w3.org/XML/1998/namespace","xml:space",Kt);break;case"is":nu(Rt,"is",Kt);break;case"innerText":case"textContent":break;default:(!(2<Ut.length)||Ut[0]!=="o"&&Ut[0]!=="O"||Ut[1]!=="n"&&Ut[1]!=="N")&&(Ut=S_.get(Ut)||Ut,nu(Rt,Ut,Kt))}}function k6(Rt,Mt,Ut,Kt,jn,er){switch(Ut){case"style":qc(Rt,Kt,er);break;case"dangerouslySetInnerHTML":if(Kt!=null){if(typeof Kt!="object"||!("__html"in Kt))throw Error(pt(61));if(Ut=Kt.__html,Ut!=null){if(jn.children!=null)throw Error(pt(60));Rt.innerHTML=Ut}}break;case"children":typeof Kt=="string"?O1(Rt,Kt):(typeof Kt=="number"||typeof Kt=="bigint")&&O1(Rt,""+Kt);break;case"onScroll":Kt!=null&&Bl("scroll",Rt);break;case"onScrollEnd":Kt!=null&&Bl("scrollend",Rt);break;case"onClick":Kt!=null&&(Rt.onclick=W0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ia.hasOwnProperty(Ut))e:{if(Ut[0]==="o"&&Ut[1]==="n"&&(jn=Ut.endsWith("Capture"),Mt=Ut.slice(2,jn?Ut.length-7:void 0),er=Rt[Yr]||null,er=er!=null?er[Ut]:null,typeof er=="function"&&Rt.removeEventListener(Mt,er,jn),typeof Kt=="function")){typeof er!="function"&&er!==null&&(Ut in Rt?Rt[Ut]=null:Rt.hasAttribute(Ut)&&Rt.removeAttribute(Ut)),Rt.addEventListener(Mt,Kt,jn);break e}Ut in Rt?Rt[Ut]=Kt:Kt===!0?Rt.setAttribute(Ut,""):nu(Rt,Ut,Kt)}}}function qg(Rt,Mt,Ut){switch(Mt){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Bl("error",Rt),Bl("load",Rt);var Kt=!1,jn=!1,er;for(er in Ut)if(Ut.hasOwnProperty(er)){var xr=Ut[er];if(xr!=null)switch(er){case"src":Kt=!0;break;case"srcSet":jn=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(pt(137,Mt));default:ed(Rt,Mt,er,xr,Ut,null)}}jn&&ed(Rt,Mt,"srcSet",Ut.srcSet,Ut,null),Kt&&ed(Rt,Mt,"src",Ut.src,Ut,null);return;case"input":Bl("invalid",Rt);var Hr=er=xr=jn=null,Ra=null,Ei=null;for(Kt in Ut)if(Ut.hasOwnProperty(Kt)){var no=Ut[Kt];if(no!=null)switch(Kt){case"name":jn=no;break;case"type":xr=no;break;case"checked":Ra=no;break;case"defaultChecked":Ei=no;break;case"value":er=no;break;case"defaultValue":Hr=no;break;case"children":case"dangerouslySetInnerHTML":if(no!=null)throw Error(pt(137,Mt));break;default:ed(Rt,Mt,Kt,no,Ut,null)}}__(Rt,er,Hr,Ra,Ei,xr,jn,!1);return;case"select":Bl("invalid",Rt),Kt=xr=er=null;for(jn in Ut)if(Ut.hasOwnProperty(jn)&&(Hr=Ut[jn],Hr!=null))switch(jn){case"value":er=Hr;break;case"defaultValue":xr=Hr;break;case"multiple":Kt=Hr;default:ed(Rt,Mt,jn,Hr,Ut,null)}Mt=er,Ut=xr,Rt.multiple=!!Kt,Mt!=null?v1(Rt,!!Kt,Mt,!1):Ut!=null&&v1(Rt,!!Kt,Ut,!0);return;case"textarea":Bl("invalid",Rt),er=jn=Kt=null;for(xr in Ut)if(Ut.hasOwnProperty(xr)&&(Hr=Ut[xr],Hr!=null))switch(xr){case"value":Kt=Hr;break;case"defaultValue":jn=Hr;break;case"children":er=Hr;break;case"dangerouslySetInnerHTML":if(Hr!=null)throw Error(pt(91));break;default:ed(Rt,Mt,xr,Hr,Ut,null)}$Q(Rt,Kt,jn,er);return;case"option":for(Ra in Ut)Ut.hasOwnProperty(Ra)&&(Kt=Ut[Ra],Kt!=null)&&(Ra==="selected"?Rt.selected=Kt&&typeof Kt!="function"&&typeof Kt!="symbol":ed(Rt,Mt,Ra,Kt,Ut,null));return;case"dialog":Bl("beforetoggle",Rt),Bl("toggle",Rt),Bl("cancel",Rt),Bl("close",Rt);break;case"iframe":case"object":Bl("load",Rt);break;case"video":case"audio":for(Kt=0;Kt<uI.length;Kt++)Bl(uI[Kt],Rt);break;case"image":Bl("error",Rt),Bl("load",Rt);break;case"details":Bl("toggle",Rt);break;case"embed":case"source":case"link":Bl("error",Rt),Bl("load",Rt);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ei in Ut)if(Ut.hasOwnProperty(Ei)&&(Kt=Ut[Ei],Kt!=null))switch(Ei){case"children":case"dangerouslySetInnerHTML":throw Error(pt(137,Mt));default:ed(Rt,Mt,Ei,Kt,Ut,null)}return;default:if(Ic(Mt)){for(no in Ut)Ut.hasOwnProperty(no)&&(Kt=Ut[no],Kt!==void 0&&k6(Rt,Mt,no,Kt,Ut,void 0));return}}for(Hr in Ut)Ut.hasOwnProperty(Hr)&&(Kt=Ut[Hr],Kt!=null&&ed(Rt,Mt,Hr,Kt,Ut,null))}function jX(Rt,Mt,Ut,Kt){switch(Mt){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var jn=null,er=null,xr=null,Hr=null,Ra=null,Ei=null,no=null;for(Hi in Ut){var fo=Ut[Hi];if(Ut.hasOwnProperty(Hi)&&fo!=null)switch(Hi){case"checked":break;case"value":break;case"defaultValue":Ra=fo;default:Kt.hasOwnProperty(Hi)||ed(Rt,Mt,Hi,null,Kt,fo)}}for(var Pi in Kt){var Hi=Kt[Pi];if(fo=Ut[Pi],Kt.hasOwnProperty(Pi)&&(Hi!=null||fo!=null))switch(Pi){case"type":er=Hi;break;case"name":jn=Hi;break;case"checked":Ei=Hi;break;case"defaultChecked":no=Hi;break;case"value":xr=Hi;break;case"defaultValue":Hr=Hi;break;case"children":case"dangerouslySetInnerHTML":if(Hi!=null)throw Error(pt(137,Mt));break;default:Hi!==fo&&ed(Rt,Mt,Pi,Hi,Kt,fo)}}DQ(Rt,xr,Hr,Ra,Ei,no,er,jn);return;case"select":Hi=xr=Hr=Pi=null;for(er in Ut)if(Ra=Ut[er],Ut.hasOwnProperty(er)&&Ra!=null)switch(er){case"value":break;case"multiple":Hi=Ra;default:Kt.hasOwnProperty(er)||ed(Rt,Mt,er,null,Kt,Ra)}for(jn in Kt)if(er=Kt[jn],Ra=Ut[jn],Kt.hasOwnProperty(jn)&&(er!=null||Ra!=null))switch(jn){case"value":Pi=er;break;case"defaultValue":Hr=er;break;case"multiple":xr=er;default:er!==Ra&&ed(Rt,Mt,jn,er,Kt,Ra)}Mt=Hr,Ut=xr,Kt=Hi,Pi!=null?v1(Rt,!!Ut,Pi,!1):!!Kt!=!!Ut&&(Mt!=null?v1(Rt,!!Ut,Mt,!0):v1(Rt,!!Ut,Ut?[]:"",!1));return;case"textarea":Hi=Pi=null;for(Hr in Ut)if(jn=Ut[Hr],Ut.hasOwnProperty(Hr)&&jn!=null&&!Kt.hasOwnProperty(Hr))switch(Hr){case"value":break;case"children":break;default:ed(Rt,Mt,Hr,null,Kt,jn)}for(xr in Kt)if(jn=Kt[xr],er=Ut[xr],Kt.hasOwnProperty(xr)&&(jn!=null||er!=null))switch(xr){case"value":Pi=jn;break;case"defaultValue":Hi=jn;break;case"children":break;case"dangerouslySetInnerHTML":if(jn!=null)throw Error(pt(91));break;default:jn!==er&&ed(Rt,Mt,xr,jn,Kt,er)}I_(Rt,Pi,Hi);return;case"option":for(var nA in Ut)Pi=Ut[nA],Ut.hasOwnProperty(nA)&&Pi!=null&&!Kt.hasOwnProperty(nA)&&(nA==="selected"?Rt.selected=!1:ed(Rt,Mt,nA,null,Kt,Pi));for(Ra in Kt)Pi=Kt[Ra],Hi=Ut[Ra],Kt.hasOwnProperty(Ra)&&Pi!==Hi&&(Pi!=null||Hi!=null)&&(Ra==="selected"?Rt.selected=Pi&&typeof Pi!="function"&&typeof Pi!="symbol":ed(Rt,Mt,Ra,Pi,Kt,Hi));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var tc in Ut)Pi=Ut[tc],Ut.hasOwnProperty(tc)&&Pi!=null&&!Kt.hasOwnProperty(tc)&&ed(Rt,Mt,tc,null,Kt,Pi);for(Ei in Kt)if(Pi=Kt[Ei],Hi=Ut[Ei],Kt.hasOwnProperty(Ei)&&Pi!==Hi&&(Pi!=null||Hi!=null))switch(Ei){case"children":case"dangerouslySetInnerHTML":if(Pi!=null)throw Error(pt(137,Mt));break;default:ed(Rt,Mt,Ei,Pi,Kt,Hi)}return;default:if(Ic(Mt)){for(var hd in Ut)Pi=Ut[hd],Ut.hasOwnProperty(hd)&&Pi!==void 0&&!Kt.hasOwnProperty(hd)&&k6(Rt,Mt,hd,void 0,Kt,Pi);for(no in Kt)Pi=Kt[no],Hi=Ut[no],!Kt.hasOwnProperty(no)||Pi===Hi||Pi===void 0&&Hi===void 0||k6(Rt,Mt,no,Pi,Kt,Hi);return}}for(var oi in Ut)Pi=Ut[oi],Ut.hasOwnProperty(oi)&&Pi!=null&&!Kt.hasOwnProperty(oi)&&ed(Rt,Mt,oi,null,Kt,Pi);for(fo in Kt)Pi=Kt[fo],Hi=Ut[fo],!Kt.hasOwnProperty(fo)||Pi===Hi||Pi==null&&Hi==null||ed(Rt,Mt,fo,Pi,Kt,Hi)}function UL(Rt){switch(Rt){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function UX(){if(typeof performance.getEntriesByType=="function"){for(var Rt=0,Mt=0,Ut=performance.getEntriesByType("resource"),Kt=0;Kt<Ut.length;Kt++){var jn=Ut[Kt],er=jn.transferSize,xr=jn.initiatorType,Hr=jn.duration;if(er&&Hr&&UL(xr)){for(xr=0,Hr=jn.responseEnd,Kt+=1;Kt<Ut.length;Kt++){var Ra=Ut[Kt],Ei=Ra.startTime;if(Ei>Hr)break;var no=Ra.transferSize,fo=Ra.initiatorType;no&&UL(fo)&&(Ra=Ra.responseEnd,xr+=no*(Ra<Hr?1:(Hr-Ei)/(Ra-Ei)))}if(--Kt,Mt+=8*(er+xr)/(jn.duration/1e3),Rt++,10<Rt)break}}if(0<Rt)return Mt/Rt/1e6}return navigator.connection&&(Rt=navigator.connection.downlink,typeof Rt=="number")?Rt:5}var E6=null,C6=null;function dD(Rt){return Rt.nodeType===9?Rt:Rt.ownerDocument}function zL(Rt){switch(Rt){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function HL(Rt,Mt){if(Rt===0)switch(Mt){case"svg":return 1;case"math":return 2;default:return 0}return Rt===1&&Mt==="foreignObject"?0:Rt}function B6(Rt,Mt){return Rt==="textarea"||Rt==="noscript"||typeof Mt.children=="string"||typeof Mt.children=="number"||typeof Mt.children=="bigint"||typeof Mt.dangerouslySetInnerHTML=="object"&&Mt.dangerouslySetInnerHTML!==null&&Mt.dangerouslySetInnerHTML.__html!=null}var Q6=null;function zX(){var Rt=window.event;return Rt&&Rt.type==="popstate"?Rt===Q6?!1:(Q6=Rt,!0):(Q6=null,!1)}var YL=typeof setTimeout=="function"?setTimeout:void 0,HX=typeof clearTimeout=="function"?clearTimeout:void 0,ZL=typeof Promise=="function"?Promise:void 0,YX=typeof queueMicrotask=="function"?queueMicrotask:typeof ZL<"u"?function(Rt){return ZL.resolve(null).then(Rt).catch(ZX)}:YL;function ZX(Rt){setTimeout(function(){throw Rt})}function ME(Rt){return Rt==="head"}function XL(Rt,Mt){var Ut=Mt,Kt=0;do{var jn=Ut.nextSibling;if(Rt.removeChild(Ut),jn&&jn.nodeType===8)if(Ut=jn.data,Ut==="/$"||Ut==="/&"){if(Kt===0){Rt.removeChild(jn),YB(Mt);return}Kt--}else if(Ut==="$"||Ut==="$?"||Ut==="$~"||Ut==="$!"||Ut==="&")Kt++;else if(Ut==="html")pv(Rt.ownerDocument.documentElement);else if(Ut==="head"){Ut=Rt.ownerDocument.head,pv(Ut);for(var er=Ut.firstChild;er;){var xr=er.nextSibling,Hr=er.nodeName;er[es]||Hr==="SCRIPT"||Hr==="STYLE"||Hr==="LINK"&&er.rel.toLowerCase()==="stylesheet"||Ut.removeChild(er),er=xr}}else Ut==="body"&&pv(Rt.ownerDocument.body);Ut=jn}while(Ut);YB(Mt)}function WL(Rt,Mt){var Ut=Rt;Rt=0;do{var Kt=Ut.nextSibling;if(Ut.nodeType===1?Mt?(Ut._stashedDisplay=Ut.style.display,Ut.style.display="none"):(Ut.style.display=Ut._stashedDisplay||"",Ut.getAttribute("style")===""&&Ut.removeAttribute("style")):Ut.nodeType===3&&(Mt?(Ut._stashedText=Ut.nodeValue,Ut.nodeValue=""):Ut.nodeValue=Ut._stashedText||""),Kt&&Kt.nodeType===8)if(Ut=Kt.data,Ut==="/$"){if(Rt===0)break;Rt--}else Ut!=="$"&&Ut!=="$?"&&Ut!=="$~"&&Ut!=="$!"||Rt++;Ut=Kt}while(Ut)}function v6(Rt){var Mt=Rt.firstChild;for(Mt&&Mt.nodeType===10&&(Mt=Mt.nextSibling);Mt;){var Ut=Mt;switch(Mt=Mt.nextSibling,Ut.nodeName){case"HTML":case"HEAD":case"BODY":v6(Ut),eA(Ut);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(Ut.rel.toLowerCase()==="stylesheet")continue}Rt.removeChild(Ut)}}function XX(Rt,Mt,Ut,Kt){for(;Rt.nodeType===1;){var jn=Ut;if(Rt.nodeName.toLowerCase()!==Mt.toLowerCase()){if(!Kt&&(Rt.nodeName!=="INPUT"||Rt.type!=="hidden"))break}else if(Kt){if(!Rt[es])switch(Mt){case"meta":if(!Rt.hasAttribute("itemprop"))break;return Rt;case"link":if(er=Rt.getAttribute("rel"),er==="stylesheet"&&Rt.hasAttribute("data-precedence"))break;if(er!==jn.rel||Rt.getAttribute("href")!==(jn.href==null||jn.href===""?null:jn.href)||Rt.getAttribute("crossorigin")!==(jn.crossOrigin==null?null:jn.crossOrigin)||Rt.getAttribute("title")!==(jn.title==null?null:jn.title))break;return Rt;case"style":if(Rt.hasAttribute("data-precedence"))break;return Rt;case"script":if(er=Rt.getAttribute("src"),(er!==(jn.src==null?null:jn.src)||Rt.getAttribute("type")!==(jn.type==null?null:jn.type)||Rt.getAttribute("crossorigin")!==(jn.crossOrigin==null?null:jn.crossOrigin))&&er&&Rt.hasAttribute("async")&&!Rt.hasAttribute("itemprop"))break;return Rt;default:return Rt}}else if(Mt==="input"&&Rt.type==="hidden"){var er=jn.name==null?null:""+jn.name;if(jn.type==="hidden"&&Rt.getAttribute("name")===er)return Rt}else return Rt;if(Rt=ib(Rt.nextSibling),Rt===null)break}return null}function WX(Rt,Mt,Ut){if(Mt==="")return null;for(;Rt.nodeType!==3;)if((Rt.nodeType!==1||Rt.nodeName!=="INPUT"||Rt.type!=="hidden")&&!Ut||(Rt=ib(Rt.nextSibling),Rt===null))return null;return Rt}function VL(Rt,Mt){for(;Rt.nodeType!==8;)if((Rt.nodeType!==1||Rt.nodeName!=="INPUT"||Rt.type!=="hidden")&&!Mt||(Rt=ib(Rt.nextSibling),Rt===null))return null;return Rt}function O6(Rt){return Rt.data==="$?"||Rt.data==="$~"}function _6(Rt){return Rt.data==="$!"||Rt.data==="$?"&&Rt.ownerDocument.readyState!=="loading"}function VX(Rt,Mt){var Ut=Rt.ownerDocument;if(Rt.data==="$~")Rt._reactRetry=Mt;else if(Rt.data!=="$?"||Ut.readyState!=="loading")Mt();else{var Kt=function(){Mt(),Ut.removeEventListener("DOMContentLoaded",Kt)};Ut.addEventListener("DOMContentLoaded",Kt),Rt._reactRetry=Kt}}function ib(Rt){for(;Rt!=null;Rt=Rt.nextSibling){var Mt=Rt.nodeType;if(Mt===1||Mt===3)break;if(Mt===8){if(Mt=Rt.data,Mt==="$"||Mt==="$!"||Mt==="$?"||Mt==="$~"||Mt==="&"||Mt==="F!"||Mt==="F")break;if(Mt==="/$"||Mt==="/&")return null}}return Rt}var I6=null;function x6(Rt){Rt=Rt.nextSibling;for(var Mt=0;Rt;){if(Rt.nodeType===8){var Ut=Rt.data;if(Ut==="/$"||Ut==="/&"){if(Mt===0)return ib(Rt.nextSibling);Mt--}else Ut!=="$"&&Ut!=="$!"&&Ut!=="$?"&&Ut!=="$~"&&Ut!=="&"||Mt++}Rt=Rt.nextSibling}return null}function KL(Rt){Rt=Rt.previousSibling;for(var Mt=0;Rt;){if(Rt.nodeType===8){var Ut=Rt.data;if(Ut==="$"||Ut==="$!"||Ut==="$?"||Ut==="$~"||Ut==="&"){if(Mt===0)return Rt;Mt--}else Ut!=="/$"&&Ut!=="/&"||Mt++}Rt=Rt.previousSibling}return null}function JL(Rt,Mt,Ut){switch(Mt=dD(Ut),Rt){case"html":if(Rt=Mt.documentElement,!Rt)throw Error(pt(452));return Rt;case"head":if(Rt=Mt.head,!Rt)throw Error(pt(453));return Rt;case"body":if(Rt=Mt.body,!Rt)throw Error(pt(454));return Rt;default:throw Error(pt(451))}}function pv(Rt){for(var Mt=Rt.attributes;Mt.length;)Rt.removeAttributeNode(Mt[0]);eA(Rt)}var c0=new Map,mm=new Set;function pD(Rt){return typeof Rt.getRootNode=="function"?Rt.getRootNode():Rt.nodeType===9?Rt:Rt.ownerDocument}var dw=lr.d;lr.d={f:KX,r:mD,D:JX,C:t7,L:n7,m:eW,X:tW,S:S6,M:nW};function KX(){var Rt=dw.f(),Mt=aD();return Rt||Mt}function mD(Rt){var Mt=ec(Rt);Mt!==null&&Mt.tag===5&&Mt.type==="form"?U4(Mt):dw.r(Rt)}var mv=typeof document>"u"?null:document;function e7(Rt,Mt,Ut){var Kt=mv;if(Kt&&typeof Mt=="string"&&Mt){var jn=zf(Mt);jn='link[rel="'+Rt+'"][href="'+jn+'"]',typeof Ut=="string"&&(jn+='[crossorigin="'+Ut+'"]'),mm.has(jn)||(mm.add(jn),Rt={rel:Rt,crossOrigin:Ut,href:Mt},Kt.querySelector(jn)===null&&(Mt=Kt.createElement("link"),qg(Mt,"link",Rt),tl(Mt),Kt.head.appendChild(Mt)))}}function JX(Rt){dw.D(Rt),e7("dns-prefetch",Rt,null)}function t7(Rt,Mt){dw.C(Rt,Mt),e7("preconnect",Rt,Mt)}function n7(Rt,Mt,Ut){dw.L(Rt,Mt,Ut);var Kt=mv;if(Kt&&Rt&&Mt){var jn='link[rel="preload"][as="'+zf(Mt)+'"]';Mt==="image"&&Ut&&Ut.imageSrcSet?(jn+='[imagesrcset="'+zf(Ut.imageSrcSet)+'"]',typeof Ut.imageSizes=="string"&&(jn+='[imagesizes="'+zf(Ut.imageSizes)+'"]')):jn+='[href="'+zf(Rt)+'"]';var er=jn;switch(Mt){case"style":er=gv(Rt);break;case"script":er=fv(Rt)}c0.has(er)||(Rt=Qt({rel:"preload",href:Mt==="image"&&Ut&&Ut.imageSrcSet?void 0:Rt,as:Mt},Ut),c0.set(er,Rt),Kt.querySelector(jn)!==null||Mt==="style"&&Kt.querySelector(pI(er))||Mt==="script"&&Kt.querySelector(mI(er))||(Mt=Kt.createElement("link"),qg(Mt,"link",Rt),tl(Mt),Kt.head.appendChild(Mt)))}}function eW(Rt,Mt){dw.m(Rt,Mt);var Ut=mv;if(Ut&&Rt){var Kt=Mt&&typeof Mt.as=="string"?Mt.as:"script",jn='link[rel="modulepreload"][as="'+zf(Kt)+'"][href="'+zf(Rt)+'"]',er=jn;switch(Kt){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":er=fv(Rt)}if(!c0.has(er)&&(Rt=Qt({rel:"modulepreload",href:Rt},Mt),c0.set(er,Rt),Ut.querySelector(jn)===null)){switch(Kt){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(Ut.querySelector(mI(er)))return}Kt=Ut.createElement("link"),qg(Kt,"link",Rt),tl(Kt),Ut.head.appendChild(Kt)}}}function S6(Rt,Mt,Ut){dw.S(Rt,Mt,Ut);var Kt=mv;if(Kt&&Rt){var jn=md(Kt).hoistableStyles,er=gv(Rt);Mt=Mt||"default";var xr=jn.get(er);if(!xr){var Hr={loading:0,preload:null};if(xr=Kt.querySelector(pI(er)))Hr.loading=5;else{Rt=Qt({rel:"stylesheet",href:Rt,"data-precedence":Mt},Ut),(Ut=c0.get(er))&&$6(Rt,Ut);var Ra=xr=Kt.createElement("link");tl(Ra),qg(Ra,"link",Rt),Ra._p=new Promise(function(Ei,no){Ra.onload=Ei,Ra.onerror=no}),Ra.addEventListener("load",function(){Hr.loading|=1}),Ra.addEventListener("error",function(){Hr.loading|=2}),Hr.loading|=4,hv(xr,Mt,Kt)}xr={type:"stylesheet",instance:xr,count:1,state:Hr},jn.set(er,xr)}}}function tW(Rt,Mt){dw.X(Rt,Mt);var Ut=mv;if(Ut&&Rt){var Kt=md(Ut).hoistableScripts,jn=fv(Rt),er=Kt.get(jn);er||(er=Ut.querySelector(mI(jn)),er||(Rt=Qt({src:Rt,async:!0},Mt),(Mt=c0.get(jn))&&T6(Rt,Mt),er=Ut.createElement("script"),tl(er),qg(er,"link",Rt),Ut.head.appendChild(er)),er={type:"script",instance:er,count:1,state:null},Kt.set(jn,er))}}function nW(Rt,Mt){dw.M(Rt,Mt);var Ut=mv;if(Ut&&Rt){var Kt=md(Ut).hoistableScripts,jn=fv(Rt),er=Kt.get(jn);er||(er=Ut.querySelector(mI(jn)),er||(Rt=Qt({src:Rt,async:!0,type:"module"},Mt),(Mt=c0.get(jn))&&T6(Rt,Mt),er=Ut.createElement("script"),tl(er),qg(er,"link",Rt),Ut.head.appendChild(er)),er={type:"script",instance:er,count:1,state:null},Kt.set(jn,er))}}function r7(Rt,Mt,Ut,Kt){var jn=(jn=Br.current)?pD(jn):null;if(!jn)throw Error(pt(446));switch(Rt){case"meta":case"title":return null;case"style":return typeof Ut.precedence=="string"&&typeof Ut.href=="string"?(Mt=gv(Ut.href),Ut=md(jn).hoistableStyles,Kt=Ut.get(Mt),Kt||(Kt={type:"style",instance:null,count:0,state:null},Ut.set(Mt,Kt)),Kt):{type:"void",instance:null,count:0,state:null};case"link":if(Ut.rel==="stylesheet"&&typeof Ut.href=="string"&&typeof Ut.precedence=="string"){Rt=gv(Ut.href);var er=md(jn).hoistableStyles,xr=er.get(Rt);if(xr||(jn=jn.ownerDocument||jn,xr={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},er.set(Rt,xr),(er=jn.querySelector(pI(Rt)))&&!er._p&&(xr.instance=er,xr.state.loading=5),c0.has(Rt)||(Ut={rel:"preload",as:"style",href:Ut.href,crossOrigin:Ut.crossOrigin,integrity:Ut.integrity,media:Ut.media,hrefLang:Ut.hrefLang,referrerPolicy:Ut.referrerPolicy},c0.set(Rt,Ut),er||D6(jn,Rt,Ut,xr.state))),Mt&&Kt===null)throw Error(pt(528,""));return xr}if(Mt&&Kt!==null)throw Error(pt(529,""));return null;case"script":return Mt=Ut.async,Ut=Ut.src,typeof Ut=="string"&&Mt&&typeof Mt!="function"&&typeof Mt!="symbol"?(Mt=fv(Ut),Ut=md(jn).hoistableScripts,Kt=Ut.get(Mt),Kt||(Kt={type:"script",instance:null,count:0,state:null},Ut.set(Mt,Kt)),Kt):{type:"void",instance:null,count:0,state:null};default:throw Error(pt(444,Rt))}}function gv(Rt){return'href="'+zf(Rt)+'"'}function pI(Rt){return'link[rel="stylesheet"]['+Rt+"]"}function a7(Rt){return Qt({},Rt,{"data-precedence":Rt.precedence,precedence:null})}function D6(Rt,Mt,Ut,Kt){Rt.querySelector('link[rel="preload"][as="style"]['+Mt+"]")?Kt.loading=1:(Mt=Rt.createElement("link"),Kt.preload=Mt,Mt.addEventListener("load",function(){return Kt.loading|=1}),Mt.addEventListener("error",function(){return Kt.loading|=2}),qg(Mt,"link",Ut),tl(Mt),Rt.head.appendChild(Mt))}function fv(Rt){return'[src="'+zf(Rt)+'"]'}function mI(Rt){return"script[async]"+Rt}function i7(Rt,Mt,Ut){if(Mt.count++,Mt.instance===null)switch(Mt.type){case"style":var Kt=Rt.querySelector('style[data-href~="'+zf(Ut.href)+'"]');if(Kt)return Mt.instance=Kt,tl(Kt),Kt;var jn=Qt({},Ut,{"data-href":Ut.href,"data-precedence":Ut.precedence,href:null,precedence:null});return Kt=(Rt.ownerDocument||Rt).createElement("style"),tl(Kt),qg(Kt,"style",jn),hv(Kt,Ut.precedence,Rt),Mt.instance=Kt;case"stylesheet":jn=gv(Ut.href);var er=Rt.querySelector(pI(jn));if(er)return Mt.state.loading|=4,Mt.instance=er,tl(er),er;Kt=a7(Ut),(jn=c0.get(jn))&&$6(Kt,jn),er=(Rt.ownerDocument||Rt).createElement("link"),tl(er);var xr=er;return xr._p=new Promise(function(Hr,Ra){xr.onload=Hr,xr.onerror=Ra}),qg(er,"link",Kt),Mt.state.loading|=4,hv(er,Ut.precedence,Rt),Mt.instance=er;case"script":return er=fv(Ut.src),(jn=Rt.querySelector(mI(er)))?(Mt.instance=jn,tl(jn),jn):(Kt=Ut,(jn=c0.get(er))&&(Kt=Qt({},Ut),T6(Kt,jn)),Rt=Rt.ownerDocument||Rt,jn=Rt.createElement("script"),tl(jn),qg(jn,"link",Kt),Rt.head.appendChild(jn),Mt.instance=jn);case"void":return null;default:throw Error(pt(443,Mt.type))}else Mt.type==="stylesheet"&&(Mt.state.loading&4)===0&&(Kt=Mt.instance,Mt.state.loading|=4,hv(Kt,Ut.precedence,Rt));return Mt.instance}function hv(Rt,Mt,Ut){for(var Kt=Ut.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),jn=Kt.length?Kt[Kt.length-1]:null,er=jn,xr=0;xr<Kt.length;xr++){var Hr=Kt[xr];if(Hr.dataset.precedence===Mt)er=Hr;else if(er!==jn)break}er?er.parentNode.insertBefore(Rt,er.nextSibling):(Mt=Ut.nodeType===9?Ut.head:Ut,Mt.insertBefore(Rt,Mt.firstChild))}function $6(Rt,Mt){Rt.crossOrigin==null&&(Rt.crossOrigin=Mt.crossOrigin),Rt.referrerPolicy==null&&(Rt.referrerPolicy=Mt.referrerPolicy),Rt.title==null&&(Rt.title=Mt.title)}function T6(Rt,Mt){Rt.crossOrigin==null&&(Rt.crossOrigin=Mt.crossOrigin),Rt.referrerPolicy==null&&(Rt.referrerPolicy=Mt.referrerPolicy),Rt.integrity==null&&(Rt.integrity=Mt.integrity)}var bv=null;function o7(Rt,Mt,Ut){if(bv===null){var Kt=new Map,jn=bv=new Map;jn.set(Ut,Kt)}else jn=bv,Kt=jn.get(Ut),Kt||(Kt=new Map,jn.set(Ut,Kt));if(Kt.has(Rt))return Kt;for(Kt.set(Rt,null),Ut=Ut.getElementsByTagName(Rt),jn=0;jn<Ut.length;jn++){var er=Ut[jn];if(!(er[es]||er[sl]||Rt==="link"&&er.getAttribute("rel")==="stylesheet")&&er.namespaceURI!=="http://www.w3.org/2000/svg"){var xr=er.getAttribute(Mt)||"";xr=Rt+xr;var Hr=Kt.get(xr);Hr?Hr.push(er):Kt.set(xr,[er])}}return Kt}function gD(Rt,Mt,Ut){Rt=Rt.ownerDocument||Rt,Rt.head.insertBefore(Ut,Mt==="title"?Rt.querySelector("head > title"):null)}function rW(Rt,Mt,Ut){if(Ut===1||Mt.itemProp!=null)return!1;switch(Rt){case"meta":case"title":return!0;case"style":if(typeof Mt.precedence!="string"||typeof Mt.href!="string"||Mt.href==="")break;return!0;case"link":if(typeof Mt.rel!="string"||typeof Mt.href!="string"||Mt.href===""||Mt.onLoad||Mt.onError)break;return Mt.rel==="stylesheet"?(Rt=Mt.disabled,typeof Mt.precedence=="string"&&Rt==null):!0;case"script":if(Mt.async&&typeof Mt.async!="function"&&typeof Mt.async!="symbol"&&!Mt.onLoad&&!Mt.onError&&Mt.src&&typeof Mt.src=="string")return!0}return!1}function s7(Rt){return!(Rt.type==="stylesheet"&&(Rt.state.loading&3)===0)}function aW(Rt,Mt,Ut,Kt){if(Ut.type==="stylesheet"&&(typeof Kt.media!="string"||matchMedia(Kt.media).matches!==!1)&&(Ut.state.loading&4)===0){if(Ut.instance===null){var jn=gv(Kt.href),er=Mt.querySelector(pI(jn));if(er){Mt=er._p,Mt!==null&&typeof Mt=="object"&&typeof Mt.then=="function"&&(Rt.count++,Rt=fD.bind(Rt),Mt.then(Rt,Rt)),Ut.state.loading|=4,Ut.instance=er,tl(er);return}er=Mt.ownerDocument||Mt,Kt=a7(Kt),(jn=c0.get(jn))&&$6(Kt,jn),er=er.createElement("link"),tl(er);var xr=er;xr._p=new Promise(function(Hr,Ra){xr.onload=Hr,xr.onerror=Ra}),qg(er,"link",Kt),Ut.instance=er}Rt.stylesheets===null&&(Rt.stylesheets=new Map),Rt.stylesheets.set(Ut,Mt),(Mt=Ut.state.preload)&&(Ut.state.loading&3)===0&&(Rt.count++,Ut=fD.bind(Rt),Mt.addEventListener("load",Ut),Mt.addEventListener("error",Ut))}}var R6=0;function iW(Rt,Mt){return Rt.stylesheets&&Rt.count===0&&bD(Rt,Rt.stylesheets),0<Rt.count||0<Rt.imgCount?function(Ut){var Kt=setTimeout(function(){if(Rt.stylesheets&&bD(Rt,Rt.stylesheets),Rt.unsuspend){var er=Rt.unsuspend;Rt.unsuspend=null,er()}},6e4+Mt);0<Rt.imgBytes&&R6===0&&(R6=62500*UX());var jn=setTimeout(function(){if(Rt.waitingForImages=!1,Rt.count===0&&(Rt.stylesheets&&bD(Rt,Rt.stylesheets),Rt.unsuspend)){var er=Rt.unsuspend;Rt.unsuspend=null,er()}},(Rt.imgBytes>R6?50:800)+Mt);return Rt.unsuspend=Ut,function(){Rt.unsuspend=null,clearTimeout(Kt),clearTimeout(jn)}}:null}function fD(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bD(this,this.stylesheets);else if(this.unsuspend){var Rt=this.unsuspend;this.unsuspend=null,Rt()}}}var hD=null;function bD(Rt,Mt){Rt.stylesheets=null,Rt.unsuspend!==null&&(Rt.count++,hD=new Map,Mt.forEach(oW,Rt),hD=null,fD.call(Rt))}function oW(Rt,Mt){if(!(Mt.state.loading&4)){var Ut=hD.get(Rt);if(Ut)var Kt=Ut.get(null);else{Ut=new Map,hD.set(Rt,Ut);for(var jn=Rt.querySelectorAll("link[data-precedence],style[data-precedence]"),er=0;er<jn.length;er++){var xr=jn[er];(xr.nodeName==="LINK"||xr.getAttribute("media")!=="not all")&&(Ut.set(xr.dataset.precedence,xr),Kt=xr)}Kt&&Ut.set(null,Kt)}jn=Mt.instance,xr=jn.getAttribute("data-precedence"),er=Ut.get(xr)||Kt,er===Kt&&Ut.set(null,jn),Ut.set(xr,jn),this.count++,Kt=fD.bind(this),jn.addEventListener("load",Kt),jn.addEventListener("error",Kt),er?er.parentNode.insertBefore(jn,er.nextSibling):(Rt=Rt.nodeType===9?Rt.head:Rt,Rt.insertBefore(jn,Rt.firstChild)),Mt.state.loading|=4}}var gI={$$typeof:jt,Provider:null,Consumer:null,_currentValue:nr,_currentValue2:nr,_threadCount:0};function sW(Rt,Mt,Ut,Kt,jn,er,xr,Hr,Ra){this.tag=1,this.containerInfo=Rt,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ms(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ms(0),this.hiddenUpdates=ms(null),this.identifierPrefix=Kt,this.onUncaughtError=jn,this.onCaughtError=er,this.onRecoverableError=xr,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Ra,this.incompleteTransitions=new Map}function A7(Rt,Mt,Ut,Kt,jn,er,xr,Hr,Ra,Ei,no,fo){return Rt=new sW(Rt,Mt,Ut,xr,Ra,Ei,no,fo,Hr),Mt=1,er===!0&&(Mt|=24),er=n0(3,null,null,Mt),Rt.current=er,er.stateNode=Rt,Mt=AR(),Mt.refCount++,Rt.pooledCache=Mt,Mt.refCount++,er.memoizedState={element:Kt,isDehydrated:Ut,cache:Mt},pR(er),Rt}function c7(Rt){return Rt?(Rt=jQ,Rt):jQ}function l7(Rt,Mt,Ut,Kt,jn,er){jn=c7(jn),Kt.context===null?Kt.context=jn:Kt.pendingContext=jn,Kt=BE(Mt),Kt.payload={element:Ut},er=er===void 0?null:er,er!==null&&(Kt.callback=er),Ut=QE(Rt,Kt,Mt),Ut!==null&&(Oh(Ut,Rt,Mt),Y_(Ut,Rt,Mt))}function P6(Rt,Mt){if(Rt=Rt.memoizedState,Rt!==null&&Rt.dehydrated!==null){var Ut=Rt.retryLane;Rt.retryLane=Ut!==0&&Ut<Mt?Ut:Mt}}function yD(Rt,Mt){P6(Rt,Mt),(Rt=Rt.alternate)&&P6(Rt,Mt)}function fI(Rt){if(Rt.tag===13||Rt.tag===31){var Mt=$B(Rt,67108864);Mt!==null&&Oh(Mt,Rt,67108864),yD(Rt,67108864)}}function yv(Rt){if(Rt.tag===13||Rt.tag===31){var Mt=A0();Mt=Us(Mt);var Ut=$B(Rt,Mt);Ut!==null&&Oh(Ut,Rt,Mt),yD(Rt,Mt)}}var hI=!0;function ob(Rt,Mt,Ut,Kt){var jn=Yn.T;Yn.T=null;var er=lr.p;try{lr.p=2,u7(Rt,Mt,Ut,Kt)}finally{lr.p=er,Yn.T=jn}}function AW(Rt,Mt,Ut,Kt){var jn=Yn.T;Yn.T=null;var er=lr.p;try{lr.p=8,u7(Rt,Mt,Ut,Kt)}finally{lr.p=er,Yn.T=jn}}function u7(Rt,Mt,Ut,Kt){if(hI){var jn=d7(Kt);if(jn===null)w6(Rt,Mt,Kt,F6,Ut),lW(Rt,Kt);else if(M6(jn,Rt,Mt,Ut,Kt))Kt.stopPropagation();else if(lW(Rt,Kt),Mt&4&&-1<Ece.indexOf(Rt)){for(;jn!==null;){var er=ec(jn);if(er!==null)switch(er.tag){case 3:if(er=er.stateNode,er.current.memoizedState.isDehydrated){var xr=bo(er.pendingLanes);if(xr!==0){var Hr=er;for(Hr.pendingLanes|=2,Hr.entangledLanes|=2;xr;){var Ra=1<<31-Vs(xr);Hr.entanglements[1]|=Ra,xr&=~Ra}uw(er),(ku&6)===0&&(nD=qa()+500,lI(0))}}break;case 31:case 13:Hr=$B(er,2),Hr!==null&&Oh(Hr,er,2),aD(),yD(er,2)}if(er=d7(Kt),er===null&&w6(Rt,Mt,Kt,F6,Ut),er===jn)break;jn=er}jn!==null&&Kt.stopPropagation()}else w6(Rt,Mt,Kt,null,Ut)}}function d7(Rt){return Rt=PQ(Rt),p7(Rt)}var F6=null;function p7(Rt){if(F6=null,Rt=Qs(Rt),Rt!==null){var Mt=ht(Rt);if(Mt===null)Rt=null;else{var Ut=Mt.tag;if(Ut===13){if(Rt=yt(Mt),Rt!==null)return Rt;Rt=null}else if(Ut===31){if(Rt=kt(Mt),Rt!==null)return Rt;Rt=null}else if(Ut===3){if(Mt.stateNode.current.memoizedState.isDehydrated)return Mt.tag===3?Mt.stateNode.containerInfo:null;Rt=null}else Mt!==Rt&&(Rt=null)}}return F6=Rt,null}function cW(Rt){switch(Rt){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ki()){case La:return 2;case Ja:return 8;case qi:case co:return 32;case ns:return 268435456;default:return 32}default:return 32}}var m7=!1,vp=null,q1=null,zB=null,wv=new Map,kv=new Map,HB=[],Ece="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".split(" ");function lW(Rt,Mt){switch(Rt){case"focusin":case"focusout":vp=null;break;case"dragenter":case"dragleave":q1=null;break;case"mouseover":case"mouseout":zB=null;break;case"pointerover":case"pointerout":wv.delete(Mt.pointerId);break;case"gotpointercapture":case"lostpointercapture":kv.delete(Mt.pointerId)}}function wD(Rt,Mt,Ut,Kt,jn,er){return Rt===null||Rt.nativeEvent!==er?(Rt={blockedOn:Mt,domEventName:Ut,eventSystemFlags:Kt,nativeEvent:er,targetContainers:[jn]},Mt!==null&&(Mt=ec(Mt),Mt!==null&&fI(Mt)),Rt):(Rt.eventSystemFlags|=Kt,Mt=Rt.targetContainers,jn!==null&&Mt.indexOf(jn)===-1&&Mt.push(jn),Rt)}function M6(Rt,Mt,Ut,Kt,jn){switch(Mt){case"focusin":return vp=wD(vp,Rt,Mt,Ut,Kt,jn),!0;case"dragenter":return q1=wD(q1,Rt,Mt,Ut,Kt,jn),!0;case"mouseover":return zB=wD(zB,Rt,Mt,Ut,Kt,jn),!0;case"pointerover":var er=jn.pointerId;return wv.set(er,wD(wv.get(er)||null,Rt,Mt,Ut,Kt,jn)),!0;case"gotpointercapture":return er=jn.pointerId,kv.set(er,wD(kv.get(er)||null,Rt,Mt,Ut,Kt,jn)),!0}return!1}function bI(Rt){var Mt=Qs(Rt.target);if(Mt!==null){var Ut=ht(Mt);if(Ut!==null){if(Mt=Ut.tag,Mt===13){if(Mt=yt(Ut),Mt!==null){Rt.blockedOn=Mt,gu(Rt.priority,function(){yv(Ut)});return}}else if(Mt===31){if(Mt=kt(Ut),Mt!==null){Rt.blockedOn=Mt,gu(Rt.priority,function(){yv(Ut)});return}}else if(Mt===3&&Ut.stateNode.current.memoizedState.isDehydrated){Rt.blockedOn=Ut.tag===3?Ut.stateNode.containerInfo:null;return}}}Rt.blockedOn=null}function yI(Rt){if(Rt.blockedOn!==null)return!1;for(var Mt=Rt.targetContainers;0<Mt.length;){var Ut=d7(Rt.nativeEvent);if(Ut===null){Ut=Rt.nativeEvent;var Kt=new Ut.constructor(Ut.type,Ut);RQ=Kt,Ut.target.dispatchEvent(Kt),RQ=null}else return Mt=ec(Ut),Mt!==null&&fI(Mt),Rt.blockedOn=Ut,!1;Mt.shift()}return!0}function uW(Rt,Mt,Ut){yI(Rt)&&Ut.delete(Mt)}function Cce(){m7=!1,vp!==null&&yI(vp)&&(vp=null),q1!==null&&yI(q1)&&(q1=null),zB!==null&&yI(zB)&&(zB=null),wv.forEach(uW),kv.forEach(uW)}function N6(Rt,Mt){Rt.blockedOn===Mt&&(Rt.blockedOn=null,m7||(m7=!0,At.unstable_scheduleCallback(At.unstable_NormalPriority,Cce)))}var kD=null;function dW(Rt){kD!==Rt&&(kD=Rt,At.unstable_scheduleCallback(At.unstable_NormalPriority,function(){kD===Rt&&(kD=null);for(var Mt=0;Mt<Rt.length;Mt+=3){var Ut=Rt[Mt],Kt=Rt[Mt+1],jn=Rt[Mt+2];if(typeof Kt!="function"){if(p7(Kt||Ut)===null)continue;break}var er=ec(Ut);er!==null&&(Rt.splice(Mt,3),Mt-=3,K_(er,{pending:!0,data:jn,method:Ut.method,action:Kt},Kt,jn))}}))}function YB(Rt){function Mt(Ra){return N6(Ra,Rt)}vp!==null&&N6(vp,Rt),q1!==null&&N6(q1,Rt),zB!==null&&N6(zB,Rt),wv.forEach(Mt),kv.forEach(Mt);for(var Ut=0;Ut<HB.length;Ut++){var Kt=HB[Ut];Kt.blockedOn===Rt&&(Kt.blockedOn=null)}for(;0<HB.length&&(Ut=HB[0],Ut.blockedOn===null);)bI(Ut),Ut.blockedOn===null&&HB.shift();if(Ut=(Rt.ownerDocument||Rt).$$reactFormReplay,Ut!=null)for(Kt=0;Kt<Ut.length;Kt+=3){var jn=Ut[Kt],er=Ut[Kt+1],xr=jn[Yr]||null;if(typeof er=="function")xr||dW(Ut);else if(xr){var Hr=null;if(er&&er.hasAttribute("formAction")){if(jn=er,xr=er[Yr]||null)Hr=xr.formAction;else if(p7(jn)!==null)continue}else Hr=xr.action;typeof Hr=="function"?Ut[Kt+1]=Hr:(Ut.splice(Kt,3),Kt-=3),dW(Ut)}}}function pW(){function Rt(er){er.canIntercept&&er.info==="react-transition"&&er.intercept({handler:function(){return new Promise(function(xr){return jn=xr})},focusReset:"manual",scroll:"manual"})}function Mt(){jn!==null&&(jn(),jn=null),Kt||setTimeout(Ut,20)}function Ut(){if(!Kt&&!navigation.transition){var er=navigation.currentEntry;er&&er.url!=null&&navigation.navigate(er.url,{state:er.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var Kt=!1,jn=null;return navigation.addEventListener("navigate",Rt),navigation.addEventListener("navigatesuccess",Mt),navigation.addEventListener("navigateerror",Mt),setTimeout(Ut,100),function(){Kt=!0,navigation.removeEventListener("navigate",Rt),navigation.removeEventListener("navigatesuccess",Mt),navigation.removeEventListener("navigateerror",Mt),jn!==null&&(jn(),jn=null)}}}function g7(Rt){this._internalRoot=Rt}L6.prototype.render=g7.prototype.render=function(Rt){var Mt=this._internalRoot;if(Mt===null)throw Error(pt(409));var Ut=Mt.current,Kt=A0();l7(Ut,Kt,Rt,Mt,null,null)},L6.prototype.unmount=g7.prototype.unmount=function(){var Rt=this._internalRoot;if(Rt!==null){this._internalRoot=null;var Mt=Rt.containerInfo;l7(Rt.current,2,null,Rt,null,null),aD(),Mt[ga]=null}};function L6(Rt){this._internalRoot=Rt}L6.prototype.unstable_scheduleHydration=function(Rt){if(Rt){var Mt=fc();Rt={blockedOn:null,target:Rt,priority:Mt};for(var Ut=0;Ut<HB.length&&Mt!==0&&Mt<HB[Ut].priority;Ut++);HB.splice(Ut,0,Rt),Ut===0&&bI(Rt)}};var Ev=ot.version;if(Ev!=="19.2.4")throw Error(pt(527,Ev,"19.2.4"));lr.findDOMNode=function(Rt){var Mt=Rt._reactInternals;if(Mt===void 0)throw typeof Rt.render=="function"?Error(pt(188)):(Rt=Object.keys(Rt).join(","),Error(pt(268,Rt)));return Rt=Ot(Mt),Rt=Rt!==null?_t(Rt):null,Rt=Rt===null?null:Rt.stateNode,Rt};var G6={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Yn,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cv.isDisabled&&Cv.supportsFiber)try{Jo=Cv.inject(G6),Ji=Cv}catch{}}return reactDomClient_production.createRoot=function(Rt,Mt){if(!ft(Rt))throw Error(pt(299));var Ut=!1,Kt="",jn=$9,er=T9,xr=R9;return Mt!=null&&(Mt.unstable_strictMode===!0&&(Ut=!0),Mt.identifierPrefix!==void 0&&(Kt=Mt.identifierPrefix),Mt.onUncaughtError!==void 0&&(jn=Mt.onUncaughtError),Mt.onCaughtError!==void 0&&(er=Mt.onCaughtError),Mt.onRecoverableError!==void 0&&(xr=Mt.onRecoverableError)),Mt=A7(Rt,1,!1,null,null,Ut,Kt,null,jn,er,xr,pW),Rt[ga]=Mt.current,y6(Rt),new g7(Mt)},reactDomClient_production.hydrateRoot=function(Rt,Mt,Ut){if(!ft(Rt))throw Error(pt(299));var Kt=!1,jn="",er=$9,xr=T9,Hr=R9,Ra=null;return Ut!=null&&(Ut.unstable_strictMode===!0&&(Kt=!0),Ut.identifierPrefix!==void 0&&(jn=Ut.identifierPrefix),Ut.onUncaughtError!==void 0&&(er=Ut.onUncaughtError),Ut.onCaughtError!==void 0&&(xr=Ut.onCaughtError),Ut.onRecoverableError!==void 0&&(Hr=Ut.onRecoverableError),Ut.formState!==void 0&&(Ra=Ut.formState)),Mt=A7(Rt,1,!0,Mt,Ut??null,Kt,jn,Ra,er,xr,Hr,pW),Mt.context=c7(null),Ut=Mt.current,Kt=A0(),Kt=Us(Kt),jn=BE(Kt),jn.callback=null,QE(Ut,jn,Kt),Ut=Kt,Mt.current.lanes=Ut,uo(Mt,Ut),uw(Mt),Rt[ga]=Mt.current,y6(Rt),new L6(Mt)},reactDomClient_production.version="19.2.4",reactDomClient_production}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client$1.exports;hasRequiredClient=1;function At(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(At)}catch(ot){console.error(ot)}}return At(),client$1.exports=requireReactDomClient_production(),client$1.exports}var clientExports=requireClient(),compilerRuntime={exports:{}},reactCompilerRuntime_production={};var hasRequiredReactCompilerRuntime_production;function requireReactCompilerRuntime_production(){if(hasRequiredReactCompilerRuntime_production)return reactCompilerRuntime_production;hasRequiredReactCompilerRuntime_production=1;var At=requireReact().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return reactCompilerRuntime_production.c=function(ot){return At.H.useMemoCache(ot)},reactCompilerRuntime_production}var hasRequiredCompilerRuntime;function requireCompilerRuntime(){return hasRequiredCompilerRuntime||(hasRequiredCompilerRuntime=1,compilerRuntime.exports=requireReactCompilerRuntime_production()),compilerRuntime.exports}var compilerRuntimeExports=requireCompilerRuntime();const LayoutGroupContext=reactExports.createContext({});function useConstant(At){const ot=reactExports.useRef(null);return ot.current===null&&(ot.current=At()),ot.current}const isBrowser$1=typeof window<"u",useIsomorphicLayoutEffect$3=isBrowser$1?reactExports.useLayoutEffect:reactExports.useEffect,PresenceContext=reactExports.createContext(null);function addUniqueItem(At,ot){At.indexOf(ot)===-1&&At.push(ot)}function removeItem$1(At,ot){const ut=At.indexOf(ot);ut>-1&&At.splice(ut,1)}const clamp$2=(At,ot,ut)=>ut>ot?ot:ut<At?At:ut;let invariant=()=>{};const MotionGlobalConfig={},isNumericalString=At=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(At);function isObject$1(At){return typeof At=="object"&&At!==null}const isZeroValueString=At=>/^0[^.\s]+$/u.test(At);function memo$1(At){let ot;return()=>(ot===void 0&&(ot=At()),ot)}const noop$3=At=>At,combineFunctions=(At,ot)=>ut=>ot(At(ut)),pipe=(...At)=>At.reduce(combineFunctions),progress=(At,ot,ut)=>{const pt=ot-At;return pt===0?1:(ut-At)/pt};class SubscriptionManager{constructor(){this.subscriptions=[]}add(ot){return addUniqueItem(this.subscriptions,ot),()=>removeItem$1(this.subscriptions,ot)}notify(ot,ut,pt){const ft=this.subscriptions.length;if(ft)if(ft===1)this.subscriptions[0](ot,ut,pt);else for(let ht=0;ht<ft;ht++){const yt=this.subscriptions[ht];yt&&yt(ot,ut,pt)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const secondsToMilliseconds=At=>At*1e3,millisecondsToSeconds=At=>At/1e3;function velocityPerSecond(At,ot){return ot?At*(1e3/ot):0}const wrap$2=(At,ot,ut)=>{const pt=ot-At;return((ut-At)%pt+pt)%pt+At},calcBezier=(At,ot,ut)=>(((1-3*ut+3*ot)*At+(3*ut-6*ot))*At+3*ot)*At,subdivisionPrecision=1e-7,subdivisionMaxIterations=12;function binarySubdivide(At,ot,ut,pt,ft){let ht,yt,kt=0;do yt=ot+(ut-ot)/2,ht=calcBezier(yt,pt,ft)-At,ht>0?ut=yt:ot=yt;while(Math.abs(ht)>subdivisionPrecision&&++kt<subdivisionMaxIterations);return yt}function cubicBezier(At,ot,ut,pt){if(At===ot&&ut===pt)return noop$3;const ft=ht=>binarySubdivide(ht,0,1,At,ut);return ht=>ht===0||ht===1?ht:calcBezier(ft(ht),ot,pt)}const mirrorEasing=At=>ot=>ot<=.5?At(2*ot)/2:(2-At(2*(1-ot)))/2,reverseEasing=At=>ot=>1-At(1-ot),backOut=cubicBezier(.33,1.53,.69,.99),backIn=reverseEasing(backOut),backInOut=mirrorEasing(backIn),anticipate=At=>(At*=2)<1?.5*backIn(At):.5*(2-Math.pow(2,-10*(At-1))),circIn=At=>1-Math.sin(Math.acos(At)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circIn),easeIn=cubicBezier(.42,0,1,1),easeOut=cubicBezier(0,0,.58,1),easeInOut=cubicBezier(.42,0,.58,1),isEasingArray=At=>Array.isArray(At)&&typeof At[0]!="number";function getEasingForSegment(At,ot){return isEasingArray(At)?At[wrap$2(0,At.length,ot)]:At}const isBezierDefinition=At=>Array.isArray(At)&&typeof At[0]=="number",easingLookup={linear:noop$3,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate},isValidEasing=At=>typeof At=="string",easingDefinitionToFunction=At=>{if(isBezierDefinition(At)){invariant(At.length===4);const[ot,ut,pt,ft]=At;return cubicBezier(ot,ut,pt,ft)}else if(isValidEasing(At))return easingLookup[At];return At},stepsOrder=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function createRenderStep(At,ot){let ut=new Set,pt=new Set,ft=!1,ht=!1;const yt=new WeakSet;let kt={delta:0,timestamp:0,isProcessing:!1};function Et(_t){yt.has(_t)&&(Ot.schedule(_t),At()),_t(kt)}const Ot={schedule:(_t,Qt=!1,vt=!1)=>{const $t=vt&&ft?ut:pt;return Qt&&yt.add(_t),$t.has(_t)||$t.add(_t),_t},cancel:_t=>{pt.delete(_t),yt.delete(_t)},process:_t=>{if(kt=_t,ft){ht=!0;return}ft=!0,[ut,pt]=[pt,ut],ut.forEach(Et),ut.clear(),ft=!1,ht&&(ht=!1,Ot.process(_t))}};return Ot}const maxElapsed=40;function createRenderBatcher(At,ot){let ut=!1,pt=!0;const ft={delta:0,timestamp:0,isProcessing:!1},ht=()=>ut=!0,yt=stepsOrder.reduce((jt,Zt)=>(jt[Zt]=createRenderStep(ht),jt),{}),{setup:kt,read:Et,resolveKeyframes:Ot,preUpdate:_t,update:Qt,preRender:vt,render:St,postRender:$t}=yt,Pt=()=>{const jt=MotionGlobalConfig.useManualTiming?ft.timestamp:performance.now();ut=!1,MotionGlobalConfig.useManualTiming||(ft.delta=pt?1e3/60:Math.max(Math.min(jt-ft.timestamp,maxElapsed),1)),ft.timestamp=jt,ft.isProcessing=!0,kt.process(ft),Et.process(ft),Ot.process(ft),_t.process(ft),Qt.process(ft),vt.process(ft),St.process(ft),$t.process(ft),ft.isProcessing=!1,ut&&ot&&(pt=!1,At(Pt))},Nt=()=>{ut=!0,pt=!0,ft.isProcessing||At(Pt)};return{schedule:stepsOrder.reduce((jt,Zt)=>{const Ht=yt[Zt];return jt[Zt]=(Wt,wn=!1,Qn=!1)=>(ut||Nt(),Ht.schedule(Wt,wn,Qn)),jt},{}),cancel:jt=>{for(let Zt=0;Zt<stepsOrder.length;Zt++)yt[stepsOrder[Zt]].cancel(jt)},state:ft,steps:yt}}const{schedule:frame,cancel:cancelFrame,state:frameData,steps:frameSteps}=createRenderBatcher(typeof requestAnimationFrame<"u"?requestAnimationFrame:noop$3,!0);let now;function clearTime(){now=void 0}const time={now:()=>(now===void 0&&time.set(frameData.isProcessing||MotionGlobalConfig.useManualTiming?frameData.timestamp:performance.now()),now),set:At=>{now=At,queueMicrotask(clearTime)}},checkStringStartsWith=At=>ot=>typeof ot=="string"&&ot.startsWith(At),isCSSVariableName=checkStringStartsWith("--"),startsAsVariableToken=checkStringStartsWith("var(--"),isCSSVariableToken=At=>startsAsVariableToken(At)?singleCssVariableRegex.test(At.split("/*")[0].trim()):!1,singleCssVariableRegex=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function containsCSSVariable(At){return typeof At!="string"?!1:At.split("/*")[0].includes("var(--")}const number$2={test:At=>typeof At=="number",parse:parseFloat,transform:At=>At},alpha={...number$2,transform:At=>clamp$2(0,1,At)},scale={...number$2,default:1},sanitize=At=>Math.round(At*1e5)/1e5,floatRegex=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function isNullish(At){return At==null}const singleColorRegex=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(At,ot)=>ut=>!!(typeof ut=="string"&&singleColorRegex.test(ut)&&ut.startsWith(At)||ot&&!isNullish(ut)&&Object.prototype.hasOwnProperty.call(ut,ot)),splitColor=(At,ot,ut)=>pt=>{if(typeof pt!="string")return pt;const[ft,ht,yt,kt]=pt.match(floatRegex);return{[At]:parseFloat(ft),[ot]:parseFloat(ht),[ut]:parseFloat(yt),alpha:kt!==void 0?parseFloat(kt):1}},clampRgbUnit=At=>clamp$2(0,255,At),rgbUnit={...number$2,transform:At=>Math.round(clampRgbUnit(At))},rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:At,green:ot,blue:ut,alpha:pt=1})=>"rgba("+rgbUnit.transform(At)+", "+rgbUnit.transform(ot)+", "+rgbUnit.transform(ut)+", "+sanitize(alpha.transform(pt))+")"};function parseHex$1(At){let ot="",ut="",pt="",ft="";return At.length>5?(ot=At.substring(1,3),ut=At.substring(3,5),pt=At.substring(5,7),ft=At.substring(7,9)):(ot=At.substring(1,2),ut=At.substring(2,3),pt=At.substring(3,4),ft=At.substring(4,5),ot+=ot,ut+=ut,pt+=pt,ft+=ft),{red:parseInt(ot,16),green:parseInt(ut,16),blue:parseInt(pt,16),alpha:ft?parseInt(ft,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex$1,transform:rgba.transform},createUnitType=At=>({test:ot=>typeof ot=="string"&&ot.endsWith(At)&&ot.split(" ").length===1,parse:parseFloat,transform:ot=>`${ot}${At}`}),degrees=createUnitType("deg"),percent$2=createUnitType("%"),px$1=createUnitType("px"),vh=createUnitType("vh"),vw=createUnitType("vw"),progressPercentage={...percent$2,parse:At=>percent$2.parse(At)/100,transform:At=>percent$2.transform(At*100)},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:At,saturation:ot,lightness:ut,alpha:pt=1})=>"hsla("+Math.round(At)+", "+percent$2.transform(sanitize(ot))+", "+percent$2.transform(sanitize(ut))+", "+sanitize(alpha.transform(pt))+")"},color$1={test:At=>rgba.test(At)||hex.test(At)||hsla.test(At),parse:At=>rgba.test(At)?rgba.parse(At):hsla.test(At)?hsla.parse(At):hex.parse(At),transform:At=>typeof At=="string"?At:At.hasOwnProperty("red")?rgba.transform(At):hsla.transform(At),getAnimatableNone:At=>{const ot=color$1.parse(At);return ot.alpha=0,color$1.transform(ot)}},colorRegex=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function test(At){return isNaN(At)&&typeof At=="string"&&(At.match(floatRegex)?.length||0)+(At.match(colorRegex)?.length||0)>0}const NUMBER_TOKEN="number",COLOR_TOKEN="color",VAR_TOKEN="var",VAR_FUNCTION_TOKEN="var(",SPLIT_TOKEN="${}",complexRegex=/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 analyseComplexValue(At){const ot=At.toString(),ut=[],pt={color:[],number:[],var:[]},ft=[];let ht=0;const kt=ot.replace(complexRegex,Et=>(color$1.test(Et)?(pt.color.push(ht),ft.push(COLOR_TOKEN),ut.push(color$1.parse(Et))):Et.startsWith(VAR_FUNCTION_TOKEN)?(pt.var.push(ht),ft.push(VAR_TOKEN),ut.push(Et)):(pt.number.push(ht),ft.push(NUMBER_TOKEN),ut.push(parseFloat(Et))),++ht,SPLIT_TOKEN)).split(SPLIT_TOKEN);return{values:ut,split:kt,indexes:pt,types:ft}}function parseComplexValue(At){return analyseComplexValue(At).values}function createTransformer(At){const{split:ot,types:ut}=analyseComplexValue(At),pt=ot.length;return ft=>{let ht="";for(let yt=0;yt<pt;yt++)if(ht+=ot[yt],ft[yt]!==void 0){const kt=ut[yt];kt===NUMBER_TOKEN?ht+=sanitize(ft[yt]):kt===COLOR_TOKEN?ht+=color$1.transform(ft[yt]):ht+=ft[yt]}return ht}}const convertNumbersToZero=At=>typeof At=="number"?0:color$1.test(At)?color$1.getAnimatableNone(At):At;function getAnimatableNone$1(At){const ot=parseComplexValue(At);return createTransformer(At)(ot.map(convertNumbersToZero))}const complex={test,parse:parseComplexValue,createTransformer,getAnimatableNone:getAnimatableNone$1};function hueToRgb(At,ot,ut){return ut<0&&(ut+=1),ut>1&&(ut-=1),ut<1/6?At+(ot-At)*6*ut:ut<1/2?ot:ut<2/3?At+(ot-At)*(2/3-ut)*6:At}function hslaToRgba({hue:At,saturation:ot,lightness:ut,alpha:pt}){At/=360,ot/=100,ut/=100;let ft=0,ht=0,yt=0;if(!ot)ft=ht=yt=ut;else{const kt=ut<.5?ut*(1+ot):ut+ot-ut*ot,Et=2*ut-kt;ft=hueToRgb(Et,kt,At+1/3),ht=hueToRgb(Et,kt,At),yt=hueToRgb(Et,kt,At-1/3)}return{red:Math.round(ft*255),green:Math.round(ht*255),blue:Math.round(yt*255),alpha:pt}}function mixImmediate(At,ot){return ut=>ut>0?ot:At}const mixNumber$1=(At,ot,ut)=>At+(ot-At)*ut,mixLinearColor=(At,ot,ut)=>{const pt=At*At,ft=ut*(ot*ot-pt)+pt;return ft<0?0:Math.sqrt(ft)},colorTypes=[hex,rgba,hsla],getColorType=At=>colorTypes.find(ot=>ot.test(At));function asRGBA(At){const ot=getColorType(At);if(!ot)return!1;let ut=ot.parse(At);return ot===hsla&&(ut=hslaToRgba(ut)),ut}const mixColor=(At,ot)=>{const ut=asRGBA(At),pt=asRGBA(ot);if(!ut||!pt)return mixImmediate(At,ot);const ft={...ut};return ht=>(ft.red=mixLinearColor(ut.red,pt.red,ht),ft.green=mixLinearColor(ut.green,pt.green,ht),ft.blue=mixLinearColor(ut.blue,pt.blue,ht),ft.alpha=mixNumber$1(ut.alpha,pt.alpha,ht),rgba.transform(ft))},invisibleValues=new Set(["none","hidden"]);function mixVisibility(At,ot){return invisibleValues.has(At)?ut=>ut<=0?At:ot:ut=>ut>=1?ot:At}function mixNumber(At,ot){return ut=>mixNumber$1(At,ot,ut)}function getMixer(At){return typeof At=="number"?mixNumber:typeof At=="string"?isCSSVariableToken(At)?mixImmediate:color$1.test(At)?mixColor:mixComplex:Array.isArray(At)?mixArray:typeof At=="object"?color$1.test(At)?mixColor:mixObject:mixImmediate}function mixArray(At,ot){const ut=[...At],pt=ut.length,ft=At.map((ht,yt)=>getMixer(ht)(ht,ot[yt]));return ht=>{for(let yt=0;yt<pt;yt++)ut[yt]=ft[yt](ht);return ut}}function mixObject(At,ot){const ut={...At,...ot},pt={};for(const ft in ut)At[ft]!==void 0&&ot[ft]!==void 0&&(pt[ft]=getMixer(At[ft])(At[ft],ot[ft]));return ft=>{for(const ht in pt)ut[ht]=pt[ht](ft);return ut}}function matchOrder(At,ot){const ut=[],pt={color:0,var:0,number:0};for(let ft=0;ft<ot.values.length;ft++){const ht=ot.types[ft],yt=At.indexes[ht][pt[ht]],kt=At.values[yt]??0;ut[ft]=kt,pt[ht]++}return ut}const mixComplex=(At,ot)=>{const ut=complex.createTransformer(ot),pt=analyseComplexValue(At),ft=analyseComplexValue(ot);return pt.indexes.var.length===ft.indexes.var.length&&pt.indexes.color.length===ft.indexes.color.length&&pt.indexes.number.length>=ft.indexes.number.length?invisibleValues.has(At)&&!ft.values.length||invisibleValues.has(ot)&&!pt.values.length?mixVisibility(At,ot):pipe(mixArray(matchOrder(pt,ft),ft.values),ut):mixImmediate(At,ot)};function mix(At,ot,ut){return typeof At=="number"&&typeof ot=="number"&&typeof ut=="number"?mixNumber$1(At,ot,ut):getMixer(At)(At,ot)}const frameloopDriver=At=>{const ot=({timestamp:ut})=>At(ut);return{start:(ut=!0)=>frame.update(ot,ut),stop:()=>cancelFrame(ot),now:()=>frameData.isProcessing?frameData.timestamp:time.now()}},generateLinearEasing=(At,ot,ut=10)=>{let pt="";const ft=Math.max(Math.round(ot/ut),2);for(let ht=0;ht<ft;ht++)pt+=Math.round(At(ht/(ft-1))*1e4)/1e4+", ";return`linear(${pt.substring(0,pt.length-2)})`},maxGeneratorDuration=2e4;function calcGeneratorDuration(At){let ot=0;const ut=50;let pt=At.next(ot);for(;!pt.done&&ot<maxGeneratorDuration;)ot+=ut,pt=At.next(ot);return ot>=maxGeneratorDuration?1/0:ot}function createGeneratorEasing(At,ot=100,ut){const pt=ut({...At,keyframes:[0,ot]}),ft=Math.min(calcGeneratorDuration(pt),maxGeneratorDuration);return{type:"keyframes",ease:ht=>pt.next(ft*ht).value/ot,duration:millisecondsToSeconds(ft)}}const velocitySampleDuration=5;function calcGeneratorVelocity(At,ot,ut){const pt=Math.max(ot-velocitySampleDuration,0);return velocityPerSecond(ut-At(pt),ot-pt)}const springDefaults={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},safeMin=.001;function findSpring({duration:At=springDefaults.duration,bounce:ot=springDefaults.bounce,velocity:ut=springDefaults.velocity,mass:pt=springDefaults.mass}){let ft,ht,yt=1-ot;yt=clamp$2(springDefaults.minDamping,springDefaults.maxDamping,yt),At=clamp$2(springDefaults.minDuration,springDefaults.maxDuration,millisecondsToSeconds(At)),yt<1?(ft=Ot=>{const _t=Ot*yt,Qt=_t*At,vt=_t-ut,St=calcAngularFreq(Ot,yt),$t=Math.exp(-Qt);return safeMin-vt/St*$t},ht=Ot=>{const Qt=Ot*yt*At,vt=Qt*ut+ut,St=Math.pow(yt,2)*Math.pow(Ot,2)*At,$t=Math.exp(-Qt),Pt=calcAngularFreq(Math.pow(Ot,2),yt);return(-ft(Ot)+safeMin>0?-1:1)*((vt-St)*$t)/Pt}):(ft=Ot=>{const _t=Math.exp(-Ot*At),Qt=(Ot-ut)*At+1;return-safeMin+_t*Qt},ht=Ot=>{const _t=Math.exp(-Ot*At),Qt=(ut-Ot)*(At*At);return _t*Qt});const kt=5/At,Et=approximateRoot(ft,ht,kt);if(At=secondsToMilliseconds(At),isNaN(Et))return{stiffness:springDefaults.stiffness,damping:springDefaults.damping,duration:At};{const Ot=Math.pow(Et,2)*pt;return{stiffness:Ot,damping:yt*2*Math.sqrt(pt*Ot),duration:At}}}const rootIterations=12;function approximateRoot(At,ot,ut){let pt=ut;for(let ft=1;ft<rootIterations;ft++)pt=pt-At(pt)/ot(pt);return pt}function calcAngularFreq(At,ot){return At*Math.sqrt(1-ot*ot)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(At,ot){return ot.some(ut=>At[ut]!==void 0)}function getSpringOptions(At){let ot={velocity:springDefaults.velocity,stiffness:springDefaults.stiffness,damping:springDefaults.damping,mass:springDefaults.mass,isResolvedFromDuration:!1,...At};if(!isSpringType(At,physicsKeys)&&isSpringType(At,durationKeys))if(ot.velocity=0,At.visualDuration){const ut=At.visualDuration,pt=2*Math.PI/(ut*1.2),ft=pt*pt,ht=2*clamp$2(.05,1,1-(At.bounce||0))*Math.sqrt(ft);ot={...ot,mass:springDefaults.mass,stiffness:ft,damping:ht}}else{const ut=findSpring({...At,velocity:0});ot={...ot,...ut,mass:springDefaults.mass},ot.isResolvedFromDuration=!0}return ot}function spring(At=springDefaults.visualDuration,ot=springDefaults.bounce){const ut=typeof At!="object"?{visualDuration:At,keyframes:[0,1],bounce:ot}:At;let{restSpeed:pt,restDelta:ft}=ut;const ht=ut.keyframes[0],yt=ut.keyframes[ut.keyframes.length-1],kt={done:!1,value:ht},{stiffness:Et,damping:Ot,mass:_t,duration:Qt,velocity:vt,isResolvedFromDuration:St}=getSpringOptions({...ut,velocity:-millisecondsToSeconds(ut.velocity||0)}),$t=vt||0,Pt=Ot/(2*Math.sqrt(Et*_t)),Nt=yt-ht,Lt=millisecondsToSeconds(Math.sqrt(Et/_t)),qt=Math.abs(Nt)<5;pt||(pt=qt?springDefaults.restSpeed.granular:springDefaults.restSpeed.default),ft||(ft=qt?springDefaults.restDelta.granular:springDefaults.restDelta.default);let jt;if(Pt<1){const Ht=calcAngularFreq(Lt,Pt);jt=Wt=>{const wn=Math.exp(-Pt*Lt*Wt);return yt-wn*(($t+Pt*Lt*Nt)/Ht*Math.sin(Ht*Wt)+Nt*Math.cos(Ht*Wt))}}else if(Pt===1)jt=Ht=>yt-Math.exp(-Lt*Ht)*(Nt+($t+Lt*Nt)*Ht);else{const Ht=Lt*Math.sqrt(Pt*Pt-1);jt=Wt=>{const wn=Math.exp(-Pt*Lt*Wt),Qn=Math.min(Ht*Wt,300);return yt-wn*(($t+Pt*Lt*Nt)*Math.sinh(Qn)+Ht*Nt*Math.cosh(Qn))/Ht}}const Zt={calculatedDuration:St&&Qt||null,next:Ht=>{const Wt=jt(Ht);if(St)kt.done=Ht>=Qt;else{let wn=Ht===0?$t:0;Pt<1&&(wn=Ht===0?secondsToMilliseconds($t):calcGeneratorVelocity(jt,Ht,Wt));const Qn=Math.abs(wn)<=pt,Jt=Math.abs(yt-Wt)<=ft;kt.done=Qn&&Jt}return kt.value=kt.done?yt:Wt,kt},toString:()=>{const Ht=Math.min(calcGeneratorDuration(Zt),maxGeneratorDuration),Wt=generateLinearEasing(wn=>Zt.next(Ht*wn).value,Ht,30);return Ht+"ms "+Wt},toTransition:()=>{}};return Zt}spring.applyToOptions=At=>{const ot=createGeneratorEasing(At,100,spring);return At.ease=ot.ease,At.duration=secondsToMilliseconds(ot.duration),At.type="keyframes",At};function inertia({keyframes:At,velocity:ot=0,power:ut=.8,timeConstant:pt=325,bounceDamping:ft=10,bounceStiffness:ht=500,modifyTarget:yt,min:kt,max:Et,restDelta:Ot=.5,restSpeed:_t}){const Qt=At[0],vt={done:!1,value:Qt},St=Qn=>kt!==void 0&&Qn<kt||Et!==void 0&&Qn>Et,$t=Qn=>kt===void 0?Et:Et===void 0||Math.abs(kt-Qn)<Math.abs(Et-Qn)?kt:Et;let Pt=ut*ot;const Nt=Qt+Pt,Lt=yt===void 0?Nt:yt(Nt);Lt!==Nt&&(Pt=Lt-Qt);const qt=Qn=>-Pt*Math.exp(-Qn/pt),jt=Qn=>Lt+qt(Qn),Zt=Qn=>{const Jt=qt(Qn),Gn=jt(Qn);vt.done=Math.abs(Jt)<=Ot,vt.value=vt.done?Lt:Gn};let Ht,Wt;const wn=Qn=>{St(vt.value)&&(Ht=Qn,Wt=spring({keyframes:[vt.value,$t(vt.value)],velocity:calcGeneratorVelocity(jt,Qn,vt.value),damping:ft,stiffness:ht,restDelta:Ot,restSpeed:_t}))};return wn(0),{calculatedDuration:null,next:Qn=>{let Jt=!1;return!Wt&&Ht===void 0&&(Jt=!0,Zt(Qn),wn(Qn)),Ht!==void 0&&Qn>=Ht?Wt.next(Qn-Ht):(!Jt&&Zt(Qn),vt)}}}function createMixers(At,ot,ut){const pt=[],ft=ut||MotionGlobalConfig.mix||mix,ht=At.length-1;for(let yt=0;yt<ht;yt++){let kt=ft(At[yt],At[yt+1]);if(ot){const Et=Array.isArray(ot)?ot[yt]||noop$3:ot;kt=pipe(Et,kt)}pt.push(kt)}return pt}function interpolate$1(At,ot,{clamp:ut=!0,ease:pt,mixer:ft}={}){const ht=At.length;if(invariant(ht===ot.length),ht===1)return()=>ot[0];if(ht===2&&ot[0]===ot[1])return()=>ot[1];const yt=At[0]===At[1];At[0]>At[ht-1]&&(At=[...At].reverse(),ot=[...ot].reverse());const kt=createMixers(ot,pt,ft),Et=kt.length,Ot=_t=>{if(yt&&_t<At[0])return ot[0];let Qt=0;if(Et>1)for(;Qt<At.length-2&&!(_t<At[Qt+1]);Qt++);const vt=progress(At[Qt],At[Qt+1],_t);return kt[Qt](vt)};return ut?_t=>Ot(clamp$2(At[0],At[ht-1],_t)):Ot}function fillOffset(At,ot){const ut=At[At.length-1];for(let pt=1;pt<=ot;pt++){const ft=progress(0,ot,pt);At.push(mixNumber$1(ut,1,ft))}}function defaultOffset(At){const ot=[0];return fillOffset(ot,At.length-1),ot}function convertOffsetToTimes(At,ot){return At.map(ut=>ut*ot)}function defaultEasing(At,ot){return At.map(()=>ot||easeInOut).splice(0,At.length-1)}function keyframes({duration:At=300,keyframes:ot,times:ut,ease:pt="easeInOut"}){const ft=isEasingArray(pt)?pt.map(easingDefinitionToFunction):easingDefinitionToFunction(pt),ht={done:!1,value:ot[0]},yt=convertOffsetToTimes(ut&&ut.length===ot.length?ut:defaultOffset(ot),At),kt=interpolate$1(yt,ot,{ease:Array.isArray(ft)?ft:defaultEasing(ot,ft)});return{calculatedDuration:At,next:Et=>(ht.value=kt(Et),ht.done=Et>=At,ht)}}const isNotNull$1=At=>At!==null;function getFinalKeyframe$1(At,{repeat:ot,repeatType:ut="loop"},pt,ft=1){const ht=At.filter(isNotNull$1),kt=ft<0||ot&&ut!=="loop"&&ot%2===1?0:ht.length-1;return!kt||pt===void 0?ht[kt]:pt}const transitionTypeMap={decay:inertia,inertia,tween:keyframes,keyframes,spring};function replaceTransitionType(At){typeof At.type=="string"&&(At.type=transitionTypeMap[At.type])}class WithPromise{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(ot=>{this.resolve=ot})}notifyFinished(){this.resolve()}then(ot,ut){return this.finished.then(ot,ut)}}const percentToProgress=At=>At/100;class JSAnimation extends WithPromise{constructor(ot){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:ut}=this.options;ut&&ut.updatedAt!==time.now()&&this.tick(time.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=ot,this.initAnimation(),this.play(),ot.autoplay===!1&&this.pause()}initAnimation(){const{options:ot}=this;replaceTransitionType(ot);const{type:ut=keyframes,repeat:pt=0,repeatDelay:ft=0,repeatType:ht,velocity:yt=0}=ot;let{keyframes:kt}=ot;const Et=ut||keyframes;Et!==keyframes&&typeof kt[0]!="number"&&(this.mixKeyframes=pipe(percentToProgress,mix(kt[0],kt[1])),kt=[0,100]);const Ot=Et({...ot,keyframes:kt});ht==="mirror"&&(this.mirroredGenerator=Et({...ot,keyframes:[...kt].reverse(),velocity:-yt})),Ot.calculatedDuration===null&&(Ot.calculatedDuration=calcGeneratorDuration(Ot));const{calculatedDuration:_t}=Ot;this.calculatedDuration=_t,this.resolvedDuration=_t+ft,this.totalDuration=this.resolvedDuration*(pt+1)-ft,this.generator=Ot}updateTime(ot){const ut=Math.round(ot-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=ut}tick(ot,ut=!1){const{generator:pt,totalDuration:ft,mixKeyframes:ht,mirroredGenerator:yt,resolvedDuration:kt,calculatedDuration:Et}=this;if(this.startTime===null)return pt.next(0);const{delay:Ot=0,keyframes:_t,repeat:Qt,repeatType:vt,repeatDelay:St,type:$t,onUpdate:Pt,finalKeyframe:Nt}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,ot):this.speed<0&&(this.startTime=Math.min(ot-ft/this.speed,this.startTime)),ut?this.currentTime=ot:this.updateTime(ot);const Lt=this.currentTime-Ot*(this.playbackSpeed>=0?1:-1),qt=this.playbackSpeed>=0?Lt<0:Lt>ft;this.currentTime=Math.max(Lt,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=ft);let jt=this.currentTime,Zt=pt;if(Qt){const Qn=Math.min(this.currentTime,ft)/kt;let Jt=Math.floor(Qn),Gn=Qn%1;!Gn&&Qn>=1&&(Gn=1),Gn===1&&Jt--,Jt=Math.min(Jt,Qt+1),Jt%2&&(vt==="reverse"?(Gn=1-Gn,St&&(Gn-=St/kt)):vt==="mirror"&&(Zt=yt)),jt=clamp$2(0,1,Gn)*kt}const Ht=qt?{done:!1,value:_t[0]}:Zt.next(jt);ht&&(Ht.value=ht(Ht.value));let{done:Wt}=Ht;!qt&&Et!==null&&(Wt=this.playbackSpeed>=0?this.currentTime>=ft:this.currentTime<=0);const wn=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Wt);return wn&&$t!==inertia&&(Ht.value=getFinalKeyframe$1(_t,this.options,Nt,this.speed)),Pt&&Pt(Ht.value),wn&&this.finish(),Ht}then(ot,ut){return this.finished.then(ot,ut)}get duration(){return millisecondsToSeconds(this.calculatedDuration)}get iterationDuration(){const{delay:ot=0}=this.options||{};return this.duration+millisecondsToSeconds(ot)}get time(){return millisecondsToSeconds(this.currentTime)}set time(ot){ot=secondsToMilliseconds(ot),this.currentTime=ot,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=ot:this.driver&&(this.startTime=this.driver.now()-ot/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(ot){this.updateTime(time.now());const ut=this.playbackSpeed!==ot;this.playbackSpeed=ot,ut&&(this.time=millisecondsToSeconds(this.currentTime))}play(){if(this.isStopped)return;const{driver:ot=frameloopDriver,startTime:ut}=this.options;this.driver||(this.driver=ot(ft=>this.tick(ft))),this.options.onPlay?.();const pt=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=pt):this.holdTime!==null?this.startTime=pt-this.holdTime:this.startTime||(this.startTime=ut??pt),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(time.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(ot){return this.startTime=0,this.tick(ot,!0)}attachTimeline(ot){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),ot.observe(this)}}function fillWildcards(At){for(let ot=1;ot<At.length;ot++)At[ot]??(At[ot]=At[ot-1])}const radToDeg=At=>At*180/Math.PI,rotate=At=>{const ot=radToDeg(Math.atan2(At[1],At[0]));return rebaseAngle(ot)},matrix2dParsers={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:At=>(Math.abs(At[0])+Math.abs(At[3]))/2,rotate,rotateZ:rotate,skewX:At=>radToDeg(Math.atan(At[1])),skewY:At=>radToDeg(Math.atan(At[2])),skew:At=>(Math.abs(At[1])+Math.abs(At[2]))/2},rebaseAngle=At=>(At=At%360,At<0&&(At+=360),At),rotateZ=rotate,scaleX=At=>Math.sqrt(At[0]*At[0]+At[1]*At[1]),scaleY=At=>Math.sqrt(At[4]*At[4]+At[5]*At[5]),matrix3dParsers={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX,scaleY,scale:At=>(scaleX(At)+scaleY(At))/2,rotateX:At=>rebaseAngle(radToDeg(Math.atan2(At[6],At[5]))),rotateY:At=>rebaseAngle(radToDeg(Math.atan2(-At[2],At[0]))),rotateZ,rotate:rotateZ,skewX:At=>radToDeg(Math.atan(At[4])),skewY:At=>radToDeg(Math.atan(At[1])),skew:At=>(Math.abs(At[1])+Math.abs(At[4]))/2};function defaultTransformValue(At){return At.includes("scale")?1:0}function parseValueFromTransform(At,ot){if(!At||At==="none")return defaultTransformValue(ot);const ut=At.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let pt,ft;if(ut)pt=matrix3dParsers,ft=ut;else{const kt=At.match(/^matrix\(([-\d.e\s,]+)\)$/u);pt=matrix2dParsers,ft=kt}if(!ft)return defaultTransformValue(ot);const ht=pt[ot],yt=ft[1].split(",").map(convertTransformToNumber);return typeof ht=="function"?ht(yt):yt[ht]}const readTransformValue=(At,ot)=>{const{transform:ut="none"}=getComputedStyle(At);return parseValueFromTransform(ut,ot)};function convertTransformToNumber(At){return parseFloat(At.trim())}const transformPropOrder=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],transformProps=new Set(transformPropOrder),isNumOrPxType=At=>At===number$2||At===px$1,transformKeys=new Set(["x","y","z"]),nonTranslationalTransformKeys=transformPropOrder.filter(At=>!transformKeys.has(At));function removeNonTranslationalTransform(At){const ot=[];return nonTranslationalTransformKeys.forEach(ut=>{const pt=At.getValue(ut);pt!==void 0&&(ot.push([ut,pt.get()]),pt.set(ut.startsWith("scale")?1:0))}),ot}const positionalValues={width:({x:At},{paddingLeft:ot="0",paddingRight:ut="0"})=>At.max-At.min-parseFloat(ot)-parseFloat(ut),height:({y:At},{paddingTop:ot="0",paddingBottom:ut="0"})=>At.max-At.min-parseFloat(ot)-parseFloat(ut),top:(At,{top:ot})=>parseFloat(ot),left:(At,{left:ot})=>parseFloat(ot),bottom:({y:At},{top:ot})=>parseFloat(ot)+(At.max-At.min),right:({x:At},{left:ot})=>parseFloat(ot)+(At.max-At.min),x:(At,{transform:ot})=>parseValueFromTransform(ot,"x"),y:(At,{transform:ot})=>parseValueFromTransform(ot,"y")};positionalValues.translateX=positionalValues.x;positionalValues.translateY=positionalValues.y;const toResolve=new Set;let isScheduled=!1,anyNeedsMeasurement=!1,isForced=!1;function measureAllKeyframes(){if(anyNeedsMeasurement){const At=Array.from(toResolve).filter(pt=>pt.needsMeasurement),ot=new Set(At.map(pt=>pt.element)),ut=new Map;ot.forEach(pt=>{const ft=removeNonTranslationalTransform(pt);ft.length&&(ut.set(pt,ft),pt.render())}),At.forEach(pt=>pt.measureInitialState()),ot.forEach(pt=>{pt.render();const ft=ut.get(pt);ft&&ft.forEach(([ht,yt])=>{pt.getValue(ht)?.set(yt)})}),At.forEach(pt=>pt.measureEndState()),At.forEach(pt=>{pt.suspendedScrollY!==void 0&&window.scrollTo(0,pt.suspendedScrollY)})}anyNeedsMeasurement=!1,isScheduled=!1,toResolve.forEach(At=>At.complete(isForced)),toResolve.clear()}function readAllKeyframes(){toResolve.forEach(At=>{At.readKeyframes(),At.needsMeasurement&&(anyNeedsMeasurement=!0)})}function flushKeyframeResolvers(){isForced=!0,readAllKeyframes(),measureAllKeyframes(),isForced=!1}class KeyframeResolver{constructor(ot,ut,pt,ft,ht,yt=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...ot],this.onComplete=ut,this.name=pt,this.motionValue=ft,this.element=ht,this.isAsync=yt}scheduleResolve(){this.state="scheduled",this.isAsync?(toResolve.add(this),isScheduled||(isScheduled=!0,frame.read(readAllKeyframes),frame.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:ot,name:ut,element:pt,motionValue:ft}=this;if(ot[0]===null){const ht=ft?.get(),yt=ot[ot.length-1];if(ht!==void 0)ot[0]=ht;else if(pt&&ut){const kt=pt.readValue(ut,yt);kt!=null&&(ot[0]=kt)}ot[0]===void 0&&(ot[0]=yt),ft&&ht===void 0&&ft.set(ot[0])}fillWildcards(ot)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(ot=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,ot),toResolve.delete(this)}cancel(){this.state==="scheduled"&&(toResolve.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const isCSSVar=At=>At.startsWith("--");function setStyle$1(At,ot,ut){isCSSVar(ot)?At.style.setProperty(ot,ut):At.style[ot]=ut}const supportsFlags={};function memoSupports(At,ot){const ut=memo$1(At);return()=>supportsFlags[ot]??ut()}const supportsScrollTimeline=memoSupports(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),supportsLinearEasing=memoSupports(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cubicBezierAsString=([At,ot,ut,pt])=>`cubic-bezier(${At}, ${ot}, ${ut}, ${pt})`,supportedWaapiEasing={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function mapEasingToNativeEasing(At,ot){if(At)return typeof At=="function"?supportsLinearEasing()?generateLinearEasing(At,ot):"ease-out":isBezierDefinition(At)?cubicBezierAsString(At):Array.isArray(At)?At.map(ut=>mapEasingToNativeEasing(ut,ot)||supportedWaapiEasing.easeOut):supportedWaapiEasing[At]}function startWaapiAnimation(At,ot,ut,{delay:pt=0,duration:ft=300,repeat:ht=0,repeatType:yt="loop",ease:kt="easeOut",times:Et}={},Ot=void 0){const _t={[ot]:ut};Et&&(_t.offset=Et);const Qt=mapEasingToNativeEasing(kt,ft);Array.isArray(Qt)&&(_t.easing=Qt);const vt={delay:pt,duration:ft,easing:Array.isArray(Qt)?"linear":Qt,fill:"both",iterations:ht+1,direction:yt==="reverse"?"alternate":"normal"};return Ot&&(vt.pseudoElement=Ot),At.animate(_t,vt)}function isGenerator(At){return typeof At=="function"&&"applyToOptions"in At}function applyGeneratorOptions({type:At,...ot}){return isGenerator(At)&&supportsLinearEasing()?At.applyToOptions(ot):(ot.duration??(ot.duration=300),ot.ease??(ot.ease="easeOut"),ot)}class NativeAnimation extends WithPromise{constructor(ot){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!ot)return;const{element:ut,name:pt,keyframes:ft,pseudoElement:ht,allowFlatten:yt=!1,finalKeyframe:kt,onComplete:Et}=ot;this.isPseudoElement=!!ht,this.allowFlatten=yt,this.options=ot,invariant(typeof ot.type!="string");const Ot=applyGeneratorOptions(ot);this.animation=startWaapiAnimation(ut,pt,ft,Ot,ht),Ot.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!ht){const _t=getFinalKeyframe$1(ft,this.options,kt,this.speed);this.updateMotionValue?this.updateMotionValue(_t):setStyle$1(ut,pt,_t),this.animation.cancel()}Et?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:ot}=this;ot==="idle"||ot==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const ot=this.options?.element;!this.isPseudoElement&&ot?.isConnected&&this.animation.commitStyles?.()}get duration(){const ot=this.animation.effect?.getComputedTiming?.().duration||0;return millisecondsToSeconds(Number(ot))}get iterationDuration(){const{delay:ot=0}=this.options||{};return this.duration+millisecondsToSeconds(ot)}get time(){return millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(ot){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=secondsToMilliseconds(ot)}get speed(){return this.animation.playbackRate}set speed(ot){ot<0&&(this.finishedTime=null),this.animation.playbackRate=ot}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(ot){this.manualStartTime=this.animation.startTime=ot}attachTimeline({timeline:ot,observe:ut}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,ot&&supportsScrollTimeline()?(this.animation.timeline=ot,noop$3):ut(this)}}const unsupportedEasingFunctions={anticipate,backInOut,circInOut};function isUnsupportedEase(At){return At in unsupportedEasingFunctions}function replaceStringEasing(At){typeof At.ease=="string"&&isUnsupportedEase(At.ease)&&(At.ease=unsupportedEasingFunctions[At.ease])}const sampleDelta=10;class NativeAnimationExtended extends NativeAnimation{constructor(ot){replaceStringEasing(ot),replaceTransitionType(ot),super(ot),ot.startTime!==void 0&&(this.startTime=ot.startTime),this.options=ot}updateMotionValue(ot){const{motionValue:ut,onUpdate:pt,onComplete:ft,element:ht,...yt}=this.options;if(!ut)return;if(ot!==void 0){ut.set(ot);return}const kt=new JSAnimation({...yt,autoplay:!1}),Et=Math.max(sampleDelta,time.now()-this.startTime),Ot=clamp$2(0,sampleDelta,Et-sampleDelta);ut.setWithVelocity(kt.sample(Math.max(0,Et-Ot)).value,kt.sample(Et).value,Ot),kt.stop()}}const isAnimatable=(At,ot)=>ot==="zIndex"?!1:!!(typeof At=="number"||Array.isArray(At)||typeof At=="string"&&(complex.test(At)||At==="0")&&!At.startsWith("url("));function hasKeyframesChanged(At){const ot=At[0];if(At.length===1)return!0;for(let ut=0;ut<At.length;ut++)if(At[ut]!==ot)return!0}function canAnimate(At,ot,ut,pt){const ft=At[0];if(ft===null)return!1;if(ot==="display"||ot==="visibility")return!0;const ht=At[At.length-1],yt=isAnimatable(ft,ot),kt=isAnimatable(ht,ot);return!yt||!kt?!1:hasKeyframesChanged(At)||(ut==="spring"||isGenerator(ut))&&pt}function makeAnimationInstant(At){At.duration=0,At.type="keyframes"}const acceleratedValues$1=new Set(["opacity","clipPath","filter","transform"]),supportsWaapi=memo$1(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function supportsBrowserAnimation(At){const{motionValue:ot,name:ut,repeatDelay:pt,repeatType:ft,damping:ht,type:yt}=At;if(!(ot?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:Et,transformTemplate:Ot}=ot.owner.getProps();return supportsWaapi()&&ut&&acceleratedValues$1.has(ut)&&(ut!=="transform"||!Ot)&&!Et&&!pt&&ft!=="mirror"&&ht!==0&&yt!=="inertia"}const MAX_RESOLVE_DELAY=40;class AsyncMotionValueAnimation extends WithPromise{constructor({autoplay:ot=!0,delay:ut=0,type:pt="keyframes",repeat:ft=0,repeatDelay:ht=0,repeatType:yt="loop",keyframes:kt,name:Et,motionValue:Ot,element:_t,...Qt}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=time.now();const vt={autoplay:ot,delay:ut,type:pt,repeat:ft,repeatDelay:ht,repeatType:yt,name:Et,motionValue:Ot,element:_t,...Qt},St=_t?.KeyframeResolver||KeyframeResolver;this.keyframeResolver=new St(kt,($t,Pt,Nt)=>this.onKeyframesResolved($t,Pt,vt,!Nt),Et,Ot,_t),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(ot,ut,pt,ft){this.keyframeResolver=void 0;const{name:ht,type:yt,velocity:kt,delay:Et,isHandoff:Ot,onUpdate:_t}=pt;this.resolvedAt=time.now(),canAnimate(ot,ht,yt,kt)||((MotionGlobalConfig.instantAnimations||!Et)&&_t?.(getFinalKeyframe$1(ot,pt,ut)),ot[0]=ot[ot.length-1],makeAnimationInstant(pt),pt.repeat=0);const vt={startTime:ft?this.resolvedAt?this.resolvedAt-this.createdAt>MAX_RESOLVE_DELAY?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:ut,...pt,keyframes:ot},St=!Ot&&supportsBrowserAnimation(vt),$t=vt.motionValue?.owner?.current,Pt=St?new NativeAnimationExtended({...vt,element:$t}):new JSAnimation(vt);Pt.finished.then(()=>{this.notifyFinished()}).catch(noop$3),this.pendingTimeline&&(this.stopTimeline=Pt.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=Pt}get finished(){return this._animation?this.animation.finished:this._finished}then(ot,ut){return this.finished.finally(ot).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),flushKeyframeResolvers()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(ot){this.animation.time=ot}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(ot){this.animation.speed=ot}get startTime(){return this.animation.startTime}attachTimeline(ot){return this._animation?this.stopTimeline=this.animation.attachTimeline(ot):this.pendingTimeline=ot,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class GroupAnimation{constructor(ot){this.stop=()=>this.runAll("stop"),this.animations=ot.filter(Boolean)}get finished(){return Promise.all(this.animations.map(ot=>ot.finished))}getAll(ot){return this.animations[0][ot]}setAll(ot,ut){for(let pt=0;pt<this.animations.length;pt++)this.animations[pt][ot]=ut}attachTimeline(ot){const ut=this.animations.map(pt=>pt.attachTimeline(ot));return()=>{ut.forEach((pt,ft)=>{pt&&pt(),this.animations[ft].stop()})}}get time(){return this.getAll("time")}set time(ot){this.setAll("time",ot)}get speed(){return this.getAll("speed")}set speed(ot){this.setAll("speed",ot)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return getMax(this.animations,"duration")}get iterationDuration(){return getMax(this.animations,"iterationDuration")}runAll(ot){this.animations.forEach(ut=>ut[ot]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function getMax(At,ot){let ut=0;for(let pt=0;pt<At.length;pt++){const ft=At[pt][ot];ft!==null&&ft>ut&&(ut=ft)}return ut}class GroupAnimationWithThen extends GroupAnimation{then(ot,ut){return this.finished.finally(ot).then(()=>{})}}function calcChildStagger(At,ot,ut,pt=0,ft=1){const ht=Array.from(At).sort((Ot,_t)=>Ot.sortNodePosition(_t)).indexOf(ot),yt=At.size,kt=(yt-1)*pt;return typeof ut=="function"?ut(ht,yt):ft===1?ht*pt:kt-ht*pt}const splitCSSVariableRegex=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function parseCSSVariable(At){const ot=splitCSSVariableRegex.exec(At);if(!ot)return[,];const[,ut,pt,ft]=ot;return[`--${ut??pt}`,ft]}function getVariableValue(At,ot,ut=1){const[pt,ft]=parseCSSVariable(At);if(!pt)return;const ht=window.getComputedStyle(ot).getPropertyValue(pt);if(ht){const yt=ht.trim();return isNumericalString(yt)?parseFloat(yt):yt}return isCSSVariableToken(ft)?getVariableValue(ft,ot,ut+1):ft}const underDampedSpring={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=At=>({type:"spring",stiffness:550,damping:At===0?2*Math.sqrt(550):30,restSpeed:10}),keyframesTransition={type:"keyframes",duration:.8},ease={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(At,{keyframes:ot})=>ot.length>2?keyframesTransition:transformProps.has(At)?At.startsWith("scale")?criticallyDampedSpring(ot[1]):underDampedSpring:ease,isNotNull=At=>At!==null;function getFinalKeyframe(At,{repeat:ot,repeatType:ut="loop"},pt){const ft=At.filter(isNotNull),ht=ot&&ut!=="loop"&&ot%2===1?0:ft.length-1;return ft[ht]}function resolveTransition(At,ot){if(At?.inherit&&ot){const{inherit:ut,...pt}=At;return{...ot,...pt}}return At}function getValueTransition$1(At,ot){const ut=At?.[ot]??At?.default??At;return ut!==At?resolveTransition(ut,At):ut}function isTransitionDefined({when:At,delay:ot,delayChildren:ut,staggerChildren:pt,staggerDirection:ft,repeat:ht,repeatType:yt,repeatDelay:kt,from:Et,elapsed:Ot,..._t}){return!!Object.keys(_t).length}const animateMotionValue=(At,ot,ut,pt={},ft,ht)=>yt=>{const kt=getValueTransition$1(pt,At)||{},Et=kt.delay||pt.delay||0;let{elapsed:Ot=0}=pt;Ot=Ot-secondsToMilliseconds(Et);const _t={keyframes:Array.isArray(ut)?ut:[null,ut],ease:"easeOut",velocity:ot.getVelocity(),...kt,delay:-Ot,onUpdate:vt=>{ot.set(vt),kt.onUpdate&&kt.onUpdate(vt)},onComplete:()=>{yt(),kt.onComplete&&kt.onComplete()},name:At,motionValue:ot,element:ht?void 0:ft};isTransitionDefined(kt)||Object.assign(_t,getDefaultTransition(At,_t)),_t.duration&&(_t.duration=secondsToMilliseconds(_t.duration)),_t.repeatDelay&&(_t.repeatDelay=secondsToMilliseconds(_t.repeatDelay)),_t.from!==void 0&&(_t.keyframes[0]=_t.from);let Qt=!1;if((_t.type===!1||_t.duration===0&&!_t.repeatDelay)&&(makeAnimationInstant(_t),_t.delay===0&&(Qt=!0)),(MotionGlobalConfig.instantAnimations||MotionGlobalConfig.skipAnimations||ft?.shouldSkipAnimations)&&(Qt=!0,makeAnimationInstant(_t),_t.delay=0),_t.allowFlatten=!kt.type&&!kt.ease,Qt&&!ht&&ot.get()!==void 0){const vt=getFinalKeyframe(_t.keyframes,kt);if(vt!==void 0){frame.update(()=>{_t.onUpdate(vt),_t.onComplete()});return}}return kt.isSync?new JSAnimation(_t):new AsyncMotionValueAnimation(_t)};function getValueState(At){const ot=[{},{}];return At?.values.forEach((ut,pt)=>{ot[0][pt]=ut.get(),ot[1][pt]=ut.getVelocity()}),ot}function resolveVariantFromProps(At,ot,ut,pt){if(typeof ot=="function"){const[ft,ht]=getValueState(pt);ot=ot(ut!==void 0?ut:At.custom,ft,ht)}if(typeof ot=="string"&&(ot=At.variants&&At.variants[ot]),typeof ot=="function"){const[ft,ht]=getValueState(pt);ot=ot(ut!==void 0?ut:At.custom,ft,ht)}return ot}function resolveVariant(At,ot,ut){const pt=At.getProps();return resolveVariantFromProps(pt,ot,ut!==void 0?ut:pt.custom,At)}const positionalKeys=new Set(["width","height","top","left","right","bottom",...transformPropOrder]),MAX_VELOCITY_DELTA=30,isFloat=At=>!isNaN(parseFloat(At));class MotionValue{constructor(ot,ut={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=pt=>{const ft=time.now();if(this.updatedAt!==ft&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(pt),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const ht of this.dependents)ht.dirty()},this.hasAnimated=!1,this.setCurrent(ot),this.owner=ut.owner}setCurrent(ot){this.current=ot,this.updatedAt=time.now(),this.canTrackVelocity===null&&ot!==void 0&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(ot=this.current){this.prevFrameValue=ot,this.prevUpdatedAt=this.updatedAt}onChange(ot){return this.on("change",ot)}on(ot,ut){this.events[ot]||(this.events[ot]=new SubscriptionManager);const pt=this.events[ot].add(ut);return ot==="change"?()=>{pt(),frame.read(()=>{this.events.change.getSize()||this.stop()})}:pt}clearListeners(){for(const ot in this.events)this.events[ot].clear()}attach(ot,ut){this.passiveEffect=ot,this.stopPassiveEffect=ut}set(ot){this.passiveEffect?this.passiveEffect(ot,this.updateAndNotify):this.updateAndNotify(ot)}setWithVelocity(ot,ut,pt){this.set(ut),this.prev=void 0,this.prevFrameValue=ot,this.prevUpdatedAt=this.updatedAt-pt}jump(ot,ut=!0){this.updateAndNotify(ot),this.prev=ot,this.prevUpdatedAt=this.prevFrameValue=void 0,ut&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(ot){this.dependents||(this.dependents=new Set),this.dependents.add(ot)}removeDependent(ot){this.dependents&&this.dependents.delete(ot)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const ot=time.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||ot-this.updatedAt>MAX_VELOCITY_DELTA)return 0;const ut=Math.min(this.updatedAt-this.prevUpdatedAt,MAX_VELOCITY_DELTA);return velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),ut)}start(ot){return this.stop(),new Promise(ut=>{this.hasAnimated=!0,this.animation=ot(ut),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function motionValue(At,ot){return new MotionValue(At,ot)}const isKeyframesTarget=At=>Array.isArray(At);function setMotionValue(At,ot,ut){At.hasValue(ot)?At.getValue(ot).set(ut):At.addValue(ot,motionValue(ut))}function resolveFinalValueInKeyframes(At){return isKeyframesTarget(At)?At[At.length-1]||0:At}function setTarget(At,ot){const ut=resolveVariant(At,ot);let{transitionEnd:pt={},transition:ft={},...ht}=ut||{};ht={...ht,...pt};for(const yt in ht){const kt=resolveFinalValueInKeyframes(ht[yt]);setMotionValue(At,yt,kt)}}const isMotionValue=At=>!!(At&&At.getVelocity);function isWillChangeMotionValue(At){return!!(isMotionValue(At)&&At.add)}function addValueToWillChange(At,ot){const ut=At.getValue("willChange");if(isWillChangeMotionValue(ut))return ut.add(ot);if(!ut&&MotionGlobalConfig.WillChange){const pt=new MotionGlobalConfig.WillChange("auto");At.addValue("willChange",pt),pt.add(ot)}}function camelToDash(At){return At.replace(/([A-Z])/g,ot=>`-${ot.toLowerCase()}`)}const optimizedAppearDataId="framerAppearId",optimizedAppearDataAttribute="data-"+camelToDash(optimizedAppearDataId);function getOptimisedAppearId(At){return At.props[optimizedAppearDataAttribute]}function shouldBlockAnimation({protectedKeys:At,needsAnimating:ot},ut){const pt=At.hasOwnProperty(ut)&&ot[ut]!==!0;return ot[ut]=!1,pt}function animateTarget(At,ot,{delay:ut=0,transitionOverride:pt,type:ft}={}){let{transition:ht,transitionEnd:yt,...kt}=ot;const Et=At.getDefaultTransition();ht=ht?resolveTransition(ht,Et):Et;const Ot=ht?.reduceMotion;pt&&(ht=pt);const _t=[],Qt=ft&&At.animationState&&At.animationState.getState()[ft];for(const vt in kt){const St=At.getValue(vt,At.latestValues[vt]??null),$t=kt[vt];if($t===void 0||Qt&&shouldBlockAnimation(Qt,vt))continue;const Pt={delay:ut,...getValueTransition$1(ht||{},vt)},Nt=St.get();if(Nt!==void 0&&!St.isAnimating&&!Array.isArray($t)&&$t===Nt&&!Pt.velocity)continue;let Lt=!1;if(window.MotionHandoffAnimation){const Zt=getOptimisedAppearId(At);if(Zt){const Ht=window.MotionHandoffAnimation(Zt,vt,frame);Ht!==null&&(Pt.startTime=Ht,Lt=!0)}}addValueToWillChange(At,vt);const qt=Ot??At.shouldReduceMotion;St.start(animateMotionValue(vt,St,$t,qt&&positionalKeys.has(vt)?{type:!1}:Pt,At,Lt));const jt=St.animation;jt&&_t.push(jt)}if(yt){const vt=()=>frame.update(()=>{yt&&setTarget(At,yt)});_t.length?Promise.all(_t).then(vt):vt()}return _t}function animateVariant(At,ot,ut={}){const pt=resolveVariant(At,ot,ut.type==="exit"?At.presenceContext?.custom:void 0);let{transition:ft=At.getDefaultTransition()||{}}=pt||{};ut.transitionOverride&&(ft=ut.transitionOverride);const ht=pt?()=>Promise.all(animateTarget(At,pt,ut)):()=>Promise.resolve(),yt=At.variantChildren&&At.variantChildren.size?(Et=0)=>{const{delayChildren:Ot=0,staggerChildren:_t,staggerDirection:Qt}=ft;return animateChildren(At,ot,Et,Ot,_t,Qt,ut)}:()=>Promise.resolve(),{when:kt}=ft;if(kt){const[Et,Ot]=kt==="beforeChildren"?[ht,yt]:[yt,ht];return Et().then(()=>Ot())}else return Promise.all([ht(),yt(ut.delay)])}function animateChildren(At,ot,ut=0,pt=0,ft=0,ht=1,yt){const kt=[];for(const Et of At.variantChildren)Et.notify("AnimationStart",ot),kt.push(animateVariant(Et,ot,{...yt,delay:ut+(typeof pt=="function"?0:pt)+calcChildStagger(At.variantChildren,Et,pt,ft,ht)}).then(()=>Et.notify("AnimationComplete",ot)));return Promise.all(kt)}function animateVisualElement(At,ot,ut={}){At.notify("AnimationStart",ot);let pt;if(Array.isArray(ot)){const ft=ot.map(ht=>animateVariant(At,ht,ut));pt=Promise.all(ft)}else if(typeof ot=="string")pt=animateVariant(At,ot,ut);else{const ft=typeof ot=="function"?resolveVariant(At,ot,ut.custom):ot;pt=Promise.all(animateTarget(At,ft,ut))}return pt.then(()=>{At.notify("AnimationComplete",ot)})}const auto={test:At=>At==="auto",parse:At=>At},testValueType=At=>ot=>ot.test(At),dimensionValueTypes=[number$2,px$1,percent$2,degrees,vw,vh,auto],findDimensionValueType=At=>dimensionValueTypes.find(testValueType(At));function isNone(At){return typeof At=="number"?At===0:At!==null?At==="none"||At==="0"||isZeroValueString(At):!0}const maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(At){const[ot,ut]=At.slice(0,-1).split("(");if(ot==="drop-shadow")return At;const[pt]=ut.match(floatRegex)||[];if(!pt)return At;const ft=ut.replace(pt,"");let ht=maxDefaults.has(ot)?1:0;return pt!==ut&&(ht*=100),ot+"("+ht+ft+")"}const functionRegex=/\b([a-z-]*)\(.*?\)/gu,filter$1={...complex,getAnimatableNone:At=>{const ot=At.match(functionRegex);return ot?ot.map(applyDefaultFilter).join(" "):At}},mask={...complex,getAnimatableNone:At=>{const ot=complex.parse(At);return complex.createTransformer(At)(ot.map(pt=>typeof pt=="number"?0:typeof pt=="object"?{...pt,alpha:1}:pt))}},int={...number$2,transform:Math.round},transformValueTypes={rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px$1,translateX:px$1,translateY:px$1,translateZ:px$1,x:px$1,y:px$1,z:px$1,perspective:px$1,transformPerspective:px$1,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px$1},numberValueTypes={borderWidth:px$1,borderTopWidth:px$1,borderRightWidth:px$1,borderBottomWidth:px$1,borderLeftWidth:px$1,borderRadius:px$1,borderTopLeftRadius:px$1,borderTopRightRadius:px$1,borderBottomRightRadius:px$1,borderBottomLeftRadius:px$1,width:px$1,maxWidth:px$1,height:px$1,maxHeight:px$1,top:px$1,right:px$1,bottom:px$1,left:px$1,inset:px$1,insetBlock:px$1,insetBlockStart:px$1,insetBlockEnd:px$1,insetInline:px$1,insetInlineStart:px$1,insetInlineEnd:px$1,padding:px$1,paddingTop:px$1,paddingRight:px$1,paddingBottom:px$1,paddingLeft:px$1,paddingBlock:px$1,paddingBlockStart:px$1,paddingBlockEnd:px$1,paddingInline:px$1,paddingInlineStart:px$1,paddingInlineEnd:px$1,margin:px$1,marginTop:px$1,marginRight:px$1,marginBottom:px$1,marginLeft:px$1,marginBlock:px$1,marginBlockStart:px$1,marginBlockEnd:px$1,marginInline:px$1,marginInlineStart:px$1,marginInlineEnd:px$1,fontSize:px$1,backgroundPositionX:px$1,backgroundPositionY:px$1,...transformValueTypes,zIndex:int,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},defaultValueTypes={...numberValueTypes,color:color$1,backgroundColor:color$1,outlineColor:color$1,fill:color$1,stroke:color$1,borderColor:color$1,borderTopColor:color$1,borderRightColor:color$1,borderBottomColor:color$1,borderLeftColor:color$1,filter:filter$1,WebkitFilter:filter$1,mask,WebkitMask:mask},getDefaultValueType=At=>defaultValueTypes[At],customTypes=new Set([filter$1,mask]);function getAnimatableNone(At,ot){let ut=getDefaultValueType(At);return customTypes.has(ut)||(ut=complex),ut.getAnimatableNone?ut.getAnimatableNone(ot):void 0}const invalidTemplates=new Set(["auto","none","0"]);function makeNoneKeyframesAnimatable(At,ot,ut){let pt=0,ft;for(;pt<At.length&&!ft;){const ht=At[pt];typeof ht=="string"&&!invalidTemplates.has(ht)&&analyseComplexValue(ht).values.length&&(ft=At[pt]),pt++}if(ft&&ut)for(const ht of ot)At[ht]=getAnimatableNone(ut,ft)}class DOMKeyframesResolver extends KeyframeResolver{constructor(ot,ut,pt,ft,ht){super(ot,ut,pt,ft,ht,!0)}readKeyframes(){const{unresolvedKeyframes:ot,element:ut,name:pt}=this;if(!ut||!ut.current)return;super.readKeyframes();for(let _t=0;_t<ot.length;_t++){let Qt=ot[_t];if(typeof Qt=="string"&&(Qt=Qt.trim(),isCSSVariableToken(Qt))){const vt=getVariableValue(Qt,ut.current);vt!==void 0&&(ot[_t]=vt),_t===ot.length-1&&(this.finalKeyframe=Qt)}}if(this.resolveNoneKeyframes(),!positionalKeys.has(pt)||ot.length!==2)return;const[ft,ht]=ot,yt=findDimensionValueType(ft),kt=findDimensionValueType(ht),Et=containsCSSVariable(ft),Ot=containsCSSVariable(ht);if(Et!==Ot&&positionalValues[pt]){this.needsMeasurement=!0;return}if(yt!==kt)if(isNumOrPxType(yt)&&isNumOrPxType(kt))for(let _t=0;_t<ot.length;_t++){const Qt=ot[_t];typeof Qt=="string"&&(ot[_t]=parseFloat(Qt))}else positionalValues[pt]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:ot,name:ut}=this,pt=[];for(let ft=0;ft<ot.length;ft++)(ot[ft]===null||isNone(ot[ft]))&&pt.push(ft);pt.length&&makeNoneKeyframesAnimatable(ot,pt,ut)}measureInitialState(){const{element:ot,unresolvedKeyframes:ut,name:pt}=this;if(!ot||!ot.current)return;pt==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=positionalValues[pt](ot.measureViewportBox(),window.getComputedStyle(ot.current)),ut[0]=this.measuredOrigin;const ft=ut[ut.length-1];ft!==void 0&&ot.getValue(pt,ft).jump(ft,!1)}measureEndState(){const{element:ot,name:ut,unresolvedKeyframes:pt}=this;if(!ot||!ot.current)return;const ft=ot.getValue(ut);ft&&ft.jump(this.measuredOrigin,!1);const ht=pt.length-1,yt=pt[ht];pt[ht]=positionalValues[ut](ot.measureViewportBox(),window.getComputedStyle(ot.current)),yt!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=yt),this.removedTransforms?.length&&this.removedTransforms.forEach(([kt,Et])=>{ot.getValue(kt).set(Et)}),this.resolveNoneKeyframes()}}const acceleratedValues=new Set(["opacity","clipPath","filter","transform"]);function resolveElements(At,ot,ut){if(At==null)return[];if(At instanceof EventTarget)return[At];if(typeof At=="string"){let pt=document;ot&&(pt=ot.current);const ft=ut?.[At]??pt.querySelectorAll(At);return ft?Array.from(ft):[]}return Array.from(At).filter(pt=>pt!=null)}const getValueAsType=(At,ot)=>ot&&typeof At=="number"?ot.transform(At):At;function isHTMLElement$2(At){return isObject$1(At)&&"offsetHeight"in At}const{schedule:microtask}=createRenderBatcher(queueMicrotask,!1),isDragging={x:!1,y:!1};function isDragActive(){return isDragging.x||isDragging.y}function setDragLock(At){return At==="x"||At==="y"?isDragging[At]?null:(isDragging[At]=!0,()=>{isDragging[At]=!1}):isDragging.x||isDragging.y?null:(isDragging.x=isDragging.y=!0,()=>{isDragging.x=isDragging.y=!1})}function setupGesture(At,ot){const ut=resolveElements(At),pt=new AbortController,ft={passive:!0,...ot,signal:pt.signal};return[ut,ft,()=>pt.abort()]}function isValidHover(At){return!(At.pointerType==="touch"||isDragActive())}function hover(At,ot,ut={}){const[pt,ft,ht]=setupGesture(At,ut);return pt.forEach(yt=>{let kt=!1,Et=!1,Ot;const _t=()=>{yt.removeEventListener("pointerleave",$t)},Qt=Nt=>{Ot&&(Ot(Nt),Ot=void 0),_t()},vt=Nt=>{kt=!1,window.removeEventListener("pointerup",vt),window.removeEventListener("pointercancel",vt),Et&&(Et=!1,Qt(Nt))},St=()=>{kt=!0,window.addEventListener("pointerup",vt,ft),window.addEventListener("pointercancel",vt,ft)},$t=Nt=>{if(Nt.pointerType!=="touch"){if(kt){Et=!0;return}Qt(Nt)}},Pt=Nt=>{if(!isValidHover(Nt))return;Et=!1;const Lt=ot(yt,Nt);typeof Lt=="function"&&(Ot=Lt,yt.addEventListener("pointerleave",$t,ft))};yt.addEventListener("pointerenter",Pt,ft),yt.addEventListener("pointerdown",St,ft)}),ht}const isNodeOrChild=(At,ot)=>ot?At===ot?!0:isNodeOrChild(At,ot.parentElement):!1,isPrimaryPointer=At=>At.pointerType==="mouse"?typeof At.button!="number"||At.button<=0:At.isPrimary!==!1,keyboardAccessibleElements=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function isElementKeyboardAccessible(At){return keyboardAccessibleElements.has(At.tagName)||At.isContentEditable===!0}const textInputElements=new Set(["INPUT","SELECT","TEXTAREA"]);function isElementTextInput(At){return textInputElements.has(At.tagName)||At.isContentEditable===!0}const isPressing=new WeakSet;function filterEvents(At){return ot=>{ot.key==="Enter"&&At(ot)}}function firePointerEvent(At,ot){At.dispatchEvent(new PointerEvent("pointer"+ot,{isPrimary:!0,bubbles:!0}))}const enableKeyboardPress=(At,ot)=>{const ut=At.currentTarget;if(!ut)return;const pt=filterEvents(()=>{if(isPressing.has(ut))return;firePointerEvent(ut,"down");const ft=filterEvents(()=>{firePointerEvent(ut,"up")}),ht=()=>firePointerEvent(ut,"cancel");ut.addEventListener("keyup",ft,ot),ut.addEventListener("blur",ht,ot)});ut.addEventListener("keydown",pt,ot),ut.addEventListener("blur",()=>ut.removeEventListener("keydown",pt),ot)};function isValidPressEvent(At){return isPrimaryPointer(At)&&!isDragActive()}const claimedPointerDownEvents=new WeakSet;function press(At,ot,ut={}){const[pt,ft,ht]=setupGesture(At,ut),yt=kt=>{const Et=kt.currentTarget;if(!isValidPressEvent(kt)||claimedPointerDownEvents.has(kt))return;isPressing.add(Et),ut.stopPropagation&&claimedPointerDownEvents.add(kt);const Ot=ot(Et,kt),_t=(St,$t)=>{window.removeEventListener("pointerup",Qt),window.removeEventListener("pointercancel",vt),isPressing.has(Et)&&isPressing.delete(Et),isValidPressEvent(St)&&typeof Ot=="function"&&Ot(St,{success:$t})},Qt=St=>{_t(St,Et===window||Et===document||ut.useGlobalTarget||isNodeOrChild(Et,St.target))},vt=St=>{_t(St,!1)};window.addEventListener("pointerup",Qt,ft),window.addEventListener("pointercancel",vt,ft)};return pt.forEach(kt=>{(ut.useGlobalTarget?window:kt).addEventListener("pointerdown",yt,ft),isHTMLElement$2(kt)&&(kt.addEventListener("focus",Ot=>enableKeyboardPress(Ot,ft)),!isElementKeyboardAccessible(kt)&&!kt.hasAttribute("tabindex")&&(kt.tabIndex=0))}),ht}function isSVGElement$2(At){return isObject$1(At)&&"ownerSVGElement"in At}const resizeHandlers=new WeakMap;let observer;const getSize=(At,ot,ut)=>(pt,ft)=>ft&&ft[0]?ft[0][At+"Size"]:isSVGElement$2(pt)&&"getBBox"in pt?pt.getBBox()[ot]:pt[ut],getWidth=getSize("inline","width","offsetWidth"),getHeight=getSize("block","height","offsetHeight");function notifyTarget({target:At,borderBoxSize:ot}){resizeHandlers.get(At)?.forEach(ut=>{ut(At,{get width(){return getWidth(At,ot)},get height(){return getHeight(At,ot)}})})}function notifyAll(At){At.forEach(notifyTarget)}function createResizeObserver(){typeof ResizeObserver>"u"||(observer=new ResizeObserver(notifyAll))}function resizeElement(At,ot){observer||createResizeObserver();const ut=resolveElements(At);return ut.forEach(pt=>{let ft=resizeHandlers.get(pt);ft||(ft=new Set,resizeHandlers.set(pt,ft)),ft.add(ot),observer?.observe(pt)}),()=>{ut.forEach(pt=>{const ft=resizeHandlers.get(pt);ft?.delete(ot),ft?.size||observer?.unobserve(pt)})}}const windowCallbacks=new Set;let windowResizeHandler;function createWindowResizeHandler(){windowResizeHandler=()=>{const At={get width(){return window.innerWidth},get height(){return window.innerHeight}};windowCallbacks.forEach(ot=>ot(At))},window.addEventListener("resize",windowResizeHandler)}function resizeWindow(At){return windowCallbacks.add(At),windowResizeHandler||createWindowResizeHandler(),()=>{windowCallbacks.delete(At),!windowCallbacks.size&&typeof windowResizeHandler=="function"&&(window.removeEventListener("resize",windowResizeHandler),windowResizeHandler=void 0)}}function resize(At,ot){return typeof At=="function"?resizeWindow(At):resizeElement(At,ot)}function isSVGSVGElement(At){return isSVGElement$2(At)&&At.tagName==="svg"}const valueTypes=[...dimensionValueTypes,color$1,complex],findValueType=At=>valueTypes.find(testValueType(At)),createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()}),visualElementStore=new WeakMap;function isAnimationControls(At){return At!==null&&typeof At=="object"&&typeof At.start=="function"}function isVariantLabel(At){return typeof At=="string"||Array.isArray(At)}const variantPriorityOrder=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],variantProps=["initial",...variantPriorityOrder];function isControllingVariants(At){return isAnimationControls(At.animate)||variantProps.some(ot=>isVariantLabel(At[ot]))}function isVariantNode(At){return!!(isControllingVariants(At)||At.variants)}function updateMotionValuesFromProps(At,ot,ut){for(const pt in ot){const ft=ot[pt],ht=ut[pt];if(isMotionValue(ft))At.addValue(pt,ft);else if(isMotionValue(ht))At.addValue(pt,motionValue(ft,{owner:At}));else if(ht!==ft)if(At.hasValue(pt)){const yt=At.getValue(pt);yt.liveStyle===!0?yt.jump(ft):yt.hasAnimated||yt.set(ft)}else{const yt=At.getStaticValue(pt);At.addValue(pt,motionValue(yt!==void 0?yt:ft,{owner:At}))}}for(const pt in ut)ot[pt]===void 0&&At.removeValue(pt);return ot}const prefersReducedMotion={current:null},hasReducedMotionListener={current:!1},isBrowser=typeof window<"u";function initPrefersReducedMotion(){if(hasReducedMotionListener.current=!0,!!isBrowser)if(window.matchMedia){const At=window.matchMedia("(prefers-reduced-motion)"),ot=()=>prefersReducedMotion.current=At.matches;At.addEventListener("change",ot),ot()}else prefersReducedMotion.current=!1}const propEventHandlers=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let featureDefinitions={};function setFeatureDefinitions(At){featureDefinitions=At}function getFeatureDefinitions(){return featureDefinitions}class VisualElement{scrapeMotionValuesFromProps(ot,ut,pt){return{}}constructor({parent:ot,props:ut,presenceContext:pt,reducedMotionConfig:ft,skipAnimations:ht,blockInitialAnimation:yt,visualState:kt},Et={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const St=time.now();this.renderScheduledAt<St&&(this.renderScheduledAt=St,frame.render(this.render,!1,!0))};const{latestValues:Ot,renderState:_t}=kt;this.latestValues=Ot,this.baseTarget={...Ot},this.initialValues=ut.initial?{...Ot}:{},this.renderState=_t,this.parent=ot,this.props=ut,this.presenceContext=pt,this.depth=ot?ot.depth+1:0,this.reducedMotionConfig=ft,this.skipAnimationsConfig=ht,this.options=Et,this.blockInitialAnimation=!!yt,this.isControllingVariants=isControllingVariants(ut),this.isVariantNode=isVariantNode(ut),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(ot&&ot.current);const{willChange:Qt,...vt}=this.scrapeMotionValuesFromProps(ut,{},this);for(const St in vt){const $t=vt[St];Ot[St]!==void 0&&isMotionValue($t)&&$t.set(Ot[St])}}mount(ot){if(this.hasBeenMounted)for(const ut in this.initialValues)this.values.get(ut)?.jump(this.initialValues[ut]),this.latestValues[ut]=this.initialValues[ut];this.current=ot,visualElementStore.set(ot,this),this.projection&&!this.projection.instance&&this.projection.mount(ot),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((ut,pt)=>this.bindToMotionValue(pt,ut)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(hasReducedMotionListener.current||initPrefersReducedMotion(),this.shouldReduceMotion=prefersReducedMotion.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),cancelFrame(this.notifyUpdate),cancelFrame(this.render),this.valueSubscriptions.forEach(ot=>ot()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const ot in this.events)this.events[ot].clear();for(const ot in this.features){const ut=this.features[ot];ut&&(ut.unmount(),ut.isMounted=!1)}this.current=null}addChild(ot){this.children.add(ot),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(ot)}removeChild(ot){this.children.delete(ot),this.enteringChildren&&this.enteringChildren.delete(ot)}bindToMotionValue(ot,ut){if(this.valueSubscriptions.has(ot)&&this.valueSubscriptions.get(ot)(),ut.accelerate&&acceleratedValues.has(ot)&&this.current instanceof HTMLElement){const{factory:yt,keyframes:kt,times:Et,ease:Ot,duration:_t}=ut.accelerate,Qt=new NativeAnimation({element:this.current,name:ot,keyframes:kt,times:Et,ease:Ot,duration:secondsToMilliseconds(_t)}),vt=yt(Qt);this.valueSubscriptions.set(ot,()=>{vt(),Qt.cancel()});return}const pt=transformProps.has(ot);pt&&this.onBindTransform&&this.onBindTransform();const ft=ut.on("change",yt=>{this.latestValues[ot]=yt,this.props.onUpdate&&frame.preRender(this.notifyUpdate),pt&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let ht;typeof window<"u"&&window.MotionCheckAppearSync&&(ht=window.MotionCheckAppearSync(this,ot,ut)),this.valueSubscriptions.set(ot,()=>{ft(),ht&&ht(),ut.owner&&ut.stop()})}sortNodePosition(ot){return!this.current||!this.sortInstanceNodePosition||this.type!==ot.type?0:this.sortInstanceNodePosition(this.current,ot.current)}updateFeatures(){let ot="animation";for(ot in featureDefinitions){const ut=featureDefinitions[ot];if(!ut)continue;const{isEnabled:pt,Feature:ft}=ut;if(!this.features[ot]&&ft&&pt(this.props)&&(this.features[ot]=new ft(this)),this.features[ot]){const ht=this.features[ot];ht.isMounted?ht.update():(ht.mount(),ht.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(ot){return this.latestValues[ot]}setStaticValue(ot,ut){this.latestValues[ot]=ut}update(ot,ut){(ot.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=ot,this.prevPresenceContext=this.presenceContext,this.presenceContext=ut;for(let pt=0;pt<propEventHandlers.length;pt++){const ft=propEventHandlers[pt];this.propEventSubscriptions[ft]&&(this.propEventSubscriptions[ft](),delete this.propEventSubscriptions[ft]);const ht="on"+ft,yt=ot[ht];yt&&(this.propEventSubscriptions[ft]=this.on(ft,yt))}this.prevMotionValues=updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(ot,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(ot){return this.props.variants?this.props.variants[ot]: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(ot){const ut=this.getClosestVariantNode();if(ut)return ut.variantChildren&&ut.variantChildren.add(ot),()=>ut.variantChildren.delete(ot)}addValue(ot,ut){const pt=this.values.get(ot);ut!==pt&&(pt&&this.removeValue(ot),this.bindToMotionValue(ot,ut),this.values.set(ot,ut),this.latestValues[ot]=ut.get())}removeValue(ot){this.values.delete(ot);const ut=this.valueSubscriptions.get(ot);ut&&(ut(),this.valueSubscriptions.delete(ot)),delete this.latestValues[ot],this.removeValueFromRenderState(ot,this.renderState)}hasValue(ot){return this.values.has(ot)}getValue(ot,ut){if(this.props.values&&this.props.values[ot])return this.props.values[ot];let pt=this.values.get(ot);return pt===void 0&&ut!==void 0&&(pt=motionValue(ut===null?void 0:ut,{owner:this}),this.addValue(ot,pt)),pt}readValue(ot,ut){let pt=this.latestValues[ot]!==void 0||!this.current?this.latestValues[ot]:this.getBaseTargetFromProps(this.props,ot)??this.readValueFromInstance(this.current,ot,this.options);return pt!=null&&(typeof pt=="string"&&(isNumericalString(pt)||isZeroValueString(pt))?pt=parseFloat(pt):!findValueType(pt)&&complex.test(ut)&&(pt=getAnimatableNone(ot,ut)),this.setBaseTarget(ot,isMotionValue(pt)?pt.get():pt)),isMotionValue(pt)?pt.get():pt}setBaseTarget(ot,ut){this.baseTarget[ot]=ut}getBaseTarget(ot){const{initial:ut}=this.props;let pt;if(typeof ut=="string"||typeof ut=="object"){const ht=resolveVariantFromProps(this.props,ut,this.presenceContext?.custom);ht&&(pt=ht[ot])}if(ut&&pt!==void 0)return pt;const ft=this.getBaseTargetFromProps(this.props,ot);return ft!==void 0&&!isMotionValue(ft)?ft:this.initialValues[ot]!==void 0&&pt===void 0?void 0:this.baseTarget[ot]}on(ot,ut){return this.events[ot]||(this.events[ot]=new SubscriptionManager),this.events[ot].add(ut)}notify(ot,...ut){this.events[ot]&&this.events[ot].notify(...ut)}scheduleRenderMicrotask(){microtask.render(this.render)}}class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(ot,ut){return ot.compareDocumentPosition(ut)&2?1:-1}getBaseTargetFromProps(ot,ut){const pt=ot.style;return pt?pt[ut]:void 0}removeValueFromRenderState(ot,{vars:ut,style:pt}){delete ut[ot],delete pt[ot]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:ot}=this.props;isMotionValue(ot)&&(this.childSubscription=ot.on("change",ut=>{this.current&&(this.current.textContent=`${ut}`)}))}}class Feature{constructor(ot){this.isMounted=!1,this.node=ot}update(){}}function convertBoundingBoxToBox({top:At,left:ot,right:ut,bottom:pt}){return{x:{min:ot,max:ut},y:{min:At,max:pt}}}function convertBoxToBoundingBox({x:At,y:ot}){return{top:ot.min,right:At.max,bottom:ot.max,left:At.min}}function transformBoxPoints(At,ot){if(!ot)return At;const ut=ot({x:At.left,y:At.top}),pt=ot({x:At.right,y:At.bottom});return{top:ut.y,left:ut.x,bottom:pt.y,right:pt.x}}function isIdentityScale(At){return At===void 0||At===1}function hasScale({scale:At,scaleX:ot,scaleY:ut}){return!isIdentityScale(At)||!isIdentityScale(ot)||!isIdentityScale(ut)}function hasTransform(At){return hasScale(At)||has2DTranslate(At)||At.z||At.rotate||At.rotateX||At.rotateY||At.skewX||At.skewY}function has2DTranslate(At){return is2DTranslate(At.x)||is2DTranslate(At.y)}function is2DTranslate(At){return At&&At!=="0%"}function scalePoint(At,ot,ut){const pt=At-ut,ft=ot*pt;return ut+ft}function applyPointDelta(At,ot,ut,pt,ft){return ft!==void 0&&(At=scalePoint(At,ft,pt)),scalePoint(At,ut,pt)+ot}function applyAxisDelta(At,ot=0,ut=1,pt,ft){At.min=applyPointDelta(At.min,ot,ut,pt,ft),At.max=applyPointDelta(At.max,ot,ut,pt,ft)}function applyBoxDelta(At,{x:ot,y:ut}){applyAxisDelta(At.x,ot.translate,ot.scale,ot.originPoint),applyAxisDelta(At.y,ut.translate,ut.scale,ut.originPoint)}const TREE_SCALE_SNAP_MIN=.999999999999,TREE_SCALE_SNAP_MAX=1.0000000000001;function applyTreeDeltas(At,ot,ut,pt=!1){const ft=ut.length;if(!ft)return;ot.x=ot.y=1;let ht,yt;for(let kt=0;kt<ft;kt++){ht=ut[kt],yt=ht.projectionDelta;const{visualElement:Et}=ht.options;Et&&Et.props.style&&Et.props.style.display==="contents"||(pt&&ht.options.layoutScroll&&ht.scroll&&ht!==ht.root&&transformBox(At,{x:-ht.scroll.offset.x,y:-ht.scroll.offset.y}),yt&&(ot.x*=yt.x.scale,ot.y*=yt.y.scale,applyBoxDelta(At,yt)),pt&&hasTransform(ht.latestValues)&&transformBox(At,ht.latestValues))}ot.x<TREE_SCALE_SNAP_MAX&&ot.x>TREE_SCALE_SNAP_MIN&&(ot.x=1),ot.y<TREE_SCALE_SNAP_MAX&&ot.y>TREE_SCALE_SNAP_MIN&&(ot.y=1)}function translateAxis(At,ot){At.min=At.min+ot,At.max=At.max+ot}function transformAxis(At,ot,ut,pt,ft=.5){const ht=mixNumber$1(At.min,At.max,ft);applyAxisDelta(At,ot,ut,ht,pt)}function transformBox(At,ot){transformAxis(At.x,ot.x,ot.scaleX,ot.scale,ot.originX),transformAxis(At.y,ot.y,ot.scaleY,ot.scale,ot.originY)}function measureViewportBox(At,ot){return convertBoundingBoxToBox(transformBoxPoints(At.getBoundingClientRect(),ot))}function measurePageBox(At,ot,ut){const pt=measureViewportBox(At,ut),{scroll:ft}=ot;return ft&&(translateAxis(pt.x,ft.offset.x),translateAxis(pt.y,ft.offset.y)),pt}const translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},numTransforms=transformPropOrder.length;function buildTransform(At,ot,ut){let pt="",ft=!0;for(let ht=0;ht<numTransforms;ht++){const yt=transformPropOrder[ht],kt=At[yt];if(kt===void 0)continue;let Et=!0;if(typeof kt=="number")Et=kt===(yt.startsWith("scale")?1:0);else{const Ot=parseFloat(kt);Et=yt.startsWith("scale")?Ot===1:Ot===0}if(!Et||ut){const Ot=getValueAsType(kt,numberValueTypes[yt]);if(!Et){ft=!1;const _t=translateAlias[yt]||yt;pt+=`${_t}(${Ot}) `}ut&&(ot[yt]=Ot)}}return pt=pt.trim(),ut?pt=ut(ot,ft?"":pt):ft&&(pt="none"),pt}function buildHTMLStyles(At,ot,ut){const{style:pt,vars:ft,transformOrigin:ht}=At;let yt=!1,kt=!1;for(const Et in ot){const Ot=ot[Et];if(transformProps.has(Et)){yt=!0;continue}else if(isCSSVariableName(Et)){ft[Et]=Ot;continue}else{const _t=getValueAsType(Ot,numberValueTypes[Et]);Et.startsWith("origin")?(kt=!0,ht[Et]=_t):pt[Et]=_t}}if(ot.transform||(yt||ut?pt.transform=buildTransform(ot,At.transform,ut):pt.transform&&(pt.transform="none")),kt){const{originX:Et="50%",originY:Ot="50%",originZ:_t=0}=ht;pt.transformOrigin=`${Et} ${Ot} ${_t}`}}function renderHTML(At,{style:ot,vars:ut},pt,ft){const ht=At.style;let yt;for(yt in ot)ht[yt]=ot[yt];ft?.applyProjectionStyles(ht,pt);for(yt in ut)ht.setProperty(yt,ut[yt])}function pixelsToPercent(At,ot){return ot.max===ot.min?0:At/(ot.max-ot.min)*100}const correctBorderRadius={correct:(At,ot)=>{if(!ot.target)return At;if(typeof At=="string")if(px$1.test(At))At=parseFloat(At);else return At;const ut=pixelsToPercent(At,ot.target.x),pt=pixelsToPercent(At,ot.target.y);return`${ut}% ${pt}%`}},correctBoxShadow={correct:(At,{treeScale:ot,projectionDelta:ut})=>{const pt=At,ft=complex.parse(At);if(ft.length>5)return pt;const ht=complex.createTransformer(At),yt=typeof ft[0]!="number"?1:0,kt=ut.x.scale*ot.x,Et=ut.y.scale*ot.y;ft[0+yt]/=kt,ft[1+yt]/=Et;const Ot=mixNumber$1(kt,Et,.5);return typeof ft[2+yt]=="number"&&(ft[2+yt]/=Ot),typeof ft[3+yt]=="number"&&(ft[3+yt]/=Ot),ht(ft)}},scaleCorrectors={borderRadius:{...correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:correctBorderRadius,borderTopRightRadius:correctBorderRadius,borderBottomLeftRadius:correctBorderRadius,borderBottomRightRadius:correctBorderRadius,boxShadow:correctBoxShadow};function isForcedMotionValue(At,{layout:ot,layoutId:ut}){return transformProps.has(At)||At.startsWith("origin")||(ot||ut!==void 0)&&(!!scaleCorrectors[At]||At==="opacity")}function scrapeMotionValuesFromProps$1(At,ot,ut){const pt=At.style,ft=ot?.style,ht={};if(!pt)return ht;for(const yt in pt)(isMotionValue(pt[yt])||ft&&isMotionValue(ft[yt])||isForcedMotionValue(yt,At)||ut?.getValue(yt)?.liveStyle!==void 0)&&(ht[yt]=pt[yt]);return ht}function getComputedStyle$2(At){return window.getComputedStyle(At)}class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(ot,ut){if(transformProps.has(ut))return this.projection?.isProjecting?defaultTransformValue(ut):readTransformValue(ot,ut);{const pt=getComputedStyle$2(ot),ft=(isCSSVariableName(ut)?pt.getPropertyValue(ut):pt[ut])||0;return typeof ft=="string"?ft.trim():ft}}measureInstanceViewportBox(ot,{transformPagePoint:ut}){return measureViewportBox(ot,ut)}build(ot,ut,pt){buildHTMLStyles(ot,ut,pt.transformTemplate)}scrapeMotionValuesFromProps(ot,ut,pt){return scrapeMotionValuesFromProps$1(ot,ut,pt)}}function isObjectKey(At,ot){return At in ot}class ObjectVisualElement extends VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(ot,ut){if(isObjectKey(ut,ot)){const pt=ot[ut];if(typeof pt=="string"||typeof pt=="number")return pt}}getBaseTargetFromProps(){}removeValueFromRenderState(ot,ut){delete ut.output[ot]}measureInstanceViewportBox(){return createBox()}build(ot,ut){Object.assign(ot.output,ut)}renderInstance(ot,{output:ut}){Object.assign(ot,ut)}sortInstanceNodePosition(){return 0}}const dashKeys={offset:"stroke-dashoffset",array:"stroke-dasharray"},camelKeys={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath(At,ot,ut=1,pt=0,ft=!0){At.pathLength=1;const ht=ft?dashKeys:camelKeys;At[ht.offset]=`${-pt}`,At[ht.array]=`${ot} ${ut}`}const cssMotionPathProperties=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function buildSVGAttrs(At,{attrX:ot,attrY:ut,attrScale:pt,pathLength:ft,pathSpacing:ht=1,pathOffset:yt=0,...kt},Et,Ot,_t){if(buildHTMLStyles(At,kt,Ot),Et){At.style.viewBox&&(At.attrs.viewBox=At.style.viewBox);return}At.attrs=At.style,At.style={};const{attrs:Qt,style:vt}=At;Qt.transform&&(vt.transform=Qt.transform,delete Qt.transform),(vt.transform||Qt.transformOrigin)&&(vt.transformOrigin=Qt.transformOrigin??"50% 50%",delete Qt.transformOrigin),vt.transform&&(vt.transformBox=_t?.transformBox??"fill-box",delete Qt.transformBox);for(const St of cssMotionPathProperties)Qt[St]!==void 0&&(vt[St]=Qt[St],delete Qt[St]);ot!==void 0&&(Qt.x=ot),ut!==void 0&&(Qt.y=ut),pt!==void 0&&(Qt.scale=pt),ft!==void 0&&buildSVGPath(Qt,ft,ht,yt,!1)}const camelCaseAttributes=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"]),isSVGTag=At=>typeof At=="string"&&At.toLowerCase()==="svg";function renderSVG(At,ot,ut,pt){renderHTML(At,ot,void 0,pt);for(const ft in ot.attrs)At.setAttribute(camelCaseAttributes.has(ft)?ft:camelToDash(ft),ot.attrs[ft])}function scrapeMotionValuesFromProps(At,ot,ut){const pt=scrapeMotionValuesFromProps$1(At,ot,ut);for(const ft in At)if(isMotionValue(At[ft])||isMotionValue(ot[ft])){const ht=transformPropOrder.indexOf(ft)!==-1?"attr"+ft.charAt(0).toUpperCase()+ft.substring(1):ft;pt[ht]=At[ft]}return pt}class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(ot,ut){return ot[ut]}readValueFromInstance(ot,ut){if(transformProps.has(ut)){const pt=getDefaultValueType(ut);return pt&&pt.default||0}return ut=camelCaseAttributes.has(ut)?ut:camelToDash(ut),ot.getAttribute(ut)}scrapeMotionValuesFromProps(ot,ut,pt){return scrapeMotionValuesFromProps(ot,ut,pt)}build(ot,ut,pt){buildSVGAttrs(ot,ut,this.isSVGTag,pt.transformTemplate,pt.style)}renderInstance(ot,ut,pt,ft){renderSVG(ot,ut,pt,ft)}mount(ot){this.isSVGTag=isSVGTag(ot.tagName),super.mount(ot)}}const numVariantProps=variantProps.length;function getVariantContext(At){if(!At)return;if(!At.isControllingVariants){const ut=At.parent?getVariantContext(At.parent)||{}:{};return At.props.initial!==void 0&&(ut.initial=At.props.initial),ut}const ot={};for(let ut=0;ut<numVariantProps;ut++){const pt=variantProps[ut],ft=At.props[pt];(isVariantLabel(ft)||ft===!1)&&(ot[pt]=ft)}return ot}function shallowCompare(At,ot){if(!Array.isArray(ot))return!1;const ut=ot.length;if(ut!==At.length)return!1;for(let pt=0;pt<ut;pt++)if(ot[pt]!==At[pt])return!1;return!0}const reversePriorityOrder=[...variantPriorityOrder].reverse(),numAnimationTypes=variantPriorityOrder.length;function createAnimateFunction(At){return ot=>Promise.all(ot.map(({animation:ut,options:pt})=>animateVisualElement(At,ut,pt)))}function createAnimationState(At){let ot=createAnimateFunction(At),ut=createState$1(),pt=!0;const ft=Et=>(Ot,_t)=>{const Qt=resolveVariant(At,_t,Et==="exit"?At.presenceContext?.custom:void 0);if(Qt){const{transition:vt,transitionEnd:St,...$t}=Qt;Ot={...Ot,...$t,...St}}return Ot};function ht(Et){ot=Et(At)}function yt(Et){const{props:Ot}=At,_t=getVariantContext(At.parent)||{},Qt=[],vt=new Set;let St={},$t=1/0;for(let Nt=0;Nt<numAnimationTypes;Nt++){const Lt=reversePriorityOrder[Nt],qt=ut[Lt],jt=Ot[Lt]!==void 0?Ot[Lt]:_t[Lt],Zt=isVariantLabel(jt),Ht=Lt===Et?qt.isActive:null;Ht===!1&&($t=Nt);let Wt=jt===_t[Lt]&&jt!==Ot[Lt]&&Zt;if(Wt&&pt&&At.manuallyAnimateOnMount&&(Wt=!1),qt.protectedKeys={...St},!qt.isActive&&Ht===null||!jt&&!qt.prevProp||isAnimationControls(jt)||typeof jt=="boolean")continue;if(Lt==="exit"&&qt.isActive&&Ht!==!0){qt.prevResolvedValues&&(St={...St,...qt.prevResolvedValues});continue}const wn=checkVariantsDidChange(qt.prevProp,jt);let Qn=wn||Lt===Et&&qt.isActive&&!Wt&&Zt||Nt>$t&&Zt,Jt=!1;const Gn=Array.isArray(jt)?jt:[jt];let Jn=Gn.reduce(ft(Lt),{});Ht===!1&&(Jn={});const{prevResolvedValues:Vn={}}=qt,Fn={...Vn,...Jn},Xn=lr=>{Qn=!0,vt.has(lr)&&(Jt=!0,vt.delete(lr)),qt.needsAnimating[lr]=!0;const nr=At.getValue(lr);nr&&(nr.liveStyle=!1)};for(const lr in Fn){const nr=Jn[lr],mr=Vn[lr];if(St.hasOwnProperty(lr))continue;let Zn=!1;isKeyframesTarget(nr)&&isKeyframesTarget(mr)?Zn=!shallowCompare(nr,mr):Zn=nr!==mr,Zn?nr!=null?Xn(lr):vt.add(lr):nr!==void 0&&vt.has(lr)?Xn(lr):qt.protectedKeys[lr]=!0}qt.prevProp=jt,qt.prevResolvedValues=Jn,qt.isActive&&(St={...St,...Jn}),pt&&At.blockInitialAnimation&&(Qn=!1);const Ar=Wt&&wn;Qn&&(!Ar||Jt)&&Qt.push(...Gn.map(lr=>{const nr={type:Lt};if(typeof lr=="string"&&pt&&!Ar&&At.manuallyAnimateOnMount&&At.parent){const{parent:mr}=At,Zn=resolveVariant(mr,lr);if(mr.enteringChildren&&Zn){const{delayChildren:ur}=Zn.transition||{};nr.delay=calcChildStagger(mr.enteringChildren,At,ur)}}return{animation:lr,options:nr}}))}if(vt.size){const Nt={};if(typeof Ot.initial!="boolean"){const Lt=resolveVariant(At,Array.isArray(Ot.initial)?Ot.initial[0]:Ot.initial);Lt&&Lt.transition&&(Nt.transition=Lt.transition)}vt.forEach(Lt=>{const qt=At.getBaseTarget(Lt),jt=At.getValue(Lt);jt&&(jt.liveStyle=!0),Nt[Lt]=qt??null}),Qt.push({animation:Nt})}let Pt=!!Qt.length;return pt&&(Ot.initial===!1||Ot.initial===Ot.animate)&&!At.manuallyAnimateOnMount&&(Pt=!1),pt=!1,Pt?ot(Qt):Promise.resolve()}function kt(Et,Ot){if(ut[Et].isActive===Ot)return Promise.resolve();At.variantChildren?.forEach(Qt=>Qt.animationState?.setActive(Et,Ot)),ut[Et].isActive=Ot;const _t=yt(Et);for(const Qt in ut)ut[Qt].protectedKeys={};return _t}return{animateChanges:yt,setActive:kt,setAnimateFunction:ht,getState:()=>ut,reset:()=>{ut=createState$1()}}}function checkVariantsDidChange(At,ot){return typeof ot=="string"?ot!==At:Array.isArray(ot)?!shallowCompare(ot,At):!1}function createTypeState(At=!1){return{isActive:At,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState$1(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}function copyAxisInto(At,ot){At.min=ot.min,At.max=ot.max}function copyBoxInto(At,ot){copyAxisInto(At.x,ot.x),copyAxisInto(At.y,ot.y)}function copyAxisDeltaInto(At,ot){At.translate=ot.translate,At.scale=ot.scale,At.originPoint=ot.originPoint,At.origin=ot.origin}const SCALE_PRECISION=1e-4,SCALE_MIN=1-SCALE_PRECISION,SCALE_MAX=1+SCALE_PRECISION,TRANSLATE_PRECISION=.01,TRANSLATE_MIN=0-TRANSLATE_PRECISION,TRANSLATE_MAX=0+TRANSLATE_PRECISION;function calcLength(At){return At.max-At.min}function isNear(At,ot,ut){return Math.abs(At-ot)<=ut}function calcAxisDelta(At,ot,ut,pt=.5){At.origin=pt,At.originPoint=mixNumber$1(ot.min,ot.max,At.origin),At.scale=calcLength(ut)/calcLength(ot),At.translate=mixNumber$1(ut.min,ut.max,At.origin)-At.originPoint,(At.scale>=SCALE_MIN&&At.scale<=SCALE_MAX||isNaN(At.scale))&&(At.scale=1),(At.translate>=TRANSLATE_MIN&&At.translate<=TRANSLATE_MAX||isNaN(At.translate))&&(At.translate=0)}function calcBoxDelta(At,ot,ut,pt){calcAxisDelta(At.x,ot.x,ut.x,pt?pt.originX:void 0),calcAxisDelta(At.y,ot.y,ut.y,pt?pt.originY:void 0)}function calcRelativeAxis(At,ot,ut){At.min=ut.min+ot.min,At.max=At.min+calcLength(ot)}function calcRelativeBox(At,ot,ut){calcRelativeAxis(At.x,ot.x,ut.x),calcRelativeAxis(At.y,ot.y,ut.y)}function calcRelativeAxisPosition(At,ot,ut){At.min=ot.min-ut.min,At.max=At.min+calcLength(ot)}function calcRelativePosition(At,ot,ut){calcRelativeAxisPosition(At.x,ot.x,ut.x),calcRelativeAxisPosition(At.y,ot.y,ut.y)}function removePointDelta(At,ot,ut,pt,ft){return At-=ot,At=scalePoint(At,1/ut,pt),ft!==void 0&&(At=scalePoint(At,1/ft,pt)),At}function removeAxisDelta(At,ot=0,ut=1,pt=.5,ft,ht=At,yt=At){if(percent$2.test(ot)&&(ot=parseFloat(ot),ot=mixNumber$1(yt.min,yt.max,ot/100)-yt.min),typeof ot!="number")return;let kt=mixNumber$1(ht.min,ht.max,pt);At===ht&&(kt-=ot),At.min=removePointDelta(At.min,ot,ut,kt,ft),At.max=removePointDelta(At.max,ot,ut,kt,ft)}function removeAxisTransforms(At,ot,[ut,pt,ft],ht,yt){removeAxisDelta(At,ot[ut],ot[pt],ot[ft],ot.scale,ht,yt)}const xKeys=["x","scaleX","originX"],yKeys=["y","scaleY","originY"];function removeBoxTransforms(At,ot,ut,pt){removeAxisTransforms(At.x,ot,xKeys,ut?ut.x:void 0,pt?pt.x:void 0),removeAxisTransforms(At.y,ot,yKeys,ut?ut.y:void 0,pt?pt.y:void 0)}function isAxisDeltaZero(At){return At.translate===0&&At.scale===1}function isDeltaZero(At){return isAxisDeltaZero(At.x)&&isAxisDeltaZero(At.y)}function axisEquals(At,ot){return At.min===ot.min&&At.max===ot.max}function boxEquals(At,ot){return axisEquals(At.x,ot.x)&&axisEquals(At.y,ot.y)}function axisEqualsRounded(At,ot){return Math.round(At.min)===Math.round(ot.min)&&Math.round(At.max)===Math.round(ot.max)}function boxEqualsRounded(At,ot){return axisEqualsRounded(At.x,ot.x)&&axisEqualsRounded(At.y,ot.y)}function aspectRatio(At){return calcLength(At.x)/calcLength(At.y)}function axisDeltaEquals(At,ot){return At.translate===ot.translate&&At.scale===ot.scale&&At.originPoint===ot.originPoint}function eachAxis(At){return[At("x"),At("y")]}function buildProjectionTransform(At,ot,ut){let pt="";const ft=At.x.translate/ot.x,ht=At.y.translate/ot.y,yt=ut?.z||0;if((ft||ht||yt)&&(pt=`translate3d(${ft}px, ${ht}px, ${yt}px) `),(ot.x!==1||ot.y!==1)&&(pt+=`scale(${1/ot.x}, ${1/ot.y}) `),ut){const{transformPerspective:Ot,rotate:_t,rotateX:Qt,rotateY:vt,skewX:St,skewY:$t}=ut;Ot&&(pt=`perspective(${Ot}px) ${pt}`),_t&&(pt+=`rotate(${_t}deg) `),Qt&&(pt+=`rotateX(${Qt}deg) `),vt&&(pt+=`rotateY(${vt}deg) `),St&&(pt+=`skewX(${St}deg) `),$t&&(pt+=`skewY(${$t}deg) `)}const kt=At.x.scale*ot.x,Et=At.y.scale*ot.y;return(kt!==1||Et!==1)&&(pt+=`scale(${kt}, ${Et})`),pt||"none"}const borders=["TopLeft","TopRight","BottomLeft","BottomRight"],numBorders=borders.length,asNumber=At=>typeof At=="string"?parseFloat(At):At,isPx=At=>typeof At=="number"||px$1.test(At);function mixValues(At,ot,ut,pt,ft,ht){ft?(At.opacity=mixNumber$1(0,ut.opacity??1,easeCrossfadeIn(pt)),At.opacityExit=mixNumber$1(ot.opacity??1,0,easeCrossfadeOut(pt))):ht&&(At.opacity=mixNumber$1(ot.opacity??1,ut.opacity??1,pt));for(let yt=0;yt<numBorders;yt++){const kt=`border${borders[yt]}Radius`;let Et=getRadius(ot,kt),Ot=getRadius(ut,kt);if(Et===void 0&&Ot===void 0)continue;Et||(Et=0),Ot||(Ot=0),Et===0||Ot===0||isPx(Et)===isPx(Ot)?(At[kt]=Math.max(mixNumber$1(asNumber(Et),asNumber(Ot),pt),0),(percent$2.test(Ot)||percent$2.test(Et))&&(At[kt]+="%")):At[kt]=Ot}(ot.rotate||ut.rotate)&&(At.rotate=mixNumber$1(ot.rotate||0,ut.rotate||0,pt))}function getRadius(At,ot){return At[ot]!==void 0?At[ot]:At.borderRadius}const easeCrossfadeIn=compress(0,.5,circOut),easeCrossfadeOut=compress(.5,.95,noop$3);function compress(At,ot,ut){return pt=>pt<At?0:pt>ot?1:ut(progress(At,ot,pt))}function animateSingleValue(At,ot,ut){const pt=isMotionValue(At)?At:motionValue(At);return pt.start(animateMotionValue("",pt,ot,ut)),pt.animation}function addDomEvent(At,ot,ut,pt={passive:!0}){return At.addEventListener(ot,ut,pt),()=>At.removeEventListener(ot,ut)}const compareByDepth=(At,ot)=>At.depth-ot.depth;class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(ot){addUniqueItem(this.children,ot),this.isDirty=!0}remove(ot){removeItem$1(this.children,ot),this.isDirty=!0}forEach(ot){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(ot)}}function delay(At,ot){const ut=time.now(),pt=({timestamp:ft})=>{const ht=ft-ut;ht>=ot&&(cancelFrame(pt),At(ht-ot))};return frame.setup(pt,!0),()=>cancelFrame(pt)}function resolveMotionValue(At){return isMotionValue(At)?At.get():At}class NodeStack{constructor(){this.members=[]}add(ot){addUniqueItem(this.members,ot);for(let ut=this.members.length-1;ut>=0;ut--){const pt=this.members[ut];if(pt===ot||pt===this.lead||pt===this.prevLead)continue;const ft=pt.instance;ft&&ft.isConnected===!1&&pt.isPresent!==!1&&!pt.snapshot&&removeItem$1(this.members,pt)}ot.scheduleRender()}remove(ot){if(removeItem$1(this.members,ot),ot===this.prevLead&&(this.prevLead=void 0),ot===this.lead){const ut=this.members[this.members.length-1];ut&&this.promote(ut)}}relegate(ot){const ut=this.members.findIndex(ft=>ot===ft);if(ut===0)return!1;let pt;for(let ft=ut;ft>=0;ft--){const ht=this.members[ft],yt=ht.instance;if(ht.isPresent!==!1&&(!yt||yt.isConnected!==!1)){pt=ht;break}}return pt?(this.promote(pt),!0):!1}promote(ot,ut){const pt=this.lead;if(ot!==pt&&(this.prevLead=pt,this.lead=ot,ot.show(),pt)){pt.instance&&pt.scheduleRender(),ot.scheduleRender();const ft=pt.options.layoutDependency,ht=ot.options.layoutDependency;if(!(ft!==void 0&&ht!==void 0&&ft===ht)){const Et=pt.instance;Et&&Et.isConnected===!1&&!pt.snapshot||(ot.resumeFrom=pt,ut&&(ot.resumeFrom.preserveOpacity=!0),pt.snapshot&&(ot.snapshot=pt.snapshot,ot.snapshot.latestValues=pt.animationValues||pt.latestValues),ot.root&&ot.root.isUpdating&&(ot.isLayoutDirty=!0))}const{crossfade:kt}=ot.options;kt===!1&&pt.hide()}}exitAnimationComplete(){this.members.forEach(ot=>{const{options:ut,resumingFrom:pt}=ot;ut.onExitComplete&&ut.onExitComplete(),pt&&pt.options.onExitComplete&&pt.options.onExitComplete()})}scheduleRender(){this.members.forEach(ot=>{ot.instance&&ot.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const globalProjectionState={hasAnimatedSinceResize:!0,hasEverUpdated:!1},transformAxes=["","X","Y","Z"],animationTarget=1e3;let id$3=0;function resetDistortingTransform(At,ot,ut,pt){const{latestValues:ft}=ot;ft[At]&&(ut[At]=ft[At],ot.setStaticValue(At,0),pt&&(pt[At]=0))}function cancelTreeOptimisedTransformAnimations(At){if(At.hasCheckedOptimisedAppear=!0,At.root===At)return;const{visualElement:ot}=At.options;if(!ot)return;const ut=getOptimisedAppearId(ot);if(window.MotionHasOptimisedAnimation(ut,"transform")){const{layout:ft,layoutId:ht}=At.options;window.MotionCancelOptimisedAnimation(ut,"transform",frame,!(ft||ht))}const{parent:pt}=At;pt&&!pt.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(pt)}function createProjectionNode$1({attachResizeListener:At,defaultParent:ot,measureScroll:ut,checkIsScrollRoot:pt,resetTransform:ft}){return class{constructor(yt={},kt=ot?.()){this.id=id$3++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=yt,this.root=kt?kt.root||kt:this,this.path=kt?[...kt.path,kt]:[],this.parent=kt,this.depth=kt?kt.depth+1:0;for(let Et=0;Et<this.path.length;Et++)this.path[Et].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(yt,kt){return this.eventHandlers.has(yt)||this.eventHandlers.set(yt,new SubscriptionManager),this.eventHandlers.get(yt).add(kt)}notifyListeners(yt,...kt){const Et=this.eventHandlers.get(yt);Et&&Et.notify(...kt)}hasListeners(yt){return this.eventHandlers.has(yt)}mount(yt){if(this.instance)return;this.isSVG=isSVGElement$2(yt)&&!isSVGSVGElement(yt),this.instance=yt;const{layoutId:kt,layout:Et,visualElement:Ot}=this.options;if(Ot&&!Ot.current&&Ot.mount(yt),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(Et||kt)&&(this.isLayoutDirty=!0),At){let _t,Qt=0;const vt=()=>this.root.updateBlockedByResize=!1;frame.read(()=>{Qt=window.innerWidth}),At(yt,()=>{const St=window.innerWidth;St!==Qt&&(Qt=St,this.root.updateBlockedByResize=!0,_t&&_t(),_t=delay(vt,250),globalProjectionState.hasAnimatedSinceResize&&(globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation)))})}kt&&this.root.registerSharedNode(kt,this),this.options.animate!==!1&&Ot&&(kt||Et)&&this.addEventListener("didUpdate",({delta:_t,hasLayoutChanged:Qt,hasRelativeLayoutChanged:vt,layout:St})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $t=this.options.transition||Ot.getDefaultTransition()||defaultLayoutTransition,{onLayoutAnimationStart:Pt,onLayoutAnimationComplete:Nt}=Ot.getProps(),Lt=!this.targetLayout||!boxEqualsRounded(this.targetLayout,St),qt=!Qt&&vt;if(this.options.layoutRoot||this.resumeFrom||qt||Qt&&(Lt||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const jt={...getValueTransition$1($t,"layout"),onPlay:Pt,onComplete:Nt};(Ot.shouldReduceMotion||this.options.layoutRoot)&&(jt.delay=0,jt.type=!1),this.startAnimation(jt),this.setAnimationOrigin(_t,qt)}else Qt||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=St})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const yt=this.getStack();yt&&yt.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),cancelFrame(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(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){const{visualElement:yt}=this.options;return yt&&yt.getProps().transformTemplate}willUpdate(yt=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let _t=0;_t<this.path.length;_t++){const Qt=this.path[_t];Qt.shouldResetTransform=!0,Qt.updateScroll("snapshot"),Qt.options.layoutRoot&&Qt.willUpdate(!1)}const{layoutId:kt,layout:Et}=this.options;if(kt===void 0&&!Et)return;const Ot=this.getTransformTemplate();this.prevTransformTemplateValue=Ot?Ot(this.latestValues,""):void 0,this.updateSnapshot(),yt&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(clearIsLayoutDirty);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate)):this.nodes.forEach(clearIsLayoutDirty),this.clearAllSnapshots();const kt=time.now();frameData.delta=clamp$2(0,1e3/60,kt-frameData.timestamp),frameData.timestamp=kt,frameData.isProcessing=!0,frameSteps.update.process(frameData),frameSteps.preRender.process(frameData),frameSteps.render.process(frameData),frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!calcLength(this.snapshot.measuredBox.x)&&!calcLength(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let Et=0;Et<this.path.length;Et++)this.path[Et].updateScroll();const yt=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:kt}=this.options;kt&&kt.notify("LayoutMeasure",this.layout.layoutBox,yt?yt.layoutBox:void 0)}updateScroll(yt="measure"){let kt=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===yt&&(kt=!1),kt&&this.instance){const Et=pt(this.instance);this.scroll={animationId:this.root.animationId,phase:yt,isRoot:Et,offset:ut(this.instance),wasRoot:this.scroll?this.scroll.isRoot:Et}}}resetTransform(){if(!ft)return;const yt=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,kt=this.projectionDelta&&!isDeltaZero(this.projectionDelta),Et=this.getTransformTemplate(),Ot=Et?Et(this.latestValues,""):void 0,_t=Ot!==this.prevTransformTemplateValue;yt&&this.instance&&(kt||hasTransform(this.latestValues)||_t)&&(ft(this.instance,Ot),this.shouldResetTransform=!1,this.scheduleRender())}measure(yt=!0){const kt=this.measurePageBox();let Et=this.removeElementScroll(kt);return yt&&(Et=this.removeTransform(Et)),roundBox(Et),{animationId:this.root.animationId,measuredBox:kt,layoutBox:Et,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:yt}=this.options;if(!yt)return createBox();const kt=yt.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(checkNodeWasScrollRoot))){const{scroll:Ot}=this.root;Ot&&(translateAxis(kt.x,Ot.offset.x),translateAxis(kt.y,Ot.offset.y))}return kt}removeElementScroll(yt){const kt=createBox();if(copyBoxInto(kt,yt),this.scroll?.wasRoot)return kt;for(let Et=0;Et<this.path.length;Et++){const Ot=this.path[Et],{scroll:_t,options:Qt}=Ot;Ot!==this.root&&_t&&Qt.layoutScroll&&(_t.wasRoot&©BoxInto(kt,yt),translateAxis(kt.x,_t.offset.x),translateAxis(kt.y,_t.offset.y))}return kt}applyTransform(yt,kt=!1){const Et=createBox();copyBoxInto(Et,yt);for(let Ot=0;Ot<this.path.length;Ot++){const _t=this.path[Ot];!kt&&_t.options.layoutScroll&&_t.scroll&&_t!==_t.root&&transformBox(Et,{x:-_t.scroll.offset.x,y:-_t.scroll.offset.y}),hasTransform(_t.latestValues)&&transformBox(Et,_t.latestValues)}return hasTransform(this.latestValues)&&transformBox(Et,this.latestValues),Et}removeTransform(yt){const kt=createBox();copyBoxInto(kt,yt);for(let Et=0;Et<this.path.length;Et++){const Ot=this.path[Et];if(!Ot.instance||!hasTransform(Ot.latestValues))continue;hasScale(Ot.latestValues)&&Ot.updateSnapshot();const _t=createBox(),Qt=Ot.measurePageBox();copyBoxInto(_t,Qt),removeBoxTransforms(kt,Ot.latestValues,Ot.snapshot?Ot.snapshot.layoutBox:void 0,_t)}return hasTransform(this.latestValues)&&removeBoxTransforms(kt,this.latestValues),kt}setTargetDelta(yt){this.targetDelta=yt,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(yt){this.options={...this.options,...yt,crossfade:yt.crossfade!==void 0?yt.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!==frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(yt=!1){const kt=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=kt.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=kt.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=kt.isSharedProjectionDirty);const Et=!!this.resumingFrom||this!==kt;if(!(yt||Et&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:_t,layoutId:Qt}=this.options;if(!this.layout||!(_t||Qt))return;this.resolvedRelativeTargetAt=frameData.timestamp;const vt=this.getClosestProjectingParent();vt&&this.linkedParentVersion!==vt.layoutVersion&&!vt.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(vt&&vt.layout?this.createRelativeTarget(vt,this.layout.layoutBox,vt.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),calcRelativeBox(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,vt&&!!vt.resumingFrom==!!this.resumingFrom&&!vt.options.layoutScroll&&vt.target&&this.animationProgress!==1?this.createRelativeTarget(vt,this.target,vt.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(yt,kt,Et){this.relativeParent=yt,this.linkedParentVersion=yt.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,kt,Et),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const yt=this.getLead(),kt=!!this.resumingFrom||this!==yt;let Et=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(Et=!1),kt&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(Et=!1),this.resolvedRelativeTargetAt===frameData.timestamp&&(Et=!1),Et)return;const{layout:Ot,layoutId:_t}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(Ot||_t))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);const Qt=this.treeScale.x,vt=this.treeScale.y;applyTreeDeltas(this.layoutCorrected,this.treeScale,this.path,kt),yt.layout&&!yt.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(yt.target=yt.layout.layoutBox,yt.targetWithTransforms=createBox());const{target:St}=yt;if(!St){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)),calcBoxDelta(this.projectionDelta,this.layoutCorrected,St,this.latestValues),(this.treeScale.x!==Qt||this.treeScale.y!==vt||!axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)||!axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",St))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(yt=!0){if(this.options.visualElement?.scheduleRender(),yt){const kt=this.getStack();kt&&kt.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(yt,kt=!1){const Et=this.snapshot,Ot=Et?Et.latestValues:{},_t={...this.latestValues},Qt=createDelta();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!kt;const vt=createBox(),St=Et?Et.source:void 0,$t=this.layout?this.layout.source:void 0,Pt=St!==$t,Nt=this.getStack(),Lt=!Nt||Nt.members.length<=1,qt=!!(Pt&&!Lt&&this.options.crossfade===!0&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0;let jt;this.mixTargetDelta=Zt=>{const Ht=Zt/1e3;mixAxisDelta(Qt.x,yt.x,Ht),mixAxisDelta(Qt.y,yt.y,Ht),this.setTargetDelta(Qt),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(calcRelativePosition(vt,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mixBox(this.relativeTarget,this.relativeTargetOrigin,vt,Ht),jt&&boxEquals(this.relativeTarget,jt)&&(this.isProjectionDirty=!1),jt||(jt=createBox()),copyBoxInto(jt,this.relativeTarget)),Pt&&(this.animationValues=_t,mixValues(_t,Ot,this.latestValues,Ht,qt,Lt)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Ht},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(yt){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(cancelFrame(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=frame.update(()=>{globalProjectionState.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=motionValue(0)),this.motionValue.jump(0,!1),this.currentAnimation=animateSingleValue(this.motionValue,[0,1e3],{...yt,velocity:0,isSync:!0,onUpdate:kt=>{this.mixTargetDelta(kt),yt.onUpdate&&yt.onUpdate(kt)},onStop:()=>{},onComplete:()=>{yt.onComplete&&yt.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 yt=this.getStack();yt&&yt.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(animationTarget),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const yt=this.getLead();let{targetWithTransforms:kt,target:Et,layout:Ot,latestValues:_t}=yt;if(!(!kt||!Et||!Ot)){if(this!==yt&&this.layout&&Ot&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,Ot.layoutBox)){Et=this.target||createBox();const Qt=calcLength(this.layout.layoutBox.x);Et.x.min=yt.target.x.min,Et.x.max=Et.x.min+Qt;const vt=calcLength(this.layout.layoutBox.y);Et.y.min=yt.target.y.min,Et.y.max=Et.y.min+vt}copyBoxInto(kt,Et),transformBox(kt,_t),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,kt,_t)}}registerSharedNode(yt,kt){this.sharedNodes.has(yt)||this.sharedNodes.set(yt,new NodeStack),this.sharedNodes.get(yt).add(kt);const Ot=kt.options.initialPromotionConfig;kt.promote({transition:Ot?Ot.transition:void 0,preserveFollowOpacity:Ot&&Ot.shouldPreserveFollowOpacity?Ot.shouldPreserveFollowOpacity(kt):void 0})}isLead(){const yt=this.getStack();return yt?yt.lead===this:!0}getLead(){const{layoutId:yt}=this.options;return yt?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:yt}=this.options;return yt?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:yt}=this.options;if(yt)return this.root.sharedNodes.get(yt)}promote({needsReset:yt,transition:kt,preserveFollowOpacity:Et}={}){const Ot=this.getStack();Ot&&Ot.promote(this,Et),yt&&(this.projectionDelta=void 0,this.needsReset=!0),kt&&this.setOptions({transition:kt})}relegate(){const yt=this.getStack();return yt?yt.relegate(this):!1}resetSkewAndRotation(){const{visualElement:yt}=this.options;if(!yt)return;let kt=!1;const{latestValues:Et}=yt;if((Et.z||Et.rotate||Et.rotateX||Et.rotateY||Et.rotateZ||Et.skewX||Et.skewY)&&(kt=!0),!kt)return;const Ot={};Et.z&&resetDistortingTransform("z",yt,Ot,this.animationValues);for(let _t=0;_t<transformAxes.length;_t++)resetDistortingTransform(`rotate${transformAxes[_t]}`,yt,Ot,this.animationValues),resetDistortingTransform(`skew${transformAxes[_t]}`,yt,Ot,this.animationValues);yt.render();for(const _t in Ot)yt.setStaticValue(_t,Ot[_t]),this.animationValues&&(this.animationValues[_t]=Ot[_t]);yt.scheduleRender()}applyProjectionStyles(yt,kt){if(!this.instance||this.isSVG)return;if(!this.isVisible){yt.visibility="hidden";return}const Et=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,yt.visibility="",yt.opacity="",yt.pointerEvents=resolveMotionValue(kt?.pointerEvents)||"",yt.transform=Et?Et(this.latestValues,""):"none";return}const Ot=this.getLead();if(!this.projectionDelta||!this.layout||!Ot.target){this.options.layoutId&&(yt.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,yt.pointerEvents=resolveMotionValue(kt?.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(yt.transform=Et?Et({},""):"none",this.hasProjected=!1);return}yt.visibility="";const _t=Ot.animationValues||Ot.latestValues;this.applyTransformsToTarget();let Qt=buildProjectionTransform(this.projectionDeltaWithTransform,this.treeScale,_t);Et&&(Qt=Et(_t,Qt)),yt.transform=Qt;const{x:vt,y:St}=this.projectionDelta;yt.transformOrigin=`${vt.origin*100}% ${St.origin*100}% 0`,Ot.animationValues?yt.opacity=Ot===this?_t.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:_t.opacityExit:yt.opacity=Ot===this?_t.opacity!==void 0?_t.opacity:"":_t.opacityExit!==void 0?_t.opacityExit:0;for(const $t in scaleCorrectors){if(_t[$t]===void 0)continue;const{correct:Pt,applyTo:Nt,isCSSVariable:Lt}=scaleCorrectors[$t],qt=Qt==="none"?_t[$t]:Pt(_t[$t],Ot);if(Nt){const jt=Nt.length;for(let Zt=0;Zt<jt;Zt++)yt[Nt[Zt]]=qt}else Lt?this.options.visualElement.renderState.vars[$t]=qt:yt[$t]=qt}this.options.layoutId&&(yt.pointerEvents=Ot===this?resolveMotionValue(kt?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(yt=>yt.currentAnimation?.stop()),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(At){At.updateLayout()}function notifyLayoutUpdate(At){const ot=At.resumeFrom?.snapshot||At.snapshot;if(At.isLead()&&At.layout&&ot&&At.hasListeners("didUpdate")){const{layoutBox:ut,measuredBox:pt}=At.layout,{animationType:ft}=At.options,ht=ot.source!==At.layout.source;ft==="size"?eachAxis(_t=>{const Qt=ht?ot.measuredBox[_t]:ot.layoutBox[_t],vt=calcLength(Qt);Qt.min=ut[_t].min,Qt.max=Qt.min+vt}):shouldAnimatePositionOnly(ft,ot.layoutBox,ut)&&eachAxis(_t=>{const Qt=ht?ot.measuredBox[_t]:ot.layoutBox[_t],vt=calcLength(ut[_t]);Qt.max=Qt.min+vt,At.relativeTarget&&!At.currentAnimation&&(At.isProjectionDirty=!0,At.relativeTarget[_t].max=At.relativeTarget[_t].min+vt)});const yt=createDelta();calcBoxDelta(yt,ut,ot.layoutBox);const kt=createDelta();ht?calcBoxDelta(kt,At.applyTransform(pt,!0),ot.measuredBox):calcBoxDelta(kt,ut,ot.layoutBox);const Et=!isDeltaZero(yt);let Ot=!1;if(!At.resumeFrom){const _t=At.getClosestProjectingParent();if(_t&&!_t.resumeFrom){const{snapshot:Qt,layout:vt}=_t;if(Qt&&vt){const St=createBox();calcRelativePosition(St,ot.layoutBox,Qt.layoutBox);const $t=createBox();calcRelativePosition($t,ut,vt.layoutBox),boxEqualsRounded(St,$t)||(Ot=!0),_t.options.layoutRoot&&(At.relativeTarget=$t,At.relativeTargetOrigin=St,At.relativeParent=_t)}}}At.notifyListeners("didUpdate",{layout:ut,snapshot:ot,delta:kt,layoutDelta:yt,hasLayoutChanged:Et,hasRelativeLayoutChanged:Ot})}else if(At.isLead()){const{onExitComplete:ut}=At.options;ut&&ut()}At.options.transition=void 0}function propagateDirtyNodes(At){At.parent&&(At.isProjecting()||(At.isProjectionDirty=At.parent.isProjectionDirty),At.isSharedProjectionDirty||(At.isSharedProjectionDirty=!!(At.isProjectionDirty||At.parent.isProjectionDirty||At.parent.isSharedProjectionDirty)),At.isTransformDirty||(At.isTransformDirty=At.parent.isTransformDirty))}function cleanDirtyNodes(At){At.isProjectionDirty=At.isSharedProjectionDirty=At.isTransformDirty=!1}function clearSnapshot(At){At.clearSnapshot()}function clearMeasurements(At){At.clearMeasurements()}function clearIsLayoutDirty(At){At.isLayoutDirty=!1}function resetTransformStyle(At){const{visualElement:ot}=At.options;ot&&ot.getProps().onBeforeLayoutMeasure&&ot.notify("BeforeLayoutMeasure"),At.resetTransform()}function finishAnimation(At){At.finishAnimation(),At.targetDelta=At.relativeTarget=At.target=void 0,At.isProjectionDirty=!0}function resolveTargetDelta(At){At.resolveTargetDelta()}function calcProjection(At){At.calcProjection()}function resetSkewAndRotation(At){At.resetSkewAndRotation()}function removeLeadSnapshots(At){At.removeLeadSnapshot()}function mixAxisDelta(At,ot,ut){At.translate=mixNumber$1(ot.translate,0,ut),At.scale=mixNumber$1(ot.scale,1,ut),At.origin=ot.origin,At.originPoint=ot.originPoint}function mixAxis(At,ot,ut,pt){At.min=mixNumber$1(ot.min,ut.min,pt),At.max=mixNumber$1(ot.max,ut.max,pt)}function mixBox(At,ot,ut,pt){mixAxis(At.x,ot.x,ut.x,pt),mixAxis(At.y,ot.y,ut.y,pt)}function hasOpacityCrossfade(At){return At.animationValues&&At.animationValues.opacityExit!==void 0}const defaultLayoutTransition={duration:.45,ease:[.4,0,.1,1]},userAgentContains=At=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(At),roundPoint=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop$3;function roundAxis(At){At.min=roundPoint(At.min),At.max=roundPoint(At.max)}function roundBox(At){roundAxis(At.x),roundAxis(At.y)}function shouldAnimatePositionOnly(At,ot,ut){return At==="position"||At==="preserve-aspect"&&!isNear(aspectRatio(ot),aspectRatio(ut),.2)}function checkNodeWasScrollRoot(At){return At!==At.root&&At.scroll?.wasRoot}const DocumentProjectionNode=createProjectionNode$1({attachResizeListener:(At,ot)=>addDomEvent(At,"resize",ot),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rootProjectionNode={current:void 0},HTMLProjectionNode=createProjectionNode$1({measureScroll:At=>({x:At.scrollLeft,y:At.scrollTop}),defaultParent:()=>{if(!rootProjectionNode.current){const At=new DocumentProjectionNode({});At.mount(window),At.setOptions({layoutScroll:!0}),rootProjectionNode.current=At}return rootProjectionNode.current},resetTransform:(At,ot)=>{At.style.transform=ot!==void 0?ot:"none"},checkIsScrollRoot:At=>window.getComputedStyle(At).position==="fixed"}),MotionConfigContext=reactExports.createContext({transformPagePoint:At=>At,isStatic:!1,reducedMotion:"never"});function setRef$1(At,ot){if(typeof At=="function")return At(ot);At!=null&&(At.current=ot)}function composeRefs$1(...At){return ot=>{let ut=!1;const pt=At.map(ft=>{const ht=setRef$1(ft,ot);return!ut&&typeof ht=="function"&&(ut=!0),ht});if(ut)return()=>{for(let ft=0;ft<pt.length;ft++){const ht=pt[ft];typeof ht=="function"?ht():setRef$1(At[ft],null)}}}}function useComposedRefs$1(...At){return reactExports.useCallback(composeRefs$1(...At),At)}class PopChildMeasure extends reactExports.Component{getSnapshotBeforeUpdate(ot){const ut=this.props.childRef.current;if(ut&&ot.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const pt=ut.offsetParent,ft=isHTMLElement$2(pt)&&pt.offsetWidth||0,ht=isHTMLElement$2(pt)&&pt.offsetHeight||0,yt=this.props.sizeRef.current;yt.height=ut.offsetHeight||0,yt.width=ut.offsetWidth||0,yt.top=ut.offsetTop,yt.left=ut.offsetLeft,yt.right=ft-yt.width-yt.left,yt.bottom=ht-yt.height-yt.top}return null}componentDidUpdate(){}render(){return this.props.children}}function PopChild({children:At,isPresent:ot,anchorX:ut,anchorY:pt,root:ft,pop:ht}){const yt=reactExports.useId(),kt=reactExports.useRef(null),Et=reactExports.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:Ot}=reactExports.useContext(MotionConfigContext),_t=At.props?.ref??At?.ref,Qt=useComposedRefs$1(kt,_t);return reactExports.useInsertionEffect(()=>{const{width:vt,height:St,top:$t,left:Pt,right:Nt,bottom:Lt}=Et.current;if(ot||ht===!1||!kt.current||!vt||!St)return;const qt=ut==="left"?`left: ${Pt}`:`right: ${Nt}`,jt=pt==="bottom"?`bottom: ${Lt}`:`top: ${$t}`;kt.current.dataset.motionPopId=yt;const Zt=document.createElement("style");Ot&&(Zt.nonce=Ot);const Ht=ft??document.head;return Ht.appendChild(Zt),Zt.sheet&&Zt.sheet.insertRule(`
|
|
11
|
-
[data-motion-pop-id="${yt}"] {
|
|
12
|
-
position: absolute !important;
|
|
13
|
-
width: ${vt}px !important;
|
|
14
|
-
height: ${St}px !important;
|
|
15
|
-
${qt}px !important;
|
|
16
|
-
${jt}px !important;
|
|
17
|
-
}
|
|
18
|
-
`),()=>{Ht.contains(Zt)&&Ht.removeChild(Zt)}},[ot]),jsxRuntimeExports.jsx(PopChildMeasure,{isPresent:ot,childRef:kt,sizeRef:Et,pop:ht,children:ht===!1?At:reactExports.cloneElement(At,{ref:Qt})})}const PresenceChild=({children:At,initial:ot,isPresent:ut,onExitComplete:pt,custom:ft,presenceAffectsLayout:ht,mode:yt,anchorX:kt,anchorY:Et,root:Ot})=>{const _t=useConstant(newChildrenMap),Qt=reactExports.useId();let vt=!0,St=reactExports.useMemo(()=>(vt=!1,{id:Qt,initial:ot,isPresent:ut,custom:ft,onExitComplete:$t=>{_t.set($t,!0);for(const Pt of _t.values())if(!Pt)return;pt&&pt()},register:$t=>(_t.set($t,!1),()=>_t.delete($t))}),[ut,_t,pt]);return ht&&vt&&(St={...St}),reactExports.useMemo(()=>{_t.forEach(($t,Pt)=>_t.set(Pt,!1))},[ut]),reactExports.useEffect(()=>{!ut&&!_t.size&&pt&&pt()},[ut]),At=jsxRuntimeExports.jsx(PopChild,{pop:yt==="popLayout",isPresent:ut,anchorX:kt,anchorY:Et,root:Ot,children:At}),jsxRuntimeExports.jsx(PresenceContext.Provider,{value:St,children:At})};function newChildrenMap(){return new Map}function usePresence$1(At=!0){const ot=reactExports.useContext(PresenceContext);if(ot===null)return[!0,null];const{isPresent:ut,onExitComplete:pt,register:ft}=ot,ht=reactExports.useId();reactExports.useEffect(()=>{if(At)return ft(ht)},[At]);const yt=reactExports.useCallback(()=>At&&pt&&pt(ht),[ht,pt,At]);return!ut&&pt?[!1,yt]:[!0]}const getChildKey=At=>At.key||"";function onlyElements(At){const ot=[];return reactExports.Children.forEach(At,ut=>{reactExports.isValidElement(ut)&&ot.push(ut)}),ot}const AnimatePresence=({children:At,custom:ot,initial:ut=!0,onExitComplete:pt,presenceAffectsLayout:ft=!0,mode:ht="sync",propagate:yt=!1,anchorX:kt="left",anchorY:Et="top",root:Ot})=>{const[_t,Qt]=usePresence$1(yt),vt=reactExports.useMemo(()=>onlyElements(At),[At]),St=yt&&!_t?[]:vt.map(getChildKey),$t=reactExports.useRef(!0),Pt=reactExports.useRef(vt),Nt=useConstant(()=>new Map),Lt=reactExports.useRef(new Set),[qt,jt]=reactExports.useState(vt),[Zt,Ht]=reactExports.useState(vt);useIsomorphicLayoutEffect$3(()=>{$t.current=!1,Pt.current=vt;for(let Qn=0;Qn<Zt.length;Qn++){const Jt=getChildKey(Zt[Qn]);St.includes(Jt)?(Nt.delete(Jt),Lt.current.delete(Jt)):Nt.get(Jt)!==!0&&Nt.set(Jt,!1)}},[Zt,St.length,St.join("-")]);const Wt=[];if(vt!==qt){let Qn=[...vt];for(let Jt=0;Jt<Zt.length;Jt++){const Gn=Zt[Jt],Jn=getChildKey(Gn);St.includes(Jn)||(Qn.splice(Jt,0,Gn),Wt.push(Gn))}return ht==="wait"&&Wt.length&&(Qn=Wt),Ht(onlyElements(Qn)),jt(vt),null}const{forceRender:wn}=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Zt.map(Qn=>{const Jt=getChildKey(Qn),Gn=yt&&!_t?!1:vt===Zt||St.includes(Jt),Jn=()=>{if(Lt.current.has(Jt))return;if(Lt.current.add(Jt),Nt.has(Jt))Nt.set(Jt,!0);else return;let Vn=!0;Nt.forEach(Fn=>{Fn||(Vn=!1)}),Vn&&(wn?.(),Ht(Pt.current),yt&&Qt?.(),pt&&pt())};return jsxRuntimeExports.jsx(PresenceChild,{isPresent:Gn,initial:!$t.current||ut?void 0:!1,custom:ot,presenceAffectsLayout:ft,mode:ht,root:Ot,onExitComplete:Gn?void 0:Jn,anchorX:kt,anchorY:Et,children:Qn},Jt)})})},LazyContext=reactExports.createContext({strict:!1}),featureProps={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let isInitialized=!1;function initFeatureDefinitions(){if(isInitialized)return;const At={};for(const ot in featureProps)At[ot]={isEnabled:ut=>featureProps[ot].some(pt=>!!ut[pt])};setFeatureDefinitions(At),isInitialized=!0}function getInitializedFeatureDefinitions(){return initFeatureDefinitions(),getFeatureDefinitions()}function loadFeatures(At){const ot=getInitializedFeatureDefinitions();for(const ut in At)ot[ut]={...ot[ut],...At[ut]};setFeatureDefinitions(ot)}const validMotionProps=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function isValidMotionProp(At){return At.startsWith("while")||At.startsWith("drag")&&At!=="draggable"||At.startsWith("layout")||At.startsWith("onTap")||At.startsWith("onPan")||At.startsWith("onLayout")||validMotionProps.has(At)}let shouldForward=At=>!isValidMotionProp(At);function loadExternalIsValidProp(At){typeof At=="function"&&(shouldForward=ot=>ot.startsWith("on")?!isValidMotionProp(ot):At(ot))}try{loadExternalIsValidProp(require("@emotion/is-prop-valid").default)}catch{}function filterProps(At,ot,ut){const pt={};for(const ft in At)ft==="values"&&typeof At.values=="object"||(shouldForward(ft)||ut===!0&&isValidMotionProp(ft)||!ot&&!isValidMotionProp(ft)||At.draggable&&ft.startsWith("onDrag"))&&(pt[ft]=At[ft]);return pt}const MotionContext=reactExports.createContext({});function getCurrentTreeVariants(At,ot){if(isControllingVariants(At)){const{initial:ut,animate:pt}=At;return{initial:ut===!1||isVariantLabel(ut)?ut:void 0,animate:isVariantLabel(pt)?pt:void 0}}return At.inherit!==!1?ot:{}}function useCreateMotionContext(At){const{initial:ot,animate:ut}=getCurrentTreeVariants(At,reactExports.useContext(MotionContext));return reactExports.useMemo(()=>({initial:ot,animate:ut}),[variantLabelsAsDependency(ot),variantLabelsAsDependency(ut)])}function variantLabelsAsDependency(At){return Array.isArray(At)?At.join(" "):At}const createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(At,ot,ut){for(const pt in ot)!isMotionValue(ot[pt])&&!isForcedMotionValue(pt,ut)&&(At[pt]=ot[pt])}function useInitialMotionValues({transformTemplate:At},ot){return reactExports.useMemo(()=>{const ut=createHtmlRenderState();return buildHTMLStyles(ut,ot,At),Object.assign({},ut.vars,ut.style)},[ot])}function useStyle(At,ot){const ut=At.style||{},pt={};return copyRawValuesOnly(pt,ut,At),Object.assign(pt,useInitialMotionValues(At,ot)),pt}function useHTMLProps(At,ot){const ut={},pt=useStyle(At,ot);return At.drag&&At.dragListener!==!1&&(ut.draggable=!1,pt.userSelect=pt.WebkitUserSelect=pt.WebkitTouchCallout="none",pt.touchAction=At.drag===!0?"none":`pan-${At.drag==="x"?"y":"x"}`),At.tabIndex===void 0&&(At.onTap||At.onTapStart||At.whileTap)&&(ut.tabIndex=0),ut.style=pt,ut}const createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}});function useSVGProps(At,ot,ut,pt){const ft=reactExports.useMemo(()=>{const ht=createSvgRenderState();return buildSVGAttrs(ht,ot,isSVGTag(pt),At.transformTemplate,At.style),{...ht.attrs,style:{...ht.style}}},[ot]);if(At.style){const ht={};copyRawValuesOnly(ht,At.style,At),ft.style={...ht,...ft.style}}return ft}const lowercaseSVGElements=["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 isSVGComponent(At){return typeof At!="string"||At.includes("-")?!1:!!(lowercaseSVGElements.indexOf(At)>-1||/[A-Z]/u.test(At))}function useRender(At,ot,ut,{latestValues:pt},ft,ht=!1,yt){const Et=(yt??isSVGComponent(At)?useSVGProps:useHTMLProps)(ot,pt,ft,At),Ot=filterProps(ot,typeof At=="string",ht),_t=At!==reactExports.Fragment?{...Ot,...Et,ref:ut}:{},{children:Qt}=ot,vt=reactExports.useMemo(()=>isMotionValue(Qt)?Qt.get():Qt,[Qt]);return reactExports.createElement(At,{..._t,children:vt})}function makeState({scrapeMotionValuesFromProps:At,createRenderState:ot},ut,pt,ft){return{latestValues:makeLatestValues(ut,pt,ft,At),renderState:ot()}}function makeLatestValues(At,ot,ut,pt){const ft={},ht=pt(At,{});for(const vt in ht)ft[vt]=resolveMotionValue(ht[vt]);let{initial:yt,animate:kt}=At;const Et=isControllingVariants(At),Ot=isVariantNode(At);ot&&Ot&&!Et&&At.inherit!==!1&&(yt===void 0&&(yt=ot.initial),kt===void 0&&(kt=ot.animate));let _t=ut?ut.initial===!1:!1;_t=_t||yt===!1;const Qt=_t?kt:yt;if(Qt&&typeof Qt!="boolean"&&!isAnimationControls(Qt)){const vt=Array.isArray(Qt)?Qt:[Qt];for(let St=0;St<vt.length;St++){const $t=resolveVariantFromProps(At,vt[St]);if($t){const{transitionEnd:Pt,transition:Nt,...Lt}=$t;for(const qt in Lt){let jt=Lt[qt];if(Array.isArray(jt)){const Zt=_t?jt.length-1:0;jt=jt[Zt]}jt!==null&&(ft[qt]=jt)}for(const qt in Pt)ft[qt]=Pt[qt]}}}return ft}const makeUseVisualState=At=>(ot,ut)=>{const pt=reactExports.useContext(MotionContext),ft=reactExports.useContext(PresenceContext),ht=()=>makeState(At,ot,pt,ft);return ut?ht():useConstant(ht)},useHTMLVisualState=makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,createRenderState:createHtmlRenderState}),useSVGVisualState=makeUseVisualState({scrapeMotionValuesFromProps,createRenderState:createSvgRenderState}),motionComponentSymbol=Symbol.for("motionComponentSymbol");function useMotionRef(At,ot,ut){const pt=reactExports.useRef(ut);reactExports.useInsertionEffect(()=>{pt.current=ut});const ft=reactExports.useRef(null);return reactExports.useCallback(ht=>{ht&&At.onMount?.(ht),ot&&(ht?ot.mount(ht):ot.unmount());const yt=pt.current;if(typeof yt=="function")if(ht){const kt=yt(ht);typeof kt=="function"&&(ft.current=kt)}else ft.current?(ft.current(),ft.current=null):yt(ht);else yt&&(yt.current=ht)},[ot])}const SwitchLayoutGroupContext=reactExports.createContext({});function isRefObject(At){return At&&typeof At=="object"&&Object.prototype.hasOwnProperty.call(At,"current")}function useVisualElement(At,ot,ut,pt,ft,ht){const{visualElement:yt}=reactExports.useContext(MotionContext),kt=reactExports.useContext(LazyContext),Et=reactExports.useContext(PresenceContext),Ot=reactExports.useContext(MotionConfigContext),_t=Ot.reducedMotion,Qt=Ot.skipAnimations,vt=reactExports.useRef(null),St=reactExports.useRef(!1);pt=pt||kt.renderer,!vt.current&&pt&&(vt.current=pt(At,{visualState:ot,parent:yt,props:ut,presenceContext:Et,blockInitialAnimation:Et?Et.initial===!1:!1,reducedMotionConfig:_t,skipAnimations:Qt,isSVG:ht}),St.current&&vt.current&&(vt.current.manuallyAnimateOnMount=!0));const $t=vt.current,Pt=reactExports.useContext(SwitchLayoutGroupContext);$t&&!$t.projection&&ft&&($t.type==="html"||$t.type==="svg")&&createProjectionNode(vt.current,ut,ft,Pt);const Nt=reactExports.useRef(!1);reactExports.useInsertionEffect(()=>{$t&&Nt.current&&$t.update(ut,Et)});const Lt=ut[optimizedAppearDataAttribute],qt=reactExports.useRef(!!Lt&&!window.MotionHandoffIsComplete?.(Lt)&&window.MotionHasOptimisedAnimation?.(Lt));return useIsomorphicLayoutEffect$3(()=>{St.current=!0,$t&&(Nt.current=!0,window.MotionIsMounted=!0,$t.updateFeatures(),$t.scheduleRenderMicrotask(),qt.current&&$t.animationState&&$t.animationState.animateChanges())}),reactExports.useEffect(()=>{$t&&(!qt.current&&$t.animationState&&$t.animationState.animateChanges(),qt.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(Lt)}),qt.current=!1),$t.enteringChildren=void 0)}),$t}function createProjectionNode(At,ot,ut,pt){const{layoutId:ft,layout:ht,drag:yt,dragConstraints:kt,layoutScroll:Et,layoutRoot:Ot,layoutCrossfade:_t}=ot;At.projection=new ut(At.latestValues,ot["data-framer-portal-id"]?void 0:getClosestProjectingNode(At.parent)),At.projection.setOptions({layoutId:ft,layout:ht,alwaysMeasureLayout:!!yt||kt&&isRefObject(kt),visualElement:At,animationType:typeof ht=="string"?ht:"both",initialPromotionConfig:pt,crossfade:_t,layoutScroll:Et,layoutRoot:Ot})}function getClosestProjectingNode(At){if(At)return At.options.allowProjection!==!1?At.projection:getClosestProjectingNode(At.parent)}function createMotionComponent(At,{forwardMotionProps:ot=!1,type:ut}={},pt,ft){pt&&loadFeatures(pt);const ht=ut?ut==="svg":isSVGComponent(At),yt=ht?useSVGVisualState:useHTMLVisualState;function kt(Ot,_t){let Qt;const vt={...reactExports.useContext(MotionConfigContext),...Ot,layoutId:useLayoutId(Ot)},{isStatic:St}=vt,$t=useCreateMotionContext(Ot),Pt=yt(Ot,St);if(!St&&isBrowser$1){useStrictMode();const Nt=getProjectionFunctionality(vt);Qt=Nt.MeasureLayout,$t.visualElement=useVisualElement(At,Pt,vt,ft,Nt.ProjectionNode,ht)}return jsxRuntimeExports.jsxs(MotionContext.Provider,{value:$t,children:[Qt&&$t.visualElement?jsxRuntimeExports.jsx(Qt,{visualElement:$t.visualElement,...vt}):null,useRender(At,Ot,useMotionRef(Pt,$t.visualElement,_t),Pt,St,ot,ht)]})}kt.displayName=`motion.${typeof At=="string"?At:`create(${At.displayName??At.name??""})`}`;const Et=reactExports.forwardRef(kt);return Et[motionComponentSymbol]=At,Et}function useLayoutId({layoutId:At}){const ot=reactExports.useContext(LayoutGroupContext).id;return ot&&At!==void 0?ot+"-"+At:At}function useStrictMode(At,ot){reactExports.useContext(LazyContext).strict}function getProjectionFunctionality(At){const ot=getInitializedFeatureDefinitions(),{drag:ut,layout:pt}=ot;if(!ut&&!pt)return{};const ft={...ut,...pt};return{MeasureLayout:ut?.isEnabled(At)||pt?.isEnabled(At)?ft.MeasureLayout:void 0,ProjectionNode:ft.ProjectionNode}}function createMotionProxy(At,ot){if(typeof Proxy>"u")return createMotionComponent;const ut=new Map,pt=(ht,yt)=>createMotionComponent(ht,yt,At,ot),ft=(ht,yt)=>pt(ht,yt);return new Proxy(ft,{get:(ht,yt)=>yt==="create"?pt:(ut.has(yt)||ut.set(yt,createMotionComponent(yt,void 0,At,ot)),ut.get(yt))})}const createDomVisualElement=(At,ot)=>ot.isSVG??isSVGComponent(At)?new SVGVisualElement(ot):new HTMLVisualElement(ot,{allowProjection:At!==reactExports.Fragment});class AnimationFeature extends Feature{constructor(ot){super(ot),ot.animationState||(ot.animationState=createAnimationState(ot))}updateAnimationControlsSubscription(){const{animate:ot}=this.node.getProps();isAnimationControls(ot)&&(this.unmountControls=ot.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:ot}=this.node.getProps(),{animate:ut}=this.node.prevProps||{};ot!==ut&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let id$2=0;class ExitAnimationFeature extends Feature{constructor(){super(...arguments),this.id=id$2++}update(){if(!this.node.presenceContext)return;const{isPresent:ot,onExitComplete:ut}=this.node.presenceContext,{isPresent:pt}=this.node.prevPresenceContext||{};if(!this.node.animationState||ot===pt)return;const ft=this.node.animationState.setActive("exit",!ot);ut&&!ot&&ft.then(()=>{ut(this.id)})}mount(){const{register:ot,onExitComplete:ut}=this.node.presenceContext||{};ut&&ut(this.id),ot&&(this.unmount=ot(this.id))}unmount(){}}const animations={animation:{Feature:AnimationFeature},exit:{Feature:ExitAnimationFeature}};function extractEventInfo(At){return{point:{x:At.pageX,y:At.pageY}}}const addPointerInfo=At=>ot=>isPrimaryPointer(ot)&&At(ot,extractEventInfo(ot));function addPointerEvent(At,ot,ut,pt){return addDomEvent(At,ot,addPointerInfo(ut),pt)}const getContextWindow=({current:At})=>At?At.ownerDocument.defaultView:null,distance=(At,ot)=>Math.abs(At-ot);function distance2D(At,ot){const ut=distance(At.x,ot.x),pt=distance(At.y,ot.y);return Math.sqrt(ut**2+pt**2)}const overflowStyles=new Set(["auto","scroll"]);class PanSession{constructor(ot,ut,{transformPagePoint:pt,contextWindow:ft=window,dragSnapToOrigin:ht=!1,distanceThreshold:yt=3,element:kt}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=St=>{this.handleScroll(St.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const St=getPanInfo(this.lastMoveEventInfo,this.history),$t=this.startEvent!==null,Pt=distance2D(St.offset,{x:0,y:0})>=this.distanceThreshold;if(!$t&&!Pt)return;const{point:Nt}=St,{timestamp:Lt}=frameData;this.history.push({...Nt,timestamp:Lt});const{onStart:qt,onMove:jt}=this.handlers;$t||(qt&&qt(this.lastMoveEvent,St),this.startEvent=this.lastMoveEvent),jt&&jt(this.lastMoveEvent,St)},this.handlePointerMove=(St,$t)=>{this.lastMoveEvent=St,this.lastMoveEventInfo=transformPoint($t,this.transformPagePoint),frame.update(this.updatePoint,!0)},this.handlePointerUp=(St,$t)=>{this.end();const{onEnd:Pt,onSessionEnd:Nt,resumeAnimation:Lt}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&Lt&&Lt(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const qt=getPanInfo(St.type==="pointercancel"?this.lastMoveEventInfo:transformPoint($t,this.transformPagePoint),this.history);this.startEvent&&Pt&&Pt(St,qt),Nt&&Nt(St,qt)},!isPrimaryPointer(ot))return;this.dragSnapToOrigin=ht,this.handlers=ut,this.transformPagePoint=pt,this.distanceThreshold=yt,this.contextWindow=ft||window;const Et=extractEventInfo(ot),Ot=transformPoint(Et,this.transformPagePoint),{point:_t}=Ot,{timestamp:Qt}=frameData;this.history=[{..._t,timestamp:Qt}];const{onSessionStart:vt}=ut;vt&&vt(ot,getPanInfo(Ot,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp)),kt&&this.startScrollTracking(kt)}startScrollTracking(ot){let ut=ot.parentElement;for(;ut;){const pt=getComputedStyle(ut);(overflowStyles.has(pt.overflowX)||overflowStyles.has(pt.overflowY))&&this.scrollPositions.set(ut,{x:ut.scrollLeft,y:ut.scrollTop}),ut=ut.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(ot){const ut=this.scrollPositions.get(ot);if(!ut)return;const pt=ot===window,ft=pt?{x:window.scrollX,y:window.scrollY}:{x:ot.scrollLeft,y:ot.scrollTop},ht={x:ft.x-ut.x,y:ft.y-ut.y};ht.x===0&&ht.y===0||(pt?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=ht.x,this.lastMoveEventInfo.point.y+=ht.y):this.history.length>0&&(this.history[0].x-=ht.x,this.history[0].y-=ht.y),this.scrollPositions.set(ot,ft),frame.update(this.updatePoint,!0))}updateHandlers(ot){this.handlers=ot}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),cancelFrame(this.updatePoint)}}function transformPoint(At,ot){return ot?{point:ot(At.point)}:At}function subtractPoint(At,ot){return{x:At.x-ot.x,y:At.y-ot.y}}function getPanInfo({point:At},ot){return{point:At,delta:subtractPoint(At,lastDevicePoint(ot)),offset:subtractPoint(At,startDevicePoint(ot)),velocity:getVelocity(ot,.1)}}function startDevicePoint(At){return At[0]}function lastDevicePoint(At){return At[At.length-1]}function getVelocity(At,ot){if(At.length<2)return{x:0,y:0};let ut=At.length-1,pt=null;const ft=lastDevicePoint(At);for(;ut>=0&&(pt=At[ut],!(ft.timestamp-pt.timestamp>secondsToMilliseconds(ot)));)ut--;if(!pt)return{x:0,y:0};pt===At[0]&&At.length>2&&ft.timestamp-pt.timestamp>secondsToMilliseconds(ot)*2&&(pt=At[1]);const ht=millisecondsToSeconds(ft.timestamp-pt.timestamp);if(ht===0)return{x:0,y:0};const yt={x:(ft.x-pt.x)/ht,y:(ft.y-pt.y)/ht};return yt.x===1/0&&(yt.x=0),yt.y===1/0&&(yt.y=0),yt}function applyConstraints(At,{min:ot,max:ut},pt){return ot!==void 0&&At<ot?At=pt?mixNumber$1(ot,At,pt.min):Math.max(At,ot):ut!==void 0&&At>ut&&(At=pt?mixNumber$1(ut,At,pt.max):Math.min(At,ut)),At}function calcRelativeAxisConstraints(At,ot,ut){return{min:ot!==void 0?At.min+ot:void 0,max:ut!==void 0?At.max+ut-(At.max-At.min):void 0}}function calcRelativeConstraints(At,{top:ot,left:ut,bottom:pt,right:ft}){return{x:calcRelativeAxisConstraints(At.x,ut,ft),y:calcRelativeAxisConstraints(At.y,ot,pt)}}function calcViewportAxisConstraints(At,ot){let ut=ot.min-At.min,pt=ot.max-At.max;return ot.max-ot.min<At.max-At.min&&([ut,pt]=[pt,ut]),{min:ut,max:pt}}function calcViewportConstraints(At,ot){return{x:calcViewportAxisConstraints(At.x,ot.x),y:calcViewportAxisConstraints(At.y,ot.y)}}function calcOrigin(At,ot){let ut=.5;const pt=calcLength(At),ft=calcLength(ot);return ft>pt?ut=progress(ot.min,ot.max-pt,At.min):pt>ft&&(ut=progress(At.min,At.max-ft,ot.min)),clamp$2(0,1,ut)}function rebaseAxisConstraints(At,ot){const ut={};return ot.min!==void 0&&(ut.min=ot.min-At.min),ot.max!==void 0&&(ut.max=ot.max-At.min),ut}const defaultElastic=.35;function resolveDragElastic(At=defaultElastic){return At===!1?At=0:At===!0&&(At=defaultElastic),{x:resolveAxisElastic(At,"left","right"),y:resolveAxisElastic(At,"top","bottom")}}function resolveAxisElastic(At,ot,ut){return{min:resolvePointElastic(At,ot),max:resolvePointElastic(At,ut)}}function resolvePointElastic(At,ot){return typeof At=="number"?At:At[ot]||0}const elementDragControls=new WeakMap;class VisualElementDragControls{constructor(ot){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=ot}start(ot,{snapToCursor:ut=!1,distanceThreshold:pt}={}){const{presenceContext:ft}=this.visualElement;if(ft&&ft.isPresent===!1)return;const ht=Qt=>{ut&&this.snapToCursor(extractEventInfo(Qt).point),this.stopAnimation()},yt=(Qt,vt)=>{const{drag:St,dragPropagation:$t,onDragStart:Pt}=this.getProps();if(St&&!$t&&(this.openDragLock&&this.openDragLock(),this.openDragLock=setDragLock(St),!this.openDragLock))return;this.latestPointerEvent=Qt,this.latestPanInfo=vt,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(Lt=>{let qt=this.getAxisMotionValue(Lt).get()||0;if(percent$2.test(qt)){const{projection:jt}=this.visualElement;if(jt&&jt.layout){const Zt=jt.layout.layoutBox[Lt];Zt&&(qt=calcLength(Zt)*(parseFloat(qt)/100))}}this.originPoint[Lt]=qt}),Pt&&frame.update(()=>Pt(Qt,vt),!1,!0),addValueToWillChange(this.visualElement,"transform");const{animationState:Nt}=this.visualElement;Nt&&Nt.setActive("whileDrag",!0)},kt=(Qt,vt)=>{this.latestPointerEvent=Qt,this.latestPanInfo=vt;const{dragPropagation:St,dragDirectionLock:$t,onDirectionLock:Pt,onDrag:Nt}=this.getProps();if(!St&&!this.openDragLock)return;const{offset:Lt}=vt;if($t&&this.currentDirection===null){this.currentDirection=getCurrentDirection(Lt),this.currentDirection!==null&&Pt&&Pt(this.currentDirection);return}this.updateAxis("x",vt.point,Lt),this.updateAxis("y",vt.point,Lt),this.visualElement.render(),Nt&&frame.update(()=>Nt(Qt,vt),!1,!0)},Et=(Qt,vt)=>{this.latestPointerEvent=Qt,this.latestPanInfo=vt,this.stop(Qt,vt),this.latestPointerEvent=null,this.latestPanInfo=null},Ot=()=>{const{dragSnapToOrigin:Qt}=this.getProps();(Qt||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:_t}=this.getProps();this.panSession=new PanSession(ot,{onSessionStart:ht,onStart:yt,onMove:kt,onSessionEnd:Et,resumeAnimation:Ot},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:_t,distanceThreshold:pt,contextWindow:getContextWindow(this.visualElement),element:this.visualElement.current})}stop(ot,ut){const pt=ot||this.latestPointerEvent,ft=ut||this.latestPanInfo,ht=this.isDragging;if(this.cancel(),!ht||!ft||!pt)return;const{velocity:yt}=ft;this.startAnimation(yt);const{onDragEnd:kt}=this.getProps();kt&&frame.postRender(()=>kt(pt,ft))}cancel(){this.isDragging=!1;const{projection:ot,animationState:ut}=this.visualElement;ot&&(ot.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:pt}=this.getProps();!pt&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),ut&&ut.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(ot,ut,pt){const{drag:ft}=this.getProps();if(!pt||!shouldDrag(ot,ft,this.currentDirection))return;const ht=this.getAxisMotionValue(ot);let yt=this.originPoint[ot]+pt[ot];this.constraints&&this.constraints[ot]&&(yt=applyConstraints(yt,this.constraints[ot],this.elastic[ot])),ht.set(yt)}resolveConstraints(){const{dragConstraints:ot,dragElastic:ut}=this.getProps(),pt=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,ft=this.constraints;ot&&isRefObject(ot)?this.constraints||(this.constraints=this.resolveRefConstraints()):ot&&pt?this.constraints=calcRelativeConstraints(pt.layoutBox,ot):this.constraints=!1,this.elastic=resolveDragElastic(ut),ft!==this.constraints&&!isRefObject(ot)&&pt&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(ht=>{this.constraints!==!1&&this.getAxisMotionValue(ht)&&(this.constraints[ht]=rebaseAxisConstraints(pt.layoutBox[ht],this.constraints[ht]))})}resolveRefConstraints(){const{dragConstraints:ot,onMeasureDragConstraints:ut}=this.getProps();if(!ot||!isRefObject(ot))return!1;const pt=ot.current,{projection:ft}=this.visualElement;if(!ft||!ft.layout)return!1;const ht=measurePageBox(pt,ft.root,this.visualElement.getTransformPagePoint());let yt=calcViewportConstraints(ft.layout.layoutBox,ht);if(ut){const kt=ut(convertBoxToBoundingBox(yt));this.hasMutatedConstraints=!!kt,kt&&(yt=convertBoundingBoxToBox(kt))}return yt}startAnimation(ot){const{drag:ut,dragMomentum:pt,dragElastic:ft,dragTransition:ht,dragSnapToOrigin:yt,onDragTransitionEnd:kt}=this.getProps(),Et=this.constraints||{},Ot=eachAxis(_t=>{if(!shouldDrag(_t,ut,this.currentDirection))return;let Qt=Et&&Et[_t]||{};yt&&(Qt={min:0,max:0});const vt=ft?200:1e6,St=ft?40:1e7,$t={type:"inertia",velocity:pt?ot[_t]:0,bounceStiffness:vt,bounceDamping:St,timeConstant:750,restDelta:1,restSpeed:10,...ht,...Qt};return this.startAxisValueAnimation(_t,$t)});return Promise.all(Ot).then(kt)}startAxisValueAnimation(ot,ut){const pt=this.getAxisMotionValue(ot);return addValueToWillChange(this.visualElement,ot),pt.start(animateMotionValue(ot,pt,0,ut,this.visualElement,!1))}stopAnimation(){eachAxis(ot=>this.getAxisMotionValue(ot).stop())}getAxisMotionValue(ot){const ut=`_drag${ot.toUpperCase()}`,pt=this.visualElement.getProps(),ft=pt[ut];return ft||this.visualElement.getValue(ot,(pt.initial?pt.initial[ot]:void 0)||0)}snapToCursor(ot){eachAxis(ut=>{const{drag:pt}=this.getProps();if(!shouldDrag(ut,pt,this.currentDirection))return;const{projection:ft}=this.visualElement,ht=this.getAxisMotionValue(ut);if(ft&&ft.layout){const{min:yt,max:kt}=ft.layout.layoutBox[ut],Et=ht.get()||0;ht.set(ot[ut]-mixNumber$1(yt,kt,.5)+Et)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:ot,dragConstraints:ut}=this.getProps(),{projection:pt}=this.visualElement;if(!isRefObject(ut)||!pt||!this.constraints)return;this.stopAnimation();const ft={x:0,y:0};eachAxis(yt=>{const kt=this.getAxisMotionValue(yt);if(kt&&this.constraints!==!1){const Et=kt.get();ft[yt]=calcOrigin({min:Et,max:Et},this.constraints[yt])}});const{transformTemplate:ht}=this.visualElement.getProps();this.visualElement.current.style.transform=ht?ht({},""):"none",pt.root&&pt.root.updateScroll(),pt.updateLayout(),this.constraints=!1,this.resolveConstraints(),eachAxis(yt=>{if(!shouldDrag(yt,ot,null))return;const kt=this.getAxisMotionValue(yt),{min:Et,max:Ot}=this.constraints[yt];kt.set(mixNumber$1(Et,Ot,ft[yt]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;elementDragControls.set(this.visualElement,this);const ot=this.visualElement.current,ut=addPointerEvent(ot,"pointerdown",Ot=>{const{drag:_t,dragListener:Qt=!0}=this.getProps(),vt=Ot.target,St=vt!==ot&&isElementTextInput(vt);_t&&Qt&&!St&&this.start(Ot)});let pt;const ft=()=>{const{dragConstraints:Ot}=this.getProps();isRefObject(Ot)&&Ot.current&&(this.constraints=this.resolveRefConstraints(),pt||(pt=startResizeObservers(ot,Ot.current,()=>this.scalePositionWithinConstraints())))},{projection:ht}=this.visualElement,yt=ht.addEventListener("measure",ft);ht&&!ht.layout&&(ht.root&&ht.root.updateScroll(),ht.updateLayout()),frame.read(ft);const kt=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),Et=ht.addEventListener("didUpdate",(({delta:Ot,hasLayoutChanged:_t})=>{this.isDragging&&_t&&(eachAxis(Qt=>{const vt=this.getAxisMotionValue(Qt);vt&&(this.originPoint[Qt]+=Ot[Qt].translate,vt.set(vt.get()+Ot[Qt].translate))}),this.visualElement.render())}));return()=>{kt(),ut(),yt(),Et&&Et(),pt&&pt()}}getProps(){const ot=this.visualElement.getProps(),{drag:ut=!1,dragDirectionLock:pt=!1,dragPropagation:ft=!1,dragConstraints:ht=!1,dragElastic:yt=defaultElastic,dragMomentum:kt=!0}=ot;return{...ot,drag:ut,dragDirectionLock:pt,dragPropagation:ft,dragConstraints:ht,dragElastic:yt,dragMomentum:kt}}}function skipFirstCall(At){let ot=!0;return()=>{if(ot){ot=!1;return}At()}}function startResizeObservers(At,ot,ut){const pt=resize(At,skipFirstCall(ut)),ft=resize(ot,skipFirstCall(ut));return()=>{pt(),ft()}}function shouldDrag(At,ot,ut){return(ot===!0||ot===At)&&(ut===null||ut===At)}function getCurrentDirection(At,ot=10){let ut=null;return Math.abs(At.y)>ot?ut="y":Math.abs(At.x)>ot&&(ut="x"),ut}class DragGesture extends Feature{constructor(ot){super(ot),this.removeGroupControls=noop$3,this.removeListeners=noop$3,this.controls=new VisualElementDragControls(ot)}mount(){const{dragControls:ot}=this.node.getProps();ot&&(this.removeGroupControls=ot.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop$3}update(){const{dragControls:ot}=this.node.getProps(),{dragControls:ut}=this.node.prevProps||{};ot!==ut&&(this.removeGroupControls(),ot&&(this.removeGroupControls=ot.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const asyncHandler=At=>(ot,ut)=>{At&&frame.update(()=>At(ot,ut),!1,!0)};class PanGesture extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop$3}onPointerDown(ot){this.session=new PanSession(ot,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){const{onPanSessionStart:ot,onPanStart:ut,onPan:pt,onPanEnd:ft}=this.node.getProps();return{onSessionStart:asyncHandler(ot),onStart:asyncHandler(ut),onMove:asyncHandler(pt),onEnd:(ht,yt)=>{delete this.session,ft&&frame.postRender(()=>ft(ht,yt))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",ot=>this.onPointerDown(ot))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let hasTakenAnySnapshot=!1;class MeasureLayoutWithContext extends reactExports.Component{componentDidMount(){const{visualElement:ot,layoutGroup:ut,switchLayoutGroup:pt,layoutId:ft}=this.props,{projection:ht}=ot;ht&&(ut.group&&ut.group.add(ht),pt&&pt.register&&ft&&pt.register(ht),hasTakenAnySnapshot&&ht.root.didUpdate(),ht.addEventListener("animationComplete",()=>{this.safeToRemove()}),ht.setOptions({...ht.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(ot){const{layoutDependency:ut,visualElement:pt,drag:ft,isPresent:ht}=this.props,{projection:yt}=pt;return yt&&(yt.isPresent=ht,ot.layoutDependency!==ut&&yt.setOptions({...yt.options,layoutDependency:ut}),hasTakenAnySnapshot=!0,ft||ot.layoutDependency!==ut||ut===void 0||ot.isPresent!==ht?yt.willUpdate():this.safeToRemove(),ot.isPresent!==ht&&(ht?yt.promote():yt.relegate()||frame.postRender(()=>{const kt=yt.getStack();(!kt||!kt.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:ot}=this.props.visualElement;ot&&(ot.root.didUpdate(),microtask.postRender(()=>{!ot.currentAnimation&&ot.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:ot,layoutGroup:ut,switchLayoutGroup:pt}=this.props,{projection:ft}=ot;hasTakenAnySnapshot=!0,ft&&(ft.scheduleCheckAfterUnmount(),ut&&ut.group&&ut.group.remove(ft),pt&&pt.deregister&&pt.deregister(ft))}safeToRemove(){const{safeToRemove:ot}=this.props;ot&&ot()}render(){return null}}function MeasureLayout(At){const[ot,ut]=usePresence$1(),pt=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(MeasureLayoutWithContext,{...At,layoutGroup:pt,switchLayoutGroup:reactExports.useContext(SwitchLayoutGroupContext),isPresent:ot,safeToRemove:ut})}const drag={pan:{Feature:PanGesture},drag:{Feature:DragGesture,ProjectionNode:HTMLProjectionNode,MeasureLayout}};function handleHoverEvent(At,ot,ut){const{props:pt}=At;At.animationState&&pt.whileHover&&At.animationState.setActive("whileHover",ut==="Start");const ft="onHover"+ut,ht=pt[ft];ht&&frame.postRender(()=>ht(ot,extractEventInfo(ot)))}class HoverGesture extends Feature{mount(){const{current:ot}=this.node;ot&&(this.unmount=hover(ot,(ut,pt)=>(handleHoverEvent(this.node,pt,"Start"),ft=>handleHoverEvent(this.node,ft,"End"))))}unmount(){}}class FocusGesture extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let ot=!1;try{ot=this.node.current.matches(":focus-visible")}catch{ot=!0}!ot||!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=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function handlePressEvent(At,ot,ut){const{props:pt}=At;if(At.current instanceof HTMLButtonElement&&At.current.disabled)return;At.animationState&&pt.whileTap&&At.animationState.setActive("whileTap",ut==="Start");const ft="onTap"+(ut==="End"?"":ut),ht=pt[ft];ht&&frame.postRender(()=>ht(ot,extractEventInfo(ot)))}class PressGesture extends Feature{mount(){const{current:ot}=this.node;if(!ot)return;const{globalTapTarget:ut,propagate:pt}=this.node.props;this.unmount=press(ot,(ft,ht)=>(handlePressEvent(this.node,ht,"Start"),(yt,{success:kt})=>handlePressEvent(this.node,yt,kt?"End":"Cancel")),{useGlobalTarget:ut,stopPropagation:pt?.tap===!1})}unmount(){}}const observerCallbacks=new WeakMap,observers$1=new WeakMap,fireObserverCallback=At=>{const ot=observerCallbacks.get(At.target);ot&&ot(At)},fireAllObserverCallbacks=At=>{At.forEach(fireObserverCallback)};function initIntersectionObserver({root:At,...ot}){const ut=At||document;observers$1.has(ut)||observers$1.set(ut,{});const pt=observers$1.get(ut),ft=JSON.stringify(ot);return pt[ft]||(pt[ft]=new IntersectionObserver(fireAllObserverCallbacks,{root:At,...ot})),pt[ft]}function observeIntersection(At,ot,ut){const pt=initIntersectionObserver(ot);return observerCallbacks.set(At,ut),pt.observe(At),()=>{observerCallbacks.delete(At),pt.unobserve(At)}}const thresholdNames={some:0,all:1};class InViewFeature extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:ot={}}=this.node.getProps(),{root:ut,margin:pt,amount:ft="some",once:ht}=ot,yt={root:ut?ut.current:void 0,rootMargin:pt,threshold:typeof ft=="number"?ft:thresholdNames[ft]},kt=Et=>{const{isIntersecting:Ot}=Et;if(this.isInView===Ot||(this.isInView=Ot,ht&&!Ot&&this.hasEnteredView))return;Ot&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",Ot);const{onViewportEnter:_t,onViewportLeave:Qt}=this.node.getProps(),vt=Ot?_t:Qt;vt&&vt(Et)};return observeIntersection(this.node.current,yt,kt)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:ot,prevProps:ut}=this.node;["amount","margin","root"].some(hasViewportOptionChanged(ot,ut))&&this.startObserver()}unmount(){}}function hasViewportOptionChanged({viewport:At={}},{viewport:ot={}}={}){return ut=>At[ut]!==ot[ut]}const gestureAnimations={inView:{Feature:InViewFeature},tap:{Feature:PressGesture},focus:{Feature:FocusGesture},hover:{Feature:HoverGesture}},layout={layout:{ProjectionNode:HTMLProjectionNode,MeasureLayout}},featureBundle={...animations,...gestureAnimations,...drag,...layout},motion=createMotionProxy(featureBundle,createDomVisualElement);function useMotionValue(At){const ot=useConstant(()=>motionValue(At)),{isStatic:ut}=reactExports.useContext(MotionConfigContext);if(ut){const[,pt]=reactExports.useState(At);reactExports.useEffect(()=>ot.on("change",pt),[])}return ot}function isDOMKeyframes(At){return typeof At=="object"&&!Array.isArray(At)}function resolveSubjects(At,ot,ut,pt){return At==null?[]:typeof At=="string"&&isDOMKeyframes(ot)?resolveElements(At,ut,pt):At instanceof NodeList?Array.from(At):Array.isArray(At)?At.filter(ft=>ft!=null):[At]}function calculateRepeatDuration(At,ot,ut){return At*(ot+1)}function calcNextTime(At,ot,ut,pt){return typeof ot=="number"?ot:ot.startsWith("-")||ot.startsWith("+")?Math.max(0,At+parseFloat(ot)):ot==="<"?ut:ot.startsWith("<")?Math.max(0,ut+parseFloat(ot.slice(1))):pt.get(ot)??At}function eraseKeyframes(At,ot,ut){for(let pt=0;pt<At.length;pt++){const ft=At[pt];ft.at>ot&&ft.at<ut&&(removeItem$1(At,ft),pt--)}}function addKeyframes(At,ot,ut,pt,ft,ht){eraseKeyframes(At,ft,ht);for(let yt=0;yt<ot.length;yt++)At.push({value:ot[yt],at:mixNumber$1(ft,ht,pt[yt]),easing:getEasingForSegment(ut,yt)})}function normalizeTimes(At,ot){for(let ut=0;ut<At.length;ut++)At[ut]=At[ut]/(ot+1)}function compareByTime(At,ot){return At.at===ot.at?At.value===null?1:ot.value===null?-1:0:At.at-ot.at}const defaultSegmentEasing="easeInOut";function createAnimationsFromSequence(At,{defaultTransition:ot={},...ut}={},pt,ft){const ht=ot.duration||.3,yt=new Map,kt=new Map,Et={},Ot=new Map;let _t=0,Qt=0,vt=0;for(let St=0;St<At.length;St++){const $t=At[St];if(typeof $t=="string"){Ot.set($t,Qt);continue}else if(!Array.isArray($t)){Ot.set($t.name,calcNextTime(Qt,$t.at,_t,Ot));continue}let[Pt,Nt,Lt={}]=$t;Lt.at!==void 0&&(Qt=calcNextTime(Qt,Lt.at,_t,Ot));let qt=0;const jt=(Zt,Ht,Wt,wn=0,Qn=0)=>{const Jt=keyframesAsList(Zt),{delay:Gn=0,times:Jn=defaultOffset(Jt),type:Vn=ot.type||"keyframes",repeat:Fn,repeatType:Xn,repeatDelay:Ar=0,...Yn}=Ht;let{ease:lr=ot.ease||"easeOut",duration:nr}=Ht;const mr=typeof Gn=="function"?Gn(wn,Qn):Gn,Zn=Jt.length,ur=isGenerator(Vn)?Vn:ft?.[Vn||"keyframes"];if(Zn<=2&&ur){let kr=100;if(Zn===2&&isNumberKeyframesArray(Jt)){const Gr=Jt[1]-Jt[0];kr=Math.abs(Gr)}const Br={...ot,...Yn};nr!==void 0&&(Br.duration=secondsToMilliseconds(nr));const Dr=createGeneratorEasing(Br,kr,ur);lr=Dr.ease,nr=Dr.duration}nr??(nr=ht);const yr=Qt+mr;Jn.length===1&&Jn[0]===0&&(Jn[1]=1);const ir=Jn.length-Jt.length;if(ir>0&&fillOffset(Jn,ir),Jt.length===1&&Jt.unshift(null),Fn){nr=calculateRepeatDuration(nr,Fn);const kr=[...Jt],Br=[...Jn];lr=Array.isArray(lr)?[...lr]:[lr];const Dr=[...lr];for(let Gr=0;Gr<Fn;Gr++){Jt.push(...kr);for(let jr=0;jr<kr.length;jr++)Jn.push(Br[jr]+(Gr+1)),lr.push(jr===0?"linear":getEasingForSegment(Dr,jr-1))}normalizeTimes(Jn,Fn)}const Cr=yr+nr;addKeyframes(Wt,Jt,lr,Jn,yr,Cr),qt=Math.max(mr+nr,qt),vt=Math.max(Cr,vt)};if(isMotionValue(Pt)){const Zt=getSubjectSequence(Pt,kt);jt(Nt,Lt,getValueSequence("default",Zt))}else{const Zt=resolveSubjects(Pt,Nt,pt,Et),Ht=Zt.length;for(let Wt=0;Wt<Ht;Wt++){Nt=Nt,Lt=Lt;const wn=Zt[Wt],Qn=getSubjectSequence(wn,kt);for(const Jt in Nt)jt(Nt[Jt],getValueTransition(Lt,Jt),getValueSequence(Jt,Qn),Wt,Ht)}}_t=Qt,Qt+=qt}return kt.forEach((St,$t)=>{for(const Pt in St){const Nt=St[Pt];Nt.sort(compareByTime);const Lt=[],qt=[],jt=[];for(let wn=0;wn<Nt.length;wn++){const{at:Qn,value:Jt,easing:Gn}=Nt[wn];Lt.push(Jt),qt.push(progress(0,vt,Qn)),jt.push(Gn||"easeOut")}qt[0]!==0&&(qt.unshift(0),Lt.unshift(Lt[0]),jt.unshift(defaultSegmentEasing)),qt[qt.length-1]!==1&&(qt.push(1),Lt.push(null)),yt.has($t)||yt.set($t,{keyframes:{},transition:{}});const Zt=yt.get($t);Zt.keyframes[Pt]=Lt;const{type:Ht,...Wt}=ot;Zt.transition[Pt]={...Wt,duration:vt,ease:jt,times:qt,...ut}}}),yt}function getSubjectSequence(At,ot){return!ot.has(At)&&ot.set(At,{}),ot.get(At)}function getValueSequence(At,ot){return ot[At]||(ot[At]=[]),ot[At]}function keyframesAsList(At){return Array.isArray(At)?At:[At]}function getValueTransition(At,ot){return At&&At[ot]?{...At,...At[ot]}:{...At}}const isNumber$5=At=>typeof At=="number",isNumberKeyframesArray=At=>At.every(isNumber$5);function createDOMVisualElement(At){const ot={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},ut=isSVGElement$2(At)&&!isSVGSVGElement(At)?new SVGVisualElement(ot):new HTMLVisualElement(ot);ut.mount(At),visualElementStore.set(At,ut)}function createObjectVisualElement(At){const ot={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},ut=new ObjectVisualElement(ot);ut.mount(At),visualElementStore.set(At,ut)}function isSingleValue(At,ot){return isMotionValue(At)||typeof At=="number"||typeof At=="string"&&!isDOMKeyframes(ot)}function animateSubject(At,ot,ut,pt){const ft=[];if(isSingleValue(At,ot))ft.push(animateSingleValue(At,isDOMKeyframes(ot)&&ot.default||ot,ut&&(ut.default||ut)));else{if(At==null)return ft;const ht=resolveSubjects(At,ot,pt),yt=ht.length;for(let kt=0;kt<yt;kt++){const Et=ht[kt],Ot=Et instanceof Element?createDOMVisualElement:createObjectVisualElement;visualElementStore.has(Et)||Ot(Et);const _t=visualElementStore.get(Et),Qt={...ut};"delay"in Qt&&typeof Qt.delay=="function"&&(Qt.delay=Qt.delay(kt,yt)),ft.push(...animateTarget(_t,{...ot,transition:Qt},{}))}}return ft}function animateSequence(At,ot,ut){const pt=[],ft=At.map(yt=>{if(Array.isArray(yt)&&typeof yt[0]=="function"){const kt=yt[0],Et=motionValue(0);return Et.on("change",kt),yt.length===1?[Et,[0,1]]:yt.length===2?[Et,[0,1],yt[1]]:[Et,yt[1],yt[2]]}return yt});return createAnimationsFromSequence(ft,ot,ut,{spring}).forEach(({keyframes:yt,transition:kt},Et)=>{pt.push(...animateSubject(Et,yt,kt))}),pt}function isSequence(At){return Array.isArray(At)&&At.some(Array.isArray)}function createScopedAnimate(At={}){const{scope:ot,reduceMotion:ut}=At;function pt(ft,ht,yt){let kt=[],Et;if(isSequence(ft))kt=animateSequence(ft,ut!==void 0?{reduceMotion:ut,...ht}:ht,ot);else{const{onComplete:_t,...Qt}=yt||{};typeof _t=="function"&&(Et=_t),kt=animateSubject(ft,ht,ut!==void 0?{reduceMotion:ut,...Qt}:Qt,ot)}const Ot=new GroupAnimationWithThen(kt);return Et&&Ot.finished.then(Et),ot&&(ot.animations.push(Ot),Ot.finished.then(()=>{removeItem$1(ot.animations,Ot)})),Ot}return pt}const animate=createScopedAnimate();var reactDomExports=requireReactDom();const ReactDOM=getDefaultExportFromCjs(reactDomExports),UNINITIALIZED={};function useRefWithInit(At,ot){const ut=reactExports.useRef(UNINITIALIZED);return ut.current===UNINITIALIZED&&(ut.current=At(ot)),ut}const hooks$3=[];let currentInstance;function getInstance(){return currentInstance}function register$2(At){hooks$3.push(At)}function fastComponent(At){const ot=(ut,pt)=>{const ft=useRefWithInit(createInstance).current;let ht;try{currentInstance=ft;for(const yt of hooks$3)yt.before(ft);ht=At(ut,pt);for(const yt of hooks$3)yt.after(ft);ft.didInitialize=!0}finally{currentInstance=void 0}return ht};return ot.displayName=At.displayName||At.name,ot}function fastComponentRef(At){return reactExports.forwardRef(fastComponent(At))}function createInstance(){return{didInitialize:!1}}function useOnFirstRender(At){const ot=reactExports.useRef(!0);ot.current&&(ot.current=!1,At())}const noop$2=()=>{},useIsoLayoutEffect=typeof document<"u"?reactExports.useLayoutEffect:noop$2;function createFormatErrorMessage(At,ot){return function(pt,...ft){const ht=new URL(At);return ht.searchParams.set("code",pt.toString()),ft.forEach(yt=>ht.searchParams.append("args[]",yt)),`${ot} error #${pt}; visit ${ht} for the full message.`}}const formatErrorMessage=createFormatErrorMessage("https://base-ui.com/production-error","Base UI"),TooltipRootContext=reactExports.createContext(void 0);function useTooltipRootContext(At){const ot=reactExports.useContext(TooltipRootContext);if(ot===void 0&&!At)throw new Error(formatErrorMessage(72));return ot}const EMPTY$3=[];function useOnMount(At){reactExports.useEffect(At,EMPTY$3)}const EMPTY$2=0;class Timeout{static create(){return new Timeout}currentId=EMPTY$2;start(ot,ut){this.clear(),this.currentId=setTimeout(()=>{this.currentId=EMPTY$2,ut()},ot)}isStarted(){return this.currentId!==EMPTY$2}clear=()=>{this.currentId!==EMPTY$2&&(clearTimeout(this.currentId),this.currentId=EMPTY$2)};disposeEffect=()=>this.clear}function useTimeout(){const At=useRefWithInit(Timeout.create).current;return useOnMount(At.disposeEffect),At}const hasNavigator=typeof navigator<"u",nav$1=getNavigatorData(),platform$1=getPlatform(),userAgent=getUserAgent(),isWebKit$1=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),isIOS=nav$1.platform==="MacIntel"&&nav$1.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(nav$1.platform),isSafari=hasNavigator&&/apple/i.test(navigator.vendor),isAndroid=hasNavigator&&/android/i.test(platform$1)||/android/i.test(userAgent),isMac=hasNavigator&&platform$1.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,isJSDOM=userAgent.includes("jsdom/");function getNavigatorData(){if(!hasNavigator)return{platform:"",maxTouchPoints:-1};const At=navigator.userAgentData;return At?.platform?{platform:At.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function getUserAgent(){if(!hasNavigator)return"";const At=navigator.userAgentData;return At&&Array.isArray(At.brands)?At.brands.map(({brand:ot,version:ut})=>`${ot}/${ut}`).join(" "):navigator.userAgent}function getPlatform(){if(!hasNavigator)return"";const At=navigator.userAgentData;return At?.platform?At.platform:navigator.platform??""}function stopEvent(At){At.preventDefault(),At.stopPropagation()}function isReactEvent(At){return"nativeEvent"in At}function isVirtualClick(At){return At.pointerType===""&&At.isTrusted?!0:isAndroid&&At.pointerType?At.type==="click"&&At.buttons===1:At.detail===0&&!At.pointerType}function isVirtualPointerEvent(At){return isJSDOM?!1:!isAndroid&&At.width===0&&At.height===0||isAndroid&&At.width===1&&At.height===1&&At.pressure===0&&At.detail===0&&At.pointerType==="mouse"||At.width<1&&At.height<1&&At.pressure===0&&At.detail===0&&At.pointerType==="touch"}function isMouseLikePointerType(At,ot){const ut=["mouse","pen"];return ot||ut.push("",void 0),ut.includes(At)}function isClickLikeEvent(At){const ot=At.type;return ot==="click"||ot==="mousedown"||ot==="keydown"||ot==="keyup"}function resolveValue(At,ot){return ot!=null&&!isMouseLikePointerType(ot)?0:typeof At=="function"?At():At}function getDelay(At,ot,ut){const pt=resolveValue(At,ut);return typeof pt=="number"?pt:pt?.[ot]}function getRestMs(At){return typeof At=="function"?At():At}function isClickLikeOpenEvent(At,ot){return ot||At==="click"||At==="mousedown"}function NOOP(){}const EMPTY_ARRAY=Object.freeze([]),EMPTY_OBJECT=Object.freeze({}),TYPEAHEAD_RESET_MS=500,PATIENT_CLICK_THRESHOLD=500,DISABLED_TRANSITIONS_STYLE={style:{transition:"none"}},CLICK_TRIGGER_IDENTIFIER="data-base-ui-click-trigger",DROPDOWN_COLLISION_AVOIDANCE={fallbackAxisSide:"none"},POPUP_COLLISION_AVOIDANCE={fallbackAxisSide:"end"},ownerVisuallyHidden={clipPath:"inset(50%)",position:"fixed",top:0,left:0},none$3="none",triggerPress="trigger-press",triggerHover="trigger-hover",triggerFocus="trigger-focus",outsidePress="outside-press",itemPress="item-press",closePress="close-press",focusOut="focus-out",escapeKey="escape-key",listNavigation="list-navigation",cancelOpen="cancel-open",siblingOpen="sibling-open",disabled="disabled",imperativeAction="imperative-action",windowResize="window-resize";function createChangeEventDetails(At,ot,ut,pt){let ft=!1,ht=!1;const yt=EMPTY_OBJECT;return{reason:At,event:ot??new Event("base-ui"),cancel(){ft=!0},allowPropagation(){ht=!0},get isCanceled(){return ft},get isPropagationAllowed(){return ht},trigger:ut,...yt}}const FloatingDelayGroupContext=reactExports.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Timeout,currentIdRef:{current:null},currentContextRef:{current:null}});function FloatingDelayGroup(At){const{children:ot,delay:ut,timeoutMs:pt=0}=At,ft=reactExports.useRef(ut),ht=reactExports.useRef(ut),yt=reactExports.useRef(null),kt=reactExports.useRef(null),Et=useTimeout();return jsxRuntimeExports.jsx(FloatingDelayGroupContext.Provider,{value:reactExports.useMemo(()=>({hasProvider:!0,delayRef:ft,initialDelayRef:ht,currentIdRef:yt,timeoutMs:pt,currentContextRef:kt,timeout:Et}),[pt,Et]),children:ot})}function useDelayGroup(At,ot={open:!1}){const ut="rootStore"in At?At.rootStore:At,pt=ut.useState("floatingId"),{open:ft}=ot,ht=reactExports.useContext(FloatingDelayGroupContext),{currentIdRef:yt,delayRef:kt,timeoutMs:Et,initialDelayRef:Ot,currentContextRef:_t,hasProvider:Qt,timeout:vt}=ht,[St,$t]=reactExports.useState(!1);return useIsoLayoutEffect(()=>{function Pt(){$t(!1),_t.current?.setIsInstantPhase(!1),yt.current=null,_t.current=null,kt.current=Ot.current}if(yt.current&&!ft&&yt.current===pt){if($t(!1),Et){const Nt=pt;return vt.start(Et,()=>{ut.select("open")||yt.current&&yt.current!==Nt||Pt()}),()=>{vt.clear()}}Pt()}},[ft,pt,yt,kt,Et,Ot,_t,vt,ut]),useIsoLayoutEffect(()=>{if(!ft)return;const Pt=_t.current,Nt=yt.current;vt.clear(),_t.current={onOpenChange:ut.setOpen,setIsInstantPhase:$t},yt.current=pt,kt.current={open:0,close:getDelay(Ot.current,"close")},Nt!==null&&Nt!==pt?($t(!0),Pt?.setIsInstantPhase(!0),Pt?.onOpenChange(!1,createChangeEventDetails(none$3))):($t(!1),Pt?.setIsInstantPhase(!1))},[ft,pt,ut,yt,kt,Et,Ot,_t,vt]),useIsoLayoutEffect(()=>()=>{_t.current=null},[_t]),reactExports.useMemo(()=>({hasProvider:Qt,delayRef:kt,isInstantPhase:St}),[Qt,kt,St])}function hasWindow(){return typeof window<"u"}function getNodeName(At){return isNode$1(At)?(At.nodeName||"").toLowerCase():"#document"}function getWindow$1(At){var ot;return(At==null||(ot=At.ownerDocument)==null?void 0:ot.defaultView)||window}function getDocumentElement(At){var ot;return(ot=(isNode$1(At)?At.ownerDocument:At.document)||window.document)==null?void 0:ot.documentElement}function isNode$1(At){return hasWindow()?At instanceof Node||At instanceof getWindow$1(At).Node:!1}function isElement(At){return hasWindow()?At instanceof Element||At instanceof getWindow$1(At).Element:!1}function isHTMLElement$1(At){return hasWindow()?At instanceof HTMLElement||At instanceof getWindow$1(At).HTMLElement:!1}function isShadowRoot(At){return!hasWindow()||typeof ShadowRoot>"u"?!1:At instanceof ShadowRoot||At instanceof getWindow$1(At).ShadowRoot}function isOverflowElement(At){const{overflow:ot,overflowX:ut,overflowY:pt,display:ft}=getComputedStyle$1(At);return/auto|scroll|overlay|hidden|clip/.test(ot+pt+ut)&&ft!=="inline"&&ft!=="contents"}function isTableElement(At){return/^(table|td|th)$/.test(getNodeName(At))}function isTopLayer(At){try{if(At.matches(":popover-open"))return!0}catch{}try{return At.matches(":modal")}catch{return!1}}const willChangeRe=/transform|translate|scale|rotate|perspective|filter/,containRe=/paint|layout|strict|content/,isNotNone=At=>!!At&&At!=="none";let isWebKitValue;function isContainingBlock(At){const ot=isElement(At)?getComputedStyle$1(At):At;return isNotNone(ot.transform)||isNotNone(ot.translate)||isNotNone(ot.scale)||isNotNone(ot.rotate)||isNotNone(ot.perspective)||!isWebKit()&&(isNotNone(ot.backdropFilter)||isNotNone(ot.filter))||willChangeRe.test(ot.willChange||"")||containRe.test(ot.contain||"")}function getContainingBlock(At){let ot=getParentNode(At);for(;isHTMLElement$1(ot)&&!isLastTraversableNode(ot);){if(isContainingBlock(ot))return ot;if(isTopLayer(ot))return null;ot=getParentNode(ot)}return null}function isWebKit(){return isWebKitValue==null&&(isWebKitValue=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),isWebKitValue}function isLastTraversableNode(At){return/^(html|body|#document)$/.test(getNodeName(At))}function getComputedStyle$1(At){return getWindow$1(At).getComputedStyle(At)}function getNodeScroll(At){return isElement(At)?{scrollLeft:At.scrollLeft,scrollTop:At.scrollTop}:{scrollLeft:At.scrollX,scrollTop:At.scrollY}}function getParentNode(At){if(getNodeName(At)==="html")return At;const ot=At.assignedSlot||At.parentNode||isShadowRoot(At)&&At.host||getDocumentElement(At);return isShadowRoot(ot)?ot.host:ot}function getNearestOverflowAncestor(At){const ot=getParentNode(At);return isLastTraversableNode(ot)?At.ownerDocument?At.ownerDocument.body:At.body:isHTMLElement$1(ot)&&isOverflowElement(ot)?ot:getNearestOverflowAncestor(ot)}function getOverflowAncestors(At,ot,ut){var pt;ot===void 0&&(ot=[]),ut===void 0&&(ut=!0);const ft=getNearestOverflowAncestor(At),ht=ft===((pt=At.ownerDocument)==null?void 0:pt.body),yt=getWindow$1(ft);if(ht){const kt=getFrameElement(yt);return ot.concat(yt,yt.visualViewport||[],isOverflowElement(ft)?ft:[],kt&&ut?getOverflowAncestors(kt):[])}else return ot.concat(ft,getOverflowAncestors(ft,[],ut))}function getFrameElement(At){return At.parent&&Object.getPrototypeOf(At.parent)?At.frameElement:null}function addEventListener(At,ot,ut,pt){return At.addEventListener(ot,ut,pt),()=>{At.removeEventListener(ot,ut,pt)}}function mergeCleanups(...At){return()=>{for(let ot=0;ot<At.length;ot+=1){const ut=At[ot];ut&&ut()}}}function useMergedRefs(At,ot,ut,pt){const ft=useRefWithInit(createForkRef).current;return didChange(ft,At,ot,ut,pt)&&update(ft,[At,ot,ut,pt]),ft.callback}function useMergedRefsN(At){const ot=useRefWithInit(createForkRef).current;return didChangeN(ot,At)&&update(ot,At),ot.callback}function createForkRef(){return{callback:null,cleanup:null,refs:[]}}function didChange(At,ot,ut,pt,ft){return At.refs[0]!==ot||At.refs[1]!==ut||At.refs[2]!==pt||At.refs[3]!==ft}function didChangeN(At,ot){return At.refs.length!==ot.length||At.refs.some((ut,pt)=>ut!==ot[pt])}function update(At,ot){if(At.refs=ot,ot.every(ut=>ut==null)){At.callback=null;return}At.callback=ut=>{if(At.cleanup&&(At.cleanup(),At.cleanup=null),ut!=null){const pt=Array(ot.length).fill(null);for(let ft=0;ft<ot.length;ft+=1){const ht=ot[ft];if(ht!=null)switch(typeof ht){case"function":{const yt=ht(ut);typeof yt=="function"&&(pt[ft]=yt);break}case"object":{ht.current=ut;break}}}At.cleanup=()=>{for(let ft=0;ft<ot.length;ft+=1){const ht=ot[ft];if(ht!=null)switch(typeof ht){case"function":{const yt=pt[ft];typeof yt=="function"?yt():ht(null);break}case"object":{ht.current=null;break}}}}}}}function useValueAsRef(At){const ot=useRefWithInit(createLatestRef,At).current;return ot.next=At,useIsoLayoutEffect(ot.effect),ot}function createLatestRef(At){const ot={current:At,next:At,effect:()=>{ot.current=ot.next}};return ot}const useInsertionEffect$1=React$1[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],useSafeInsertionEffect=useInsertionEffect$1&&useInsertionEffect$1!==reactExports.useLayoutEffect?useInsertionEffect$1:At=>At();function useStableCallback$1(At){const ot=useRefWithInit(createStableCallback).current;return ot.next=At,useSafeInsertionEffect(ot.effect),ot.trampoline}function createStableCallback(){const At={next:void 0,callback:assertNotCalled,trampoline:(...ot)=>At.callback?.(...ot),effect:()=>{At.callback=At.next}};return At}function assertNotCalled(){}const EMPTY$1=null;class Scheduler{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=ot=>{this.isScheduled=!1;const ut=this.callbacks,pt=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,pt>0)for(let ft=0;ft<ut.length;ft+=1)ut[ft]?.(ot)};request(ot){const ut=this.nextId;return this.nextId+=1,this.callbacks.push(ot),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),ut}cancel(ot){const ut=ot-this.startId;ut<0||ut>=this.callbacks.length||(this.callbacks[ut]=null,this.callbacksCount-=1)}}const scheduler=new Scheduler;class AnimationFrame{static create(){return new AnimationFrame}static request(ot){return scheduler.request(ot)}static cancel(ot){return scheduler.cancel(ot)}currentId=EMPTY$1;request(ot){this.cancel(),this.currentId=scheduler.request(()=>{this.currentId=EMPTY$1,ot()})}cancel=()=>{this.currentId!==EMPTY$1&&(scheduler.cancel(this.currentId),this.currentId=EMPTY$1)};disposeEffect=()=>this.cancel}function useAnimationFrame(){const At=useRefWithInit(AnimationFrame.create).current;return useOnMount(At.disposeEffect),At}function ownerDocument(At){return At?.ownerDocument||document}const visuallyHiddenBase={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},visuallyHidden={...visuallyHiddenBase,position:"fixed",top:0,left:0},visuallyHiddenInput={...visuallyHiddenBase,position:"absolute"},FocusGuard=reactExports.forwardRef(function(ot,ut){const[pt,ft]=reactExports.useState();useIsoLayoutEffect(()=>{isSafari&&ft("button")},[]);const ht={tabIndex:0,role:pt};return jsxRuntimeExports.jsx("span",{...ot,ref:ut,style:visuallyHidden,"aria-hidden":pt?void 0:!0,...ht,"data-base-ui-focus-guard":""})}),FOCUSABLE_ATTRIBUTE="data-base-ui-focusable",ACTIVE_KEY="active",SELECTED_KEY="selected",TYPEABLE_SELECTOR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ARROW_LEFT$1="ArrowLeft",ARROW_RIGHT$1="ArrowRight",ARROW_UP$1="ArrowUp",ARROW_DOWN$1="ArrowDown";function activeElement(At){let ot=At.activeElement;for(;ot?.shadowRoot?.activeElement!=null;)ot=ot.shadowRoot.activeElement;return ot}function contains$2(At,ot){if(!At||!ot)return!1;const ut=ot.getRootNode?.();if(At.contains(ot))return!0;if(ut&&isShadowRoot(ut)){let pt=ot;for(;pt;){if(At===pt)return!0;pt=pt.parentNode||pt.host}}return!1}function getTarget(At){return"composedPath"in At?At.composedPath()[0]:At.target}function isTargetInsideEnabledTrigger(At,ot){if(!isElement(At))return!1;const ut=At;if(ot.hasElement(ut))return!ut.hasAttribute("data-trigger-disabled");for(const[,pt]of ot.entries())if(contains$2(pt,ut))return!pt.hasAttribute("data-trigger-disabled");return!1}function isEventTargetWithin(At,ot){if(ot==null)return!1;if("composedPath"in At)return At.composedPath().includes(ot);const ut=At;return ut.target!=null&&ot.contains(ut.target)}function isRootElement(At){return At.matches("html,body")}function isTypeableElement(At){return isHTMLElement$1(At)&&At.matches(TYPEABLE_SELECTOR)}function isInteractiveElement(At){return At?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${TYPEABLE_SELECTOR}`)!=null}function isTypeableCombobox(At){return At?At.getAttribute("role")==="combobox"&&isTypeableElement(At):!1}function matchesFocusVisible(At){if(!At||isJSDOM)return!0;try{return At.matches(":focus-visible")}catch{return!0}}function getFloatingFocusElement(At){return At?At.hasAttribute(FOCUSABLE_ATTRIBUTE)?At:At.querySelector(`[${FOCUSABLE_ATTRIBUTE}]`)||At:null}const sides=["top","right","bottom","left"],min$1=Math.min,max$1=Math.max,round$1=Math.round,floor=Math.floor,createCoords=At=>({x:At,y:At}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};function clamp$1(At,ot,ut){return max$1(At,min$1(ot,ut))}function evaluate(At,ot){return typeof At=="function"?At(ot):At}function getSide(At){return At.split("-")[0]}function getAlignment(At){return At.split("-")[1]}function getOppositeAxis(At){return At==="x"?"y":"x"}function getAxisLength(At){return At==="y"?"height":"width"}function getSideAxis(At){const ot=At[0];return ot==="t"||ot==="b"?"y":"x"}function getAlignmentAxis(At){return getOppositeAxis(getSideAxis(At))}function getAlignmentSides(At,ot,ut){ut===void 0&&(ut=!1);const pt=getAlignment(At),ft=getAlignmentAxis(At),ht=getAxisLength(ft);let yt=ft==="x"?pt===(ut?"end":"start")?"right":"left":pt==="start"?"bottom":"top";return ot.reference[ht]>ot.floating[ht]&&(yt=getOppositePlacement(yt)),[yt,getOppositePlacement(yt)]}function getExpandedPlacements(At){const ot=getOppositePlacement(At);return[getOppositeAlignmentPlacement(At),ot,getOppositeAlignmentPlacement(ot)]}function getOppositeAlignmentPlacement(At){return At.includes("start")?At.replace("start","end"):At.replace("end","start")}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(At,ot,ut){switch(At){case"top":case"bottom":return ut?ot?rlPlacement:lrPlacement:ot?lrPlacement:rlPlacement;case"left":case"right":return ot?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(At,ot,ut,pt){const ft=getAlignment(At);let ht=getSideList(getSide(At),ut==="start",pt);return ft&&(ht=ht.map(yt=>yt+"-"+ft),ot&&(ht=ht.concat(ht.map(getOppositeAlignmentPlacement)))),ht}function getOppositePlacement(At){const ot=getSide(At);return oppositeSideMap[ot]+At.slice(ot.length)}function expandPaddingObject(At){return{top:0,right:0,bottom:0,left:0,...At}}function getPaddingObject(At){return typeof At!="number"?expandPaddingObject(At):{top:At,right:At,bottom:At,left:At}}function rectToClientRect(At){const{x:ot,y:ut,width:pt,height:ft}=At;return{width:pt,height:ft,top:ut,left:ot,right:ot+pt,bottom:ut+ft,x:ot,y:ut}}function isDifferentGridRow(At,ot,ut){return Math.floor(At/ot)!==ut}function isIndexOutOfListBounds(At,ot){return ot<0||ot>=At.length}function getMinListIndex(At,ot){return findNonDisabledListIndex(At.current,{disabledIndices:ot})}function getMaxListIndex(At,ot){return findNonDisabledListIndex(At.current,{decrement:!0,startingIndex:At.current.length,disabledIndices:ot})}function findNonDisabledListIndex(At,{startingIndex:ot=-1,decrement:ut=!1,disabledIndices:pt,amount:ft=1}={}){let ht=ot;do ht+=ut?-ft:ft;while(ht>=0&&ht<=At.length-1&&isListIndexDisabled(At,ht,pt));return ht}function getGridNavigatedIndex(At,{event:ot,orientation:ut,loopFocus:pt,onLoop:ft,rtl:ht,cols:yt,disabledIndices:kt,minIndex:Et,maxIndex:Ot,prevIndex:_t,stopEvent:Qt=!1}){let vt=_t,St;if(ot.key===ARROW_UP$1?St="up":ot.key===ARROW_DOWN$1&&(St="down"),St){const $t=[],Pt=[];let Nt=!1,Lt=0;{let Jt=null,Gn=-1;At.forEach((Jn,Vn)=>{if(Jn==null)return;Lt+=1;const Fn=Jn.closest('[role="row"]');Fn&&(Nt=!0),(Fn!==Jt||Gn===-1)&&(Jt=Fn,Gn+=1,$t[Gn]=[]),$t[Gn].push(Vn),Pt[Vn]=Gn})}let qt=!1,jt=0;if(Nt)for(const Jt of $t){const Gn=Jt.length;Gn>jt&&(jt=Gn),Gn!==yt&&(qt=!0)}const Zt=qt&&Lt<At.length,Ht=jt||yt,Wt=Jt=>{if(!qt||_t===-1)return;const Gn=Pt[_t];if(Gn==null)return;const Jn=$t[Gn].indexOf(_t),Vn=Jt==="up"?-1:1;for(let Fn=Gn+Vn,Xn=0;Xn<$t.length;Xn+=1,Fn+=Vn){if(Fn<0||Fn>=$t.length){if(!pt||Zt)return;if(Fn=Fn<0?$t.length-1:0,ft){const Yn=Math.min(Jn,$t[Fn].length-1),lr=$t[Fn][Yn]??$t[Fn][0],nr=ft(ot,_t,lr);Fn=Pt[nr]??Fn}}const Ar=$t[Fn];for(let Yn=Math.min(Jn,Ar.length-1);Yn>=0;Yn-=1){const lr=Ar[Yn];if(!isListIndexDisabled(At,lr,kt))return lr}}},wn=Jt=>{if(!Zt||_t===-1)return;const Gn=_t%Ht,Jn=Jt==="up"?-Ht:Ht,Vn=Ot-Ot%Ht,Fn=floor(Ot/Ht)+1;for(let Xn=_t-Gn+Jn,Ar=0;Ar<Fn;Ar+=1,Xn+=Jn){if(Xn<0||Xn>Ot){if(!pt)return;Xn=Xn<0?Vn:0}const Yn=Math.min(Xn+Ht-1,Ot);for(let lr=Math.min(Xn+Gn,Yn);lr>=Xn;lr-=1)if(!isListIndexDisabled(At,lr,kt))return lr}};Qt&&stopEvent(ot);const Qn=Wt(St)??wn(St);if(Qn!==void 0)vt=Qn;else if(_t===-1)vt=St==="up"?Ot:Et;else if(vt=findNonDisabledListIndex(At,{startingIndex:_t,amount:Ht,decrement:St==="up",disabledIndices:kt}),pt){if(St==="up"&&(_t-Ht<Et||vt<0)){const Jt=_t%Ht,Gn=Ot%Ht,Jn=Ot-(Gn-Jt);Gn===Jt?vt=Ot:vt=Gn>Jt?Jn:Jn-Ht,ft&&(vt=ft(ot,_t,vt))}St==="down"&&_t+Ht>Ot&&(vt=findNonDisabledListIndex(At,{startingIndex:_t%Ht-Ht,amount:Ht,disabledIndices:kt}),ft&&(vt=ft(ot,_t,vt)))}isIndexOutOfListBounds(At,vt)&&(vt=_t)}if(ut==="both"){const $t=floor(_t/yt);ot.key===(ht?ARROW_LEFT$1:ARROW_RIGHT$1)&&(Qt&&stopEvent(ot),_t%yt!==yt-1?(vt=findNonDisabledListIndex(At,{startingIndex:_t,disabledIndices:kt}),pt&&isDifferentGridRow(vt,yt,$t)&&(vt=findNonDisabledListIndex(At,{startingIndex:_t-_t%yt-1,disabledIndices:kt}),ft&&(vt=ft(ot,_t,vt)))):pt&&(vt=findNonDisabledListIndex(At,{startingIndex:_t-_t%yt-1,disabledIndices:kt}),ft&&(vt=ft(ot,_t,vt))),isDifferentGridRow(vt,yt,$t)&&(vt=_t)),ot.key===(ht?ARROW_RIGHT$1:ARROW_LEFT$1)&&(Qt&&stopEvent(ot),_t%yt!==0?(vt=findNonDisabledListIndex(At,{startingIndex:_t,decrement:!0,disabledIndices:kt}),pt&&isDifferentGridRow(vt,yt,$t)&&(vt=findNonDisabledListIndex(At,{startingIndex:_t+(yt-_t%yt),decrement:!0,disabledIndices:kt}),ft&&(vt=ft(ot,_t,vt)))):pt&&(vt=findNonDisabledListIndex(At,{startingIndex:_t+(yt-_t%yt),decrement:!0,disabledIndices:kt}),ft&&(vt=ft(ot,_t,vt))),isDifferentGridRow(vt,yt,$t)&&(vt=_t));const Pt=floor(Ot/yt)===$t;isIndexOutOfListBounds(At,vt)&&(pt&&Pt?(vt=ot.key===(ht?ARROW_RIGHT$1:ARROW_LEFT$1)?Ot:findNonDisabledListIndex(At,{startingIndex:_t-_t%yt-1,disabledIndices:kt}),ft&&(vt=ft(ot,_t,vt))):vt=_t)}return vt}function createGridCellMap(At,ot,ut){const pt=[];let ft=0;return At.forEach(({width:ht,height:yt},kt)=>{let Et=!1;for(;!Et;){const Ot=[];for(let _t=0;_t<ht;_t+=1)for(let Qt=0;Qt<yt;Qt+=1)Ot.push(ft+_t+Qt*ot);ft%ot+ht<=ot&&Ot.every(_t=>pt[_t]==null)?(Ot.forEach(_t=>{pt[_t]=kt}),Et=!0):ft+=1}}),[...pt]}function getGridCellIndexOfCorner(At,ot,ut,pt,ft){if(At===-1)return-1;const ht=ut.indexOf(At),yt=ot[At];switch(ft){case"tl":return ht;case"tr":return yt?ht+yt.width-1:ht;case"bl":return yt?ht+(yt.height-1)*pt:ht;case"br":return ut.lastIndexOf(At);default:return-1}}function getGridCellIndices(At,ot){return ot.flatMap((ut,pt)=>At.includes(ut)?[pt]:[])}function isListIndexDisabled(At,ot,ut){if(typeof ut=="function"?ut(ot):ut?.includes(ot)??!1)return!0;const ft=At[ot];return ft?isElementVisible(ft)?!ut&&(ft.hasAttribute("disabled")||ft.getAttribute("aria-disabled")==="true"):!0:!1}function isElementVisible(At){return typeof At.checkVisibility=="function"?At.checkVisibility():getComputedStyle$1(At).display!=="none"}const CANDIDATE_SELECTOR='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function getParentElement(At){const ot=At.assignedSlot;if(ot)return ot;if(At.parentElement)return At.parentElement;const ut=At.getRootNode();return isShadowRoot(ut)?ut.host:null}function getDetailsSummary(At){for(const ot of Array.from(At.children))if(getNodeName(ot)==="summary")return ot;return null}function isWithinOpenDetailsSummary(At,ot){const ut=getDetailsSummary(ot);return!!ut&&(At===ut||contains$2(ut,At))}function isFocusableCandidate(At){const ot=At?getNodeName(At):"";return At!=null&&At.matches(CANDIDATE_SELECTOR)&&(ot!=="summary"||At.parentElement!=null&&getNodeName(At.parentElement)==="details"&&getDetailsSummary(At.parentElement)===At)&&(ot!=="details"||getDetailsSummary(At)==null)&&(ot!=="input"||At.type!=="hidden")}function isFocusableElement(At){if(!isFocusableCandidate(At)||!At.isConnected||At.matches(":disabled"))return!1;for(let ot=At;ot;ot=getParentElement(ot)){const ut=getNodeName(ot)==="slot";if(ot.hasAttribute("inert")||ot!==At&&getNodeName(ot)==="details"&&!ot.open&&!isWithinOpenDetailsSummary(At,ot)||ot.hasAttribute("hidden")||!ut&&!isElementVisible(ot))return!1}return!0}function getTabIndex(At){const ot=At.tabIndex;if(ot<0){const ut=getNodeName(At);if(ut==="details"||ut==="audio"||ut==="video"||isHTMLElement$1(At)&&At.isContentEditable)return 0}return ot}function getNamedRadioInput(At){if(getNodeName(At)!=="input")return null;const ot=At;return ot.type==="radio"&&ot.name!==""?ot:null}function isTabbableRadio(At,ot){const ut=getNamedRadioInput(At);if(!ut)return!0;const pt=ot.find(ft=>{const ht=getNamedRadioInput(ft);return ht?.name===ut.name&&ht.form===ut.form&&ht.checked});return pt?pt===ut:ot.find(ft=>{const ht=getNamedRadioInput(ft);return ht?.name===ut.name&&ht.form===ut.form})===ut}function getComposedChildren(At){if(isHTMLElement$1(At)&&getNodeName(At)==="slot"){const ot=At.assignedElements({flatten:!0});if(ot.length>0)return ot}return isHTMLElement$1(At)&&At.shadowRoot?Array.from(At.shadowRoot.children):Array.from(At.children)}function appendCandidates(At,ot){getComposedChildren(At).forEach(ut=>{isFocusableCandidate(ut)&&ot.push(ut),appendCandidates(ut,ot)})}function appendMatchingElements(At,ot,ut){getComposedChildren(At).forEach(pt=>{isHTMLElement$1(pt)&&pt.matches(ot)&&ut.push(pt),appendMatchingElements(pt,ot,ut)})}function isTabbable(At){return isFocusableElement(At)&&getTabIndex(At)>=0}function focusable(At){const ot=[];return appendCandidates(At,ot),ot.filter(isFocusableElement)}function tabbable(At){const ot=focusable(At);return ot.filter(ut=>getTabIndex(ut)>=0&&isTabbableRadio(ut,ot))}function getTabbableIn(At,ot){const ut=tabbable(At),pt=ut.length;if(pt===0)return;const ft=activeElement(ownerDocument(At)),ht=ut.indexOf(ft),yt=ht===-1?ot===1?0:pt-1:ht+ot;return ut[yt]}function getNextTabbable(At){return getTabbableIn(ownerDocument(At).body,1)||At}function getPreviousTabbable(At){return getTabbableIn(ownerDocument(At).body,-1)||At}function getTabbableNearElement(At,ot){if(!At)return null;const ut=tabbable(ownerDocument(At).body),pt=ut.length;if(pt===0)return null;const ft=ut.indexOf(At);if(ft===-1)return null;const ht=(ft+ot+pt)%pt;return ut[ht]}function getTabbableAfterElement(At){return getTabbableNearElement(At,1)}function getTabbableBeforeElement(At){return getTabbableNearElement(At,-1)}function isOutsideEvent(At,ot){const ut=ot||At.currentTarget,pt=At.relatedTarget;return!pt||!contains$2(ut,pt)}function disableFocusInside(At){tabbable(At).forEach(ut=>{ut.dataset.tabindex=ut.getAttribute("tabindex")||"",ut.setAttribute("tabindex","-1")})}function enableFocusInside(At){const ot=[];appendMatchingElements(At,"[data-tabindex]",ot),ot.forEach(ut=>{const pt=ut.dataset.tabindex;delete ut.dataset.tabindex,pt?ut.setAttribute("tabindex",pt):ut.removeAttribute("tabindex")})}function getNodeChildren(At,ot,ut=!0){return At.filter(ft=>ft.parentId===ot).flatMap(ft=>[...!ut||ft.context?.open?[ft]:[],...getNodeChildren(At,ft.id,ut)])}function getNodeAncestors(At,ot){let ut=[],pt=At.find(ft=>ft.id===ot)?.parentId;for(;pt;){const ft=At.find(ht=>ht.id===pt);pt=ft?.parentId,ft&&(ut=ut.concat(ft))}return ut}function createAttribute(At){return`data-base-ui-${At}`}let rafId=0;function enqueueFocus(At,ot={}){const{preventScroll:ut=!1,cancelPrevious:pt=!0,sync:ft=!1}=ot;pt&&cancelAnimationFrame(rafId);const ht=()=>At?.focus({preventScroll:ut});if(ft)return ht(),NOOP;const yt=requestAnimationFrame(ht);return rafId=yt,()=>{rafId===yt&&(cancelAnimationFrame(yt),rafId=0)}}const counters={inert:new WeakMap,"aria-hidden":new WeakMap},markerName="data-base-ui-inert",uncontrolledElementsSets={inert:new WeakSet,"aria-hidden":new WeakSet};let markerCounterMap=new WeakMap,lockCount$1=0;function getUncontrolledElementsSet(At){return uncontrolledElementsSets[At]}function unwrapHost$1(At){return At?isShadowRoot(At)?At.host:unwrapHost$1(At.parentNode):null}const correctElements=(At,ot)=>ot.map(ut=>{if(At.contains(ut))return ut;const pt=unwrapHost$1(ut);return At.contains(pt)?pt:null}).filter(ut=>ut!=null),buildKeepSet=At=>{const ot=new Set;return At.forEach(ut=>{let pt=ut;for(;pt&&!ot.has(pt);)ot.add(pt),pt=pt.parentNode}),ot},collectOutsideElements=(At,ot,ut)=>{const pt=[],ft=ht=>{!ht||ut.has(ht)||Array.from(ht.children).forEach(yt=>{getNodeName(yt)!=="script"&&(ot.has(yt)?ft(yt):pt.push(yt))})};return ft(At),pt};function applyAttributeToOthers$1(At,ot,ut,pt,{mark:ft=!0,markerIgnoreElements:ht=[]}){const yt=pt?"inert":ut?"aria-hidden":null;let kt=null,Et=null;const Ot=correctElements(ot,At),_t=ft?correctElements(ot,ht):[],Qt=new Set(_t),vt=ft?collectOutsideElements(ot,buildKeepSet(Ot),new Set(Ot)).filter(Pt=>!Qt.has(Pt)):[],St=[],$t=[];if(yt){const Pt=counters[yt],Nt=getUncontrolledElementsSet(yt);Et=Nt,kt=Pt;const Lt=correctElements(ot,Array.from(ot.querySelectorAll("[aria-live]"))),qt=Ot.concat(Lt);collectOutsideElements(ot,buildKeepSet(qt),new Set(qt)).forEach(Zt=>{const Ht=Zt.getAttribute(yt),Wt=Ht!==null&&Ht!=="false",wn=(Pt.get(Zt)||0)+1;Pt.set(Zt,wn),St.push(Zt),wn===1&&Wt&&Nt.add(Zt),Wt||Zt.setAttribute(yt,yt==="inert"?"":"true")})}return ft&&vt.forEach(Pt=>{const Nt=(markerCounterMap.get(Pt)||0)+1;markerCounterMap.set(Pt,Nt),$t.push(Pt),Nt===1&&Pt.setAttribute(markerName,"")}),lockCount$1+=1,()=>{kt&&St.forEach(Pt=>{const Lt=(kt.get(Pt)||0)-1;kt.set(Pt,Lt),Lt||(!Et?.has(Pt)&&yt&&Pt.removeAttribute(yt),Et?.delete(Pt))}),ft&&$t.forEach(Pt=>{const Nt=(markerCounterMap.get(Pt)||0)-1;markerCounterMap.set(Pt,Nt),Nt||Pt.removeAttribute(markerName)}),lockCount$1-=1,lockCount$1||(counters.inert=new WeakMap,counters["aria-hidden"]=new WeakMap,uncontrolledElementsSets.inert=new WeakSet,uncontrolledElementsSets["aria-hidden"]=new WeakSet,markerCounterMap=new WeakMap)}}function markOthers(At,ot={}){const{ariaHidden:ut=!1,inert:pt=!1,mark:ft=!0,markerIgnoreElements:ht=[]}=ot,yt=ownerDocument(At[0]).body;return applyAttributeToOthers$1(At,yt,ut,pt,{mark:ft,markerIgnoreElements:ht})}const SafeReact={...React$1};let globalId=0;function useGlobalId(At,ot="mui"){const[ut,pt]=reactExports.useState(At),ft=At||ut;return reactExports.useEffect(()=>{ut==null&&(globalId+=1,pt(`${ot}-${globalId}`))},[ut,ot]),ft}const maybeReactUseId=SafeReact.useId;function useId$1(At,ot){if(maybeReactUseId!==void 0){const ut=maybeReactUseId();return At??(ot?`${ot}-${ut}`:ut)}return useGlobalId(At,ot)}const majorVersion=parseInt(reactExports.version,10);function isReactVersionAtLeast(At){return majorVersion>=At}function getReactElementRef(At){if(!reactExports.isValidElement(At))return null;const ot=At,ut=ot.props;return(isReactVersionAtLeast(19)?ut?.ref:ot.ref)??null}function mergeObjects$1(At,ot){if(At&&!ot)return At;if(!At&&ot)return ot;if(At||ot)return{...At,...ot}}function getStateAttributesProps(At,ot){const ut={};for(const pt in At){const ft=At[pt];if(ot?.hasOwnProperty(pt)){const ht=ot[pt](ft);ht!=null&&Object.assign(ut,ht);continue}ft===!0?ut[`data-${pt.toLowerCase()}`]="":ft&&(ut[`data-${pt.toLowerCase()}`]=ft.toString())}return ut}function resolveClassName(At,ot){return typeof At=="function"?At(ot):At}function resolveStyle(At,ot){return typeof At=="function"?At(ot):At}const EMPTY_PROPS={};function mergeProps$3(At,ot,ut,pt,ft){if(!ut&&!pt&&!ft&&!At)return createInitialMergedProps(ot);let ht=createInitialMergedProps(At);return ot&&(ht=mergeInto(ht,ot)),ut&&(ht=mergeInto(ht,ut)),pt&&(ht=mergeInto(ht,pt)),ft&&(ht=mergeInto(ht,ft)),ht}function mergePropsN(At){if(At.length===0)return EMPTY_PROPS;if(At.length===1)return createInitialMergedProps(At[0]);let ot=createInitialMergedProps(At[0]);for(let ut=1;ut<At.length;ut+=1)ot=mergeInto(ot,At[ut]);return ot}function createInitialMergedProps(At){return isPropsGetter(At)?{...resolvePropsGetter(At,EMPTY_PROPS)}:copyInitialProps(At)}function mergeInto(At,ot){return isPropsGetter(ot)?resolvePropsGetter(ot,At):mutablyMergeInto(At,ot)}function copyInitialProps(At){const ot={...At};for(const ut in ot){const pt=ot[ut];isEventHandler(ut,pt)&&(ot[ut]=wrapEventHandler(pt))}return ot}function mutablyMergeInto(At,ot){if(!ot)return At;for(const ut in ot){const pt=ot[ut];switch(ut){case"style":{At[ut]=mergeObjects$1(At.style,pt);break}case"className":{At[ut]=mergeClassNames(At.className,pt);break}default:isEventHandler(ut,pt)?At[ut]=mergeEventHandlers(At[ut],pt):At[ut]=pt}}return At}function isEventHandler(At,ot){const ut=At.charCodeAt(0),pt=At.charCodeAt(1),ft=At.charCodeAt(2);return ut===111&&pt===110&&ft>=65&&ft<=90&&(typeof ot=="function"||typeof ot>"u")}function isPropsGetter(At){return typeof At=="function"}function resolvePropsGetter(At,ot){return isPropsGetter(At)?At(ot):At??EMPTY_PROPS}function mergeEventHandlers(At,ot){return ot?At?ut=>{if(isSyntheticEvent(ut)){const ft=ut;makeEventPreventable(ft);const ht=ot(ft);return ft.baseUIHandlerPrevented||At?.(ft),ht}const pt=ot(ut);return At?.(ut),pt}:wrapEventHandler(ot):At}function wrapEventHandler(At){return At&&(ot=>(isSyntheticEvent(ot)&&makeEventPreventable(ot),At(ot)))}function makeEventPreventable(At){return At.preventBaseUIHandler=()=>{At.baseUIHandlerPrevented=!0},At}function mergeClassNames(At,ot){return ot?At?ot+" "+At:ot:At}function isSyntheticEvent(At){return At!=null&&typeof At=="object"&&"nativeEvent"in At}function useRenderElement(At,ot,ut={}){const pt=ot.render,ft=useRenderElementProps(ot,ut);if(ut.enabled===!1)return null;const ht=ut.state??EMPTY_OBJECT;return evaluateRenderProp(At,pt,ft,ht)}function useRenderElementProps(At,ot={}){const{className:ut,style:pt,render:ft}=At,{state:ht=EMPTY_OBJECT,ref:yt,props:kt,stateAttributesMapping:Et,enabled:Ot=!0}=ot,_t=Ot?resolveClassName(ut,ht):void 0,Qt=Ot?resolveStyle(pt,ht):void 0,vt=Ot?getStateAttributesProps(ht,Et):EMPTY_OBJECT,St=Ot&&kt?resolveRenderFunctionProps(kt):void 0,$t=Ot?mergeObjects$1(vt,St)??{}:EMPTY_OBJECT;return typeof document<"u"&&(Ot?Array.isArray(yt)?$t.ref=useMergedRefsN([$t.ref,getReactElementRef(ft),...yt]):$t.ref=useMergedRefs($t.ref,getReactElementRef(ft),yt):useMergedRefs(null,null)),Ot?(_t!==void 0&&($t.className=mergeClassNames($t.className,_t)),Qt!==void 0&&($t.style=mergeObjects$1($t.style,Qt)),$t):EMPTY_OBJECT}function resolveRenderFunctionProps(At){return Array.isArray(At)?mergePropsN(At):mergeProps$3(void 0,At)}const REACT_LAZY_TYPE$1=Symbol.for("react.lazy");function evaluateRenderProp(At,ot,ut,pt){if(ot){if(typeof ot=="function")return ot(ut,pt);const ft=mergeProps$3(ut,ot.props);ft.ref=ut.ref;let ht=ot;return ht?.$$typeof===REACT_LAZY_TYPE$1&&(ht=reactExports.Children.toArray(ot)[0]),reactExports.cloneElement(ht,ft)}if(At&&typeof At=="string")return renderTag(At,ut);throw new Error(formatErrorMessage(8))}function renderTag(At,ot){return At==="button"?reactExports.createElement("button",{type:"button",...ot,key:ot.key}):At==="img"?reactExports.createElement("img",{alt:"",...ot,key:ot.key}):reactExports.createElement(At,ot)}const PortalContext=reactExports.createContext(null),usePortalContext$1=()=>reactExports.useContext(PortalContext),attr=createAttribute("portal");function useFloatingPortalNode(At={}){const{ref:ot,container:ut,componentProps:pt=EMPTY_OBJECT,elementProps:ft}=At,ht=useId$1(),kt=usePortalContext$1()?.portalNode,[Et,Ot]=reactExports.useState(null),[_t,Qt]=reactExports.useState(null),vt=useStableCallback$1(Nt=>{Nt!==null&&Qt(Nt)}),St=reactExports.useRef(null);useIsoLayoutEffect(()=>{if(ut===null){St.current&&(St.current=null,Qt(null),Ot(null));return}if(ht==null)return;const Nt=(ut&&(isNode$1(ut)?ut:ut.current))??kt??document.body;if(Nt==null){St.current&&(St.current=null,Qt(null),Ot(null));return}St.current!==Nt&&(St.current=Nt,Qt(null),Ot(Nt))},[ut,kt,ht]);const $t=useRenderElement("div",pt,{ref:[ot,vt],props:[{id:ht,[attr]:""},ft]});return{portalNode:_t,portalSubtree:Et&&$t?reactDomExports.createPortal($t,Et):null}}const FloatingPortal=reactExports.forwardRef(function(ot,ut){const{children:pt,container:ft,className:ht,render:yt,renderGuards:kt,style:Et,...Ot}=ot,{portalNode:_t,portalSubtree:Qt}=useFloatingPortalNode({container:ft,ref:ut,componentProps:ot,elementProps:Ot}),vt=reactExports.useRef(null),St=reactExports.useRef(null),$t=reactExports.useRef(null),Pt=reactExports.useRef(null),[Nt,Lt]=reactExports.useState(null),qt=reactExports.useRef(!1),jt=Nt?.modal,Zt=Nt?.open,Ht=typeof kt=="boolean"?kt:!!Nt&&!Nt.modal&&Nt.open&&!!_t;reactExports.useEffect(()=>{if(!_t||jt)return;function wn(Qn){_t&&Qn.relatedTarget&&isOutsideEvent(Qn)&&(Qn.type==="focusin"?qt.current&&(enableFocusInside(_t),qt.current=!1):(disableFocusInside(_t),qt.current=!0))}return mergeCleanups(addEventListener(_t,"focusin",wn,!0),addEventListener(_t,"focusout",wn,!0))},[_t,jt]),reactExports.useEffect(()=>{!_t||Zt!==!1||(enableFocusInside(_t),qt.current=!1)},[Zt,_t]);const Wt=reactExports.useMemo(()=>({beforeOutsideRef:vt,afterOutsideRef:St,beforeInsideRef:$t,afterInsideRef:Pt,portalNode:_t,setFocusManagerState:Lt}),[_t]);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Qt,jsxRuntimeExports.jsxs(PortalContext.Provider,{value:Wt,children:[Ht&&_t&&jsxRuntimeExports.jsx(FocusGuard,{"data-type":"outside",ref:vt,onFocus:wn=>{if(isOutsideEvent(wn,_t))$t.current?.focus();else{const Qn=Nt?Nt.domReference:null;getPreviousTabbable(Qn)?.focus()}}}),Ht&&_t&&jsxRuntimeExports.jsx("span",{"aria-owns":_t.id,style:ownerVisuallyHidden}),_t&&reactDomExports.createPortal(pt,_t),Ht&&_t&&jsxRuntimeExports.jsx(FocusGuard,{"data-type":"outside",ref:St,onFocus:wn=>{if(isOutsideEvent(wn,_t))Pt.current?.focus();else{const Qn=Nt?Nt.domReference:null;getNextTabbable(Qn)?.focus(),Nt?.closeOnFocusOut&&Nt?.onOpenChange(!1,createChangeEventDetails(focusOut,wn.nativeEvent))}}})]})]})});function createEventEmitter(){const At=new Map;return{emit(ot,ut){At.get(ot)?.forEach(pt=>pt(ut))},on(ot,ut){At.has(ot)||At.set(ot,new Set),At.get(ot).add(ut)},off(ot,ut){At.get(ot)?.delete(ut)}}}class FloatingTreeStore{nodesRef={current:[]};events=createEventEmitter();addNode(ot){this.nodesRef.current.push(ot)}removeNode(ot){const ut=this.nodesRef.current.findIndex(pt=>pt===ot);ut!==-1&&this.nodesRef.current.splice(ut,1)}}const FloatingNodeContext=reactExports.createContext(null),FloatingTreeContext=reactExports.createContext(null),useFloatingParentNodeId=()=>reactExports.useContext(FloatingNodeContext)?.id||null,useFloatingTree=At=>{const ot=reactExports.useContext(FloatingTreeContext);return At??ot};function useFloatingNodeId(At){const ot=useId$1(),ut=useFloatingTree(At),pt=useFloatingParentNodeId();return useIsoLayoutEffect(()=>{if(!ot)return;const ft={id:ot,parentId:pt};return ut?.addNode(ft),()=>{ut?.removeNode(ft)}},[ut,ot,pt]),ot}function FloatingNode(At){const{children:ot,id:ut}=At,pt=useFloatingParentNodeId();return jsxRuntimeExports.jsx(FloatingNodeContext.Provider,{value:reactExports.useMemo(()=>({id:ut,parentId:pt}),[ut,pt]),children:ot})}function FloatingTree(At){const{children:ot,externalTree:ut}=At,pt=useRefWithInit(()=>ut??new FloatingTreeStore).current;return jsxRuntimeExports.jsx(FloatingTreeContext.Provider,{value:pt,children:ot})}function resolveRef(At){return At==null?At:"current"in At?At.current:At}function getEventType(At,ot){const ut=getWindow$1(getTarget(At));return At instanceof ut.KeyboardEvent?"keyboard":At instanceof ut.FocusEvent?ot||"keyboard":"pointerType"in At?At.pointerType||"keyboard":"touches"in At?"touch":At instanceof ut.MouseEvent?ot||(At.detail===0?"keyboard":"mouse"):""}const LIST_LIMIT=20;let previouslyFocusedElements=[];function clearDisconnectedPreviouslyFocusedElements(){previouslyFocusedElements=previouslyFocusedElements.filter(At=>At.deref()?.isConnected)}function addPreviouslyFocusedElement(At){clearDisconnectedPreviouslyFocusedElements(),At&&getNodeName(At)!=="body"&&(previouslyFocusedElements.push(new WeakRef(At)),previouslyFocusedElements.length>LIST_LIMIT&&(previouslyFocusedElements=previouslyFocusedElements.slice(-LIST_LIMIT)))}function getPreviouslyFocusedElement(){return clearDisconnectedPreviouslyFocusedElements(),previouslyFocusedElements[previouslyFocusedElements.length-1]?.deref()}function getFirstTabbableElement(At){return At?isTabbable(At)?At:tabbable(At)[0]||At:null}function isFocusable(At){return!At||!At.isConnected?!1:typeof At.checkVisibility=="function"?At.checkVisibility():isElementVisible(At)}function handleTabIndex(At,ot){if(At.hasAttribute("tabindex")&&!At.hasAttribute("data-tabindex")||!ot.current.includes("floating")&&!At.getAttribute("role")?.includes("dialog"))return;const pt=focusable(At).filter(ht=>{const yt=ht.getAttribute("data-tabindex")||"";return isTabbable(ht)||ht.hasAttribute("data-tabindex")&&!yt.startsWith("-")}),ft=At.getAttribute("tabindex");ot.current.includes("floating")||pt.length===0?ft!=="0"&&At.setAttribute("tabindex","0"):(ft!=="-1"||At.hasAttribute("data-tabindex")&&At.getAttribute("data-tabindex")!=="-1")&&(At.setAttribute("tabindex","-1"),At.setAttribute("data-tabindex","-1"))}function FloatingFocusManager(At){const{context:ot,children:ut,disabled:pt=!1,initialFocus:ft=!0,returnFocus:ht=!0,restoreFocus:yt=!1,modal:kt=!0,closeOnFocusOut:Et=!0,openInteractionType:Ot="",nextFocusableElement:_t,previousFocusableElement:Qt,beforeContentFocusGuardRef:vt,externalTree:St,getInsideElements:$t}=At,Pt="rootStore"in ot?ot.rootStore:ot,Nt=Pt.useState("open"),Lt=Pt.useState("domReferenceElement"),qt=Pt.useState("floatingElement"),{events:jt,dataRef:Zt}=Pt.context,Ht=useStableCallback$1(()=>Zt.current.floatingContext?.nodeId),Wt=ft===!1,wn=isTypeableCombobox(Lt)&&Wt,Qn=reactExports.useRef(["content"]),Jt=useValueAsRef(ft),Gn=useValueAsRef(ht),Jn=useValueAsRef(Ot),Vn=useFloatingTree(St),Fn=usePortalContext$1(),Xn=reactExports.useRef(!1),Ar=reactExports.useRef(!1),Yn=reactExports.useRef(!1),lr=reactExports.useRef(null),nr=reactExports.useRef(""),mr=reactExports.useRef(""),Zn=reactExports.useRef(null),ur=reactExports.useRef(null),yr=useMergedRefs(Zn,vt,Fn?.beforeInsideRef),ir=useMergedRefs(ur,Fn?.afterInsideRef),Cr=useTimeout(),kr=useTimeout(),Br=useAnimationFrame(),Dr=Fn!=null,Gr=getFloatingFocusElement(qt),jr=useStableCallback$1((ma=Gr)=>ma?tabbable(ma):[]),na=useStableCallback$1(()=>$t?.().filter(ma=>ma!=null)??[]);reactExports.useEffect(()=>{if(pt||!kt)return;function ma(ba){ba.key==="Tab"&&contains$2(Gr,activeElement(ownerDocument(Gr)))&&jr().length===0&&!wn&&stopEvent(ba)}const pa=ownerDocument(Gr);return addEventListener(pa,"keydown",ma)},[pt,Lt,Gr,kt,Qn,wn,jr]),reactExports.useEffect(()=>{if(pt||!Nt)return;const ma=ownerDocument(Gr);function pa(){Yn.current=!1}function ba(ya){const Xa=getTarget(ya),Ni=na(),ii=contains$2(qt,Xa)||contains$2(Lt,Xa)||contains$2(Fn?.portalNode,Xa)||Ni.some(Za=>Za===Xa||contains$2(Za,Xa));Yn.current=!ii,mr.current=ya.pointerType||"keyboard",Xa?.closest(`[${CLICK_TRIGGER_IDENTIFIER}]`)&&(Ar.current=!0)}function ti(){mr.current="keyboard"}return mergeCleanups(addEventListener(ma,"pointerdown",ba,!0),addEventListener(ma,"pointerup",pa,!0),addEventListener(ma,"pointercancel",pa,!0),addEventListener(ma,"keydown",ti,!0))},[pt,qt,Lt,Gr,Nt,Fn,na]),reactExports.useEffect(()=>{if(pt||!Et)return;const ma=ownerDocument(Gr);function pa(){Ar.current=!0,kr.start(0,()=>{Ar.current=!1})}function ba(Ni){const ii=getTarget(Ni);isTabbable(ii)&&(lr.current=ii)}function ti(Ni){const ii=Ni.relatedTarget,Za=Ni.currentTarget,$a=getTarget(Ni);queueMicrotask(()=>{const Ya=Ht(),Ta=Pt.context.triggerElements,qa=na(),ki=ii?.hasAttribute(createAttribute("focus-guard"))&&[Zn.current,ur.current,Fn?.beforeInsideRef.current,Fn?.afterInsideRef.current,Fn?.beforeOutsideRef.current,Fn?.afterOutsideRef.current,resolveRef(Qt),resolveRef(_t)].includes(ii),La=!(contains$2(Lt,ii)||contains$2(qt,ii)||contains$2(ii,qt)||contains$2(Fn?.portalNode,ii)||qa.some(Ja=>Ja===ii||contains$2(Ja,ii))||ii!=null&&Ta.hasElement(ii)||Ta.hasMatchingElement(Ja=>contains$2(Ja,ii))||ki||Vn&&(getNodeChildren(Vn.nodesRef.current,Ya).find(Ja=>contains$2(Ja.context?.elements.floating,ii)||contains$2(Ja.context?.elements.domReference,ii))||getNodeAncestors(Vn.nodesRef.current,Ya).find(Ja=>[Ja.context?.elements.floating,getFloatingFocusElement(Ja.context?.elements.floating)].includes(ii)||Ja.context?.elements.domReference===ii)));if(Za===Lt&&Gr&&handleTabIndex(Gr,Qn),yt&&Za!==Lt&&!isFocusable($a)&&activeElement(ma)===ma.body){if(isHTMLElement$1(Gr)&&(Gr.focus(),yt==="popup")){Br.request(()=>{Gr.focus()});return}const Ja=jr(),qi=lr.current,co=(qi&&Ja.includes(qi)?qi:null)||Ja[Ja.length-1]||Gr;isHTMLElement$1(co)&&co.focus()}if(Zt.current.insideReactTree){Zt.current.insideReactTree=!1;return}(wn||!kt)&&ii&&La&&!Ar.current&&(wn||ii!==getPreviouslyFocusedElement())&&(Xn.current=!0,Pt.setOpen(!1,createChangeEventDetails(focusOut,Ni)))})}function ya(){Yn.current||(Zt.current.insideReactTree=!0,Cr.start(0,()=>{Zt.current.insideReactTree=!1}))}const Xa=isHTMLElement$1(Lt)?Lt:null;if(!(!qt&&!Xa))return mergeCleanups(Xa&&addEventListener(Xa,"focusout",ti),Xa&&addEventListener(Xa,"pointerdown",pa),qt&&addEventListener(qt,"focusin",ba),qt&&addEventListener(qt,"focusout",ti),qt&&Fn&&addEventListener(qt,"focusout",ya,!0))},[pt,Lt,qt,Gr,kt,Vn,Fn,Pt,Et,yt,jr,wn,Ht,Qn,Zt,Cr,kr,Br,_t,Qt,na]),reactExports.useEffect(()=>{if(pt||!qt||!Nt)return;const ma=Array.from(Fn?.portalNode?.querySelectorAll(`[${createAttribute("portal")}]`)||[]),ba=(Vn?getNodeAncestors(Vn.nodesRef.current,Ht()):[]).find(Za=>isTypeableCombobox(Za.context?.elements.domReference||null))?.context?.elements.domReference,ya=[...[qt,...ma,Zn.current,ur.current,Fn?.beforeOutsideRef.current,Fn?.afterOutsideRef.current,...na()],ba,resolveRef(Qt),resolveRef(_t),wn?Lt:null].filter(Za=>Za!=null),Xa=markOthers(ya,{ariaHidden:kt||wn,mark:!1}),Ni=[qt,...ma].filter(Za=>Za!=null),ii=markOthers(Ni);return()=>{ii(),Xa()}},[Nt,pt,Lt,qt,kt,Qn,Fn,wn,Vn,Ht,_t,Qt,na]),useIsoLayoutEffect(()=>{if(!Nt||pt||!isHTMLElement$1(Gr))return;const ma=ownerDocument(Gr),pa=activeElement(ma);queueMicrotask(()=>{const ba=Jt.current,ti=typeof ba=="function"?ba(Jn.current||""):ba;if(ti===void 0||ti===!1||contains$2(Gr,pa))return;let Xa=null;const Ni=()=>(Xa==null&&(Xa=jr(Gr)),Xa[0]||Gr);let ii;ti===!0||ti===null?ii=Ni():ii=resolveRef(ti),ii=ii||Ni(),enqueueFocus(ii,{preventScroll:ii===Gr})})},[pt,Nt,Gr,Wt,jr,Jt,Jn]),useIsoLayoutEffect(()=>{if(pt||!Gr)return;const ma=ownerDocument(Gr),pa=activeElement(ma);addPreviouslyFocusedElement(pa);function ba(ya){if(ya.open||(nr.current=getEventType(ya.nativeEvent,mr.current)),ya.reason===triggerHover&&ya.nativeEvent.type==="mouseleave"&&(Xn.current=!0),ya.reason===outsidePress)if(ya.nested)Xn.current=!1;else if(isVirtualClick(ya.nativeEvent)||isVirtualPointerEvent(ya.nativeEvent))Xn.current=!1;else{let Xa=!1;ownerDocument(Gr).createElement("div").focus({get preventScroll(){return Xa=!0,!1}}),Xa?Xn.current=!1:Xn.current=!0}}jt.on("openchange",ba);function ti(){const ya=Gn.current;let Xa=typeof ya=="function"?ya(nr.current):ya;if(Xa===void 0||Xa===!1)return null;if(Xa===null&&(Xa=!0),typeof Xa=="boolean"){const ii=Lt||getPreviouslyFocusedElement();return ii&&ii.isConnected?ii:null}const Ni=Lt||getPreviouslyFocusedElement();return resolveRef(Xa)||Ni||null}return()=>{jt.off("openchange",ba);const ya=activeElement(ma),Xa=na(),Ni=contains$2(qt,ya)||Xa.some($a=>$a===ya||contains$2($a,ya))||Vn&&getNodeChildren(Vn.nodesRef.current,Ht(),!1).some($a=>contains$2($a.context?.elements.floating,ya)),ii=Gn.current,Za=ti();queueMicrotask(()=>{const $a=getFirstTabbableElement(Za),Ya=typeof ii!="boolean";ii&&!Xn.current&&isHTMLElement$1($a)&&(!(!Ya&&$a!==ya&&ya!==ma.body)||Ni)&&$a.focus({preventScroll:!0}),Xn.current=!1})}},[pt,qt,Gr,Gn,Zt,jt,Vn,Lt,Ht,na]),useIsoLayoutEffect(()=>{if(!isWebKit$1||Nt||!qt)return;const ma=activeElement(ownerDocument(qt));!isHTMLElement$1(ma)||!isTypeableElement(ma)||contains$2(qt,ma)&&ma.blur()},[Nt,qt]),useIsoLayoutEffect(()=>{if(!(pt||!Fn))return Fn.setFocusManagerState({modal:kt,closeOnFocusOut:Et,open:Nt,onOpenChange:Pt.setOpen,domReference:Lt}),()=>{Fn.setFocusManagerState(null)}},[pt,Fn,kt,Nt,Pt,Et,Lt]),useIsoLayoutEffect(()=>{if(!(pt||!Gr))return handleTabIndex(Gr,Qn),()=>{queueMicrotask(clearDisconnectedPreviouslyFocusedElements)}},[pt,Gr,Qn]);const ca=!pt&&(kt?!wn:!0)&&(Dr||kt);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ca&&jsxRuntimeExports.jsx(FocusGuard,{"data-type":"inside",ref:yr,onFocus:ma=>{if(kt){const pa=jr();enqueueFocus(pa[pa.length-1])}else Fn?.portalNode&&(Xn.current=!1,isOutsideEvent(ma,Fn.portalNode)?getNextTabbable(Lt)?.focus():resolveRef(Qt??Fn.beforeOutsideRef)?.focus())}}),ut,ca&&jsxRuntimeExports.jsx(FocusGuard,{"data-type":"inside",ref:ir,onFocus:ma=>{kt?enqueueFocus(jr()[0]):Fn?.portalNode&&(Et&&(Xn.current=!0),isOutsideEvent(ma,Fn.portalNode)?getPreviousTabbable(Lt)?.focus():resolveRef(_t??Fn.afterOutsideRef)?.focus())}})]})}function useClick(At,ot={}){const ut="rootStore"in At?At.rootStore:At,pt=ut.context.dataRef,{enabled:ft=!0,event:ht="click",toggle:yt=!0,ignoreMouse:kt=!1,stickIfOpen:Et=!0,touchOpenDelay:Ot=0,reason:_t=triggerPress}=ot,Qt=reactExports.useRef(void 0),vt=useAnimationFrame(),St=useTimeout(),$t=reactExports.useMemo(()=>({onPointerDown(Pt){Qt.current=Pt.pointerType},onMouseDown(Pt){const Nt=Qt.current,Lt=Pt.nativeEvent,qt=ut.select("open");if(Pt.button!==0||ht==="click"||isMouseLikePointerType(Nt,!0)&&kt)return;const jt=pt.current.openEvent,Zt=jt?.type,Ht=ut.select("domReferenceElement")!==Pt.currentTarget,Wt=qt&&Ht||!(qt&&yt&&(!(jt&&Et)||Zt==="click"||Zt==="mousedown")),wn=getTarget(Lt);if(isTypeableElement(wn)){const Jt=createChangeEventDetails(_t,Lt,wn);Wt&&Nt==="touch"&&Ot>0?St.start(Ot,()=>{ut.setOpen(!0,Jt)}):ut.setOpen(Wt,Jt);return}const Qn=Pt.currentTarget;vt.request(()=>{const Jt=createChangeEventDetails(_t,Lt,Qn);Wt&&Nt==="touch"&&Ot>0?St.start(Ot,()=>{ut.setOpen(!0,Jt)}):ut.setOpen(Wt,Jt)})},onClick(Pt){if(ht==="mousedown-only")return;const Nt=Qt.current;if(ht==="mousedown"&&Nt){Qt.current=void 0;return}if(isMouseLikePointerType(Nt,!0)&&kt)return;const Lt=ut.select("open"),qt=pt.current.openEvent,jt=ut.select("domReferenceElement")!==Pt.currentTarget,Zt=Lt&&jt||!(Lt&&yt&&(!(qt&&Et)||isClickLikeEvent(qt))),Ht=createChangeEventDetails(_t,Pt.nativeEvent,Pt.currentTarget);Zt&&Nt==="touch"&&Ot>0?St.start(Ot,()=>{ut.setOpen(!0,Ht)}):ut.setOpen(Zt,Ht)},onKeyDown(){Qt.current=void 0}}),[pt,ht,kt,ut,Et,yt,vt,St,Ot,_t]);return reactExports.useMemo(()=>ft?{reference:$t}:EMPTY_OBJECT,[ft,$t])}function createVirtualElement(At,ot){let ut=null,pt=null,ft=!1;return{contextElement:At||void 0,getBoundingClientRect(){const ht=At?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},yt=ot.axis==="x"||ot.axis==="both",kt=ot.axis==="y"||ot.axis==="both",Et=["mouseenter","mousemove"].includes(ot.dataRef.current.openEvent?.type||"")&&ot.pointerType!=="touch";let Ot=ht.width,_t=ht.height,Qt=ht.x,vt=ht.y;return ut==null&&ot.x&&yt&&(ut=ht.x-ot.x),pt==null&&ot.y&&kt&&(pt=ht.y-ot.y),Qt-=ut||0,vt-=pt||0,Ot=0,_t=0,!ft||Et?(Ot=ot.axis==="y"?ht.width:0,_t=ot.axis==="x"?ht.height:0,Qt=yt&&ot.x!=null?ot.x:Qt,vt=kt&&ot.y!=null?ot.y:vt):ft&&!Et&&(_t=ot.axis==="x"?ht.height:_t,Ot=ot.axis==="y"?ht.width:Ot),ft=!0,{width:Ot,height:_t,x:Qt,y:vt,top:vt,right:Qt+Ot,bottom:vt+_t,left:Qt}}}}function isMouseBasedEvent(At){return At!=null&&At.clientX!=null}function useClientPoint(At,ot={}){const ut="rootStore"in At?At.rootStore:At,pt=ut.useState("open"),ft=ut.useState("floatingElement"),ht=ut.useState("domReferenceElement"),yt=ut.context.dataRef,{enabled:kt=!0,axis:Et="both"}=ot,Ot=reactExports.useRef(!1),_t=reactExports.useRef(null),[Qt,vt]=reactExports.useState(),[St,$t]=reactExports.useState([]),Pt=useStableCallback$1((Zt,Ht,Wt)=>{Ot.current||yt.current.openEvent&&!isMouseBasedEvent(yt.current.openEvent)||ut.set("positionReference",createVirtualElement(Wt??ht,{x:Zt,y:Ht,axis:Et,dataRef:yt,pointerType:Qt}))}),Nt=useStableCallback$1(Zt=>{pt?_t.current||$t([]):Pt(Zt.clientX,Zt.clientY,Zt.currentTarget)}),Lt=isMouseLikePointerType(Qt)?ft:pt,qt=reactExports.useCallback(()=>{if(!Lt||!kt)return;const Zt=getWindow$1(ft);function Ht(Wt){const wn=getTarget(Wt);contains$2(ft,wn)?(_t.current?.(),_t.current=null):Pt(Wt.clientX,Wt.clientY)}if(!yt.current.openEvent||isMouseBasedEvent(yt.current.openEvent)){const Wt=()=>{_t.current?.(),_t.current=null};return _t.current=addEventListener(Zt,"mousemove",Ht),Wt}ut.set("positionReference",ht)},[Lt,kt,ft,yt,ht,ut,Pt]);reactExports.useEffect(()=>qt(),[qt,St]),reactExports.useEffect(()=>{kt&&!ft&&(Ot.current=!1)},[kt,ft]),reactExports.useEffect(()=>{!kt&&pt&&(Ot.current=!0)},[kt,pt]);const jt=reactExports.useMemo(()=>{function Zt(Ht){vt(Ht.pointerType)}return{onPointerDown:Zt,onPointerEnter:Zt,onMouseMove:Nt,onMouseEnter:Nt}},[Nt]);return reactExports.useMemo(()=>kt?{reference:jt,trigger:jt}:{},[kt,jt])}const bubbleHandlerKeys={intentional:"onClick",sloppy:"onPointerDown"};function alwaysFalse(){return!1}function normalizeProp(At){return{escapeKey:typeof At=="boolean"?At:At?.escapeKey??!1,outsidePress:typeof At=="boolean"?At:At?.outsidePress??!0}}function useDismiss(At,ot={}){const ut="rootStore"in At?At.rootStore:At,pt=ut.useState("open"),ft=ut.useState("floatingElement"),{dataRef:ht}=ut.context,{enabled:yt=!0,escapeKey:kt=!0,outsidePress:Et=!0,outsidePressEvent:Ot="sloppy",referencePress:_t=alwaysFalse,referencePressEvent:Qt="sloppy",bubbles:vt,externalTree:St}=ot,$t=useFloatingTree(St),Pt=useStableCallback$1(typeof Et=="function"?Et:()=>!1),Nt=typeof Et=="function"?Pt:Et,Lt=Nt!==!1,qt=useStableCallback$1(()=>Ot),jt=reactExports.useRef(!1),Zt=reactExports.useRef(!1),Ht=reactExports.useRef(!1),{escapeKey:Wt,outsidePress:wn}=normalizeProp(vt),Qn=reactExports.useRef(null),Jt=useTimeout(),Gn=useTimeout(),Jn=useStableCallback$1(()=>{Gn.clear(),ht.current.insideReactTree=!1}),Vn=reactExports.useRef(!1),Fn=reactExports.useRef(""),Xn=useStableCallback$1(_t),Ar=useStableCallback$1(ur=>{if(!pt||!yt||!kt||ur.key!=="Escape"||Vn.current)return;const yr=ht.current.floatingContext?.nodeId,ir=$t?getNodeChildren($t.nodesRef.current,yr):[];if(!Wt&&ir.length>0){let Br=!0;if(ir.forEach(Dr=>{Dr.context?.open&&!Dr.context.dataRef.current.__escapeKeyBubbles&&(Br=!1)}),!Br)return}const Cr=isReactEvent(ur)?ur.nativeEvent:ur,kr=createChangeEventDetails(escapeKey,Cr);ut.setOpen(!1,kr),!Wt&&!kr.isPropagationAllowed&&ur.stopPropagation()}),Yn=useStableCallback$1(()=>{ht.current.insideReactTree=!0,Gn.start(0,Jn)});reactExports.useEffect(()=>{if(!pt||!yt)return;ht.current.__escapeKeyBubbles=Wt,ht.current.__outsidePressBubbles=wn;const ur=new Timeout,yr=new Timeout;function ir(){ur.clear(),Vn.current=!0}function Cr(){ur.start(isWebKit()?5:0,()=>{Vn.current=!1})}function kr(){Ht.current=!0,yr.start(0,()=>{Ht.current=!1})}function Br(){jt.current=!1,Zt.current=!1}function Dr(){const Ta=Fn.current,qa=Ta==="pen"||!Ta?"mouse":Ta,ki=qt(),La=typeof ki=="function"?ki():ki;return typeof La=="string"?La:La[qa]}function Gr(Ta){const qa=Dr();return qa==="intentional"&&Ta.type!=="click"||qa==="sloppy"&&Ta.type==="click"}function jr(Ta){const qa=ht.current.floatingContext?.nodeId,ki=$t&&getNodeChildren($t.nodesRef.current,qa).some(La=>isEventTargetWithin(Ta,La.context?.elements.floating));return isEventTargetWithin(Ta,ut.select("floatingElement"))||isEventTargetWithin(Ta,ut.select("domReferenceElement"))||ki}function na(Ta){if(Gr(Ta)){Jn();return}if(ht.current.insideReactTree){Jn();return}const qa=getTarget(Ta),ki=`[${createAttribute("inert")}]`,La=isElement(qa)?qa.getRootNode():null,Ja=Array.from((isShadowRoot(La)?La:ownerDocument(ut.select("floatingElement"))).querySelectorAll(ki)),qi=ut.context.triggerElements;if(qa&&(qi.hasElement(qa)||qi.hasMatchingElement(ao=>contains$2(ao,qa))))return;let co=isElement(qa)?qa:null;for(;co&&!isLastTraversableNode(co);){const ao=getParentNode(co);if(isLastTraversableNode(ao)||!isElement(ao))break;co=ao}if(Ja.length&&isElement(qa)&&!isRootElement(qa)&&!contains$2(qa,ut.select("floatingElement"))&&Ja.every(ao=>!contains$2(co,ao)))return;if(isHTMLElement$1(qa)&&!("touches"in Ta)){const ao=isLastTraversableNode(qa),Jo=getComputedStyle$1(qa),Ji=/auto|scroll/,Ms=ao||Ji.test(Jo.overflowX),Vs=ao||Ji.test(Jo.overflowY),ZA=Ms&&qa.clientWidth>0&&qa.scrollWidth>qa.clientWidth,Xo=Vs&&qa.clientHeight>0&&qa.scrollHeight>qa.clientHeight,ho=Jo.direction==="rtl",ks=Xo&&(ho?Ta.offsetX<=qa.offsetWidth-qa.clientWidth:Ta.offsetX>qa.clientWidth),lA=ZA&&Ta.offsetY>qa.clientHeight;if(ks||lA)return}if(jr(Ta))return;if(Dr()==="intentional"&&Ht.current){yr.clear(),Ht.current=!1;return}if(typeof Nt=="function"&&!Nt(Ta))return;const ns=ht.current.floatingContext?.nodeId,Qo=$t?getNodeChildren($t.nodesRef.current,ns):[];if(Qo.length>0){let ao=!0;if(Qo.forEach(Jo=>{Jo.context?.open&&!Jo.context.dataRef.current.__outsidePressBubbles&&(ao=!1)}),!ao)return}ut.setOpen(!1,createChangeEventDetails(outsidePress,Ta)),Jn()}function ca(Ta){Dr()!=="sloppy"||Ta.pointerType==="touch"||!ut.select("open")||!yt||isEventTargetWithin(Ta,ut.select("floatingElement"))||isEventTargetWithin(Ta,ut.select("domReferenceElement"))||na(Ta)}function ma(Ta){if(Dr()!=="sloppy"||!ut.select("open")||!yt||isEventTargetWithin(Ta,ut.select("floatingElement"))||isEventTargetWithin(Ta,ut.select("domReferenceElement")))return;const qa=Ta.touches[0];qa&&(Qn.current={startTime:Date.now(),startX:qa.clientX,startY:qa.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},Jt.start(1e3,()=>{Qn.current&&(Qn.current.dismissOnTouchEnd=!1,Qn.current.dismissOnMouseDown=!1)}))}function pa(Ta,qa){const ki=getTarget(Ta);if(!ki)return;const La=addEventListener(ki,Ta.type,()=>{qa(Ta),La()})}function ba(Ta){Fn.current="touch",pa(Ta,ma)}function ti(Ta){Jt.clear(),Ta.type==="pointerdown"&&(Fn.current=Ta.pointerType),!(Ta.type==="mousedown"&&Qn.current&&!Qn.current.dismissOnMouseDown)&&pa(Ta,qa=>{qa.type==="pointerdown"?ca(qa):na(qa)})}function ya(Ta){if(!jt.current)return;const qa=Zt.current;if(Br(),Dr()==="intentional"){if(Ta.type==="pointercancel"){qa&&kr();return}if(!jr(Ta)){if(qa){kr();return}typeof Nt=="function"&&!Nt(Ta)||(yr.clear(),Ht.current=!0,Jn())}}}function Xa(Ta){if(Dr()!=="sloppy"||!Qn.current||isEventTargetWithin(Ta,ut.select("floatingElement"))||isEventTargetWithin(Ta,ut.select("domReferenceElement")))return;const qa=Ta.touches[0];if(!qa)return;const ki=Math.abs(qa.clientX-Qn.current.startX),La=Math.abs(qa.clientY-Qn.current.startY),Ja=Math.sqrt(ki*ki+La*La);Ja>5&&(Qn.current.dismissOnTouchEnd=!0),Ja>10&&(na(Ta),Jt.clear(),Qn.current=null)}function Ni(Ta){pa(Ta,Xa)}function ii(Ta){Dr()!=="sloppy"||!Qn.current||isEventTargetWithin(Ta,ut.select("floatingElement"))||isEventTargetWithin(Ta,ut.select("domReferenceElement"))||(Qn.current.dismissOnTouchEnd&&na(Ta),Jt.clear(),Qn.current=null)}function Za(Ta){pa(Ta,ii)}const $a=ownerDocument(ft),Ya=mergeCleanups(kt&&mergeCleanups(addEventListener($a,"keydown",Ar),addEventListener($a,"compositionstart",ir),addEventListener($a,"compositionend",Cr)),Lt&&mergeCleanups(addEventListener($a,"click",ti,!0),addEventListener($a,"pointerdown",ti,!0),addEventListener($a,"pointerup",ya,!0),addEventListener($a,"pointercancel",ya,!0),addEventListener($a,"mousedown",ti,!0),addEventListener($a,"mouseup",ya,!0),addEventListener($a,"touchstart",ba,!0),addEventListener($a,"touchmove",Ni,!0),addEventListener($a,"touchend",Za,!0)));return()=>{Ya(),ur.clear(),yr.clear(),Br(),Ht.current=!1}},[ht,ft,kt,Lt,Nt,pt,yt,Wt,wn,Ar,Jn,qt,$t,ut,Jt]),reactExports.useEffect(Jn,[Nt,Jn]);const lr=reactExports.useMemo(()=>({onKeyDown:Ar,[bubbleHandlerKeys[Qt]]:ur=>{Xn()&&ut.setOpen(!1,createChangeEventDetails(triggerPress,ur.nativeEvent))},...Qt!=="intentional"&&{onClick(ur){Xn()&&ut.setOpen(!1,createChangeEventDetails(triggerPress,ur.nativeEvent))}}}),[Ar,ut,Qt,Xn]),nr=useStableCallback$1(ur=>{if(!pt||!yt||ur.button!==0)return;const yr=getTarget(ur.nativeEvent);contains$2(ut.select("floatingElement"),yr)&&(jt.current||(jt.current=!0,Zt.current=!1))}),mr=useStableCallback$1(ur=>{!pt||!yt||(ur.defaultPrevented||ur.nativeEvent.defaultPrevented)&&jt.current&&(Zt.current=!0)}),Zn=reactExports.useMemo(()=>({onKeyDown:Ar,onPointerDown:mr,onMouseDown:mr,onClickCapture:Yn,onMouseDownCapture(ur){Yn(),nr(ur)},onPointerDownCapture(ur){Yn(),nr(ur)},onMouseUpCapture:Yn,onTouchEndCapture:Yn,onTouchMoveCapture:Yn}),[Ar,Yn,nr,mr]);return reactExports.useMemo(()=>yt?{reference:lr,floating:Zn,trigger:lr}:{},[yt,lr,Zn])}function computeCoordsFromPlacement(At,ot,ut){let{reference:pt,floating:ft}=At;const ht=getSideAxis(ot),yt=getAlignmentAxis(ot),kt=getAxisLength(yt),Et=getSide(ot),Ot=ht==="y",_t=pt.x+pt.width/2-ft.width/2,Qt=pt.y+pt.height/2-ft.height/2,vt=pt[kt]/2-ft[kt]/2;let St;switch(Et){case"top":St={x:_t,y:pt.y-ft.height};break;case"bottom":St={x:_t,y:pt.y+pt.height};break;case"right":St={x:pt.x+pt.width,y:Qt};break;case"left":St={x:pt.x-ft.width,y:Qt};break;default:St={x:pt.x,y:pt.y}}switch(getAlignment(ot)){case"start":St[yt]-=vt*(ut&&Ot?-1:1);break;case"end":St[yt]+=vt*(ut&&Ot?-1:1);break}return St}async function detectOverflow(At,ot){var ut;ot===void 0&&(ot={});const{x:pt,y:ft,platform:ht,rects:yt,elements:kt,strategy:Et}=At,{boundary:Ot="clippingAncestors",rootBoundary:_t="viewport",elementContext:Qt="floating",altBoundary:vt=!1,padding:St=0}=evaluate(ot,At),$t=getPaddingObject(St),Nt=kt[vt?Qt==="floating"?"reference":"floating":Qt],Lt=rectToClientRect(await ht.getClippingRect({element:(ut=await(ht.isElement==null?void 0:ht.isElement(Nt)))==null||ut?Nt:Nt.contextElement||await(ht.getDocumentElement==null?void 0:ht.getDocumentElement(kt.floating)),boundary:Ot,rootBoundary:_t,strategy:Et})),qt=Qt==="floating"?{x:pt,y:ft,width:yt.floating.width,height:yt.floating.height}:yt.reference,jt=await(ht.getOffsetParent==null?void 0:ht.getOffsetParent(kt.floating)),Zt=await(ht.isElement==null?void 0:ht.isElement(jt))?await(ht.getScale==null?void 0:ht.getScale(jt))||{x:1,y:1}:{x:1,y:1},Ht=rectToClientRect(ht.convertOffsetParentRelativeRectToViewportRelativeRect?await ht.convertOffsetParentRelativeRectToViewportRelativeRect({elements:kt,rect:qt,offsetParent:jt,strategy:Et}):qt);return{top:(Lt.top-Ht.top+$t.top)/Zt.y,bottom:(Ht.bottom-Lt.bottom+$t.bottom)/Zt.y,left:(Lt.left-Ht.left+$t.left)/Zt.x,right:(Ht.right-Lt.right+$t.right)/Zt.x}}const MAX_RESET_COUNT=50,computePosition$1=async(At,ot,ut)=>{const{placement:pt="bottom",strategy:ft="absolute",middleware:ht=[],platform:yt}=ut,kt=yt.detectOverflow?yt:{...yt,detectOverflow},Et=await(yt.isRTL==null?void 0:yt.isRTL(ot));let Ot=await yt.getElementRects({reference:At,floating:ot,strategy:ft}),{x:_t,y:Qt}=computeCoordsFromPlacement(Ot,pt,Et),vt=pt,St=0;const $t={};for(let Pt=0;Pt<ht.length;Pt++){const Nt=ht[Pt];if(!Nt)continue;const{name:Lt,fn:qt}=Nt,{x:jt,y:Zt,data:Ht,reset:Wt}=await qt({x:_t,y:Qt,initialPlacement:pt,placement:vt,strategy:ft,middlewareData:$t,rects:Ot,platform:kt,elements:{reference:At,floating:ot}});_t=jt??_t,Qt=Zt??Qt,$t[Lt]={...$t[Lt],...Ht},Wt&&St<MAX_RESET_COUNT&&(St++,typeof Wt=="object"&&(Wt.placement&&(vt=Wt.placement),Wt.rects&&(Ot=Wt.rects===!0?await yt.getElementRects({reference:At,floating:ot,strategy:ft}):Wt.rects),{x:_t,y:Qt}=computeCoordsFromPlacement(Ot,vt,Et)),Pt=-1)}return{x:_t,y:Qt,placement:vt,strategy:ft,middlewareData:$t}},flip$2=function(At){return At===void 0&&(At={}),{name:"flip",options:At,async fn(ot){var ut,pt;const{placement:ft,middlewareData:ht,rects:yt,initialPlacement:kt,platform:Et,elements:Ot}=ot,{mainAxis:_t=!0,crossAxis:Qt=!0,fallbackPlacements:vt,fallbackStrategy:St="bestFit",fallbackAxisSideDirection:$t="none",flipAlignment:Pt=!0,...Nt}=evaluate(At,ot);if((ut=ht.arrow)!=null&&ut.alignmentOffset)return{};const Lt=getSide(ft),qt=getSideAxis(kt),jt=getSide(kt)===kt,Zt=await(Et.isRTL==null?void 0:Et.isRTL(Ot.floating)),Ht=vt||(jt||!Pt?[getOppositePlacement(kt)]:getExpandedPlacements(kt)),Wt=$t!=="none";!vt&&Wt&&Ht.push(...getOppositeAxisPlacements(kt,Pt,$t,Zt));const wn=[kt,...Ht],Qn=await Et.detectOverflow(ot,Nt),Jt=[];let Gn=((pt=ht.flip)==null?void 0:pt.overflows)||[];if(_t&&Jt.push(Qn[Lt]),Qt){const Xn=getAlignmentSides(ft,yt,Zt);Jt.push(Qn[Xn[0]],Qn[Xn[1]])}if(Gn=[...Gn,{placement:ft,overflows:Jt}],!Jt.every(Xn=>Xn<=0)){var Jn,Vn;const Xn=(((Jn=ht.flip)==null?void 0:Jn.index)||0)+1,Ar=wn[Xn];if(Ar&&(!(Qt==="alignment"?qt!==getSideAxis(Ar):!1)||Gn.every(nr=>getSideAxis(nr.placement)===qt?nr.overflows[0]>0:!0)))return{data:{index:Xn,overflows:Gn},reset:{placement:Ar}};let Yn=(Vn=Gn.filter(lr=>lr.overflows[0]<=0).sort((lr,nr)=>lr.overflows[1]-nr.overflows[1])[0])==null?void 0:Vn.placement;if(!Yn)switch(St){case"bestFit":{var Fn;const lr=(Fn=Gn.filter(nr=>{if(Wt){const mr=getSideAxis(nr.placement);return mr===qt||mr==="y"}return!0}).map(nr=>[nr.placement,nr.overflows.filter(mr=>mr>0).reduce((mr,Zn)=>mr+Zn,0)]).sort((nr,mr)=>nr[1]-mr[1])[0])==null?void 0:Fn[0];lr&&(Yn=lr);break}case"initialPlacement":Yn=kt;break}if(ft!==Yn)return{reset:{placement:Yn}}}return{}}}};function getSideOffsets(At,ot){return{top:At.top-ot.height,right:At.right-ot.width,bottom:At.bottom-ot.height,left:At.left-ot.width}}function isAnySideFullyClipped(At){return sides.some(ot=>At[ot]>=0)}const hide$4=function(At){return At===void 0&&(At={}),{name:"hide",options:At,async fn(ot){const{rects:ut,platform:pt}=ot,{strategy:ft="referenceHidden",...ht}=evaluate(At,ot);switch(ft){case"referenceHidden":{const yt=await pt.detectOverflow(ot,{...ht,elementContext:"reference"}),kt=getSideOffsets(yt,ut.reference);return{data:{referenceHiddenOffsets:kt,referenceHidden:isAnySideFullyClipped(kt)}}}case"escaped":{const yt=await pt.detectOverflow(ot,{...ht,altBoundary:!0}),kt=getSideOffsets(yt,ut.floating);return{data:{escapedOffsets:kt,escaped:isAnySideFullyClipped(kt)}}}default:return{}}}}},originSides=new Set(["left","top"]);async function convertValueToCoords(At,ot){const{placement:ut,platform:pt,elements:ft}=At,ht=await(pt.isRTL==null?void 0:pt.isRTL(ft.floating)),yt=getSide(ut),kt=getAlignment(ut),Et=getSideAxis(ut)==="y",Ot=originSides.has(yt)?-1:1,_t=ht&&Et?-1:1,Qt=evaluate(ot,At);let{mainAxis:vt,crossAxis:St,alignmentAxis:$t}=typeof Qt=="number"?{mainAxis:Qt,crossAxis:0,alignmentAxis:null}:{mainAxis:Qt.mainAxis||0,crossAxis:Qt.crossAxis||0,alignmentAxis:Qt.alignmentAxis};return kt&&typeof $t=="number"&&(St=kt==="end"?$t*-1:$t),Et?{x:St*_t,y:vt*Ot}:{x:vt*Ot,y:St*_t}}const offset$2=function(At){return At===void 0&&(At=0),{name:"offset",options:At,async fn(ot){var ut,pt;const{x:ft,y:ht,placement:yt,middlewareData:kt}=ot,Et=await convertValueToCoords(ot,At);return yt===((ut=kt.offset)==null?void 0:ut.placement)&&(pt=kt.arrow)!=null&&pt.alignmentOffset?{}:{x:ft+Et.x,y:ht+Et.y,data:{...Et,placement:yt}}}}},shift$3=function(At){return At===void 0&&(At={}),{name:"shift",options:At,async fn(ot){const{x:ut,y:pt,placement:ft,platform:ht}=ot,{mainAxis:yt=!0,crossAxis:kt=!1,limiter:Et={fn:Lt=>{let{x:qt,y:jt}=Lt;return{x:qt,y:jt}}},...Ot}=evaluate(At,ot),_t={x:ut,y:pt},Qt=await ht.detectOverflow(ot,Ot),vt=getSideAxis(getSide(ft)),St=getOppositeAxis(vt);let $t=_t[St],Pt=_t[vt];if(yt){const Lt=St==="y"?"top":"left",qt=St==="y"?"bottom":"right",jt=$t+Qt[Lt],Zt=$t-Qt[qt];$t=clamp$1(jt,$t,Zt)}if(kt){const Lt=vt==="y"?"top":"left",qt=vt==="y"?"bottom":"right",jt=Pt+Qt[Lt],Zt=Pt-Qt[qt];Pt=clamp$1(jt,Pt,Zt)}const Nt=Et.fn({...ot,[St]:$t,[vt]:Pt});return{...Nt,data:{x:Nt.x-ut,y:Nt.y-pt,enabled:{[St]:yt,[vt]:kt}}}}}},limitShift$2=function(At){return At===void 0&&(At={}),{options:At,fn(ot){const{x:ut,y:pt,placement:ft,rects:ht,middlewareData:yt}=ot,{offset:kt=0,mainAxis:Et=!0,crossAxis:Ot=!0}=evaluate(At,ot),_t={x:ut,y:pt},Qt=getSideAxis(ft),vt=getOppositeAxis(Qt);let St=_t[vt],$t=_t[Qt];const Pt=evaluate(kt,ot),Nt=typeof Pt=="number"?{mainAxis:Pt,crossAxis:0}:{mainAxis:0,crossAxis:0,...Pt};if(Et){const jt=vt==="y"?"height":"width",Zt=ht.reference[vt]-ht.floating[jt]+Nt.mainAxis,Ht=ht.reference[vt]+ht.reference[jt]-Nt.mainAxis;St<Zt?St=Zt:St>Ht&&(St=Ht)}if(Ot){var Lt,qt;const jt=vt==="y"?"width":"height",Zt=originSides.has(getSide(ft)),Ht=ht.reference[Qt]-ht.floating[jt]+(Zt&&((Lt=yt.offset)==null?void 0:Lt[Qt])||0)+(Zt?0:Nt.crossAxis),Wt=ht.reference[Qt]+ht.reference[jt]+(Zt?0:((qt=yt.offset)==null?void 0:qt[Qt])||0)-(Zt?Nt.crossAxis:0);$t<Ht?$t=Ht:$t>Wt&&($t=Wt)}return{[vt]:St,[Qt]:$t}}}},size$2=function(At){return At===void 0&&(At={}),{name:"size",options:At,async fn(ot){var ut,pt;const{placement:ft,rects:ht,platform:yt,elements:kt}=ot,{apply:Et=()=>{},...Ot}=evaluate(At,ot),_t=await yt.detectOverflow(ot,Ot),Qt=getSide(ft),vt=getAlignment(ft),St=getSideAxis(ft)==="y",{width:$t,height:Pt}=ht.floating;let Nt,Lt;Qt==="top"||Qt==="bottom"?(Nt=Qt,Lt=vt===(await(yt.isRTL==null?void 0:yt.isRTL(kt.floating))?"start":"end")?"left":"right"):(Lt=Qt,Nt=vt==="end"?"top":"bottom");const qt=Pt-_t.top-_t.bottom,jt=$t-_t.left-_t.right,Zt=min$1(Pt-_t[Nt],qt),Ht=min$1($t-_t[Lt],jt),Wt=!ot.middlewareData.shift;let wn=Zt,Qn=Ht;if((ut=ot.middlewareData.shift)!=null&&ut.enabled.x&&(Qn=jt),(pt=ot.middlewareData.shift)!=null&&pt.enabled.y&&(wn=qt),Wt&&!vt){const Gn=max$1(_t.left,0),Jn=max$1(_t.right,0),Vn=max$1(_t.top,0),Fn=max$1(_t.bottom,0);St?Qn=$t-2*(Gn!==0||Jn!==0?Gn+Jn:max$1(_t.left,_t.right)):wn=Pt-2*(Vn!==0||Fn!==0?Vn+Fn:max$1(_t.top,_t.bottom))}await Et({...ot,availableWidth:Qn,availableHeight:wn});const Jt=await yt.getDimensions(kt.floating);return $t!==Jt.width||Pt!==Jt.height?{reset:{rects:!0}}:{}}}};function getCssDimensions(At){const ot=getComputedStyle$1(At);let ut=parseFloat(ot.width)||0,pt=parseFloat(ot.height)||0;const ft=isHTMLElement$1(At),ht=ft?At.offsetWidth:ut,yt=ft?At.offsetHeight:pt,kt=round$1(ut)!==ht||round$1(pt)!==yt;return kt&&(ut=ht,pt=yt),{width:ut,height:pt,$:kt}}function unwrapElement(At){return isElement(At)?At:At.contextElement}function getScale$2(At){const ot=unwrapElement(At);if(!isHTMLElement$1(ot))return createCoords(1);const ut=ot.getBoundingClientRect(),{width:pt,height:ft,$:ht}=getCssDimensions(ot);let yt=(ht?round$1(ut.width):ut.width)/pt,kt=(ht?round$1(ut.height):ut.height)/ft;return(!yt||!Number.isFinite(yt))&&(yt=1),(!kt||!Number.isFinite(kt))&&(kt=1),{x:yt,y:kt}}const noOffsets=createCoords(0);function getVisualOffsets(At){const ot=getWindow$1(At);return!isWebKit()||!ot.visualViewport?noOffsets:{x:ot.visualViewport.offsetLeft,y:ot.visualViewport.offsetTop}}function shouldAddVisualOffsets(At,ot,ut){return ot===void 0&&(ot=!1),!ut||ot&&ut!==getWindow$1(At)?!1:ot}function getBoundingClientRect(At,ot,ut,pt){ot===void 0&&(ot=!1),ut===void 0&&(ut=!1);const ft=At.getBoundingClientRect(),ht=unwrapElement(At);let yt=createCoords(1);ot&&(pt?isElement(pt)&&(yt=getScale$2(pt)):yt=getScale$2(At));const kt=shouldAddVisualOffsets(ht,ut,pt)?getVisualOffsets(ht):createCoords(0);let Et=(ft.left+kt.x)/yt.x,Ot=(ft.top+kt.y)/yt.y,_t=ft.width/yt.x,Qt=ft.height/yt.y;if(ht){const vt=getWindow$1(ht),St=pt&&isElement(pt)?getWindow$1(pt):pt;let $t=vt,Pt=getFrameElement($t);for(;Pt&&pt&&St!==$t;){const Nt=getScale$2(Pt),Lt=Pt.getBoundingClientRect(),qt=getComputedStyle$1(Pt),jt=Lt.left+(Pt.clientLeft+parseFloat(qt.paddingLeft))*Nt.x,Zt=Lt.top+(Pt.clientTop+parseFloat(qt.paddingTop))*Nt.y;Et*=Nt.x,Ot*=Nt.y,_t*=Nt.x,Qt*=Nt.y,Et+=jt,Ot+=Zt,$t=getWindow$1(Pt),Pt=getFrameElement($t)}}return rectToClientRect({width:_t,height:Qt,x:Et,y:Ot})}function getWindowScrollBarX(At,ot){const ut=getNodeScroll(At).scrollLeft;return ot?ot.left+ut:getBoundingClientRect(getDocumentElement(At)).left+ut}function getHTMLOffset(At,ot){const ut=At.getBoundingClientRect(),pt=ut.left+ot.scrollLeft-getWindowScrollBarX(At,ut),ft=ut.top+ot.scrollTop;return{x:pt,y:ft}}function convertOffsetParentRelativeRectToViewportRelativeRect(At){let{elements:ot,rect:ut,offsetParent:pt,strategy:ft}=At;const ht=ft==="fixed",yt=getDocumentElement(pt),kt=ot?isTopLayer(ot.floating):!1;if(pt===yt||kt&&ht)return ut;let Et={scrollLeft:0,scrollTop:0},Ot=createCoords(1);const _t=createCoords(0),Qt=isHTMLElement$1(pt);if((Qt||!Qt&&!ht)&&((getNodeName(pt)!=="body"||isOverflowElement(yt))&&(Et=getNodeScroll(pt)),Qt)){const St=getBoundingClientRect(pt);Ot=getScale$2(pt),_t.x=St.x+pt.clientLeft,_t.y=St.y+pt.clientTop}const vt=yt&&!Qt&&!ht?getHTMLOffset(yt,Et):createCoords(0);return{width:ut.width*Ot.x,height:ut.height*Ot.y,x:ut.x*Ot.x-Et.scrollLeft*Ot.x+_t.x+vt.x,y:ut.y*Ot.y-Et.scrollTop*Ot.y+_t.y+vt.y}}function getClientRects(At){return Array.from(At.getClientRects())}function getDocumentRect(At){const ot=getDocumentElement(At),ut=getNodeScroll(At),pt=At.ownerDocument.body,ft=max$1(ot.scrollWidth,ot.clientWidth,pt.scrollWidth,pt.clientWidth),ht=max$1(ot.scrollHeight,ot.clientHeight,pt.scrollHeight,pt.clientHeight);let yt=-ut.scrollLeft+getWindowScrollBarX(At);const kt=-ut.scrollTop;return getComputedStyle$1(pt).direction==="rtl"&&(yt+=max$1(ot.clientWidth,pt.clientWidth)-ft),{width:ft,height:ht,x:yt,y:kt}}const SCROLLBAR_MAX=25;function getViewportRect(At,ot){const ut=getWindow$1(At),pt=getDocumentElement(At),ft=ut.visualViewport;let ht=pt.clientWidth,yt=pt.clientHeight,kt=0,Et=0;if(ft){ht=ft.width,yt=ft.height;const _t=isWebKit();(!_t||_t&&ot==="fixed")&&(kt=ft.offsetLeft,Et=ft.offsetTop)}const Ot=getWindowScrollBarX(pt);if(Ot<=0){const _t=pt.ownerDocument,Qt=_t.body,vt=getComputedStyle(Qt),St=_t.compatMode==="CSS1Compat"&&parseFloat(vt.marginLeft)+parseFloat(vt.marginRight)||0,$t=Math.abs(pt.clientWidth-Qt.clientWidth-St);$t<=SCROLLBAR_MAX&&(ht-=$t)}else Ot<=SCROLLBAR_MAX&&(ht+=Ot);return{width:ht,height:yt,x:kt,y:Et}}function getInnerBoundingClientRect(At,ot){const ut=getBoundingClientRect(At,!0,ot==="fixed"),pt=ut.top+At.clientTop,ft=ut.left+At.clientLeft,ht=isHTMLElement$1(At)?getScale$2(At):createCoords(1),yt=At.clientWidth*ht.x,kt=At.clientHeight*ht.y,Et=ft*ht.x,Ot=pt*ht.y;return{width:yt,height:kt,x:Et,y:Ot}}function getClientRectFromClippingAncestor(At,ot,ut){let pt;if(ot==="viewport")pt=getViewportRect(At,ut);else if(ot==="document")pt=getDocumentRect(getDocumentElement(At));else if(isElement(ot))pt=getInnerBoundingClientRect(ot,ut);else{const ft=getVisualOffsets(At);pt={x:ot.x-ft.x,y:ot.y-ft.y,width:ot.width,height:ot.height}}return rectToClientRect(pt)}function hasFixedPositionAncestor(At,ot){const ut=getParentNode(At);return ut===ot||!isElement(ut)||isLastTraversableNode(ut)?!1:getComputedStyle$1(ut).position==="fixed"||hasFixedPositionAncestor(ut,ot)}function getClippingElementAncestors(At,ot){const ut=ot.get(At);if(ut)return ut;let pt=getOverflowAncestors(At,[],!1).filter(kt=>isElement(kt)&&getNodeName(kt)!=="body"),ft=null;const ht=getComputedStyle$1(At).position==="fixed";let yt=ht?getParentNode(At):At;for(;isElement(yt)&&!isLastTraversableNode(yt);){const kt=getComputedStyle$1(yt),Et=isContainingBlock(yt);!Et&&kt.position==="fixed"&&(ft=null),(ht?!Et&&!ft:!Et&&kt.position==="static"&&!!ft&&(ft.position==="absolute"||ft.position==="fixed")||isOverflowElement(yt)&&!Et&&hasFixedPositionAncestor(At,yt))?pt=pt.filter(_t=>_t!==yt):ft=kt,yt=getParentNode(yt)}return ot.set(At,pt),pt}function getClippingRect(At){let{element:ot,boundary:ut,rootBoundary:pt,strategy:ft}=At;const yt=[...ut==="clippingAncestors"?isTopLayer(ot)?[]:getClippingElementAncestors(ot,this._c):[].concat(ut),pt],kt=getClientRectFromClippingAncestor(ot,yt[0],ft);let Et=kt.top,Ot=kt.right,_t=kt.bottom,Qt=kt.left;for(let vt=1;vt<yt.length;vt++){const St=getClientRectFromClippingAncestor(ot,yt[vt],ft);Et=max$1(St.top,Et),Ot=min$1(St.right,Ot),_t=min$1(St.bottom,_t),Qt=max$1(St.left,Qt)}return{width:Ot-Qt,height:_t-Et,x:Qt,y:Et}}function getDimensions(At){const{width:ot,height:ut}=getCssDimensions(At);return{width:ot,height:ut}}function getRectRelativeToOffsetParent(At,ot,ut){const pt=isHTMLElement$1(ot),ft=getDocumentElement(ot),ht=ut==="fixed",yt=getBoundingClientRect(At,!0,ht,ot);let kt={scrollLeft:0,scrollTop:0};const Et=createCoords(0);function Ot(){Et.x=getWindowScrollBarX(ft)}if(pt||!pt&&!ht)if((getNodeName(ot)!=="body"||isOverflowElement(ft))&&(kt=getNodeScroll(ot)),pt){const St=getBoundingClientRect(ot,!0,ht,ot);Et.x=St.x+ot.clientLeft,Et.y=St.y+ot.clientTop}else ft&&Ot();ht&&!pt&&ft&&Ot();const _t=ft&&!pt&&!ht?getHTMLOffset(ft,kt):createCoords(0),Qt=yt.left+kt.scrollLeft-Et.x-_t.x,vt=yt.top+kt.scrollTop-Et.y-_t.y;return{x:Qt,y:vt,width:yt.width,height:yt.height}}function isStaticPositioned(At){return getComputedStyle$1(At).position==="static"}function getTrueOffsetParent(At,ot){if(!isHTMLElement$1(At)||getComputedStyle$1(At).position==="fixed")return null;if(ot)return ot(At);let ut=At.offsetParent;return getDocumentElement(At)===ut&&(ut=ut.ownerDocument.body),ut}function getOffsetParent(At,ot){const ut=getWindow$1(At);if(isTopLayer(At))return ut;if(!isHTMLElement$1(At)){let ft=getParentNode(At);for(;ft&&!isLastTraversableNode(ft);){if(isElement(ft)&&!isStaticPositioned(ft))return ft;ft=getParentNode(ft)}return ut}let pt=getTrueOffsetParent(At,ot);for(;pt&&isTableElement(pt)&&isStaticPositioned(pt);)pt=getTrueOffsetParent(pt,ot);return pt&&isLastTraversableNode(pt)&&isStaticPositioned(pt)&&!isContainingBlock(pt)?ut:pt||getContainingBlock(At)||ut}const getElementRects=async function(At){const ot=this.getOffsetParent||getOffsetParent,ut=this.getDimensions,pt=await ut(At.floating);return{reference:getRectRelativeToOffsetParent(At.reference,await ot(At.floating),At.strategy),floating:{x:0,y:0,width:pt.width,height:pt.height}}};function isRTL(At){return getComputedStyle$1(At).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale:getScale$2,isElement,isRTL};function rectsAreEqual(At,ot){return At.x===ot.x&&At.y===ot.y&&At.width===ot.width&&At.height===ot.height}function observeMove(At,ot){let ut=null,pt;const ft=getDocumentElement(At);function ht(){var kt;clearTimeout(pt),(kt=ut)==null||kt.disconnect(),ut=null}function yt(kt,Et){kt===void 0&&(kt=!1),Et===void 0&&(Et=1),ht();const Ot=At.getBoundingClientRect(),{left:_t,top:Qt,width:vt,height:St}=Ot;if(kt||ot(),!vt||!St)return;const $t=floor(Qt),Pt=floor(ft.clientWidth-(_t+vt)),Nt=floor(ft.clientHeight-(Qt+St)),Lt=floor(_t),jt={rootMargin:-$t+"px "+-Pt+"px "+-Nt+"px "+-Lt+"px",threshold:max$1(0,min$1(1,Et))||1};let Zt=!0;function Ht(Wt){const wn=Wt[0].intersectionRatio;if(wn!==Et){if(!Zt)return yt();wn?yt(!1,wn):pt=setTimeout(()=>{yt(!1,1e-7)},1e3)}wn===1&&!rectsAreEqual(Ot,At.getBoundingClientRect())&&yt(),Zt=!1}try{ut=new IntersectionObserver(Ht,{...jt,root:ft.ownerDocument})}catch{ut=new IntersectionObserver(Ht,jt)}ut.observe(At)}return yt(!0),ht}function autoUpdate(At,ot,ut,pt){pt===void 0&&(pt={});const{ancestorScroll:ft=!0,ancestorResize:ht=!0,elementResize:yt=typeof ResizeObserver=="function",layoutShift:kt=typeof IntersectionObserver=="function",animationFrame:Et=!1}=pt,Ot=unwrapElement(At),_t=ft||ht?[...Ot?getOverflowAncestors(Ot):[],...ot?getOverflowAncestors(ot):[]]:[];_t.forEach(Lt=>{ft&&Lt.addEventListener("scroll",ut,{passive:!0}),ht&&Lt.addEventListener("resize",ut)});const Qt=Ot&&kt?observeMove(Ot,ut):null;let vt=-1,St=null;yt&&(St=new ResizeObserver(Lt=>{let[qt]=Lt;qt&&qt.target===Ot&&St&&ot&&(St.unobserve(ot),cancelAnimationFrame(vt),vt=requestAnimationFrame(()=>{var jt;(jt=St)==null||jt.observe(ot)})),ut()}),Ot&&!Et&&St.observe(Ot),ot&&St.observe(ot));let $t,Pt=Et?getBoundingClientRect(At):null;Et&&Nt();function Nt(){const Lt=getBoundingClientRect(At);Pt&&!rectsAreEqual(Pt,Lt)&&ut(),Pt=Lt,$t=requestAnimationFrame(Nt)}return ut(),()=>{var Lt;_t.forEach(qt=>{ft&&qt.removeEventListener("scroll",ut),ht&&qt.removeEventListener("resize",ut)}),Qt?.(),(Lt=St)==null||Lt.disconnect(),St=null,Et&&cancelAnimationFrame($t)}}const offset$1=offset$2,shift$2=shift$3,flip$1=flip$2,size$1=size$2,hide$3=hide$4,limitShift$1=limitShift$2,computePosition=(At,ot,ut)=>{const pt=new Map,ft={platform,...ut},ht={...ft.platform,_c:pt};return computePosition$1(At,ot,{...ft,platform:ht})};var isClient=typeof document<"u",noop$1=function(){},index$n=isClient?reactExports.useLayoutEffect:noop$1;function deepEqual(At,ot){if(At===ot)return!0;if(typeof At!=typeof ot)return!1;if(typeof At=="function"&&At.toString()===ot.toString())return!0;let ut,pt,ft;if(At&&ot&&typeof At=="object"){if(Array.isArray(At)){if(ut=At.length,ut!==ot.length)return!1;for(pt=ut;pt--!==0;)if(!deepEqual(At[pt],ot[pt]))return!1;return!0}if(ft=Object.keys(At),ut=ft.length,ut!==Object.keys(ot).length)return!1;for(pt=ut;pt--!==0;)if(!{}.hasOwnProperty.call(ot,ft[pt]))return!1;for(pt=ut;pt--!==0;){const ht=ft[pt];if(!(ht==="_owner"&&At.$$typeof)&&!deepEqual(At[ht],ot[ht]))return!1}return!0}return At!==At&&ot!==ot}function getDPR(At){return typeof window>"u"?1:(At.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(At,ot){const ut=getDPR(At);return Math.round(ot*ut)/ut}function useLatestRef(At){const ot=reactExports.useRef(At);return index$n(()=>{ot.current=At}),ot}function useFloating$1(At){At===void 0&&(At={});const{placement:ot="bottom",strategy:ut="absolute",middleware:pt=[],platform:ft,elements:{reference:ht,floating:yt}={},transform:kt=!0,whileElementsMounted:Et,open:Ot}=At,[_t,Qt]=reactExports.useState({x:0,y:0,strategy:ut,placement:ot,middlewareData:{},isPositioned:!1}),[vt,St]=reactExports.useState(pt);deepEqual(vt,pt)||St(pt);const[$t,Pt]=reactExports.useState(null),[Nt,Lt]=reactExports.useState(null),qt=reactExports.useCallback(nr=>{nr!==Wt.current&&(Wt.current=nr,Pt(nr))},[]),jt=reactExports.useCallback(nr=>{nr!==wn.current&&(wn.current=nr,Lt(nr))},[]),Zt=ht||$t,Ht=yt||Nt,Wt=reactExports.useRef(null),wn=reactExports.useRef(null),Qn=reactExports.useRef(_t),Jt=Et!=null,Gn=useLatestRef(Et),Jn=useLatestRef(ft),Vn=useLatestRef(Ot),Fn=reactExports.useCallback(()=>{if(!Wt.current||!wn.current)return;const nr={placement:ot,strategy:ut,middleware:vt};Jn.current&&(nr.platform=Jn.current),computePosition(Wt.current,wn.current,nr).then(mr=>{const Zn={...mr,isPositioned:Vn.current!==!1};Xn.current&&!deepEqual(Qn.current,Zn)&&(Qn.current=Zn,reactDomExports.flushSync(()=>{Qt(Zn)}))})},[vt,ot,ut,Jn,Vn]);index$n(()=>{Ot===!1&&Qn.current.isPositioned&&(Qn.current.isPositioned=!1,Qt(nr=>({...nr,isPositioned:!1})))},[Ot]);const Xn=reactExports.useRef(!1);index$n(()=>(Xn.current=!0,()=>{Xn.current=!1}),[]),index$n(()=>{if(Zt&&(Wt.current=Zt),Ht&&(wn.current=Ht),Zt&&Ht){if(Gn.current)return Gn.current(Zt,Ht,Fn);Fn()}},[Zt,Ht,Fn,Gn,Jt]);const Ar=reactExports.useMemo(()=>({reference:Wt,floating:wn,setReference:qt,setFloating:jt}),[qt,jt]),Yn=reactExports.useMemo(()=>({reference:Zt,floating:Ht}),[Zt,Ht]),lr=reactExports.useMemo(()=>{const nr={position:ut,left:0,top:0};if(!Yn.floating)return nr;const mr=roundByDPR(Yn.floating,_t.x),Zn=roundByDPR(Yn.floating,_t.y);return kt?{...nr,transform:"translate("+mr+"px, "+Zn+"px)",...getDPR(Yn.floating)>=1.5&&{willChange:"transform"}}:{position:ut,left:mr,top:Zn}},[ut,kt,Yn.floating,_t.x,_t.y]);return reactExports.useMemo(()=>({..._t,update:Fn,refs:Ar,elements:Yn,floatingStyles:lr}),[_t,Fn,Ar,Yn,lr])}const offset=(At,ot)=>{const ut=offset$1(At);return{name:ut.name,fn:ut.fn,options:[At,ot]}},shift$1=(At,ot)=>{const ut=shift$2(At);return{name:ut.name,fn:ut.fn,options:[At,ot]}},limitShift=(At,ot)=>({fn:limitShift$1(At).fn,options:[At,ot]}),flip=(At,ot)=>{const ut=flip$1(At);return{name:ut.name,fn:ut.fn,options:[At,ot]}},size=(At,ot)=>{const ut=size$1(At);return{name:ut.name,fn:ut.fn,options:[At,ot]}},hide$2=(At,ot)=>{const ut=hide$3(At);return{name:ut.name,fn:ut.fn,options:[At,ot]}},createSelector=(At,ot,ut,pt,ft,ht,...yt)=>{if(yt.length>0)throw new Error(formatErrorMessage(1));let kt;if(At)kt=At;else throw new Error("Missing arguments");return kt};var shim={exports:{}},useSyncExternalStoreShim_production={};var hasRequiredUseSyncExternalStoreShim_production;function requireUseSyncExternalStoreShim_production(){if(hasRequiredUseSyncExternalStoreShim_production)return useSyncExternalStoreShim_production;hasRequiredUseSyncExternalStoreShim_production=1;var At=requireReact();function ot(Qt,vt){return Qt===vt&&(Qt!==0||1/Qt===1/vt)||Qt!==Qt&&vt!==vt}var ut=typeof Object.is=="function"?Object.is:ot,pt=At.useState,ft=At.useEffect,ht=At.useLayoutEffect,yt=At.useDebugValue;function kt(Qt,vt){var St=vt(),$t=pt({inst:{value:St,getSnapshot:vt}}),Pt=$t[0].inst,Nt=$t[1];return ht(function(){Pt.value=St,Pt.getSnapshot=vt,Et(Pt)&&Nt({inst:Pt})},[Qt,St,vt]),ft(function(){return Et(Pt)&&Nt({inst:Pt}),Qt(function(){Et(Pt)&&Nt({inst:Pt})})},[Qt]),yt(St),St}function Et(Qt){var vt=Qt.getSnapshot;Qt=Qt.value;try{var St=vt();return!ut(Qt,St)}catch{return!0}}function Ot(Qt,vt){return vt()}var _t=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ot:kt;return useSyncExternalStoreShim_production.useSyncExternalStore=At.useSyncExternalStore!==void 0?At.useSyncExternalStore:_t,useSyncExternalStoreShim_production}var hasRequiredShim;function requireShim(){return hasRequiredShim||(hasRequiredShim=1,shim.exports=requireUseSyncExternalStoreShim_production()),shim.exports}var shimExports=requireShim(),withSelector={exports:{}},withSelector_production={};var hasRequiredWithSelector_production;function requireWithSelector_production(){if(hasRequiredWithSelector_production)return withSelector_production;hasRequiredWithSelector_production=1;var At=requireReact(),ot=requireShim();function ut(Ot,_t){return Ot===_t&&(Ot!==0||1/Ot===1/_t)||Ot!==Ot&&_t!==_t}var pt=typeof Object.is=="function"?Object.is:ut,ft=ot.useSyncExternalStore,ht=At.useRef,yt=At.useEffect,kt=At.useMemo,Et=At.useDebugValue;return withSelector_production.useSyncExternalStoreWithSelector=function(Ot,_t,Qt,vt,St){var $t=ht(null);if($t.current===null){var Pt={hasValue:!1,value:null};$t.current=Pt}else Pt=$t.current;$t=kt(function(){function Lt(Wt){if(!qt){if(qt=!0,jt=Wt,Wt=vt(Wt),St!==void 0&&Pt.hasValue){var wn=Pt.value;if(St(wn,Wt))return Zt=wn}return Zt=Wt}if(wn=Zt,pt(jt,Wt))return wn;var Qn=vt(Wt);return St!==void 0&&St(wn,Qn)?(jt=Wt,wn):(jt=Wt,Zt=Qn)}var qt=!1,jt,Zt,Ht=Qt===void 0?null:Qt;return[function(){return Lt(_t())},Ht===null?void 0:function(){return Lt(Ht())}]},[_t,Qt,vt,St]);var Nt=ft(Ot,$t[0],$t[1]);return yt(function(){Pt.hasValue=!0,Pt.value=Nt},[Nt]),Et(Nt),Nt},withSelector_production}var hasRequiredWithSelector;function requireWithSelector(){return hasRequiredWithSelector||(hasRequiredWithSelector=1,withSelector.exports=requireWithSelector_production()),withSelector.exports}var withSelectorExports=requireWithSelector();const canUseRawUseSyncExternalStore=isReactVersionAtLeast(19),useStoreImplementation=canUseRawUseSyncExternalStore?useStoreFast:useStoreLegacy;function useStore$1(At,ot,ut,pt,ft){return useStoreImplementation(At,ot,ut,pt,ft)}function useStoreR19(At,ot,ut,pt,ft){const ht=reactExports.useCallback(()=>ot(At.getSnapshot(),ut,pt,ft),[At,ot,ut,pt,ft]);return shimExports.useSyncExternalStore(At.subscribe,ht,ht)}register$2({before(At){At.syncIndex=0,At.didInitialize||(At.syncTick=1,At.syncHooks=[],At.didChangeStore=!0,At.getSnapshot=()=>{let ot=!1;for(let ut=0;ut<At.syncHooks.length;ut+=1){const pt=At.syncHooks[ut],ft=pt.selector(pt.store.state,pt.a1,pt.a2,pt.a3);(pt.didChange||!Object.is(pt.value,ft))&&(ot=!0,pt.value=ft,pt.didChange=!1)}return ot&&(At.syncTick+=1),At.syncTick})},after(At){At.syncHooks.length>0&&(At.didChangeStore&&(At.didChangeStore=!1,At.subscribe=ot=>{const ut=new Set;for(const ft of At.syncHooks)ut.add(ft.store);const pt=[];for(const ft of ut)pt.push(ft.subscribe(ot));return()=>{for(const ft of pt)ft()}}),shimExports.useSyncExternalStore(At.subscribe,At.getSnapshot,At.getSnapshot))}});function useStoreFast(At,ot,ut,pt,ft){const ht=getInstance();if(!ht)return useStoreR19(At,ot,ut,pt,ft);const yt=ht.syncIndex;ht.syncIndex+=1;let kt;return ht.didInitialize?(kt=ht.syncHooks[yt],(kt.store!==At||kt.selector!==ot||!Object.is(kt.a1,ut)||!Object.is(kt.a2,pt)||!Object.is(kt.a3,ft))&&(kt.store!==At&&(ht.didChangeStore=!0),kt.store=At,kt.selector=ot,kt.a1=ut,kt.a2=pt,kt.a3=ft,kt.didChange=!0)):(kt={store:At,selector:ot,a1:ut,a2:pt,a3:ft,value:ot(At.getSnapshot(),ut,pt,ft),didChange:!1},ht.syncHooks.push(kt)),kt.value}function useStoreLegacy(At,ot,ut,pt,ft){return withSelectorExports.useSyncExternalStoreWithSelector(At.subscribe,At.getSnapshot,At.getSnapshot,ht=>ot(ht,ut,pt,ft))}class Store{constructor(ot){this.state=ot,this.listeners=new Set,this.updateTick=0}subscribe=ot=>(this.listeners.add(ot),()=>{this.listeners.delete(ot)});getSnapshot=()=>this.state;setState(ot){if(this.state===ot)return;this.state=ot,this.updateTick+=1;const ut=this.updateTick;for(const pt of this.listeners){if(ut!==this.updateTick)return;pt(ot)}}update(ot){for(const ut in ot)if(!Object.is(this.state[ut],ot[ut])){this.setState({...this.state,...ot});return}}set(ot,ut){Object.is(this.state[ot],ut)||this.setState({...this.state,[ot]:ut})}notifyAll(){const ot={...this.state};this.setState(ot)}use(ot,ut,pt,ft){return useStore$1(this,ot,ut,pt,ft)}}class ReactStore extends Store{constructor(ot,ut={},pt){super(ot),this.context=ut,this.selectors=pt}useSyncedValue(ot,ut){reactExports.useDebugValue(ot),useIsoLayoutEffect(()=>{this.state[ot]!==ut&&this.set(ot,ut)},[ot,ut])}useSyncedValueWithCleanup(ot,ut){const pt=this;useIsoLayoutEffect(()=>(pt.state[ot]!==ut&&pt.set(ot,ut),()=>{pt.set(ot,void 0)}),[pt,ot,ut])}useSyncedValues(ot){const ut=this,pt=Object.values(ot);useIsoLayoutEffect(()=>{ut.update(ot)},[ut,...pt])}useControlledProp(ot,ut){reactExports.useDebugValue(ot);const pt=ut!==void 0;useIsoLayoutEffect(()=>{pt&&!Object.is(this.state[ot],ut)&&super.setState({...this.state,[ot]:ut})},[ot,ut,pt])}select(ot,ut,pt,ft){const ht=this.selectors[ot];return ht(this.state,ut,pt,ft)}useState(ot,ut,pt,ft){return reactExports.useDebugValue(ot),useStore$1(this,this.selectors[ot],ut,pt,ft)}useContextCallback(ot,ut){reactExports.useDebugValue(ot);const pt=useStableCallback$1(ut??NOOP);this.context[ot]=pt}useStateSetter(ot){const ut=reactExports.useRef(void 0);return ut.current===void 0&&(ut.current=pt=>{this.set(ot,pt)}),ut.current}observe(ot,ut){let pt;typeof ot=="function"?pt=ot:pt=this.selectors[ot];let ft=pt(this.state);return ut(ft,ft,this),this.subscribe(ht=>{const yt=pt(ht);if(!Object.is(ft,yt)){const kt=ft;ft=yt,ut(yt,kt,this)}})}}const selectors$5={open:createSelector(At=>At.open),transitionStatus:createSelector(At=>At.transitionStatus),domReferenceElement:createSelector(At=>At.domReferenceElement),referenceElement:createSelector(At=>At.positionReference??At.referenceElement),floatingElement:createSelector(At=>At.floatingElement),floatingId:createSelector(At=>At.floatingId)};class FloatingRootStore extends ReactStore{constructor(ot){const{syncOnly:ut,nested:pt,onOpenChange:ft,triggerElements:ht,...yt}=ot;super({...yt,positionReference:yt.referenceElement,domReferenceElement:yt.referenceElement},{onOpenChange:ft,dataRef:{current:{}},events:createEventEmitter(),nested:pt,triggerElements:ht},selectors$5),this.syncOnly=ut}syncOpenEvent=(ot,ut)=>{(!ot||!this.state.open||ut!=null&&isClickLikeEvent(ut))&&(this.context.dataRef.current.openEvent=ot?ut:void 0)};dispatchOpenChange=(ot,ut)=>{this.syncOpenEvent(ot,ut.event);const pt={open:ot,reason:ut.reason,nativeEvent:ut.event,nested:this.context.nested,triggerElement:ut.trigger};this.context.events.emit("openchange",pt)};setOpen=(ot,ut)=>{if(this.syncOnly){this.context.onOpenChange?.(ot,ut);return}this.dispatchOpenChange(ot,ut),this.context.onOpenChange?.(ot,ut)}}function useTransitionStatus(At,ot=!1,ut=!1){const[pt,ft]=reactExports.useState(At&&ot?"idle":void 0),[ht,yt]=reactExports.useState(At);return At&&!ht&&(yt(!0),ft("starting")),!At&&ht&&pt!=="ending"&&!ut&&ft("ending"),!At&&!ht&&pt==="ending"&&ft(void 0),useIsoLayoutEffect(()=>{if(!At&&ht&&pt!=="ending"&&ut){const kt=AnimationFrame.request(()=>{ft("ending")});return()=>{AnimationFrame.cancel(kt)}}},[At,ht,pt,ut]),useIsoLayoutEffect(()=>{if(!At||ot)return;const kt=AnimationFrame.request(()=>{ft(void 0)});return()=>{AnimationFrame.cancel(kt)}},[ot,At]),useIsoLayoutEffect(()=>{if(!At||!ot)return;At&&ht&&pt!=="idle"&&ft("starting");const kt=AnimationFrame.request(()=>{ft("idle")});return()=>{AnimationFrame.cancel(kt)}},[ot,At,ht,pt]),{mounted:ht,setMounted:yt,transitionStatus:pt}}let TransitionStatusDataAttributes=(function(At){return At.startingStyle="data-starting-style",At.endingStyle="data-ending-style",At})({});const STARTING_HOOK={[TransitionStatusDataAttributes.startingStyle]:""},ENDING_HOOK={[TransitionStatusDataAttributes.endingStyle]:""},transitionStatusMapping={transitionStatus(At){return At==="starting"?STARTING_HOOK:At==="ending"?ENDING_HOOK:null}};function useAnimationsFinished(At,ot=!1,ut=!0){const pt=useAnimationFrame();return useStableCallback$1((ft,ht=null)=>{pt.cancel();const yt=resolveRef(At);if(yt==null)return;const kt=yt,Et=()=>{reactDomExports.flushSync(ft)};if(typeof kt.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){ft();return}function Ot(){Promise.all(kt.getAnimations().map(_t=>_t.finished)).then(()=>{ht?.aborted||Et()}).catch(()=>{if(ut){ht?.aborted||Et();return}const _t=kt.getAnimations();!ht?.aborted&&_t.length>0&&_t.some(Qt=>Qt.pending||Qt.playState!=="finished")&&Ot()})}if(ot){const _t=TransitionStatusDataAttributes.startingStyle;if(!kt.hasAttribute(_t)){pt.request(Ot);return}const Qt=new MutationObserver(()=>{kt.hasAttribute(_t)||(Qt.disconnect(),Ot())});Qt.observe(kt,{attributes:!0,attributeFilter:[_t]}),ht?.addEventListener("abort",()=>Qt.disconnect(),{once:!0});return}pt.request(Ot)})}function useOpenChangeComplete(At){const{enabled:ot=!0,open:ut,ref:pt,onComplete:ft}=At,ht=useStableCallback$1(ft),yt=useAnimationsFinished(pt,ut,!1);reactExports.useEffect(()=>{if(!ot)return;const kt=new AbortController;return yt(ht,kt.signal),()=>{kt.abort()}},[ot,ut,ht,yt])}function useTriggerRegistration(At,ot){const ut=reactExports.useRef(null),pt=reactExports.useRef(null);return reactExports.useCallback(ft=>{if(At!==void 0){if(ut.current!==null){const ht=ut.current,yt=pt.current,kt=ot.context.triggerElements.getById(ht);yt&&kt===yt&&ot.context.triggerElements.delete(ht),ut.current=null,pt.current=null}ft!==null&&(ut.current=At,pt.current=ft,ot.context.triggerElements.add(At,ft))}},[ot,At])}function useTriggerDataForwarding(At,ot,ut,pt){const ft=ut.useState("isMountedByTrigger",At),ht=useTriggerRegistration(At,ut),yt=useStableCallback$1(kt=>{if(ht(kt),!kt||!ut.select("open"))return;const Et=ut.select("activeTriggerId");if(Et===At){ut.update({activeTriggerElement:kt,...pt});return}Et==null&&ut.update({activeTriggerId:At,activeTriggerElement:kt,...pt})});return useIsoLayoutEffect(()=>{ft&&ut.update({activeTriggerElement:ot.current,...pt})},[ft,ut,ot,...Object.values(pt)]),{registerTrigger:yt,isMountedByThisTrigger:ft}}function useImplicitActiveTrigger(At){const ot=At.useState("open");useIsoLayoutEffect(()=>{if(ot&&!At.select("activeTriggerId")&&At.context.triggerElements.size===1){const ut=At.context.triggerElements.entries().next();if(!ut.done){const[pt,ft]=ut.value;At.update({activeTriggerId:pt,activeTriggerElement:ft})}}},[ot,At])}function useOpenStateTransitions(At,ot,ut){const{mounted:pt,setMounted:ft,transitionStatus:ht}=useTransitionStatus(At);ot.useSyncedValues({mounted:pt,transitionStatus:ht});const yt=useStableCallback$1(()=>{ft(!1),ot.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),ut?.(),ot.context.onOpenChangeComplete?.(!1)}),kt=ot.useState("preventUnmountingOnClose");return useOpenChangeComplete({enabled:!kt,open:At,ref:ot.context.popupRef,onComplete(){At||yt()}}),{forceUnmount:yt,transitionStatus:ht}}class PopupTriggerMap{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(ot,ut){const pt=this.idMap.get(ot);pt!==ut&&(pt!==void 0&&this.elementsSet.delete(pt),this.elementsSet.add(ut),this.idMap.set(ot,ut))}delete(ot){const ut=this.idMap.get(ot);ut&&(this.elementsSet.delete(ut),this.idMap.delete(ot))}hasElement(ot){return this.elementsSet.has(ot)}hasMatchingElement(ot){for(const ut of this.elementsSet)if(ot(ut))return!0;return!1}getById(ot){return this.idMap.get(ot)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function getEmptyRootContext(){return new FloatingRootStore({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new PopupTriggerMap,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0})}function createInitialPopupStoreState(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:getEmptyRootContext(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:EMPTY_OBJECT,inactiveTriggerProps:EMPTY_OBJECT,popupProps:EMPTY_OBJECT}}const activeTriggerIdSelector=createSelector(At=>At.triggerIdProp??At.activeTriggerId),popupStoreSelectors={open:createSelector(At=>At.openProp??At.open),mounted:createSelector(At=>At.mounted),transitionStatus:createSelector(At=>At.transitionStatus),floatingRootContext:createSelector(At=>At.floatingRootContext),preventUnmountingOnClose:createSelector(At=>At.preventUnmountingOnClose),payload:createSelector(At=>At.payload),activeTriggerId:activeTriggerIdSelector,activeTriggerElement:createSelector(At=>At.mounted?At.activeTriggerElement:null),isTriggerActive:createSelector((At,ot)=>ot!==void 0&&activeTriggerIdSelector(At)===ot),isOpenedByTrigger:createSelector((At,ot)=>ot!==void 0&&activeTriggerIdSelector(At)===ot&&At.open),isMountedByTrigger:createSelector((At,ot)=>ot!==void 0&&activeTriggerIdSelector(At)===ot&&At.mounted),triggerProps:createSelector((At,ot)=>ot?At.activeTriggerProps:At.inactiveTriggerProps),popupProps:createSelector(At=>At.popupProps),popupElement:createSelector(At=>At.popupElement),positionerElement:createSelector(At=>At.positionerElement)};function useFloatingRootContext(At){const{open:ot=!1,onOpenChange:ut,elements:pt={}}=At,ft=useId$1(),ht=useFloatingParentNodeId()!=null,yt=useRefWithInit(()=>new FloatingRootStore({open:ot,transitionStatus:void 0,onOpenChange:ut,referenceElement:pt.reference??null,floatingElement:pt.floating??null,triggerElements:new PopupTriggerMap,floatingId:ft,syncOnly:!1,nested:ht})).current;return useIsoLayoutEffect(()=>{const kt={open:ot,floatingId:ft};pt.reference!==void 0&&(kt.referenceElement=pt.reference,kt.domReferenceElement=isElement(pt.reference)?pt.reference:null),pt.floating!==void 0&&(kt.floatingElement=pt.floating),yt.update(kt)},[ot,ft,pt.reference,pt.floating,yt]),yt.context.onOpenChange=ut,yt.context.nested=ht,yt}function useFloating(At={}){const{nodeId:ot,externalTree:ut}=At,pt=useFloatingRootContext(At),ft=At.rootContext||pt,ht={reference:ft.useState("referenceElement"),floating:ft.useState("floatingElement"),domReference:ft.useState("domReferenceElement")},[yt,kt]=reactExports.useState(null),Et=reactExports.useRef(null),Ot=useFloatingTree(ut);useIsoLayoutEffect(()=>{ht.domReference&&(Et.current=ht.domReference)},[ht.domReference]);const _t=useFloating$1({...At,elements:{...ht,...yt&&{reference:yt}}}),Qt=reactExports.useCallback(Qn=>{const Jt=isElement(Qn)?{getBoundingClientRect:()=>Qn.getBoundingClientRect(),getClientRects:()=>Qn.getClientRects(),contextElement:Qn}:Qn;kt(Jt),_t.refs.setReference(Jt)},[_t.refs]),[vt,St]=reactExports.useState(void 0),[$t,Pt]=reactExports.useState(null);ft.useSyncedValue("referenceElement",vt??null);const Nt=isElement(vt)?vt:null;ft.useSyncedValue("domReferenceElement",vt===void 0?ht.domReference:Nt),ft.useSyncedValue("floatingElement",$t);const Lt=reactExports.useCallback(Qn=>{(isElement(Qn)||Qn===null)&&(Et.current=Qn,St(Qn)),(isElement(_t.refs.reference.current)||_t.refs.reference.current===null||Qn!==null&&!isElement(Qn))&&_t.refs.setReference(Qn)},[_t.refs,St]),qt=reactExports.useCallback(Qn=>{Pt(Qn),_t.refs.setFloating(Qn)},[_t.refs]),jt=reactExports.useMemo(()=>({..._t.refs,setReference:Lt,setFloating:qt,setPositionReference:Qt,domReference:Et}),[_t.refs,Lt,qt,Qt]),Zt=reactExports.useMemo(()=>({..._t.elements,domReference:ht.domReference}),[_t.elements,ht.domReference]),Ht=ft.useState("open"),Wt=ft.useState("floatingId"),wn=reactExports.useMemo(()=>({..._t,dataRef:ft.context.dataRef,open:Ht,onOpenChange:ft.setOpen,events:ft.context.events,floatingId:Wt,refs:jt,elements:Zt,nodeId:ot,rootStore:ft}),[_t,jt,Zt,ot,ft,Ht,Wt]);return useIsoLayoutEffect(()=>{ft.context.dataRef.current.floatingContext=wn;const Qn=Ot?.nodesRef.current.find(Jt=>Jt.id===ot);Qn&&(Qn.context=wn)}),reactExports.useMemo(()=>({..._t,context:wn,refs:jt,elements:Zt,rootStore:ft}),[_t,jt,Zt,wn,ft])}function useSyncedFloatingRootContext(At){const{popupStore:ot,treatPopupAsFloatingElement:ut=!1,onOpenChange:pt}=At,ft=useId$1(),ht=useFloatingParentNodeId()!=null,yt=ot.useState("open"),kt=ot.useState("activeTriggerElement"),Et=ot.useState(ut?"popupElement":"positionerElement"),Ot=ot.context.triggerElements,_t=useRefWithInit(()=>new FloatingRootStore({open:yt,transitionStatus:void 0,referenceElement:kt,floatingElement:Et,triggerElements:Ot,onOpenChange:pt,floatingId:ft,syncOnly:!0,nested:ht})).current;return useIsoLayoutEffect(()=>{const Qt={open:yt,floatingId:ft,referenceElement:kt,floatingElement:Et};isElement(kt)&&(Qt.domReferenceElement=kt),_t.state.positionReference===_t.state.referenceElement&&(Qt.positionReference=kt),_t.update(Qt)},[yt,ft,kt,Et,_t]),_t.context.onOpenChange=pt,_t.context.nested=ht,_t}const isMacSafari=isMac&&isSafari;function useFocus(At,ot={}){const ut="rootStore"in At?At.rootStore:At,{events:pt,dataRef:ft}=ut.context,{enabled:ht=!0,delay:yt}=ot,kt=reactExports.useRef(!1),Et=reactExports.useRef(null),Ot=useTimeout(),_t=reactExports.useRef(!0);reactExports.useEffect(()=>{const vt=ut.select("domReferenceElement");if(!ht)return;const St=getWindow$1(vt);function $t(){const Lt=ut.select("domReferenceElement");!ut.select("open")&&isHTMLElement$1(Lt)&&Lt===activeElement(ownerDocument(Lt))&&(kt.current=!0)}function Pt(){_t.current=!0}function Nt(){_t.current=!1}return mergeCleanups(addEventListener(St,"blur",$t),isMacSafari&&addEventListener(St,"keydown",Pt,!0),isMacSafari&&addEventListener(St,"pointerdown",Nt,!0))},[ut,ht]),reactExports.useEffect(()=>{if(!ht)return;function vt(St){if(St.reason===triggerPress||St.reason===escapeKey){const $t=ut.select("domReferenceElement");isElement($t)&&(Et.current=$t,kt.current=!0)}}return pt.on("openchange",vt),()=>{pt.off("openchange",vt)}},[pt,ht,ut]);const Qt=reactExports.useMemo(()=>({onMouseLeave(){kt.current=!1,Et.current=null},onFocus(vt){const St=vt.currentTarget;if(kt.current){if(Et.current===St)return;kt.current=!1,Et.current=null}const $t=getTarget(vt.nativeEvent);if(isElement($t)){if(isMacSafari&&!vt.relatedTarget){if(!_t.current&&!isTypeableElement($t))return}else if(!matchesFocusVisible($t))return}const Pt=isTargetInsideEnabledTrigger(vt.relatedTarget,ut.context.triggerElements),{nativeEvent:Nt,currentTarget:Lt}=vt,qt=typeof yt=="function"?yt():yt;if(ut.select("open")&&Pt||qt===0||qt===void 0){ut.setOpen(!0,createChangeEventDetails(triggerFocus,Nt,Lt));return}Ot.start(qt,()=>{kt.current||ut.setOpen(!0,createChangeEventDetails(triggerFocus,Nt,Lt))})},onBlur(vt){kt.current=!1,Et.current=null;const St=vt.relatedTarget,$t=vt.nativeEvent,Pt=isElement(St)&&St.hasAttribute(createAttribute("focus-guard"))&&St.getAttribute("data-type")==="outside";Ot.start(0,()=>{const Nt=ut.select("domReferenceElement"),Lt=activeElement(ownerDocument(Nt));!St&&Lt===Nt||contains$2(ft.current.floatingContext?.refs.floating.current,Lt)||contains$2(Nt,Lt)||Pt||isTargetInsideEnabledTrigger(St??Lt,ut.context.triggerElements)||ut.setOpen(!1,createChangeEventDetails(triggerFocus,$t))})}}),[ft,ut,Ot,yt]);return reactExports.useMemo(()=>ht?{reference:Qt,trigger:Qt}:{},[ht,Qt])}class HoverInteraction{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Timeout,this.restTimeout=new Timeout,this.handleCloseOptions=void 0}static create(){return new HoverInteraction}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const pointerEventsMutationOwnerByScopeElement=new WeakMap;function clearSafePolygonPointerEventsMutation(At){if(!At.performedPointerEventsMutation)return;const ot=At.pointerEventsScopeElement;ot&&pointerEventsMutationOwnerByScopeElement.get(ot)===At&&(At.pointerEventsScopeElement?.style.removeProperty("pointer-events"),At.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),At.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),pointerEventsMutationOwnerByScopeElement.delete(ot)),At.performedPointerEventsMutation=!1,At.pointerEventsScopeElement=null,At.pointerEventsReferenceElement=null,At.pointerEventsFloatingElement=null}function applySafePolygonPointerEventsMutation(At,ot){const{scopeElement:ut,referenceElement:pt,floatingElement:ft}=ot,ht=pointerEventsMutationOwnerByScopeElement.get(ut);ht&&ht!==At&&clearSafePolygonPointerEventsMutation(ht),clearSafePolygonPointerEventsMutation(At),At.performedPointerEventsMutation=!0,At.pointerEventsScopeElement=ut,At.pointerEventsReferenceElement=pt,At.pointerEventsFloatingElement=ft,pointerEventsMutationOwnerByScopeElement.set(ut,At),ut.style.pointerEvents="none",pt.style.pointerEvents="auto",ft.style.pointerEvents="auto"}function useHoverInteractionSharedState(At){const ot=useRefWithInit(HoverInteraction.create).current,ut=At.context.dataRef.current;return ut.hoverInteractionState||(ut.hoverInteractionState=ot),useOnMount(ut.hoverInteractionState.disposeEffect),ut.hoverInteractionState}function useHoverFloatingInteraction(At,ot={}){const ut="rootStore"in At?At.rootStore:At,pt=ut.useState("open"),ft=ut.useState("floatingElement"),ht=ut.useState("domReferenceElement"),{dataRef:yt}=ut.context,{enabled:kt=!0,closeDelay:Et=0,nodeId:Ot}=ot,_t=useHoverInteractionSharedState(ut),Qt=useFloatingTree(),vt=useFloatingParentNodeId(),St=useStableCallback$1(()=>isClickLikeOpenEvent(yt.current.openEvent?.type,_t.interactedInside)),$t=useStableCallback$1(()=>{const Zt=yt.current.openEvent?.type;return Zt?.includes("mouse")&&Zt!=="mousedown"}),Pt=useStableCallback$1(Zt=>isTargetInsideEnabledTrigger(Zt,ut.context.triggerElements)),Nt=reactExports.useCallback(Zt=>{const Ht=getDelay(Et,"close",_t.pointerType),Wt=()=>{ut.setOpen(!1,createChangeEventDetails(triggerHover,Zt)),Qt?.events.emit("floating.closed",Zt)};Ht?_t.openChangeTimeout.start(Ht,Wt):(_t.openChangeTimeout.clear(),Wt())},[Et,ut,_t,Qt]),Lt=useStableCallback$1(()=>{clearSafePolygonPointerEventsMutation(_t)}),qt=useStableCallback$1(Zt=>{const Ht=getTarget(Zt);if(!isInteractiveElement(Ht)){_t.interactedInside=!1;return}_t.interactedInside=Ht?.closest("[aria-haspopup]")!=null});useIsoLayoutEffect(()=>{pt||(_t.pointerType=void 0,_t.restTimeoutPending=!1,_t.interactedInside=!1,Lt())},[pt,_t,Lt]),reactExports.useEffect(()=>Lt,[Lt]),useIsoLayoutEffect(()=>{if(kt&&pt&&_t.handleCloseOptions?.blockPointerEvents&&$t()&&isElement(ht)&&ft){const Zt=ht,Ht=ft,Wt=ownerDocument(ft),wn=Qt?.nodesRef.current.find(Jt=>Jt.id===vt)?.context?.elements.floating;wn&&(wn.style.pointerEvents="");const Qn=_t.handleCloseOptions?.getScope?.()??_t.pointerEventsScopeElement??wn??Zt.closest("[data-rootownerid]")??Wt.body;return applySafePolygonPointerEventsMutation(_t,{scopeElement:Qn,referenceElement:Zt,floatingElement:Ht}),()=>{Lt()}}},[kt,pt,ht,ft,_t,$t,Qt,vt,Lt]);const jt=useTimeout();reactExports.useEffect(()=>{if(!kt)return;function Zt(){_t.openChangeTimeout.clear(),jt.clear(),Qt?.events.off("floating.closed",Wt),Lt()}function Ht(Qn){if(Qt&&vt&&getNodeChildren(Qt.nodesRef.current,vt).length>0){Qt.events.on("floating.closed",Wt);return}if(Pt(Qn.relatedTarget))return;const Jt=yt.current.floatingContext?.nodeId??Ot,Gn=Qn.relatedTarget;if(!(Qt&&Jt&&isElement(Gn)&&getNodeChildren(Qt.nodesRef.current,Jt,!1).some(Vn=>contains$2(Vn.context?.elements.floating,Gn)))){if(_t.handler){_t.handler(Qn);return}Lt(),St()||Nt(Qn)}}function Wt(Qn){!Qt||!vt||getNodeChildren(Qt.nodesRef.current,vt).length>0||jt.start(0,()=>{Qt.events.off("floating.closed",Wt),ut.setOpen(!1,createChangeEventDetails(triggerHover,Qn)),Qt.events.emit("floating.closed",Qn)})}const wn=ft;return mergeCleanups(wn&&addEventListener(wn,"mouseenter",Zt),wn&&addEventListener(wn,"mouseleave",Ht),wn&&addEventListener(wn,"pointerdown",qt,!0),()=>{Qt?.events.off("floating.closed",Wt)})},[kt,ft,ut,yt,Ot,St,Pt,Nt,Lt,qt,_t,Qt,vt,jt])}const EMPTY_REF={current:null};function useHoverReferenceInteraction(At,ot={}){const ut="rootStore"in At?At.rootStore:At,{dataRef:pt,events:ft}=ut.context,{enabled:ht=!0,delay:yt=0,handleClose:kt=null,mouseOnly:Et=!1,restMs:Ot=0,move:_t=!0,triggerElementRef:Qt=EMPTY_REF,externalTree:vt,isActiveTrigger:St=!0,getHandleCloseContext:$t,isClosing:Pt}=ot,Nt=useFloatingTree(vt),Lt=useHoverInteractionSharedState(ut),qt=reactExports.useRef(!1),jt=useValueAsRef(kt),Zt=useValueAsRef(yt),Ht=useValueAsRef(Ot),Wt=useValueAsRef(ht),wn=useValueAsRef(Pt);St&&(Lt.handleCloseOptions=jt.current?.__options);const Qn=useStableCallback$1(()=>isClickLikeOpenEvent(pt.current.openEvent?.type,Lt.interactedInside)),Jt=useStableCallback$1(Xn=>isTargetInsideEnabledTrigger(Xn,ut.context.triggerElements)),Gn=useStableCallback$1((Xn,Ar,Yn)=>{const lr=ut.context.triggerElements;if(lr.hasElement(Ar))return!Xn||!contains$2(Xn,Ar);if(!isElement(Yn))return!1;const nr=Yn;return lr.hasMatchingElement(mr=>contains$2(mr,nr))&&(!Xn||!contains$2(Xn,nr))}),Jn=useStableCallback$1((Xn,Ar=!0)=>{const Yn=getDelay(Zt.current,"close",Lt.pointerType);Yn?Lt.openChangeTimeout.start(Yn,()=>{ut.setOpen(!1,createChangeEventDetails(triggerHover,Xn)),Nt?.events.emit("floating.closed",Xn)}):Ar&&(Lt.openChangeTimeout.clear(),ut.setOpen(!1,createChangeEventDetails(triggerHover,Xn)),Nt?.events.emit("floating.closed",Xn))}),Vn=useStableCallback$1(()=>{if(!Lt.handler)return;ownerDocument(ut.select("domReferenceElement")).removeEventListener("mousemove",Lt.handler),Lt.handler=void 0}),Fn=useStableCallback$1(()=>{clearSafePolygonPointerEventsMutation(Lt)});return reactExports.useEffect(()=>Vn,[Vn]),reactExports.useEffect(()=>{if(!ht)return;function Xn(Ar){Ar.open?qt.current=!1:(qt.current=Ar.reason===triggerHover,Vn(),Lt.openChangeTimeout.clear(),Lt.restTimeout.clear(),Lt.blockMouseMove=!0,Lt.restTimeoutPending=!1)}return ft.on("openchange",Xn),()=>{ft.off("openchange",Xn)}},[ht,ft,Lt,Vn]),reactExports.useEffect(()=>{if(!ht)return;const Xn=Qt.current??(St?ut.select("domReferenceElement"):null);if(!isElement(Xn))return;function Ar(lr){if(Lt.openChangeTimeout.clear(),Lt.blockMouseMove=!1,Et&&!isMouseLikePointerType(Lt.pointerType))return;const nr=getRestMs(Ht.current),mr=getDelay(Zt.current,"open",Lt.pointerType),Zn=getTarget(lr),ur=lr.currentTarget??null,yr=ut.select("domReferenceElement");let ir=ur;if(isElement(Zn)&&!ut.context.triggerElements.hasElement(Zn)){for(const ma of ut.context.triggerElements.elements())if(contains$2(ma,Zn)){ir=ma;break}}isElement(ur)&&isElement(yr)&&!ut.context.triggerElements.hasElement(ur)&&contains$2(ur,yr)&&(ir=yr);const Cr=ir==null?!1:Gn(yr,ir,Zn),kr=ut.select("open"),Br=wn.current?.()??ut.select("transitionStatus")==="ending",Dr=!kr&&Br&&qt.current,Gr=!Cr&&isElement(ir)&&isElement(yr)&&contains$2(yr,ir)&&Dr,jr=nr>0&&!mr,na=Cr&&(kr||Dr)||Gr,ca=!kr||Cr;if(na){ut.setOpen(!0,createChangeEventDetails(triggerHover,lr,ir));return}jr||(mr?Lt.openChangeTimeout.start(mr,()=>{ca&&ut.setOpen(!0,createChangeEventDetails(triggerHover,lr,ir))}):ca&&ut.setOpen(!0,createChangeEventDetails(triggerHover,lr,ir)))}function Yn(lr){if(Qn()){Fn();return}Vn();const nr=ut.select("domReferenceElement"),mr=ownerDocument(nr);Lt.restTimeout.clear(),Lt.restTimeoutPending=!1;const Zn=pt.current.floatingContext??$t?.();if(Jt(lr.relatedTarget))return;if(jt.current&&Zn){ut.select("open")||Lt.openChangeTimeout.clear();const ir=Qt.current;Lt.handler=jt.current({...Zn,tree:Nt,x:lr.clientX,y:lr.clientY,onClose(){Fn(),Vn(),Wt.current&&!Qn()&&ir===ut.select("domReferenceElement")&&Jn(lr,!0)}}),mr.addEventListener("mousemove",Lt.handler),Lt.handler(lr);return}(Lt.pointerType!=="touch"||!contains$2(ut.select("floatingElement"),lr.relatedTarget))&&Jn(lr)}return _t?mergeCleanups(addEventListener(Xn,"mousemove",Ar,{once:!0}),addEventListener(Xn,"mouseenter",Ar),addEventListener(Xn,"mouseleave",Yn)):mergeCleanups(addEventListener(Xn,"mouseenter",Ar),addEventListener(Xn,"mouseleave",Yn))},[Vn,Fn,pt,Zt,Jn,ut,ht,jt,Lt,St,Gn,Qn,Jt,Et,_t,Ht,Qt,Nt,Wt,$t,wn]),reactExports.useMemo(()=>{if(!ht)return;function Xn(Ar){Lt.pointerType=Ar.pointerType}return{onPointerDown:Xn,onPointerEnter:Xn,onMouseMove(Ar){const{nativeEvent:Yn}=Ar,lr=Ar.currentTarget,nr=ut.select("domReferenceElement"),mr=ut.select("open"),Zn=Gn(nr,lr,Ar.target);if(Et&&!isMouseLikePointerType(Lt.pointerType))return;if(mr&&Zn&&Lt.handleCloseOptions?.blockPointerEvents){const ir=ut.select("floatingElement");if(ir){const Cr=Lt.handleCloseOptions?.getScope?.()??lr.ownerDocument.body;applySafePolygonPointerEventsMutation(Lt,{scopeElement:Cr,referenceElement:lr,floatingElement:ir})}}const ur=getRestMs(Ht.current);if(mr&&!Zn||ur===0||!Zn&&Lt.restTimeoutPending&&Ar.movementX**2+Ar.movementY**2<2)return;Lt.restTimeout.clear();function yr(){if(Lt.restTimeoutPending=!1,Qn())return;const ir=ut.select("open");!Lt.blockMouseMove&&(!ir||Zn)&&ut.setOpen(!0,createChangeEventDetails(triggerHover,Yn,lr))}Lt.pointerType==="touch"?reactDomExports.flushSync(()=>{yr()}):Zn&&mr?yr():(Lt.restTimeoutPending=!0,Lt.restTimeout.start(ur,yr))}}},[ht,Lt,Qn,Gn,Et,ut,Ht])}function useInteractions(At=[]){const ot=At.map(Ot=>Ot?.reference),ut=At.map(Ot=>Ot?.floating),pt=At.map(Ot=>Ot?.item),ft=At.map(Ot=>Ot?.trigger),ht=reactExports.useCallback(Ot=>mergeProps$2(Ot,At,"reference"),ot),yt=reactExports.useCallback(Ot=>mergeProps$2(Ot,At,"floating"),ut),kt=reactExports.useCallback(Ot=>mergeProps$2(Ot,At,"item"),pt),Et=reactExports.useCallback(Ot=>mergeProps$2(Ot,At,"trigger"),ft);return reactExports.useMemo(()=>({getReferenceProps:ht,getFloatingProps:yt,getItemProps:kt,getTriggerProps:Et}),[ht,yt,kt,Et])}function mergeProps$2(At,ot,ut){const pt=new Map,ft=ut==="item",ht={};ut==="floating"&&(ht.tabIndex=-1,ht[FOCUSABLE_ATTRIBUTE]="");for(const yt in At)ft&&At&&(yt===ACTIVE_KEY||yt===SELECTED_KEY)||(ht[yt]=At[yt]);for(let yt=0;yt<ot.length;yt+=1){let kt;const Et=ot[yt]?.[ut];typeof Et=="function"?kt=At?Et(At):null:kt=Et,kt&&mutablyMergeProps(ht,kt,ft,pt)}return mutablyMergeProps(ht,At,ft,pt),ht}function mutablyMergeProps(At,ot,ut,pt){for(const ft in ot){const ht=ot[ft];ut&&(ft===ACTIVE_KEY||ft===SELECTED_KEY)||(ft.startsWith("on")?(pt.has(ft)||pt.set(ft,[]),typeof ht=="function"&&(pt.get(ft)?.push(ht),At[ft]=(...yt)=>pt.get(ft)?.map(kt=>kt(...yt)).find(kt=>kt!==void 0))):At[ft]=ht)}}function isMouseWithinBounds(At){const ot=At.currentTarget.getBoundingClientRect();return ot.top+1<=At.clientY&&At.clientY<=ot.bottom-1&&ot.left+1<=At.clientX&&At.clientX<=ot.right-1}const ESCAPE="Escape";function doSwitch(At,ot,ut){switch(At){case"vertical":return ot;case"horizontal":return ut;default:return ot||ut}}function isMainOrientationKey(At,ot){return doSwitch(ot,At===ARROW_UP$1||At===ARROW_DOWN$1,At===ARROW_LEFT$1||At===ARROW_RIGHT$1)}function isMainOrientationToEndKey(At,ot,ut){return doSwitch(ot,At===ARROW_DOWN$1,ut?At===ARROW_LEFT$1:At===ARROW_RIGHT$1)||At==="Enter"||At===" "||At===""}function isCrossOrientationOpenKey(At,ot,ut){return doSwitch(ot,ut?At===ARROW_LEFT$1:At===ARROW_RIGHT$1,At===ARROW_DOWN$1)}function isCrossOrientationCloseKey(At,ot,ut,pt){const ft=ut?At===ARROW_RIGHT$1:At===ARROW_LEFT$1,ht=At===ARROW_UP$1;return ot==="both"||ot==="horizontal"&&pt&&pt>1?At===ESCAPE:doSwitch(ot,ft,ht)}function useListNavigation(At,ot){const ut="rootStore"in At?At.rootStore:At,pt=ut.useState("open"),ft=ut.useState("floatingElement"),ht=ut.useState("domReferenceElement"),yt=ut.context.dataRef,{listRef:kt,activeIndex:Et,onNavigate:Ot=()=>{},enabled:_t=!0,selectedIndex:Qt=null,allowEscape:vt=!1,loopFocus:St=!1,nested:$t=!1,rtl:Pt=!1,virtual:Nt=!1,focusItemOnOpen:Lt="auto",focusItemOnHover:qt=!0,openOnArrowKeyDown:jt=!0,disabledIndices:Zt=void 0,orientation:Ht="vertical",parentOrientation:Wt,cols:wn=1,id:Qn,resetOnPointerLeave:Jt=!0,externalTree:Gn}=ot,Jn=getFloatingFocusElement(ft),Vn=useValueAsRef(Jn),Fn=useFloatingParentNodeId(),Xn=useFloatingTree(Gn);useIsoLayoutEffect(()=>{yt.current.orientation=Ht},[yt,Ht]);const Ar=isTypeableCombobox(ht),Yn=reactExports.useRef(Lt),lr=reactExports.useRef(Qt??-1),nr=reactExports.useRef(null),mr=reactExports.useRef(!0),Zn=useStableCallback$1($a=>{Ot(lr.current===-1?null:lr.current,$a)}),ur=reactExports.useRef(Zn),yr=reactExports.useRef(!!ft),ir=reactExports.useRef(pt),Cr=reactExports.useRef(!1),kr=reactExports.useRef(!1),Br=reactExports.useRef(null),Dr=useValueAsRef(Zt),Gr=useValueAsRef(pt),jr=useValueAsRef(Qt),na=useValueAsRef(Jt),ca=useStableCallback$1(()=>{function $a(ki){Nt?Xn?.events.emit("virtualfocus",ki):Br.current=enqueueFocus(ki,{sync:Cr.current,preventScroll:!0})}const Ya=kt.current[lr.current],Ta=kr.current;Ya&&$a(Ya),(Cr.current?ki=>ki():requestAnimationFrame)(()=>{const ki=kt.current[lr.current]||Ya;if(!ki)return;Ya||$a(ki),ba&&(Ta||!mr.current)&&ki.scrollIntoView?.({block:"nearest",inline:"nearest"})})});useIsoLayoutEffect(()=>{_t&&(pt&&ft?(lr.current=Qt??-1,Yn.current&&Qt!=null&&(kr.current=!0,Zn())):yr.current&&(lr.current=-1,ur.current()))},[_t,pt,ft,Qt,Zn]),useIsoLayoutEffect(()=>{if(_t){if(!pt){Cr.current=!1;return}if(ft)if(Et==null){if(Cr.current=!1,jr.current!=null)return;if(yr.current&&(lr.current=-1,ca()),(!ir.current||!yr.current)&&Yn.current&&(nr.current!=null||Yn.current===!0&&nr.current==null)){let $a=0;const Ya=()=>{kt.current[0]==null?($a<2&&($a?requestAnimationFrame:queueMicrotask)(Ya),$a+=1):(lr.current=nr.current==null||isMainOrientationToEndKey(nr.current,Ht,Pt)||$t?getMinListIndex(kt):getMaxListIndex(kt),nr.current=null,Zn())};Ya()}}else isIndexOutOfListBounds(kt.current,Et)||(lr.current=Et,ca(),kr.current=!1)}},[_t,pt,ft,Et,jr,$t,kt,Ht,Pt,Zn,ca,Dr]),useIsoLayoutEffect(()=>{if(!_t||ft||!Xn||Nt||!yr.current)return;const $a=Xn.nodesRef.current,Ya=$a.find(ki=>ki.id===Fn)?.context?.elements.floating,Ta=activeElement(ownerDocument(ft)),qa=$a.some(ki=>ki.context&&contains$2(ki.context.elements.floating,Ta));Ya&&!qa&&mr.current&&Ya.focus({preventScroll:!0})},[_t,ft,Xn,Fn,Nt]),useIsoLayoutEffect(()=>{ur.current=Zn,ir.current=pt,yr.current=!!ft}),useIsoLayoutEffect(()=>{pt||(nr.current=null,Yn.current=Lt)},[pt,Lt]);const ma=Et!=null,pa=useStableCallback$1($a=>{if(!Gr.current)return;const Ya=kt.current.indexOf($a.currentTarget);Ya!==-1&&(lr.current!==Ya||Et!==Ya)&&(lr.current=Ya,Zn($a))}),ba=reactExports.useMemo(()=>({onFocus(Ya){Cr.current=!0,pa(Ya)},onClick:({currentTarget:Ya})=>Ya.focus({preventScroll:!0}),onMouseMove(Ya){Cr.current=!0,kr.current=!1,qt&&pa(Ya)},onPointerLeave(Ya){if(!Gr.current||!mr.current||Ya.pointerType==="touch")return;Cr.current=!0;const Ta=Ya.relatedTarget;if(!isMouseWithinBounds(Ya)&&!(!qt||kt.current.includes(Ta))&&na.current&&(Br.current?.(),Br.current=null,lr.current=-1,Zn(Ya),!Nt)){const qa=Vn.current,ki=activeElement(ownerDocument(qa));qa&&contains$2(qa,ki)&&qa.focus({preventScroll:!0})}}}),[pa,Gr,Vn,qt,kt,Zn,na,Nt]),ti=reactExports.useCallback(()=>Wt??Xn?.nodesRef.current.find($a=>$a.id===Fn)?.context?.dataRef?.current.orientation,[Fn,Xn,Wt]),ya=useStableCallback$1($a=>{if(mr.current=!1,Cr.current=!0,$a.which===229||!Gr.current&&$a.currentTarget===Vn.current)return;if($t&&isCrossOrientationCloseKey($a.key,Ht,Pt,wn)){isMainOrientationKey($a.key,ti())||stopEvent($a),ut.setOpen(!1,createChangeEventDetails(listNavigation,$a.nativeEvent)),isHTMLElement$1(ht)&&(Nt?Xn?.events.emit("virtualfocus",ht):ht.focus());return}const Ya=lr.current,Ta=getMinListIndex(kt,Zt),qa=getMaxListIndex(kt,Zt);if(Ar||($a.key==="Home"&&(stopEvent($a),lr.current=Ta,Zn($a)),$a.key==="End"&&(stopEvent($a),lr.current=qa,Zn($a))),wn>1){const ki=Array.from({length:kt.current.length},()=>({width:1,height:1})),La=createGridCellMap(ki,wn),Ja=La.findIndex(ns=>ns!=null&&!isListIndexDisabled(kt.current,ns,Zt)),qi=La.reduce((ns,Qo,ao)=>Qo!=null&&!isListIndexDisabled(kt.current,Qo,Zt)?ao:ns,-1),co=La[getGridNavigatedIndex(La.map(ns=>ns!=null?kt.current[ns]:null),{event:$a,orientation:Ht,loopFocus:St,rtl:Pt,cols:wn,disabledIndices:getGridCellIndices([...(typeof Zt!="function"?Zt:null)||kt.current.map((ns,Qo)=>isListIndexDisabled(kt.current,Qo,Zt)?Qo:void 0),void 0],La),minIndex:Ja,maxIndex:qi,prevIndex:getGridCellIndexOfCorner(lr.current>qa?Ta:lr.current,ki,La,wn,$a.key===ARROW_DOWN$1?"bl":$a.key===(Pt?ARROW_LEFT$1:ARROW_RIGHT$1)?"tr":"tl"),stopEvent:!0})];if(co!=null&&(lr.current=co,Zn($a)),Ht==="both")return}if(isMainOrientationKey($a.key,Ht)){if(stopEvent($a),pt&&!Nt&&activeElement($a.currentTarget.ownerDocument)===$a.currentTarget){lr.current=isMainOrientationToEndKey($a.key,Ht,Pt)?Ta:qa,Zn($a);return}isMainOrientationToEndKey($a.key,Ht,Pt)?St?Ya>=qa?vt&&Ya!==kt.current.length?lr.current=-1:(Cr.current=!1,lr.current=Ta):lr.current=findNonDisabledListIndex(kt.current,{startingIndex:Ya,disabledIndices:Zt}):lr.current=Math.min(qa,findNonDisabledListIndex(kt.current,{startingIndex:Ya,disabledIndices:Zt})):St?Ya<=Ta?vt&&Ya!==-1?lr.current=kt.current.length:(Cr.current=!1,lr.current=qa):lr.current=findNonDisabledListIndex(kt.current,{startingIndex:Ya,decrement:!0,disabledIndices:Zt}):lr.current=Math.max(Ta,findNonDisabledListIndex(kt.current,{startingIndex:Ya,decrement:!0,disabledIndices:Zt})),isIndexOutOfListBounds(kt.current,lr.current)&&(lr.current=-1),Zn($a)}}),Xa=reactExports.useMemo(()=>Nt&&pt&&ma&&{"aria-activedescendant":`${Qn}-${Et}`},[Nt,pt,ma,Qn,Et]),Ni=reactExports.useMemo(()=>({"aria-orientation":Ht==="both"?void 0:Ht,...Ar?{}:Xa,onKeyDown($a){if($a.key==="Tab"&&$a.shiftKey&&pt&&!Nt){const Ya=getTarget($a.nativeEvent);if(Ya&&!contains$2(Vn.current,Ya))return;stopEvent($a),ut.setOpen(!1,createChangeEventDetails(focusOut,$a.nativeEvent)),isHTMLElement$1(ht)&&ht.focus();return}ya($a)},onPointerMove(){mr.current=!0}}),[Xa,ya,Vn,Ht,Ar,ut,pt,Nt,ht]),ii=reactExports.useMemo(()=>{function $a(Ta){Lt==="auto"&&isVirtualClick(Ta.nativeEvent)&&(Yn.current=!Nt)}function Ya(Ta){Yn.current=Lt,Lt==="auto"&&isVirtualPointerEvent(Ta.nativeEvent)&&(Yn.current=!0)}return{onKeyDown(Ta){const qa=ut.select("open");mr.current=!1;const ki=Ta.key.startsWith("Arrow"),La=isCrossOrientationOpenKey(Ta.key,ti(),Pt),Ja=isMainOrientationKey(Ta.key,Ht),qi=($t?La:Ja)||Ta.key==="Enter"||Ta.key.trim()==="";if(Nt&&qa)return ya(Ta);if(!(!qa&&!jt&&ki)){if(qi){const co=isMainOrientationKey(Ta.key,ti());nr.current=$t&&co?null:Ta.key}if($t){La&&(stopEvent(Ta),qa?(lr.current=getMinListIndex(kt,Dr.current),Zn(Ta)):ut.setOpen(!0,createChangeEventDetails(listNavigation,Ta.nativeEvent,Ta.currentTarget)));return}Ja&&(jr.current!=null&&(lr.current=jr.current),stopEvent(Ta),!qa&&jt?ut.setOpen(!0,createChangeEventDetails(listNavigation,Ta.nativeEvent,Ta.currentTarget)):ya(Ta),qa&&Zn(Ta))}},onFocus(Ta){ut.select("open")&&!Nt&&(lr.current=-1,Zn(Ta))},onPointerDown:Ya,onPointerEnter:Ya,onMouseDown:$a,onClick:$a}},[ya,Dr,Lt,kt,$t,Zn,ut,jt,Ht,ti,Pt,jr,Nt]),Za=reactExports.useMemo(()=>({...Xa,...ii}),[Xa,ii]);return reactExports.useMemo(()=>_t?{reference:Za,floating:Ni,item:ba,trigger:ii}:{},[_t,Za,Ni,ii,ba])}const componentRoleToAriaRoleMap=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function useRole(At,ot={}){const ut="rootStore"in At?At.rootStore:At,pt=ut.useState("open"),ft=ut.useState("floatingId"),ht=ut.useState("domReferenceElement"),yt=ut.useState("floatingElement"),{role:kt="dialog"}=ot,Et=useId$1(),Ot=ht?.id||Et,_t=reactExports.useMemo(()=>getFloatingFocusElement(yt)?.id||ft,[yt,ft]),Qt=componentRoleToAriaRoleMap.get(kt)??kt,St=useFloatingParentNodeId()!=null,$t=reactExports.useMemo(()=>Qt==="tooltip"||kt==="label"?EMPTY_OBJECT:{"aria-haspopup":Qt==="alertdialog"?"dialog":Qt,"aria-expanded":"false",...Qt==="listbox"&&{role:"combobox"},...Qt==="menu"&&St&&{role:"menuitem"},...kt==="select"&&{"aria-autocomplete":"none"},...kt==="combobox"&&{"aria-autocomplete":"list"}},[Qt,St,kt]),Pt=reactExports.useMemo(()=>Qt==="tooltip"||kt==="label"?{[`aria-${kt==="label"?"labelledby":"describedby"}`]:pt?_t:void 0}:{...$t,"aria-expanded":pt?"true":"false","aria-controls":pt?_t:void 0,...Qt==="menu"&&{id:Ot}},[Qt,_t,pt,Ot,kt,$t]),Nt=reactExports.useMemo(()=>{const qt={id:_t,...Qt&&{role:Qt}};return Qt==="tooltip"||kt==="label"?qt:{...qt,...Qt==="menu"&&{"aria-labelledby":Ot}}},[Qt,_t,Ot,kt]),Lt=reactExports.useCallback(({active:qt,selected:jt})=>{const Zt={role:"option",...qt&&{id:`${_t}-fui-option`}};switch(kt){case"select":case"combobox":return{...Zt,"aria-selected":jt}}return{}},[_t,kt]);return reactExports.useMemo(()=>({reference:Pt,floating:Nt,item:Lt,trigger:$t}),[Pt,Nt,$t,Lt])}function useTypeahead(At,ot){const ut="rootStore"in At?At.rootStore:At,pt=ut.context.dataRef,ft=ut.useState("open"),{listRef:ht,elementsRef:yt,activeIndex:kt,onMatch:Et,onTypingChange:Ot,enabled:_t=!0,resetMs:Qt=750,selectedIndex:vt=null}=ot,St=useTimeout(),$t=reactExports.useRef(""),Pt=reactExports.useRef(vt??kt??-1),Nt=reactExports.useRef(null);useIsoLayoutEffect(()=>{!ft&&vt!==null||(St.clear(),Nt.current=null,$t.current!==""&&($t.current=""))},[ft,vt,St]),useIsoLayoutEffect(()=>{ft&&$t.current===""&&(Pt.current=vt??kt??-1)},[ft,vt,kt]);const Lt=useStableCallback$1(Wt=>{Wt?pt.current.typing||(pt.current.typing=Wt,Ot?.(Wt)):pt.current.typing&&(pt.current.typing=Wt,Ot?.(Wt))}),qt=useStableCallback$1(Wt=>{function wn(Ar){const Yn=yt?.current[Ar];return!Yn||isElementVisible(Yn)}function Qn(Ar,Yn,lr=0){if(Ar.length===0)return-1;const nr=(lr%Ar.length+Ar.length)%Ar.length,mr=Yn.toLocaleLowerCase();for(let Zn=0;Zn<Ar.length;Zn+=1){const ur=(nr+Zn)%Ar.length;if(!(!Ar[ur]?.toLocaleLowerCase().startsWith(mr)||!wn(ur)))return ur}return-1}const Jt=ht.current;if($t.current.length>0&&Wt.key===" "&&(stopEvent(Wt),Lt(!0)),$t.current.length>0&&$t.current[0]!==" "&&Qn(Jt,$t.current)===-1&&Wt.key!==" "&&Lt(!1),Jt==null||Wt.key.length!==1||Wt.ctrlKey||Wt.metaKey||Wt.altKey)return;ft&&Wt.key!==" "&&(stopEvent(Wt),Lt(!0));const Gn=$t.current==="";Gn&&(Pt.current=vt??kt??-1),Jt.every(Ar=>Ar?Ar[0]?.toLocaleLowerCase()!==Ar[1]?.toLocaleLowerCase():!0)&&$t.current===Wt.key&&($t.current="",Pt.current=Nt.current),$t.current+=Wt.key,St.start(Qt,()=>{$t.current="",Pt.current=Nt.current,Lt(!1)});const Fn=((Gn?vt??kt??-1:Pt.current)??0)+1,Xn=Qn(Jt,$t.current,Fn);Xn!==-1?(Et?.(Xn),Nt.current=Xn):Wt.key!==" "&&($t.current="",Lt(!1))}),jt=useStableCallback$1(Wt=>{const wn=Wt.relatedTarget,Qn=ut.select("domReferenceElement"),Jt=ut.select("floatingElement"),Gn=contains$2(Qn,wn),Jn=contains$2(Jt,wn);Gn||Jn||(St.clear(),$t.current="",Pt.current=Nt.current,Lt(!1))}),Zt=reactExports.useMemo(()=>({onKeyDown:qt,onBlur:jt}),[qt,jt]),Ht=reactExports.useMemo(()=>({onKeyDown:qt,onBlur:jt}),[qt,jt]);return reactExports.useMemo(()=>_t?{reference:Zt,floating:Ht}:{},[_t,Zt,Ht])}const CURSOR_SPEED_THRESHOLD=.1,CURSOR_SPEED_THRESHOLD_SQUARED=CURSOR_SPEED_THRESHOLD*CURSOR_SPEED_THRESHOLD,POLYGON_BUFFER=.5;function hasIntersectingEdge(At,ot,ut,pt,ft,ht){return pt>=ot!=ht>=ot&&At<=(ft-ut)*(ot-pt)/(ht-pt)+ut}function isPointInQuadrilateral(At,ot,ut,pt,ft,ht,yt,kt,Et,Ot){let _t=!1;return hasIntersectingEdge(At,ot,ut,pt,ft,ht)&&(_t=!_t),hasIntersectingEdge(At,ot,ft,ht,yt,kt)&&(_t=!_t),hasIntersectingEdge(At,ot,yt,kt,Et,Ot)&&(_t=!_t),hasIntersectingEdge(At,ot,Et,Ot,ut,pt)&&(_t=!_t),_t}function isInsideRect(At,ot,ut){return At>=ut.x&&At<=ut.x+ut.width&&ot>=ut.y&&ot<=ut.y+ut.height}function isInsideAxisAlignedRect(At,ot,ut,pt,ft,ht){const yt=Math.min(ut,ft),kt=Math.max(ut,ft),Et=Math.min(pt,ht),Ot=Math.max(pt,ht);return At>=yt&&At<=kt&&ot>=Et&&ot<=Ot}function safePolygon(At={}){const{blockPointerEvents:ot=!1}=At,ut=new Timeout,pt=({x:ft,y:ht,placement:yt,elements:kt,onClose:Et,nodeId:Ot,tree:_t})=>{const Qt=yt?.split("-")[0];let vt=!1,St=null,$t=null,Pt=typeof performance<"u"?performance.now():0;function Nt(qt,jt){const Zt=performance.now(),Ht=Zt-Pt;if(St===null||$t===null||Ht===0)return St=qt,$t=jt,Pt=Zt,!1;const Wt=qt-St,wn=jt-$t,Qn=Wt*Wt+wn*wn,Jt=Ht*Ht*CURSOR_SPEED_THRESHOLD_SQUARED;return St=qt,$t=jt,Pt=Zt,Qn<Jt}function Lt(){ut.clear(),Et()}return function(jt){ut.clear();const Zt=kt.domReference,Ht=kt.floating;if(!Zt||!Ht||Qt==null||ft==null||ht==null)return;const{clientX:Wt,clientY:wn}=jt,Qn=getTarget(jt),Jt=jt.type==="mouseleave",Gn=contains$2(Ht,Qn),Jn=contains$2(Zt,Qn);if(Gn&&(vt=!0,!Jt))return;if(Jn&&(vt=!1,!Jt)){vt=!0;return}if(Jt&&isElement(jt.relatedTarget)&&contains$2(Ht,jt.relatedTarget))return;function Vn(){return!!(_t&&getNodeChildren(_t.nodesRef.current,Ot).length>0)}function Fn(){Vn()||Lt()}if(Vn())return;const Xn=Zt.getBoundingClientRect(),Ar=Ht.getBoundingClientRect(),Yn=ft>Ar.right-Ar.width/2,lr=ht>Ar.bottom-Ar.height/2,nr=Ar.width>Xn.width,mr=Ar.height>Xn.height,Zn=(nr?Xn:Ar).left,ur=(nr?Xn:Ar).right,yr=(mr?Xn:Ar).top,ir=(mr?Xn:Ar).bottom;if(Qt==="top"&&ht>=Xn.bottom-1||Qt==="bottom"&&ht<=Xn.top+1||Qt==="left"&&ft>=Xn.right-1||Qt==="right"&&ft<=Xn.left+1){Fn();return}let Cr=!1;switch(Qt){case"top":Cr=isInsideAxisAlignedRect(Wt,wn,Zn,Xn.top+1,ur,Ar.bottom-1);break;case"bottom":Cr=isInsideAxisAlignedRect(Wt,wn,Zn,Ar.top+1,ur,Xn.bottom-1);break;case"left":Cr=isInsideAxisAlignedRect(Wt,wn,Ar.right-1,ir,Xn.left+1,yr);break;case"right":Cr=isInsideAxisAlignedRect(Wt,wn,Xn.right-1,ir,Ar.left+1,yr);break}if(Cr)return;if(vt&&!isInsideRect(Wt,wn,Xn)){Fn();return}if(!Jt&&Nt(Wt,wn)){Fn();return}let kr=!1;switch(Qt){case"top":{const Br=nr?POLYGON_BUFFER/2:POLYGON_BUFFER*4,Dr=nr||Yn?ft+Br:ft-Br,Gr=nr?ft-Br:Yn?ft+Br:ft-Br,jr=ht+POLYGON_BUFFER+1,na=Yn||nr?Ar.bottom-POLYGON_BUFFER:Ar.top,ca=Yn?nr?Ar.bottom-POLYGON_BUFFER:Ar.top:Ar.bottom-POLYGON_BUFFER;kr=isPointInQuadrilateral(Wt,wn,Dr,jr,Gr,jr,Ar.left,na,Ar.right,ca);break}case"bottom":{const Br=nr?POLYGON_BUFFER/2:POLYGON_BUFFER*4,Dr=nr||Yn?ft+Br:ft-Br,Gr=nr?ft-Br:Yn?ft+Br:ft-Br,jr=ht-POLYGON_BUFFER,na=Yn||nr?Ar.top+POLYGON_BUFFER:Ar.bottom,ca=Yn?nr?Ar.top+POLYGON_BUFFER:Ar.bottom:Ar.top+POLYGON_BUFFER;kr=isPointInQuadrilateral(Wt,wn,Dr,jr,Gr,jr,Ar.left,na,Ar.right,ca);break}case"left":{const Br=mr?POLYGON_BUFFER/2:POLYGON_BUFFER*4,Dr=mr||lr?ht+Br:ht-Br,Gr=mr?ht-Br:lr?ht+Br:ht-Br,jr=ft+POLYGON_BUFFER+1,na=lr||mr?Ar.right-POLYGON_BUFFER:Ar.left,ca=lr?mr?Ar.right-POLYGON_BUFFER:Ar.left:Ar.right-POLYGON_BUFFER;kr=isPointInQuadrilateral(Wt,wn,na,Ar.top,ca,Ar.bottom,jr,Dr,jr,Gr);break}case"right":{const Br=mr?POLYGON_BUFFER/2:POLYGON_BUFFER*4,Dr=mr||lr?ht+Br:ht-Br,Gr=mr?ht-Br:lr?ht+Br:ht-Br,jr=ft-POLYGON_BUFFER,na=lr||mr?Ar.left+POLYGON_BUFFER:Ar.right,ca=lr?mr?Ar.left+POLYGON_BUFFER:Ar.right:Ar.left+POLYGON_BUFFER;kr=isPointInQuadrilateral(Wt,wn,jr,Dr,jr,Gr,na,Ar.top,ca,Ar.bottom);break}}kr?vt||ut.start(40,Fn):Fn()}};return pt.__options={...At,blockPointerEvents:ot},pt}const selectors$4={...popupStoreSelectors,disabled:createSelector(At=>At.disabled),instantType:createSelector(At=>At.instantType),isInstantPhase:createSelector(At=>At.isInstantPhase),trackCursorAxis:createSelector(At=>At.trackCursorAxis),disableHoverablePopup:createSelector(At=>At.disableHoverablePopup),lastOpenChangeReason:createSelector(At=>At.openChangeReason),closeOnClick:createSelector(At=>At.closeOnClick),closeDelay:createSelector(At=>At.closeDelay),hasViewport:createSelector(At=>At.hasViewport)};class TooltipStore extends ReactStore{constructor(ot){super({...createInitialState$3(),...ot},{popupRef:reactExports.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new PopupTriggerMap},selectors$4)}setOpen=(ot,ut)=>{const pt=ut.reason,ft=pt===triggerHover,ht=ot&&pt===triggerFocus,yt=!ot&&(pt===triggerPress||pt===escapeKey);if(ut.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(ot,ut),ut.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(ot,ut);const kt=()=>{const Et={open:ot,openChangeReason:pt};ht?Et.instantType="focus":yt?Et.instantType="dismiss":pt===triggerHover&&(Et.instantType=void 0);const Ot=ut.trigger?.id??null;(Ot||ot)&&(Et.activeTriggerId=Ot,Et.activeTriggerElement=ut.trigger??null),this.update(Et)};ft?reactDomExports.flushSync(kt):kt()};static useStore(ot,ut){const pt=useRefWithInit(()=>new TooltipStore(ut)).current,ft=ot??pt,ht=useSyncedFloatingRootContext({popupStore:ft,onOpenChange:ft.setOpen});return ft.state.floatingRootContext=ht,ft}}function createInitialState$3(){return{...createInitialPopupStoreState(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}const TooltipRoot=fastComponent(function(ot){const{disabled:ut=!1,defaultOpen:pt=!1,open:ft,disableHoverablePopup:ht=!1,trackCursorAxis:yt="none",actionsRef:kt,onOpenChange:Et,onOpenChangeComplete:Ot,handle:_t,triggerId:Qt,defaultTriggerId:vt=null,children:St}=ot,$t=TooltipStore.useStore(_t?.store,{open:pt,openProp:ft,activeTriggerId:vt,triggerIdProp:Qt});useOnFirstRender(()=>{ft===void 0&&$t.state.open===!1&&pt===!0&&$t.update({open:!0,activeTriggerId:vt})}),$t.useControlledProp("openProp",ft),$t.useControlledProp("triggerIdProp",Qt),$t.useContextCallback("onOpenChange",Et),$t.useContextCallback("onOpenChangeComplete",Ot);const Pt=$t.useState("open"),Nt=!ut&&Pt,Lt=$t.useState("activeTriggerId"),qt=$t.useState("payload");$t.useSyncedValues({trackCursorAxis:yt,disableHoverablePopup:ht}),useIsoLayoutEffect(()=>{Pt&&ut&&$t.setOpen(!1,createChangeEventDetails(disabled))},[Pt,ut,$t]),$t.useSyncedValue("disabled",ut),useImplicitActiveTrigger($t);const{forceUnmount:jt,transitionStatus:Zt}=useOpenStateTransitions(Nt,$t),Ht=$t.select("floatingRootContext"),Wt=$t.useState("isInstantPhase"),wn=$t.useState("instantType"),Qn=$t.useState("lastOpenChangeReason"),Jt=reactExports.useRef(null);useIsoLayoutEffect(()=>{Zt==="ending"&&Qn===none$3||Zt!=="ending"&&Wt?(wn!=="delay"&&(Jt.current=wn),$t.set("instantType","delay")):Jt.current!==null&&($t.set("instantType",Jt.current),Jt.current=null)},[Zt,Wt,Qn,wn,$t]),useIsoLayoutEffect(()=>{Nt&&Lt==null&&$t.set("payload",void 0)},[$t,Lt,Nt]);const Gn=reactExports.useCallback(()=>{$t.setOpen(!1,createTooltipEventDetails($t,imperativeAction))},[$t]);reactExports.useImperativeHandle(kt,()=>({unmount:jt,close:Gn}),[jt,Gn]);const Jn=useDismiss(Ht,{enabled:!ut,referencePress:()=>$t.select("closeOnClick")}),Vn=useClientPoint(Ht,{enabled:!ut&&yt!=="none",axis:yt==="none"?void 0:yt}),{getReferenceProps:Fn,getFloatingProps:Xn,getTriggerProps:Ar}=useInteractions([Jn,Vn]),Yn=reactExports.useMemo(()=>Fn(),[Fn]),lr=reactExports.useMemo(()=>Ar(),[Ar]),nr=reactExports.useMemo(()=>Xn(),[Xn]);return $t.useSyncedValues({activeTriggerProps:Yn,inactiveTriggerProps:lr,popupProps:nr}),jsxRuntimeExports.jsx(TooltipRootContext.Provider,{value:$t,children:typeof St=="function"?St({payload:qt}):St})});function createTooltipEventDetails(At,ot){const ut=createChangeEventDetails(ot);return ut.preventUnmountOnClose=()=>{At.set("preventUnmountingOnClose",!0)},ut}let CommonPopupDataAttributes=(function(At){return At.open="data-open",At.closed="data-closed",At[At.startingStyle=TransitionStatusDataAttributes.startingStyle]="startingStyle",At[At.endingStyle=TransitionStatusDataAttributes.endingStyle]="endingStyle",At.anchorHidden="data-anchor-hidden",At.side="data-side",At.align="data-align",At})({}),CommonTriggerDataAttributes=(function(At){return At.popupOpen="data-popup-open",At.pressed="data-pressed",At})({});const TRIGGER_HOOK={[CommonTriggerDataAttributes.popupOpen]:""},PRESSABLE_TRIGGER_HOOK={[CommonTriggerDataAttributes.popupOpen]:"",[CommonTriggerDataAttributes.pressed]:""},POPUP_OPEN_HOOK={[CommonPopupDataAttributes.open]:""},POPUP_CLOSED_HOOK={[CommonPopupDataAttributes.closed]:""},ANCHOR_HIDDEN_HOOK={[CommonPopupDataAttributes.anchorHidden]:""},triggerOpenStateMapping$1={open(At){return At?TRIGGER_HOOK:null}},pressableTriggerOpenStateMapping={open(At){return At?PRESSABLE_TRIGGER_HOOK:null}},popupStateMapping={open(At){return At?POPUP_OPEN_HOOK:POPUP_CLOSED_HOOK},anchorHidden(At){return At?ANCHOR_HIDDEN_HOOK:null}};function useBaseUiId(At){return useId$1(At,"base-ui")}const TooltipProviderContext=reactExports.createContext(void 0);function useTooltipProviderContext(){return reactExports.useContext(TooltipProviderContext)}let TooltipTriggerDataAttributes=(function(At){return At[At.popupOpen=CommonTriggerDataAttributes.popupOpen]="popupOpen",At.triggerDisabled="data-trigger-disabled",At})({});const OPEN_DELAY$1=600,TooltipTrigger=fastComponentRef(function(ot,ut){const{className:pt,render:ft,handle:ht,payload:yt,disabled:kt,delay:Et,closeOnClick:Ot=!0,closeDelay:_t,id:Qt,style:vt,...St}=ot,$t=useTooltipRootContext(!0),Pt=ht?.store??$t;if(!Pt)throw new Error(formatErrorMessage(82));const Nt=useBaseUiId(Qt),Lt=Pt.useState("isTriggerActive",Nt),qt=Pt.useState("isOpenedByTrigger",Nt),jt=Pt.useState("floatingRootContext"),Zt=reactExports.useRef(null),Ht=Et??OPEN_DELAY$1,Wt=_t??0,{registerTrigger:wn,isMountedByThisTrigger:Qn}=useTriggerDataForwarding(Nt,Zt,Pt,{payload:yt,closeOnClick:Ot,closeDelay:Wt}),Jt=useTooltipProviderContext(),{delayRef:Gn,isInstantPhase:Jn,hasProvider:Vn}=useDelayGroup(jt,{open:qt});Pt.useSyncedValue("isInstantPhase",Jn);const Fn=Pt.useState("disabled"),Xn=kt??Fn,Ar=Pt.useState("trackCursorAxis"),Yn=Pt.useState("disableHoverablePopup"),lr=useHoverReferenceInteraction(jt,{enabled:!Xn,mouseOnly:!0,move:!1,handleClose:!Yn&&Ar!=="both"?safePolygon():null,restMs(){const yr=Jt?.delay,ir=typeof Gn.current=="object"?Gn.current.open:void 0;let Cr=Ht;return Vn&&(ir!==0?Cr=Et??yr??Ht:Cr=0),Cr},delay(){const yr=typeof Gn.current=="object"?Gn.current.close:void 0;let ir=Wt;return _t==null&&Vn&&(ir=yr),{close:ir}},triggerElementRef:Zt,isActiveTrigger:Lt,isClosing:()=>Pt.select("transitionStatus")==="ending"}),nr=useFocus(jt,{enabled:!Xn}).reference,mr={open:qt},Zn=Pt.useState("triggerProps",Qn);return useRenderElement("button",ot,{state:mr,ref:[ut,wn,Zt],props:[lr,nr,Zn,{onPointerDown(){Pt.set("closeOnClick",Ot)},id:Nt,[TooltipTriggerDataAttributes.triggerDisabled]:Xn?"":void 0},St],stateAttributesMapping:triggerOpenStateMapping$1})}),TooltipPortalContext=reactExports.createContext(void 0);function useTooltipPortalContext(){const At=reactExports.useContext(TooltipPortalContext);if(At===void 0)throw new Error(formatErrorMessage(70));return At}const FloatingPortalLite=reactExports.forwardRef(function(ot,ut){const{children:pt,container:ft,className:ht,render:yt,style:kt,...Et}=ot,{portalNode:Ot,portalSubtree:_t}=useFloatingPortalNode({container:ft,ref:ut,componentProps:ot,elementProps:Et});return!_t&&!Ot?null:jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[_t,Ot&&reactDomExports.createPortal(pt,Ot)]})}),TooltipPortal=reactExports.forwardRef(function(ot,ut){const{keepMounted:pt=!1,...ft}=ot;return useTooltipRootContext().useState("mounted")||pt?jsxRuntimeExports.jsx(TooltipPortalContext.Provider,{value:pt,children:jsxRuntimeExports.jsx(FloatingPortalLite,{ref:ut,...ft})}):null}),TooltipPositionerContext=reactExports.createContext(void 0);function useTooltipPositionerContext(){const At=reactExports.useContext(TooltipPositionerContext);if(At===void 0)throw new Error(formatErrorMessage(71));return At}const DirectionContext=reactExports.createContext(void 0);function useDirection(){return reactExports.useContext(DirectionContext)?.direction??"ltr"}const baseArrow=At=>({name:"arrow",options:At,async fn(ot){const{x:ut,y:pt,placement:ft,rects:ht,platform:yt,elements:kt,middlewareData:Et}=ot,{element:Ot,padding:_t=0,offsetParent:Qt="real"}=evaluate(At,ot)||{};if(Ot==null)return{};const vt=getPaddingObject(_t),St={x:ut,y:pt},$t=getAlignmentAxis(ft),Pt=getAxisLength($t),Nt=await yt.getDimensions(Ot),Lt=$t==="y",qt=Lt?"top":"left",jt=Lt?"bottom":"right",Zt=Lt?"clientHeight":"clientWidth",Ht=ht.reference[Pt]+ht.reference[$t]-St[$t]-ht.floating[Pt],Wt=St[$t]-ht.reference[$t],wn=Qt==="real"?await yt.getOffsetParent?.(Ot):kt.floating;let Qn=kt.floating[Zt]||ht.floating[Pt];(!Qn||!await yt.isElement?.(wn))&&(Qn=kt.floating[Zt]||ht.floating[Pt]);const Jt=Ht/2-Wt/2,Gn=Qn/2-Nt[Pt]/2-1,Jn=Math.min(vt[qt],Gn),Vn=Math.min(vt[jt],Gn),Fn=Jn,Xn=Qn-Nt[Pt]-Vn,Ar=Qn/2-Nt[Pt]/2+Jt,Yn=clamp$1(Fn,Ar,Xn),lr=!Et.arrow&&getAlignment(ft)!=null&&Ar!==Yn&&ht.reference[Pt]/2-(Ar<Fn?Jn:Vn)-Nt[Pt]/2<0,nr=lr?Ar<Fn?Ar-Fn:Ar-Xn:0;return{[$t]:St[$t]+nr,data:{[$t]:Yn,centerOffset:Ar-Yn-nr,...lr&&{alignmentOffset:nr}},reset:lr}}}),arrow=(At,ot)=>({...baseArrow(At),options:[At,ot]}),hide$1={name:"hide",async fn(At){const{width:ot,height:ut,x:pt,y:ft}=At.rects.reference,ht=ot===0&&ut===0&&pt===0&&ft===0;return{data:{referenceHidden:(await hide$2().fn(At)).data?.referenceHidden||ht}}}},DEFAULT_SIDES={sideX:"left",sideY:"top"},adaptiveOrigin={name:"adaptiveOrigin",async fn(At){const{x:ot,y:ut,rects:{floating:pt},elements:{floating:ft},platform:ht,strategy:yt,placement:kt}=At,Et=getWindow$1(ft),Ot=Et.getComputedStyle(ft);if(!(Ot.transitionDuration!=="0s"&&Ot.transitionDuration!==""))return{x:ot,y:ut,data:DEFAULT_SIDES};const Qt=await ht.getOffsetParent?.(ft);let vt={width:0,height:0};if(yt==="fixed"&&Et?.visualViewport)vt={width:Et.visualViewport.width,height:Et.visualViewport.height};else if(Qt===Et){const qt=ownerDocument(ft);vt={width:qt.documentElement.clientWidth,height:qt.documentElement.clientHeight}}else await ht.isElement?.(Qt)&&(vt=await ht.getDimensions(Qt));const St=getSide(kt);let $t=ot,Pt=ut;St==="left"&&($t=vt.width-(ot+pt.width)),St==="top"&&(Pt=vt.height-(ut+pt.height));const Nt=St==="left"?"right":DEFAULT_SIDES.sideX,Lt=St==="top"?"bottom":DEFAULT_SIDES.sideY;return{x:$t,y:Pt,data:{sideX:Nt,sideY:Lt}}}};function getLogicalSide(At,ot,ut){const pt=At==="inline-start"||At==="inline-end";return{top:"top",right:pt?ut?"inline-start":"inline-end":"right",bottom:"bottom",left:pt?ut?"inline-end":"inline-start":"left"}[ot]}function getOffsetData(At,ot,ut){const{rects:pt,placement:ft}=At;return{side:getLogicalSide(ot,getSide(ft),ut),align:getAlignment(ft)||"center",anchor:{width:pt.reference.width,height:pt.reference.height},positioner:{width:pt.floating.width,height:pt.floating.height}}}function useAnchorPositioning(At){const{anchor:ot,positionMethod:ut="absolute",side:pt="bottom",sideOffset:ft=0,align:ht="center",alignOffset:yt=0,collisionBoundary:kt,collisionPadding:Et=5,sticky:Ot=!1,arrowPadding:_t=5,disableAnchorTracking:Qt=!1,keepMounted:vt=!1,floatingRootContext:St,mounted:$t,collisionAvoidance:Pt,shiftCrossAxis:Nt=!1,nodeId:Lt,adaptiveOrigin:qt,lazyFlip:jt=!1,externalTree:Zt}=At,[Ht,Wt]=reactExports.useState(null);!$t&&Ht!==null&&Wt(null);const wn=Pt.side||"flip",Qn=Pt.align||"flip",Jt=Pt.fallbackAxisSide||"end",Gn=typeof ot=="function"?ot:void 0,Jn=useStableCallback$1(Gn),Vn=Gn?Jn:ot,Fn=useValueAsRef(ot),Xn=useValueAsRef($t),Yn=useDirection()==="rtl",lr=Ht||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":Yn?"left":"right","inline-start":Yn?"right":"left"}[pt],nr=ht==="center"?lr:`${lr}-${ht}`;let mr=Et;const Zn=1,ur=pt==="bottom"?Zn:0,yr=pt==="top"?Zn:0,ir=pt==="right"?Zn:0,Cr=pt==="left"?Zn:0;typeof mr=="number"?mr={top:mr+ur,right:mr+Cr,bottom:mr+yr,left:mr+ir}:mr&&(mr={top:(mr.top||0)+ur,right:(mr.right||0)+Cr,bottom:(mr.bottom||0)+yr,left:(mr.left||0)+ir});const kr={boundary:kt==="clipping-ancestors"?"clippingAncestors":kt,padding:mr},Br=reactExports.useRef(null),Dr=useValueAsRef(ft),Gr=useValueAsRef(yt),ca=[offset(Xo=>{const ho=getOffsetData(Xo,pt,Yn),ks=typeof Dr.current=="function"?Dr.current(ho):Dr.current,lA=typeof Gr.current=="function"?Gr.current(ho):Gr.current;return{mainAxis:ks,crossAxis:lA,alignmentAxis:lA}},[typeof ft!="function"?ft:0,typeof yt!="function"?yt:0,Yn,pt])],ma=Qn==="none"&&wn!=="shift",pa=!ma&&(Ot||Nt||wn==="shift"),ba=wn==="none"?null:flip({...kr,padding:{top:mr.top+Zn,right:mr.right+Zn,bottom:mr.bottom+Zn,left:mr.left+Zn},mainAxis:!Nt&&wn==="flip",crossAxis:Qn==="flip"?"alignment":!1,fallbackAxisSideDirection:Jt}),ti=ma?null:shift$1(Xo=>{const ho=ownerDocument(Xo.elements.floating).documentElement;return{...kr,rootBoundary:Nt?{x:0,y:0,width:ho.clientWidth,height:ho.clientHeight}:void 0,mainAxis:Qn!=="none",crossAxis:pa,limiter:Ot||Nt?void 0:limitShift(ks=>{if(!Br.current)return{};const{width:lA,height:fA}=Br.current.getBoundingClientRect(),bo=getSideAxis(getSide(ks.placement)),si=bo==="y"?lA:fA,Mi=bo==="y"?mr.left+mr.right:mr.top+mr.bottom;return{offset:si/2+Mi/2}})}},[kr,Ot,Nt,mr,Qn]);wn==="shift"||Qn==="shift"||ht==="center"?ca.push(ti,ba):ca.push(ba,ti),ca.push(size({...kr,apply({elements:{floating:Xo},availableWidth:ho,availableHeight:ks,rects:lA}){if(!Xn.current)return;const fA=Xo.style;fA.setProperty("--available-width",`${ho}px`),fA.setProperty("--available-height",`${ks}px`);const bo=getWindow$1(Xo).devicePixelRatio||1,{x:si,y:Mi,width:rs,height:So}=lA.reference,ms=(Math.round((si+rs)*bo)-Math.round(si*bo))/bo,uo=(Math.round((Mi+So)*bo)-Math.round(Mi*bo))/bo;fA.setProperty("--anchor-width",`${ms}px`),fA.setProperty("--anchor-height",`${uo}px`)}}),arrow(()=>({element:Br.current||ownerDocument(Br.current).createElement("div"),padding:_t,offsetParent:"floating"}),[_t]),{name:"transformOrigin",fn(Xo){const{elements:ho,middlewareData:ks,placement:lA,rects:fA,y:bo}=Xo,si=getSide(lA),Mi=getSideAxis(si),rs=Br.current,So=ks.arrow?.x||0,ms=ks.arrow?.y||0,uo=rs?.clientWidth||0,mo=rs?.clientHeight||0,Ss=So+uo/2,xs=ms+mo/2,Js=Math.abs(ks.shift?.y||0),Us=fA.reference.height/2,Es=typeof ft=="function"?ft(getOffsetData(Xo,pt,Yn)):ft,fc=Js>Es,gu={top:`${Ss}px calc(100% + ${Es}px)`,bottom:`${Ss}px ${-Es}px`,left:`calc(100% + ${Es}px) ${xs}px`,right:`${-Es}px ${xs}px`}[si],Fl=`${Ss}px ${fA.reference.y+Us-bo}px`;return ho.floating.style.setProperty("--transform-origin",pa&&Mi==="y"&&fc?Fl:gu),{}}},hide$1,qt),useIsoLayoutEffect(()=>{!$t&&St&&St.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[$t,St]);const ya=reactExports.useMemo(()=>({elementResize:!Qt&&typeof ResizeObserver<"u",layoutShift:!Qt&&typeof IntersectionObserver<"u"}),[Qt]),{refs:Xa,elements:Ni,x:ii,y:Za,middlewareData:$a,update:Ya,placement:Ta,context:qa,isPositioned:ki,floatingStyles:La}=useFloating({rootContext:St,open:vt?$t:void 0,placement:nr,middleware:ca,strategy:ut,whileElementsMounted:vt?void 0:(...Xo)=>autoUpdate(...Xo,ya),nodeId:Lt,externalTree:Zt}),{sideX:Ja,sideY:qi}=$a.adaptiveOrigin||DEFAULT_SIDES,co=ki?ut:"fixed",ns=reactExports.useMemo(()=>{const Xo=qt?{position:co,[Ja]:ii,[qi]:Za}:{position:co,...La};return ki||(Xo.opacity=0),Xo},[qt,co,Ja,ii,qi,Za,La,ki]),Qo=reactExports.useRef(null);useIsoLayoutEffect(()=>{if(!$t)return;const Xo=Fn.current,ho=typeof Xo=="function"?Xo():Xo,lA=(isRef(ho)?ho.current:ho)||null||null;lA!==Qo.current&&(Xa.setPositionReference(lA),Qo.current=lA)},[$t,Xa,Vn,Fn]),reactExports.useEffect(()=>{if(!$t)return;const Xo=Fn.current;typeof Xo!="function"&&isRef(Xo)&&Xo.current!==Qo.current&&(Xa.setPositionReference(Xo.current),Qo.current=Xo.current)},[$t,Xa,Vn,Fn]),reactExports.useEffect(()=>{if(vt&&$t&&Ni.domReference&&Ni.floating)return autoUpdate(Ni.domReference,Ni.floating,Ya,ya)},[vt,$t,Ni,Ya,ya]);const ao=getSide(Ta),Jo=getLogicalSide(pt,ao,Yn),Ji=getAlignment(Ta)||"center",Ms=!!$a.hide?.referenceHidden;useIsoLayoutEffect(()=>{jt&&$t&&ki&&Wt(ao)},[jt,$t,ki,ao]);const Vs=reactExports.useMemo(()=>({position:"absolute",top:$a.arrow?.y,left:$a.arrow?.x}),[$a.arrow]),ZA=$a.arrow?.centerOffset!==0;return reactExports.useMemo(()=>({positionerStyles:ns,arrowStyles:Vs,arrowRef:Br,arrowUncentered:ZA,side:Jo,align:Ji,physicalSide:ao,anchorHidden:Ms,refs:Xa,context:qa,isPositioned:ki,update:Ya}),[ns,Vs,Br,ZA,Jo,Ji,ao,Ms,Xa,qa,ki,Ya])}function isRef(At){return At!=null&&"current"in At}function getDisabledMountTransitionStyles(At){return At==="starting"?DISABLED_TRANSITIONS_STYLE:EMPTY_OBJECT}function usePositioner(At,ot,{styles:ut,transitionStatus:pt,props:ft,refs:ht,hidden:yt,inert:kt=!1}){const Et={...ut};return kt&&(Et.pointerEvents="none"),useRenderElement("div",At,{state:ot,ref:ht,props:[{role:"presentation",hidden:yt,style:Et},getDisabledMountTransitionStyles(pt),ft],stateAttributesMapping:popupStateMapping})}const TooltipPositioner=reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,anchor:ht,positionMethod:yt="absolute",side:kt="top",align:Et="center",sideOffset:Ot=0,alignOffset:_t=0,collisionBoundary:Qt="clipping-ancestors",collisionPadding:vt=5,arrowPadding:St=5,sticky:$t=!1,disableAnchorTracking:Pt=!1,collisionAvoidance:Nt=POPUP_COLLISION_AVOIDANCE,style:Lt,...qt}=ot,jt=useTooltipRootContext(),Zt=useTooltipPortalContext(),Ht=jt.useState("open"),Wt=jt.useState("mounted"),wn=jt.useState("trackCursorAxis"),Qn=jt.useState("disableHoverablePopup"),Jt=jt.useState("floatingRootContext"),Gn=jt.useState("instantType"),Jn=jt.useState("transitionStatus"),Vn=jt.useState("hasViewport"),Fn=useAnchorPositioning({anchor:ht,positionMethod:yt,floatingRootContext:Jt,mounted:Wt,side:kt,sideOffset:Ot,align:Et,alignOffset:_t,collisionBoundary:Qt,collisionPadding:vt,sticky:$t,arrowPadding:St,disableAnchorTracking:Pt,keepMounted:Zt,collisionAvoidance:Nt,adaptiveOrigin:Vn?adaptiveOrigin:void 0}),Xn=reactExports.useMemo(()=>({open:Ht,side:Fn.side,align:Fn.align,anchorHidden:Fn.anchorHidden,instant:wn!=="none"?"tracking-cursor":Gn}),[Ht,Fn.side,Fn.align,Fn.anchorHidden,wn,Gn]),Ar=usePositioner(ot,Xn,{styles:Fn.positionerStyles,transitionStatus:Jn,props:qt,refs:[ut,jt.useStateSetter("positionerElement")],hidden:!Wt,inert:!Ht||wn==="both"||Qn});return jsxRuntimeExports.jsx(TooltipPositionerContext.Provider,{value:Fn,children:Ar})}),stateAttributesMapping$9={...popupStateMapping,...transitionStatusMapping},TooltipPopup=reactExports.forwardRef(function(ot,ut){const{className:pt,render:ft,style:ht,...yt}=ot,kt=useTooltipRootContext(),{side:Et,align:Ot}=useTooltipPositionerContext(),_t=kt.useState("open"),Qt=kt.useState("instantType"),vt=kt.useState("transitionStatus"),St=kt.useState("popupProps"),$t=kt.useState("floatingRootContext");useOpenChangeComplete({open:_t,ref:kt.context.popupRef,onComplete(){_t&&kt.context.onOpenChangeComplete?.(!0)}});const Pt=kt.useState("disabled"),Nt=kt.useState("closeDelay");return useHoverFloatingInteraction($t,{enabled:!Pt,closeDelay:Nt}),useRenderElement("div",ot,{state:{open:_t,side:Et,align:Ot,instant:Qt,transitionStatus:vt},ref:[ut,kt.context.popupRef,kt.useStateSetter("popupElement")],props:[St,getDisabledMountTransitionStyles(vt),yt],stateAttributesMapping:stateAttributesMapping$9})}),TooltipArrow=reactExports.forwardRef(function(ot,ut){const{className:pt,render:ft,style:ht,...yt}=ot,kt=useTooltipRootContext(),Et=kt.useState("open"),Ot=kt.useState("instantType"),{arrowRef:_t,side:Qt,align:vt,arrowUncentered:St,arrowStyles:$t}=useTooltipPositionerContext();return useRenderElement("div",ot,{state:{open:Et,side:Qt,align:vt,uncentered:St,instant:Ot},ref:[ut,_t],props:[{style:$t,"aria-hidden":!0},yt],stateAttributesMapping:popupStateMapping})}),TooltipProvider=function(ot){const{delay:ut,closeDelay:pt,timeout:ft=400}=ot,ht=reactExports.useMemo(()=>({delay:ut,closeDelay:pt}),[ut,pt]),yt=reactExports.useMemo(()=>({open:ut,close:pt}),[ut,pt]);return jsxRuntimeExports.jsx(TooltipProviderContext.Provider,{value:ht,children:jsxRuntimeExports.jsx(FloatingDelayGroup,{delay:yt,timeoutMs:ft,children:ot.children})})};function inertValue(At){return isReactVersionAtLeast(19)?At:At?"true":void 0}function usePreviousValue(At){const[ot,ut]=reactExports.useState({current:At,previous:null});return At!==ot.current&&ut({current:At,previous:ot.current}),ot.previous}function r$9(At){var ot,ut,pt="";if(typeof At=="string"||typeof At=="number")pt+=At;else if(typeof At=="object")if(Array.isArray(At)){var ft=At.length;for(ot=0;ot<ft;ot++)At[ot]&&(ut=r$9(At[ot]))&&(pt&&(pt+=" "),pt+=ut)}else for(ut in At)At[ut]&&(pt&&(pt+=" "),pt+=ut);return pt}function clsx(){for(var At,ot,ut=0,pt="",ft=arguments.length;ut<ft;ut++)(At=arguments[ut])&&(ot=r$9(At))&&(pt&&(pt+=" "),pt+=ot);return pt}const concatArrays=(At,ot)=>{const ut=new Array(At.length+ot.length);for(let pt=0;pt<At.length;pt++)ut[pt]=At[pt];for(let pt=0;pt<ot.length;pt++)ut[At.length+pt]=ot[pt];return ut},createClassValidatorObject=(At,ot)=>({classGroupId:At,validator:ot}),createClassPartObject=(At=new Map,ot=null,ut)=>({nextPart:At,validators:ot,classGroupId:ut}),CLASS_PART_SEPARATOR="-",EMPTY_CONFLICTS=[],ARBITRARY_PROPERTY_PREFIX="arbitrary..",createClassGroupUtils=At=>{const ot=createClassMap(At),{conflictingClassGroups:ut,conflictingClassGroupModifiers:pt}=At;return{getClassGroupId:yt=>{if(yt.startsWith("[")&&yt.endsWith("]"))return getGroupIdForArbitraryProperty(yt);const kt=yt.split(CLASS_PART_SEPARATOR),Et=kt[0]===""&&kt.length>1?1:0;return getGroupRecursive(kt,Et,ot)},getConflictingClassGroupIds:(yt,kt)=>{if(kt){const Et=pt[yt],Ot=ut[yt];return Et?Ot?concatArrays(Ot,Et):Et:Ot||EMPTY_CONFLICTS}return ut[yt]||EMPTY_CONFLICTS}}},getGroupRecursive=(At,ot,ut)=>{if(At.length-ot===0)return ut.classGroupId;const ft=At[ot],ht=ut.nextPart.get(ft);if(ht){const Ot=getGroupRecursive(At,ot+1,ht);if(Ot)return Ot}const yt=ut.validators;if(yt===null)return;const kt=ot===0?At.join(CLASS_PART_SEPARATOR):At.slice(ot).join(CLASS_PART_SEPARATOR),Et=yt.length;for(let Ot=0;Ot<Et;Ot++){const _t=yt[Ot];if(_t.validator(kt))return _t.classGroupId}},getGroupIdForArbitraryProperty=At=>At.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const ot=At.slice(1,-1),ut=ot.indexOf(":"),pt=ot.slice(0,ut);return pt?ARBITRARY_PROPERTY_PREFIX+pt:void 0})(),createClassMap=At=>{const{theme:ot,classGroups:ut}=At;return processClassGroups(ut,ot)},processClassGroups=(At,ot)=>{const ut=createClassPartObject();for(const pt in At){const ft=At[pt];processClassesRecursively(ft,ut,pt,ot)}return ut},processClassesRecursively=(At,ot,ut,pt)=>{const ft=At.length;for(let ht=0;ht<ft;ht++){const yt=At[ht];processClassDefinition(yt,ot,ut,pt)}},processClassDefinition=(At,ot,ut,pt)=>{if(typeof At=="string"){processStringDefinition(At,ot,ut);return}if(typeof At=="function"){processFunctionDefinition(At,ot,ut,pt);return}processObjectDefinition(At,ot,ut,pt)},processStringDefinition=(At,ot,ut)=>{const pt=At===""?ot:getPart(ot,At);pt.classGroupId=ut},processFunctionDefinition=(At,ot,ut,pt)=>{if(isThemeGetter(At)){processClassesRecursively(At(pt),ot,ut,pt);return}ot.validators===null&&(ot.validators=[]),ot.validators.push(createClassValidatorObject(ut,At))},processObjectDefinition=(At,ot,ut,pt)=>{const ft=Object.entries(At),ht=ft.length;for(let yt=0;yt<ht;yt++){const[kt,Et]=ft[yt];processClassesRecursively(Et,getPart(ot,kt),ut,pt)}},getPart=(At,ot)=>{let ut=At;const pt=ot.split(CLASS_PART_SEPARATOR),ft=pt.length;for(let ht=0;ht<ft;ht++){const yt=pt[ht];let kt=ut.nextPart.get(yt);kt||(kt=createClassPartObject(),ut.nextPart.set(yt,kt)),ut=kt}return ut},isThemeGetter=At=>"isThemeGetter"in At&&At.isThemeGetter===!0,createLruCache=At=>{if(At<1)return{get:()=>{},set:()=>{}};let ot=0,ut=Object.create(null),pt=Object.create(null);const ft=(ht,yt)=>{ut[ht]=yt,ot++,ot>At&&(ot=0,pt=ut,ut=Object.create(null))};return{get(ht){let yt=ut[ht];if(yt!==void 0)return yt;if((yt=pt[ht])!==void 0)return ft(ht,yt),yt},set(ht,yt){ht in ut?ut[ht]=yt:ft(ht,yt)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",EMPTY_MODIFIERS=[],createResultObject=(At,ot,ut,pt,ft)=>({modifiers:At,hasImportantModifier:ot,baseClassName:ut,maybePostfixModifierPosition:pt,isExternal:ft}),createParseClassName=At=>{const{prefix:ot,experimentalParseClassName:ut}=At;let pt=ft=>{const ht=[];let yt=0,kt=0,Et=0,Ot;const _t=ft.length;for(let Pt=0;Pt<_t;Pt++){const Nt=ft[Pt];if(yt===0&&kt===0){if(Nt===MODIFIER_SEPARATOR){ht.push(ft.slice(Et,Pt)),Et=Pt+1;continue}if(Nt==="/"){Ot=Pt;continue}}Nt==="["?yt++:Nt==="]"?yt--:Nt==="("?kt++:Nt===")"&&kt--}const Qt=ht.length===0?ft:ft.slice(Et);let vt=Qt,St=!1;Qt.endsWith(IMPORTANT_MODIFIER)?(vt=Qt.slice(0,-1),St=!0):Qt.startsWith(IMPORTANT_MODIFIER)&&(vt=Qt.slice(1),St=!0);const $t=Ot&&Ot>Et?Ot-Et:void 0;return createResultObject(ht,St,vt,$t)};if(ot){const ft=ot+MODIFIER_SEPARATOR,ht=pt;pt=yt=>yt.startsWith(ft)?ht(yt.slice(ft.length)):createResultObject(EMPTY_MODIFIERS,!1,yt,void 0,!0)}if(ut){const ft=pt;pt=ht=>ut({className:ht,parseClassName:ft})}return pt},createSortModifiers=At=>{const ot=new Map;return At.orderSensitiveModifiers.forEach((ut,pt)=>{ot.set(ut,1e6+pt)}),ut=>{const pt=[];let ft=[];for(let ht=0;ht<ut.length;ht++){const yt=ut[ht],kt=yt[0]==="[",Et=ot.has(yt);kt||Et?(ft.length>0&&(ft.sort(),pt.push(...ft),ft=[]),pt.push(yt)):ft.push(yt)}return ft.length>0&&(ft.sort(),pt.push(...ft)),pt}},createConfigUtils=At=>({cache:createLruCache(At.cacheSize),parseClassName:createParseClassName(At),sortModifiers:createSortModifiers(At),...createClassGroupUtils(At)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(At,ot)=>{const{parseClassName:ut,getClassGroupId:pt,getConflictingClassGroupIds:ft,sortModifiers:ht}=ot,yt=[],kt=At.trim().split(SPLIT_CLASSES_REGEX);let Et="";for(let Ot=kt.length-1;Ot>=0;Ot-=1){const _t=kt[Ot],{isExternal:Qt,modifiers:vt,hasImportantModifier:St,baseClassName:$t,maybePostfixModifierPosition:Pt}=ut(_t);if(Qt){Et=_t+(Et.length>0?" "+Et:Et);continue}let Nt=!!Pt,Lt=pt(Nt?$t.substring(0,Pt):$t);if(!Lt){if(!Nt){Et=_t+(Et.length>0?" "+Et:Et);continue}if(Lt=pt($t),!Lt){Et=_t+(Et.length>0?" "+Et:Et);continue}Nt=!1}const qt=vt.length===0?"":vt.length===1?vt[0]:ht(vt).join(":"),jt=St?qt+IMPORTANT_MODIFIER:qt,Zt=jt+Lt;if(yt.indexOf(Zt)>-1)continue;yt.push(Zt);const Ht=ft(Lt,Nt);for(let Wt=0;Wt<Ht.length;++Wt){const wn=Ht[Wt];yt.push(jt+wn)}Et=_t+(Et.length>0?" "+Et:Et)}return Et},twJoin=(...At)=>{let ot=0,ut,pt,ft="";for(;ot<At.length;)(ut=At[ot++])&&(pt=toValue(ut))&&(ft&&(ft+=" "),ft+=pt);return ft},toValue=At=>{if(typeof At=="string")return At;let ot,ut="";for(let pt=0;pt<At.length;pt++)At[pt]&&(ot=toValue(At[pt]))&&(ut&&(ut+=" "),ut+=ot);return ut},createTailwindMerge=(At,...ot)=>{let ut,pt,ft,ht;const yt=Et=>{const Ot=ot.reduce((_t,Qt)=>Qt(_t),At());return ut=createConfigUtils(Ot),pt=ut.cache.get,ft=ut.cache.set,ht=kt,kt(Et)},kt=Et=>{const Ot=pt(Et);if(Ot)return Ot;const _t=mergeClassList(Et,ut);return ft(Et,_t),_t};return ht=yt,(...Et)=>ht(twJoin(...Et))},fallbackThemeArr=[],fromTheme=At=>{const ot=ut=>ut[At]||fallbackThemeArr;return ot.isThemeGetter=!0,ot},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=At=>fractionRegex.test(At),isNumber$4=At=>!!At&&!Number.isNaN(Number(At)),isInteger$1=At=>!!At&&Number.isInteger(Number(At)),isPercent=At=>At.endsWith("%")&&isNumber$4(At.slice(0,-1)),isTshirtSize=At=>tshirtUnitRegex.test(At),isAny=()=>!0,isLengthOnly=At=>lengthUnitRegex.test(At)&&!colorFunctionRegex.test(At),isNever=()=>!1,isShadow=At=>shadowRegex.test(At),isImage=At=>imageRegex.test(At),isAnyNonArbitrary=At=>!isArbitraryValue(At)&&!isArbitraryVariable(At),isArbitrarySize=At=>getIsArbitraryValue(At,isLabelSize,isNever),isArbitraryValue=At=>arbitraryValueRegex.test(At),isArbitraryLength=At=>getIsArbitraryValue(At,isLabelLength,isLengthOnly),isArbitraryNumber=At=>getIsArbitraryValue(At,isLabelNumber,isNumber$4),isArbitraryWeight=At=>getIsArbitraryValue(At,isLabelWeight,isAny),isArbitraryFamilyName=At=>getIsArbitraryValue(At,isLabelFamilyName,isNever),isArbitraryPosition=At=>getIsArbitraryValue(At,isLabelPosition,isNever),isArbitraryImage=At=>getIsArbitraryValue(At,isLabelImage,isImage),isArbitraryShadow=At=>getIsArbitraryValue(At,isLabelShadow,isShadow),isArbitraryVariable=At=>arbitraryVariableRegex.test(At),isArbitraryVariableLength=At=>getIsArbitraryVariable(At,isLabelLength),isArbitraryVariableFamilyName=At=>getIsArbitraryVariable(At,isLabelFamilyName),isArbitraryVariablePosition=At=>getIsArbitraryVariable(At,isLabelPosition),isArbitraryVariableSize=At=>getIsArbitraryVariable(At,isLabelSize),isArbitraryVariableImage=At=>getIsArbitraryVariable(At,isLabelImage),isArbitraryVariableShadow=At=>getIsArbitraryVariable(At,isLabelShadow,!0),isArbitraryVariableWeight=At=>getIsArbitraryVariable(At,isLabelWeight,!0),getIsArbitraryValue=(At,ot,ut)=>{const pt=arbitraryValueRegex.exec(At);return pt?pt[1]?ot(pt[1]):ut(pt[2]):!1},getIsArbitraryVariable=(At,ot,ut=!1)=>{const pt=arbitraryVariableRegex.exec(At);return pt?pt[1]?ot(pt[1]):ut:!1},isLabelPosition=At=>At==="position"||At==="percentage",isLabelImage=At=>At==="image"||At==="url",isLabelSize=At=>At==="length"||At==="size"||At==="bg-size",isLabelLength=At=>At==="length",isLabelNumber=At=>At==="number",isLabelFamilyName=At=>At==="family-name",isLabelWeight=At=>At==="number"||At==="weight",isLabelShadow=At=>At==="shadow",getDefaultConfig=()=>{const At=fromTheme("color"),ot=fromTheme("font"),ut=fromTheme("text"),pt=fromTheme("font-weight"),ft=fromTheme("tracking"),ht=fromTheme("leading"),yt=fromTheme("breakpoint"),kt=fromTheme("container"),Et=fromTheme("spacing"),Ot=fromTheme("radius"),_t=fromTheme("shadow"),Qt=fromTheme("inset-shadow"),vt=fromTheme("text-shadow"),St=fromTheme("drop-shadow"),$t=fromTheme("blur"),Pt=fromTheme("perspective"),Nt=fromTheme("aspect"),Lt=fromTheme("ease"),qt=fromTheme("animate"),jt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Zt=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Ht=()=>[...Zt(),isArbitraryVariable,isArbitraryValue],Wt=()=>["auto","hidden","clip","visible","scroll"],wn=()=>["auto","contain","none"],Qn=()=>[isArbitraryVariable,isArbitraryValue,Et],Jt=()=>[isFraction,"full","auto",...Qn()],Gn=()=>[isInteger$1,"none","subgrid",isArbitraryVariable,isArbitraryValue],Jn=()=>["auto",{span:["full",isInteger$1,isArbitraryVariable,isArbitraryValue]},isInteger$1,isArbitraryVariable,isArbitraryValue],Vn=()=>[isInteger$1,"auto",isArbitraryVariable,isArbitraryValue],Fn=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],Xn=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ar=()=>["start","end","center","stretch","center-safe","end-safe"],Yn=()=>["auto",...Qn()],lr=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Qn()],nr=()=>[isFraction,"screen","full","dvw","lvw","svw","min","max","fit",...Qn()],mr=()=>[isFraction,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Qn()],Zn=()=>[At,isArbitraryVariable,isArbitraryValue],ur=()=>[...Zt(),isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],yr=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ir=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],Cr=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],kr=()=>["","none","full",Ot,isArbitraryVariable,isArbitraryValue],Br=()=>["",isNumber$4,isArbitraryVariableLength,isArbitraryLength],Dr=()=>["solid","dashed","dotted","double"],Gr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],jr=()=>[isNumber$4,isPercent,isArbitraryVariablePosition,isArbitraryPosition],na=()=>["","none",$t,isArbitraryVariable,isArbitraryValue],ca=()=>["none",isNumber$4,isArbitraryVariable,isArbitraryValue],ma=()=>["none",isNumber$4,isArbitraryVariable,isArbitraryValue],pa=()=>[isNumber$4,isArbitraryVariable,isArbitraryValue],ba=()=>[isFraction,"full",...Qn()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber$4],text:[isTshirtSize],"text-shadow":[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,Nt]}],container:["container"],columns:[{columns:[isNumber$4,isArbitraryValue,isArbitraryVariable,kt]}],"break-after":[{"break-after":jt()}],"break-before":[{"break-before":jt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Ht()}],overflow:[{overflow:Wt()}],"overflow-x":[{"overflow-x":Wt()}],"overflow-y":[{"overflow-y":Wt()}],overscroll:[{overscroll:wn()}],"overscroll-x":[{"overscroll-x":wn()}],"overscroll-y":[{"overscroll-y":wn()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Jt()}],"inset-x":[{"inset-x":Jt()}],"inset-y":[{"inset-y":Jt()}],start:[{"inset-s":Jt(),start:Jt()}],end:[{"inset-e":Jt(),end:Jt()}],"inset-bs":[{"inset-bs":Jt()}],"inset-be":[{"inset-be":Jt()}],top:[{top:Jt()}],right:[{right:Jt()}],bottom:[{bottom:Jt()}],left:[{left:Jt()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger$1,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",kt,...Qn()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber$4,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger$1,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":Gn()}],"col-start-end":[{col:Jn()}],"col-start":[{"col-start":Vn()}],"col-end":[{"col-end":Vn()}],"grid-rows":[{"grid-rows":Gn()}],"row-start-end":[{row:Jn()}],"row-start":[{"row-start":Vn()}],"row-end":[{"row-end":Vn()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Fn()}],"auto-rows":[{"auto-rows":Fn()}],gap:[{gap:Qn()}],"gap-x":[{"gap-x":Qn()}],"gap-y":[{"gap-y":Qn()}],"justify-content":[{justify:[...Xn(),"normal"]}],"justify-items":[{"justify-items":[...Ar(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ar()]}],"align-content":[{content:["normal",...Xn()]}],"align-items":[{items:[...Ar(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ar(),{baseline:["","last"]}]}],"place-content":[{"place-content":Xn()}],"place-items":[{"place-items":[...Ar(),"baseline"]}],"place-self":[{"place-self":["auto",...Ar()]}],p:[{p:Qn()}],px:[{px:Qn()}],py:[{py:Qn()}],ps:[{ps:Qn()}],pe:[{pe:Qn()}],pbs:[{pbs:Qn()}],pbe:[{pbe:Qn()}],pt:[{pt:Qn()}],pr:[{pr:Qn()}],pb:[{pb:Qn()}],pl:[{pl:Qn()}],m:[{m:Yn()}],mx:[{mx:Yn()}],my:[{my:Yn()}],ms:[{ms:Yn()}],me:[{me:Yn()}],mbs:[{mbs:Yn()}],mbe:[{mbe:Yn()}],mt:[{mt:Yn()}],mr:[{mr:Yn()}],mb:[{mb:Yn()}],ml:[{ml:Yn()}],"space-x":[{"space-x":Qn()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Qn()}],"space-y-reverse":["space-y-reverse"],size:[{size:lr()}],"inline-size":[{inline:["auto",...nr()]}],"min-inline-size":[{"min-inline":["auto",...nr()]}],"max-inline-size":[{"max-inline":["none",...nr()]}],"block-size":[{block:["auto",...mr()]}],"min-block-size":[{"min-block":["auto",...mr()]}],"max-block-size":[{"max-block":["none",...mr()]}],w:[{w:[kt,"screen",...lr()]}],"min-w":[{"min-w":[kt,"screen","none",...lr()]}],"max-w":[{"max-w":[kt,"screen","none","prose",{screen:[yt]},...lr()]}],h:[{h:["screen","lh",...lr()]}],"min-h":[{"min-h":["screen","lh","none",...lr()]}],"max-h":[{"max-h":["screen","lh",...lr()]}],"font-size":[{text:["base",ut,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[pt,isArbitraryVariableWeight,isArbitraryWeight]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryFamilyName,ot]}],"font-features":[{"font-features":[isArbitraryValue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[ft,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber$4,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[ht,...Qn()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Zn()}],"text-color":[{text:Zn()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Dr(),"wavy"]}],"text-decoration-thickness":[{decoration:[isNumber$4,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:Zn()}],"underline-offset":[{"underline-offset":[isNumber$4,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Qn()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ur()}],"bg-repeat":[{bg:yr()}],"bg-size":[{bg:ir()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger$1,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger$1,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:Zn()}],"gradient-from-pos":[{from:Cr()}],"gradient-via-pos":[{via:Cr()}],"gradient-to-pos":[{to:Cr()}],"gradient-from":[{from:Zn()}],"gradient-via":[{via:Zn()}],"gradient-to":[{to:Zn()}],rounded:[{rounded:kr()}],"rounded-s":[{"rounded-s":kr()}],"rounded-e":[{"rounded-e":kr()}],"rounded-t":[{"rounded-t":kr()}],"rounded-r":[{"rounded-r":kr()}],"rounded-b":[{"rounded-b":kr()}],"rounded-l":[{"rounded-l":kr()}],"rounded-ss":[{"rounded-ss":kr()}],"rounded-se":[{"rounded-se":kr()}],"rounded-ee":[{"rounded-ee":kr()}],"rounded-es":[{"rounded-es":kr()}],"rounded-tl":[{"rounded-tl":kr()}],"rounded-tr":[{"rounded-tr":kr()}],"rounded-br":[{"rounded-br":kr()}],"rounded-bl":[{"rounded-bl":kr()}],"border-w":[{border:Br()}],"border-w-x":[{"border-x":Br()}],"border-w-y":[{"border-y":Br()}],"border-w-s":[{"border-s":Br()}],"border-w-e":[{"border-e":Br()}],"border-w-bs":[{"border-bs":Br()}],"border-w-be":[{"border-be":Br()}],"border-w-t":[{"border-t":Br()}],"border-w-r":[{"border-r":Br()}],"border-w-b":[{"border-b":Br()}],"border-w-l":[{"border-l":Br()}],"divide-x":[{"divide-x":Br()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Br()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Dr(),"hidden","none"]}],"divide-style":[{divide:[...Dr(),"hidden","none"]}],"border-color":[{border:Zn()}],"border-color-x":[{"border-x":Zn()}],"border-color-y":[{"border-y":Zn()}],"border-color-s":[{"border-s":Zn()}],"border-color-e":[{"border-e":Zn()}],"border-color-bs":[{"border-bs":Zn()}],"border-color-be":[{"border-be":Zn()}],"border-color-t":[{"border-t":Zn()}],"border-color-r":[{"border-r":Zn()}],"border-color-b":[{"border-b":Zn()}],"border-color-l":[{"border-l":Zn()}],"divide-color":[{divide:Zn()}],"outline-style":[{outline:[...Dr(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber$4,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:Zn()}],shadow:[{shadow:["","none",_t,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:Zn()}],"inset-shadow":[{"inset-shadow":["none",Qt,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":Zn()}],"ring-w":[{ring:Br()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Zn()}],"ring-offset-w":[{"ring-offset":[isNumber$4,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":Zn()}],"inset-ring-w":[{"inset-ring":Br()}],"inset-ring-color":[{"inset-ring":Zn()}],"text-shadow":[{"text-shadow":["none",vt,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":Zn()}],opacity:[{opacity:[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":[...Gr(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Gr()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[isNumber$4]}],"mask-image-linear-from-pos":[{"mask-linear-from":jr()}],"mask-image-linear-to-pos":[{"mask-linear-to":jr()}],"mask-image-linear-from-color":[{"mask-linear-from":Zn()}],"mask-image-linear-to-color":[{"mask-linear-to":Zn()}],"mask-image-t-from-pos":[{"mask-t-from":jr()}],"mask-image-t-to-pos":[{"mask-t-to":jr()}],"mask-image-t-from-color":[{"mask-t-from":Zn()}],"mask-image-t-to-color":[{"mask-t-to":Zn()}],"mask-image-r-from-pos":[{"mask-r-from":jr()}],"mask-image-r-to-pos":[{"mask-r-to":jr()}],"mask-image-r-from-color":[{"mask-r-from":Zn()}],"mask-image-r-to-color":[{"mask-r-to":Zn()}],"mask-image-b-from-pos":[{"mask-b-from":jr()}],"mask-image-b-to-pos":[{"mask-b-to":jr()}],"mask-image-b-from-color":[{"mask-b-from":Zn()}],"mask-image-b-to-color":[{"mask-b-to":Zn()}],"mask-image-l-from-pos":[{"mask-l-from":jr()}],"mask-image-l-to-pos":[{"mask-l-to":jr()}],"mask-image-l-from-color":[{"mask-l-from":Zn()}],"mask-image-l-to-color":[{"mask-l-to":Zn()}],"mask-image-x-from-pos":[{"mask-x-from":jr()}],"mask-image-x-to-pos":[{"mask-x-to":jr()}],"mask-image-x-from-color":[{"mask-x-from":Zn()}],"mask-image-x-to-color":[{"mask-x-to":Zn()}],"mask-image-y-from-pos":[{"mask-y-from":jr()}],"mask-image-y-to-pos":[{"mask-y-to":jr()}],"mask-image-y-from-color":[{"mask-y-from":Zn()}],"mask-image-y-to-color":[{"mask-y-to":Zn()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":jr()}],"mask-image-radial-to-pos":[{"mask-radial-to":jr()}],"mask-image-radial-from-color":[{"mask-radial-from":Zn()}],"mask-image-radial-to-color":[{"mask-radial-to":Zn()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Zt()}],"mask-image-conic-pos":[{"mask-conic":[isNumber$4]}],"mask-image-conic-from-pos":[{"mask-conic-from":jr()}],"mask-image-conic-to-pos":[{"mask-conic-to":jr()}],"mask-image-conic-from-color":[{"mask-conic-from":Zn()}],"mask-image-conic-to-color":[{"mask-conic-to":Zn()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ur()}],"mask-repeat":[{mask:yr()}],"mask-size":[{mask:ir()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",isArbitraryVariable,isArbitraryValue]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:na()}],brightness:[{brightness:[isNumber$4,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",St,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":Zn()}],grayscale:[{grayscale:["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber$4,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":na()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Qn()}],"border-spacing-x":[{"border-spacing-x":Qn()}],"border-spacing-y":[{"border-spacing-y":Qn()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber$4,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",Lt,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber$4,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",qt,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[Pt,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":Ht()}],rotate:[{rotate:ca()}],"rotate-x":[{"rotate-x":ca()}],"rotate-y":[{"rotate-y":ca()}],"rotate-z":[{"rotate-z":ca()}],scale:[{scale:ma()}],"scale-x":[{"scale-x":ma()}],"scale-y":[{"scale-y":ma()}],"scale-z":[{"scale-z":ma()}],"scale-3d":["scale-3d"],skew:[{skew:pa()}],"skew-x":[{"skew-x":pa()}],"skew-y":[{"skew-y":pa()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:Ht()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ba()}],"translate-x":[{"translate-x":ba()}],"translate-y":[{"translate-y":ba()}],"translate-z":[{"translate-z":ba()}],"translate-none":["translate-none"],accent:[{accent:Zn()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Zn()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Qn()}],"scroll-mx":[{"scroll-mx":Qn()}],"scroll-my":[{"scroll-my":Qn()}],"scroll-ms":[{"scroll-ms":Qn()}],"scroll-me":[{"scroll-me":Qn()}],"scroll-mbs":[{"scroll-mbs":Qn()}],"scroll-mbe":[{"scroll-mbe":Qn()}],"scroll-mt":[{"scroll-mt":Qn()}],"scroll-mr":[{"scroll-mr":Qn()}],"scroll-mb":[{"scroll-mb":Qn()}],"scroll-ml":[{"scroll-ml":Qn()}],"scroll-p":[{"scroll-p":Qn()}],"scroll-px":[{"scroll-px":Qn()}],"scroll-py":[{"scroll-py":Qn()}],"scroll-ps":[{"scroll-ps":Qn()}],"scroll-pe":[{"scroll-pe":Qn()}],"scroll-pbs":[{"scroll-pbs":Qn()}],"scroll-pbe":[{"scroll-pbe":Qn()}],"scroll-pt":[{"scroll-pt":Qn()}],"scroll-pr":[{"scroll-pr":Qn()}],"scroll-pb":[{"scroll-pb":Qn()}],"scroll-pl":[{"scroll-pl":Qn()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...Zn()]}],"stroke-w":[{stroke:[isNumber$4,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...Zn()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},twMerge=createTailwindMerge(getDefaultConfig);function isArray(At){return Array.isArray?Array.isArray(At):getTag(At)==="[object Array]"}function baseToString(At){if(typeof At=="string")return At;let ot=At+"";return ot=="0"&&1/At==-1/0?"-0":ot}function toString$2(At){return At==null?"":baseToString(At)}function isString(At){return typeof At=="string"}function isNumber$3(At){return typeof At=="number"}function isBoolean(At){return At===!0||At===!1||isObjectLike(At)&&getTag(At)=="[object Boolean]"}function isObject(At){return typeof At=="object"}function isObjectLike(At){return isObject(At)&&At!==null}function isDefined(At){return At!=null}function isBlank(At){return!At.trim().length}function getTag(At){return At==null?At===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(At)}const INCORRECT_INDEX_TYPE="Incorrect 'index' type",LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY=At=>`Invalid value for key ${At}`,PATTERN_LENGTH_TOO_LARGE=At=>`Pattern length exceeds max of ${At}.`,MISSING_KEY_PROPERTY=At=>`Missing ${At} property in key`,INVALID_KEY_WEIGHT_VALUE=At=>`Property 'weight' in key '${At}' must be a positive integer`,hasOwn=Object.prototype.hasOwnProperty;class KeyStore{constructor(ot){this._keys=[],this._keyMap={};let ut=0;ot.forEach(pt=>{let ft=createKey(pt);this._keys.push(ft),this._keyMap[ft.id]=ft,ut+=ft.weight}),this._keys.forEach(pt=>{pt.weight/=ut})}get(ot){return this._keyMap[ot]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function createKey(At){let ot=null,ut=null,pt=null,ft=1,ht=null;if(isString(At)||isArray(At))pt=At,ot=createKeyPath(At),ut=createKeyId(At);else{if(!hasOwn.call(At,"name"))throw new Error(MISSING_KEY_PROPERTY("name"));const yt=At.name;if(pt=yt,hasOwn.call(At,"weight")&&(ft=At.weight,ft<=0))throw new Error(INVALID_KEY_WEIGHT_VALUE(yt));ot=createKeyPath(yt),ut=createKeyId(yt),ht=At.getFn}return{path:ot,id:ut,weight:ft,src:pt,getFn:ht}}function createKeyPath(At){return isArray(At)?At:At.split(".")}function createKeyId(At){return isArray(At)?At.join("."):At}function get$1(At,ot){let ut=[],pt=!1;const ft=(ht,yt,kt)=>{if(isDefined(ht))if(!yt[kt])ut.push(ht);else{let Et=yt[kt];const Ot=ht[Et];if(!isDefined(Ot))return;if(kt===yt.length-1&&(isString(Ot)||isNumber$3(Ot)||isBoolean(Ot)))ut.push(toString$2(Ot));else if(isArray(Ot)){pt=!0;for(let _t=0,Qt=Ot.length;_t<Qt;_t+=1)ft(Ot[_t],yt,kt+1)}else yt.length&&ft(Ot,yt,kt+1)}};return ft(At,isString(ot)?ot.split("."):ot,0),pt?ut:ut[0]}const MatchOptions={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},BasicOptions={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(At,ot)=>At.score===ot.score?At.idx<ot.idx?-1:1:At.score<ot.score?-1:1},FuzzyOptions={location:0,threshold:.6,distance:100},AdvancedOptions={useExtendedSearch:!1,getFn:get$1,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Config$1={...BasicOptions,...MatchOptions,...FuzzyOptions,...AdvancedOptions};const SPACE=/[^ ]+/g;function norm(At=1,ot=3){const ut=new Map,pt=Math.pow(10,ot);return{get(ft){const ht=ft.match(SPACE).length;if(ut.has(ht))return ut.get(ht);const yt=1/Math.pow(ht,.5*At),kt=parseFloat(Math.round(yt*pt)/pt);return ut.set(ht,kt),kt},clear(){ut.clear()}}}class FuseIndex{constructor({getFn:ot=Config$1.getFn,fieldNormWeight:ut=Config$1.fieldNormWeight}={}){this.norm=norm(ut,3),this.getFn=ot,this.isCreated=!1,this.setIndexRecords()}setSources(ot=[]){this.docs=ot}setIndexRecords(ot=[]){this.records=ot}setKeys(ot=[]){this.keys=ot,this._keysMap={},ot.forEach((ut,pt)=>{this._keysMap[ut.id]=pt})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,isString(this.docs[0])?this.docs.forEach((ot,ut)=>{this._addString(ot,ut)}):this.docs.forEach((ot,ut)=>{this._addObject(ot,ut)}),this.norm.clear())}add(ot){const ut=this.size();isString(ot)?this._addString(ot,ut):this._addObject(ot,ut)}removeAt(ot){this.records.splice(ot,1);for(let ut=ot,pt=this.size();ut<pt;ut+=1)this.records[ut].i-=1}getValueForItemAtKeyId(ot,ut){return ot[this._keysMap[ut]]}size(){return this.records.length}_addString(ot,ut){if(!isDefined(ot)||isBlank(ot))return;let pt={v:ot,i:ut,n:this.norm.get(ot)};this.records.push(pt)}_addObject(ot,ut){let pt={i:ut,$:{}};this.keys.forEach((ft,ht)=>{let yt=ft.getFn?ft.getFn(ot):this.getFn(ot,ft.path);if(isDefined(yt)){if(isArray(yt)){let kt=[];const Et=[{nestedArrIndex:-1,value:yt}];for(;Et.length;){const{nestedArrIndex:Ot,value:_t}=Et.pop();if(isDefined(_t))if(isString(_t)&&!isBlank(_t)){let Qt={v:_t,i:Ot,n:this.norm.get(_t)};kt.push(Qt)}else isArray(_t)&&_t.forEach((Qt,vt)=>{Et.push({nestedArrIndex:vt,value:Qt})})}pt.$[ht]=kt}else if(isString(yt)&&!isBlank(yt)){let kt={v:yt,n:this.norm.get(yt)};pt.$[ht]=kt}}}),this.records.push(pt)}toJSON(){return{keys:this.keys,records:this.records}}}function createIndex(At,ot,{getFn:ut=Config$1.getFn,fieldNormWeight:pt=Config$1.fieldNormWeight}={}){const ft=new FuseIndex({getFn:ut,fieldNormWeight:pt});return ft.setKeys(At.map(createKey)),ft.setSources(ot),ft.create(),ft}function parseIndex(At,{getFn:ot=Config$1.getFn,fieldNormWeight:ut=Config$1.fieldNormWeight}={}){const{keys:pt,records:ft}=At,ht=new FuseIndex({getFn:ot,fieldNormWeight:ut});return ht.setKeys(pt),ht.setIndexRecords(ft),ht}function computeScore$1(At,{errors:ot=0,currentLocation:ut=0,expectedLocation:pt=0,distance:ft=Config$1.distance,ignoreLocation:ht=Config$1.ignoreLocation}={}){const yt=ot/At.length;if(ht)return yt;const kt=Math.abs(pt-ut);return ft?yt+kt/ft:kt?1:yt}function convertMaskToIndices(At=[],ot=Config$1.minMatchCharLength){let ut=[],pt=-1,ft=-1,ht=0;for(let yt=At.length;ht<yt;ht+=1){let kt=At[ht];kt&&pt===-1?pt=ht:!kt&&pt!==-1&&(ft=ht-1,ft-pt+1>=ot&&ut.push([pt,ft]),pt=-1)}return At[ht-1]&&ht-pt>=ot&&ut.push([pt,ht-1]),ut}const MAX_BITS=32;function search$3(At,ot,ut,{location:pt=Config$1.location,distance:ft=Config$1.distance,threshold:ht=Config$1.threshold,findAllMatches:yt=Config$1.findAllMatches,minMatchCharLength:kt=Config$1.minMatchCharLength,includeMatches:Et=Config$1.includeMatches,ignoreLocation:Ot=Config$1.ignoreLocation}={}){if(ot.length>MAX_BITS)throw new Error(PATTERN_LENGTH_TOO_LARGE(MAX_BITS));const _t=ot.length,Qt=At.length,vt=Math.max(0,Math.min(pt,Qt));let St=ht,$t=vt;const Pt=kt>1||Et,Nt=Pt?Array(Qt):[];let Lt;for(;(Lt=At.indexOf(ot,$t))>-1;){let wn=computeScore$1(ot,{currentLocation:Lt,expectedLocation:vt,distance:ft,ignoreLocation:Ot});if(St=Math.min(wn,St),$t=Lt+_t,Pt){let Qn=0;for(;Qn<_t;)Nt[Lt+Qn]=1,Qn+=1}}$t=-1;let qt=[],jt=1,Zt=_t+Qt;const Ht=1<<_t-1;for(let wn=0;wn<_t;wn+=1){let Qn=0,Jt=Zt;for(;Qn<Jt;)computeScore$1(ot,{errors:wn,currentLocation:vt+Jt,expectedLocation:vt,distance:ft,ignoreLocation:Ot})<=St?Qn=Jt:Zt=Jt,Jt=Math.floor((Zt-Qn)/2+Qn);Zt=Jt;let Gn=Math.max(1,vt-Jt+1),Jn=yt?Qt:Math.min(vt+Jt,Qt)+_t,Vn=Array(Jn+2);Vn[Jn+1]=(1<<wn)-1;for(let Xn=Jn;Xn>=Gn;Xn-=1){let Ar=Xn-1,Yn=ut[At.charAt(Ar)];if(Pt&&(Nt[Ar]=+!!Yn),Vn[Xn]=(Vn[Xn+1]<<1|1)&Yn,wn&&(Vn[Xn]|=(qt[Xn+1]|qt[Xn])<<1|1|qt[Xn+1]),Vn[Xn]&Ht&&(jt=computeScore$1(ot,{errors:wn,currentLocation:Ar,expectedLocation:vt,distance:ft,ignoreLocation:Ot}),jt<=St)){if(St=jt,$t=Ar,$t<=vt)break;Gn=Math.max(1,2*vt-$t)}}if(computeScore$1(ot,{errors:wn+1,currentLocation:vt,expectedLocation:vt,distance:ft,ignoreLocation:Ot})>St)break;qt=Vn}const Wt={isMatch:$t>=0,score:Math.max(.001,jt)};if(Pt){const wn=convertMaskToIndices(Nt,kt);wn.length?Et&&(Wt.indices=wn):Wt.isMatch=!1}return Wt}function createPatternAlphabet(At){let ot={};for(let ut=0,pt=At.length;ut<pt;ut+=1){const ft=At.charAt(ut);ot[ft]=(ot[ft]||0)|1<<pt-ut-1}return ot}const stripDiacritics=String.prototype.normalize?(At=>At.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(At=>At);class BitapSearch{constructor(ot,{location:ut=Config$1.location,threshold:pt=Config$1.threshold,distance:ft=Config$1.distance,includeMatches:ht=Config$1.includeMatches,findAllMatches:yt=Config$1.findAllMatches,minMatchCharLength:kt=Config$1.minMatchCharLength,isCaseSensitive:Et=Config$1.isCaseSensitive,ignoreDiacritics:Ot=Config$1.ignoreDiacritics,ignoreLocation:_t=Config$1.ignoreLocation}={}){if(this.options={location:ut,threshold:pt,distance:ft,includeMatches:ht,findAllMatches:yt,minMatchCharLength:kt,isCaseSensitive:Et,ignoreDiacritics:Ot,ignoreLocation:_t},ot=Et?ot:ot.toLowerCase(),ot=Ot?stripDiacritics(ot):ot,this.pattern=ot,this.chunks=[],!this.pattern.length)return;const Qt=(St,$t)=>{this.chunks.push({pattern:St,alphabet:createPatternAlphabet(St),startIndex:$t})},vt=this.pattern.length;if(vt>MAX_BITS){let St=0;const $t=vt%MAX_BITS,Pt=vt-$t;for(;St<Pt;)Qt(this.pattern.substr(St,MAX_BITS),St),St+=MAX_BITS;if($t){const Nt=vt-MAX_BITS;Qt(this.pattern.substr(Nt),Nt)}}else Qt(this.pattern,0)}searchIn(ot){const{isCaseSensitive:ut,ignoreDiacritics:pt,includeMatches:ft}=this.options;if(ot=ut?ot:ot.toLowerCase(),ot=pt?stripDiacritics(ot):ot,this.pattern===ot){let Pt={isMatch:!0,score:0};return ft&&(Pt.indices=[[0,ot.length-1]]),Pt}const{location:ht,distance:yt,threshold:kt,findAllMatches:Et,minMatchCharLength:Ot,ignoreLocation:_t}=this.options;let Qt=[],vt=0,St=!1;this.chunks.forEach(({pattern:Pt,alphabet:Nt,startIndex:Lt})=>{const{isMatch:qt,score:jt,indices:Zt}=search$3(ot,Pt,Nt,{location:ht+Lt,distance:yt,threshold:kt,findAllMatches:Et,minMatchCharLength:Ot,includeMatches:ft,ignoreLocation:_t});qt&&(St=!0),vt+=jt,qt&&Zt&&(Qt=[...Qt,...Zt])});let $t={isMatch:St,score:St?vt/this.chunks.length:1};return St&&ft&&($t.indices=Qt),$t}}class BaseMatch{constructor(ot){this.pattern=ot}static isMultiMatch(ot){return getMatch(ot,this.multiRegex)}static isSingleMatch(ot){return getMatch(ot,this.singleRegex)}search(){}}function getMatch(At,ot){const ut=At.match(ot);return ut?ut[1]:null}class ExactMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(ot){const ut=ot===this.pattern;return{isMatch:ut,score:ut?0:1,indices:[0,this.pattern.length-1]}}}class InverseExactMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(ot){const pt=ot.indexOf(this.pattern)===-1;return{isMatch:pt,score:pt?0:1,indices:[0,ot.length-1]}}}class PrefixExactMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(ot){const ut=ot.startsWith(this.pattern);return{isMatch:ut,score:ut?0:1,indices:[0,this.pattern.length-1]}}}class InversePrefixExactMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(ot){const ut=!ot.startsWith(this.pattern);return{isMatch:ut,score:ut?0:1,indices:[0,ot.length-1]}}}class SuffixExactMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(ot){const ut=ot.endsWith(this.pattern);return{isMatch:ut,score:ut?0:1,indices:[ot.length-this.pattern.length,ot.length-1]}}}class InverseSuffixExactMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(ot){const ut=!ot.endsWith(this.pattern);return{isMatch:ut,score:ut?0:1,indices:[0,ot.length-1]}}}class FuzzyMatch extends BaseMatch{constructor(ot,{location:ut=Config$1.location,threshold:pt=Config$1.threshold,distance:ft=Config$1.distance,includeMatches:ht=Config$1.includeMatches,findAllMatches:yt=Config$1.findAllMatches,minMatchCharLength:kt=Config$1.minMatchCharLength,isCaseSensitive:Et=Config$1.isCaseSensitive,ignoreDiacritics:Ot=Config$1.ignoreDiacritics,ignoreLocation:_t=Config$1.ignoreLocation}={}){super(ot),this._bitapSearch=new BitapSearch(ot,{location:ut,threshold:pt,distance:ft,includeMatches:ht,findAllMatches:yt,minMatchCharLength:kt,isCaseSensitive:Et,ignoreDiacritics:Ot,ignoreLocation:_t})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(ot){return this._bitapSearch.searchIn(ot)}}class IncludeMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(ot){let ut=0,pt;const ft=[],ht=this.pattern.length;for(;(pt=ot.indexOf(this.pattern,ut))>-1;)ut=pt+ht,ft.push([pt,ut-1]);const yt=!!ft.length;return{isMatch:yt,score:yt?0:1,indices:ft}}}const searchers=[ExactMatch,IncludeMatch,PrefixExactMatch,InversePrefixExactMatch,InverseSuffixExactMatch,SuffixExactMatch,InverseExactMatch,FuzzyMatch],searchersLen=searchers.length,SPACE_RE=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,OR_TOKEN="|";function parseQuery(At,ot={}){return At.split(OR_TOKEN).map(ut=>{let pt=ut.trim().split(SPACE_RE).filter(ht=>ht&&!!ht.trim()),ft=[];for(let ht=0,yt=pt.length;ht<yt;ht+=1){const kt=pt[ht];let Et=!1,Ot=-1;for(;!Et&&++Ot<searchersLen;){const _t=searchers[Ot];let Qt=_t.isMultiMatch(kt);Qt&&(ft.push(new _t(Qt,ot)),Et=!0)}if(!Et)for(Ot=-1;++Ot<searchersLen;){const _t=searchers[Ot];let Qt=_t.isSingleMatch(kt);if(Qt){ft.push(new _t(Qt,ot));break}}}return ft})}const MultiMatchSet=new Set([FuzzyMatch.type,IncludeMatch.type]);class ExtendedSearch{constructor(ot,{isCaseSensitive:ut=Config$1.isCaseSensitive,ignoreDiacritics:pt=Config$1.ignoreDiacritics,includeMatches:ft=Config$1.includeMatches,minMatchCharLength:ht=Config$1.minMatchCharLength,ignoreLocation:yt=Config$1.ignoreLocation,findAllMatches:kt=Config$1.findAllMatches,location:Et=Config$1.location,threshold:Ot=Config$1.threshold,distance:_t=Config$1.distance}={}){this.query=null,this.options={isCaseSensitive:ut,ignoreDiacritics:pt,includeMatches:ft,minMatchCharLength:ht,findAllMatches:kt,ignoreLocation:yt,location:Et,threshold:Ot,distance:_t},ot=ut?ot:ot.toLowerCase(),ot=pt?stripDiacritics(ot):ot,this.pattern=ot,this.query=parseQuery(this.pattern,this.options)}static condition(ot,ut){return ut.useExtendedSearch}searchIn(ot){const ut=this.query;if(!ut)return{isMatch:!1,score:1};const{includeMatches:pt,isCaseSensitive:ft,ignoreDiacritics:ht}=this.options;ot=ft?ot:ot.toLowerCase(),ot=ht?stripDiacritics(ot):ot;let yt=0,kt=[],Et=0;for(let Ot=0,_t=ut.length;Ot<_t;Ot+=1){const Qt=ut[Ot];kt.length=0,yt=0;for(let vt=0,St=Qt.length;vt<St;vt+=1){const $t=Qt[vt],{isMatch:Pt,indices:Nt,score:Lt}=$t.search(ot);if(Pt){if(yt+=1,Et+=Lt,pt){const qt=$t.constructor.type;MultiMatchSet.has(qt)?kt=[...kt,...Nt]:kt.push(Nt)}}else{Et=0,yt=0,kt.length=0;break}}if(yt){let vt={isMatch:!0,score:Et/yt};return pt&&(vt.indices=kt),vt}}return{isMatch:!1,score:1}}}const registeredSearchers=[];function register$1(...At){registeredSearchers.push(...At)}function createSearcher(At,ot){for(let ut=0,pt=registeredSearchers.length;ut<pt;ut+=1){let ft=registeredSearchers[ut];if(ft.condition(At,ot))return new ft(At,ot)}return new BitapSearch(At,ot)}const LogicalOperator={AND:"$and",OR:"$or"},KeyType={PATH:"$path",PATTERN:"$val"},isExpression=At=>!!(At[LogicalOperator.AND]||At[LogicalOperator.OR]),isPath=At=>!!At[KeyType.PATH],isLeaf=At=>!isArray(At)&&isObject(At)&&!isExpression(At),convertToExplicit=At=>({[LogicalOperator.AND]:Object.keys(At).map(ot=>({[ot]:At[ot]}))});function parse$5(At,ot,{auto:ut=!0}={}){const pt=ft=>{let ht=Object.keys(ft);const yt=isPath(ft);if(!yt&&ht.length>1&&!isExpression(ft))return pt(convertToExplicit(ft));if(isLeaf(ft)){const Et=yt?ft[KeyType.PATH]:ht[0],Ot=yt?ft[KeyType.PATTERN]:ft[Et];if(!isString(Ot))throw new Error(LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY(Et));const _t={keyId:createKeyId(Et),pattern:Ot};return ut&&(_t.searcher=createSearcher(Ot,ot)),_t}let kt={children:[],operator:ht[0]};return ht.forEach(Et=>{const Ot=ft[Et];isArray(Ot)&&Ot.forEach(_t=>{kt.children.push(pt(_t))})}),kt};return isExpression(At)||(At=convertToExplicit(At)),pt(At)}function computeScore(At,{ignoreFieldNorm:ot=Config$1.ignoreFieldNorm}){At.forEach(ut=>{let pt=1;ut.matches.forEach(({key:ft,norm:ht,score:yt})=>{const kt=ft?ft.weight:null;pt*=Math.pow(yt===0&&kt?Number.EPSILON:yt,(kt||1)*(ot?1:ht))}),ut.score=pt})}function transformMatches(At,ot){const ut=At.matches;ot.matches=[],isDefined(ut)&&ut.forEach(pt=>{if(!isDefined(pt.indices)||!pt.indices.length)return;const{indices:ft,value:ht}=pt;let yt={indices:ft,value:ht};pt.key&&(yt.key=pt.key.src),pt.idx>-1&&(yt.refIndex=pt.idx),ot.matches.push(yt)})}function transformScore(At,ot){ot.score=At.score}function format(At,ot,{includeMatches:ut=Config$1.includeMatches,includeScore:pt=Config$1.includeScore}={}){const ft=[];return ut&&ft.push(transformMatches),pt&&ft.push(transformScore),At.map(ht=>{const{idx:yt}=ht,kt={item:ot[yt],refIndex:yt};return ft.length&&ft.forEach(Et=>{Et(ht,kt)}),kt})}class Fuse{constructor(ot,ut={},pt){this.options={...Config$1,...ut},this.options.useExtendedSearch,this._keyStore=new KeyStore(this.options.keys),this.setCollection(ot,pt)}setCollection(ot,ut){if(this._docs=ot,ut&&!(ut instanceof FuseIndex))throw new Error(INCORRECT_INDEX_TYPE);this._myIndex=ut||createIndex(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(ot){isDefined(ot)&&(this._docs.push(ot),this._myIndex.add(ot))}remove(ot=()=>!1){const ut=[];for(let pt=0,ft=this._docs.length;pt<ft;pt+=1){const ht=this._docs[pt];ot(ht,pt)&&(this.removeAt(pt),pt-=1,ft-=1,ut.push(ht))}return ut}removeAt(ot){this._docs.splice(ot,1),this._myIndex.removeAt(ot)}getIndex(){return this._myIndex}search(ot,{limit:ut=-1}={}){const{includeMatches:pt,includeScore:ft,shouldSort:ht,sortFn:yt,ignoreFieldNorm:kt}=this.options;let Et=isString(ot)?isString(this._docs[0])?this._searchStringList(ot):this._searchObjectList(ot):this._searchLogical(ot);return computeScore(Et,{ignoreFieldNorm:kt}),ht&&Et.sort(yt),isNumber$3(ut)&&ut>-1&&(Et=Et.slice(0,ut)),format(Et,this._docs,{includeMatches:pt,includeScore:ft})}_searchStringList(ot){const ut=createSearcher(ot,this.options),{records:pt}=this._myIndex,ft=[];return pt.forEach(({v:ht,i:yt,n:kt})=>{if(!isDefined(ht))return;const{isMatch:Et,score:Ot,indices:_t}=ut.searchIn(ht);Et&&ft.push({item:ht,idx:yt,matches:[{score:Ot,value:ht,norm:kt,indices:_t}]})}),ft}_searchLogical(ot){const ut=parse$5(ot,this.options),pt=(kt,Et,Ot)=>{if(!kt.children){const{keyId:Qt,searcher:vt}=kt,St=this._findMatches({key:this._keyStore.get(Qt),value:this._myIndex.getValueForItemAtKeyId(Et,Qt),searcher:vt});return St&&St.length?[{idx:Ot,item:Et,matches:St}]:[]}const _t=[];for(let Qt=0,vt=kt.children.length;Qt<vt;Qt+=1){const St=kt.children[Qt],$t=pt(St,Et,Ot);if($t.length)_t.push(...$t);else if(kt.operator===LogicalOperator.AND)return[]}return _t},ft=this._myIndex.records,ht={},yt=[];return ft.forEach(({$:kt,i:Et})=>{if(isDefined(kt)){let Ot=pt(ut,kt,Et);Ot.length&&(ht[Et]||(ht[Et]={idx:Et,item:kt,matches:[]},yt.push(ht[Et])),Ot.forEach(({matches:_t})=>{ht[Et].matches.push(..._t)}))}}),yt}_searchObjectList(ot){const ut=createSearcher(ot,this.options),{keys:pt,records:ft}=this._myIndex,ht=[];return ft.forEach(({$:yt,i:kt})=>{if(!isDefined(yt))return;let Et=[];pt.forEach((Ot,_t)=>{Et.push(...this._findMatches({key:Ot,value:yt[_t],searcher:ut}))}),Et.length&&ht.push({idx:kt,item:yt,matches:Et})}),ht}_findMatches({key:ot,value:ut,searcher:pt}){if(!isDefined(ut))return[];let ft=[];if(isArray(ut))ut.forEach(({v:ht,i:yt,n:kt})=>{if(!isDefined(ht))return;const{isMatch:Et,score:Ot,indices:_t}=pt.searchIn(ht);Et&&ft.push({score:Ot,key:ot,value:ht,idx:yt,norm:kt,indices:_t})});else{const{v:ht,n:yt}=ut,{isMatch:kt,score:Et,indices:Ot}=pt.searchIn(ht);kt&&ft.push({score:Et,key:ot,value:ht,norm:yt,indices:Ot})}return ft}}Fuse.version="7.1.0";Fuse.createIndex=createIndex;Fuse.parseIndex=parseIndex;Fuse.config=Config$1;Fuse.parseQuery=parse$5;register$1(ExtendedSearch);const MenuPositionerContext=reactExports.createContext(void 0);function useMenuPositionerContext(At){const ot=reactExports.useContext(MenuPositionerContext);if(ot===void 0&&!At)throw new Error(formatErrorMessage(33));return ot}const MenuRootContext=reactExports.createContext(void 0);function useMenuRootContext(At){const ot=reactExports.useContext(MenuRootContext);if(ot===void 0&&!At)throw new Error(formatErrorMessage(36));return ot}const ContextMenuRootContext=reactExports.createContext(void 0);function useContextMenuRootContext(At=!0){const ot=reactExports.useContext(ContextMenuRootContext);if(ot===void 0&&!At)throw new Error(formatErrorMessage(25));return ot}function useControlled({controlled:At,default:ot,name:ut,state:pt="value"}){const{current:ft}=reactExports.useRef(At!==void 0),[ht,yt]=reactExports.useState(ot),kt=ft?At:ht,Et=reactExports.useCallback(Ot=>{ft||yt(Ot)},[]);return[kt,Et]}const CompositeRootContext=reactExports.createContext(void 0);function useCompositeRootContext(At=!1){const ot=reactExports.useContext(CompositeRootContext);if(ot===void 0&&!At)throw new Error(formatErrorMessage(16));return ot}function useFocusableWhenDisabled(At){const{focusableWhenDisabled:ot,disabled:ut,composite:pt=!1,tabIndex:ft=0,isNativeButton:ht}=At,yt=pt&&ot!==!1,kt=pt&&ot===!1;return{props:reactExports.useMemo(()=>{const Ot={onKeyDown(_t){ut&&ot&&_t.key!=="Tab"&&_t.preventDefault()}};return pt||(Ot.tabIndex=ft,!ht&&ut&&(Ot.tabIndex=ot?ft:-1)),(ht&&(ot||yt)||!ht&&ut)&&(Ot["aria-disabled"]=ut),ht&&(!ot||kt)&&(Ot.disabled=ut),Ot},[pt,ut,ot,yt,kt,ht,ft])}}function useButton(At={}){const{disabled:ot=!1,focusableWhenDisabled:ut,tabIndex:pt=0,native:ft=!0,composite:ht}=At,yt=reactExports.useRef(null),kt=useCompositeRootContext(!0),Et=ht??kt!==void 0,{props:Ot}=useFocusableWhenDisabled({focusableWhenDisabled:ut,disabled:ot,composite:Et,tabIndex:pt,isNativeButton:ft}),_t=reactExports.useCallback(()=>{const St=yt.current;isButtonElement(St)&&Et&&ot&&Ot.disabled===void 0&&St.disabled&&(St.disabled=!1)},[ot,Ot.disabled,Et]);useIsoLayoutEffect(_t,[_t]);const Qt=reactExports.useCallback((St={})=>{const{onClick:$t,onMouseDown:Pt,onKeyUp:Nt,onKeyDown:Lt,onPointerDown:qt,...jt}=St;return mergeProps$3({type:ft?"button":void 0,onClick(Ht){if(ot){Ht.preventDefault();return}$t?.(Ht)},onMouseDown(Ht){ot||Pt?.(Ht)},onKeyDown(Ht){if(ot||(makeEventPreventable(Ht),Lt?.(Ht),Ht.baseUIHandlerPrevented))return;const Wt=Ht.target===Ht.currentTarget,wn=Ht.currentTarget,Qn=isButtonElement(wn),Jt=!ft&&isValidLinkElement(wn),Gn=Wt&&(ft?Qn:!Jt),Jn=Ht.key==="Enter",Vn=Ht.key===" ",Fn=wn.getAttribute("role"),Xn=Fn?.startsWith("menuitem")||Fn==="option"||Fn==="gridcell";if(Wt&&Et&&Vn){if(Ht.defaultPrevented&&Xn)return;Ht.preventDefault(),Jt||ft&&Qn?(wn.click(),Ht.preventBaseUIHandler()):Gn&&($t?.(Ht),Ht.preventBaseUIHandler());return}Gn&&(!ft&&(Vn||Jn)&&Ht.preventDefault(),!ft&&Jn&&$t?.(Ht))},onKeyUp(Ht){if(!ot){if(makeEventPreventable(Ht),Nt?.(Ht),Ht.target===Ht.currentTarget&&ft&&Et&&isButtonElement(Ht.currentTarget)&&Ht.key===" "){Ht.preventDefault();return}Ht.baseUIHandlerPrevented||Ht.target===Ht.currentTarget&&!ft&&!Et&&Ht.key===" "&&$t?.(Ht)}},onPointerDown(Ht){if(ot){Ht.preventDefault();return}qt?.(Ht)}},ft?void 0:{role:"button"},Ot,jt)},[ot,Ot,Et,ft]),vt=useStableCallback$1(St=>{yt.current=St,_t()});return{getButtonProps:Qt,buttonRef:vt}}function isButtonElement(At){return isHTMLElement$1(At)&&At.tagName==="BUTTON"}function isValidLinkElement(At){return!!(At?.tagName==="A"&&At?.href)}function useMenuItemCommonProps(At){const{closeOnClick:ot,highlighted:ut,id:pt,nodeId:ft,store:ht,typingRef:yt,itemRef:kt,itemMetadata:Et}=At,{events:Ot}=ht.useState("floatingTreeRoot"),_t=useContextMenuRootContext(!0),Qt=_t!==void 0;return reactExports.useMemo(()=>({id:pt,role:"menuitem",tabIndex:ut?0:-1,onKeyDown(vt){vt.key===" "&&yt?.current&&vt.preventDefault()},onMouseMove(vt){ft&&Ot.emit("itemhover",{nodeId:ft,target:vt.currentTarget})},onClick(vt){ot&&Ot.emit("close",{domEvent:vt,reason:itemPress})},onMouseUp(vt){if(_t){const St=_t.initialCursorPointRef.current;if(_t.initialCursorPointRef.current=null,Qt&&St&&Math.abs(vt.clientX-St.x)<=1&&Math.abs(vt.clientY-St.y)<=1||Qt&&!isMac&&vt.button===2)return}kt.current&&ht.context.allowMouseUpTriggerRef.current&&(!Qt||vt.button===2)&&(!Et||Et.type==="regular-item")&&kt.current.click()}}),[ot,ut,pt,Ot,ft,ht,yt,kt,_t,Qt,Et])}const REGULAR_ITEM={type:"regular-item"};function useMenuItem(At){const{closeOnClick:ot,disabled:ut=!1,highlighted:pt,id:ft,store:ht,typingRef:yt=ht.context.typingRef,nativeButton:kt,itemMetadata:Et,nodeId:Ot}=At,_t=reactExports.useRef(null),{getButtonProps:Qt,buttonRef:vt}=useButton({disabled:ut,focusableWhenDisabled:!0,native:kt,composite:!0}),St=useMenuItemCommonProps({closeOnClick:ot,highlighted:pt,id:ft,nodeId:Ot,store:ht,typingRef:yt,itemRef:_t,itemMetadata:Et}),$t=reactExports.useCallback(Nt=>mergeProps$3(St,{onMouseEnter(){Et.type==="submenu-trigger"&&Et.setActive()}},Nt,Qt),[St,Qt,Et]),Pt=useMergedRefs(_t,vt);return reactExports.useMemo(()=>({getItemProps:$t,itemRef:Pt}),[$t,Pt])}const CompositeListContext=reactExports.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function useCompositeListContext(){return reactExports.useContext(CompositeListContext)}let IndexGuessBehavior=(function(At){return At[At.None=0]="None",At[At.GuessFromOrder=1]="GuessFromOrder",At})({});function useCompositeListItem(At={}){const{label:ot,metadata:ut,textRef:pt,indexGuessBehavior:ft,index:ht}=At,{register:yt,unregister:kt,subscribeMapChange:Et,elementsRef:Ot,labelsRef:_t,nextIndexRef:Qt}=useCompositeListContext(),vt=reactExports.useRef(-1),[St,$t]=reactExports.useState(ht??(ft===IndexGuessBehavior.GuessFromOrder?()=>{if(vt.current===-1){const Lt=Qt.current;Qt.current+=1,vt.current=Lt}return vt.current}:-1)),Pt=reactExports.useRef(null),Nt=reactExports.useCallback(Lt=>{if(Pt.current=Lt,St!==-1&&Lt!==null&&(Ot.current[St]=Lt,_t)){const qt=ot!==void 0;_t.current[St]=qt?ot:pt?.current?.textContent??Lt.textContent}},[St,Ot,_t,ot,pt]);return useIsoLayoutEffect(()=>{if(ht!=null)return;const Lt=Pt.current;if(Lt)return yt(Lt,ut),()=>{kt(Lt)}},[ht,yt,kt,ut]),useIsoLayoutEffect(()=>{if(ht==null)return Et(Lt=>{const qt=Pt.current?Lt.get(Pt.current)?.index:null;qt!=null&&$t(qt)})},[ht,Et,$t]),reactExports.useMemo(()=>({ref:Nt,index:St}),[St,Nt])}let MenuCheckboxItemDataAttributes=(function(At){return At.checked="data-checked",At.unchecked="data-unchecked",At.disabled="data-disabled",At.highlighted="data-highlighted",At})({});const itemMapping={checked(At){return At?{[MenuCheckboxItemDataAttributes.checked]:""}:{[MenuCheckboxItemDataAttributes.unchecked]:""}},...transitionStatusMapping},MenuItem=reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,id:ht,label:yt,nativeButton:kt=!1,disabled:Et=!1,closeOnClick:Ot=!0,style:_t,...Qt}=ot,vt=useCompositeListItem({label:yt}),St=useMenuPositionerContext(!0),$t=useBaseUiId(ht),{store:Pt}=useMenuRootContext(),Nt=Pt.useState("isActive",vt.index),Lt=Pt.useState("itemProps"),{getItemProps:qt,itemRef:jt}=useMenuItem({closeOnClick:Ot,disabled:Et,highlighted:Nt,id:$t,store:Pt,nativeButton:kt,nodeId:St?.context.nodeId,itemMetadata:REGULAR_ITEM});return useRenderElement("div",ot,{state:{disabled:Et,highlighted:Nt},props:[Lt,Qt,qt],ref:[jt,ut,vt.ref]})}),ToolbarRootContext=reactExports.createContext(void 0);function useToolbarRootContext(At){return reactExports.useContext(ToolbarRootContext)}const ARROW_UP="ArrowUp",ARROW_DOWN="ArrowDown",ARROW_LEFT="ArrowLeft",ARROW_RIGHT="ArrowRight",HOME="Home",END="End",HORIZONTAL_KEYS=new Set([ARROW_LEFT,ARROW_RIGHT]),VERTICAL_KEYS=new Set([ARROW_UP,ARROW_DOWN]),ARROW_KEYS=new Set([...HORIZONTAL_KEYS,...VERTICAL_KEYS]);[...ARROW_KEYS];const COMPOSITE_KEYS=new Set([ARROW_UP,ARROW_DOWN,ARROW_LEFT,ARROW_RIGHT,HOME,END]),stateAttributesMapping$8={...popupStateMapping,...transitionStatusMapping},MenuPopup=reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,style:ht,finalFocus:yt,...kt}=ot,{store:Et}=useMenuRootContext(),{side:Ot,align:_t}=useMenuPositionerContext(),Qt=useToolbarRootContext()!=null,vt=Et.useState("open"),St=Et.useState("transitionStatus"),$t=Et.useState("popupProps"),Pt=Et.useState("mounted"),Nt=Et.useState("instantType"),Lt=Et.useState("activeTriggerElement"),qt=Et.useState("parent"),jt=Et.useState("lastOpenChangeReason"),Zt=Et.useState("rootId"),Ht=Et.useState("floatingRootContext"),Wt=Et.useState("floatingTreeRoot"),wn=Et.useState("closeDelay"),Qn=Et.useState("activeTriggerElement"),Jt=qt.type==="context-menu";useOpenChangeComplete({open:vt,ref:Et.context.popupRef,onComplete(){vt&&Et.context.onOpenChangeComplete?.(!0)}}),reactExports.useEffect(()=>{function Yn(lr){Et.setOpen(!1,createChangeEventDetails(lr.reason,lr.domEvent))}return Wt.events.on("close",Yn),()=>{Wt.events.off("close",Yn)}},[Wt.events,Et]);const Gn=Et.useState("hoverEnabled"),Jn=Et.useState("disabled");useHoverFloatingInteraction(Ht,{enabled:Gn&&!Jn&&!Jt&&qt.type!=="menubar",closeDelay:wn});const Vn={transitionStatus:St,side:Ot,align:_t,open:vt,nested:qt.type==="menu",instant:Nt},Fn=reactExports.useCallback(Yn=>{Et.set("popupElement",Yn)},[Et]),Xn=useRenderElement("div",ot,{state:Vn,ref:[ut,Et.context.popupRef,Fn],stateAttributesMapping:stateAttributesMapping$8,props:[$t,{onKeyDown(Yn){Qt&&COMPOSITE_KEYS.has(Yn.key)&&Yn.stopPropagation()}},getDisabledMountTransitionStyles(St),kt,{"data-rootownerid":Zt}]});let Ar=qt.type===void 0||Jt;return(Lt||qt.type==="menubar"&&jt!==outsidePress)&&(Ar=!0),jsxRuntimeExports.jsx(FloatingFocusManager,{context:Ht,modal:Jt,disabled:!Pt,returnFocus:yt===void 0?Ar:yt,initialFocus:qt.type!=="menu",restoreFocus:!0,externalTree:qt.type!=="menubar"?Wt:void 0,previousFocusableElement:Qn,nextFocusableElement:qt.type===void 0?Et.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:qt.type===void 0?Et.context.beforeContentFocusGuardRef:void 0,children:Xn})}),MenuPortalContext=reactExports.createContext(void 0);function useMenuPortalContext(){const At=reactExports.useContext(MenuPortalContext);if(At===void 0)throw new Error(formatErrorMessage(32));return At}const MenuPortal=reactExports.forwardRef(function(ot,ut){const{keepMounted:pt=!1,...ft}=ot,{store:ht}=useMenuRootContext();return ht.useState("mounted")||pt?jsxRuntimeExports.jsx(MenuPortalContext.Provider,{value:pt,children:jsxRuntimeExports.jsx(FloatingPortal,{ref:ut,...ft})}):null});function CompositeList(At){const{children:ot,elementsRef:ut,labelsRef:pt,onMapChange:ft}=At,ht=useStableCallback$1(ft),yt=reactExports.useRef(0),kt=useRefWithInit(createListeners).current,Et=useRefWithInit(createMap).current,[Ot,_t]=reactExports.useState(0),Qt=reactExports.useRef(Ot),vt=useStableCallback$1((Lt,qt)=>{Et.set(Lt,qt??null),Qt.current+=1,_t(Qt.current)}),St=useStableCallback$1(Lt=>{Et.delete(Lt),Qt.current+=1,_t(Qt.current)}),$t=reactExports.useMemo(()=>{const Lt=new Map;return Array.from(Et.keys()).filter(jt=>jt.isConnected).sort(sortByDocumentPosition).forEach((jt,Zt)=>{const Ht=Et.get(jt)??{};Lt.set(jt,{...Ht,index:Zt})}),Lt},[Et,Ot]);useIsoLayoutEffect(()=>{if(typeof MutationObserver!="function"||$t.size===0)return;const Lt=new MutationObserver(qt=>{const jt=new Set,Zt=Ht=>jt.has(Ht)?jt.delete(Ht):jt.add(Ht);qt.forEach(Ht=>{Ht.removedNodes.forEach(Zt),Ht.addedNodes.forEach(Zt)}),jt.size===0&&(Qt.current+=1,_t(Qt.current))});return $t.forEach((qt,jt)=>{jt.parentElement&&Lt.observe(jt.parentElement,{childList:!0})}),()=>{Lt.disconnect()}},[$t]),useIsoLayoutEffect(()=>{Qt.current===Ot&&(ut.current.length!==$t.size&&(ut.current.length=$t.size),pt&&pt.current.length!==$t.size&&(pt.current.length=$t.size),yt.current=$t.size),ht($t)},[ht,$t,ut,pt,Ot]),useIsoLayoutEffect(()=>()=>{ut.current=[]},[ut]),useIsoLayoutEffect(()=>()=>{pt&&(pt.current=[])},[pt]);const Pt=useStableCallback$1(Lt=>(kt.add(Lt),()=>{kt.delete(Lt)}));useIsoLayoutEffect(()=>{kt.forEach(Lt=>Lt($t))},[kt,$t]);const Nt=reactExports.useMemo(()=>({register:vt,unregister:St,subscribeMapChange:Pt,elementsRef:ut,labelsRef:pt,nextIndexRef:yt}),[vt,St,Pt,ut,pt,yt]);return jsxRuntimeExports.jsx(CompositeListContext.Provider,{value:Nt,children:ot})}function createMap(){return new Map}function createListeners(){return new Set}function sortByDocumentPosition(At,ot){const ut=At.compareDocumentPosition(ot);return ut&Node.DOCUMENT_POSITION_FOLLOWING||ut&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:ut&Node.DOCUMENT_POSITION_PRECEDING||ut&Node.DOCUMENT_POSITION_CONTAINS?1:0}const InternalBackdrop=reactExports.forwardRef(function(ot,ut){const{cutout:pt,...ft}=ot;let ht;if(pt){const yt=pt.getBoundingClientRect();ht=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${yt.left}px ${yt.top}px,${yt.left}px ${yt.bottom}px,${yt.right}px ${yt.bottom}px,${yt.right}px ${yt.top}px,${yt.left}px ${yt.top}px)`}return jsxRuntimeExports.jsx("div",{ref:ut,role:"presentation","data-base-ui-inert":"",...ft,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:ht}})});let originalHtmlStyles={},originalBodyStyles={},originalHtmlScrollBehavior="";function hasInsetScrollbars(At){if(typeof document>"u")return!1;const ot=ownerDocument(At);return getWindow$1(ot).innerWidth-ot.documentElement.clientWidth>0}function supportsStableScrollbarGutter(At){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const ut=ownerDocument(At),pt=ut.documentElement,ft=ut.body,ht=isOverflowElement(pt)?pt:ft,yt=ht.style.overflowY,kt=pt.style.scrollbarGutter;pt.style.scrollbarGutter="stable",ht.style.overflowY="scroll";const Et=ht.offsetWidth;ht.style.overflowY="hidden";const Ot=ht.offsetWidth;return ht.style.overflowY=yt,pt.style.scrollbarGutter=kt,Et===Ot}function preventScrollOverlayScrollbars(At){const ot=ownerDocument(At),ut=ot.documentElement,pt=ot.body,ft=isOverflowElement(ut)?ut:pt,ht={overflowY:ft.style.overflowY,overflowX:ft.style.overflowX};return Object.assign(ft.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(ft.style,ht)}}function preventScrollInsetScrollbars(At){const ot=ownerDocument(At),ut=ot.documentElement,pt=ot.body,ft=getWindow$1(ut);let ht=0,yt=0,kt=!1;const Et=AnimationFrame.create();if(isWebKit$1&&(ft.visualViewport?.scale??1)!==1)return()=>{};function Ot(){const St=ft.getComputedStyle(ut),$t=ft.getComputedStyle(pt),Lt=(St.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";ht=ut.scrollTop,yt=ut.scrollLeft,originalHtmlStyles={scrollbarGutter:ut.style.scrollbarGutter,overflowY:ut.style.overflowY,overflowX:ut.style.overflowX},originalHtmlScrollBehavior=ut.style.scrollBehavior,originalBodyStyles={position:pt.style.position,height:pt.style.height,width:pt.style.width,boxSizing:pt.style.boxSizing,overflowY:pt.style.overflowY,overflowX:pt.style.overflowX,scrollBehavior:pt.style.scrollBehavior};const qt=ut.scrollHeight>ut.clientHeight,jt=ut.scrollWidth>ut.clientWidth,Zt=St.overflowY==="scroll"||$t.overflowY==="scroll",Ht=St.overflowX==="scroll"||$t.overflowX==="scroll",Wt=Math.max(0,ft.innerWidth-pt.clientWidth),wn=Math.max(0,ft.innerHeight-pt.clientHeight),Qn=parseFloat($t.marginTop)+parseFloat($t.marginBottom),Jt=parseFloat($t.marginLeft)+parseFloat($t.marginRight),Gn=isOverflowElement(ut)?ut:pt;if(kt=supportsStableScrollbarGutter(At),kt){ut.style.scrollbarGutter=Lt,Gn.style.overflowY="hidden",Gn.style.overflowX="hidden";return}Object.assign(ut.style,{scrollbarGutter:Lt,overflowY:"hidden",overflowX:"hidden"}),(qt||Zt)&&(ut.style.overflowY="scroll"),(jt||Ht)&&(ut.style.overflowX="scroll"),Object.assign(pt.style,{position:"relative",height:Qn||wn?`calc(100dvh - ${Qn+wn}px)`:"100dvh",width:Jt||Wt?`calc(100vw - ${Jt+Wt}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),pt.scrollTop=ht,pt.scrollLeft=yt,ut.setAttribute("data-base-ui-scroll-locked",""),ut.style.scrollBehavior="unset"}function _t(){Object.assign(ut.style,originalHtmlStyles),Object.assign(pt.style,originalBodyStyles),kt||(ut.scrollTop=ht,ut.scrollLeft=yt,ut.removeAttribute("data-base-ui-scroll-locked"),ut.style.scrollBehavior=originalHtmlScrollBehavior)}function Qt(){_t(),Et.request(Ot)}Ot();const vt=addEventListener(ft,"resize",Qt);return()=>{Et.cancel(),_t(),typeof ft.removeEventListener=="function"&&vt()}}class ScrollLocker{lockCount=0;restore=null;timeoutLock=Timeout.create();timeoutUnlock=Timeout.create();acquire(ot){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(ot)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(ot){if(this.lockCount===0||this.restore!==null)return;const pt=ownerDocument(ot).documentElement,ft=getWindow$1(pt).getComputedStyle(pt).overflowY;if(ft==="hidden"||ft==="clip"){this.restore=NOOP;return}const ht=isIOS||!hasInsetScrollbars(ot);this.restore=ht?preventScrollOverlayScrollbars(ot):preventScrollInsetScrollbars(ot)}}const SCROLL_LOCKER=new ScrollLocker;function useScrollLock(At=!0,ot=null){useIsoLayoutEffect(()=>{if(At)return SCROLL_LOCKER.acquire(ot)},[At,ot])}const VIEWPORT_WIDTH_TOLERANCE_PX=20;function useAnchoredPopupScrollLock(At,ot,ut,pt){const[ft,ht]=reactExports.useState(!1);useIsoLayoutEffect(()=>{if(!At||!ot||ut==null){ht(!1);return}const yt=ownerDocument(ut).documentElement.clientWidth,kt=ut.offsetWidth;ht(yt>0&&kt>0&&kt>=yt-VIEWPORT_WIDTH_TOLERANCE_PX)},[At,ot,ut]),useScrollLock(At&&(!ot||ft),pt)}const MenuPositioner=reactExports.forwardRef(function(ot,ut){const{anchor:pt,positionMethod:ft="absolute",className:ht,render:yt,side:kt,align:Et,sideOffset:Ot=0,alignOffset:_t=0,collisionBoundary:Qt="clipping-ancestors",collisionPadding:vt=5,arrowPadding:St=5,sticky:$t=!1,disableAnchorTracking:Pt=!1,collisionAvoidance:Nt=DROPDOWN_COLLISION_AVOIDANCE,style:Lt,...qt}=ot,{store:jt}=useMenuRootContext(),Zt=useMenuPortalContext(),Ht=useContextMenuRootContext(!0),Wt=jt.useState("parent"),wn=jt.useState("floatingRootContext"),Qn=jt.useState("floatingTreeRoot"),Jt=jt.useState("mounted"),Gn=jt.useState("open"),Jn=jt.useState("modal"),Vn=jt.useState("openMethod"),Fn=jt.useState("activeTriggerElement"),Xn=jt.useState("transitionStatus"),Ar=jt.useState("positionerElement"),Yn=jt.useState("instantType"),lr=jt.useState("hasViewport"),nr=jt.useState("lastOpenChangeReason"),mr=jt.useState("floatingNodeId"),Zn=jt.useState("floatingParentNodeId"),ur=wn.useState("domReferenceElement"),yr=reactExports.useRef(null),ir=useAnimationsFinished(Ar,!1,!1);let Cr=pt,kr=Ot,Br=_t,Dr=Et,Gr=Nt;Wt.type==="context-menu"&&(Cr=pt??Wt.context?.anchor,Dr=Dr??"start",!kt&&Dr!=="center"&&(Br=ot.alignOffset??2,kr=ot.sideOffset??-5));let jr=kt,na=Dr;Wt.type==="menu"?(jr=jr??"inline-end",na=na??"start",Gr=ot.collisionAvoidance??POPUP_COLLISION_AVOIDANCE):Wt.type==="menubar"&&(jr=jr??"bottom",na=na??"start");const ca=Wt.type==="context-menu",ma=useAnchorPositioning({anchor:Cr,floatingRootContext:wn,positionMethod:Ht?"fixed":ft,mounted:Jt,side:jr,sideOffset:kr,align:na,alignOffset:Br,arrowPadding:ca?0:St,collisionBoundary:Qt,collisionPadding:vt,sticky:$t,nodeId:mr,keepMounted:Zt,disableAnchorTracking:Pt,collisionAvoidance:Gr,shiftCrossAxis:ca&&!("side"in Gr&&Gr.side==="flip"),externalTree:Qn,adaptiveOrigin:lr?adaptiveOrigin:void 0});reactExports.useEffect(()=>{function Za($a){$a.open&&($a.parentNodeId===mr&&jt.set("hoverEnabled",!1),$a.nodeId!==mr&&$a.parentNodeId===jt.select("floatingParentNodeId")&&jt.setOpen(!1,createChangeEventDetails(siblingOpen)))}return Qn.events.on("menuopenchange",Za),()=>{Qn.events.off("menuopenchange",Za)}},[jt,Qn.events,mr]),reactExports.useEffect(()=>{if(jt.select("floatingParentNodeId")==null)return;function Za($a){if($a.open||$a.nodeId!==jt.select("floatingParentNodeId"))return;const Ya=$a.reason??siblingOpen;jt.setOpen(!1,createChangeEventDetails(Ya))}return Qn.events.on("menuopenchange",Za),()=>{Qn.events.off("menuopenchange",Za)}},[Qn.events,jt]);const pa=useTimeout();reactExports.useEffect(()=>{Gn||pa.clear()},[Gn,pa]),reactExports.useEffect(()=>{function Za($a){if(!(!Gn||$a.nodeId!==jt.select("floatingParentNodeId")))if($a.target&&Fn&&Fn!==$a.target){const Ya=jt.select("closeDelay");Ya>0?pa.isStarted()||pa.start(Ya,()=>{jt.setOpen(!1,createChangeEventDetails(siblingOpen))}):jt.setOpen(!1,createChangeEventDetails(siblingOpen))}else pa.clear()}return Qn.events.on("itemhover",Za),()=>{Qn.events.off("itemhover",Za)}},[Qn.events,Gn,Fn,jt,pa]),reactExports.useEffect(()=>{const Za={open:Gn,nodeId:mr,parentNodeId:Zn,reason:jt.select("lastOpenChangeReason")};Qn.events.emit("menuopenchange",Za)},[Qn.events,Gn,jt,mr,Zn]),useIsoLayoutEffect(()=>{const Za=ur,$a=yr.current;if(Za&&(yr.current=Za),$a&&Za&&Za!==$a){jt.set("instantType",void 0);const Ya=new AbortController;return ir(()=>{jt.set("instantType","trigger-change")},Ya.signal),()=>{Ya.abort()}}},[ur,ir,jt]);const ba={open:Gn,side:ma.side,align:ma.align,anchorHidden:ma.anchorHidden,nested:Wt.type==="menu",instant:Yn},ti=Wt.type==="menubar"&&Wt.context.modal;useAnchoredPopupScrollLock(Gn&&(ti||Jn&&nr!==triggerHover),Vn==="touch",Ar,Fn);const Xa=usePositioner(ot,ba,{styles:ma.positionerStyles,transitionStatus:Xn,props:qt,refs:[ut,jt.useStateSetter("positionerElement")],hidden:!Jt,inert:!Gn}),Ni=Jt&&Wt.type!=="menu"&&(Wt.type!=="menubar"&&Jn&&nr!==triggerHover||Wt.type==="menubar"&&Wt.context.modal);let ii=null;return Wt.type==="menubar"?ii=Wt.context.contentElement:Wt.type===void 0&&(ii=Fn),jsxRuntimeExports.jsxs(MenuPositionerContext.Provider,{value:ma,children:[Ni&&jsxRuntimeExports.jsx(InternalBackdrop,{ref:Wt.type==="context-menu"||Wt.type==="nested-context-menu"?Wt.context.internalBackdropRef:null,inert:inertValue(!Gn),cutout:ii}),jsxRuntimeExports.jsx(FloatingNode,{id:mr,children:jsxRuntimeExports.jsx(CompositeList,{elementsRef:jt.context.itemDomElements,labelsRef:jt.context.itemLabels,children:Xa})})]})}),MenuRadioGroupContext=reactExports.createContext(void 0);function useMenuRadioGroupContext(){const At=reactExports.useContext(MenuRadioGroupContext);if(At===void 0)throw new Error(formatErrorMessage(34));return At}const MenuRadioGroup=reactExports.memo(reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,value:ht,defaultValue:yt,onValueChange:kt,disabled:Et=!1,style:Ot,..._t}=ot,[Qt,vt]=useControlled({controlled:ht,default:yt,name:"MenuRadioGroup"}),St=useStableCallback$1(kt),$t=useStableCallback$1((qt,jt)=>{St?.(qt,jt),!jt.isCanceled&&vt(qt)}),Nt=useRenderElement("div",ot,{state:{disabled:Et},ref:ut,props:{role:"group","aria-disabled":Et||void 0,..._t}}),Lt=reactExports.useMemo(()=>({value:Qt,setValue:$t,disabled:Et}),[Qt,$t,Et]);return jsxRuntimeExports.jsx(MenuRadioGroupContext.Provider,{value:Lt,children:Nt})})),MenuRadioItemContext=reactExports.createContext(void 0);function useMenuRadioItemContext(){const At=reactExports.useContext(MenuRadioItemContext);if(At===void 0)throw new Error(formatErrorMessage(35));return At}const MenuRadioItem=reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,id:ht,label:yt,nativeButton:kt=!1,disabled:Et=!1,closeOnClick:Ot=!1,value:_t,style:Qt,...vt}=ot,St=useCompositeListItem({label:yt}),$t=useMenuPositionerContext(!0),Pt=useBaseUiId(ht),{store:Nt}=useMenuRootContext(),Lt=Nt.useState("isActive",St.index),qt=Nt.useState("itemProps"),{value:jt,setValue:Zt,disabled:Ht}=useMenuRadioGroupContext(),Wt=Ht||Et,wn=jt===_t,{getItemProps:Qn,itemRef:Jt}=useMenuItem({closeOnClick:Ot,disabled:Wt,highlighted:Lt,id:Pt,store:Nt,nativeButton:kt,nodeId:$t?.context.nodeId,itemMetadata:REGULAR_ITEM}),Gn=reactExports.useMemo(()=>({disabled:Wt,highlighted:Lt,checked:wn}),[Wt,Lt,wn]),Jn=useStableCallback$1(Fn=>{const Xn={...createChangeEventDetails(itemPress,Fn.nativeEvent),preventUnmountOnClose:()=>{}};Zt(_t,Xn)}),Vn=useRenderElement("div",ot,{state:Gn,stateAttributesMapping:itemMapping,props:[qt,{role:"menuitemradio","aria-checked":wn,onClick:Jn},vt,Qn],ref:[Jt,ut,St.ref]});return jsxRuntimeExports.jsx(MenuRadioItemContext.Provider,{value:Gn,children:Vn})}),MenuRadioItemIndicator=reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,style:ht,keepMounted:yt=!1,...kt}=ot,Et=useMenuRadioItemContext(),Ot=reactExports.useRef(null),{transitionStatus:_t,setMounted:Qt}=useTransitionStatus(Et.checked);useOpenChangeComplete({open:Et.checked,ref:Ot,onComplete(){Et.checked||Qt(!1)}});const vt={checked:Et.checked,disabled:Et.disabled,highlighted:Et.highlighted,transitionStatus:_t};return useRenderElement("span",ot,{state:vt,stateAttributesMapping:itemMapping,ref:[ut,Ot],props:{"aria-hidden":!0,...kt},enabled:yt||Et.checked})}),MenubarContext=reactExports.createContext(null);function useMenubarContext(At){return reactExports.useContext(MenubarContext)}function useEnhancedClickHandler(At){const ot=reactExports.useRef(""),ut=reactExports.useCallback(ft=>{ft.defaultPrevented||(ot.current=ft.pointerType,At(ft,ft.pointerType))},[At]);return{onClick:reactExports.useCallback(ft=>{if(ft.detail===0){At(ft,"keyboard");return}"pointerType"in ft?At(ft,ft.pointerType):At(ft,ot.current),ot.current=""},[At]),onPointerDown:ut}}function useValueChanged(At,ot){const ut=reactExports.useRef(At),pt=useStableCallback$1(ot);useIsoLayoutEffect(()=>{ut.current!==At&&pt(ut.current)},[At,pt]),useIsoLayoutEffect(()=>{ut.current=At},[At])}function useOpenInteractionType(At){const[ot,ut]=reactExports.useState(null),pt=useStableCallback$1((yt,kt)=>{At||ut(kt||(isIOS?"touch":""))});useValueChanged(At,yt=>{yt&&!At&&ut(null)});const{onClick:ft,onPointerDown:ht}=useEnhancedClickHandler(pt);return reactExports.useMemo(()=>({openMethod:ot,triggerProps:{onClick:ft,onPointerDown:ht}}),[ot,ft,ht])}const selectors$3={...popupStoreSelectors,disabled:createSelector(At=>At.parent.type==="menubar"&&At.parent.context.disabled||At.disabled),modal:createSelector(At=>(At.parent.type===void 0||At.parent.type==="context-menu")&&(At.modal??!0)),openMethod:createSelector(At=>At.openMethod),allowMouseEnter:createSelector(At=>At.allowMouseEnter),stickIfOpen:createSelector(At=>At.stickIfOpen),parent:createSelector(At=>At.parent),rootId:createSelector(At=>At.parent.type==="menu"?At.parent.store.select("rootId"):At.parent.type!==void 0?At.parent.context.rootId:At.rootId),activeIndex:createSelector(At=>At.activeIndex),isActive:createSelector((At,ot)=>At.activeIndex===ot),hoverEnabled:createSelector(At=>At.hoverEnabled),instantType:createSelector(At=>At.instantType),lastOpenChangeReason:createSelector(At=>At.openChangeReason),floatingTreeRoot:createSelector(At=>At.parent.type==="menu"?At.parent.store.select("floatingTreeRoot"):At.floatingTreeRoot),floatingNodeId:createSelector(At=>At.floatingNodeId),floatingParentNodeId:createSelector(At=>At.floatingParentNodeId),itemProps:createSelector(At=>At.itemProps),closeDelay:createSelector(At=>At.closeDelay),hasViewport:createSelector(At=>At.hasViewport),keyboardEventRelay:createSelector(At=>{if(At.keyboardEventRelay)return At.keyboardEventRelay;if(At.parent.type==="menu")return At.parent.store.select("keyboardEventRelay")})};class MenuStore extends ReactStore{constructor(ot){super({...createInitialState$2(),...ot},{positionerRef:reactExports.createRef(),popupRef:reactExports.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:reactExports.createRef(),beforeContentFocusGuardRef:reactExports.createRef(),onOpenChangeComplete:void 0,triggerElements:new PopupTriggerMap},selectors$3),this.unsubscribeParentListener=this.observe("parent",ut=>{if(this.unsubscribeParentListener?.(),ut.type==="menu"){let pt=ut.store.select("rootId"),ft=ut.store.select("floatingTreeRoot"),ht=ut.store.select("keyboardEventRelay");this.unsubscribeParentListener=ut.store.subscribe(()=>{const yt=ut.store.select("rootId"),kt=ut.store.select("floatingTreeRoot"),Et=ut.store.select("keyboardEventRelay");pt===yt&&ft===kt&&ht===Et||(pt=yt,ft=kt,ht=Et,this.notifyAll())}),this.context.allowMouseUpTriggerRef=ut.store.context.allowMouseUpTriggerRef;return}ut.type!==void 0&&(this.context.allowMouseUpTriggerRef=ut.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(ot,ut){this.state.floatingRootContext.context.events.emit("setOpen",{open:ot,eventDetails:ut})}static useStore(ot,ut){const pt=useRefWithInit(()=>new MenuStore(ut)).current;return ot??pt}unsubscribeParentListener=null}function createInitialState$2(){return{...createInitialPopupStoreState(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new FloatingTreeStore,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:EMPTY_OBJECT,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}const MenuSubmenuRootContext=reactExports.createContext(void 0);function useMenuSubmenuRootContext(){return reactExports.useContext(MenuSubmenuRootContext)}const MenuRoot=fastComponent(function(ot){const{children:ut,open:pt,onOpenChange:ft,onOpenChangeComplete:ht,defaultOpen:yt=!1,disabled:kt=!1,modal:Et,loopFocus:Ot=!0,orientation:_t="vertical",actionsRef:Qt,closeParentOnEsc:vt=!1,handle:St,triggerId:$t,defaultTriggerId:Pt=null,highlightItemOnHover:Nt=!0}=ot,Lt=useContextMenuRootContext(!0),qt=useMenuRootContext(!0),jt=useMenubarContext(!0),Zt=useMenuSubmenuRootContext(),Ht=reactExports.useMemo(()=>Zt&&qt?{type:"menu",store:qt.store}:jt?{type:"menubar",context:jt}:Lt&&!qt?{type:"context-menu",context:Lt}:{type:void 0},[Lt,qt,jt,Zt]),Wt=MenuStore.useStore(St?.store,{open:yt,openProp:pt,activeTriggerId:Pt,triggerIdProp:$t,parent:Ht});useOnFirstRender(()=>{pt===void 0&&Wt.state.open===!1&&yt===!0&&Wt.update({open:!0,activeTriggerId:Pt})}),Wt.useControlledProp("openProp",pt),Wt.useControlledProp("triggerIdProp",$t),Wt.useContextCallback("onOpenChangeComplete",ht);const wn=Wt.useState("floatingTreeRoot"),Qn=useFloatingNodeId(wn),Jt=useFloatingParentNodeId();useIsoLayoutEffect(()=>{Lt&&!qt?Wt.update({parent:{type:"context-menu",context:Lt},floatingNodeId:Qn,floatingParentNodeId:Jt}):qt&&Wt.update({floatingNodeId:Qn,floatingParentNodeId:Jt})},[Lt,qt,Qn,Jt,Wt]);const Gn=Wt.useState("open"),Jn=Wt.useState("activeTriggerElement"),Vn=Wt.useState("positionerElement"),Fn=Wt.useState("hoverEnabled"),Xn=Wt.useState("disabled"),Ar=Wt.useState("lastOpenChangeReason"),Yn=Wt.useState("parent"),lr=Wt.useState("activeIndex"),nr=Wt.useState("payload"),mr=Wt.useState("floatingParentNodeId"),Zn=reactExports.useRef(null),ur=mr!=null,{openMethod:yr,triggerProps:ir}=useOpenInteractionType(Gn);Wt.useSyncedValues({disabled:kt,modal:Yn.type===void 0?Et:void 0,openMethod:yr,rootId:useId$1()}),useImplicitActiveTrigger(Wt);const{forceUnmount:Cr}=useOpenStateTransitions(Gn,Wt,()=>{Wt.update({allowMouseEnter:!1,stickIfOpen:!0})}),kr=reactExports.useRef(Yn.type!=="context-menu"),Br=useTimeout();reactExports.useEffect(()=>{if(Gn||(Zn.current=null),Yn.type==="context-menu"){if(!Gn){Br.clear(),kr.current=!1;return}Br.start(500,()=>{kr.current=!0})}},[Br,Gn,Yn.type]),useIsoLayoutEffect(()=>{!Gn&&!Fn&&Wt.set("hoverEnabled",!0)},[Gn,Fn,Wt]);const Dr=reactExports.useRef(!0),Gr=useTimeout(),jr=useStableCallback$1((ao,Jo)=>{const Ji=Jo.reason;if(Gn===ao&&Jo.trigger===Jn&&Ar===Ji||(Jo.preventUnmountOnClose=()=>{Wt.set("preventUnmountingOnClose",!0)},!ao&&Jo.trigger==null&&(Jo.trigger=Jn??void 0),ft?.(ao,Jo),Jo.isCanceled))return;Wt.state.floatingRootContext.dispatchOpenChange(ao,Jo);const Ms=Jo.event;if(ao===!1&&Ms?.type==="click"&&Ms.pointerType==="touch"&&!Dr.current)return;if(!ao&&lr!==null){const ks=Wt.context.itemDomElements.current[lr];queueMicrotask(()=>{ks?.setAttribute("tabindex","-1")})}ao&&Ji===triggerFocus?(Dr.current=!1,Gr.start(300,()=>{Dr.current=!0})):(Dr.current=!0,Gr.clear());const Vs=(Ji===triggerPress||Ji===itemPress)&&Ms.detail===0&&Ms?.isTrusted,ZA=!ao&&(Ji===escapeKey||Ji==null),Xo={open:ao,openChangeReason:Ji};Zn.current=Jo.event??null;const ho=Jo.trigger?.id??null;(ho||ao)&&(Xo.activeTriggerId=ho,Xo.activeTriggerElement=Jo.trigger??null),Wt.update(Xo),Yn.type==="menubar"&&(Ji===triggerFocus||Ji===focusOut||Ji===triggerHover||Ji===listNavigation||Ji===siblingOpen)?Wt.set("instantType","group"):Vs||ZA?Wt.set("instantType",Vs?"click":"dismiss"):Wt.set("instantType",void 0)}),na=reactExports.useCallback(ao=>{const Jo=createChangeEventDetails(ao);return Jo.preventUnmountOnClose=()=>{Wt.set("preventUnmountingOnClose",!0)},Jo},[Wt]),ca=reactExports.useCallback(()=>{Wt.setOpen(!1,na(imperativeAction))},[Wt,na]);reactExports.useImperativeHandle(Qt,()=>({unmount:Cr,close:ca}),[Cr,ca]);let ma;Yn.type==="context-menu"&&(ma=Yn.context),reactExports.useImperativeHandle(ma?.positionerRef,()=>Vn,[Vn]),reactExports.useImperativeHandle(ma?.actionsRef,()=>({setOpen:jr}),[jr]);const pa=useSyncedFloatingRootContext({popupStore:Wt,onOpenChange:jr}),ba=pa.context.events;reactExports.useEffect(()=>{const ao=({open:Jo,eventDetails:Ji})=>jr(Jo,Ji);return ba.on("setOpen",ao),()=>{ba?.off("setOpen",ao)}},[ba,jr]);const ti=useDismiss(pa,{enabled:!Xn,bubbles:{escapeKey:vt&&Yn.type==="menu"},outsidePress(){return Yn.type!=="context-menu"||Zn.current?.type==="contextmenu"?!0:kr.current},externalTree:ur?wn:void 0}),ya=useRole(pa,{role:"menu"}),Xa=useDirection(),Ni=reactExports.useCallback(ao=>{Wt.select("activeIndex")!==ao&&Wt.set("activeIndex",ao)},[Wt]),ii=useListNavigation(pa,{enabled:!Xn,listRef:Wt.context.itemDomElements,activeIndex:lr,nested:Yn.type!==void 0,loopFocus:Ot,orientation:_t,parentOrientation:Yn.type==="menubar"?Yn.context.orientation:void 0,rtl:Xa==="rtl",disabledIndices:EMPTY_ARRAY,onNavigate:Ni,openOnArrowKeyDown:Yn.type!=="context-menu",externalTree:ur?wn:void 0,focusItemOnHover:Nt}),Za=reactExports.useCallback(ao=>{Wt.context.typingRef.current=ao},[Wt]),$a=useTypeahead(pa,{listRef:Wt.context.itemLabels,elementsRef:Wt.context.itemDomElements,activeIndex:lr,resetMs:TYPEAHEAD_RESET_MS,onMatch:ao=>{Gn&&ao!==lr&&Wt.set("activeIndex",ao)},onTypingChange:Za}),{getReferenceProps:Ya,getFloatingProps:Ta,getItemProps:qa,getTriggerProps:ki}=useInteractions([ti,ya,ii,$a]),La=reactExports.useMemo(()=>{const ao=mergeProps$3(Ya(),{onMouseMove(){Wt.set("allowMouseEnter",!0)}},ir);return delete ao.role,ao},[Ya,Wt,ir]),Ja=reactExports.useMemo(()=>{const ao=ki();if(!ao)return ao;const Jo=mergeProps$3(ao,ir);return delete Jo.role,delete Jo["aria-controls"],Jo},[ki,ir]),qi=reactExports.useMemo(()=>Ta({onMouseMove(){Wt.set("allowMouseEnter",!0),Yn.type==="menu"&&Wt.set("hoverEnabled",!1)},onClick(){Wt.select("hoverEnabled")&&Wt.set("hoverEnabled",!1)},onKeyDown(ao){const Jo=Wt.select("keyboardEventRelay");Jo&&!ao.isPropagationStopped()&&Jo(ao)}}),[Ta,Yn.type,Wt]),co=reactExports.useMemo(()=>qa(),[qa]);Wt.useSyncedValues({floatingRootContext:pa,activeTriggerProps:La,inactiveTriggerProps:Ja,popupProps:qi,itemProps:co});const ns=reactExports.useMemo(()=>({store:Wt,parent:Ht}),[Wt,Ht]),Qo=jsxRuntimeExports.jsx(MenuRootContext.Provider,{value:ns,children:typeof ut=="function"?ut({payload:nr}):ut});return Yn.type===void 0||Yn.type==="context-menu"?jsxRuntimeExports.jsx(FloatingTree,{externalTree:wn,children:Qo}):Qo});function MenuSubmenuRoot(At){const ot=useMenuRootContext().store,ut=reactExports.useMemo(()=>({parentMenu:ot}),[ot]);return jsxRuntimeExports.jsx(MenuSubmenuRootContext.Provider,{value:ut,children:jsxRuntimeExports.jsx(MenuRoot,{...At})})}function getPseudoElementBounds(At){const ot=At.getBoundingClientRect(),ut=getWindow$1(At),pt=ut.getComputedStyle(At,"::before"),ft=ut.getComputedStyle(At,"::after");if(!(pt.content!=="none"||ft.content!=="none"))return ot;const yt=parseFloat(pt.width)||0,kt=parseFloat(pt.height)||0,Et=parseFloat(ft.width)||0,Ot=parseFloat(ft.height)||0,_t=Math.max(ot.width,yt,Et),Qt=Math.max(ot.height,kt,Ot),vt=_t-ot.width,St=Qt-ot.height;return{left:ot.left-vt/2,right:ot.right+vt/2,top:ot.top-St/2,bottom:ot.bottom+St/2}}function useCompositeItem(At={}){const{highlightItemOnHover:ot,highlightedIndex:ut,onHighlightedIndexChange:pt}=useCompositeRootContext(),{ref:ft,index:ht}=useCompositeListItem(At),yt=ut===ht,kt=reactExports.useRef(null),Et=useMergedRefs(ft,kt);return{compositeProps:reactExports.useMemo(()=>({tabIndex:yt?0:-1,onFocus(){pt(ht)},onMouseMove(){const _t=kt.current;if(!ot||!_t)return;const Qt=_t.hasAttribute("disabled")||_t.ariaDisabled==="true";!yt&&!Qt&&_t.focus()}}),[yt,pt,ht,ot]),compositeRef:Et,index:ht}}function CompositeItem(At){const{render:ot,className:ut,style:pt,state:ft=EMPTY_OBJECT,props:ht=EMPTY_ARRAY,refs:yt=EMPTY_ARRAY,metadata:kt,stateAttributesMapping:Et,tag:Ot="div",..._t}=At,{compositeProps:Qt,compositeRef:vt}=useCompositeItem({metadata:kt});return useRenderElement(Ot,At,{state:ft,ref:[...yt,vt],props:[Qt,...ht,_t],stateAttributesMapping:Et})}function findRootOwnerId(At){if(isHTMLElement$1(At)&&At.hasAttribute("data-rootownerid"))return At.getAttribute("data-rootownerid")??void 0;if(!isLastTraversableNode(At))return findRootOwnerId(getParentNode(At))}function useTriggerFocusGuards(At,ot){const ut=reactExports.useRef(null),pt=useStableCallback$1(ht=>{reactDomExports.flushSync(()=>{At.setOpen(!1,createChangeEventDetails(focusOut,ht.nativeEvent,ht.currentTarget))}),getTabbableBeforeElement(ut.current)?.focus()}),ft=useStableCallback$1(ht=>{const yt=At.select("positionerElement");if(yt&&isOutsideEvent(ht,yt))At.context.beforeContentFocusGuardRef.current?.focus();else{reactDomExports.flushSync(()=>{At.setOpen(!1,createChangeEventDetails(focusOut,ht.nativeEvent,ht.currentTarget))});let kt=getTabbableAfterElement(At.context.triggerFocusTargetRef.current||ot.current);for(;kt!==null&&contains$2(yt,kt);){const Et=kt;if(kt=getNextTabbable(kt),kt===Et)break}kt?.focus()}});return{preFocusGuardRef:ut,handlePreFocusGuardFocus:pt,handleFocusTargetFocus:ft}}function useMixedToggleClickHandler(At){const{enabled:ot=!0,mouseDownAction:ut,open:pt}=At,ft=reactExports.useRef(!1);return reactExports.useMemo(()=>ot?{onMouseDown:ht=>{(ut==="open"&&!pt||ut==="close"&&pt)&&(ft.current=!0,ownerDocument(ht.currentTarget).addEventListener("click",()=>{ft.current=!1},{once:!0}))},onClick:ht=>{ft.current&&(ft.current=!1,ht.preventBaseUIHandler())}}:EMPTY_OBJECT,[ot,ut,pt])}const BOUNDARY_OFFSET$1=2,MenuTrigger=fastComponentRef(function(ot,ut){const{render:pt,className:ft,disabled:ht=!1,nativeButton:yt=!0,id:kt,openOnHover:Et,delay:Ot=100,closeDelay:_t=0,handle:Qt,payload:vt,style:St,...$t}=ot,Pt=useMenuRootContext(!0),Nt=Qt?.store??Pt?.store;if(!Nt)throw new Error(formatErrorMessage(85));const Lt=useBaseUiId(kt),qt=Nt.useState("isTriggerActive",Lt),jt=Nt.useState("floatingRootContext"),Zt=Nt.useState("isOpenedByTrigger",Lt),Ht=reactExports.useRef(null),Wt=useMenuParent(),wn=useCompositeRootContext(!0),Qn=useFloatingTree(),Jt=reactExports.useMemo(()=>Qn??new FloatingTreeStore,[Qn]),Gn=useFloatingNodeId(Jt),Jn=useFloatingParentNodeId(),{registerTrigger:Vn,isMountedByThisTrigger:Fn}=useTriggerDataForwarding(Lt,Ht,Nt,{payload:vt,closeDelay:_t,parent:Wt,floatingTreeRoot:Jt,floatingNodeId:Gn,floatingParentNodeId:Jn,keyboardEventRelay:wn?.relayKeyboardEvent}),Xn=Wt.type==="menubar",Ar=Nt.useState("disabled"),Yn=ht||Ar||Xn&&Wt.context.disabled,{getButtonProps:lr,buttonRef:nr}=useButton({disabled:Yn,native:yt});reactExports.useEffect(()=>{!Zt&&Wt.type===void 0&&(Nt.context.allowMouseUpTriggerRef.current=!1)},[Nt,Zt,Wt.type]);const mr=reactExports.useRef(null),Zn=useTimeout(),ur=useStableCallback$1(Ni=>{if(!mr.current)return;Zn.clear(),Nt.context.allowMouseUpTriggerRef.current=!1;const ii=Ni.target;if(contains$2(mr.current,ii)||contains$2(Nt.select("positionerElement"),ii)||ii===mr.current||ii!=null&&findRootOwnerId(ii)===Nt.select("rootId"))return;const Za=getPseudoElementBounds(mr.current);Ni.clientX>=Za.left-BOUNDARY_OFFSET$1&&Ni.clientX<=Za.right+BOUNDARY_OFFSET$1&&Ni.clientY>=Za.top-BOUNDARY_OFFSET$1&&Ni.clientY<=Za.bottom+BOUNDARY_OFFSET$1||Jt.events.emit("close",{domEvent:Ni,reason:cancelOpen})});reactExports.useEffect(()=>{Zt&&Nt.select("lastOpenChangeReason")===triggerHover&&ownerDocument(mr.current).addEventListener("mouseup",ur,{once:!0})},[Zt,ur,Nt]);const yr=Xn&&Wt.context.hasSubmenuOpen,Cr=useHoverReferenceInteraction(jt,{enabled:(Et??yr)&&!Yn&&Wt.type!=="context-menu"&&(!Xn||yr&&!Fn),handleClose:safePolygon({blockPointerEvents:!Xn}),mouseOnly:!0,move:!1,restMs:Wt.type===void 0?Ot:void 0,delay:{close:_t},triggerElementRef:Ht,externalTree:Jt,isActiveTrigger:qt,isClosing:()=>Nt.select("transitionStatus")==="ending"}),kr=useStickIfOpen(Zt,Nt.select("lastOpenChangeReason")),Br=useClick(jt,{enabled:!Yn&&Wt.type!=="context-menu",event:Zt&&Xn?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:Wt.type===void 0?kr:!1}),Dr=useFocus(jt,{enabled:!Yn&&yr}),Gr=useMixedToggleClickHandler({open:Zt,enabled:Xn,mouseDownAction:"open"}),jr=useInteractions([Br,Dr]),na={disabled:Yn,open:Zt},ca=Nt.useState("triggerProps",Fn),ma=[mr,ut,nr,Vn,Ht],pa=[jr.getReferenceProps(),Cr??EMPTY_OBJECT,ca,{"aria-haspopup":"menu",id:Lt,onMouseDown:Ni=>{if(Nt.select("open"))return;Zn.start(200,()=>{Nt.context.allowMouseUpTriggerRef.current=!0}),ownerDocument(Ni.currentTarget).addEventListener("mouseup",ur,{once:!0})}},Xn?{role:"menuitem"}:{},Gr,$t,lr],{preFocusGuardRef:ba,handlePreFocusGuardFocus:ti,handleFocusTargetFocus:ya}=useTriggerFocusGuards(Nt,Ht),Xa=useRenderElement("button",ot,{enabled:!Xn,stateAttributesMapping:pressableTriggerOpenStateMapping,state:na,ref:ma,props:pa});return Xn?jsxRuntimeExports.jsx(CompositeItem,{tag:"button",render:pt,className:ft,style:St,state:na,refs:ma,props:pa,stateAttributesMapping:pressableTriggerOpenStateMapping}):Zt?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(FocusGuard,{ref:ba,onFocus:ti},`${Lt}-pre-focus-guard`),jsxRuntimeExports.jsx(reactExports.Fragment,{children:Xa},Lt),jsxRuntimeExports.jsx(FocusGuard,{ref:Nt.context.triggerFocusTargetRef,onFocus:ya},`${Lt}-post-focus-guard`)]}):jsxRuntimeExports.jsx(reactExports.Fragment,{children:Xa},Lt)});function useStickIfOpen(At,ot){const ut=useTimeout(),[pt,ft]=reactExports.useState(!1);return useIsoLayoutEffect(()=>{At&&ot==="trigger-hover"?(ft(!0),ut.start(PATIENT_CLICK_THRESHOLD,()=>{ft(!1)})):At||(ut.clear(),ft(!1))},[At,ot,ut]),pt}function useMenuParent(){const At=useContextMenuRootContext(!0),ot=useMenuRootContext(!0),ut=useMenubarContext();return reactExports.useMemo(()=>ut?{type:"menubar",context:ut}:At&&!ot?{type:"context-menu",context:At}:{type:void 0},[At,ot,ut])}const Separator=reactExports.forwardRef(function(ot,ut){const{className:pt,render:ft,orientation:ht="horizontal",style:yt,...kt}=ot;return useRenderElement("div",ot,{state:{orientation:ht},ref:ut,props:[{role:"separator","aria-orientation":ht},kt]})}),MenuSubmenuTrigger=reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,label:ht,id:yt,nativeButton:kt=!1,openOnHover:Et=!0,delay:Ot=100,closeDelay:_t=0,disabled:Qt=!1,style:vt,...St}=ot,$t=useCompositeListItem(),Pt=useMenuPositionerContext(),{store:Nt}=useMenuRootContext(),Lt=useBaseUiId(yt),qt=Nt.useState("open"),jt=Nt.useState("floatingRootContext"),Zt=Nt.useState("floatingTreeRoot"),Ht=useTriggerRegistration(Lt,Nt),Wt=reactExports.useCallback(Br=>{const Dr=Ht(Br);return Br!==null&&Nt.select("open")&&Nt.select("activeTriggerId")==null&&Nt.update({activeTriggerId:Lt,activeTriggerElement:Br,closeDelay:_t}),Dr},[Ht,_t,Nt,Lt]),wn=reactExports.useRef(null),Qn=reactExports.useCallback(Br=>{wn.current=Br,Nt.set("activeTriggerElement",Br)},[Nt]),Jt=useMenuSubmenuRootContext();if(!Jt?.parentMenu)throw new Error(formatErrorMessage(37));Nt.useSyncedValue("closeDelay",_t);const Gn=Jt.parentMenu,Jn=Gn.useState("itemProps"),Vn=Gn.useState("isActive",$t.index),Fn=reactExports.useMemo(()=>({type:"submenu-trigger",setActive(){Gn.set("activeIndex",$t.index)}}),[Gn,$t.index]),Xn=Nt.useState("disabled"),Ar=Qt||Xn,{getItemProps:Yn,itemRef:lr}=useMenuItem({closeOnClick:!1,disabled:Ar,highlighted:Vn,id:Lt,store:Nt,typingRef:Gn.context.typingRef,nativeButton:kt,itemMetadata:Fn,nodeId:Pt?.context.nodeId}),nr=Nt.useState("hoverEnabled"),mr=Gn.useState("allowMouseEnter"),Zn=useHoverReferenceInteraction(jt,{enabled:nr&&Et&&!Ar,handleClose:safePolygon({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:Ot,delay:mr?{open:Ot,close:_t}:0,triggerElementRef:wn,externalTree:Zt,isClosing:()=>Nt.select("transitionStatus")==="ending"}),ur=useClick(jt,{enabled:!Ar,event:"mousedown",toggle:!Et,ignoreMouse:Et,stickIfOpen:!1}),yr=useInteractions([ur]),ir=Nt.useState("triggerProps",!0);return delete ir.id,useRenderElement("div",ot,{state:{disabled:Ar,highlighted:Vn,open:qt},stateAttributesMapping:triggerOpenStateMapping$1,props:[yr.getReferenceProps(),Zn,ir,Jn,{tabIndex:qt||Vn?0:-1,onBlur(){Vn&&Gn.set("activeIndex",null)}},St,Yn],ref:[ut,$t.ref,lr,Wt,Qn]})});function useCombinedRefs(){for(var At=arguments.length,ot=new Array(At),ut=0;ut<At;ut++)ot[ut]=arguments[ut];return reactExports.useMemo(()=>pt=>{ot.forEach(ft=>ft(pt))},ot)}const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function isWindow(At){const ot=Object.prototype.toString.call(At);return ot==="[object Window]"||ot==="[object global]"}function isNode(At){return"nodeType"in At}function getWindow(At){var ot,ut;return At?isWindow(At)?At:isNode(At)&&(ot=(ut=At.ownerDocument)==null?void 0:ut.defaultView)!=null?ot:window:window}function isDocument(At){const{Document:ot}=getWindow(At);return At instanceof ot}function isHTMLElement(At){return isWindow(At)?!1:At instanceof getWindow(At).HTMLElement}function isSVGElement$1(At){return At instanceof getWindow(At).SVGElement}function getOwnerDocument(At){return At?isWindow(At)?At.document:isNode(At)?isDocument(At)?At:isHTMLElement(At)||isSVGElement$1(At)?At.ownerDocument:document:document:document}const useIsomorphicLayoutEffect$2=canUseDOM?reactExports.useLayoutEffect:reactExports.useEffect;function useEvent(At){const ot=reactExports.useRef(At);return useIsomorphicLayoutEffect$2(()=>{ot.current=At}),reactExports.useCallback(function(){for(var ut=arguments.length,pt=new Array(ut),ft=0;ft<ut;ft++)pt[ft]=arguments[ft];return ot.current==null?void 0:ot.current(...pt)},[])}function useInterval(){const At=reactExports.useRef(null),ot=reactExports.useCallback((pt,ft)=>{At.current=setInterval(pt,ft)},[]),ut=reactExports.useCallback(()=>{At.current!==null&&(clearInterval(At.current),At.current=null)},[]);return[ot,ut]}function useLatestValue(At,ot){ot===void 0&&(ot=[At]);const ut=reactExports.useRef(At);return useIsomorphicLayoutEffect$2(()=>{ut.current!==At&&(ut.current=At)},ot),ut}function useLazyMemo(At,ot){const ut=reactExports.useRef();return reactExports.useMemo(()=>{const pt=At(ut.current);return ut.current=pt,pt},[...ot])}function useNodeRef(At){const ot=useEvent(At),ut=reactExports.useRef(null),pt=reactExports.useCallback(ft=>{ft!==ut.current&&ot?.(ft,ut.current),ut.current=ft},[]);return[ut,pt]}function usePrevious(At){const ot=reactExports.useRef();return reactExports.useEffect(()=>{ot.current=At},[At]),ot.current}let ids={};function useUniqueId(At,ot){return reactExports.useMemo(()=>{if(ot)return ot;const ut=ids[At]==null?0:ids[At]+1;return ids[At]=ut,At+"-"+ut},[At,ot])}function createAdjustmentFn(At){return function(ot){for(var ut=arguments.length,pt=new Array(ut>1?ut-1:0),ft=1;ft<ut;ft++)pt[ft-1]=arguments[ft];return pt.reduce((ht,yt)=>{const kt=Object.entries(yt);for(const[Et,Ot]of kt){const _t=ht[Et];_t!=null&&(ht[Et]=_t+At*Ot)}return ht},{...ot})}}const add$2=createAdjustmentFn(1),subtract=createAdjustmentFn(-1);function hasViewportRelativeCoordinates(At){return"clientX"in At&&"clientY"in At}function isKeyboardEvent(At){if(!At)return!1;const{KeyboardEvent:ot}=getWindow(At.target);return ot&&At instanceof ot}function isTouchEvent(At){if(!At)return!1;const{TouchEvent:ot}=getWindow(At.target);return ot&&At instanceof ot}function getEventCoordinates(At){if(isTouchEvent(At)){if(At.touches&&At.touches.length){const{clientX:ot,clientY:ut}=At.touches[0];return{x:ot,y:ut}}else if(At.changedTouches&&At.changedTouches.length){const{clientX:ot,clientY:ut}=At.changedTouches[0];return{x:ot,y:ut}}}return hasViewportRelativeCoordinates(At)?{x:At.clientX,y:At.clientY}:null}const CSS$1=Object.freeze({Translate:{toString(At){if(!At)return;const{x:ot,y:ut}=At;return"translate3d("+(ot?Math.round(ot):0)+"px, "+(ut?Math.round(ut):0)+"px, 0)"}},Scale:{toString(At){if(!At)return;const{scaleX:ot,scaleY:ut}=At;return"scaleX("+ot+") scaleY("+ut+")"}},Transform:{toString(At){if(At)return[CSS$1.Translate.toString(At),CSS$1.Scale.toString(At)].join(" ")}},Transition:{toString(At){let{property:ot,duration:ut,easing:pt}=At;return ot+" "+ut+"ms "+pt}}}),SELECTOR="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function findFirstFocusableNode(At){return At.matches(SELECTOR)?At:At.querySelector(SELECTOR)}const hiddenStyles={display:"none"};function HiddenText(At){let{id:ot,value:ut}=At;return React.createElement("div",{id:ot,style:hiddenStyles},ut)}function LiveRegion(At){let{id:ot,announcement:ut,ariaLiveType:pt="assertive"}=At;const ft={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return React.createElement("div",{id:ot,style:ft,role:"status","aria-live":pt,"aria-atomic":!0},ut)}function useAnnouncement(){const[At,ot]=reactExports.useState("");return{announce:reactExports.useCallback(pt=>{pt!=null&&ot(pt)},[]),announcement:At}}const DndMonitorContext=reactExports.createContext(null);function useDndMonitor(At){const ot=reactExports.useContext(DndMonitorContext);reactExports.useEffect(()=>{if(!ot)throw new Error("useDndMonitor must be used within a children of <DndContext>");return ot(At)},[At,ot])}function useDndMonitorProvider(){const[At]=reactExports.useState(()=>new Set),ot=reactExports.useCallback(pt=>(At.add(pt),()=>At.delete(pt)),[At]);return[reactExports.useCallback(pt=>{let{type:ft,event:ht}=pt;At.forEach(yt=>{var kt;return(kt=yt[ft])==null?void 0:kt.call(yt,ht)})},[At]),ot]}const defaultScreenReaderInstructions={draggable:`
|
|
10
|
+
`).replace(qX,"")}function jL(Rt,Mt){return Mt=qL(Mt),qL(Rt)===Mt}function ed(Rt,Mt,Ut,Kt,jn,er){switch(Ut){case"children":typeof Kt=="string"?Mt==="body"||Mt==="textarea"&&Kt===""||O1(Rt,Kt):(typeof Kt=="number"||typeof Kt=="bigint")&&Mt!=="body"&&O1(Rt,""+Kt);break;case"className":jf(Rt,"class",Kt);break;case"tabIndex":jf(Rt,"tabindex",Kt);break;case"dir":case"role":case"viewBox":case"width":case"height":jf(Rt,Ut,Kt);break;case"style":qc(Rt,Kt,er);break;case"data":if(Mt!=="object"){jf(Rt,"data",Kt);break}case"src":case"href":if(Kt===""&&(Mt!=="a"||Ut!=="href")){Rt.removeAttribute(Ut);break}if(Kt==null||typeof Kt=="function"||typeof Kt=="symbol"||typeof Kt=="boolean"){Rt.removeAttribute(Ut);break}Kt=xB(""+Kt),Rt.setAttribute(Ut,Kt);break;case"action":case"formAction":if(typeof Kt=="function"){Rt.setAttribute(Ut,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof er=="function"&&(Ut==="formAction"?(Mt!=="input"&&ed(Rt,Mt,"name",jn.name,jn,null),ed(Rt,Mt,"formEncType",jn.formEncType,jn,null),ed(Rt,Mt,"formMethod",jn.formMethod,jn,null),ed(Rt,Mt,"formTarget",jn.formTarget,jn,null)):(ed(Rt,Mt,"encType",jn.encType,jn,null),ed(Rt,Mt,"method",jn.method,jn,null),ed(Rt,Mt,"target",jn.target,jn,null)));if(Kt==null||typeof Kt=="symbol"||typeof Kt=="boolean"){Rt.removeAttribute(Ut);break}Kt=xB(""+Kt),Rt.setAttribute(Ut,Kt);break;case"onClick":Kt!=null&&(Rt.onclick=W0);break;case"onScroll":Kt!=null&&Bl("scroll",Rt);break;case"onScrollEnd":Kt!=null&&Bl("scrollend",Rt);break;case"dangerouslySetInnerHTML":if(Kt!=null){if(typeof Kt!="object"||!("__html"in Kt))throw Error(pt(61));if(Ut=Kt.__html,Ut!=null){if(jn.children!=null)throw Error(pt(60));Rt.innerHTML=Ut}}break;case"multiple":Rt.multiple=Kt&&typeof Kt!="function"&&typeof Kt!="symbol";break;case"muted":Rt.muted=Kt&&typeof Kt!="function"&&typeof Kt!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Kt==null||typeof Kt=="function"||typeof Kt=="boolean"||typeof Kt=="symbol"){Rt.removeAttribute("xlink:href");break}Ut=xB(""+Kt),Rt.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",Ut);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Kt!=null&&typeof Kt!="function"&&typeof Kt!="symbol"?Rt.setAttribute(Ut,""+Kt):Rt.removeAttribute(Ut);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Kt&&typeof Kt!="function"&&typeof Kt!="symbol"?Rt.setAttribute(Ut,""):Rt.removeAttribute(Ut);break;case"capture":case"download":Kt===!0?Rt.setAttribute(Ut,""):Kt!==!1&&Kt!=null&&typeof Kt!="function"&&typeof Kt!="symbol"?Rt.setAttribute(Ut,Kt):Rt.removeAttribute(Ut);break;case"cols":case"rows":case"size":case"span":Kt!=null&&typeof Kt!="function"&&typeof Kt!="symbol"&&!isNaN(Kt)&&1<=Kt?Rt.setAttribute(Ut,Kt):Rt.removeAttribute(Ut);break;case"rowSpan":case"start":Kt==null||typeof Kt=="function"||typeof Kt=="symbol"||isNaN(Kt)?Rt.removeAttribute(Ut):Rt.setAttribute(Ut,Kt);break;case"popover":Bl("beforetoggle",Rt),Bl("toggle",Rt),nu(Rt,"popover",Kt);break;case"xlinkActuate":X0(Rt,"http://www.w3.org/1999/xlink","xlink:actuate",Kt);break;case"xlinkArcrole":X0(Rt,"http://www.w3.org/1999/xlink","xlink:arcrole",Kt);break;case"xlinkRole":X0(Rt,"http://www.w3.org/1999/xlink","xlink:role",Kt);break;case"xlinkShow":X0(Rt,"http://www.w3.org/1999/xlink","xlink:show",Kt);break;case"xlinkTitle":X0(Rt,"http://www.w3.org/1999/xlink","xlink:title",Kt);break;case"xlinkType":X0(Rt,"http://www.w3.org/1999/xlink","xlink:type",Kt);break;case"xmlBase":X0(Rt,"http://www.w3.org/XML/1998/namespace","xml:base",Kt);break;case"xmlLang":X0(Rt,"http://www.w3.org/XML/1998/namespace","xml:lang",Kt);break;case"xmlSpace":X0(Rt,"http://www.w3.org/XML/1998/namespace","xml:space",Kt);break;case"is":nu(Rt,"is",Kt);break;case"innerText":case"textContent":break;default:(!(2<Ut.length)||Ut[0]!=="o"&&Ut[0]!=="O"||Ut[1]!=="n"&&Ut[1]!=="N")&&(Ut=S_.get(Ut)||Ut,nu(Rt,Ut,Kt))}}function k6(Rt,Mt,Ut,Kt,jn,er){switch(Ut){case"style":qc(Rt,Kt,er);break;case"dangerouslySetInnerHTML":if(Kt!=null){if(typeof Kt!="object"||!("__html"in Kt))throw Error(pt(61));if(Ut=Kt.__html,Ut!=null){if(jn.children!=null)throw Error(pt(60));Rt.innerHTML=Ut}}break;case"children":typeof Kt=="string"?O1(Rt,Kt):(typeof Kt=="number"||typeof Kt=="bigint")&&O1(Rt,""+Kt);break;case"onScroll":Kt!=null&&Bl("scroll",Rt);break;case"onScrollEnd":Kt!=null&&Bl("scrollend",Rt);break;case"onClick":Kt!=null&&(Rt.onclick=W0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ia.hasOwnProperty(Ut))e:{if(Ut[0]==="o"&&Ut[1]==="n"&&(jn=Ut.endsWith("Capture"),Mt=Ut.slice(2,jn?Ut.length-7:void 0),er=Rt[Yr]||null,er=er!=null?er[Ut]:null,typeof er=="function"&&Rt.removeEventListener(Mt,er,jn),typeof Kt=="function")){typeof er!="function"&&er!==null&&(Ut in Rt?Rt[Ut]=null:Rt.hasAttribute(Ut)&&Rt.removeAttribute(Ut)),Rt.addEventListener(Mt,Kt,jn);break e}Ut in Rt?Rt[Ut]=Kt:Kt===!0?Rt.setAttribute(Ut,""):nu(Rt,Ut,Kt)}}}function qg(Rt,Mt,Ut){switch(Mt){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Bl("error",Rt),Bl("load",Rt);var Kt=!1,jn=!1,er;for(er in Ut)if(Ut.hasOwnProperty(er)){var xr=Ut[er];if(xr!=null)switch(er){case"src":Kt=!0;break;case"srcSet":jn=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(pt(137,Mt));default:ed(Rt,Mt,er,xr,Ut,null)}}jn&&ed(Rt,Mt,"srcSet",Ut.srcSet,Ut,null),Kt&&ed(Rt,Mt,"src",Ut.src,Ut,null);return;case"input":Bl("invalid",Rt);var Hr=er=xr=jn=null,Ra=null,Ei=null;for(Kt in Ut)if(Ut.hasOwnProperty(Kt)){var no=Ut[Kt];if(no!=null)switch(Kt){case"name":jn=no;break;case"type":xr=no;break;case"checked":Ra=no;break;case"defaultChecked":Ei=no;break;case"value":er=no;break;case"defaultValue":Hr=no;break;case"children":case"dangerouslySetInnerHTML":if(no!=null)throw Error(pt(137,Mt));break;default:ed(Rt,Mt,Kt,no,Ut,null)}}__(Rt,er,Hr,Ra,Ei,xr,jn,!1);return;case"select":Bl("invalid",Rt),Kt=xr=er=null;for(jn in Ut)if(Ut.hasOwnProperty(jn)&&(Hr=Ut[jn],Hr!=null))switch(jn){case"value":er=Hr;break;case"defaultValue":xr=Hr;break;case"multiple":Kt=Hr;default:ed(Rt,Mt,jn,Hr,Ut,null)}Mt=er,Ut=xr,Rt.multiple=!!Kt,Mt!=null?v1(Rt,!!Kt,Mt,!1):Ut!=null&&v1(Rt,!!Kt,Ut,!0);return;case"textarea":Bl("invalid",Rt),er=jn=Kt=null;for(xr in Ut)if(Ut.hasOwnProperty(xr)&&(Hr=Ut[xr],Hr!=null))switch(xr){case"value":Kt=Hr;break;case"defaultValue":jn=Hr;break;case"children":er=Hr;break;case"dangerouslySetInnerHTML":if(Hr!=null)throw Error(pt(91));break;default:ed(Rt,Mt,xr,Hr,Ut,null)}$Q(Rt,Kt,jn,er);return;case"option":for(Ra in Ut)Ut.hasOwnProperty(Ra)&&(Kt=Ut[Ra],Kt!=null)&&(Ra==="selected"?Rt.selected=Kt&&typeof Kt!="function"&&typeof Kt!="symbol":ed(Rt,Mt,Ra,Kt,Ut,null));return;case"dialog":Bl("beforetoggle",Rt),Bl("toggle",Rt),Bl("cancel",Rt),Bl("close",Rt);break;case"iframe":case"object":Bl("load",Rt);break;case"video":case"audio":for(Kt=0;Kt<uI.length;Kt++)Bl(uI[Kt],Rt);break;case"image":Bl("error",Rt),Bl("load",Rt);break;case"details":Bl("toggle",Rt);break;case"embed":case"source":case"link":Bl("error",Rt),Bl("load",Rt);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ei in Ut)if(Ut.hasOwnProperty(Ei)&&(Kt=Ut[Ei],Kt!=null))switch(Ei){case"children":case"dangerouslySetInnerHTML":throw Error(pt(137,Mt));default:ed(Rt,Mt,Ei,Kt,Ut,null)}return;default:if(Ic(Mt)){for(no in Ut)Ut.hasOwnProperty(no)&&(Kt=Ut[no],Kt!==void 0&&k6(Rt,Mt,no,Kt,Ut,void 0));return}}for(Hr in Ut)Ut.hasOwnProperty(Hr)&&(Kt=Ut[Hr],Kt!=null&&ed(Rt,Mt,Hr,Kt,Ut,null))}function jX(Rt,Mt,Ut,Kt){switch(Mt){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var jn=null,er=null,xr=null,Hr=null,Ra=null,Ei=null,no=null;for(Hi in Ut){var fo=Ut[Hi];if(Ut.hasOwnProperty(Hi)&&fo!=null)switch(Hi){case"checked":break;case"value":break;case"defaultValue":Ra=fo;default:Kt.hasOwnProperty(Hi)||ed(Rt,Mt,Hi,null,Kt,fo)}}for(var Pi in Kt){var Hi=Kt[Pi];if(fo=Ut[Pi],Kt.hasOwnProperty(Pi)&&(Hi!=null||fo!=null))switch(Pi){case"type":er=Hi;break;case"name":jn=Hi;break;case"checked":Ei=Hi;break;case"defaultChecked":no=Hi;break;case"value":xr=Hi;break;case"defaultValue":Hr=Hi;break;case"children":case"dangerouslySetInnerHTML":if(Hi!=null)throw Error(pt(137,Mt));break;default:Hi!==fo&&ed(Rt,Mt,Pi,Hi,Kt,fo)}}DQ(Rt,xr,Hr,Ra,Ei,no,er,jn);return;case"select":Hi=xr=Hr=Pi=null;for(er in Ut)if(Ra=Ut[er],Ut.hasOwnProperty(er)&&Ra!=null)switch(er){case"value":break;case"multiple":Hi=Ra;default:Kt.hasOwnProperty(er)||ed(Rt,Mt,er,null,Kt,Ra)}for(jn in Kt)if(er=Kt[jn],Ra=Ut[jn],Kt.hasOwnProperty(jn)&&(er!=null||Ra!=null))switch(jn){case"value":Pi=er;break;case"defaultValue":Hr=er;break;case"multiple":xr=er;default:er!==Ra&&ed(Rt,Mt,jn,er,Kt,Ra)}Mt=Hr,Ut=xr,Kt=Hi,Pi!=null?v1(Rt,!!Ut,Pi,!1):!!Kt!=!!Ut&&(Mt!=null?v1(Rt,!!Ut,Mt,!0):v1(Rt,!!Ut,Ut?[]:"",!1));return;case"textarea":Hi=Pi=null;for(Hr in Ut)if(jn=Ut[Hr],Ut.hasOwnProperty(Hr)&&jn!=null&&!Kt.hasOwnProperty(Hr))switch(Hr){case"value":break;case"children":break;default:ed(Rt,Mt,Hr,null,Kt,jn)}for(xr in Kt)if(jn=Kt[xr],er=Ut[xr],Kt.hasOwnProperty(xr)&&(jn!=null||er!=null))switch(xr){case"value":Pi=jn;break;case"defaultValue":Hi=jn;break;case"children":break;case"dangerouslySetInnerHTML":if(jn!=null)throw Error(pt(91));break;default:jn!==er&&ed(Rt,Mt,xr,jn,Kt,er)}I_(Rt,Pi,Hi);return;case"option":for(var nA in Ut)Pi=Ut[nA],Ut.hasOwnProperty(nA)&&Pi!=null&&!Kt.hasOwnProperty(nA)&&(nA==="selected"?Rt.selected=!1:ed(Rt,Mt,nA,null,Kt,Pi));for(Ra in Kt)Pi=Kt[Ra],Hi=Ut[Ra],Kt.hasOwnProperty(Ra)&&Pi!==Hi&&(Pi!=null||Hi!=null)&&(Ra==="selected"?Rt.selected=Pi&&typeof Pi!="function"&&typeof Pi!="symbol":ed(Rt,Mt,Ra,Pi,Kt,Hi));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var tc in Ut)Pi=Ut[tc],Ut.hasOwnProperty(tc)&&Pi!=null&&!Kt.hasOwnProperty(tc)&&ed(Rt,Mt,tc,null,Kt,Pi);for(Ei in Kt)if(Pi=Kt[Ei],Hi=Ut[Ei],Kt.hasOwnProperty(Ei)&&Pi!==Hi&&(Pi!=null||Hi!=null))switch(Ei){case"children":case"dangerouslySetInnerHTML":if(Pi!=null)throw Error(pt(137,Mt));break;default:ed(Rt,Mt,Ei,Pi,Kt,Hi)}return;default:if(Ic(Mt)){for(var hd in Ut)Pi=Ut[hd],Ut.hasOwnProperty(hd)&&Pi!==void 0&&!Kt.hasOwnProperty(hd)&&k6(Rt,Mt,hd,void 0,Kt,Pi);for(no in Kt)Pi=Kt[no],Hi=Ut[no],!Kt.hasOwnProperty(no)||Pi===Hi||Pi===void 0&&Hi===void 0||k6(Rt,Mt,no,Pi,Kt,Hi);return}}for(var oi in Ut)Pi=Ut[oi],Ut.hasOwnProperty(oi)&&Pi!=null&&!Kt.hasOwnProperty(oi)&&ed(Rt,Mt,oi,null,Kt,Pi);for(fo in Kt)Pi=Kt[fo],Hi=Ut[fo],!Kt.hasOwnProperty(fo)||Pi===Hi||Pi==null&&Hi==null||ed(Rt,Mt,fo,Pi,Kt,Hi)}function UL(Rt){switch(Rt){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function UX(){if(typeof performance.getEntriesByType=="function"){for(var Rt=0,Mt=0,Ut=performance.getEntriesByType("resource"),Kt=0;Kt<Ut.length;Kt++){var jn=Ut[Kt],er=jn.transferSize,xr=jn.initiatorType,Hr=jn.duration;if(er&&Hr&&UL(xr)){for(xr=0,Hr=jn.responseEnd,Kt+=1;Kt<Ut.length;Kt++){var Ra=Ut[Kt],Ei=Ra.startTime;if(Ei>Hr)break;var no=Ra.transferSize,fo=Ra.initiatorType;no&&UL(fo)&&(Ra=Ra.responseEnd,xr+=no*(Ra<Hr?1:(Hr-Ei)/(Ra-Ei)))}if(--Kt,Mt+=8*(er+xr)/(jn.duration/1e3),Rt++,10<Rt)break}}if(0<Rt)return Mt/Rt/1e6}return navigator.connection&&(Rt=navigator.connection.downlink,typeof Rt=="number")?Rt:5}var E6=null,C6=null;function dD(Rt){return Rt.nodeType===9?Rt:Rt.ownerDocument}function zL(Rt){switch(Rt){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function HL(Rt,Mt){if(Rt===0)switch(Mt){case"svg":return 1;case"math":return 2;default:return 0}return Rt===1&&Mt==="foreignObject"?0:Rt}function B6(Rt,Mt){return Rt==="textarea"||Rt==="noscript"||typeof Mt.children=="string"||typeof Mt.children=="number"||typeof Mt.children=="bigint"||typeof Mt.dangerouslySetInnerHTML=="object"&&Mt.dangerouslySetInnerHTML!==null&&Mt.dangerouslySetInnerHTML.__html!=null}var Q6=null;function zX(){var Rt=window.event;return Rt&&Rt.type==="popstate"?Rt===Q6?!1:(Q6=Rt,!0):(Q6=null,!1)}var YL=typeof setTimeout=="function"?setTimeout:void 0,HX=typeof clearTimeout=="function"?clearTimeout:void 0,ZL=typeof Promise=="function"?Promise:void 0,YX=typeof queueMicrotask=="function"?queueMicrotask:typeof ZL<"u"?function(Rt){return ZL.resolve(null).then(Rt).catch(ZX)}:YL;function ZX(Rt){setTimeout(function(){throw Rt})}function ME(Rt){return Rt==="head"}function XL(Rt,Mt){var Ut=Mt,Kt=0;do{var jn=Ut.nextSibling;if(Rt.removeChild(Ut),jn&&jn.nodeType===8)if(Ut=jn.data,Ut==="/$"||Ut==="/&"){if(Kt===0){Rt.removeChild(jn),YB(Mt);return}Kt--}else if(Ut==="$"||Ut==="$?"||Ut==="$~"||Ut==="$!"||Ut==="&")Kt++;else if(Ut==="html")pv(Rt.ownerDocument.documentElement);else if(Ut==="head"){Ut=Rt.ownerDocument.head,pv(Ut);for(var er=Ut.firstChild;er;){var xr=er.nextSibling,Hr=er.nodeName;er[es]||Hr==="SCRIPT"||Hr==="STYLE"||Hr==="LINK"&&er.rel.toLowerCase()==="stylesheet"||Ut.removeChild(er),er=xr}}else Ut==="body"&&pv(Rt.ownerDocument.body);Ut=jn}while(Ut);YB(Mt)}function WL(Rt,Mt){var Ut=Rt;Rt=0;do{var Kt=Ut.nextSibling;if(Ut.nodeType===1?Mt?(Ut._stashedDisplay=Ut.style.display,Ut.style.display="none"):(Ut.style.display=Ut._stashedDisplay||"",Ut.getAttribute("style")===""&&Ut.removeAttribute("style")):Ut.nodeType===3&&(Mt?(Ut._stashedText=Ut.nodeValue,Ut.nodeValue=""):Ut.nodeValue=Ut._stashedText||""),Kt&&Kt.nodeType===8)if(Ut=Kt.data,Ut==="/$"){if(Rt===0)break;Rt--}else Ut!=="$"&&Ut!=="$?"&&Ut!=="$~"&&Ut!=="$!"||Rt++;Ut=Kt}while(Ut)}function v6(Rt){var Mt=Rt.firstChild;for(Mt&&Mt.nodeType===10&&(Mt=Mt.nextSibling);Mt;){var Ut=Mt;switch(Mt=Mt.nextSibling,Ut.nodeName){case"HTML":case"HEAD":case"BODY":v6(Ut),eA(Ut);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(Ut.rel.toLowerCase()==="stylesheet")continue}Rt.removeChild(Ut)}}function XX(Rt,Mt,Ut,Kt){for(;Rt.nodeType===1;){var jn=Ut;if(Rt.nodeName.toLowerCase()!==Mt.toLowerCase()){if(!Kt&&(Rt.nodeName!=="INPUT"||Rt.type!=="hidden"))break}else if(Kt){if(!Rt[es])switch(Mt){case"meta":if(!Rt.hasAttribute("itemprop"))break;return Rt;case"link":if(er=Rt.getAttribute("rel"),er==="stylesheet"&&Rt.hasAttribute("data-precedence"))break;if(er!==jn.rel||Rt.getAttribute("href")!==(jn.href==null||jn.href===""?null:jn.href)||Rt.getAttribute("crossorigin")!==(jn.crossOrigin==null?null:jn.crossOrigin)||Rt.getAttribute("title")!==(jn.title==null?null:jn.title))break;return Rt;case"style":if(Rt.hasAttribute("data-precedence"))break;return Rt;case"script":if(er=Rt.getAttribute("src"),(er!==(jn.src==null?null:jn.src)||Rt.getAttribute("type")!==(jn.type==null?null:jn.type)||Rt.getAttribute("crossorigin")!==(jn.crossOrigin==null?null:jn.crossOrigin))&&er&&Rt.hasAttribute("async")&&!Rt.hasAttribute("itemprop"))break;return Rt;default:return Rt}}else if(Mt==="input"&&Rt.type==="hidden"){var er=jn.name==null?null:""+jn.name;if(jn.type==="hidden"&&Rt.getAttribute("name")===er)return Rt}else return Rt;if(Rt=ib(Rt.nextSibling),Rt===null)break}return null}function WX(Rt,Mt,Ut){if(Mt==="")return null;for(;Rt.nodeType!==3;)if((Rt.nodeType!==1||Rt.nodeName!=="INPUT"||Rt.type!=="hidden")&&!Ut||(Rt=ib(Rt.nextSibling),Rt===null))return null;return Rt}function VL(Rt,Mt){for(;Rt.nodeType!==8;)if((Rt.nodeType!==1||Rt.nodeName!=="INPUT"||Rt.type!=="hidden")&&!Mt||(Rt=ib(Rt.nextSibling),Rt===null))return null;return Rt}function O6(Rt){return Rt.data==="$?"||Rt.data==="$~"}function _6(Rt){return Rt.data==="$!"||Rt.data==="$?"&&Rt.ownerDocument.readyState!=="loading"}function VX(Rt,Mt){var Ut=Rt.ownerDocument;if(Rt.data==="$~")Rt._reactRetry=Mt;else if(Rt.data!=="$?"||Ut.readyState!=="loading")Mt();else{var Kt=function(){Mt(),Ut.removeEventListener("DOMContentLoaded",Kt)};Ut.addEventListener("DOMContentLoaded",Kt),Rt._reactRetry=Kt}}function ib(Rt){for(;Rt!=null;Rt=Rt.nextSibling){var Mt=Rt.nodeType;if(Mt===1||Mt===3)break;if(Mt===8){if(Mt=Rt.data,Mt==="$"||Mt==="$!"||Mt==="$?"||Mt==="$~"||Mt==="&"||Mt==="F!"||Mt==="F")break;if(Mt==="/$"||Mt==="/&")return null}}return Rt}var I6=null;function x6(Rt){Rt=Rt.nextSibling;for(var Mt=0;Rt;){if(Rt.nodeType===8){var Ut=Rt.data;if(Ut==="/$"||Ut==="/&"){if(Mt===0)return ib(Rt.nextSibling);Mt--}else Ut!=="$"&&Ut!=="$!"&&Ut!=="$?"&&Ut!=="$~"&&Ut!=="&"||Mt++}Rt=Rt.nextSibling}return null}function KL(Rt){Rt=Rt.previousSibling;for(var Mt=0;Rt;){if(Rt.nodeType===8){var Ut=Rt.data;if(Ut==="$"||Ut==="$!"||Ut==="$?"||Ut==="$~"||Ut==="&"){if(Mt===0)return Rt;Mt--}else Ut!=="/$"&&Ut!=="/&"||Mt++}Rt=Rt.previousSibling}return null}function JL(Rt,Mt,Ut){switch(Mt=dD(Ut),Rt){case"html":if(Rt=Mt.documentElement,!Rt)throw Error(pt(452));return Rt;case"head":if(Rt=Mt.head,!Rt)throw Error(pt(453));return Rt;case"body":if(Rt=Mt.body,!Rt)throw Error(pt(454));return Rt;default:throw Error(pt(451))}}function pv(Rt){for(var Mt=Rt.attributes;Mt.length;)Rt.removeAttributeNode(Mt[0]);eA(Rt)}var c0=new Map,mm=new Set;function pD(Rt){return typeof Rt.getRootNode=="function"?Rt.getRootNode():Rt.nodeType===9?Rt:Rt.ownerDocument}var dw=lr.d;lr.d={f:KX,r:mD,D:JX,C:t7,L:n7,m:eW,X:tW,S:S6,M:nW};function KX(){var Rt=dw.f(),Mt=aD();return Rt||Mt}function mD(Rt){var Mt=ec(Rt);Mt!==null&&Mt.tag===5&&Mt.type==="form"?U4(Mt):dw.r(Rt)}var mv=typeof document>"u"?null:document;function e7(Rt,Mt,Ut){var Kt=mv;if(Kt&&typeof Mt=="string"&&Mt){var jn=zf(Mt);jn='link[rel="'+Rt+'"][href="'+jn+'"]',typeof Ut=="string"&&(jn+='[crossorigin="'+Ut+'"]'),mm.has(jn)||(mm.add(jn),Rt={rel:Rt,crossOrigin:Ut,href:Mt},Kt.querySelector(jn)===null&&(Mt=Kt.createElement("link"),qg(Mt,"link",Rt),tl(Mt),Kt.head.appendChild(Mt)))}}function JX(Rt){dw.D(Rt),e7("dns-prefetch",Rt,null)}function t7(Rt,Mt){dw.C(Rt,Mt),e7("preconnect",Rt,Mt)}function n7(Rt,Mt,Ut){dw.L(Rt,Mt,Ut);var Kt=mv;if(Kt&&Rt&&Mt){var jn='link[rel="preload"][as="'+zf(Mt)+'"]';Mt==="image"&&Ut&&Ut.imageSrcSet?(jn+='[imagesrcset="'+zf(Ut.imageSrcSet)+'"]',typeof Ut.imageSizes=="string"&&(jn+='[imagesizes="'+zf(Ut.imageSizes)+'"]')):jn+='[href="'+zf(Rt)+'"]';var er=jn;switch(Mt){case"style":er=gv(Rt);break;case"script":er=fv(Rt)}c0.has(er)||(Rt=Qt({rel:"preload",href:Mt==="image"&&Ut&&Ut.imageSrcSet?void 0:Rt,as:Mt},Ut),c0.set(er,Rt),Kt.querySelector(jn)!==null||Mt==="style"&&Kt.querySelector(pI(er))||Mt==="script"&&Kt.querySelector(mI(er))||(Mt=Kt.createElement("link"),qg(Mt,"link",Rt),tl(Mt),Kt.head.appendChild(Mt)))}}function eW(Rt,Mt){dw.m(Rt,Mt);var Ut=mv;if(Ut&&Rt){var Kt=Mt&&typeof Mt.as=="string"?Mt.as:"script",jn='link[rel="modulepreload"][as="'+zf(Kt)+'"][href="'+zf(Rt)+'"]',er=jn;switch(Kt){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":er=fv(Rt)}if(!c0.has(er)&&(Rt=Qt({rel:"modulepreload",href:Rt},Mt),c0.set(er,Rt),Ut.querySelector(jn)===null)){switch(Kt){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(Ut.querySelector(mI(er)))return}Kt=Ut.createElement("link"),qg(Kt,"link",Rt),tl(Kt),Ut.head.appendChild(Kt)}}}function S6(Rt,Mt,Ut){dw.S(Rt,Mt,Ut);var Kt=mv;if(Kt&&Rt){var jn=md(Kt).hoistableStyles,er=gv(Rt);Mt=Mt||"default";var xr=jn.get(er);if(!xr){var Hr={loading:0,preload:null};if(xr=Kt.querySelector(pI(er)))Hr.loading=5;else{Rt=Qt({rel:"stylesheet",href:Rt,"data-precedence":Mt},Ut),(Ut=c0.get(er))&&$6(Rt,Ut);var Ra=xr=Kt.createElement("link");tl(Ra),qg(Ra,"link",Rt),Ra._p=new Promise(function(Ei,no){Ra.onload=Ei,Ra.onerror=no}),Ra.addEventListener("load",function(){Hr.loading|=1}),Ra.addEventListener("error",function(){Hr.loading|=2}),Hr.loading|=4,hv(xr,Mt,Kt)}xr={type:"stylesheet",instance:xr,count:1,state:Hr},jn.set(er,xr)}}}function tW(Rt,Mt){dw.X(Rt,Mt);var Ut=mv;if(Ut&&Rt){var Kt=md(Ut).hoistableScripts,jn=fv(Rt),er=Kt.get(jn);er||(er=Ut.querySelector(mI(jn)),er||(Rt=Qt({src:Rt,async:!0},Mt),(Mt=c0.get(jn))&&T6(Rt,Mt),er=Ut.createElement("script"),tl(er),qg(er,"link",Rt),Ut.head.appendChild(er)),er={type:"script",instance:er,count:1,state:null},Kt.set(jn,er))}}function nW(Rt,Mt){dw.M(Rt,Mt);var Ut=mv;if(Ut&&Rt){var Kt=md(Ut).hoistableScripts,jn=fv(Rt),er=Kt.get(jn);er||(er=Ut.querySelector(mI(jn)),er||(Rt=Qt({src:Rt,async:!0,type:"module"},Mt),(Mt=c0.get(jn))&&T6(Rt,Mt),er=Ut.createElement("script"),tl(er),qg(er,"link",Rt),Ut.head.appendChild(er)),er={type:"script",instance:er,count:1,state:null},Kt.set(jn,er))}}function r7(Rt,Mt,Ut,Kt){var jn=(jn=Br.current)?pD(jn):null;if(!jn)throw Error(pt(446));switch(Rt){case"meta":case"title":return null;case"style":return typeof Ut.precedence=="string"&&typeof Ut.href=="string"?(Mt=gv(Ut.href),Ut=md(jn).hoistableStyles,Kt=Ut.get(Mt),Kt||(Kt={type:"style",instance:null,count:0,state:null},Ut.set(Mt,Kt)),Kt):{type:"void",instance:null,count:0,state:null};case"link":if(Ut.rel==="stylesheet"&&typeof Ut.href=="string"&&typeof Ut.precedence=="string"){Rt=gv(Ut.href);var er=md(jn).hoistableStyles,xr=er.get(Rt);if(xr||(jn=jn.ownerDocument||jn,xr={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},er.set(Rt,xr),(er=jn.querySelector(pI(Rt)))&&!er._p&&(xr.instance=er,xr.state.loading=5),c0.has(Rt)||(Ut={rel:"preload",as:"style",href:Ut.href,crossOrigin:Ut.crossOrigin,integrity:Ut.integrity,media:Ut.media,hrefLang:Ut.hrefLang,referrerPolicy:Ut.referrerPolicy},c0.set(Rt,Ut),er||D6(jn,Rt,Ut,xr.state))),Mt&&Kt===null)throw Error(pt(528,""));return xr}if(Mt&&Kt!==null)throw Error(pt(529,""));return null;case"script":return Mt=Ut.async,Ut=Ut.src,typeof Ut=="string"&&Mt&&typeof Mt!="function"&&typeof Mt!="symbol"?(Mt=fv(Ut),Ut=md(jn).hoistableScripts,Kt=Ut.get(Mt),Kt||(Kt={type:"script",instance:null,count:0,state:null},Ut.set(Mt,Kt)),Kt):{type:"void",instance:null,count:0,state:null};default:throw Error(pt(444,Rt))}}function gv(Rt){return'href="'+zf(Rt)+'"'}function pI(Rt){return'link[rel="stylesheet"]['+Rt+"]"}function a7(Rt){return Qt({},Rt,{"data-precedence":Rt.precedence,precedence:null})}function D6(Rt,Mt,Ut,Kt){Rt.querySelector('link[rel="preload"][as="style"]['+Mt+"]")?Kt.loading=1:(Mt=Rt.createElement("link"),Kt.preload=Mt,Mt.addEventListener("load",function(){return Kt.loading|=1}),Mt.addEventListener("error",function(){return Kt.loading|=2}),qg(Mt,"link",Ut),tl(Mt),Rt.head.appendChild(Mt))}function fv(Rt){return'[src="'+zf(Rt)+'"]'}function mI(Rt){return"script[async]"+Rt}function i7(Rt,Mt,Ut){if(Mt.count++,Mt.instance===null)switch(Mt.type){case"style":var Kt=Rt.querySelector('style[data-href~="'+zf(Ut.href)+'"]');if(Kt)return Mt.instance=Kt,tl(Kt),Kt;var jn=Qt({},Ut,{"data-href":Ut.href,"data-precedence":Ut.precedence,href:null,precedence:null});return Kt=(Rt.ownerDocument||Rt).createElement("style"),tl(Kt),qg(Kt,"style",jn),hv(Kt,Ut.precedence,Rt),Mt.instance=Kt;case"stylesheet":jn=gv(Ut.href);var er=Rt.querySelector(pI(jn));if(er)return Mt.state.loading|=4,Mt.instance=er,tl(er),er;Kt=a7(Ut),(jn=c0.get(jn))&&$6(Kt,jn),er=(Rt.ownerDocument||Rt).createElement("link"),tl(er);var xr=er;return xr._p=new Promise(function(Hr,Ra){xr.onload=Hr,xr.onerror=Ra}),qg(er,"link",Kt),Mt.state.loading|=4,hv(er,Ut.precedence,Rt),Mt.instance=er;case"script":return er=fv(Ut.src),(jn=Rt.querySelector(mI(er)))?(Mt.instance=jn,tl(jn),jn):(Kt=Ut,(jn=c0.get(er))&&(Kt=Qt({},Ut),T6(Kt,jn)),Rt=Rt.ownerDocument||Rt,jn=Rt.createElement("script"),tl(jn),qg(jn,"link",Kt),Rt.head.appendChild(jn),Mt.instance=jn);case"void":return null;default:throw Error(pt(443,Mt.type))}else Mt.type==="stylesheet"&&(Mt.state.loading&4)===0&&(Kt=Mt.instance,Mt.state.loading|=4,hv(Kt,Ut.precedence,Rt));return Mt.instance}function hv(Rt,Mt,Ut){for(var Kt=Ut.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),jn=Kt.length?Kt[Kt.length-1]:null,er=jn,xr=0;xr<Kt.length;xr++){var Hr=Kt[xr];if(Hr.dataset.precedence===Mt)er=Hr;else if(er!==jn)break}er?er.parentNode.insertBefore(Rt,er.nextSibling):(Mt=Ut.nodeType===9?Ut.head:Ut,Mt.insertBefore(Rt,Mt.firstChild))}function $6(Rt,Mt){Rt.crossOrigin==null&&(Rt.crossOrigin=Mt.crossOrigin),Rt.referrerPolicy==null&&(Rt.referrerPolicy=Mt.referrerPolicy),Rt.title==null&&(Rt.title=Mt.title)}function T6(Rt,Mt){Rt.crossOrigin==null&&(Rt.crossOrigin=Mt.crossOrigin),Rt.referrerPolicy==null&&(Rt.referrerPolicy=Mt.referrerPolicy),Rt.integrity==null&&(Rt.integrity=Mt.integrity)}var bv=null;function o7(Rt,Mt,Ut){if(bv===null){var Kt=new Map,jn=bv=new Map;jn.set(Ut,Kt)}else jn=bv,Kt=jn.get(Ut),Kt||(Kt=new Map,jn.set(Ut,Kt));if(Kt.has(Rt))return Kt;for(Kt.set(Rt,null),Ut=Ut.getElementsByTagName(Rt),jn=0;jn<Ut.length;jn++){var er=Ut[jn];if(!(er[es]||er[sl]||Rt==="link"&&er.getAttribute("rel")==="stylesheet")&&er.namespaceURI!=="http://www.w3.org/2000/svg"){var xr=er.getAttribute(Mt)||"";xr=Rt+xr;var Hr=Kt.get(xr);Hr?Hr.push(er):Kt.set(xr,[er])}}return Kt}function gD(Rt,Mt,Ut){Rt=Rt.ownerDocument||Rt,Rt.head.insertBefore(Ut,Mt==="title"?Rt.querySelector("head > title"):null)}function rW(Rt,Mt,Ut){if(Ut===1||Mt.itemProp!=null)return!1;switch(Rt){case"meta":case"title":return!0;case"style":if(typeof Mt.precedence!="string"||typeof Mt.href!="string"||Mt.href==="")break;return!0;case"link":if(typeof Mt.rel!="string"||typeof Mt.href!="string"||Mt.href===""||Mt.onLoad||Mt.onError)break;return Mt.rel==="stylesheet"?(Rt=Mt.disabled,typeof Mt.precedence=="string"&&Rt==null):!0;case"script":if(Mt.async&&typeof Mt.async!="function"&&typeof Mt.async!="symbol"&&!Mt.onLoad&&!Mt.onError&&Mt.src&&typeof Mt.src=="string")return!0}return!1}function s7(Rt){return!(Rt.type==="stylesheet"&&(Rt.state.loading&3)===0)}function aW(Rt,Mt,Ut,Kt){if(Ut.type==="stylesheet"&&(typeof Kt.media!="string"||matchMedia(Kt.media).matches!==!1)&&(Ut.state.loading&4)===0){if(Ut.instance===null){var jn=gv(Kt.href),er=Mt.querySelector(pI(jn));if(er){Mt=er._p,Mt!==null&&typeof Mt=="object"&&typeof Mt.then=="function"&&(Rt.count++,Rt=fD.bind(Rt),Mt.then(Rt,Rt)),Ut.state.loading|=4,Ut.instance=er,tl(er);return}er=Mt.ownerDocument||Mt,Kt=a7(Kt),(jn=c0.get(jn))&&$6(Kt,jn),er=er.createElement("link"),tl(er);var xr=er;xr._p=new Promise(function(Hr,Ra){xr.onload=Hr,xr.onerror=Ra}),qg(er,"link",Kt),Ut.instance=er}Rt.stylesheets===null&&(Rt.stylesheets=new Map),Rt.stylesheets.set(Ut,Mt),(Mt=Ut.state.preload)&&(Ut.state.loading&3)===0&&(Rt.count++,Ut=fD.bind(Rt),Mt.addEventListener("load",Ut),Mt.addEventListener("error",Ut))}}var R6=0;function iW(Rt,Mt){return Rt.stylesheets&&Rt.count===0&&bD(Rt,Rt.stylesheets),0<Rt.count||0<Rt.imgCount?function(Ut){var Kt=setTimeout(function(){if(Rt.stylesheets&&bD(Rt,Rt.stylesheets),Rt.unsuspend){var er=Rt.unsuspend;Rt.unsuspend=null,er()}},6e4+Mt);0<Rt.imgBytes&&R6===0&&(R6=62500*UX());var jn=setTimeout(function(){if(Rt.waitingForImages=!1,Rt.count===0&&(Rt.stylesheets&&bD(Rt,Rt.stylesheets),Rt.unsuspend)){var er=Rt.unsuspend;Rt.unsuspend=null,er()}},(Rt.imgBytes>R6?50:800)+Mt);return Rt.unsuspend=Ut,function(){Rt.unsuspend=null,clearTimeout(Kt),clearTimeout(jn)}}:null}function fD(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bD(this,this.stylesheets);else if(this.unsuspend){var Rt=this.unsuspend;this.unsuspend=null,Rt()}}}var hD=null;function bD(Rt,Mt){Rt.stylesheets=null,Rt.unsuspend!==null&&(Rt.count++,hD=new Map,Mt.forEach(oW,Rt),hD=null,fD.call(Rt))}function oW(Rt,Mt){if(!(Mt.state.loading&4)){var Ut=hD.get(Rt);if(Ut)var Kt=Ut.get(null);else{Ut=new Map,hD.set(Rt,Ut);for(var jn=Rt.querySelectorAll("link[data-precedence],style[data-precedence]"),er=0;er<jn.length;er++){var xr=jn[er];(xr.nodeName==="LINK"||xr.getAttribute("media")!=="not all")&&(Ut.set(xr.dataset.precedence,xr),Kt=xr)}Kt&&Ut.set(null,Kt)}jn=Mt.instance,xr=jn.getAttribute("data-precedence"),er=Ut.get(xr)||Kt,er===Kt&&Ut.set(null,jn),Ut.set(xr,jn),this.count++,Kt=fD.bind(this),jn.addEventListener("load",Kt),jn.addEventListener("error",Kt),er?er.parentNode.insertBefore(jn,er.nextSibling):(Rt=Rt.nodeType===9?Rt.head:Rt,Rt.insertBefore(jn,Rt.firstChild)),Mt.state.loading|=4}}var gI={$$typeof:jt,Provider:null,Consumer:null,_currentValue:nr,_currentValue2:nr,_threadCount:0};function sW(Rt,Mt,Ut,Kt,jn,er,xr,Hr,Ra){this.tag=1,this.containerInfo=Rt,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ms(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ms(0),this.hiddenUpdates=ms(null),this.identifierPrefix=Kt,this.onUncaughtError=jn,this.onCaughtError=er,this.onRecoverableError=xr,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Ra,this.incompleteTransitions=new Map}function A7(Rt,Mt,Ut,Kt,jn,er,xr,Hr,Ra,Ei,no,fo){return Rt=new sW(Rt,Mt,Ut,xr,Ra,Ei,no,fo,Hr),Mt=1,er===!0&&(Mt|=24),er=n0(3,null,null,Mt),Rt.current=er,er.stateNode=Rt,Mt=AR(),Mt.refCount++,Rt.pooledCache=Mt,Mt.refCount++,er.memoizedState={element:Kt,isDehydrated:Ut,cache:Mt},pR(er),Rt}function c7(Rt){return Rt?(Rt=jQ,Rt):jQ}function l7(Rt,Mt,Ut,Kt,jn,er){jn=c7(jn),Kt.context===null?Kt.context=jn:Kt.pendingContext=jn,Kt=BE(Mt),Kt.payload={element:Ut},er=er===void 0?null:er,er!==null&&(Kt.callback=er),Ut=QE(Rt,Kt,Mt),Ut!==null&&(Oh(Ut,Rt,Mt),Y_(Ut,Rt,Mt))}function P6(Rt,Mt){if(Rt=Rt.memoizedState,Rt!==null&&Rt.dehydrated!==null){var Ut=Rt.retryLane;Rt.retryLane=Ut!==0&&Ut<Mt?Ut:Mt}}function yD(Rt,Mt){P6(Rt,Mt),(Rt=Rt.alternate)&&P6(Rt,Mt)}function fI(Rt){if(Rt.tag===13||Rt.tag===31){var Mt=$B(Rt,67108864);Mt!==null&&Oh(Mt,Rt,67108864),yD(Rt,67108864)}}function yv(Rt){if(Rt.tag===13||Rt.tag===31){var Mt=A0();Mt=Us(Mt);var Ut=$B(Rt,Mt);Ut!==null&&Oh(Ut,Rt,Mt),yD(Rt,Mt)}}var hI=!0;function ob(Rt,Mt,Ut,Kt){var jn=Yn.T;Yn.T=null;var er=lr.p;try{lr.p=2,u7(Rt,Mt,Ut,Kt)}finally{lr.p=er,Yn.T=jn}}function AW(Rt,Mt,Ut,Kt){var jn=Yn.T;Yn.T=null;var er=lr.p;try{lr.p=8,u7(Rt,Mt,Ut,Kt)}finally{lr.p=er,Yn.T=jn}}function u7(Rt,Mt,Ut,Kt){if(hI){var jn=d7(Kt);if(jn===null)w6(Rt,Mt,Kt,F6,Ut),lW(Rt,Kt);else if(M6(jn,Rt,Mt,Ut,Kt))Kt.stopPropagation();else if(lW(Rt,Kt),Mt&4&&-1<Ece.indexOf(Rt)){for(;jn!==null;){var er=ec(jn);if(er!==null)switch(er.tag){case 3:if(er=er.stateNode,er.current.memoizedState.isDehydrated){var xr=bo(er.pendingLanes);if(xr!==0){var Hr=er;for(Hr.pendingLanes|=2,Hr.entangledLanes|=2;xr;){var Ra=1<<31-Vs(xr);Hr.entanglements[1]|=Ra,xr&=~Ra}uw(er),(ku&6)===0&&(nD=qa()+500,lI(0))}}break;case 31:case 13:Hr=$B(er,2),Hr!==null&&Oh(Hr,er,2),aD(),yD(er,2)}if(er=d7(Kt),er===null&&w6(Rt,Mt,Kt,F6,Ut),er===jn)break;jn=er}jn!==null&&Kt.stopPropagation()}else w6(Rt,Mt,Kt,null,Ut)}}function d7(Rt){return Rt=PQ(Rt),p7(Rt)}var F6=null;function p7(Rt){if(F6=null,Rt=Qs(Rt),Rt!==null){var Mt=ht(Rt);if(Mt===null)Rt=null;else{var Ut=Mt.tag;if(Ut===13){if(Rt=yt(Mt),Rt!==null)return Rt;Rt=null}else if(Ut===31){if(Rt=kt(Mt),Rt!==null)return Rt;Rt=null}else if(Ut===3){if(Mt.stateNode.current.memoizedState.isDehydrated)return Mt.tag===3?Mt.stateNode.containerInfo:null;Rt=null}else Mt!==Rt&&(Rt=null)}}return F6=Rt,null}function cW(Rt){switch(Rt){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ki()){case La:return 2;case Ja:return 8;case qi:case co:return 32;case ns:return 268435456;default:return 32}default:return 32}}var m7=!1,vp=null,q1=null,zB=null,wv=new Map,kv=new Map,HB=[],Ece="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".split(" ");function lW(Rt,Mt){switch(Rt){case"focusin":case"focusout":vp=null;break;case"dragenter":case"dragleave":q1=null;break;case"mouseover":case"mouseout":zB=null;break;case"pointerover":case"pointerout":wv.delete(Mt.pointerId);break;case"gotpointercapture":case"lostpointercapture":kv.delete(Mt.pointerId)}}function wD(Rt,Mt,Ut,Kt,jn,er){return Rt===null||Rt.nativeEvent!==er?(Rt={blockedOn:Mt,domEventName:Ut,eventSystemFlags:Kt,nativeEvent:er,targetContainers:[jn]},Mt!==null&&(Mt=ec(Mt),Mt!==null&&fI(Mt)),Rt):(Rt.eventSystemFlags|=Kt,Mt=Rt.targetContainers,jn!==null&&Mt.indexOf(jn)===-1&&Mt.push(jn),Rt)}function M6(Rt,Mt,Ut,Kt,jn){switch(Mt){case"focusin":return vp=wD(vp,Rt,Mt,Ut,Kt,jn),!0;case"dragenter":return q1=wD(q1,Rt,Mt,Ut,Kt,jn),!0;case"mouseover":return zB=wD(zB,Rt,Mt,Ut,Kt,jn),!0;case"pointerover":var er=jn.pointerId;return wv.set(er,wD(wv.get(er)||null,Rt,Mt,Ut,Kt,jn)),!0;case"gotpointercapture":return er=jn.pointerId,kv.set(er,wD(kv.get(er)||null,Rt,Mt,Ut,Kt,jn)),!0}return!1}function bI(Rt){var Mt=Qs(Rt.target);if(Mt!==null){var Ut=ht(Mt);if(Ut!==null){if(Mt=Ut.tag,Mt===13){if(Mt=yt(Ut),Mt!==null){Rt.blockedOn=Mt,gu(Rt.priority,function(){yv(Ut)});return}}else if(Mt===31){if(Mt=kt(Ut),Mt!==null){Rt.blockedOn=Mt,gu(Rt.priority,function(){yv(Ut)});return}}else if(Mt===3&&Ut.stateNode.current.memoizedState.isDehydrated){Rt.blockedOn=Ut.tag===3?Ut.stateNode.containerInfo:null;return}}}Rt.blockedOn=null}function yI(Rt){if(Rt.blockedOn!==null)return!1;for(var Mt=Rt.targetContainers;0<Mt.length;){var Ut=d7(Rt.nativeEvent);if(Ut===null){Ut=Rt.nativeEvent;var Kt=new Ut.constructor(Ut.type,Ut);RQ=Kt,Ut.target.dispatchEvent(Kt),RQ=null}else return Mt=ec(Ut),Mt!==null&&fI(Mt),Rt.blockedOn=Ut,!1;Mt.shift()}return!0}function uW(Rt,Mt,Ut){yI(Rt)&&Ut.delete(Mt)}function Cce(){m7=!1,vp!==null&&yI(vp)&&(vp=null),q1!==null&&yI(q1)&&(q1=null),zB!==null&&yI(zB)&&(zB=null),wv.forEach(uW),kv.forEach(uW)}function N6(Rt,Mt){Rt.blockedOn===Mt&&(Rt.blockedOn=null,m7||(m7=!0,At.unstable_scheduleCallback(At.unstable_NormalPriority,Cce)))}var kD=null;function dW(Rt){kD!==Rt&&(kD=Rt,At.unstable_scheduleCallback(At.unstable_NormalPriority,function(){kD===Rt&&(kD=null);for(var Mt=0;Mt<Rt.length;Mt+=3){var Ut=Rt[Mt],Kt=Rt[Mt+1],jn=Rt[Mt+2];if(typeof Kt!="function"){if(p7(Kt||Ut)===null)continue;break}var er=ec(Ut);er!==null&&(Rt.splice(Mt,3),Mt-=3,K_(er,{pending:!0,data:jn,method:Ut.method,action:Kt},Kt,jn))}}))}function YB(Rt){function Mt(Ra){return N6(Ra,Rt)}vp!==null&&N6(vp,Rt),q1!==null&&N6(q1,Rt),zB!==null&&N6(zB,Rt),wv.forEach(Mt),kv.forEach(Mt);for(var Ut=0;Ut<HB.length;Ut++){var Kt=HB[Ut];Kt.blockedOn===Rt&&(Kt.blockedOn=null)}for(;0<HB.length&&(Ut=HB[0],Ut.blockedOn===null);)bI(Ut),Ut.blockedOn===null&&HB.shift();if(Ut=(Rt.ownerDocument||Rt).$$reactFormReplay,Ut!=null)for(Kt=0;Kt<Ut.length;Kt+=3){var jn=Ut[Kt],er=Ut[Kt+1],xr=jn[Yr]||null;if(typeof er=="function")xr||dW(Ut);else if(xr){var Hr=null;if(er&&er.hasAttribute("formAction")){if(jn=er,xr=er[Yr]||null)Hr=xr.formAction;else if(p7(jn)!==null)continue}else Hr=xr.action;typeof Hr=="function"?Ut[Kt+1]=Hr:(Ut.splice(Kt,3),Kt-=3),dW(Ut)}}}function pW(){function Rt(er){er.canIntercept&&er.info==="react-transition"&&er.intercept({handler:function(){return new Promise(function(xr){return jn=xr})},focusReset:"manual",scroll:"manual"})}function Mt(){jn!==null&&(jn(),jn=null),Kt||setTimeout(Ut,20)}function Ut(){if(!Kt&&!navigation.transition){var er=navigation.currentEntry;er&&er.url!=null&&navigation.navigate(er.url,{state:er.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var Kt=!1,jn=null;return navigation.addEventListener("navigate",Rt),navigation.addEventListener("navigatesuccess",Mt),navigation.addEventListener("navigateerror",Mt),setTimeout(Ut,100),function(){Kt=!0,navigation.removeEventListener("navigate",Rt),navigation.removeEventListener("navigatesuccess",Mt),navigation.removeEventListener("navigateerror",Mt),jn!==null&&(jn(),jn=null)}}}function g7(Rt){this._internalRoot=Rt}L6.prototype.render=g7.prototype.render=function(Rt){var Mt=this._internalRoot;if(Mt===null)throw Error(pt(409));var Ut=Mt.current,Kt=A0();l7(Ut,Kt,Rt,Mt,null,null)},L6.prototype.unmount=g7.prototype.unmount=function(){var Rt=this._internalRoot;if(Rt!==null){this._internalRoot=null;var Mt=Rt.containerInfo;l7(Rt.current,2,null,Rt,null,null),aD(),Mt[ga]=null}};function L6(Rt){this._internalRoot=Rt}L6.prototype.unstable_scheduleHydration=function(Rt){if(Rt){var Mt=fc();Rt={blockedOn:null,target:Rt,priority:Mt};for(var Ut=0;Ut<HB.length&&Mt!==0&&Mt<HB[Ut].priority;Ut++);HB.splice(Ut,0,Rt),Ut===0&&bI(Rt)}};var Ev=ot.version;if(Ev!=="19.2.4")throw Error(pt(527,Ev,"19.2.4"));lr.findDOMNode=function(Rt){var Mt=Rt._reactInternals;if(Mt===void 0)throw typeof Rt.render=="function"?Error(pt(188)):(Rt=Object.keys(Rt).join(","),Error(pt(268,Rt)));return Rt=Ot(Mt),Rt=Rt!==null?_t(Rt):null,Rt=Rt===null?null:Rt.stateNode,Rt};var G6={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Yn,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cv.isDisabled&&Cv.supportsFiber)try{Jo=Cv.inject(G6),Ji=Cv}catch{}}return reactDomClient_production.createRoot=function(Rt,Mt){if(!ft(Rt))throw Error(pt(299));var Ut=!1,Kt="",jn=$9,er=T9,xr=R9;return Mt!=null&&(Mt.unstable_strictMode===!0&&(Ut=!0),Mt.identifierPrefix!==void 0&&(Kt=Mt.identifierPrefix),Mt.onUncaughtError!==void 0&&(jn=Mt.onUncaughtError),Mt.onCaughtError!==void 0&&(er=Mt.onCaughtError),Mt.onRecoverableError!==void 0&&(xr=Mt.onRecoverableError)),Mt=A7(Rt,1,!1,null,null,Ut,Kt,null,jn,er,xr,pW),Rt[ga]=Mt.current,y6(Rt),new g7(Mt)},reactDomClient_production.hydrateRoot=function(Rt,Mt,Ut){if(!ft(Rt))throw Error(pt(299));var Kt=!1,jn="",er=$9,xr=T9,Hr=R9,Ra=null;return Ut!=null&&(Ut.unstable_strictMode===!0&&(Kt=!0),Ut.identifierPrefix!==void 0&&(jn=Ut.identifierPrefix),Ut.onUncaughtError!==void 0&&(er=Ut.onUncaughtError),Ut.onCaughtError!==void 0&&(xr=Ut.onCaughtError),Ut.onRecoverableError!==void 0&&(Hr=Ut.onRecoverableError),Ut.formState!==void 0&&(Ra=Ut.formState)),Mt=A7(Rt,1,!0,Mt,Ut??null,Kt,jn,Ra,er,xr,Hr,pW),Mt.context=c7(null),Ut=Mt.current,Kt=A0(),Kt=Us(Kt),jn=BE(Kt),jn.callback=null,QE(Ut,jn,Kt),Ut=Kt,Mt.current.lanes=Ut,uo(Mt,Ut),uw(Mt),Rt[ga]=Mt.current,y6(Rt),new L6(Mt)},reactDomClient_production.version="19.2.4",reactDomClient_production}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client$1.exports;hasRequiredClient=1;function At(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(At)}catch(ot){console.error(ot)}}return At(),client$1.exports=requireReactDomClient_production(),client$1.exports}var clientExports=requireClient(),compilerRuntime={exports:{}},reactCompilerRuntime_production={};var hasRequiredReactCompilerRuntime_production;function requireReactCompilerRuntime_production(){if(hasRequiredReactCompilerRuntime_production)return reactCompilerRuntime_production;hasRequiredReactCompilerRuntime_production=1;var At=requireReact().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return reactCompilerRuntime_production.c=function(ot){return At.H.useMemoCache(ot)},reactCompilerRuntime_production}var hasRequiredCompilerRuntime;function requireCompilerRuntime(){return hasRequiredCompilerRuntime||(hasRequiredCompilerRuntime=1,compilerRuntime.exports=requireReactCompilerRuntime_production()),compilerRuntime.exports}var compilerRuntimeExports=requireCompilerRuntime();const LayoutGroupContext=reactExports.createContext({});function useConstant(At){const ot=reactExports.useRef(null);return ot.current===null&&(ot.current=At()),ot.current}const isBrowser$1=typeof window<"u",useIsomorphicLayoutEffect$3=isBrowser$1?reactExports.useLayoutEffect:reactExports.useEffect,PresenceContext=reactExports.createContext(null);function addUniqueItem(At,ot){At.indexOf(ot)===-1&&At.push(ot)}function removeItem$1(At,ot){const ut=At.indexOf(ot);ut>-1&&At.splice(ut,1)}const clamp$2=(At,ot,ut)=>ut>ot?ot:ut<At?At:ut;let invariant=()=>{};const MotionGlobalConfig={},isNumericalString=At=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(At);function isObject$1(At){return typeof At=="object"&&At!==null}const isZeroValueString=At=>/^0[^.\s]+$/u.test(At);function memo$1(At){let ot;return()=>(ot===void 0&&(ot=At()),ot)}const noop$3=At=>At,combineFunctions=(At,ot)=>ut=>ot(At(ut)),pipe=(...At)=>At.reduce(combineFunctions),progress=(At,ot,ut)=>{const pt=ot-At;return pt===0?1:(ut-At)/pt};class SubscriptionManager{constructor(){this.subscriptions=[]}add(ot){return addUniqueItem(this.subscriptions,ot),()=>removeItem$1(this.subscriptions,ot)}notify(ot,ut,pt){const ft=this.subscriptions.length;if(ft)if(ft===1)this.subscriptions[0](ot,ut,pt);else for(let ht=0;ht<ft;ht++){const yt=this.subscriptions[ht];yt&&yt(ot,ut,pt)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const secondsToMilliseconds=At=>At*1e3,millisecondsToSeconds=At=>At/1e3;function velocityPerSecond(At,ot){return ot?At*(1e3/ot):0}const wrap$2=(At,ot,ut)=>{const pt=ot-At;return((ut-At)%pt+pt)%pt+At},calcBezier=(At,ot,ut)=>(((1-3*ut+3*ot)*At+(3*ut-6*ot))*At+3*ot)*At,subdivisionPrecision=1e-7,subdivisionMaxIterations=12;function binarySubdivide(At,ot,ut,pt,ft){let ht,yt,kt=0;do yt=ot+(ut-ot)/2,ht=calcBezier(yt,pt,ft)-At,ht>0?ut=yt:ot=yt;while(Math.abs(ht)>subdivisionPrecision&&++kt<subdivisionMaxIterations);return yt}function cubicBezier(At,ot,ut,pt){if(At===ot&&ut===pt)return noop$3;const ft=ht=>binarySubdivide(ht,0,1,At,ut);return ht=>ht===0||ht===1?ht:calcBezier(ft(ht),ot,pt)}const mirrorEasing=At=>ot=>ot<=.5?At(2*ot)/2:(2-At(2*(1-ot)))/2,reverseEasing=At=>ot=>1-At(1-ot),backOut=cubicBezier(.33,1.53,.69,.99),backIn=reverseEasing(backOut),backInOut=mirrorEasing(backIn),anticipate=At=>(At*=2)<1?.5*backIn(At):.5*(2-Math.pow(2,-10*(At-1))),circIn=At=>1-Math.sin(Math.acos(At)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circIn),easeIn=cubicBezier(.42,0,1,1),easeOut=cubicBezier(0,0,.58,1),easeInOut=cubicBezier(.42,0,.58,1),isEasingArray=At=>Array.isArray(At)&&typeof At[0]!="number";function getEasingForSegment(At,ot){return isEasingArray(At)?At[wrap$2(0,At.length,ot)]:At}const isBezierDefinition=At=>Array.isArray(At)&&typeof At[0]=="number",easingLookup={linear:noop$3,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate},isValidEasing=At=>typeof At=="string",easingDefinitionToFunction=At=>{if(isBezierDefinition(At)){invariant(At.length===4);const[ot,ut,pt,ft]=At;return cubicBezier(ot,ut,pt,ft)}else if(isValidEasing(At))return easingLookup[At];return At},stepsOrder=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function createRenderStep(At,ot){let ut=new Set,pt=new Set,ft=!1,ht=!1;const yt=new WeakSet;let kt={delta:0,timestamp:0,isProcessing:!1};function Et(_t){yt.has(_t)&&(Ot.schedule(_t),At()),_t(kt)}const Ot={schedule:(_t,Qt=!1,vt=!1)=>{const $t=vt&&ft?ut:pt;return Qt&&yt.add(_t),$t.has(_t)||$t.add(_t),_t},cancel:_t=>{pt.delete(_t),yt.delete(_t)},process:_t=>{if(kt=_t,ft){ht=!0;return}ft=!0,[ut,pt]=[pt,ut],ut.forEach(Et),ut.clear(),ft=!1,ht&&(ht=!1,Ot.process(_t))}};return Ot}const maxElapsed=40;function createRenderBatcher(At,ot){let ut=!1,pt=!0;const ft={delta:0,timestamp:0,isProcessing:!1},ht=()=>ut=!0,yt=stepsOrder.reduce((jt,Zt)=>(jt[Zt]=createRenderStep(ht),jt),{}),{setup:kt,read:Et,resolveKeyframes:Ot,preUpdate:_t,update:Qt,preRender:vt,render:St,postRender:$t}=yt,Pt=()=>{const jt=MotionGlobalConfig.useManualTiming?ft.timestamp:performance.now();ut=!1,MotionGlobalConfig.useManualTiming||(ft.delta=pt?1e3/60:Math.max(Math.min(jt-ft.timestamp,maxElapsed),1)),ft.timestamp=jt,ft.isProcessing=!0,kt.process(ft),Et.process(ft),Ot.process(ft),_t.process(ft),Qt.process(ft),vt.process(ft),St.process(ft),$t.process(ft),ft.isProcessing=!1,ut&&ot&&(pt=!1,At(Pt))},Nt=()=>{ut=!0,pt=!0,ft.isProcessing||At(Pt)};return{schedule:stepsOrder.reduce((jt,Zt)=>{const Ht=yt[Zt];return jt[Zt]=(Wt,wn=!1,Qn=!1)=>(ut||Nt(),Ht.schedule(Wt,wn,Qn)),jt},{}),cancel:jt=>{for(let Zt=0;Zt<stepsOrder.length;Zt++)yt[stepsOrder[Zt]].cancel(jt)},state:ft,steps:yt}}const{schedule:frame,cancel:cancelFrame,state:frameData,steps:frameSteps}=createRenderBatcher(typeof requestAnimationFrame<"u"?requestAnimationFrame:noop$3,!0);let now;function clearTime(){now=void 0}const time={now:()=>(now===void 0&&time.set(frameData.isProcessing||MotionGlobalConfig.useManualTiming?frameData.timestamp:performance.now()),now),set:At=>{now=At,queueMicrotask(clearTime)}},checkStringStartsWith=At=>ot=>typeof ot=="string"&&ot.startsWith(At),isCSSVariableName=checkStringStartsWith("--"),startsAsVariableToken=checkStringStartsWith("var(--"),isCSSVariableToken=At=>startsAsVariableToken(At)?singleCssVariableRegex.test(At.split("/*")[0].trim()):!1,singleCssVariableRegex=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function containsCSSVariable(At){return typeof At!="string"?!1:At.split("/*")[0].includes("var(--")}const number$2={test:At=>typeof At=="number",parse:parseFloat,transform:At=>At},alpha={...number$2,transform:At=>clamp$2(0,1,At)},scale={...number$2,default:1},sanitize=At=>Math.round(At*1e5)/1e5,floatRegex=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function isNullish(At){return At==null}const singleColorRegex=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(At,ot)=>ut=>!!(typeof ut=="string"&&singleColorRegex.test(ut)&&ut.startsWith(At)||ot&&!isNullish(ut)&&Object.prototype.hasOwnProperty.call(ut,ot)),splitColor=(At,ot,ut)=>pt=>{if(typeof pt!="string")return pt;const[ft,ht,yt,kt]=pt.match(floatRegex);return{[At]:parseFloat(ft),[ot]:parseFloat(ht),[ut]:parseFloat(yt),alpha:kt!==void 0?parseFloat(kt):1}},clampRgbUnit=At=>clamp$2(0,255,At),rgbUnit={...number$2,transform:At=>Math.round(clampRgbUnit(At))},rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:At,green:ot,blue:ut,alpha:pt=1})=>"rgba("+rgbUnit.transform(At)+", "+rgbUnit.transform(ot)+", "+rgbUnit.transform(ut)+", "+sanitize(alpha.transform(pt))+")"};function parseHex$1(At){let ot="",ut="",pt="",ft="";return At.length>5?(ot=At.substring(1,3),ut=At.substring(3,5),pt=At.substring(5,7),ft=At.substring(7,9)):(ot=At.substring(1,2),ut=At.substring(2,3),pt=At.substring(3,4),ft=At.substring(4,5),ot+=ot,ut+=ut,pt+=pt,ft+=ft),{red:parseInt(ot,16),green:parseInt(ut,16),blue:parseInt(pt,16),alpha:ft?parseInt(ft,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex$1,transform:rgba.transform},createUnitType=At=>({test:ot=>typeof ot=="string"&&ot.endsWith(At)&&ot.split(" ").length===1,parse:parseFloat,transform:ot=>`${ot}${At}`}),degrees=createUnitType("deg"),percent$2=createUnitType("%"),px$1=createUnitType("px"),vh=createUnitType("vh"),vw=createUnitType("vw"),progressPercentage={...percent$2,parse:At=>percent$2.parse(At)/100,transform:At=>percent$2.transform(At*100)},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:At,saturation:ot,lightness:ut,alpha:pt=1})=>"hsla("+Math.round(At)+", "+percent$2.transform(sanitize(ot))+", "+percent$2.transform(sanitize(ut))+", "+sanitize(alpha.transform(pt))+")"},color$1={test:At=>rgba.test(At)||hex.test(At)||hsla.test(At),parse:At=>rgba.test(At)?rgba.parse(At):hsla.test(At)?hsla.parse(At):hex.parse(At),transform:At=>typeof At=="string"?At:At.hasOwnProperty("red")?rgba.transform(At):hsla.transform(At),getAnimatableNone:At=>{const ot=color$1.parse(At);return ot.alpha=0,color$1.transform(ot)}},colorRegex=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function test(At){return isNaN(At)&&typeof At=="string"&&(At.match(floatRegex)?.length||0)+(At.match(colorRegex)?.length||0)>0}const NUMBER_TOKEN="number",COLOR_TOKEN="color",VAR_TOKEN="var",VAR_FUNCTION_TOKEN="var(",SPLIT_TOKEN="${}",complexRegex=/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 analyseComplexValue(At){const ot=At.toString(),ut=[],pt={color:[],number:[],var:[]},ft=[];let ht=0;const kt=ot.replace(complexRegex,Et=>(color$1.test(Et)?(pt.color.push(ht),ft.push(COLOR_TOKEN),ut.push(color$1.parse(Et))):Et.startsWith(VAR_FUNCTION_TOKEN)?(pt.var.push(ht),ft.push(VAR_TOKEN),ut.push(Et)):(pt.number.push(ht),ft.push(NUMBER_TOKEN),ut.push(parseFloat(Et))),++ht,SPLIT_TOKEN)).split(SPLIT_TOKEN);return{values:ut,split:kt,indexes:pt,types:ft}}function parseComplexValue(At){return analyseComplexValue(At).values}function createTransformer(At){const{split:ot,types:ut}=analyseComplexValue(At),pt=ot.length;return ft=>{let ht="";for(let yt=0;yt<pt;yt++)if(ht+=ot[yt],ft[yt]!==void 0){const kt=ut[yt];kt===NUMBER_TOKEN?ht+=sanitize(ft[yt]):kt===COLOR_TOKEN?ht+=color$1.transform(ft[yt]):ht+=ft[yt]}return ht}}const convertNumbersToZero=At=>typeof At=="number"?0:color$1.test(At)?color$1.getAnimatableNone(At):At;function getAnimatableNone$1(At){const ot=parseComplexValue(At);return createTransformer(At)(ot.map(convertNumbersToZero))}const complex={test,parse:parseComplexValue,createTransformer,getAnimatableNone:getAnimatableNone$1};function hueToRgb(At,ot,ut){return ut<0&&(ut+=1),ut>1&&(ut-=1),ut<1/6?At+(ot-At)*6*ut:ut<1/2?ot:ut<2/3?At+(ot-At)*(2/3-ut)*6:At}function hslaToRgba({hue:At,saturation:ot,lightness:ut,alpha:pt}){At/=360,ot/=100,ut/=100;let ft=0,ht=0,yt=0;if(!ot)ft=ht=yt=ut;else{const kt=ut<.5?ut*(1+ot):ut+ot-ut*ot,Et=2*ut-kt;ft=hueToRgb(Et,kt,At+1/3),ht=hueToRgb(Et,kt,At),yt=hueToRgb(Et,kt,At-1/3)}return{red:Math.round(ft*255),green:Math.round(ht*255),blue:Math.round(yt*255),alpha:pt}}function mixImmediate(At,ot){return ut=>ut>0?ot:At}const mixNumber$1=(At,ot,ut)=>At+(ot-At)*ut,mixLinearColor=(At,ot,ut)=>{const pt=At*At,ft=ut*(ot*ot-pt)+pt;return ft<0?0:Math.sqrt(ft)},colorTypes=[hex,rgba,hsla],getColorType=At=>colorTypes.find(ot=>ot.test(At));function asRGBA(At){const ot=getColorType(At);if(!ot)return!1;let ut=ot.parse(At);return ot===hsla&&(ut=hslaToRgba(ut)),ut}const mixColor=(At,ot)=>{const ut=asRGBA(At),pt=asRGBA(ot);if(!ut||!pt)return mixImmediate(At,ot);const ft={...ut};return ht=>(ft.red=mixLinearColor(ut.red,pt.red,ht),ft.green=mixLinearColor(ut.green,pt.green,ht),ft.blue=mixLinearColor(ut.blue,pt.blue,ht),ft.alpha=mixNumber$1(ut.alpha,pt.alpha,ht),rgba.transform(ft))},invisibleValues=new Set(["none","hidden"]);function mixVisibility(At,ot){return invisibleValues.has(At)?ut=>ut<=0?At:ot:ut=>ut>=1?ot:At}function mixNumber(At,ot){return ut=>mixNumber$1(At,ot,ut)}function getMixer(At){return typeof At=="number"?mixNumber:typeof At=="string"?isCSSVariableToken(At)?mixImmediate:color$1.test(At)?mixColor:mixComplex:Array.isArray(At)?mixArray:typeof At=="object"?color$1.test(At)?mixColor:mixObject:mixImmediate}function mixArray(At,ot){const ut=[...At],pt=ut.length,ft=At.map((ht,yt)=>getMixer(ht)(ht,ot[yt]));return ht=>{for(let yt=0;yt<pt;yt++)ut[yt]=ft[yt](ht);return ut}}function mixObject(At,ot){const ut={...At,...ot},pt={};for(const ft in ut)At[ft]!==void 0&&ot[ft]!==void 0&&(pt[ft]=getMixer(At[ft])(At[ft],ot[ft]));return ft=>{for(const ht in pt)ut[ht]=pt[ht](ft);return ut}}function matchOrder(At,ot){const ut=[],pt={color:0,var:0,number:0};for(let ft=0;ft<ot.values.length;ft++){const ht=ot.types[ft],yt=At.indexes[ht][pt[ht]],kt=At.values[yt]??0;ut[ft]=kt,pt[ht]++}return ut}const mixComplex=(At,ot)=>{const ut=complex.createTransformer(ot),pt=analyseComplexValue(At),ft=analyseComplexValue(ot);return pt.indexes.var.length===ft.indexes.var.length&&pt.indexes.color.length===ft.indexes.color.length&&pt.indexes.number.length>=ft.indexes.number.length?invisibleValues.has(At)&&!ft.values.length||invisibleValues.has(ot)&&!pt.values.length?mixVisibility(At,ot):pipe(mixArray(matchOrder(pt,ft),ft.values),ut):mixImmediate(At,ot)};function mix(At,ot,ut){return typeof At=="number"&&typeof ot=="number"&&typeof ut=="number"?mixNumber$1(At,ot,ut):getMixer(At)(At,ot)}const frameloopDriver=At=>{const ot=({timestamp:ut})=>At(ut);return{start:(ut=!0)=>frame.update(ot,ut),stop:()=>cancelFrame(ot),now:()=>frameData.isProcessing?frameData.timestamp:time.now()}},generateLinearEasing=(At,ot,ut=10)=>{let pt="";const ft=Math.max(Math.round(ot/ut),2);for(let ht=0;ht<ft;ht++)pt+=Math.round(At(ht/(ft-1))*1e4)/1e4+", ";return`linear(${pt.substring(0,pt.length-2)})`},maxGeneratorDuration=2e4;function calcGeneratorDuration(At){let ot=0;const ut=50;let pt=At.next(ot);for(;!pt.done&&ot<maxGeneratorDuration;)ot+=ut,pt=At.next(ot);return ot>=maxGeneratorDuration?1/0:ot}function createGeneratorEasing(At,ot=100,ut){const pt=ut({...At,keyframes:[0,ot]}),ft=Math.min(calcGeneratorDuration(pt),maxGeneratorDuration);return{type:"keyframes",ease:ht=>pt.next(ft*ht).value/ot,duration:millisecondsToSeconds(ft)}}const velocitySampleDuration=5;function calcGeneratorVelocity(At,ot,ut){const pt=Math.max(ot-velocitySampleDuration,0);return velocityPerSecond(ut-At(pt),ot-pt)}const springDefaults={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},safeMin=.001;function findSpring({duration:At=springDefaults.duration,bounce:ot=springDefaults.bounce,velocity:ut=springDefaults.velocity,mass:pt=springDefaults.mass}){let ft,ht,yt=1-ot;yt=clamp$2(springDefaults.minDamping,springDefaults.maxDamping,yt),At=clamp$2(springDefaults.minDuration,springDefaults.maxDuration,millisecondsToSeconds(At)),yt<1?(ft=Ot=>{const _t=Ot*yt,Qt=_t*At,vt=_t-ut,St=calcAngularFreq(Ot,yt),$t=Math.exp(-Qt);return safeMin-vt/St*$t},ht=Ot=>{const Qt=Ot*yt*At,vt=Qt*ut+ut,St=Math.pow(yt,2)*Math.pow(Ot,2)*At,$t=Math.exp(-Qt),Pt=calcAngularFreq(Math.pow(Ot,2),yt);return(-ft(Ot)+safeMin>0?-1:1)*((vt-St)*$t)/Pt}):(ft=Ot=>{const _t=Math.exp(-Ot*At),Qt=(Ot-ut)*At+1;return-safeMin+_t*Qt},ht=Ot=>{const _t=Math.exp(-Ot*At),Qt=(ut-Ot)*(At*At);return _t*Qt});const kt=5/At,Et=approximateRoot(ft,ht,kt);if(At=secondsToMilliseconds(At),isNaN(Et))return{stiffness:springDefaults.stiffness,damping:springDefaults.damping,duration:At};{const Ot=Math.pow(Et,2)*pt;return{stiffness:Ot,damping:yt*2*Math.sqrt(pt*Ot),duration:At}}}const rootIterations=12;function approximateRoot(At,ot,ut){let pt=ut;for(let ft=1;ft<rootIterations;ft++)pt=pt-At(pt)/ot(pt);return pt}function calcAngularFreq(At,ot){return At*Math.sqrt(1-ot*ot)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(At,ot){return ot.some(ut=>At[ut]!==void 0)}function getSpringOptions(At){let ot={velocity:springDefaults.velocity,stiffness:springDefaults.stiffness,damping:springDefaults.damping,mass:springDefaults.mass,isResolvedFromDuration:!1,...At};if(!isSpringType(At,physicsKeys)&&isSpringType(At,durationKeys))if(ot.velocity=0,At.visualDuration){const ut=At.visualDuration,pt=2*Math.PI/(ut*1.2),ft=pt*pt,ht=2*clamp$2(.05,1,1-(At.bounce||0))*Math.sqrt(ft);ot={...ot,mass:springDefaults.mass,stiffness:ft,damping:ht}}else{const ut=findSpring({...At,velocity:0});ot={...ot,...ut,mass:springDefaults.mass},ot.isResolvedFromDuration=!0}return ot}function spring(At=springDefaults.visualDuration,ot=springDefaults.bounce){const ut=typeof At!="object"?{visualDuration:At,keyframes:[0,1],bounce:ot}:At;let{restSpeed:pt,restDelta:ft}=ut;const ht=ut.keyframes[0],yt=ut.keyframes[ut.keyframes.length-1],kt={done:!1,value:ht},{stiffness:Et,damping:Ot,mass:_t,duration:Qt,velocity:vt,isResolvedFromDuration:St}=getSpringOptions({...ut,velocity:-millisecondsToSeconds(ut.velocity||0)}),$t=vt||0,Pt=Ot/(2*Math.sqrt(Et*_t)),Nt=yt-ht,Lt=millisecondsToSeconds(Math.sqrt(Et/_t)),qt=Math.abs(Nt)<5;pt||(pt=qt?springDefaults.restSpeed.granular:springDefaults.restSpeed.default),ft||(ft=qt?springDefaults.restDelta.granular:springDefaults.restDelta.default);let jt;if(Pt<1){const Ht=calcAngularFreq(Lt,Pt);jt=Wt=>{const wn=Math.exp(-Pt*Lt*Wt);return yt-wn*(($t+Pt*Lt*Nt)/Ht*Math.sin(Ht*Wt)+Nt*Math.cos(Ht*Wt))}}else if(Pt===1)jt=Ht=>yt-Math.exp(-Lt*Ht)*(Nt+($t+Lt*Nt)*Ht);else{const Ht=Lt*Math.sqrt(Pt*Pt-1);jt=Wt=>{const wn=Math.exp(-Pt*Lt*Wt),Qn=Math.min(Ht*Wt,300);return yt-wn*(($t+Pt*Lt*Nt)*Math.sinh(Qn)+Ht*Nt*Math.cosh(Qn))/Ht}}const Zt={calculatedDuration:St&&Qt||null,next:Ht=>{const Wt=jt(Ht);if(St)kt.done=Ht>=Qt;else{let wn=Ht===0?$t:0;Pt<1&&(wn=Ht===0?secondsToMilliseconds($t):calcGeneratorVelocity(jt,Ht,Wt));const Qn=Math.abs(wn)<=pt,Jt=Math.abs(yt-Wt)<=ft;kt.done=Qn&&Jt}return kt.value=kt.done?yt:Wt,kt},toString:()=>{const Ht=Math.min(calcGeneratorDuration(Zt),maxGeneratorDuration),Wt=generateLinearEasing(wn=>Zt.next(Ht*wn).value,Ht,30);return Ht+"ms "+Wt},toTransition:()=>{}};return Zt}spring.applyToOptions=At=>{const ot=createGeneratorEasing(At,100,spring);return At.ease=ot.ease,At.duration=secondsToMilliseconds(ot.duration),At.type="keyframes",At};function inertia({keyframes:At,velocity:ot=0,power:ut=.8,timeConstant:pt=325,bounceDamping:ft=10,bounceStiffness:ht=500,modifyTarget:yt,min:kt,max:Et,restDelta:Ot=.5,restSpeed:_t}){const Qt=At[0],vt={done:!1,value:Qt},St=Qn=>kt!==void 0&&Qn<kt||Et!==void 0&&Qn>Et,$t=Qn=>kt===void 0?Et:Et===void 0||Math.abs(kt-Qn)<Math.abs(Et-Qn)?kt:Et;let Pt=ut*ot;const Nt=Qt+Pt,Lt=yt===void 0?Nt:yt(Nt);Lt!==Nt&&(Pt=Lt-Qt);const qt=Qn=>-Pt*Math.exp(-Qn/pt),jt=Qn=>Lt+qt(Qn),Zt=Qn=>{const Jt=qt(Qn),Gn=jt(Qn);vt.done=Math.abs(Jt)<=Ot,vt.value=vt.done?Lt:Gn};let Ht,Wt;const wn=Qn=>{St(vt.value)&&(Ht=Qn,Wt=spring({keyframes:[vt.value,$t(vt.value)],velocity:calcGeneratorVelocity(jt,Qn,vt.value),damping:ft,stiffness:ht,restDelta:Ot,restSpeed:_t}))};return wn(0),{calculatedDuration:null,next:Qn=>{let Jt=!1;return!Wt&&Ht===void 0&&(Jt=!0,Zt(Qn),wn(Qn)),Ht!==void 0&&Qn>=Ht?Wt.next(Qn-Ht):(!Jt&&Zt(Qn),vt)}}}function createMixers(At,ot,ut){const pt=[],ft=ut||MotionGlobalConfig.mix||mix,ht=At.length-1;for(let yt=0;yt<ht;yt++){let kt=ft(At[yt],At[yt+1]);if(ot){const Et=Array.isArray(ot)?ot[yt]||noop$3:ot;kt=pipe(Et,kt)}pt.push(kt)}return pt}function interpolate$1(At,ot,{clamp:ut=!0,ease:pt,mixer:ft}={}){const ht=At.length;if(invariant(ht===ot.length),ht===1)return()=>ot[0];if(ht===2&&ot[0]===ot[1])return()=>ot[1];const yt=At[0]===At[1];At[0]>At[ht-1]&&(At=[...At].reverse(),ot=[...ot].reverse());const kt=createMixers(ot,pt,ft),Et=kt.length,Ot=_t=>{if(yt&&_t<At[0])return ot[0];let Qt=0;if(Et>1)for(;Qt<At.length-2&&!(_t<At[Qt+1]);Qt++);const vt=progress(At[Qt],At[Qt+1],_t);return kt[Qt](vt)};return ut?_t=>Ot(clamp$2(At[0],At[ht-1],_t)):Ot}function fillOffset(At,ot){const ut=At[At.length-1];for(let pt=1;pt<=ot;pt++){const ft=progress(0,ot,pt);At.push(mixNumber$1(ut,1,ft))}}function defaultOffset(At){const ot=[0];return fillOffset(ot,At.length-1),ot}function convertOffsetToTimes(At,ot){return At.map(ut=>ut*ot)}function defaultEasing(At,ot){return At.map(()=>ot||easeInOut).splice(0,At.length-1)}function keyframes({duration:At=300,keyframes:ot,times:ut,ease:pt="easeInOut"}){const ft=isEasingArray(pt)?pt.map(easingDefinitionToFunction):easingDefinitionToFunction(pt),ht={done:!1,value:ot[0]},yt=convertOffsetToTimes(ut&&ut.length===ot.length?ut:defaultOffset(ot),At),kt=interpolate$1(yt,ot,{ease:Array.isArray(ft)?ft:defaultEasing(ot,ft)});return{calculatedDuration:At,next:Et=>(ht.value=kt(Et),ht.done=Et>=At,ht)}}const isNotNull$1=At=>At!==null;function getFinalKeyframe$1(At,{repeat:ot,repeatType:ut="loop"},pt,ft=1){const ht=At.filter(isNotNull$1),kt=ft<0||ot&&ut!=="loop"&&ot%2===1?0:ht.length-1;return!kt||pt===void 0?ht[kt]:pt}const transitionTypeMap={decay:inertia,inertia,tween:keyframes,keyframes,spring};function replaceTransitionType(At){typeof At.type=="string"&&(At.type=transitionTypeMap[At.type])}class WithPromise{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(ot=>{this.resolve=ot})}notifyFinished(){this.resolve()}then(ot,ut){return this.finished.then(ot,ut)}}const percentToProgress=At=>At/100;class JSAnimation extends WithPromise{constructor(ot){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:ut}=this.options;ut&&ut.updatedAt!==time.now()&&this.tick(time.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=ot,this.initAnimation(),this.play(),ot.autoplay===!1&&this.pause()}initAnimation(){const{options:ot}=this;replaceTransitionType(ot);const{type:ut=keyframes,repeat:pt=0,repeatDelay:ft=0,repeatType:ht,velocity:yt=0}=ot;let{keyframes:kt}=ot;const Et=ut||keyframes;Et!==keyframes&&typeof kt[0]!="number"&&(this.mixKeyframes=pipe(percentToProgress,mix(kt[0],kt[1])),kt=[0,100]);const Ot=Et({...ot,keyframes:kt});ht==="mirror"&&(this.mirroredGenerator=Et({...ot,keyframes:[...kt].reverse(),velocity:-yt})),Ot.calculatedDuration===null&&(Ot.calculatedDuration=calcGeneratorDuration(Ot));const{calculatedDuration:_t}=Ot;this.calculatedDuration=_t,this.resolvedDuration=_t+ft,this.totalDuration=this.resolvedDuration*(pt+1)-ft,this.generator=Ot}updateTime(ot){const ut=Math.round(ot-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=ut}tick(ot,ut=!1){const{generator:pt,totalDuration:ft,mixKeyframes:ht,mirroredGenerator:yt,resolvedDuration:kt,calculatedDuration:Et}=this;if(this.startTime===null)return pt.next(0);const{delay:Ot=0,keyframes:_t,repeat:Qt,repeatType:vt,repeatDelay:St,type:$t,onUpdate:Pt,finalKeyframe:Nt}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,ot):this.speed<0&&(this.startTime=Math.min(ot-ft/this.speed,this.startTime)),ut?this.currentTime=ot:this.updateTime(ot);const Lt=this.currentTime-Ot*(this.playbackSpeed>=0?1:-1),qt=this.playbackSpeed>=0?Lt<0:Lt>ft;this.currentTime=Math.max(Lt,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=ft);let jt=this.currentTime,Zt=pt;if(Qt){const Qn=Math.min(this.currentTime,ft)/kt;let Jt=Math.floor(Qn),Gn=Qn%1;!Gn&&Qn>=1&&(Gn=1),Gn===1&&Jt--,Jt=Math.min(Jt,Qt+1),Jt%2&&(vt==="reverse"?(Gn=1-Gn,St&&(Gn-=St/kt)):vt==="mirror"&&(Zt=yt)),jt=clamp$2(0,1,Gn)*kt}const Ht=qt?{done:!1,value:_t[0]}:Zt.next(jt);ht&&(Ht.value=ht(Ht.value));let{done:Wt}=Ht;!qt&&Et!==null&&(Wt=this.playbackSpeed>=0?this.currentTime>=ft:this.currentTime<=0);const wn=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Wt);return wn&&$t!==inertia&&(Ht.value=getFinalKeyframe$1(_t,this.options,Nt,this.speed)),Pt&&Pt(Ht.value),wn&&this.finish(),Ht}then(ot,ut){return this.finished.then(ot,ut)}get duration(){return millisecondsToSeconds(this.calculatedDuration)}get iterationDuration(){const{delay:ot=0}=this.options||{};return this.duration+millisecondsToSeconds(ot)}get time(){return millisecondsToSeconds(this.currentTime)}set time(ot){ot=secondsToMilliseconds(ot),this.currentTime=ot,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=ot:this.driver&&(this.startTime=this.driver.now()-ot/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(ot){this.updateTime(time.now());const ut=this.playbackSpeed!==ot;this.playbackSpeed=ot,ut&&(this.time=millisecondsToSeconds(this.currentTime))}play(){if(this.isStopped)return;const{driver:ot=frameloopDriver,startTime:ut}=this.options;this.driver||(this.driver=ot(ft=>this.tick(ft))),this.options.onPlay?.();const pt=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=pt):this.holdTime!==null?this.startTime=pt-this.holdTime:this.startTime||(this.startTime=ut??pt),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(time.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(ot){return this.startTime=0,this.tick(ot,!0)}attachTimeline(ot){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),ot.observe(this)}}function fillWildcards(At){for(let ot=1;ot<At.length;ot++)At[ot]??(At[ot]=At[ot-1])}const radToDeg=At=>At*180/Math.PI,rotate=At=>{const ot=radToDeg(Math.atan2(At[1],At[0]));return rebaseAngle(ot)},matrix2dParsers={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:At=>(Math.abs(At[0])+Math.abs(At[3]))/2,rotate,rotateZ:rotate,skewX:At=>radToDeg(Math.atan(At[1])),skewY:At=>radToDeg(Math.atan(At[2])),skew:At=>(Math.abs(At[1])+Math.abs(At[2]))/2},rebaseAngle=At=>(At=At%360,At<0&&(At+=360),At),rotateZ=rotate,scaleX=At=>Math.sqrt(At[0]*At[0]+At[1]*At[1]),scaleY=At=>Math.sqrt(At[4]*At[4]+At[5]*At[5]),matrix3dParsers={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX,scaleY,scale:At=>(scaleX(At)+scaleY(At))/2,rotateX:At=>rebaseAngle(radToDeg(Math.atan2(At[6],At[5]))),rotateY:At=>rebaseAngle(radToDeg(Math.atan2(-At[2],At[0]))),rotateZ,rotate:rotateZ,skewX:At=>radToDeg(Math.atan(At[4])),skewY:At=>radToDeg(Math.atan(At[1])),skew:At=>(Math.abs(At[1])+Math.abs(At[4]))/2};function defaultTransformValue(At){return At.includes("scale")?1:0}function parseValueFromTransform(At,ot){if(!At||At==="none")return defaultTransformValue(ot);const ut=At.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let pt,ft;if(ut)pt=matrix3dParsers,ft=ut;else{const kt=At.match(/^matrix\(([-\d.e\s,]+)\)$/u);pt=matrix2dParsers,ft=kt}if(!ft)return defaultTransformValue(ot);const ht=pt[ot],yt=ft[1].split(",").map(convertTransformToNumber);return typeof ht=="function"?ht(yt):yt[ht]}const readTransformValue=(At,ot)=>{const{transform:ut="none"}=getComputedStyle(At);return parseValueFromTransform(ut,ot)};function convertTransformToNumber(At){return parseFloat(At.trim())}const transformPropOrder=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],transformProps=new Set(transformPropOrder),isNumOrPxType=At=>At===number$2||At===px$1,transformKeys=new Set(["x","y","z"]),nonTranslationalTransformKeys=transformPropOrder.filter(At=>!transformKeys.has(At));function removeNonTranslationalTransform(At){const ot=[];return nonTranslationalTransformKeys.forEach(ut=>{const pt=At.getValue(ut);pt!==void 0&&(ot.push([ut,pt.get()]),pt.set(ut.startsWith("scale")?1:0))}),ot}const positionalValues={width:({x:At},{paddingLeft:ot="0",paddingRight:ut="0"})=>At.max-At.min-parseFloat(ot)-parseFloat(ut),height:({y:At},{paddingTop:ot="0",paddingBottom:ut="0"})=>At.max-At.min-parseFloat(ot)-parseFloat(ut),top:(At,{top:ot})=>parseFloat(ot),left:(At,{left:ot})=>parseFloat(ot),bottom:({y:At},{top:ot})=>parseFloat(ot)+(At.max-At.min),right:({x:At},{left:ot})=>parseFloat(ot)+(At.max-At.min),x:(At,{transform:ot})=>parseValueFromTransform(ot,"x"),y:(At,{transform:ot})=>parseValueFromTransform(ot,"y")};positionalValues.translateX=positionalValues.x;positionalValues.translateY=positionalValues.y;const toResolve=new Set;let isScheduled=!1,anyNeedsMeasurement=!1,isForced=!1;function measureAllKeyframes(){if(anyNeedsMeasurement){const At=Array.from(toResolve).filter(pt=>pt.needsMeasurement),ot=new Set(At.map(pt=>pt.element)),ut=new Map;ot.forEach(pt=>{const ft=removeNonTranslationalTransform(pt);ft.length&&(ut.set(pt,ft),pt.render())}),At.forEach(pt=>pt.measureInitialState()),ot.forEach(pt=>{pt.render();const ft=ut.get(pt);ft&&ft.forEach(([ht,yt])=>{pt.getValue(ht)?.set(yt)})}),At.forEach(pt=>pt.measureEndState()),At.forEach(pt=>{pt.suspendedScrollY!==void 0&&window.scrollTo(0,pt.suspendedScrollY)})}anyNeedsMeasurement=!1,isScheduled=!1,toResolve.forEach(At=>At.complete(isForced)),toResolve.clear()}function readAllKeyframes(){toResolve.forEach(At=>{At.readKeyframes(),At.needsMeasurement&&(anyNeedsMeasurement=!0)})}function flushKeyframeResolvers(){isForced=!0,readAllKeyframes(),measureAllKeyframes(),isForced=!1}class KeyframeResolver{constructor(ot,ut,pt,ft,ht,yt=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...ot],this.onComplete=ut,this.name=pt,this.motionValue=ft,this.element=ht,this.isAsync=yt}scheduleResolve(){this.state="scheduled",this.isAsync?(toResolve.add(this),isScheduled||(isScheduled=!0,frame.read(readAllKeyframes),frame.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:ot,name:ut,element:pt,motionValue:ft}=this;if(ot[0]===null){const ht=ft?.get(),yt=ot[ot.length-1];if(ht!==void 0)ot[0]=ht;else if(pt&&ut){const kt=pt.readValue(ut,yt);kt!=null&&(ot[0]=kt)}ot[0]===void 0&&(ot[0]=yt),ft&&ht===void 0&&ft.set(ot[0])}fillWildcards(ot)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(ot=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,ot),toResolve.delete(this)}cancel(){this.state==="scheduled"&&(toResolve.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const isCSSVar=At=>At.startsWith("--");function setStyle$1(At,ot,ut){isCSSVar(ot)?At.style.setProperty(ot,ut):At.style[ot]=ut}const supportsFlags={};function memoSupports(At,ot){const ut=memo$1(At);return()=>supportsFlags[ot]??ut()}const supportsScrollTimeline=memoSupports(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),supportsLinearEasing=memoSupports(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cubicBezierAsString=([At,ot,ut,pt])=>`cubic-bezier(${At}, ${ot}, ${ut}, ${pt})`,supportedWaapiEasing={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function mapEasingToNativeEasing(At,ot){if(At)return typeof At=="function"?supportsLinearEasing()?generateLinearEasing(At,ot):"ease-out":isBezierDefinition(At)?cubicBezierAsString(At):Array.isArray(At)?At.map(ut=>mapEasingToNativeEasing(ut,ot)||supportedWaapiEasing.easeOut):supportedWaapiEasing[At]}function startWaapiAnimation(At,ot,ut,{delay:pt=0,duration:ft=300,repeat:ht=0,repeatType:yt="loop",ease:kt="easeOut",times:Et}={},Ot=void 0){const _t={[ot]:ut};Et&&(_t.offset=Et);const Qt=mapEasingToNativeEasing(kt,ft);Array.isArray(Qt)&&(_t.easing=Qt);const vt={delay:pt,duration:ft,easing:Array.isArray(Qt)?"linear":Qt,fill:"both",iterations:ht+1,direction:yt==="reverse"?"alternate":"normal"};return Ot&&(vt.pseudoElement=Ot),At.animate(_t,vt)}function isGenerator(At){return typeof At=="function"&&"applyToOptions"in At}function applyGeneratorOptions({type:At,...ot}){return isGenerator(At)&&supportsLinearEasing()?At.applyToOptions(ot):(ot.duration??(ot.duration=300),ot.ease??(ot.ease="easeOut"),ot)}class NativeAnimation extends WithPromise{constructor(ot){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!ot)return;const{element:ut,name:pt,keyframes:ft,pseudoElement:ht,allowFlatten:yt=!1,finalKeyframe:kt,onComplete:Et}=ot;this.isPseudoElement=!!ht,this.allowFlatten=yt,this.options=ot,invariant(typeof ot.type!="string");const Ot=applyGeneratorOptions(ot);this.animation=startWaapiAnimation(ut,pt,ft,Ot,ht),Ot.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!ht){const _t=getFinalKeyframe$1(ft,this.options,kt,this.speed);this.updateMotionValue?this.updateMotionValue(_t):setStyle$1(ut,pt,_t),this.animation.cancel()}Et?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:ot}=this;ot==="idle"||ot==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const ot=this.options?.element;!this.isPseudoElement&&ot?.isConnected&&this.animation.commitStyles?.()}get duration(){const ot=this.animation.effect?.getComputedTiming?.().duration||0;return millisecondsToSeconds(Number(ot))}get iterationDuration(){const{delay:ot=0}=this.options||{};return this.duration+millisecondsToSeconds(ot)}get time(){return millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(ot){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=secondsToMilliseconds(ot)}get speed(){return this.animation.playbackRate}set speed(ot){ot<0&&(this.finishedTime=null),this.animation.playbackRate=ot}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(ot){this.manualStartTime=this.animation.startTime=ot}attachTimeline({timeline:ot,observe:ut}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,ot&&supportsScrollTimeline()?(this.animation.timeline=ot,noop$3):ut(this)}}const unsupportedEasingFunctions={anticipate,backInOut,circInOut};function isUnsupportedEase(At){return At in unsupportedEasingFunctions}function replaceStringEasing(At){typeof At.ease=="string"&&isUnsupportedEase(At.ease)&&(At.ease=unsupportedEasingFunctions[At.ease])}const sampleDelta=10;class NativeAnimationExtended extends NativeAnimation{constructor(ot){replaceStringEasing(ot),replaceTransitionType(ot),super(ot),ot.startTime!==void 0&&(this.startTime=ot.startTime),this.options=ot}updateMotionValue(ot){const{motionValue:ut,onUpdate:pt,onComplete:ft,element:ht,...yt}=this.options;if(!ut)return;if(ot!==void 0){ut.set(ot);return}const kt=new JSAnimation({...yt,autoplay:!1}),Et=Math.max(sampleDelta,time.now()-this.startTime),Ot=clamp$2(0,sampleDelta,Et-sampleDelta);ut.setWithVelocity(kt.sample(Math.max(0,Et-Ot)).value,kt.sample(Et).value,Ot),kt.stop()}}const isAnimatable=(At,ot)=>ot==="zIndex"?!1:!!(typeof At=="number"||Array.isArray(At)||typeof At=="string"&&(complex.test(At)||At==="0")&&!At.startsWith("url("));function hasKeyframesChanged(At){const ot=At[0];if(At.length===1)return!0;for(let ut=0;ut<At.length;ut++)if(At[ut]!==ot)return!0}function canAnimate(At,ot,ut,pt){const ft=At[0];if(ft===null)return!1;if(ot==="display"||ot==="visibility")return!0;const ht=At[At.length-1],yt=isAnimatable(ft,ot),kt=isAnimatable(ht,ot);return!yt||!kt?!1:hasKeyframesChanged(At)||(ut==="spring"||isGenerator(ut))&&pt}function makeAnimationInstant(At){At.duration=0,At.type="keyframes"}const acceleratedValues$1=new Set(["opacity","clipPath","filter","transform"]),supportsWaapi=memo$1(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function supportsBrowserAnimation(At){const{motionValue:ot,name:ut,repeatDelay:pt,repeatType:ft,damping:ht,type:yt}=At;if(!(ot?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:Et,transformTemplate:Ot}=ot.owner.getProps();return supportsWaapi()&&ut&&acceleratedValues$1.has(ut)&&(ut!=="transform"||!Ot)&&!Et&&!pt&&ft!=="mirror"&&ht!==0&&yt!=="inertia"}const MAX_RESOLVE_DELAY=40;class AsyncMotionValueAnimation extends WithPromise{constructor({autoplay:ot=!0,delay:ut=0,type:pt="keyframes",repeat:ft=0,repeatDelay:ht=0,repeatType:yt="loop",keyframes:kt,name:Et,motionValue:Ot,element:_t,...Qt}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=time.now();const vt={autoplay:ot,delay:ut,type:pt,repeat:ft,repeatDelay:ht,repeatType:yt,name:Et,motionValue:Ot,element:_t,...Qt},St=_t?.KeyframeResolver||KeyframeResolver;this.keyframeResolver=new St(kt,($t,Pt,Nt)=>this.onKeyframesResolved($t,Pt,vt,!Nt),Et,Ot,_t),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(ot,ut,pt,ft){this.keyframeResolver=void 0;const{name:ht,type:yt,velocity:kt,delay:Et,isHandoff:Ot,onUpdate:_t}=pt;this.resolvedAt=time.now(),canAnimate(ot,ht,yt,kt)||((MotionGlobalConfig.instantAnimations||!Et)&&_t?.(getFinalKeyframe$1(ot,pt,ut)),ot[0]=ot[ot.length-1],makeAnimationInstant(pt),pt.repeat=0);const vt={startTime:ft?this.resolvedAt?this.resolvedAt-this.createdAt>MAX_RESOLVE_DELAY?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:ut,...pt,keyframes:ot},St=!Ot&&supportsBrowserAnimation(vt),$t=vt.motionValue?.owner?.current,Pt=St?new NativeAnimationExtended({...vt,element:$t}):new JSAnimation(vt);Pt.finished.then(()=>{this.notifyFinished()}).catch(noop$3),this.pendingTimeline&&(this.stopTimeline=Pt.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=Pt}get finished(){return this._animation?this.animation.finished:this._finished}then(ot,ut){return this.finished.finally(ot).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),flushKeyframeResolvers()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(ot){this.animation.time=ot}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(ot){this.animation.speed=ot}get startTime(){return this.animation.startTime}attachTimeline(ot){return this._animation?this.stopTimeline=this.animation.attachTimeline(ot):this.pendingTimeline=ot,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class GroupAnimation{constructor(ot){this.stop=()=>this.runAll("stop"),this.animations=ot.filter(Boolean)}get finished(){return Promise.all(this.animations.map(ot=>ot.finished))}getAll(ot){return this.animations[0][ot]}setAll(ot,ut){for(let pt=0;pt<this.animations.length;pt++)this.animations[pt][ot]=ut}attachTimeline(ot){const ut=this.animations.map(pt=>pt.attachTimeline(ot));return()=>{ut.forEach((pt,ft)=>{pt&&pt(),this.animations[ft].stop()})}}get time(){return this.getAll("time")}set time(ot){this.setAll("time",ot)}get speed(){return this.getAll("speed")}set speed(ot){this.setAll("speed",ot)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return getMax(this.animations,"duration")}get iterationDuration(){return getMax(this.animations,"iterationDuration")}runAll(ot){this.animations.forEach(ut=>ut[ot]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function getMax(At,ot){let ut=0;for(let pt=0;pt<At.length;pt++){const ft=At[pt][ot];ft!==null&&ft>ut&&(ut=ft)}return ut}class GroupAnimationWithThen extends GroupAnimation{then(ot,ut){return this.finished.finally(ot).then(()=>{})}}function calcChildStagger(At,ot,ut,pt=0,ft=1){const ht=Array.from(At).sort((Ot,_t)=>Ot.sortNodePosition(_t)).indexOf(ot),yt=At.size,kt=(yt-1)*pt;return typeof ut=="function"?ut(ht,yt):ft===1?ht*pt:kt-ht*pt}const splitCSSVariableRegex=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function parseCSSVariable(At){const ot=splitCSSVariableRegex.exec(At);if(!ot)return[,];const[,ut,pt,ft]=ot;return[`--${ut??pt}`,ft]}function getVariableValue(At,ot,ut=1){const[pt,ft]=parseCSSVariable(At);if(!pt)return;const ht=window.getComputedStyle(ot).getPropertyValue(pt);if(ht){const yt=ht.trim();return isNumericalString(yt)?parseFloat(yt):yt}return isCSSVariableToken(ft)?getVariableValue(ft,ot,ut+1):ft}const underDampedSpring={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=At=>({type:"spring",stiffness:550,damping:At===0?2*Math.sqrt(550):30,restSpeed:10}),keyframesTransition={type:"keyframes",duration:.8},ease={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(At,{keyframes:ot})=>ot.length>2?keyframesTransition:transformProps.has(At)?At.startsWith("scale")?criticallyDampedSpring(ot[1]):underDampedSpring:ease,isNotNull=At=>At!==null;function getFinalKeyframe(At,{repeat:ot,repeatType:ut="loop"},pt){const ft=At.filter(isNotNull),ht=ot&&ut!=="loop"&&ot%2===1?0:ft.length-1;return ft[ht]}function resolveTransition(At,ot){if(At?.inherit&&ot){const{inherit:ut,...pt}=At;return{...ot,...pt}}return At}function getValueTransition$1(At,ot){const ut=At?.[ot]??At?.default??At;return ut!==At?resolveTransition(ut,At):ut}function isTransitionDefined({when:At,delay:ot,delayChildren:ut,staggerChildren:pt,staggerDirection:ft,repeat:ht,repeatType:yt,repeatDelay:kt,from:Et,elapsed:Ot,..._t}){return!!Object.keys(_t).length}const animateMotionValue=(At,ot,ut,pt={},ft,ht)=>yt=>{const kt=getValueTransition$1(pt,At)||{},Et=kt.delay||pt.delay||0;let{elapsed:Ot=0}=pt;Ot=Ot-secondsToMilliseconds(Et);const _t={keyframes:Array.isArray(ut)?ut:[null,ut],ease:"easeOut",velocity:ot.getVelocity(),...kt,delay:-Ot,onUpdate:vt=>{ot.set(vt),kt.onUpdate&&kt.onUpdate(vt)},onComplete:()=>{yt(),kt.onComplete&&kt.onComplete()},name:At,motionValue:ot,element:ht?void 0:ft};isTransitionDefined(kt)||Object.assign(_t,getDefaultTransition(At,_t)),_t.duration&&(_t.duration=secondsToMilliseconds(_t.duration)),_t.repeatDelay&&(_t.repeatDelay=secondsToMilliseconds(_t.repeatDelay)),_t.from!==void 0&&(_t.keyframes[0]=_t.from);let Qt=!1;if((_t.type===!1||_t.duration===0&&!_t.repeatDelay)&&(makeAnimationInstant(_t),_t.delay===0&&(Qt=!0)),(MotionGlobalConfig.instantAnimations||MotionGlobalConfig.skipAnimations||ft?.shouldSkipAnimations)&&(Qt=!0,makeAnimationInstant(_t),_t.delay=0),_t.allowFlatten=!kt.type&&!kt.ease,Qt&&!ht&&ot.get()!==void 0){const vt=getFinalKeyframe(_t.keyframes,kt);if(vt!==void 0){frame.update(()=>{_t.onUpdate(vt),_t.onComplete()});return}}return kt.isSync?new JSAnimation(_t):new AsyncMotionValueAnimation(_t)};function getValueState(At){const ot=[{},{}];return At?.values.forEach((ut,pt)=>{ot[0][pt]=ut.get(),ot[1][pt]=ut.getVelocity()}),ot}function resolveVariantFromProps(At,ot,ut,pt){if(typeof ot=="function"){const[ft,ht]=getValueState(pt);ot=ot(ut!==void 0?ut:At.custom,ft,ht)}if(typeof ot=="string"&&(ot=At.variants&&At.variants[ot]),typeof ot=="function"){const[ft,ht]=getValueState(pt);ot=ot(ut!==void 0?ut:At.custom,ft,ht)}return ot}function resolveVariant(At,ot,ut){const pt=At.getProps();return resolveVariantFromProps(pt,ot,ut!==void 0?ut:pt.custom,At)}const positionalKeys=new Set(["width","height","top","left","right","bottom",...transformPropOrder]),MAX_VELOCITY_DELTA=30,isFloat=At=>!isNaN(parseFloat(At));class MotionValue{constructor(ot,ut={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=pt=>{const ft=time.now();if(this.updatedAt!==ft&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(pt),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const ht of this.dependents)ht.dirty()},this.hasAnimated=!1,this.setCurrent(ot),this.owner=ut.owner}setCurrent(ot){this.current=ot,this.updatedAt=time.now(),this.canTrackVelocity===null&&ot!==void 0&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(ot=this.current){this.prevFrameValue=ot,this.prevUpdatedAt=this.updatedAt}onChange(ot){return this.on("change",ot)}on(ot,ut){this.events[ot]||(this.events[ot]=new SubscriptionManager);const pt=this.events[ot].add(ut);return ot==="change"?()=>{pt(),frame.read(()=>{this.events.change.getSize()||this.stop()})}:pt}clearListeners(){for(const ot in this.events)this.events[ot].clear()}attach(ot,ut){this.passiveEffect=ot,this.stopPassiveEffect=ut}set(ot){this.passiveEffect?this.passiveEffect(ot,this.updateAndNotify):this.updateAndNotify(ot)}setWithVelocity(ot,ut,pt){this.set(ut),this.prev=void 0,this.prevFrameValue=ot,this.prevUpdatedAt=this.updatedAt-pt}jump(ot,ut=!0){this.updateAndNotify(ot),this.prev=ot,this.prevUpdatedAt=this.prevFrameValue=void 0,ut&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(ot){this.dependents||(this.dependents=new Set),this.dependents.add(ot)}removeDependent(ot){this.dependents&&this.dependents.delete(ot)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const ot=time.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||ot-this.updatedAt>MAX_VELOCITY_DELTA)return 0;const ut=Math.min(this.updatedAt-this.prevUpdatedAt,MAX_VELOCITY_DELTA);return velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),ut)}start(ot){return this.stop(),new Promise(ut=>{this.hasAnimated=!0,this.animation=ot(ut),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function motionValue(At,ot){return new MotionValue(At,ot)}const isKeyframesTarget=At=>Array.isArray(At);function setMotionValue(At,ot,ut){At.hasValue(ot)?At.getValue(ot).set(ut):At.addValue(ot,motionValue(ut))}function resolveFinalValueInKeyframes(At){return isKeyframesTarget(At)?At[At.length-1]||0:At}function setTarget(At,ot){const ut=resolveVariant(At,ot);let{transitionEnd:pt={},transition:ft={},...ht}=ut||{};ht={...ht,...pt};for(const yt in ht){const kt=resolveFinalValueInKeyframes(ht[yt]);setMotionValue(At,yt,kt)}}const isMotionValue=At=>!!(At&&At.getVelocity);function isWillChangeMotionValue(At){return!!(isMotionValue(At)&&At.add)}function addValueToWillChange(At,ot){const ut=At.getValue("willChange");if(isWillChangeMotionValue(ut))return ut.add(ot);if(!ut&&MotionGlobalConfig.WillChange){const pt=new MotionGlobalConfig.WillChange("auto");At.addValue("willChange",pt),pt.add(ot)}}function camelToDash(At){return At.replace(/([A-Z])/g,ot=>`-${ot.toLowerCase()}`)}const optimizedAppearDataId="framerAppearId",optimizedAppearDataAttribute="data-"+camelToDash(optimizedAppearDataId);function getOptimisedAppearId(At){return At.props[optimizedAppearDataAttribute]}function shouldBlockAnimation({protectedKeys:At,needsAnimating:ot},ut){const pt=At.hasOwnProperty(ut)&&ot[ut]!==!0;return ot[ut]=!1,pt}function animateTarget(At,ot,{delay:ut=0,transitionOverride:pt,type:ft}={}){let{transition:ht,transitionEnd:yt,...kt}=ot;const Et=At.getDefaultTransition();ht=ht?resolveTransition(ht,Et):Et;const Ot=ht?.reduceMotion;pt&&(ht=pt);const _t=[],Qt=ft&&At.animationState&&At.animationState.getState()[ft];for(const vt in kt){const St=At.getValue(vt,At.latestValues[vt]??null),$t=kt[vt];if($t===void 0||Qt&&shouldBlockAnimation(Qt,vt))continue;const Pt={delay:ut,...getValueTransition$1(ht||{},vt)},Nt=St.get();if(Nt!==void 0&&!St.isAnimating&&!Array.isArray($t)&&$t===Nt&&!Pt.velocity)continue;let Lt=!1;if(window.MotionHandoffAnimation){const Zt=getOptimisedAppearId(At);if(Zt){const Ht=window.MotionHandoffAnimation(Zt,vt,frame);Ht!==null&&(Pt.startTime=Ht,Lt=!0)}}addValueToWillChange(At,vt);const qt=Ot??At.shouldReduceMotion;St.start(animateMotionValue(vt,St,$t,qt&&positionalKeys.has(vt)?{type:!1}:Pt,At,Lt));const jt=St.animation;jt&&_t.push(jt)}if(yt){const vt=()=>frame.update(()=>{yt&&setTarget(At,yt)});_t.length?Promise.all(_t).then(vt):vt()}return _t}function animateVariant(At,ot,ut={}){const pt=resolveVariant(At,ot,ut.type==="exit"?At.presenceContext?.custom:void 0);let{transition:ft=At.getDefaultTransition()||{}}=pt||{};ut.transitionOverride&&(ft=ut.transitionOverride);const ht=pt?()=>Promise.all(animateTarget(At,pt,ut)):()=>Promise.resolve(),yt=At.variantChildren&&At.variantChildren.size?(Et=0)=>{const{delayChildren:Ot=0,staggerChildren:_t,staggerDirection:Qt}=ft;return animateChildren(At,ot,Et,Ot,_t,Qt,ut)}:()=>Promise.resolve(),{when:kt}=ft;if(kt){const[Et,Ot]=kt==="beforeChildren"?[ht,yt]:[yt,ht];return Et().then(()=>Ot())}else return Promise.all([ht(),yt(ut.delay)])}function animateChildren(At,ot,ut=0,pt=0,ft=0,ht=1,yt){const kt=[];for(const Et of At.variantChildren)Et.notify("AnimationStart",ot),kt.push(animateVariant(Et,ot,{...yt,delay:ut+(typeof pt=="function"?0:pt)+calcChildStagger(At.variantChildren,Et,pt,ft,ht)}).then(()=>Et.notify("AnimationComplete",ot)));return Promise.all(kt)}function animateVisualElement(At,ot,ut={}){At.notify("AnimationStart",ot);let pt;if(Array.isArray(ot)){const ft=ot.map(ht=>animateVariant(At,ht,ut));pt=Promise.all(ft)}else if(typeof ot=="string")pt=animateVariant(At,ot,ut);else{const ft=typeof ot=="function"?resolveVariant(At,ot,ut.custom):ot;pt=Promise.all(animateTarget(At,ft,ut))}return pt.then(()=>{At.notify("AnimationComplete",ot)})}const auto={test:At=>At==="auto",parse:At=>At},testValueType=At=>ot=>ot.test(At),dimensionValueTypes=[number$2,px$1,percent$2,degrees,vw,vh,auto],findDimensionValueType=At=>dimensionValueTypes.find(testValueType(At));function isNone(At){return typeof At=="number"?At===0:At!==null?At==="none"||At==="0"||isZeroValueString(At):!0}const maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(At){const[ot,ut]=At.slice(0,-1).split("(");if(ot==="drop-shadow")return At;const[pt]=ut.match(floatRegex)||[];if(!pt)return At;const ft=ut.replace(pt,"");let ht=maxDefaults.has(ot)?1:0;return pt!==ut&&(ht*=100),ot+"("+ht+ft+")"}const functionRegex=/\b([a-z-]*)\(.*?\)/gu,filter$1={...complex,getAnimatableNone:At=>{const ot=At.match(functionRegex);return ot?ot.map(applyDefaultFilter).join(" "):At}},mask={...complex,getAnimatableNone:At=>{const ot=complex.parse(At);return complex.createTransformer(At)(ot.map(pt=>typeof pt=="number"?0:typeof pt=="object"?{...pt,alpha:1}:pt))}},int={...number$2,transform:Math.round},transformValueTypes={rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px$1,translateX:px$1,translateY:px$1,translateZ:px$1,x:px$1,y:px$1,z:px$1,perspective:px$1,transformPerspective:px$1,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px$1},numberValueTypes={borderWidth:px$1,borderTopWidth:px$1,borderRightWidth:px$1,borderBottomWidth:px$1,borderLeftWidth:px$1,borderRadius:px$1,borderTopLeftRadius:px$1,borderTopRightRadius:px$1,borderBottomRightRadius:px$1,borderBottomLeftRadius:px$1,width:px$1,maxWidth:px$1,height:px$1,maxHeight:px$1,top:px$1,right:px$1,bottom:px$1,left:px$1,inset:px$1,insetBlock:px$1,insetBlockStart:px$1,insetBlockEnd:px$1,insetInline:px$1,insetInlineStart:px$1,insetInlineEnd:px$1,padding:px$1,paddingTop:px$1,paddingRight:px$1,paddingBottom:px$1,paddingLeft:px$1,paddingBlock:px$1,paddingBlockStart:px$1,paddingBlockEnd:px$1,paddingInline:px$1,paddingInlineStart:px$1,paddingInlineEnd:px$1,margin:px$1,marginTop:px$1,marginRight:px$1,marginBottom:px$1,marginLeft:px$1,marginBlock:px$1,marginBlockStart:px$1,marginBlockEnd:px$1,marginInline:px$1,marginInlineStart:px$1,marginInlineEnd:px$1,fontSize:px$1,backgroundPositionX:px$1,backgroundPositionY:px$1,...transformValueTypes,zIndex:int,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},defaultValueTypes={...numberValueTypes,color:color$1,backgroundColor:color$1,outlineColor:color$1,fill:color$1,stroke:color$1,borderColor:color$1,borderTopColor:color$1,borderRightColor:color$1,borderBottomColor:color$1,borderLeftColor:color$1,filter:filter$1,WebkitFilter:filter$1,mask,WebkitMask:mask},getDefaultValueType=At=>defaultValueTypes[At],customTypes=new Set([filter$1,mask]);function getAnimatableNone(At,ot){let ut=getDefaultValueType(At);return customTypes.has(ut)||(ut=complex),ut.getAnimatableNone?ut.getAnimatableNone(ot):void 0}const invalidTemplates=new Set(["auto","none","0"]);function makeNoneKeyframesAnimatable(At,ot,ut){let pt=0,ft;for(;pt<At.length&&!ft;){const ht=At[pt];typeof ht=="string"&&!invalidTemplates.has(ht)&&analyseComplexValue(ht).values.length&&(ft=At[pt]),pt++}if(ft&&ut)for(const ht of ot)At[ht]=getAnimatableNone(ut,ft)}class DOMKeyframesResolver extends KeyframeResolver{constructor(ot,ut,pt,ft,ht){super(ot,ut,pt,ft,ht,!0)}readKeyframes(){const{unresolvedKeyframes:ot,element:ut,name:pt}=this;if(!ut||!ut.current)return;super.readKeyframes();for(let _t=0;_t<ot.length;_t++){let Qt=ot[_t];if(typeof Qt=="string"&&(Qt=Qt.trim(),isCSSVariableToken(Qt))){const vt=getVariableValue(Qt,ut.current);vt!==void 0&&(ot[_t]=vt),_t===ot.length-1&&(this.finalKeyframe=Qt)}}if(this.resolveNoneKeyframes(),!positionalKeys.has(pt)||ot.length!==2)return;const[ft,ht]=ot,yt=findDimensionValueType(ft),kt=findDimensionValueType(ht),Et=containsCSSVariable(ft),Ot=containsCSSVariable(ht);if(Et!==Ot&&positionalValues[pt]){this.needsMeasurement=!0;return}if(yt!==kt)if(isNumOrPxType(yt)&&isNumOrPxType(kt))for(let _t=0;_t<ot.length;_t++){const Qt=ot[_t];typeof Qt=="string"&&(ot[_t]=parseFloat(Qt))}else positionalValues[pt]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:ot,name:ut}=this,pt=[];for(let ft=0;ft<ot.length;ft++)(ot[ft]===null||isNone(ot[ft]))&&pt.push(ft);pt.length&&makeNoneKeyframesAnimatable(ot,pt,ut)}measureInitialState(){const{element:ot,unresolvedKeyframes:ut,name:pt}=this;if(!ot||!ot.current)return;pt==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=positionalValues[pt](ot.measureViewportBox(),window.getComputedStyle(ot.current)),ut[0]=this.measuredOrigin;const ft=ut[ut.length-1];ft!==void 0&&ot.getValue(pt,ft).jump(ft,!1)}measureEndState(){const{element:ot,name:ut,unresolvedKeyframes:pt}=this;if(!ot||!ot.current)return;const ft=ot.getValue(ut);ft&&ft.jump(this.measuredOrigin,!1);const ht=pt.length-1,yt=pt[ht];pt[ht]=positionalValues[ut](ot.measureViewportBox(),window.getComputedStyle(ot.current)),yt!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=yt),this.removedTransforms?.length&&this.removedTransforms.forEach(([kt,Et])=>{ot.getValue(kt).set(Et)}),this.resolveNoneKeyframes()}}const acceleratedValues=new Set(["opacity","clipPath","filter","transform"]);function resolveElements(At,ot,ut){if(At==null)return[];if(At instanceof EventTarget)return[At];if(typeof At=="string"){let pt=document;ot&&(pt=ot.current);const ft=ut?.[At]??pt.querySelectorAll(At);return ft?Array.from(ft):[]}return Array.from(At).filter(pt=>pt!=null)}const getValueAsType=(At,ot)=>ot&&typeof At=="number"?ot.transform(At):At;function isHTMLElement$2(At){return isObject$1(At)&&"offsetHeight"in At}const{schedule:microtask}=createRenderBatcher(queueMicrotask,!1),isDragging={x:!1,y:!1};function isDragActive(){return isDragging.x||isDragging.y}function setDragLock(At){return At==="x"||At==="y"?isDragging[At]?null:(isDragging[At]=!0,()=>{isDragging[At]=!1}):isDragging.x||isDragging.y?null:(isDragging.x=isDragging.y=!0,()=>{isDragging.x=isDragging.y=!1})}function setupGesture(At,ot){const ut=resolveElements(At),pt=new AbortController,ft={passive:!0,...ot,signal:pt.signal};return[ut,ft,()=>pt.abort()]}function isValidHover(At){return!(At.pointerType==="touch"||isDragActive())}function hover(At,ot,ut={}){const[pt,ft,ht]=setupGesture(At,ut);return pt.forEach(yt=>{let kt=!1,Et=!1,Ot;const _t=()=>{yt.removeEventListener("pointerleave",$t)},Qt=Nt=>{Ot&&(Ot(Nt),Ot=void 0),_t()},vt=Nt=>{kt=!1,window.removeEventListener("pointerup",vt),window.removeEventListener("pointercancel",vt),Et&&(Et=!1,Qt(Nt))},St=()=>{kt=!0,window.addEventListener("pointerup",vt,ft),window.addEventListener("pointercancel",vt,ft)},$t=Nt=>{if(Nt.pointerType!=="touch"){if(kt){Et=!0;return}Qt(Nt)}},Pt=Nt=>{if(!isValidHover(Nt))return;Et=!1;const Lt=ot(yt,Nt);typeof Lt=="function"&&(Ot=Lt,yt.addEventListener("pointerleave",$t,ft))};yt.addEventListener("pointerenter",Pt,ft),yt.addEventListener("pointerdown",St,ft)}),ht}const isNodeOrChild=(At,ot)=>ot?At===ot?!0:isNodeOrChild(At,ot.parentElement):!1,isPrimaryPointer=At=>At.pointerType==="mouse"?typeof At.button!="number"||At.button<=0:At.isPrimary!==!1,keyboardAccessibleElements=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function isElementKeyboardAccessible(At){return keyboardAccessibleElements.has(At.tagName)||At.isContentEditable===!0}const textInputElements=new Set(["INPUT","SELECT","TEXTAREA"]);function isElementTextInput(At){return textInputElements.has(At.tagName)||At.isContentEditable===!0}const isPressing=new WeakSet;function filterEvents(At){return ot=>{ot.key==="Enter"&&At(ot)}}function firePointerEvent(At,ot){At.dispatchEvent(new PointerEvent("pointer"+ot,{isPrimary:!0,bubbles:!0}))}const enableKeyboardPress=(At,ot)=>{const ut=At.currentTarget;if(!ut)return;const pt=filterEvents(()=>{if(isPressing.has(ut))return;firePointerEvent(ut,"down");const ft=filterEvents(()=>{firePointerEvent(ut,"up")}),ht=()=>firePointerEvent(ut,"cancel");ut.addEventListener("keyup",ft,ot),ut.addEventListener("blur",ht,ot)});ut.addEventListener("keydown",pt,ot),ut.addEventListener("blur",()=>ut.removeEventListener("keydown",pt),ot)};function isValidPressEvent(At){return isPrimaryPointer(At)&&!isDragActive()}const claimedPointerDownEvents=new WeakSet;function press(At,ot,ut={}){const[pt,ft,ht]=setupGesture(At,ut),yt=kt=>{const Et=kt.currentTarget;if(!isValidPressEvent(kt)||claimedPointerDownEvents.has(kt))return;isPressing.add(Et),ut.stopPropagation&&claimedPointerDownEvents.add(kt);const Ot=ot(Et,kt),_t=(St,$t)=>{window.removeEventListener("pointerup",Qt),window.removeEventListener("pointercancel",vt),isPressing.has(Et)&&isPressing.delete(Et),isValidPressEvent(St)&&typeof Ot=="function"&&Ot(St,{success:$t})},Qt=St=>{_t(St,Et===window||Et===document||ut.useGlobalTarget||isNodeOrChild(Et,St.target))},vt=St=>{_t(St,!1)};window.addEventListener("pointerup",Qt,ft),window.addEventListener("pointercancel",vt,ft)};return pt.forEach(kt=>{(ut.useGlobalTarget?window:kt).addEventListener("pointerdown",yt,ft),isHTMLElement$2(kt)&&(kt.addEventListener("focus",Ot=>enableKeyboardPress(Ot,ft)),!isElementKeyboardAccessible(kt)&&!kt.hasAttribute("tabindex")&&(kt.tabIndex=0))}),ht}function isSVGElement$2(At){return isObject$1(At)&&"ownerSVGElement"in At}const resizeHandlers=new WeakMap;let observer;const getSize=(At,ot,ut)=>(pt,ft)=>ft&&ft[0]?ft[0][At+"Size"]:isSVGElement$2(pt)&&"getBBox"in pt?pt.getBBox()[ot]:pt[ut],getWidth=getSize("inline","width","offsetWidth"),getHeight=getSize("block","height","offsetHeight");function notifyTarget({target:At,borderBoxSize:ot}){resizeHandlers.get(At)?.forEach(ut=>{ut(At,{get width(){return getWidth(At,ot)},get height(){return getHeight(At,ot)}})})}function notifyAll(At){At.forEach(notifyTarget)}function createResizeObserver(){typeof ResizeObserver>"u"||(observer=new ResizeObserver(notifyAll))}function resizeElement(At,ot){observer||createResizeObserver();const ut=resolveElements(At);return ut.forEach(pt=>{let ft=resizeHandlers.get(pt);ft||(ft=new Set,resizeHandlers.set(pt,ft)),ft.add(ot),observer?.observe(pt)}),()=>{ut.forEach(pt=>{const ft=resizeHandlers.get(pt);ft?.delete(ot),ft?.size||observer?.unobserve(pt)})}}const windowCallbacks=new Set;let windowResizeHandler;function createWindowResizeHandler(){windowResizeHandler=()=>{const At={get width(){return window.innerWidth},get height(){return window.innerHeight}};windowCallbacks.forEach(ot=>ot(At))},window.addEventListener("resize",windowResizeHandler)}function resizeWindow(At){return windowCallbacks.add(At),windowResizeHandler||createWindowResizeHandler(),()=>{windowCallbacks.delete(At),!windowCallbacks.size&&typeof windowResizeHandler=="function"&&(window.removeEventListener("resize",windowResizeHandler),windowResizeHandler=void 0)}}function resize(At,ot){return typeof At=="function"?resizeWindow(At):resizeElement(At,ot)}function isSVGSVGElement(At){return isSVGElement$2(At)&&At.tagName==="svg"}const valueTypes=[...dimensionValueTypes,color$1,complex],findValueType=At=>valueTypes.find(testValueType(At)),createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()}),visualElementStore=new WeakMap;function isAnimationControls(At){return At!==null&&typeof At=="object"&&typeof At.start=="function"}function isVariantLabel(At){return typeof At=="string"||Array.isArray(At)}const variantPriorityOrder=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],variantProps=["initial",...variantPriorityOrder];function isControllingVariants(At){return isAnimationControls(At.animate)||variantProps.some(ot=>isVariantLabel(At[ot]))}function isVariantNode(At){return!!(isControllingVariants(At)||At.variants)}function updateMotionValuesFromProps(At,ot,ut){for(const pt in ot){const ft=ot[pt],ht=ut[pt];if(isMotionValue(ft))At.addValue(pt,ft);else if(isMotionValue(ht))At.addValue(pt,motionValue(ft,{owner:At}));else if(ht!==ft)if(At.hasValue(pt)){const yt=At.getValue(pt);yt.liveStyle===!0?yt.jump(ft):yt.hasAnimated||yt.set(ft)}else{const yt=At.getStaticValue(pt);At.addValue(pt,motionValue(yt!==void 0?yt:ft,{owner:At}))}}for(const pt in ut)ot[pt]===void 0&&At.removeValue(pt);return ot}const prefersReducedMotion={current:null},hasReducedMotionListener={current:!1},isBrowser=typeof window<"u";function initPrefersReducedMotion(){if(hasReducedMotionListener.current=!0,!!isBrowser)if(window.matchMedia){const At=window.matchMedia("(prefers-reduced-motion)"),ot=()=>prefersReducedMotion.current=At.matches;At.addEventListener("change",ot),ot()}else prefersReducedMotion.current=!1}const propEventHandlers=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let featureDefinitions={};function setFeatureDefinitions(At){featureDefinitions=At}function getFeatureDefinitions(){return featureDefinitions}class VisualElement{scrapeMotionValuesFromProps(ot,ut,pt){return{}}constructor({parent:ot,props:ut,presenceContext:pt,reducedMotionConfig:ft,skipAnimations:ht,blockInitialAnimation:yt,visualState:kt},Et={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const St=time.now();this.renderScheduledAt<St&&(this.renderScheduledAt=St,frame.render(this.render,!1,!0))};const{latestValues:Ot,renderState:_t}=kt;this.latestValues=Ot,this.baseTarget={...Ot},this.initialValues=ut.initial?{...Ot}:{},this.renderState=_t,this.parent=ot,this.props=ut,this.presenceContext=pt,this.depth=ot?ot.depth+1:0,this.reducedMotionConfig=ft,this.skipAnimationsConfig=ht,this.options=Et,this.blockInitialAnimation=!!yt,this.isControllingVariants=isControllingVariants(ut),this.isVariantNode=isVariantNode(ut),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(ot&&ot.current);const{willChange:Qt,...vt}=this.scrapeMotionValuesFromProps(ut,{},this);for(const St in vt){const $t=vt[St];Ot[St]!==void 0&&isMotionValue($t)&&$t.set(Ot[St])}}mount(ot){if(this.hasBeenMounted)for(const ut in this.initialValues)this.values.get(ut)?.jump(this.initialValues[ut]),this.latestValues[ut]=this.initialValues[ut];this.current=ot,visualElementStore.set(ot,this),this.projection&&!this.projection.instance&&this.projection.mount(ot),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((ut,pt)=>this.bindToMotionValue(pt,ut)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(hasReducedMotionListener.current||initPrefersReducedMotion(),this.shouldReduceMotion=prefersReducedMotion.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),cancelFrame(this.notifyUpdate),cancelFrame(this.render),this.valueSubscriptions.forEach(ot=>ot()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const ot in this.events)this.events[ot].clear();for(const ot in this.features){const ut=this.features[ot];ut&&(ut.unmount(),ut.isMounted=!1)}this.current=null}addChild(ot){this.children.add(ot),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(ot)}removeChild(ot){this.children.delete(ot),this.enteringChildren&&this.enteringChildren.delete(ot)}bindToMotionValue(ot,ut){if(this.valueSubscriptions.has(ot)&&this.valueSubscriptions.get(ot)(),ut.accelerate&&acceleratedValues.has(ot)&&this.current instanceof HTMLElement){const{factory:yt,keyframes:kt,times:Et,ease:Ot,duration:_t}=ut.accelerate,Qt=new NativeAnimation({element:this.current,name:ot,keyframes:kt,times:Et,ease:Ot,duration:secondsToMilliseconds(_t)}),vt=yt(Qt);this.valueSubscriptions.set(ot,()=>{vt(),Qt.cancel()});return}const pt=transformProps.has(ot);pt&&this.onBindTransform&&this.onBindTransform();const ft=ut.on("change",yt=>{this.latestValues[ot]=yt,this.props.onUpdate&&frame.preRender(this.notifyUpdate),pt&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let ht;typeof window<"u"&&window.MotionCheckAppearSync&&(ht=window.MotionCheckAppearSync(this,ot,ut)),this.valueSubscriptions.set(ot,()=>{ft(),ht&&ht(),ut.owner&&ut.stop()})}sortNodePosition(ot){return!this.current||!this.sortInstanceNodePosition||this.type!==ot.type?0:this.sortInstanceNodePosition(this.current,ot.current)}updateFeatures(){let ot="animation";for(ot in featureDefinitions){const ut=featureDefinitions[ot];if(!ut)continue;const{isEnabled:pt,Feature:ft}=ut;if(!this.features[ot]&&ft&&pt(this.props)&&(this.features[ot]=new ft(this)),this.features[ot]){const ht=this.features[ot];ht.isMounted?ht.update():(ht.mount(),ht.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(ot){return this.latestValues[ot]}setStaticValue(ot,ut){this.latestValues[ot]=ut}update(ot,ut){(ot.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=ot,this.prevPresenceContext=this.presenceContext,this.presenceContext=ut;for(let pt=0;pt<propEventHandlers.length;pt++){const ft=propEventHandlers[pt];this.propEventSubscriptions[ft]&&(this.propEventSubscriptions[ft](),delete this.propEventSubscriptions[ft]);const ht="on"+ft,yt=ot[ht];yt&&(this.propEventSubscriptions[ft]=this.on(ft,yt))}this.prevMotionValues=updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(ot,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(ot){return this.props.variants?this.props.variants[ot]: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(ot){const ut=this.getClosestVariantNode();if(ut)return ut.variantChildren&&ut.variantChildren.add(ot),()=>ut.variantChildren.delete(ot)}addValue(ot,ut){const pt=this.values.get(ot);ut!==pt&&(pt&&this.removeValue(ot),this.bindToMotionValue(ot,ut),this.values.set(ot,ut),this.latestValues[ot]=ut.get())}removeValue(ot){this.values.delete(ot);const ut=this.valueSubscriptions.get(ot);ut&&(ut(),this.valueSubscriptions.delete(ot)),delete this.latestValues[ot],this.removeValueFromRenderState(ot,this.renderState)}hasValue(ot){return this.values.has(ot)}getValue(ot,ut){if(this.props.values&&this.props.values[ot])return this.props.values[ot];let pt=this.values.get(ot);return pt===void 0&&ut!==void 0&&(pt=motionValue(ut===null?void 0:ut,{owner:this}),this.addValue(ot,pt)),pt}readValue(ot,ut){let pt=this.latestValues[ot]!==void 0||!this.current?this.latestValues[ot]:this.getBaseTargetFromProps(this.props,ot)??this.readValueFromInstance(this.current,ot,this.options);return pt!=null&&(typeof pt=="string"&&(isNumericalString(pt)||isZeroValueString(pt))?pt=parseFloat(pt):!findValueType(pt)&&complex.test(ut)&&(pt=getAnimatableNone(ot,ut)),this.setBaseTarget(ot,isMotionValue(pt)?pt.get():pt)),isMotionValue(pt)?pt.get():pt}setBaseTarget(ot,ut){this.baseTarget[ot]=ut}getBaseTarget(ot){const{initial:ut}=this.props;let pt;if(typeof ut=="string"||typeof ut=="object"){const ht=resolveVariantFromProps(this.props,ut,this.presenceContext?.custom);ht&&(pt=ht[ot])}if(ut&&pt!==void 0)return pt;const ft=this.getBaseTargetFromProps(this.props,ot);return ft!==void 0&&!isMotionValue(ft)?ft:this.initialValues[ot]!==void 0&&pt===void 0?void 0:this.baseTarget[ot]}on(ot,ut){return this.events[ot]||(this.events[ot]=new SubscriptionManager),this.events[ot].add(ut)}notify(ot,...ut){this.events[ot]&&this.events[ot].notify(...ut)}scheduleRenderMicrotask(){microtask.render(this.render)}}class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(ot,ut){return ot.compareDocumentPosition(ut)&2?1:-1}getBaseTargetFromProps(ot,ut){const pt=ot.style;return pt?pt[ut]:void 0}removeValueFromRenderState(ot,{vars:ut,style:pt}){delete ut[ot],delete pt[ot]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:ot}=this.props;isMotionValue(ot)&&(this.childSubscription=ot.on("change",ut=>{this.current&&(this.current.textContent=`${ut}`)}))}}class Feature{constructor(ot){this.isMounted=!1,this.node=ot}update(){}}function convertBoundingBoxToBox({top:At,left:ot,right:ut,bottom:pt}){return{x:{min:ot,max:ut},y:{min:At,max:pt}}}function convertBoxToBoundingBox({x:At,y:ot}){return{top:ot.min,right:At.max,bottom:ot.max,left:At.min}}function transformBoxPoints(At,ot){if(!ot)return At;const ut=ot({x:At.left,y:At.top}),pt=ot({x:At.right,y:At.bottom});return{top:ut.y,left:ut.x,bottom:pt.y,right:pt.x}}function isIdentityScale(At){return At===void 0||At===1}function hasScale({scale:At,scaleX:ot,scaleY:ut}){return!isIdentityScale(At)||!isIdentityScale(ot)||!isIdentityScale(ut)}function hasTransform(At){return hasScale(At)||has2DTranslate(At)||At.z||At.rotate||At.rotateX||At.rotateY||At.skewX||At.skewY}function has2DTranslate(At){return is2DTranslate(At.x)||is2DTranslate(At.y)}function is2DTranslate(At){return At&&At!=="0%"}function scalePoint(At,ot,ut){const pt=At-ut,ft=ot*pt;return ut+ft}function applyPointDelta(At,ot,ut,pt,ft){return ft!==void 0&&(At=scalePoint(At,ft,pt)),scalePoint(At,ut,pt)+ot}function applyAxisDelta(At,ot=0,ut=1,pt,ft){At.min=applyPointDelta(At.min,ot,ut,pt,ft),At.max=applyPointDelta(At.max,ot,ut,pt,ft)}function applyBoxDelta(At,{x:ot,y:ut}){applyAxisDelta(At.x,ot.translate,ot.scale,ot.originPoint),applyAxisDelta(At.y,ut.translate,ut.scale,ut.originPoint)}const TREE_SCALE_SNAP_MIN=.999999999999,TREE_SCALE_SNAP_MAX=1.0000000000001;function applyTreeDeltas(At,ot,ut,pt=!1){const ft=ut.length;if(!ft)return;ot.x=ot.y=1;let ht,yt;for(let kt=0;kt<ft;kt++){ht=ut[kt],yt=ht.projectionDelta;const{visualElement:Et}=ht.options;Et&&Et.props.style&&Et.props.style.display==="contents"||(pt&&ht.options.layoutScroll&&ht.scroll&&ht!==ht.root&&transformBox(At,{x:-ht.scroll.offset.x,y:-ht.scroll.offset.y}),yt&&(ot.x*=yt.x.scale,ot.y*=yt.y.scale,applyBoxDelta(At,yt)),pt&&hasTransform(ht.latestValues)&&transformBox(At,ht.latestValues))}ot.x<TREE_SCALE_SNAP_MAX&&ot.x>TREE_SCALE_SNAP_MIN&&(ot.x=1),ot.y<TREE_SCALE_SNAP_MAX&&ot.y>TREE_SCALE_SNAP_MIN&&(ot.y=1)}function translateAxis(At,ot){At.min=At.min+ot,At.max=At.max+ot}function transformAxis(At,ot,ut,pt,ft=.5){const ht=mixNumber$1(At.min,At.max,ft);applyAxisDelta(At,ot,ut,ht,pt)}function transformBox(At,ot){transformAxis(At.x,ot.x,ot.scaleX,ot.scale,ot.originX),transformAxis(At.y,ot.y,ot.scaleY,ot.scale,ot.originY)}function measureViewportBox(At,ot){return convertBoundingBoxToBox(transformBoxPoints(At.getBoundingClientRect(),ot))}function measurePageBox(At,ot,ut){const pt=measureViewportBox(At,ut),{scroll:ft}=ot;return ft&&(translateAxis(pt.x,ft.offset.x),translateAxis(pt.y,ft.offset.y)),pt}const translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},numTransforms=transformPropOrder.length;function buildTransform(At,ot,ut){let pt="",ft=!0;for(let ht=0;ht<numTransforms;ht++){const yt=transformPropOrder[ht],kt=At[yt];if(kt===void 0)continue;let Et=!0;if(typeof kt=="number")Et=kt===(yt.startsWith("scale")?1:0);else{const Ot=parseFloat(kt);Et=yt.startsWith("scale")?Ot===1:Ot===0}if(!Et||ut){const Ot=getValueAsType(kt,numberValueTypes[yt]);if(!Et){ft=!1;const _t=translateAlias[yt]||yt;pt+=`${_t}(${Ot}) `}ut&&(ot[yt]=Ot)}}return pt=pt.trim(),ut?pt=ut(ot,ft?"":pt):ft&&(pt="none"),pt}function buildHTMLStyles(At,ot,ut){const{style:pt,vars:ft,transformOrigin:ht}=At;let yt=!1,kt=!1;for(const Et in ot){const Ot=ot[Et];if(transformProps.has(Et)){yt=!0;continue}else if(isCSSVariableName(Et)){ft[Et]=Ot;continue}else{const _t=getValueAsType(Ot,numberValueTypes[Et]);Et.startsWith("origin")?(kt=!0,ht[Et]=_t):pt[Et]=_t}}if(ot.transform||(yt||ut?pt.transform=buildTransform(ot,At.transform,ut):pt.transform&&(pt.transform="none")),kt){const{originX:Et="50%",originY:Ot="50%",originZ:_t=0}=ht;pt.transformOrigin=`${Et} ${Ot} ${_t}`}}function renderHTML(At,{style:ot,vars:ut},pt,ft){const ht=At.style;let yt;for(yt in ot)ht[yt]=ot[yt];ft?.applyProjectionStyles(ht,pt);for(yt in ut)ht.setProperty(yt,ut[yt])}function pixelsToPercent(At,ot){return ot.max===ot.min?0:At/(ot.max-ot.min)*100}const correctBorderRadius={correct:(At,ot)=>{if(!ot.target)return At;if(typeof At=="string")if(px$1.test(At))At=parseFloat(At);else return At;const ut=pixelsToPercent(At,ot.target.x),pt=pixelsToPercent(At,ot.target.y);return`${ut}% ${pt}%`}},correctBoxShadow={correct:(At,{treeScale:ot,projectionDelta:ut})=>{const pt=At,ft=complex.parse(At);if(ft.length>5)return pt;const ht=complex.createTransformer(At),yt=typeof ft[0]!="number"?1:0,kt=ut.x.scale*ot.x,Et=ut.y.scale*ot.y;ft[0+yt]/=kt,ft[1+yt]/=Et;const Ot=mixNumber$1(kt,Et,.5);return typeof ft[2+yt]=="number"&&(ft[2+yt]/=Ot),typeof ft[3+yt]=="number"&&(ft[3+yt]/=Ot),ht(ft)}},scaleCorrectors={borderRadius:{...correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:correctBorderRadius,borderTopRightRadius:correctBorderRadius,borderBottomLeftRadius:correctBorderRadius,borderBottomRightRadius:correctBorderRadius,boxShadow:correctBoxShadow};function isForcedMotionValue(At,{layout:ot,layoutId:ut}){return transformProps.has(At)||At.startsWith("origin")||(ot||ut!==void 0)&&(!!scaleCorrectors[At]||At==="opacity")}function scrapeMotionValuesFromProps$1(At,ot,ut){const pt=At.style,ft=ot?.style,ht={};if(!pt)return ht;for(const yt in pt)(isMotionValue(pt[yt])||ft&&isMotionValue(ft[yt])||isForcedMotionValue(yt,At)||ut?.getValue(yt)?.liveStyle!==void 0)&&(ht[yt]=pt[yt]);return ht}function getComputedStyle$2(At){return window.getComputedStyle(At)}class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(ot,ut){if(transformProps.has(ut))return this.projection?.isProjecting?defaultTransformValue(ut):readTransformValue(ot,ut);{const pt=getComputedStyle$2(ot),ft=(isCSSVariableName(ut)?pt.getPropertyValue(ut):pt[ut])||0;return typeof ft=="string"?ft.trim():ft}}measureInstanceViewportBox(ot,{transformPagePoint:ut}){return measureViewportBox(ot,ut)}build(ot,ut,pt){buildHTMLStyles(ot,ut,pt.transformTemplate)}scrapeMotionValuesFromProps(ot,ut,pt){return scrapeMotionValuesFromProps$1(ot,ut,pt)}}function isObjectKey(At,ot){return At in ot}class ObjectVisualElement extends VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(ot,ut){if(isObjectKey(ut,ot)){const pt=ot[ut];if(typeof pt=="string"||typeof pt=="number")return pt}}getBaseTargetFromProps(){}removeValueFromRenderState(ot,ut){delete ut.output[ot]}measureInstanceViewportBox(){return createBox()}build(ot,ut){Object.assign(ot.output,ut)}renderInstance(ot,{output:ut}){Object.assign(ot,ut)}sortInstanceNodePosition(){return 0}}const dashKeys={offset:"stroke-dashoffset",array:"stroke-dasharray"},camelKeys={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath(At,ot,ut=1,pt=0,ft=!0){At.pathLength=1;const ht=ft?dashKeys:camelKeys;At[ht.offset]=`${-pt}`,At[ht.array]=`${ot} ${ut}`}const cssMotionPathProperties=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function buildSVGAttrs(At,{attrX:ot,attrY:ut,attrScale:pt,pathLength:ft,pathSpacing:ht=1,pathOffset:yt=0,...kt},Et,Ot,_t){if(buildHTMLStyles(At,kt,Ot),Et){At.style.viewBox&&(At.attrs.viewBox=At.style.viewBox);return}At.attrs=At.style,At.style={};const{attrs:Qt,style:vt}=At;Qt.transform&&(vt.transform=Qt.transform,delete Qt.transform),(vt.transform||Qt.transformOrigin)&&(vt.transformOrigin=Qt.transformOrigin??"50% 50%",delete Qt.transformOrigin),vt.transform&&(vt.transformBox=_t?.transformBox??"fill-box",delete Qt.transformBox);for(const St of cssMotionPathProperties)Qt[St]!==void 0&&(vt[St]=Qt[St],delete Qt[St]);ot!==void 0&&(Qt.x=ot),ut!==void 0&&(Qt.y=ut),pt!==void 0&&(Qt.scale=pt),ft!==void 0&&buildSVGPath(Qt,ft,ht,yt,!1)}const camelCaseAttributes=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"]),isSVGTag=At=>typeof At=="string"&&At.toLowerCase()==="svg";function renderSVG(At,ot,ut,pt){renderHTML(At,ot,void 0,pt);for(const ft in ot.attrs)At.setAttribute(camelCaseAttributes.has(ft)?ft:camelToDash(ft),ot.attrs[ft])}function scrapeMotionValuesFromProps(At,ot,ut){const pt=scrapeMotionValuesFromProps$1(At,ot,ut);for(const ft in At)if(isMotionValue(At[ft])||isMotionValue(ot[ft])){const ht=transformPropOrder.indexOf(ft)!==-1?"attr"+ft.charAt(0).toUpperCase()+ft.substring(1):ft;pt[ht]=At[ft]}return pt}class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(ot,ut){return ot[ut]}readValueFromInstance(ot,ut){if(transformProps.has(ut)){const pt=getDefaultValueType(ut);return pt&&pt.default||0}return ut=camelCaseAttributes.has(ut)?ut:camelToDash(ut),ot.getAttribute(ut)}scrapeMotionValuesFromProps(ot,ut,pt){return scrapeMotionValuesFromProps(ot,ut,pt)}build(ot,ut,pt){buildSVGAttrs(ot,ut,this.isSVGTag,pt.transformTemplate,pt.style)}renderInstance(ot,ut,pt,ft){renderSVG(ot,ut,pt,ft)}mount(ot){this.isSVGTag=isSVGTag(ot.tagName),super.mount(ot)}}const numVariantProps=variantProps.length;function getVariantContext(At){if(!At)return;if(!At.isControllingVariants){const ut=At.parent?getVariantContext(At.parent)||{}:{};return At.props.initial!==void 0&&(ut.initial=At.props.initial),ut}const ot={};for(let ut=0;ut<numVariantProps;ut++){const pt=variantProps[ut],ft=At.props[pt];(isVariantLabel(ft)||ft===!1)&&(ot[pt]=ft)}return ot}function shallowCompare(At,ot){if(!Array.isArray(ot))return!1;const ut=ot.length;if(ut!==At.length)return!1;for(let pt=0;pt<ut;pt++)if(ot[pt]!==At[pt])return!1;return!0}const reversePriorityOrder=[...variantPriorityOrder].reverse(),numAnimationTypes=variantPriorityOrder.length;function createAnimateFunction(At){return ot=>Promise.all(ot.map(({animation:ut,options:pt})=>animateVisualElement(At,ut,pt)))}function createAnimationState(At){let ot=createAnimateFunction(At),ut=createState$1(),pt=!0;const ft=Et=>(Ot,_t)=>{const Qt=resolveVariant(At,_t,Et==="exit"?At.presenceContext?.custom:void 0);if(Qt){const{transition:vt,transitionEnd:St,...$t}=Qt;Ot={...Ot,...$t,...St}}return Ot};function ht(Et){ot=Et(At)}function yt(Et){const{props:Ot}=At,_t=getVariantContext(At.parent)||{},Qt=[],vt=new Set;let St={},$t=1/0;for(let Nt=0;Nt<numAnimationTypes;Nt++){const Lt=reversePriorityOrder[Nt],qt=ut[Lt],jt=Ot[Lt]!==void 0?Ot[Lt]:_t[Lt],Zt=isVariantLabel(jt),Ht=Lt===Et?qt.isActive:null;Ht===!1&&($t=Nt);let Wt=jt===_t[Lt]&&jt!==Ot[Lt]&&Zt;if(Wt&&pt&&At.manuallyAnimateOnMount&&(Wt=!1),qt.protectedKeys={...St},!qt.isActive&&Ht===null||!jt&&!qt.prevProp||isAnimationControls(jt)||typeof jt=="boolean")continue;if(Lt==="exit"&&qt.isActive&&Ht!==!0){qt.prevResolvedValues&&(St={...St,...qt.prevResolvedValues});continue}const wn=checkVariantsDidChange(qt.prevProp,jt);let Qn=wn||Lt===Et&&qt.isActive&&!Wt&&Zt||Nt>$t&&Zt,Jt=!1;const Gn=Array.isArray(jt)?jt:[jt];let Jn=Gn.reduce(ft(Lt),{});Ht===!1&&(Jn={});const{prevResolvedValues:Vn={}}=qt,Fn={...Vn,...Jn},Xn=lr=>{Qn=!0,vt.has(lr)&&(Jt=!0,vt.delete(lr)),qt.needsAnimating[lr]=!0;const nr=At.getValue(lr);nr&&(nr.liveStyle=!1)};for(const lr in Fn){const nr=Jn[lr],mr=Vn[lr];if(St.hasOwnProperty(lr))continue;let Zn=!1;isKeyframesTarget(nr)&&isKeyframesTarget(mr)?Zn=!shallowCompare(nr,mr):Zn=nr!==mr,Zn?nr!=null?Xn(lr):vt.add(lr):nr!==void 0&&vt.has(lr)?Xn(lr):qt.protectedKeys[lr]=!0}qt.prevProp=jt,qt.prevResolvedValues=Jn,qt.isActive&&(St={...St,...Jn}),pt&&At.blockInitialAnimation&&(Qn=!1);const Ar=Wt&&wn;Qn&&(!Ar||Jt)&&Qt.push(...Gn.map(lr=>{const nr={type:Lt};if(typeof lr=="string"&&pt&&!Ar&&At.manuallyAnimateOnMount&&At.parent){const{parent:mr}=At,Zn=resolveVariant(mr,lr);if(mr.enteringChildren&&Zn){const{delayChildren:ur}=Zn.transition||{};nr.delay=calcChildStagger(mr.enteringChildren,At,ur)}}return{animation:lr,options:nr}}))}if(vt.size){const Nt={};if(typeof Ot.initial!="boolean"){const Lt=resolveVariant(At,Array.isArray(Ot.initial)?Ot.initial[0]:Ot.initial);Lt&&Lt.transition&&(Nt.transition=Lt.transition)}vt.forEach(Lt=>{const qt=At.getBaseTarget(Lt),jt=At.getValue(Lt);jt&&(jt.liveStyle=!0),Nt[Lt]=qt??null}),Qt.push({animation:Nt})}let Pt=!!Qt.length;return pt&&(Ot.initial===!1||Ot.initial===Ot.animate)&&!At.manuallyAnimateOnMount&&(Pt=!1),pt=!1,Pt?ot(Qt):Promise.resolve()}function kt(Et,Ot){if(ut[Et].isActive===Ot)return Promise.resolve();At.variantChildren?.forEach(Qt=>Qt.animationState?.setActive(Et,Ot)),ut[Et].isActive=Ot;const _t=yt(Et);for(const Qt in ut)ut[Qt].protectedKeys={};return _t}return{animateChanges:yt,setActive:kt,setAnimateFunction:ht,getState:()=>ut,reset:()=>{ut=createState$1()}}}function checkVariantsDidChange(At,ot){return typeof ot=="string"?ot!==At:Array.isArray(ot)?!shallowCompare(ot,At):!1}function createTypeState(At=!1){return{isActive:At,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState$1(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}function copyAxisInto(At,ot){At.min=ot.min,At.max=ot.max}function copyBoxInto(At,ot){copyAxisInto(At.x,ot.x),copyAxisInto(At.y,ot.y)}function copyAxisDeltaInto(At,ot){At.translate=ot.translate,At.scale=ot.scale,At.originPoint=ot.originPoint,At.origin=ot.origin}const SCALE_PRECISION=1e-4,SCALE_MIN=1-SCALE_PRECISION,SCALE_MAX=1+SCALE_PRECISION,TRANSLATE_PRECISION=.01,TRANSLATE_MIN=0-TRANSLATE_PRECISION,TRANSLATE_MAX=0+TRANSLATE_PRECISION;function calcLength(At){return At.max-At.min}function isNear(At,ot,ut){return Math.abs(At-ot)<=ut}function calcAxisDelta(At,ot,ut,pt=.5){At.origin=pt,At.originPoint=mixNumber$1(ot.min,ot.max,At.origin),At.scale=calcLength(ut)/calcLength(ot),At.translate=mixNumber$1(ut.min,ut.max,At.origin)-At.originPoint,(At.scale>=SCALE_MIN&&At.scale<=SCALE_MAX||isNaN(At.scale))&&(At.scale=1),(At.translate>=TRANSLATE_MIN&&At.translate<=TRANSLATE_MAX||isNaN(At.translate))&&(At.translate=0)}function calcBoxDelta(At,ot,ut,pt){calcAxisDelta(At.x,ot.x,ut.x,pt?pt.originX:void 0),calcAxisDelta(At.y,ot.y,ut.y,pt?pt.originY:void 0)}function calcRelativeAxis(At,ot,ut){At.min=ut.min+ot.min,At.max=At.min+calcLength(ot)}function calcRelativeBox(At,ot,ut){calcRelativeAxis(At.x,ot.x,ut.x),calcRelativeAxis(At.y,ot.y,ut.y)}function calcRelativeAxisPosition(At,ot,ut){At.min=ot.min-ut.min,At.max=At.min+calcLength(ot)}function calcRelativePosition(At,ot,ut){calcRelativeAxisPosition(At.x,ot.x,ut.x),calcRelativeAxisPosition(At.y,ot.y,ut.y)}function removePointDelta(At,ot,ut,pt,ft){return At-=ot,At=scalePoint(At,1/ut,pt),ft!==void 0&&(At=scalePoint(At,1/ft,pt)),At}function removeAxisDelta(At,ot=0,ut=1,pt=.5,ft,ht=At,yt=At){if(percent$2.test(ot)&&(ot=parseFloat(ot),ot=mixNumber$1(yt.min,yt.max,ot/100)-yt.min),typeof ot!="number")return;let kt=mixNumber$1(ht.min,ht.max,pt);At===ht&&(kt-=ot),At.min=removePointDelta(At.min,ot,ut,kt,ft),At.max=removePointDelta(At.max,ot,ut,kt,ft)}function removeAxisTransforms(At,ot,[ut,pt,ft],ht,yt){removeAxisDelta(At,ot[ut],ot[pt],ot[ft],ot.scale,ht,yt)}const xKeys=["x","scaleX","originX"],yKeys=["y","scaleY","originY"];function removeBoxTransforms(At,ot,ut,pt){removeAxisTransforms(At.x,ot,xKeys,ut?ut.x:void 0,pt?pt.x:void 0),removeAxisTransforms(At.y,ot,yKeys,ut?ut.y:void 0,pt?pt.y:void 0)}function isAxisDeltaZero(At){return At.translate===0&&At.scale===1}function isDeltaZero(At){return isAxisDeltaZero(At.x)&&isAxisDeltaZero(At.y)}function axisEquals(At,ot){return At.min===ot.min&&At.max===ot.max}function boxEquals(At,ot){return axisEquals(At.x,ot.x)&&axisEquals(At.y,ot.y)}function axisEqualsRounded(At,ot){return Math.round(At.min)===Math.round(ot.min)&&Math.round(At.max)===Math.round(ot.max)}function boxEqualsRounded(At,ot){return axisEqualsRounded(At.x,ot.x)&&axisEqualsRounded(At.y,ot.y)}function aspectRatio(At){return calcLength(At.x)/calcLength(At.y)}function axisDeltaEquals(At,ot){return At.translate===ot.translate&&At.scale===ot.scale&&At.originPoint===ot.originPoint}function eachAxis(At){return[At("x"),At("y")]}function buildProjectionTransform(At,ot,ut){let pt="";const ft=At.x.translate/ot.x,ht=At.y.translate/ot.y,yt=ut?.z||0;if((ft||ht||yt)&&(pt=`translate3d(${ft}px, ${ht}px, ${yt}px) `),(ot.x!==1||ot.y!==1)&&(pt+=`scale(${1/ot.x}, ${1/ot.y}) `),ut){const{transformPerspective:Ot,rotate:_t,rotateX:Qt,rotateY:vt,skewX:St,skewY:$t}=ut;Ot&&(pt=`perspective(${Ot}px) ${pt}`),_t&&(pt+=`rotate(${_t}deg) `),Qt&&(pt+=`rotateX(${Qt}deg) `),vt&&(pt+=`rotateY(${vt}deg) `),St&&(pt+=`skewX(${St}deg) `),$t&&(pt+=`skewY(${$t}deg) `)}const kt=At.x.scale*ot.x,Et=At.y.scale*ot.y;return(kt!==1||Et!==1)&&(pt+=`scale(${kt}, ${Et})`),pt||"none"}const borders=["TopLeft","TopRight","BottomLeft","BottomRight"],numBorders=borders.length,asNumber=At=>typeof At=="string"?parseFloat(At):At,isPx=At=>typeof At=="number"||px$1.test(At);function mixValues(At,ot,ut,pt,ft,ht){ft?(At.opacity=mixNumber$1(0,ut.opacity??1,easeCrossfadeIn(pt)),At.opacityExit=mixNumber$1(ot.opacity??1,0,easeCrossfadeOut(pt))):ht&&(At.opacity=mixNumber$1(ot.opacity??1,ut.opacity??1,pt));for(let yt=0;yt<numBorders;yt++){const kt=`border${borders[yt]}Radius`;let Et=getRadius(ot,kt),Ot=getRadius(ut,kt);if(Et===void 0&&Ot===void 0)continue;Et||(Et=0),Ot||(Ot=0),Et===0||Ot===0||isPx(Et)===isPx(Ot)?(At[kt]=Math.max(mixNumber$1(asNumber(Et),asNumber(Ot),pt),0),(percent$2.test(Ot)||percent$2.test(Et))&&(At[kt]+="%")):At[kt]=Ot}(ot.rotate||ut.rotate)&&(At.rotate=mixNumber$1(ot.rotate||0,ut.rotate||0,pt))}function getRadius(At,ot){return At[ot]!==void 0?At[ot]:At.borderRadius}const easeCrossfadeIn=compress(0,.5,circOut),easeCrossfadeOut=compress(.5,.95,noop$3);function compress(At,ot,ut){return pt=>pt<At?0:pt>ot?1:ut(progress(At,ot,pt))}function animateSingleValue(At,ot,ut){const pt=isMotionValue(At)?At:motionValue(At);return pt.start(animateMotionValue("",pt,ot,ut)),pt.animation}function addDomEvent(At,ot,ut,pt={passive:!0}){return At.addEventListener(ot,ut,pt),()=>At.removeEventListener(ot,ut)}const compareByDepth=(At,ot)=>At.depth-ot.depth;class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(ot){addUniqueItem(this.children,ot),this.isDirty=!0}remove(ot){removeItem$1(this.children,ot),this.isDirty=!0}forEach(ot){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(ot)}}function delay(At,ot){const ut=time.now(),pt=({timestamp:ft})=>{const ht=ft-ut;ht>=ot&&(cancelFrame(pt),At(ht-ot))};return frame.setup(pt,!0),()=>cancelFrame(pt)}function resolveMotionValue(At){return isMotionValue(At)?At.get():At}class NodeStack{constructor(){this.members=[]}add(ot){addUniqueItem(this.members,ot);for(let ut=this.members.length-1;ut>=0;ut--){const pt=this.members[ut];if(pt===ot||pt===this.lead||pt===this.prevLead)continue;const ft=pt.instance;ft&&ft.isConnected===!1&&pt.isPresent!==!1&&!pt.snapshot&&removeItem$1(this.members,pt)}ot.scheduleRender()}remove(ot){if(removeItem$1(this.members,ot),ot===this.prevLead&&(this.prevLead=void 0),ot===this.lead){const ut=this.members[this.members.length-1];ut&&this.promote(ut)}}relegate(ot){const ut=this.members.findIndex(ft=>ot===ft);if(ut===0)return!1;let pt;for(let ft=ut;ft>=0;ft--){const ht=this.members[ft],yt=ht.instance;if(ht.isPresent!==!1&&(!yt||yt.isConnected!==!1)){pt=ht;break}}return pt?(this.promote(pt),!0):!1}promote(ot,ut){const pt=this.lead;if(ot!==pt&&(this.prevLead=pt,this.lead=ot,ot.show(),pt)){pt.instance&&pt.scheduleRender(),ot.scheduleRender();const ft=pt.options.layoutDependency,ht=ot.options.layoutDependency;if(!(ft!==void 0&&ht!==void 0&&ft===ht)){const Et=pt.instance;Et&&Et.isConnected===!1&&!pt.snapshot||(ot.resumeFrom=pt,ut&&(ot.resumeFrom.preserveOpacity=!0),pt.snapshot&&(ot.snapshot=pt.snapshot,ot.snapshot.latestValues=pt.animationValues||pt.latestValues),ot.root&&ot.root.isUpdating&&(ot.isLayoutDirty=!0))}const{crossfade:kt}=ot.options;kt===!1&&pt.hide()}}exitAnimationComplete(){this.members.forEach(ot=>{const{options:ut,resumingFrom:pt}=ot;ut.onExitComplete&&ut.onExitComplete(),pt&&pt.options.onExitComplete&&pt.options.onExitComplete()})}scheduleRender(){this.members.forEach(ot=>{ot.instance&&ot.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const globalProjectionState={hasAnimatedSinceResize:!0,hasEverUpdated:!1},transformAxes=["","X","Y","Z"],animationTarget=1e3;let id$3=0;function resetDistortingTransform(At,ot,ut,pt){const{latestValues:ft}=ot;ft[At]&&(ut[At]=ft[At],ot.setStaticValue(At,0),pt&&(pt[At]=0))}function cancelTreeOptimisedTransformAnimations(At){if(At.hasCheckedOptimisedAppear=!0,At.root===At)return;const{visualElement:ot}=At.options;if(!ot)return;const ut=getOptimisedAppearId(ot);if(window.MotionHasOptimisedAnimation(ut,"transform")){const{layout:ft,layoutId:ht}=At.options;window.MotionCancelOptimisedAnimation(ut,"transform",frame,!(ft||ht))}const{parent:pt}=At;pt&&!pt.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(pt)}function createProjectionNode$1({attachResizeListener:At,defaultParent:ot,measureScroll:ut,checkIsScrollRoot:pt,resetTransform:ft}){return class{constructor(yt={},kt=ot?.()){this.id=id$3++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=yt,this.root=kt?kt.root||kt:this,this.path=kt?[...kt.path,kt]:[],this.parent=kt,this.depth=kt?kt.depth+1:0;for(let Et=0;Et<this.path.length;Et++)this.path[Et].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(yt,kt){return this.eventHandlers.has(yt)||this.eventHandlers.set(yt,new SubscriptionManager),this.eventHandlers.get(yt).add(kt)}notifyListeners(yt,...kt){const Et=this.eventHandlers.get(yt);Et&&Et.notify(...kt)}hasListeners(yt){return this.eventHandlers.has(yt)}mount(yt){if(this.instance)return;this.isSVG=isSVGElement$2(yt)&&!isSVGSVGElement(yt),this.instance=yt;const{layoutId:kt,layout:Et,visualElement:Ot}=this.options;if(Ot&&!Ot.current&&Ot.mount(yt),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(Et||kt)&&(this.isLayoutDirty=!0),At){let _t,Qt=0;const vt=()=>this.root.updateBlockedByResize=!1;frame.read(()=>{Qt=window.innerWidth}),At(yt,()=>{const St=window.innerWidth;St!==Qt&&(Qt=St,this.root.updateBlockedByResize=!0,_t&&_t(),_t=delay(vt,250),globalProjectionState.hasAnimatedSinceResize&&(globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation)))})}kt&&this.root.registerSharedNode(kt,this),this.options.animate!==!1&&Ot&&(kt||Et)&&this.addEventListener("didUpdate",({delta:_t,hasLayoutChanged:Qt,hasRelativeLayoutChanged:vt,layout:St})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $t=this.options.transition||Ot.getDefaultTransition()||defaultLayoutTransition,{onLayoutAnimationStart:Pt,onLayoutAnimationComplete:Nt}=Ot.getProps(),Lt=!this.targetLayout||!boxEqualsRounded(this.targetLayout,St),qt=!Qt&&vt;if(this.options.layoutRoot||this.resumeFrom||qt||Qt&&(Lt||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const jt={...getValueTransition$1($t,"layout"),onPlay:Pt,onComplete:Nt};(Ot.shouldReduceMotion||this.options.layoutRoot)&&(jt.delay=0,jt.type=!1),this.startAnimation(jt),this.setAnimationOrigin(_t,qt)}else Qt||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=St})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const yt=this.getStack();yt&&yt.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),cancelFrame(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(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){const{visualElement:yt}=this.options;return yt&&yt.getProps().transformTemplate}willUpdate(yt=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let _t=0;_t<this.path.length;_t++){const Qt=this.path[_t];Qt.shouldResetTransform=!0,Qt.updateScroll("snapshot"),Qt.options.layoutRoot&&Qt.willUpdate(!1)}const{layoutId:kt,layout:Et}=this.options;if(kt===void 0&&!Et)return;const Ot=this.getTransformTemplate();this.prevTransformTemplateValue=Ot?Ot(this.latestValues,""):void 0,this.updateSnapshot(),yt&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(clearIsLayoutDirty);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate)):this.nodes.forEach(clearIsLayoutDirty),this.clearAllSnapshots();const kt=time.now();frameData.delta=clamp$2(0,1e3/60,kt-frameData.timestamp),frameData.timestamp=kt,frameData.isProcessing=!0,frameSteps.update.process(frameData),frameSteps.preRender.process(frameData),frameSteps.render.process(frameData),frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!calcLength(this.snapshot.measuredBox.x)&&!calcLength(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let Et=0;Et<this.path.length;Et++)this.path[Et].updateScroll();const yt=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:kt}=this.options;kt&&kt.notify("LayoutMeasure",this.layout.layoutBox,yt?yt.layoutBox:void 0)}updateScroll(yt="measure"){let kt=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===yt&&(kt=!1),kt&&this.instance){const Et=pt(this.instance);this.scroll={animationId:this.root.animationId,phase:yt,isRoot:Et,offset:ut(this.instance),wasRoot:this.scroll?this.scroll.isRoot:Et}}}resetTransform(){if(!ft)return;const yt=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,kt=this.projectionDelta&&!isDeltaZero(this.projectionDelta),Et=this.getTransformTemplate(),Ot=Et?Et(this.latestValues,""):void 0,_t=Ot!==this.prevTransformTemplateValue;yt&&this.instance&&(kt||hasTransform(this.latestValues)||_t)&&(ft(this.instance,Ot),this.shouldResetTransform=!1,this.scheduleRender())}measure(yt=!0){const kt=this.measurePageBox();let Et=this.removeElementScroll(kt);return yt&&(Et=this.removeTransform(Et)),roundBox(Et),{animationId:this.root.animationId,measuredBox:kt,layoutBox:Et,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:yt}=this.options;if(!yt)return createBox();const kt=yt.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(checkNodeWasScrollRoot))){const{scroll:Ot}=this.root;Ot&&(translateAxis(kt.x,Ot.offset.x),translateAxis(kt.y,Ot.offset.y))}return kt}removeElementScroll(yt){const kt=createBox();if(copyBoxInto(kt,yt),this.scroll?.wasRoot)return kt;for(let Et=0;Et<this.path.length;Et++){const Ot=this.path[Et],{scroll:_t,options:Qt}=Ot;Ot!==this.root&&_t&&Qt.layoutScroll&&(_t.wasRoot&©BoxInto(kt,yt),translateAxis(kt.x,_t.offset.x),translateAxis(kt.y,_t.offset.y))}return kt}applyTransform(yt,kt=!1){const Et=createBox();copyBoxInto(Et,yt);for(let Ot=0;Ot<this.path.length;Ot++){const _t=this.path[Ot];!kt&&_t.options.layoutScroll&&_t.scroll&&_t!==_t.root&&transformBox(Et,{x:-_t.scroll.offset.x,y:-_t.scroll.offset.y}),hasTransform(_t.latestValues)&&transformBox(Et,_t.latestValues)}return hasTransform(this.latestValues)&&transformBox(Et,this.latestValues),Et}removeTransform(yt){const kt=createBox();copyBoxInto(kt,yt);for(let Et=0;Et<this.path.length;Et++){const Ot=this.path[Et];if(!Ot.instance||!hasTransform(Ot.latestValues))continue;hasScale(Ot.latestValues)&&Ot.updateSnapshot();const _t=createBox(),Qt=Ot.measurePageBox();copyBoxInto(_t,Qt),removeBoxTransforms(kt,Ot.latestValues,Ot.snapshot?Ot.snapshot.layoutBox:void 0,_t)}return hasTransform(this.latestValues)&&removeBoxTransforms(kt,this.latestValues),kt}setTargetDelta(yt){this.targetDelta=yt,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(yt){this.options={...this.options,...yt,crossfade:yt.crossfade!==void 0?yt.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!==frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(yt=!1){const kt=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=kt.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=kt.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=kt.isSharedProjectionDirty);const Et=!!this.resumingFrom||this!==kt;if(!(yt||Et&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:_t,layoutId:Qt}=this.options;if(!this.layout||!(_t||Qt))return;this.resolvedRelativeTargetAt=frameData.timestamp;const vt=this.getClosestProjectingParent();vt&&this.linkedParentVersion!==vt.layoutVersion&&!vt.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(vt&&vt.layout?this.createRelativeTarget(vt,this.layout.layoutBox,vt.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),calcRelativeBox(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,vt&&!!vt.resumingFrom==!!this.resumingFrom&&!vt.options.layoutScroll&&vt.target&&this.animationProgress!==1?this.createRelativeTarget(vt,this.target,vt.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(yt,kt,Et){this.relativeParent=yt,this.linkedParentVersion=yt.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,kt,Et),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const yt=this.getLead(),kt=!!this.resumingFrom||this!==yt;let Et=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(Et=!1),kt&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(Et=!1),this.resolvedRelativeTargetAt===frameData.timestamp&&(Et=!1),Et)return;const{layout:Ot,layoutId:_t}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(Ot||_t))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);const Qt=this.treeScale.x,vt=this.treeScale.y;applyTreeDeltas(this.layoutCorrected,this.treeScale,this.path,kt),yt.layout&&!yt.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(yt.target=yt.layout.layoutBox,yt.targetWithTransforms=createBox());const{target:St}=yt;if(!St){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)),calcBoxDelta(this.projectionDelta,this.layoutCorrected,St,this.latestValues),(this.treeScale.x!==Qt||this.treeScale.y!==vt||!axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)||!axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",St))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(yt=!0){if(this.options.visualElement?.scheduleRender(),yt){const kt=this.getStack();kt&&kt.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(yt,kt=!1){const Et=this.snapshot,Ot=Et?Et.latestValues:{},_t={...this.latestValues},Qt=createDelta();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!kt;const vt=createBox(),St=Et?Et.source:void 0,$t=this.layout?this.layout.source:void 0,Pt=St!==$t,Nt=this.getStack(),Lt=!Nt||Nt.members.length<=1,qt=!!(Pt&&!Lt&&this.options.crossfade===!0&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0;let jt;this.mixTargetDelta=Zt=>{const Ht=Zt/1e3;mixAxisDelta(Qt.x,yt.x,Ht),mixAxisDelta(Qt.y,yt.y,Ht),this.setTargetDelta(Qt),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(calcRelativePosition(vt,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mixBox(this.relativeTarget,this.relativeTargetOrigin,vt,Ht),jt&&boxEquals(this.relativeTarget,jt)&&(this.isProjectionDirty=!1),jt||(jt=createBox()),copyBoxInto(jt,this.relativeTarget)),Pt&&(this.animationValues=_t,mixValues(_t,Ot,this.latestValues,Ht,qt,Lt)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Ht},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(yt){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(cancelFrame(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=frame.update(()=>{globalProjectionState.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=motionValue(0)),this.motionValue.jump(0,!1),this.currentAnimation=animateSingleValue(this.motionValue,[0,1e3],{...yt,velocity:0,isSync:!0,onUpdate:kt=>{this.mixTargetDelta(kt),yt.onUpdate&&yt.onUpdate(kt)},onStop:()=>{},onComplete:()=>{yt.onComplete&&yt.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 yt=this.getStack();yt&&yt.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(animationTarget),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const yt=this.getLead();let{targetWithTransforms:kt,target:Et,layout:Ot,latestValues:_t}=yt;if(!(!kt||!Et||!Ot)){if(this!==yt&&this.layout&&Ot&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,Ot.layoutBox)){Et=this.target||createBox();const Qt=calcLength(this.layout.layoutBox.x);Et.x.min=yt.target.x.min,Et.x.max=Et.x.min+Qt;const vt=calcLength(this.layout.layoutBox.y);Et.y.min=yt.target.y.min,Et.y.max=Et.y.min+vt}copyBoxInto(kt,Et),transformBox(kt,_t),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,kt,_t)}}registerSharedNode(yt,kt){this.sharedNodes.has(yt)||this.sharedNodes.set(yt,new NodeStack),this.sharedNodes.get(yt).add(kt);const Ot=kt.options.initialPromotionConfig;kt.promote({transition:Ot?Ot.transition:void 0,preserveFollowOpacity:Ot&&Ot.shouldPreserveFollowOpacity?Ot.shouldPreserveFollowOpacity(kt):void 0})}isLead(){const yt=this.getStack();return yt?yt.lead===this:!0}getLead(){const{layoutId:yt}=this.options;return yt?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:yt}=this.options;return yt?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:yt}=this.options;if(yt)return this.root.sharedNodes.get(yt)}promote({needsReset:yt,transition:kt,preserveFollowOpacity:Et}={}){const Ot=this.getStack();Ot&&Ot.promote(this,Et),yt&&(this.projectionDelta=void 0,this.needsReset=!0),kt&&this.setOptions({transition:kt})}relegate(){const yt=this.getStack();return yt?yt.relegate(this):!1}resetSkewAndRotation(){const{visualElement:yt}=this.options;if(!yt)return;let kt=!1;const{latestValues:Et}=yt;if((Et.z||Et.rotate||Et.rotateX||Et.rotateY||Et.rotateZ||Et.skewX||Et.skewY)&&(kt=!0),!kt)return;const Ot={};Et.z&&resetDistortingTransform("z",yt,Ot,this.animationValues);for(let _t=0;_t<transformAxes.length;_t++)resetDistortingTransform(`rotate${transformAxes[_t]}`,yt,Ot,this.animationValues),resetDistortingTransform(`skew${transformAxes[_t]}`,yt,Ot,this.animationValues);yt.render();for(const _t in Ot)yt.setStaticValue(_t,Ot[_t]),this.animationValues&&(this.animationValues[_t]=Ot[_t]);yt.scheduleRender()}applyProjectionStyles(yt,kt){if(!this.instance||this.isSVG)return;if(!this.isVisible){yt.visibility="hidden";return}const Et=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,yt.visibility="",yt.opacity="",yt.pointerEvents=resolveMotionValue(kt?.pointerEvents)||"",yt.transform=Et?Et(this.latestValues,""):"none";return}const Ot=this.getLead();if(!this.projectionDelta||!this.layout||!Ot.target){this.options.layoutId&&(yt.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,yt.pointerEvents=resolveMotionValue(kt?.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(yt.transform=Et?Et({},""):"none",this.hasProjected=!1);return}yt.visibility="";const _t=Ot.animationValues||Ot.latestValues;this.applyTransformsToTarget();let Qt=buildProjectionTransform(this.projectionDeltaWithTransform,this.treeScale,_t);Et&&(Qt=Et(_t,Qt)),yt.transform=Qt;const{x:vt,y:St}=this.projectionDelta;yt.transformOrigin=`${vt.origin*100}% ${St.origin*100}% 0`,Ot.animationValues?yt.opacity=Ot===this?_t.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:_t.opacityExit:yt.opacity=Ot===this?_t.opacity!==void 0?_t.opacity:"":_t.opacityExit!==void 0?_t.opacityExit:0;for(const $t in scaleCorrectors){if(_t[$t]===void 0)continue;const{correct:Pt,applyTo:Nt,isCSSVariable:Lt}=scaleCorrectors[$t],qt=Qt==="none"?_t[$t]:Pt(_t[$t],Ot);if(Nt){const jt=Nt.length;for(let Zt=0;Zt<jt;Zt++)yt[Nt[Zt]]=qt}else Lt?this.options.visualElement.renderState.vars[$t]=qt:yt[$t]=qt}this.options.layoutId&&(yt.pointerEvents=Ot===this?resolveMotionValue(kt?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(yt=>yt.currentAnimation?.stop()),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(At){At.updateLayout()}function notifyLayoutUpdate(At){const ot=At.resumeFrom?.snapshot||At.snapshot;if(At.isLead()&&At.layout&&ot&&At.hasListeners("didUpdate")){const{layoutBox:ut,measuredBox:pt}=At.layout,{animationType:ft}=At.options,ht=ot.source!==At.layout.source;ft==="size"?eachAxis(_t=>{const Qt=ht?ot.measuredBox[_t]:ot.layoutBox[_t],vt=calcLength(Qt);Qt.min=ut[_t].min,Qt.max=Qt.min+vt}):shouldAnimatePositionOnly(ft,ot.layoutBox,ut)&&eachAxis(_t=>{const Qt=ht?ot.measuredBox[_t]:ot.layoutBox[_t],vt=calcLength(ut[_t]);Qt.max=Qt.min+vt,At.relativeTarget&&!At.currentAnimation&&(At.isProjectionDirty=!0,At.relativeTarget[_t].max=At.relativeTarget[_t].min+vt)});const yt=createDelta();calcBoxDelta(yt,ut,ot.layoutBox);const kt=createDelta();ht?calcBoxDelta(kt,At.applyTransform(pt,!0),ot.measuredBox):calcBoxDelta(kt,ut,ot.layoutBox);const Et=!isDeltaZero(yt);let Ot=!1;if(!At.resumeFrom){const _t=At.getClosestProjectingParent();if(_t&&!_t.resumeFrom){const{snapshot:Qt,layout:vt}=_t;if(Qt&&vt){const St=createBox();calcRelativePosition(St,ot.layoutBox,Qt.layoutBox);const $t=createBox();calcRelativePosition($t,ut,vt.layoutBox),boxEqualsRounded(St,$t)||(Ot=!0),_t.options.layoutRoot&&(At.relativeTarget=$t,At.relativeTargetOrigin=St,At.relativeParent=_t)}}}At.notifyListeners("didUpdate",{layout:ut,snapshot:ot,delta:kt,layoutDelta:yt,hasLayoutChanged:Et,hasRelativeLayoutChanged:Ot})}else if(At.isLead()){const{onExitComplete:ut}=At.options;ut&&ut()}At.options.transition=void 0}function propagateDirtyNodes(At){At.parent&&(At.isProjecting()||(At.isProjectionDirty=At.parent.isProjectionDirty),At.isSharedProjectionDirty||(At.isSharedProjectionDirty=!!(At.isProjectionDirty||At.parent.isProjectionDirty||At.parent.isSharedProjectionDirty)),At.isTransformDirty||(At.isTransformDirty=At.parent.isTransformDirty))}function cleanDirtyNodes(At){At.isProjectionDirty=At.isSharedProjectionDirty=At.isTransformDirty=!1}function clearSnapshot(At){At.clearSnapshot()}function clearMeasurements(At){At.clearMeasurements()}function clearIsLayoutDirty(At){At.isLayoutDirty=!1}function resetTransformStyle(At){const{visualElement:ot}=At.options;ot&&ot.getProps().onBeforeLayoutMeasure&&ot.notify("BeforeLayoutMeasure"),At.resetTransform()}function finishAnimation(At){At.finishAnimation(),At.targetDelta=At.relativeTarget=At.target=void 0,At.isProjectionDirty=!0}function resolveTargetDelta(At){At.resolveTargetDelta()}function calcProjection(At){At.calcProjection()}function resetSkewAndRotation(At){At.resetSkewAndRotation()}function removeLeadSnapshots(At){At.removeLeadSnapshot()}function mixAxisDelta(At,ot,ut){At.translate=mixNumber$1(ot.translate,0,ut),At.scale=mixNumber$1(ot.scale,1,ut),At.origin=ot.origin,At.originPoint=ot.originPoint}function mixAxis(At,ot,ut,pt){At.min=mixNumber$1(ot.min,ut.min,pt),At.max=mixNumber$1(ot.max,ut.max,pt)}function mixBox(At,ot,ut,pt){mixAxis(At.x,ot.x,ut.x,pt),mixAxis(At.y,ot.y,ut.y,pt)}function hasOpacityCrossfade(At){return At.animationValues&&At.animationValues.opacityExit!==void 0}const defaultLayoutTransition={duration:.45,ease:[.4,0,.1,1]},userAgentContains=At=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(At),roundPoint=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop$3;function roundAxis(At){At.min=roundPoint(At.min),At.max=roundPoint(At.max)}function roundBox(At){roundAxis(At.x),roundAxis(At.y)}function shouldAnimatePositionOnly(At,ot,ut){return At==="position"||At==="preserve-aspect"&&!isNear(aspectRatio(ot),aspectRatio(ut),.2)}function checkNodeWasScrollRoot(At){return At!==At.root&&At.scroll?.wasRoot}const DocumentProjectionNode=createProjectionNode$1({attachResizeListener:(At,ot)=>addDomEvent(At,"resize",ot),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rootProjectionNode={current:void 0},HTMLProjectionNode=createProjectionNode$1({measureScroll:At=>({x:At.scrollLeft,y:At.scrollTop}),defaultParent:()=>{if(!rootProjectionNode.current){const At=new DocumentProjectionNode({});At.mount(window),At.setOptions({layoutScroll:!0}),rootProjectionNode.current=At}return rootProjectionNode.current},resetTransform:(At,ot)=>{At.style.transform=ot!==void 0?ot:"none"},checkIsScrollRoot:At=>window.getComputedStyle(At).position==="fixed"}),MotionConfigContext=reactExports.createContext({transformPagePoint:At=>At,isStatic:!1,reducedMotion:"never"});function usePresence$1(At=!0){const ot=reactExports.useContext(PresenceContext);if(ot===null)return[!0,null];const{isPresent:ut,onExitComplete:pt,register:ft}=ot,ht=reactExports.useId();reactExports.useEffect(()=>{if(At)return ft(ht)},[At]);const yt=reactExports.useCallback(()=>At&&pt&&pt(ht),[ht,pt,At]);return!ut&&pt?[!1,yt]:[!0]}const LazyContext=reactExports.createContext({strict:!1}),featureProps={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let isInitialized=!1;function initFeatureDefinitions(){if(isInitialized)return;const At={};for(const ot in featureProps)At[ot]={isEnabled:ut=>featureProps[ot].some(pt=>!!ut[pt])};setFeatureDefinitions(At),isInitialized=!0}function getInitializedFeatureDefinitions(){return initFeatureDefinitions(),getFeatureDefinitions()}function loadFeatures(At){const ot=getInitializedFeatureDefinitions();for(const ut in At)ot[ut]={...ot[ut],...At[ut]};setFeatureDefinitions(ot)}const validMotionProps=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function isValidMotionProp(At){return At.startsWith("while")||At.startsWith("drag")&&At!=="draggable"||At.startsWith("layout")||At.startsWith("onTap")||At.startsWith("onPan")||At.startsWith("onLayout")||validMotionProps.has(At)}let shouldForward=At=>!isValidMotionProp(At);function loadExternalIsValidProp(At){typeof At=="function"&&(shouldForward=ot=>ot.startsWith("on")?!isValidMotionProp(ot):At(ot))}try{loadExternalIsValidProp(require("@emotion/is-prop-valid").default)}catch{}function filterProps(At,ot,ut){const pt={};for(const ft in At)ft==="values"&&typeof At.values=="object"||(shouldForward(ft)||ut===!0&&isValidMotionProp(ft)||!ot&&!isValidMotionProp(ft)||At.draggable&&ft.startsWith("onDrag"))&&(pt[ft]=At[ft]);return pt}const MotionContext=reactExports.createContext({});function getCurrentTreeVariants(At,ot){if(isControllingVariants(At)){const{initial:ut,animate:pt}=At;return{initial:ut===!1||isVariantLabel(ut)?ut:void 0,animate:isVariantLabel(pt)?pt:void 0}}return At.inherit!==!1?ot:{}}function useCreateMotionContext(At){const{initial:ot,animate:ut}=getCurrentTreeVariants(At,reactExports.useContext(MotionContext));return reactExports.useMemo(()=>({initial:ot,animate:ut}),[variantLabelsAsDependency(ot),variantLabelsAsDependency(ut)])}function variantLabelsAsDependency(At){return Array.isArray(At)?At.join(" "):At}const createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(At,ot,ut){for(const pt in ot)!isMotionValue(ot[pt])&&!isForcedMotionValue(pt,ut)&&(At[pt]=ot[pt])}function useInitialMotionValues({transformTemplate:At},ot){return reactExports.useMemo(()=>{const ut=createHtmlRenderState();return buildHTMLStyles(ut,ot,At),Object.assign({},ut.vars,ut.style)},[ot])}function useStyle(At,ot){const ut=At.style||{},pt={};return copyRawValuesOnly(pt,ut,At),Object.assign(pt,useInitialMotionValues(At,ot)),pt}function useHTMLProps(At,ot){const ut={},pt=useStyle(At,ot);return At.drag&&At.dragListener!==!1&&(ut.draggable=!1,pt.userSelect=pt.WebkitUserSelect=pt.WebkitTouchCallout="none",pt.touchAction=At.drag===!0?"none":`pan-${At.drag==="x"?"y":"x"}`),At.tabIndex===void 0&&(At.onTap||At.onTapStart||At.whileTap)&&(ut.tabIndex=0),ut.style=pt,ut}const createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}});function useSVGProps(At,ot,ut,pt){const ft=reactExports.useMemo(()=>{const ht=createSvgRenderState();return buildSVGAttrs(ht,ot,isSVGTag(pt),At.transformTemplate,At.style),{...ht.attrs,style:{...ht.style}}},[ot]);if(At.style){const ht={};copyRawValuesOnly(ht,At.style,At),ft.style={...ht,...ft.style}}return ft}const lowercaseSVGElements=["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 isSVGComponent(At){return typeof At!="string"||At.includes("-")?!1:!!(lowercaseSVGElements.indexOf(At)>-1||/[A-Z]/u.test(At))}function useRender(At,ot,ut,{latestValues:pt},ft,ht=!1,yt){const Et=(yt??isSVGComponent(At)?useSVGProps:useHTMLProps)(ot,pt,ft,At),Ot=filterProps(ot,typeof At=="string",ht),_t=At!==reactExports.Fragment?{...Ot,...Et,ref:ut}:{},{children:Qt}=ot,vt=reactExports.useMemo(()=>isMotionValue(Qt)?Qt.get():Qt,[Qt]);return reactExports.createElement(At,{..._t,children:vt})}function makeState({scrapeMotionValuesFromProps:At,createRenderState:ot},ut,pt,ft){return{latestValues:makeLatestValues(ut,pt,ft,At),renderState:ot()}}function makeLatestValues(At,ot,ut,pt){const ft={},ht=pt(At,{});for(const vt in ht)ft[vt]=resolveMotionValue(ht[vt]);let{initial:yt,animate:kt}=At;const Et=isControllingVariants(At),Ot=isVariantNode(At);ot&&Ot&&!Et&&At.inherit!==!1&&(yt===void 0&&(yt=ot.initial),kt===void 0&&(kt=ot.animate));let _t=ut?ut.initial===!1:!1;_t=_t||yt===!1;const Qt=_t?kt:yt;if(Qt&&typeof Qt!="boolean"&&!isAnimationControls(Qt)){const vt=Array.isArray(Qt)?Qt:[Qt];for(let St=0;St<vt.length;St++){const $t=resolveVariantFromProps(At,vt[St]);if($t){const{transitionEnd:Pt,transition:Nt,...Lt}=$t;for(const qt in Lt){let jt=Lt[qt];if(Array.isArray(jt)){const Zt=_t?jt.length-1:0;jt=jt[Zt]}jt!==null&&(ft[qt]=jt)}for(const qt in Pt)ft[qt]=Pt[qt]}}}return ft}const makeUseVisualState=At=>(ot,ut)=>{const pt=reactExports.useContext(MotionContext),ft=reactExports.useContext(PresenceContext),ht=()=>makeState(At,ot,pt,ft);return ut?ht():useConstant(ht)},useHTMLVisualState=makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,createRenderState:createHtmlRenderState}),useSVGVisualState=makeUseVisualState({scrapeMotionValuesFromProps,createRenderState:createSvgRenderState}),motionComponentSymbol=Symbol.for("motionComponentSymbol");function useMotionRef(At,ot,ut){const pt=reactExports.useRef(ut);reactExports.useInsertionEffect(()=>{pt.current=ut});const ft=reactExports.useRef(null);return reactExports.useCallback(ht=>{ht&&At.onMount?.(ht),ot&&(ht?ot.mount(ht):ot.unmount());const yt=pt.current;if(typeof yt=="function")if(ht){const kt=yt(ht);typeof kt=="function"&&(ft.current=kt)}else ft.current?(ft.current(),ft.current=null):yt(ht);else yt&&(yt.current=ht)},[ot])}const SwitchLayoutGroupContext=reactExports.createContext({});function isRefObject(At){return At&&typeof At=="object"&&Object.prototype.hasOwnProperty.call(At,"current")}function useVisualElement(At,ot,ut,pt,ft,ht){const{visualElement:yt}=reactExports.useContext(MotionContext),kt=reactExports.useContext(LazyContext),Et=reactExports.useContext(PresenceContext),Ot=reactExports.useContext(MotionConfigContext),_t=Ot.reducedMotion,Qt=Ot.skipAnimations,vt=reactExports.useRef(null),St=reactExports.useRef(!1);pt=pt||kt.renderer,!vt.current&&pt&&(vt.current=pt(At,{visualState:ot,parent:yt,props:ut,presenceContext:Et,blockInitialAnimation:Et?Et.initial===!1:!1,reducedMotionConfig:_t,skipAnimations:Qt,isSVG:ht}),St.current&&vt.current&&(vt.current.manuallyAnimateOnMount=!0));const $t=vt.current,Pt=reactExports.useContext(SwitchLayoutGroupContext);$t&&!$t.projection&&ft&&($t.type==="html"||$t.type==="svg")&&createProjectionNode(vt.current,ut,ft,Pt);const Nt=reactExports.useRef(!1);reactExports.useInsertionEffect(()=>{$t&&Nt.current&&$t.update(ut,Et)});const Lt=ut[optimizedAppearDataAttribute],qt=reactExports.useRef(!!Lt&&!window.MotionHandoffIsComplete?.(Lt)&&window.MotionHasOptimisedAnimation?.(Lt));return useIsomorphicLayoutEffect$3(()=>{St.current=!0,$t&&(Nt.current=!0,window.MotionIsMounted=!0,$t.updateFeatures(),$t.scheduleRenderMicrotask(),qt.current&&$t.animationState&&$t.animationState.animateChanges())}),reactExports.useEffect(()=>{$t&&(!qt.current&&$t.animationState&&$t.animationState.animateChanges(),qt.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(Lt)}),qt.current=!1),$t.enteringChildren=void 0)}),$t}function createProjectionNode(At,ot,ut,pt){const{layoutId:ft,layout:ht,drag:yt,dragConstraints:kt,layoutScroll:Et,layoutRoot:Ot,layoutCrossfade:_t}=ot;At.projection=new ut(At.latestValues,ot["data-framer-portal-id"]?void 0:getClosestProjectingNode(At.parent)),At.projection.setOptions({layoutId:ft,layout:ht,alwaysMeasureLayout:!!yt||kt&&isRefObject(kt),visualElement:At,animationType:typeof ht=="string"?ht:"both",initialPromotionConfig:pt,crossfade:_t,layoutScroll:Et,layoutRoot:Ot})}function getClosestProjectingNode(At){if(At)return At.options.allowProjection!==!1?At.projection:getClosestProjectingNode(At.parent)}function createMotionComponent(At,{forwardMotionProps:ot=!1,type:ut}={},pt,ft){pt&&loadFeatures(pt);const ht=ut?ut==="svg":isSVGComponent(At),yt=ht?useSVGVisualState:useHTMLVisualState;function kt(Ot,_t){let Qt;const vt={...reactExports.useContext(MotionConfigContext),...Ot,layoutId:useLayoutId(Ot)},{isStatic:St}=vt,$t=useCreateMotionContext(Ot),Pt=yt(Ot,St);if(!St&&isBrowser$1){useStrictMode();const Nt=getProjectionFunctionality(vt);Qt=Nt.MeasureLayout,$t.visualElement=useVisualElement(At,Pt,vt,ft,Nt.ProjectionNode,ht)}return jsxRuntimeExports.jsxs(MotionContext.Provider,{value:$t,children:[Qt&&$t.visualElement?jsxRuntimeExports.jsx(Qt,{visualElement:$t.visualElement,...vt}):null,useRender(At,Ot,useMotionRef(Pt,$t.visualElement,_t),Pt,St,ot,ht)]})}kt.displayName=`motion.${typeof At=="string"?At:`create(${At.displayName??At.name??""})`}`;const Et=reactExports.forwardRef(kt);return Et[motionComponentSymbol]=At,Et}function useLayoutId({layoutId:At}){const ot=reactExports.useContext(LayoutGroupContext).id;return ot&&At!==void 0?ot+"-"+At:At}function useStrictMode(At,ot){reactExports.useContext(LazyContext).strict}function getProjectionFunctionality(At){const ot=getInitializedFeatureDefinitions(),{drag:ut,layout:pt}=ot;if(!ut&&!pt)return{};const ft={...ut,...pt};return{MeasureLayout:ut?.isEnabled(At)||pt?.isEnabled(At)?ft.MeasureLayout:void 0,ProjectionNode:ft.ProjectionNode}}function createMotionProxy(At,ot){if(typeof Proxy>"u")return createMotionComponent;const ut=new Map,pt=(ht,yt)=>createMotionComponent(ht,yt,At,ot),ft=(ht,yt)=>pt(ht,yt);return new Proxy(ft,{get:(ht,yt)=>yt==="create"?pt:(ut.has(yt)||ut.set(yt,createMotionComponent(yt,void 0,At,ot)),ut.get(yt))})}const createDomVisualElement=(At,ot)=>ot.isSVG??isSVGComponent(At)?new SVGVisualElement(ot):new HTMLVisualElement(ot,{allowProjection:At!==reactExports.Fragment});class AnimationFeature extends Feature{constructor(ot){super(ot),ot.animationState||(ot.animationState=createAnimationState(ot))}updateAnimationControlsSubscription(){const{animate:ot}=this.node.getProps();isAnimationControls(ot)&&(this.unmountControls=ot.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:ot}=this.node.getProps(),{animate:ut}=this.node.prevProps||{};ot!==ut&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let id$2=0;class ExitAnimationFeature extends Feature{constructor(){super(...arguments),this.id=id$2++}update(){if(!this.node.presenceContext)return;const{isPresent:ot,onExitComplete:ut}=this.node.presenceContext,{isPresent:pt}=this.node.prevPresenceContext||{};if(!this.node.animationState||ot===pt)return;const ft=this.node.animationState.setActive("exit",!ot);ut&&!ot&&ft.then(()=>{ut(this.id)})}mount(){const{register:ot,onExitComplete:ut}=this.node.presenceContext||{};ut&&ut(this.id),ot&&(this.unmount=ot(this.id))}unmount(){}}const animations={animation:{Feature:AnimationFeature},exit:{Feature:ExitAnimationFeature}};function extractEventInfo(At){return{point:{x:At.pageX,y:At.pageY}}}const addPointerInfo=At=>ot=>isPrimaryPointer(ot)&&At(ot,extractEventInfo(ot));function addPointerEvent(At,ot,ut,pt){return addDomEvent(At,ot,addPointerInfo(ut),pt)}const getContextWindow=({current:At})=>At?At.ownerDocument.defaultView:null,distance=(At,ot)=>Math.abs(At-ot);function distance2D(At,ot){const ut=distance(At.x,ot.x),pt=distance(At.y,ot.y);return Math.sqrt(ut**2+pt**2)}const overflowStyles=new Set(["auto","scroll"]);class PanSession{constructor(ot,ut,{transformPagePoint:pt,contextWindow:ft=window,dragSnapToOrigin:ht=!1,distanceThreshold:yt=3,element:kt}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=St=>{this.handleScroll(St.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const St=getPanInfo(this.lastMoveEventInfo,this.history),$t=this.startEvent!==null,Pt=distance2D(St.offset,{x:0,y:0})>=this.distanceThreshold;if(!$t&&!Pt)return;const{point:Nt}=St,{timestamp:Lt}=frameData;this.history.push({...Nt,timestamp:Lt});const{onStart:qt,onMove:jt}=this.handlers;$t||(qt&&qt(this.lastMoveEvent,St),this.startEvent=this.lastMoveEvent),jt&&jt(this.lastMoveEvent,St)},this.handlePointerMove=(St,$t)=>{this.lastMoveEvent=St,this.lastMoveEventInfo=transformPoint($t,this.transformPagePoint),frame.update(this.updatePoint,!0)},this.handlePointerUp=(St,$t)=>{this.end();const{onEnd:Pt,onSessionEnd:Nt,resumeAnimation:Lt}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&Lt&&Lt(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const qt=getPanInfo(St.type==="pointercancel"?this.lastMoveEventInfo:transformPoint($t,this.transformPagePoint),this.history);this.startEvent&&Pt&&Pt(St,qt),Nt&&Nt(St,qt)},!isPrimaryPointer(ot))return;this.dragSnapToOrigin=ht,this.handlers=ut,this.transformPagePoint=pt,this.distanceThreshold=yt,this.contextWindow=ft||window;const Et=extractEventInfo(ot),Ot=transformPoint(Et,this.transformPagePoint),{point:_t}=Ot,{timestamp:Qt}=frameData;this.history=[{..._t,timestamp:Qt}];const{onSessionStart:vt}=ut;vt&&vt(ot,getPanInfo(Ot,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp)),kt&&this.startScrollTracking(kt)}startScrollTracking(ot){let ut=ot.parentElement;for(;ut;){const pt=getComputedStyle(ut);(overflowStyles.has(pt.overflowX)||overflowStyles.has(pt.overflowY))&&this.scrollPositions.set(ut,{x:ut.scrollLeft,y:ut.scrollTop}),ut=ut.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(ot){const ut=this.scrollPositions.get(ot);if(!ut)return;const pt=ot===window,ft=pt?{x:window.scrollX,y:window.scrollY}:{x:ot.scrollLeft,y:ot.scrollTop},ht={x:ft.x-ut.x,y:ft.y-ut.y};ht.x===0&&ht.y===0||(pt?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=ht.x,this.lastMoveEventInfo.point.y+=ht.y):this.history.length>0&&(this.history[0].x-=ht.x,this.history[0].y-=ht.y),this.scrollPositions.set(ot,ft),frame.update(this.updatePoint,!0))}updateHandlers(ot){this.handlers=ot}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),cancelFrame(this.updatePoint)}}function transformPoint(At,ot){return ot?{point:ot(At.point)}:At}function subtractPoint(At,ot){return{x:At.x-ot.x,y:At.y-ot.y}}function getPanInfo({point:At},ot){return{point:At,delta:subtractPoint(At,lastDevicePoint(ot)),offset:subtractPoint(At,startDevicePoint(ot)),velocity:getVelocity(ot,.1)}}function startDevicePoint(At){return At[0]}function lastDevicePoint(At){return At[At.length-1]}function getVelocity(At,ot){if(At.length<2)return{x:0,y:0};let ut=At.length-1,pt=null;const ft=lastDevicePoint(At);for(;ut>=0&&(pt=At[ut],!(ft.timestamp-pt.timestamp>secondsToMilliseconds(ot)));)ut--;if(!pt)return{x:0,y:0};pt===At[0]&&At.length>2&&ft.timestamp-pt.timestamp>secondsToMilliseconds(ot)*2&&(pt=At[1]);const ht=millisecondsToSeconds(ft.timestamp-pt.timestamp);if(ht===0)return{x:0,y:0};const yt={x:(ft.x-pt.x)/ht,y:(ft.y-pt.y)/ht};return yt.x===1/0&&(yt.x=0),yt.y===1/0&&(yt.y=0),yt}function applyConstraints(At,{min:ot,max:ut},pt){return ot!==void 0&&At<ot?At=pt?mixNumber$1(ot,At,pt.min):Math.max(At,ot):ut!==void 0&&At>ut&&(At=pt?mixNumber$1(ut,At,pt.max):Math.min(At,ut)),At}function calcRelativeAxisConstraints(At,ot,ut){return{min:ot!==void 0?At.min+ot:void 0,max:ut!==void 0?At.max+ut-(At.max-At.min):void 0}}function calcRelativeConstraints(At,{top:ot,left:ut,bottom:pt,right:ft}){return{x:calcRelativeAxisConstraints(At.x,ut,ft),y:calcRelativeAxisConstraints(At.y,ot,pt)}}function calcViewportAxisConstraints(At,ot){let ut=ot.min-At.min,pt=ot.max-At.max;return ot.max-ot.min<At.max-At.min&&([ut,pt]=[pt,ut]),{min:ut,max:pt}}function calcViewportConstraints(At,ot){return{x:calcViewportAxisConstraints(At.x,ot.x),y:calcViewportAxisConstraints(At.y,ot.y)}}function calcOrigin(At,ot){let ut=.5;const pt=calcLength(At),ft=calcLength(ot);return ft>pt?ut=progress(ot.min,ot.max-pt,At.min):pt>ft&&(ut=progress(At.min,At.max-ft,ot.min)),clamp$2(0,1,ut)}function rebaseAxisConstraints(At,ot){const ut={};return ot.min!==void 0&&(ut.min=ot.min-At.min),ot.max!==void 0&&(ut.max=ot.max-At.min),ut}const defaultElastic=.35;function resolveDragElastic(At=defaultElastic){return At===!1?At=0:At===!0&&(At=defaultElastic),{x:resolveAxisElastic(At,"left","right"),y:resolveAxisElastic(At,"top","bottom")}}function resolveAxisElastic(At,ot,ut){return{min:resolvePointElastic(At,ot),max:resolvePointElastic(At,ut)}}function resolvePointElastic(At,ot){return typeof At=="number"?At:At[ot]||0}const elementDragControls=new WeakMap;class VisualElementDragControls{constructor(ot){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=ot}start(ot,{snapToCursor:ut=!1,distanceThreshold:pt}={}){const{presenceContext:ft}=this.visualElement;if(ft&&ft.isPresent===!1)return;const ht=Qt=>{ut&&this.snapToCursor(extractEventInfo(Qt).point),this.stopAnimation()},yt=(Qt,vt)=>{const{drag:St,dragPropagation:$t,onDragStart:Pt}=this.getProps();if(St&&!$t&&(this.openDragLock&&this.openDragLock(),this.openDragLock=setDragLock(St),!this.openDragLock))return;this.latestPointerEvent=Qt,this.latestPanInfo=vt,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(Lt=>{let qt=this.getAxisMotionValue(Lt).get()||0;if(percent$2.test(qt)){const{projection:jt}=this.visualElement;if(jt&&jt.layout){const Zt=jt.layout.layoutBox[Lt];Zt&&(qt=calcLength(Zt)*(parseFloat(qt)/100))}}this.originPoint[Lt]=qt}),Pt&&frame.update(()=>Pt(Qt,vt),!1,!0),addValueToWillChange(this.visualElement,"transform");const{animationState:Nt}=this.visualElement;Nt&&Nt.setActive("whileDrag",!0)},kt=(Qt,vt)=>{this.latestPointerEvent=Qt,this.latestPanInfo=vt;const{dragPropagation:St,dragDirectionLock:$t,onDirectionLock:Pt,onDrag:Nt}=this.getProps();if(!St&&!this.openDragLock)return;const{offset:Lt}=vt;if($t&&this.currentDirection===null){this.currentDirection=getCurrentDirection(Lt),this.currentDirection!==null&&Pt&&Pt(this.currentDirection);return}this.updateAxis("x",vt.point,Lt),this.updateAxis("y",vt.point,Lt),this.visualElement.render(),Nt&&frame.update(()=>Nt(Qt,vt),!1,!0)},Et=(Qt,vt)=>{this.latestPointerEvent=Qt,this.latestPanInfo=vt,this.stop(Qt,vt),this.latestPointerEvent=null,this.latestPanInfo=null},Ot=()=>{const{dragSnapToOrigin:Qt}=this.getProps();(Qt||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:_t}=this.getProps();this.panSession=new PanSession(ot,{onSessionStart:ht,onStart:yt,onMove:kt,onSessionEnd:Et,resumeAnimation:Ot},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:_t,distanceThreshold:pt,contextWindow:getContextWindow(this.visualElement),element:this.visualElement.current})}stop(ot,ut){const pt=ot||this.latestPointerEvent,ft=ut||this.latestPanInfo,ht=this.isDragging;if(this.cancel(),!ht||!ft||!pt)return;const{velocity:yt}=ft;this.startAnimation(yt);const{onDragEnd:kt}=this.getProps();kt&&frame.postRender(()=>kt(pt,ft))}cancel(){this.isDragging=!1;const{projection:ot,animationState:ut}=this.visualElement;ot&&(ot.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:pt}=this.getProps();!pt&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),ut&&ut.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(ot,ut,pt){const{drag:ft}=this.getProps();if(!pt||!shouldDrag(ot,ft,this.currentDirection))return;const ht=this.getAxisMotionValue(ot);let yt=this.originPoint[ot]+pt[ot];this.constraints&&this.constraints[ot]&&(yt=applyConstraints(yt,this.constraints[ot],this.elastic[ot])),ht.set(yt)}resolveConstraints(){const{dragConstraints:ot,dragElastic:ut}=this.getProps(),pt=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,ft=this.constraints;ot&&isRefObject(ot)?this.constraints||(this.constraints=this.resolveRefConstraints()):ot&&pt?this.constraints=calcRelativeConstraints(pt.layoutBox,ot):this.constraints=!1,this.elastic=resolveDragElastic(ut),ft!==this.constraints&&!isRefObject(ot)&&pt&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(ht=>{this.constraints!==!1&&this.getAxisMotionValue(ht)&&(this.constraints[ht]=rebaseAxisConstraints(pt.layoutBox[ht],this.constraints[ht]))})}resolveRefConstraints(){const{dragConstraints:ot,onMeasureDragConstraints:ut}=this.getProps();if(!ot||!isRefObject(ot))return!1;const pt=ot.current,{projection:ft}=this.visualElement;if(!ft||!ft.layout)return!1;const ht=measurePageBox(pt,ft.root,this.visualElement.getTransformPagePoint());let yt=calcViewportConstraints(ft.layout.layoutBox,ht);if(ut){const kt=ut(convertBoxToBoundingBox(yt));this.hasMutatedConstraints=!!kt,kt&&(yt=convertBoundingBoxToBox(kt))}return yt}startAnimation(ot){const{drag:ut,dragMomentum:pt,dragElastic:ft,dragTransition:ht,dragSnapToOrigin:yt,onDragTransitionEnd:kt}=this.getProps(),Et=this.constraints||{},Ot=eachAxis(_t=>{if(!shouldDrag(_t,ut,this.currentDirection))return;let Qt=Et&&Et[_t]||{};yt&&(Qt={min:0,max:0});const vt=ft?200:1e6,St=ft?40:1e7,$t={type:"inertia",velocity:pt?ot[_t]:0,bounceStiffness:vt,bounceDamping:St,timeConstant:750,restDelta:1,restSpeed:10,...ht,...Qt};return this.startAxisValueAnimation(_t,$t)});return Promise.all(Ot).then(kt)}startAxisValueAnimation(ot,ut){const pt=this.getAxisMotionValue(ot);return addValueToWillChange(this.visualElement,ot),pt.start(animateMotionValue(ot,pt,0,ut,this.visualElement,!1))}stopAnimation(){eachAxis(ot=>this.getAxisMotionValue(ot).stop())}getAxisMotionValue(ot){const ut=`_drag${ot.toUpperCase()}`,pt=this.visualElement.getProps(),ft=pt[ut];return ft||this.visualElement.getValue(ot,(pt.initial?pt.initial[ot]:void 0)||0)}snapToCursor(ot){eachAxis(ut=>{const{drag:pt}=this.getProps();if(!shouldDrag(ut,pt,this.currentDirection))return;const{projection:ft}=this.visualElement,ht=this.getAxisMotionValue(ut);if(ft&&ft.layout){const{min:yt,max:kt}=ft.layout.layoutBox[ut],Et=ht.get()||0;ht.set(ot[ut]-mixNumber$1(yt,kt,.5)+Et)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:ot,dragConstraints:ut}=this.getProps(),{projection:pt}=this.visualElement;if(!isRefObject(ut)||!pt||!this.constraints)return;this.stopAnimation();const ft={x:0,y:0};eachAxis(yt=>{const kt=this.getAxisMotionValue(yt);if(kt&&this.constraints!==!1){const Et=kt.get();ft[yt]=calcOrigin({min:Et,max:Et},this.constraints[yt])}});const{transformTemplate:ht}=this.visualElement.getProps();this.visualElement.current.style.transform=ht?ht({},""):"none",pt.root&&pt.root.updateScroll(),pt.updateLayout(),this.constraints=!1,this.resolveConstraints(),eachAxis(yt=>{if(!shouldDrag(yt,ot,null))return;const kt=this.getAxisMotionValue(yt),{min:Et,max:Ot}=this.constraints[yt];kt.set(mixNumber$1(Et,Ot,ft[yt]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;elementDragControls.set(this.visualElement,this);const ot=this.visualElement.current,ut=addPointerEvent(ot,"pointerdown",Ot=>{const{drag:_t,dragListener:Qt=!0}=this.getProps(),vt=Ot.target,St=vt!==ot&&isElementTextInput(vt);_t&&Qt&&!St&&this.start(Ot)});let pt;const ft=()=>{const{dragConstraints:Ot}=this.getProps();isRefObject(Ot)&&Ot.current&&(this.constraints=this.resolveRefConstraints(),pt||(pt=startResizeObservers(ot,Ot.current,()=>this.scalePositionWithinConstraints())))},{projection:ht}=this.visualElement,yt=ht.addEventListener("measure",ft);ht&&!ht.layout&&(ht.root&&ht.root.updateScroll(),ht.updateLayout()),frame.read(ft);const kt=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),Et=ht.addEventListener("didUpdate",(({delta:Ot,hasLayoutChanged:_t})=>{this.isDragging&&_t&&(eachAxis(Qt=>{const vt=this.getAxisMotionValue(Qt);vt&&(this.originPoint[Qt]+=Ot[Qt].translate,vt.set(vt.get()+Ot[Qt].translate))}),this.visualElement.render())}));return()=>{kt(),ut(),yt(),Et&&Et(),pt&&pt()}}getProps(){const ot=this.visualElement.getProps(),{drag:ut=!1,dragDirectionLock:pt=!1,dragPropagation:ft=!1,dragConstraints:ht=!1,dragElastic:yt=defaultElastic,dragMomentum:kt=!0}=ot;return{...ot,drag:ut,dragDirectionLock:pt,dragPropagation:ft,dragConstraints:ht,dragElastic:yt,dragMomentum:kt}}}function skipFirstCall(At){let ot=!0;return()=>{if(ot){ot=!1;return}At()}}function startResizeObservers(At,ot,ut){const pt=resize(At,skipFirstCall(ut)),ft=resize(ot,skipFirstCall(ut));return()=>{pt(),ft()}}function shouldDrag(At,ot,ut){return(ot===!0||ot===At)&&(ut===null||ut===At)}function getCurrentDirection(At,ot=10){let ut=null;return Math.abs(At.y)>ot?ut="y":Math.abs(At.x)>ot&&(ut="x"),ut}class DragGesture extends Feature{constructor(ot){super(ot),this.removeGroupControls=noop$3,this.removeListeners=noop$3,this.controls=new VisualElementDragControls(ot)}mount(){const{dragControls:ot}=this.node.getProps();ot&&(this.removeGroupControls=ot.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop$3}update(){const{dragControls:ot}=this.node.getProps(),{dragControls:ut}=this.node.prevProps||{};ot!==ut&&(this.removeGroupControls(),ot&&(this.removeGroupControls=ot.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const asyncHandler=At=>(ot,ut)=>{At&&frame.update(()=>At(ot,ut),!1,!0)};class PanGesture extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop$3}onPointerDown(ot){this.session=new PanSession(ot,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){const{onPanSessionStart:ot,onPanStart:ut,onPan:pt,onPanEnd:ft}=this.node.getProps();return{onSessionStart:asyncHandler(ot),onStart:asyncHandler(ut),onMove:asyncHandler(pt),onEnd:(ht,yt)=>{delete this.session,ft&&frame.postRender(()=>ft(ht,yt))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",ot=>this.onPointerDown(ot))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let hasTakenAnySnapshot=!1;class MeasureLayoutWithContext extends reactExports.Component{componentDidMount(){const{visualElement:ot,layoutGroup:ut,switchLayoutGroup:pt,layoutId:ft}=this.props,{projection:ht}=ot;ht&&(ut.group&&ut.group.add(ht),pt&&pt.register&&ft&&pt.register(ht),hasTakenAnySnapshot&&ht.root.didUpdate(),ht.addEventListener("animationComplete",()=>{this.safeToRemove()}),ht.setOptions({...ht.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(ot){const{layoutDependency:ut,visualElement:pt,drag:ft,isPresent:ht}=this.props,{projection:yt}=pt;return yt&&(yt.isPresent=ht,ot.layoutDependency!==ut&&yt.setOptions({...yt.options,layoutDependency:ut}),hasTakenAnySnapshot=!0,ft||ot.layoutDependency!==ut||ut===void 0||ot.isPresent!==ht?yt.willUpdate():this.safeToRemove(),ot.isPresent!==ht&&(ht?yt.promote():yt.relegate()||frame.postRender(()=>{const kt=yt.getStack();(!kt||!kt.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:ot}=this.props.visualElement;ot&&(ot.root.didUpdate(),microtask.postRender(()=>{!ot.currentAnimation&&ot.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:ot,layoutGroup:ut,switchLayoutGroup:pt}=this.props,{projection:ft}=ot;hasTakenAnySnapshot=!0,ft&&(ft.scheduleCheckAfterUnmount(),ut&&ut.group&&ut.group.remove(ft),pt&&pt.deregister&&pt.deregister(ft))}safeToRemove(){const{safeToRemove:ot}=this.props;ot&&ot()}render(){return null}}function MeasureLayout(At){const[ot,ut]=usePresence$1(),pt=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(MeasureLayoutWithContext,{...At,layoutGroup:pt,switchLayoutGroup:reactExports.useContext(SwitchLayoutGroupContext),isPresent:ot,safeToRemove:ut})}const drag={pan:{Feature:PanGesture},drag:{Feature:DragGesture,ProjectionNode:HTMLProjectionNode,MeasureLayout}};function handleHoverEvent(At,ot,ut){const{props:pt}=At;At.animationState&&pt.whileHover&&At.animationState.setActive("whileHover",ut==="Start");const ft="onHover"+ut,ht=pt[ft];ht&&frame.postRender(()=>ht(ot,extractEventInfo(ot)))}class HoverGesture extends Feature{mount(){const{current:ot}=this.node;ot&&(this.unmount=hover(ot,(ut,pt)=>(handleHoverEvent(this.node,pt,"Start"),ft=>handleHoverEvent(this.node,ft,"End"))))}unmount(){}}class FocusGesture extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let ot=!1;try{ot=this.node.current.matches(":focus-visible")}catch{ot=!0}!ot||!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=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function handlePressEvent(At,ot,ut){const{props:pt}=At;if(At.current instanceof HTMLButtonElement&&At.current.disabled)return;At.animationState&&pt.whileTap&&At.animationState.setActive("whileTap",ut==="Start");const ft="onTap"+(ut==="End"?"":ut),ht=pt[ft];ht&&frame.postRender(()=>ht(ot,extractEventInfo(ot)))}class PressGesture extends Feature{mount(){const{current:ot}=this.node;if(!ot)return;const{globalTapTarget:ut,propagate:pt}=this.node.props;this.unmount=press(ot,(ft,ht)=>(handlePressEvent(this.node,ht,"Start"),(yt,{success:kt})=>handlePressEvent(this.node,yt,kt?"End":"Cancel")),{useGlobalTarget:ut,stopPropagation:pt?.tap===!1})}unmount(){}}const observerCallbacks=new WeakMap,observers$1=new WeakMap,fireObserverCallback=At=>{const ot=observerCallbacks.get(At.target);ot&&ot(At)},fireAllObserverCallbacks=At=>{At.forEach(fireObserverCallback)};function initIntersectionObserver({root:At,...ot}){const ut=At||document;observers$1.has(ut)||observers$1.set(ut,{});const pt=observers$1.get(ut),ft=JSON.stringify(ot);return pt[ft]||(pt[ft]=new IntersectionObserver(fireAllObserverCallbacks,{root:At,...ot})),pt[ft]}function observeIntersection(At,ot,ut){const pt=initIntersectionObserver(ot);return observerCallbacks.set(At,ut),pt.observe(At),()=>{observerCallbacks.delete(At),pt.unobserve(At)}}const thresholdNames={some:0,all:1};class InViewFeature extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:ot={}}=this.node.getProps(),{root:ut,margin:pt,amount:ft="some",once:ht}=ot,yt={root:ut?ut.current:void 0,rootMargin:pt,threshold:typeof ft=="number"?ft:thresholdNames[ft]},kt=Et=>{const{isIntersecting:Ot}=Et;if(this.isInView===Ot||(this.isInView=Ot,ht&&!Ot&&this.hasEnteredView))return;Ot&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",Ot);const{onViewportEnter:_t,onViewportLeave:Qt}=this.node.getProps(),vt=Ot?_t:Qt;vt&&vt(Et)};return observeIntersection(this.node.current,yt,kt)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:ot,prevProps:ut}=this.node;["amount","margin","root"].some(hasViewportOptionChanged(ot,ut))&&this.startObserver()}unmount(){}}function hasViewportOptionChanged({viewport:At={}},{viewport:ot={}}={}){return ut=>At[ut]!==ot[ut]}const gestureAnimations={inView:{Feature:InViewFeature},tap:{Feature:PressGesture},focus:{Feature:FocusGesture},hover:{Feature:HoverGesture}},layout={layout:{ProjectionNode:HTMLProjectionNode,MeasureLayout}},featureBundle={...animations,...gestureAnimations,...drag,...layout},motion=createMotionProxy(featureBundle,createDomVisualElement);function useMotionValue(At){const ot=useConstant(()=>motionValue(At)),{isStatic:ut}=reactExports.useContext(MotionConfigContext);if(ut){const[,pt]=reactExports.useState(At);reactExports.useEffect(()=>ot.on("change",pt),[])}return ot}function isDOMKeyframes(At){return typeof At=="object"&&!Array.isArray(At)}function resolveSubjects(At,ot,ut,pt){return At==null?[]:typeof At=="string"&&isDOMKeyframes(ot)?resolveElements(At,ut,pt):At instanceof NodeList?Array.from(At):Array.isArray(At)?At.filter(ft=>ft!=null):[At]}function calculateRepeatDuration(At,ot,ut){return At*(ot+1)}function calcNextTime(At,ot,ut,pt){return typeof ot=="number"?ot:ot.startsWith("-")||ot.startsWith("+")?Math.max(0,At+parseFloat(ot)):ot==="<"?ut:ot.startsWith("<")?Math.max(0,ut+parseFloat(ot.slice(1))):pt.get(ot)??At}function eraseKeyframes(At,ot,ut){for(let pt=0;pt<At.length;pt++){const ft=At[pt];ft.at>ot&&ft.at<ut&&(removeItem$1(At,ft),pt--)}}function addKeyframes(At,ot,ut,pt,ft,ht){eraseKeyframes(At,ft,ht);for(let yt=0;yt<ot.length;yt++)At.push({value:ot[yt],at:mixNumber$1(ft,ht,pt[yt]),easing:getEasingForSegment(ut,yt)})}function normalizeTimes(At,ot){for(let ut=0;ut<At.length;ut++)At[ut]=At[ut]/(ot+1)}function compareByTime(At,ot){return At.at===ot.at?At.value===null?1:ot.value===null?-1:0:At.at-ot.at}const defaultSegmentEasing="easeInOut";function createAnimationsFromSequence(At,{defaultTransition:ot={},...ut}={},pt,ft){const ht=ot.duration||.3,yt=new Map,kt=new Map,Et={},Ot=new Map;let _t=0,Qt=0,vt=0;for(let St=0;St<At.length;St++){const $t=At[St];if(typeof $t=="string"){Ot.set($t,Qt);continue}else if(!Array.isArray($t)){Ot.set($t.name,calcNextTime(Qt,$t.at,_t,Ot));continue}let[Pt,Nt,Lt={}]=$t;Lt.at!==void 0&&(Qt=calcNextTime(Qt,Lt.at,_t,Ot));let qt=0;const jt=(Zt,Ht,Wt,wn=0,Qn=0)=>{const Jt=keyframesAsList(Zt),{delay:Gn=0,times:Jn=defaultOffset(Jt),type:Vn=ot.type||"keyframes",repeat:Fn,repeatType:Xn,repeatDelay:Ar=0,...Yn}=Ht;let{ease:lr=ot.ease||"easeOut",duration:nr}=Ht;const mr=typeof Gn=="function"?Gn(wn,Qn):Gn,Zn=Jt.length,ur=isGenerator(Vn)?Vn:ft?.[Vn||"keyframes"];if(Zn<=2&&ur){let kr=100;if(Zn===2&&isNumberKeyframesArray(Jt)){const Gr=Jt[1]-Jt[0];kr=Math.abs(Gr)}const Br={...ot,...Yn};nr!==void 0&&(Br.duration=secondsToMilliseconds(nr));const Dr=createGeneratorEasing(Br,kr,ur);lr=Dr.ease,nr=Dr.duration}nr??(nr=ht);const yr=Qt+mr;Jn.length===1&&Jn[0]===0&&(Jn[1]=1);const ir=Jn.length-Jt.length;if(ir>0&&fillOffset(Jn,ir),Jt.length===1&&Jt.unshift(null),Fn){nr=calculateRepeatDuration(nr,Fn);const kr=[...Jt],Br=[...Jn];lr=Array.isArray(lr)?[...lr]:[lr];const Dr=[...lr];for(let Gr=0;Gr<Fn;Gr++){Jt.push(...kr);for(let jr=0;jr<kr.length;jr++)Jn.push(Br[jr]+(Gr+1)),lr.push(jr===0?"linear":getEasingForSegment(Dr,jr-1))}normalizeTimes(Jn,Fn)}const Cr=yr+nr;addKeyframes(Wt,Jt,lr,Jn,yr,Cr),qt=Math.max(mr+nr,qt),vt=Math.max(Cr,vt)};if(isMotionValue(Pt)){const Zt=getSubjectSequence(Pt,kt);jt(Nt,Lt,getValueSequence("default",Zt))}else{const Zt=resolveSubjects(Pt,Nt,pt,Et),Ht=Zt.length;for(let Wt=0;Wt<Ht;Wt++){Nt=Nt,Lt=Lt;const wn=Zt[Wt],Qn=getSubjectSequence(wn,kt);for(const Jt in Nt)jt(Nt[Jt],getValueTransition(Lt,Jt),getValueSequence(Jt,Qn),Wt,Ht)}}_t=Qt,Qt+=qt}return kt.forEach((St,$t)=>{for(const Pt in St){const Nt=St[Pt];Nt.sort(compareByTime);const Lt=[],qt=[],jt=[];for(let wn=0;wn<Nt.length;wn++){const{at:Qn,value:Jt,easing:Gn}=Nt[wn];Lt.push(Jt),qt.push(progress(0,vt,Qn)),jt.push(Gn||"easeOut")}qt[0]!==0&&(qt.unshift(0),Lt.unshift(Lt[0]),jt.unshift(defaultSegmentEasing)),qt[qt.length-1]!==1&&(qt.push(1),Lt.push(null)),yt.has($t)||yt.set($t,{keyframes:{},transition:{}});const Zt=yt.get($t);Zt.keyframes[Pt]=Lt;const{type:Ht,...Wt}=ot;Zt.transition[Pt]={...Wt,duration:vt,ease:jt,times:qt,...ut}}}),yt}function getSubjectSequence(At,ot){return!ot.has(At)&&ot.set(At,{}),ot.get(At)}function getValueSequence(At,ot){return ot[At]||(ot[At]=[]),ot[At]}function keyframesAsList(At){return Array.isArray(At)?At:[At]}function getValueTransition(At,ot){return At&&At[ot]?{...At,...At[ot]}:{...At}}const isNumber$5=At=>typeof At=="number",isNumberKeyframesArray=At=>At.every(isNumber$5);function createDOMVisualElement(At){const ot={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},ut=isSVGElement$2(At)&&!isSVGSVGElement(At)?new SVGVisualElement(ot):new HTMLVisualElement(ot);ut.mount(At),visualElementStore.set(At,ut)}function createObjectVisualElement(At){const ot={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},ut=new ObjectVisualElement(ot);ut.mount(At),visualElementStore.set(At,ut)}function isSingleValue(At,ot){return isMotionValue(At)||typeof At=="number"||typeof At=="string"&&!isDOMKeyframes(ot)}function animateSubject(At,ot,ut,pt){const ft=[];if(isSingleValue(At,ot))ft.push(animateSingleValue(At,isDOMKeyframes(ot)&&ot.default||ot,ut&&(ut.default||ut)));else{if(At==null)return ft;const ht=resolveSubjects(At,ot,pt),yt=ht.length;for(let kt=0;kt<yt;kt++){const Et=ht[kt],Ot=Et instanceof Element?createDOMVisualElement:createObjectVisualElement;visualElementStore.has(Et)||Ot(Et);const _t=visualElementStore.get(Et),Qt={...ut};"delay"in Qt&&typeof Qt.delay=="function"&&(Qt.delay=Qt.delay(kt,yt)),ft.push(...animateTarget(_t,{...ot,transition:Qt},{}))}}return ft}function animateSequence(At,ot,ut){const pt=[],ft=At.map(yt=>{if(Array.isArray(yt)&&typeof yt[0]=="function"){const kt=yt[0],Et=motionValue(0);return Et.on("change",kt),yt.length===1?[Et,[0,1]]:yt.length===2?[Et,[0,1],yt[1]]:[Et,yt[1],yt[2]]}return yt});return createAnimationsFromSequence(ft,ot,ut,{spring}).forEach(({keyframes:yt,transition:kt},Et)=>{pt.push(...animateSubject(Et,yt,kt))}),pt}function isSequence(At){return Array.isArray(At)&&At.some(Array.isArray)}function createScopedAnimate(At={}){const{scope:ot,reduceMotion:ut}=At;function pt(ft,ht,yt){let kt=[],Et;if(isSequence(ft))kt=animateSequence(ft,ut!==void 0?{reduceMotion:ut,...ht}:ht,ot);else{const{onComplete:_t,...Qt}=yt||{};typeof _t=="function"&&(Et=_t),kt=animateSubject(ft,ht,ut!==void 0?{reduceMotion:ut,...Qt}:Qt,ot)}const Ot=new GroupAnimationWithThen(kt);return Et&&Ot.finished.then(Et),ot&&(ot.animations.push(Ot),Ot.finished.then(()=>{removeItem$1(ot.animations,Ot)})),Ot}return pt}const animate=createScopedAnimate(),UNINITIALIZED={};function useRefWithInit(At,ot){const ut=reactExports.useRef(UNINITIALIZED);return ut.current===UNINITIALIZED&&(ut.current=At(ot)),ut}const hooks$3=[];let currentInstance;function getInstance(){return currentInstance}function register$2(At){hooks$3.push(At)}function fastComponent(At){const ot=(ut,pt)=>{const ft=useRefWithInit(createInstance).current;let ht;try{currentInstance=ft;for(const yt of hooks$3)yt.before(ft);ht=At(ut,pt);for(const yt of hooks$3)yt.after(ft);ft.didInitialize=!0}finally{currentInstance=void 0}return ht};return ot.displayName=At.displayName||At.name,ot}function fastComponentRef(At){return reactExports.forwardRef(fastComponent(At))}function createInstance(){return{didInitialize:!1}}function useOnFirstRender(At){const ot=reactExports.useRef(!0);ot.current&&(ot.current=!1,At())}const noop$2=()=>{},useIsoLayoutEffect=typeof document<"u"?reactExports.useLayoutEffect:noop$2;function createFormatErrorMessage(At,ot){return function(pt,...ft){const ht=new URL(At);return ht.searchParams.set("code",pt.toString()),ft.forEach(yt=>ht.searchParams.append("args[]",yt)),`${ot} error #${pt}; visit ${ht} for the full message.`}}const formatErrorMessage=createFormatErrorMessage("https://base-ui.com/production-error","Base UI"),TooltipRootContext=reactExports.createContext(void 0);function useTooltipRootContext(At){const ot=reactExports.useContext(TooltipRootContext);if(ot===void 0&&!At)throw new Error(formatErrorMessage(72));return ot}const EMPTY$3=[];function useOnMount(At){reactExports.useEffect(At,EMPTY$3)}const EMPTY$2=0;class Timeout{static create(){return new Timeout}currentId=EMPTY$2;start(ot,ut){this.clear(),this.currentId=setTimeout(()=>{this.currentId=EMPTY$2,ut()},ot)}isStarted(){return this.currentId!==EMPTY$2}clear=()=>{this.currentId!==EMPTY$2&&(clearTimeout(this.currentId),this.currentId=EMPTY$2)};disposeEffect=()=>this.clear}function useTimeout(){const At=useRefWithInit(Timeout.create).current;return useOnMount(At.disposeEffect),At}const hasNavigator=typeof navigator<"u",nav$1=getNavigatorData(),platform$1=getPlatform(),userAgent=getUserAgent(),isWebKit$1=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),isIOS=nav$1.platform==="MacIntel"&&nav$1.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(nav$1.platform),isSafari=hasNavigator&&/apple/i.test(navigator.vendor),isAndroid=hasNavigator&&/android/i.test(platform$1)||/android/i.test(userAgent),isMac=hasNavigator&&platform$1.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,isJSDOM=userAgent.includes("jsdom/");function getNavigatorData(){if(!hasNavigator)return{platform:"",maxTouchPoints:-1};const At=navigator.userAgentData;return At?.platform?{platform:At.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function getUserAgent(){if(!hasNavigator)return"";const At=navigator.userAgentData;return At&&Array.isArray(At.brands)?At.brands.map(({brand:ot,version:ut})=>`${ot}/${ut}`).join(" "):navigator.userAgent}function getPlatform(){if(!hasNavigator)return"";const At=navigator.userAgentData;return At?.platform?At.platform:navigator.platform??""}function stopEvent(At){At.preventDefault(),At.stopPropagation()}function isReactEvent(At){return"nativeEvent"in At}function isVirtualClick(At){return At.pointerType===""&&At.isTrusted?!0:isAndroid&&At.pointerType?At.type==="click"&&At.buttons===1:At.detail===0&&!At.pointerType}function isVirtualPointerEvent(At){return isJSDOM?!1:!isAndroid&&At.width===0&&At.height===0||isAndroid&&At.width===1&&At.height===1&&At.pressure===0&&At.detail===0&&At.pointerType==="mouse"||At.width<1&&At.height<1&&At.pressure===0&&At.detail===0&&At.pointerType==="touch"}function isMouseLikePointerType(At,ot){const ut=["mouse","pen"];return ot||ut.push("",void 0),ut.includes(At)}function isClickLikeEvent(At){const ot=At.type;return ot==="click"||ot==="mousedown"||ot==="keydown"||ot==="keyup"}function resolveValue(At,ot){return ot!=null&&!isMouseLikePointerType(ot)?0:typeof At=="function"?At():At}function getDelay(At,ot,ut){const pt=resolveValue(At,ut);return typeof pt=="number"?pt:pt?.[ot]}function getRestMs(At){return typeof At=="function"?At():At}function isClickLikeOpenEvent(At,ot){return ot||At==="click"||At==="mousedown"}function NOOP(){}const EMPTY_ARRAY=Object.freeze([]),EMPTY_OBJECT=Object.freeze({}),TYPEAHEAD_RESET_MS=500,PATIENT_CLICK_THRESHOLD=500,DISABLED_TRANSITIONS_STYLE={style:{transition:"none"}},CLICK_TRIGGER_IDENTIFIER="data-base-ui-click-trigger",DROPDOWN_COLLISION_AVOIDANCE={fallbackAxisSide:"none"},POPUP_COLLISION_AVOIDANCE={fallbackAxisSide:"end"},ownerVisuallyHidden={clipPath:"inset(50%)",position:"fixed",top:0,left:0},none$3="none",triggerPress="trigger-press",triggerHover="trigger-hover",triggerFocus="trigger-focus",outsidePress="outside-press",itemPress="item-press",closePress="close-press",focusOut="focus-out",escapeKey="escape-key",listNavigation="list-navigation",cancelOpen="cancel-open",siblingOpen="sibling-open",disabled="disabled",imperativeAction="imperative-action",windowResize="window-resize";function createChangeEventDetails(At,ot,ut,pt){let ft=!1,ht=!1;const yt=EMPTY_OBJECT;return{reason:At,event:ot??new Event("base-ui"),cancel(){ft=!0},allowPropagation(){ht=!0},get isCanceled(){return ft},get isPropagationAllowed(){return ht},trigger:ut,...yt}}const FloatingDelayGroupContext=reactExports.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Timeout,currentIdRef:{current:null},currentContextRef:{current:null}});function FloatingDelayGroup(At){const{children:ot,delay:ut,timeoutMs:pt=0}=At,ft=reactExports.useRef(ut),ht=reactExports.useRef(ut),yt=reactExports.useRef(null),kt=reactExports.useRef(null),Et=useTimeout();return jsxRuntimeExports.jsx(FloatingDelayGroupContext.Provider,{value:reactExports.useMemo(()=>({hasProvider:!0,delayRef:ft,initialDelayRef:ht,currentIdRef:yt,timeoutMs:pt,currentContextRef:kt,timeout:Et}),[pt,Et]),children:ot})}function useDelayGroup(At,ot={open:!1}){const ut="rootStore"in At?At.rootStore:At,pt=ut.useState("floatingId"),{open:ft}=ot,ht=reactExports.useContext(FloatingDelayGroupContext),{currentIdRef:yt,delayRef:kt,timeoutMs:Et,initialDelayRef:Ot,currentContextRef:_t,hasProvider:Qt,timeout:vt}=ht,[St,$t]=reactExports.useState(!1);return useIsoLayoutEffect(()=>{function Pt(){$t(!1),_t.current?.setIsInstantPhase(!1),yt.current=null,_t.current=null,kt.current=Ot.current}if(yt.current&&!ft&&yt.current===pt){if($t(!1),Et){const Nt=pt;return vt.start(Et,()=>{ut.select("open")||yt.current&&yt.current!==Nt||Pt()}),()=>{vt.clear()}}Pt()}},[ft,pt,yt,kt,Et,Ot,_t,vt,ut]),useIsoLayoutEffect(()=>{if(!ft)return;const Pt=_t.current,Nt=yt.current;vt.clear(),_t.current={onOpenChange:ut.setOpen,setIsInstantPhase:$t},yt.current=pt,kt.current={open:0,close:getDelay(Ot.current,"close")},Nt!==null&&Nt!==pt?($t(!0),Pt?.setIsInstantPhase(!0),Pt?.onOpenChange(!1,createChangeEventDetails(none$3))):($t(!1),Pt?.setIsInstantPhase(!1))},[ft,pt,ut,yt,kt,Et,Ot,_t,vt]),useIsoLayoutEffect(()=>()=>{_t.current=null},[_t]),reactExports.useMemo(()=>({hasProvider:Qt,delayRef:kt,isInstantPhase:St}),[Qt,kt,St])}function hasWindow(){return typeof window<"u"}function getNodeName(At){return isNode$1(At)?(At.nodeName||"").toLowerCase():"#document"}function getWindow$1(At){var ot;return(At==null||(ot=At.ownerDocument)==null?void 0:ot.defaultView)||window}function getDocumentElement(At){var ot;return(ot=(isNode$1(At)?At.ownerDocument:At.document)||window.document)==null?void 0:ot.documentElement}function isNode$1(At){return hasWindow()?At instanceof Node||At instanceof getWindow$1(At).Node:!1}function isElement(At){return hasWindow()?At instanceof Element||At instanceof getWindow$1(At).Element:!1}function isHTMLElement$1(At){return hasWindow()?At instanceof HTMLElement||At instanceof getWindow$1(At).HTMLElement:!1}function isShadowRoot(At){return!hasWindow()||typeof ShadowRoot>"u"?!1:At instanceof ShadowRoot||At instanceof getWindow$1(At).ShadowRoot}function isOverflowElement(At){const{overflow:ot,overflowX:ut,overflowY:pt,display:ft}=getComputedStyle$1(At);return/auto|scroll|overlay|hidden|clip/.test(ot+pt+ut)&&ft!=="inline"&&ft!=="contents"}function isTableElement(At){return/^(table|td|th)$/.test(getNodeName(At))}function isTopLayer(At){try{if(At.matches(":popover-open"))return!0}catch{}try{return At.matches(":modal")}catch{return!1}}const willChangeRe=/transform|translate|scale|rotate|perspective|filter/,containRe=/paint|layout|strict|content/,isNotNone=At=>!!At&&At!=="none";let isWebKitValue;function isContainingBlock(At){const ot=isElement(At)?getComputedStyle$1(At):At;return isNotNone(ot.transform)||isNotNone(ot.translate)||isNotNone(ot.scale)||isNotNone(ot.rotate)||isNotNone(ot.perspective)||!isWebKit()&&(isNotNone(ot.backdropFilter)||isNotNone(ot.filter))||willChangeRe.test(ot.willChange||"")||containRe.test(ot.contain||"")}function getContainingBlock(At){let ot=getParentNode(At);for(;isHTMLElement$1(ot)&&!isLastTraversableNode(ot);){if(isContainingBlock(ot))return ot;if(isTopLayer(ot))return null;ot=getParentNode(ot)}return null}function isWebKit(){return isWebKitValue==null&&(isWebKitValue=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),isWebKitValue}function isLastTraversableNode(At){return/^(html|body|#document)$/.test(getNodeName(At))}function getComputedStyle$1(At){return getWindow$1(At).getComputedStyle(At)}function getNodeScroll(At){return isElement(At)?{scrollLeft:At.scrollLeft,scrollTop:At.scrollTop}:{scrollLeft:At.scrollX,scrollTop:At.scrollY}}function getParentNode(At){if(getNodeName(At)==="html")return At;const ot=At.assignedSlot||At.parentNode||isShadowRoot(At)&&At.host||getDocumentElement(At);return isShadowRoot(ot)?ot.host:ot}function getNearestOverflowAncestor(At){const ot=getParentNode(At);return isLastTraversableNode(ot)?At.ownerDocument?At.ownerDocument.body:At.body:isHTMLElement$1(ot)&&isOverflowElement(ot)?ot:getNearestOverflowAncestor(ot)}function getOverflowAncestors(At,ot,ut){var pt;ot===void 0&&(ot=[]),ut===void 0&&(ut=!0);const ft=getNearestOverflowAncestor(At),ht=ft===((pt=At.ownerDocument)==null?void 0:pt.body),yt=getWindow$1(ft);if(ht){const kt=getFrameElement(yt);return ot.concat(yt,yt.visualViewport||[],isOverflowElement(ft)?ft:[],kt&&ut?getOverflowAncestors(kt):[])}else return ot.concat(ft,getOverflowAncestors(ft,[],ut))}function getFrameElement(At){return At.parent&&Object.getPrototypeOf(At.parent)?At.frameElement:null}function addEventListener(At,ot,ut,pt){return At.addEventListener(ot,ut,pt),()=>{At.removeEventListener(ot,ut,pt)}}function mergeCleanups(...At){return()=>{for(let ot=0;ot<At.length;ot+=1){const ut=At[ot];ut&&ut()}}}function useMergedRefs(At,ot,ut,pt){const ft=useRefWithInit(createForkRef).current;return didChange(ft,At,ot,ut,pt)&&update(ft,[At,ot,ut,pt]),ft.callback}function useMergedRefsN(At){const ot=useRefWithInit(createForkRef).current;return didChangeN(ot,At)&&update(ot,At),ot.callback}function createForkRef(){return{callback:null,cleanup:null,refs:[]}}function didChange(At,ot,ut,pt,ft){return At.refs[0]!==ot||At.refs[1]!==ut||At.refs[2]!==pt||At.refs[3]!==ft}function didChangeN(At,ot){return At.refs.length!==ot.length||At.refs.some((ut,pt)=>ut!==ot[pt])}function update(At,ot){if(At.refs=ot,ot.every(ut=>ut==null)){At.callback=null;return}At.callback=ut=>{if(At.cleanup&&(At.cleanup(),At.cleanup=null),ut!=null){const pt=Array(ot.length).fill(null);for(let ft=0;ft<ot.length;ft+=1){const ht=ot[ft];if(ht!=null)switch(typeof ht){case"function":{const yt=ht(ut);typeof yt=="function"&&(pt[ft]=yt);break}case"object":{ht.current=ut;break}}}At.cleanup=()=>{for(let ft=0;ft<ot.length;ft+=1){const ht=ot[ft];if(ht!=null)switch(typeof ht){case"function":{const yt=pt[ft];typeof yt=="function"?yt():ht(null);break}case"object":{ht.current=null;break}}}}}}}function useValueAsRef(At){const ot=useRefWithInit(createLatestRef,At).current;return ot.next=At,useIsoLayoutEffect(ot.effect),ot}function createLatestRef(At){const ot={current:At,next:At,effect:()=>{ot.current=ot.next}};return ot}const useInsertionEffect$1=React$1[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],useSafeInsertionEffect=useInsertionEffect$1&&useInsertionEffect$1!==reactExports.useLayoutEffect?useInsertionEffect$1:At=>At();function useStableCallback$1(At){const ot=useRefWithInit(createStableCallback).current;return ot.next=At,useSafeInsertionEffect(ot.effect),ot.trampoline}function createStableCallback(){const At={next:void 0,callback:assertNotCalled,trampoline:(...ot)=>At.callback?.(...ot),effect:()=>{At.callback=At.next}};return At}function assertNotCalled(){}const EMPTY$1=null;class Scheduler{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=ot=>{this.isScheduled=!1;const ut=this.callbacks,pt=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,pt>0)for(let ft=0;ft<ut.length;ft+=1)ut[ft]?.(ot)};request(ot){const ut=this.nextId;return this.nextId+=1,this.callbacks.push(ot),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),ut}cancel(ot){const ut=ot-this.startId;ut<0||ut>=this.callbacks.length||(this.callbacks[ut]=null,this.callbacksCount-=1)}}const scheduler=new Scheduler;class AnimationFrame{static create(){return new AnimationFrame}static request(ot){return scheduler.request(ot)}static cancel(ot){return scheduler.cancel(ot)}currentId=EMPTY$1;request(ot){this.cancel(),this.currentId=scheduler.request(()=>{this.currentId=EMPTY$1,ot()})}cancel=()=>{this.currentId!==EMPTY$1&&(scheduler.cancel(this.currentId),this.currentId=EMPTY$1)};disposeEffect=()=>this.cancel}function useAnimationFrame(){const At=useRefWithInit(AnimationFrame.create).current;return useOnMount(At.disposeEffect),At}function ownerDocument(At){return At?.ownerDocument||document}const visuallyHiddenBase={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},visuallyHidden={...visuallyHiddenBase,position:"fixed",top:0,left:0},visuallyHiddenInput={...visuallyHiddenBase,position:"absolute"},FocusGuard=reactExports.forwardRef(function(ot,ut){const[pt,ft]=reactExports.useState();useIsoLayoutEffect(()=>{isSafari&&ft("button")},[]);const ht={tabIndex:0,role:pt};return jsxRuntimeExports.jsx("span",{...ot,ref:ut,style:visuallyHidden,"aria-hidden":pt?void 0:!0,...ht,"data-base-ui-focus-guard":""})}),FOCUSABLE_ATTRIBUTE="data-base-ui-focusable",ACTIVE_KEY="active",SELECTED_KEY="selected",TYPEABLE_SELECTOR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ARROW_LEFT$1="ArrowLeft",ARROW_RIGHT$1="ArrowRight",ARROW_UP$1="ArrowUp",ARROW_DOWN$1="ArrowDown";function activeElement(At){let ot=At.activeElement;for(;ot?.shadowRoot?.activeElement!=null;)ot=ot.shadowRoot.activeElement;return ot}function contains$2(At,ot){if(!At||!ot)return!1;const ut=ot.getRootNode?.();if(At.contains(ot))return!0;if(ut&&isShadowRoot(ut)){let pt=ot;for(;pt;){if(At===pt)return!0;pt=pt.parentNode||pt.host}}return!1}function getTarget(At){return"composedPath"in At?At.composedPath()[0]:At.target}function isTargetInsideEnabledTrigger(At,ot){if(!isElement(At))return!1;const ut=At;if(ot.hasElement(ut))return!ut.hasAttribute("data-trigger-disabled");for(const[,pt]of ot.entries())if(contains$2(pt,ut))return!pt.hasAttribute("data-trigger-disabled");return!1}function isEventTargetWithin(At,ot){if(ot==null)return!1;if("composedPath"in At)return At.composedPath().includes(ot);const ut=At;return ut.target!=null&&ot.contains(ut.target)}function isRootElement(At){return At.matches("html,body")}function isTypeableElement(At){return isHTMLElement$1(At)&&At.matches(TYPEABLE_SELECTOR)}function isInteractiveElement(At){return At?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${TYPEABLE_SELECTOR}`)!=null}function isTypeableCombobox(At){return At?At.getAttribute("role")==="combobox"&&isTypeableElement(At):!1}function matchesFocusVisible(At){if(!At||isJSDOM)return!0;try{return At.matches(":focus-visible")}catch{return!0}}function getFloatingFocusElement(At){return At?At.hasAttribute(FOCUSABLE_ATTRIBUTE)?At:At.querySelector(`[${FOCUSABLE_ATTRIBUTE}]`)||At:null}const sides=["top","right","bottom","left"],min$1=Math.min,max$1=Math.max,round$1=Math.round,floor=Math.floor,createCoords=At=>({x:At,y:At}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};function clamp$1(At,ot,ut){return max$1(At,min$1(ot,ut))}function evaluate(At,ot){return typeof At=="function"?At(ot):At}function getSide(At){return At.split("-")[0]}function getAlignment(At){return At.split("-")[1]}function getOppositeAxis(At){return At==="x"?"y":"x"}function getAxisLength(At){return At==="y"?"height":"width"}function getSideAxis(At){const ot=At[0];return ot==="t"||ot==="b"?"y":"x"}function getAlignmentAxis(At){return getOppositeAxis(getSideAxis(At))}function getAlignmentSides(At,ot,ut){ut===void 0&&(ut=!1);const pt=getAlignment(At),ft=getAlignmentAxis(At),ht=getAxisLength(ft);let yt=ft==="x"?pt===(ut?"end":"start")?"right":"left":pt==="start"?"bottom":"top";return ot.reference[ht]>ot.floating[ht]&&(yt=getOppositePlacement(yt)),[yt,getOppositePlacement(yt)]}function getExpandedPlacements(At){const ot=getOppositePlacement(At);return[getOppositeAlignmentPlacement(At),ot,getOppositeAlignmentPlacement(ot)]}function getOppositeAlignmentPlacement(At){return At.includes("start")?At.replace("start","end"):At.replace("end","start")}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(At,ot,ut){switch(At){case"top":case"bottom":return ut?ot?rlPlacement:lrPlacement:ot?lrPlacement:rlPlacement;case"left":case"right":return ot?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(At,ot,ut,pt){const ft=getAlignment(At);let ht=getSideList(getSide(At),ut==="start",pt);return ft&&(ht=ht.map(yt=>yt+"-"+ft),ot&&(ht=ht.concat(ht.map(getOppositeAlignmentPlacement)))),ht}function getOppositePlacement(At){const ot=getSide(At);return oppositeSideMap[ot]+At.slice(ot.length)}function expandPaddingObject(At){return{top:0,right:0,bottom:0,left:0,...At}}function getPaddingObject(At){return typeof At!="number"?expandPaddingObject(At):{top:At,right:At,bottom:At,left:At}}function rectToClientRect(At){const{x:ot,y:ut,width:pt,height:ft}=At;return{width:pt,height:ft,top:ut,left:ot,right:ot+pt,bottom:ut+ft,x:ot,y:ut}}function isDifferentGridRow(At,ot,ut){return Math.floor(At/ot)!==ut}function isIndexOutOfListBounds(At,ot){return ot<0||ot>=At.length}function getMinListIndex(At,ot){return findNonDisabledListIndex(At.current,{disabledIndices:ot})}function getMaxListIndex(At,ot){return findNonDisabledListIndex(At.current,{decrement:!0,startingIndex:At.current.length,disabledIndices:ot})}function findNonDisabledListIndex(At,{startingIndex:ot=-1,decrement:ut=!1,disabledIndices:pt,amount:ft=1}={}){let ht=ot;do ht+=ut?-ft:ft;while(ht>=0&&ht<=At.length-1&&isListIndexDisabled(At,ht,pt));return ht}function getGridNavigatedIndex(At,{event:ot,orientation:ut,loopFocus:pt,onLoop:ft,rtl:ht,cols:yt,disabledIndices:kt,minIndex:Et,maxIndex:Ot,prevIndex:_t,stopEvent:Qt=!1}){let vt=_t,St;if(ot.key===ARROW_UP$1?St="up":ot.key===ARROW_DOWN$1&&(St="down"),St){const $t=[],Pt=[];let Nt=!1,Lt=0;{let Jt=null,Gn=-1;At.forEach((Jn,Vn)=>{if(Jn==null)return;Lt+=1;const Fn=Jn.closest('[role="row"]');Fn&&(Nt=!0),(Fn!==Jt||Gn===-1)&&(Jt=Fn,Gn+=1,$t[Gn]=[]),$t[Gn].push(Vn),Pt[Vn]=Gn})}let qt=!1,jt=0;if(Nt)for(const Jt of $t){const Gn=Jt.length;Gn>jt&&(jt=Gn),Gn!==yt&&(qt=!0)}const Zt=qt&&Lt<At.length,Ht=jt||yt,Wt=Jt=>{if(!qt||_t===-1)return;const Gn=Pt[_t];if(Gn==null)return;const Jn=$t[Gn].indexOf(_t),Vn=Jt==="up"?-1:1;for(let Fn=Gn+Vn,Xn=0;Xn<$t.length;Xn+=1,Fn+=Vn){if(Fn<0||Fn>=$t.length){if(!pt||Zt)return;if(Fn=Fn<0?$t.length-1:0,ft){const Yn=Math.min(Jn,$t[Fn].length-1),lr=$t[Fn][Yn]??$t[Fn][0],nr=ft(ot,_t,lr);Fn=Pt[nr]??Fn}}const Ar=$t[Fn];for(let Yn=Math.min(Jn,Ar.length-1);Yn>=0;Yn-=1){const lr=Ar[Yn];if(!isListIndexDisabled(At,lr,kt))return lr}}},wn=Jt=>{if(!Zt||_t===-1)return;const Gn=_t%Ht,Jn=Jt==="up"?-Ht:Ht,Vn=Ot-Ot%Ht,Fn=floor(Ot/Ht)+1;for(let Xn=_t-Gn+Jn,Ar=0;Ar<Fn;Ar+=1,Xn+=Jn){if(Xn<0||Xn>Ot){if(!pt)return;Xn=Xn<0?Vn:0}const Yn=Math.min(Xn+Ht-1,Ot);for(let lr=Math.min(Xn+Gn,Yn);lr>=Xn;lr-=1)if(!isListIndexDisabled(At,lr,kt))return lr}};Qt&&stopEvent(ot);const Qn=Wt(St)??wn(St);if(Qn!==void 0)vt=Qn;else if(_t===-1)vt=St==="up"?Ot:Et;else if(vt=findNonDisabledListIndex(At,{startingIndex:_t,amount:Ht,decrement:St==="up",disabledIndices:kt}),pt){if(St==="up"&&(_t-Ht<Et||vt<0)){const Jt=_t%Ht,Gn=Ot%Ht,Jn=Ot-(Gn-Jt);Gn===Jt?vt=Ot:vt=Gn>Jt?Jn:Jn-Ht,ft&&(vt=ft(ot,_t,vt))}St==="down"&&_t+Ht>Ot&&(vt=findNonDisabledListIndex(At,{startingIndex:_t%Ht-Ht,amount:Ht,disabledIndices:kt}),ft&&(vt=ft(ot,_t,vt)))}isIndexOutOfListBounds(At,vt)&&(vt=_t)}if(ut==="both"){const $t=floor(_t/yt);ot.key===(ht?ARROW_LEFT$1:ARROW_RIGHT$1)&&(Qt&&stopEvent(ot),_t%yt!==yt-1?(vt=findNonDisabledListIndex(At,{startingIndex:_t,disabledIndices:kt}),pt&&isDifferentGridRow(vt,yt,$t)&&(vt=findNonDisabledListIndex(At,{startingIndex:_t-_t%yt-1,disabledIndices:kt}),ft&&(vt=ft(ot,_t,vt)))):pt&&(vt=findNonDisabledListIndex(At,{startingIndex:_t-_t%yt-1,disabledIndices:kt}),ft&&(vt=ft(ot,_t,vt))),isDifferentGridRow(vt,yt,$t)&&(vt=_t)),ot.key===(ht?ARROW_RIGHT$1:ARROW_LEFT$1)&&(Qt&&stopEvent(ot),_t%yt!==0?(vt=findNonDisabledListIndex(At,{startingIndex:_t,decrement:!0,disabledIndices:kt}),pt&&isDifferentGridRow(vt,yt,$t)&&(vt=findNonDisabledListIndex(At,{startingIndex:_t+(yt-_t%yt),decrement:!0,disabledIndices:kt}),ft&&(vt=ft(ot,_t,vt)))):pt&&(vt=findNonDisabledListIndex(At,{startingIndex:_t+(yt-_t%yt),decrement:!0,disabledIndices:kt}),ft&&(vt=ft(ot,_t,vt))),isDifferentGridRow(vt,yt,$t)&&(vt=_t));const Pt=floor(Ot/yt)===$t;isIndexOutOfListBounds(At,vt)&&(pt&&Pt?(vt=ot.key===(ht?ARROW_RIGHT$1:ARROW_LEFT$1)?Ot:findNonDisabledListIndex(At,{startingIndex:_t-_t%yt-1,disabledIndices:kt}),ft&&(vt=ft(ot,_t,vt))):vt=_t)}return vt}function createGridCellMap(At,ot,ut){const pt=[];let ft=0;return At.forEach(({width:ht,height:yt},kt)=>{let Et=!1;for(;!Et;){const Ot=[];for(let _t=0;_t<ht;_t+=1)for(let Qt=0;Qt<yt;Qt+=1)Ot.push(ft+_t+Qt*ot);ft%ot+ht<=ot&&Ot.every(_t=>pt[_t]==null)?(Ot.forEach(_t=>{pt[_t]=kt}),Et=!0):ft+=1}}),[...pt]}function getGridCellIndexOfCorner(At,ot,ut,pt,ft){if(At===-1)return-1;const ht=ut.indexOf(At),yt=ot[At];switch(ft){case"tl":return ht;case"tr":return yt?ht+yt.width-1:ht;case"bl":return yt?ht+(yt.height-1)*pt:ht;case"br":return ut.lastIndexOf(At);default:return-1}}function getGridCellIndices(At,ot){return ot.flatMap((ut,pt)=>At.includes(ut)?[pt]:[])}function isListIndexDisabled(At,ot,ut){if(typeof ut=="function"?ut(ot):ut?.includes(ot)??!1)return!0;const ft=At[ot];return ft?isElementVisible(ft)?!ut&&(ft.hasAttribute("disabled")||ft.getAttribute("aria-disabled")==="true"):!0:!1}function isElementVisible(At){return typeof At.checkVisibility=="function"?At.checkVisibility():getComputedStyle$1(At).display!=="none"}const CANDIDATE_SELECTOR='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function getParentElement(At){const ot=At.assignedSlot;if(ot)return ot;if(At.parentElement)return At.parentElement;const ut=At.getRootNode();return isShadowRoot(ut)?ut.host:null}function getDetailsSummary(At){for(const ot of Array.from(At.children))if(getNodeName(ot)==="summary")return ot;return null}function isWithinOpenDetailsSummary(At,ot){const ut=getDetailsSummary(ot);return!!ut&&(At===ut||contains$2(ut,At))}function isFocusableCandidate(At){const ot=At?getNodeName(At):"";return At!=null&&At.matches(CANDIDATE_SELECTOR)&&(ot!=="summary"||At.parentElement!=null&&getNodeName(At.parentElement)==="details"&&getDetailsSummary(At.parentElement)===At)&&(ot!=="details"||getDetailsSummary(At)==null)&&(ot!=="input"||At.type!=="hidden")}function isFocusableElement(At){if(!isFocusableCandidate(At)||!At.isConnected||At.matches(":disabled"))return!1;for(let ot=At;ot;ot=getParentElement(ot)){const ut=getNodeName(ot)==="slot";if(ot.hasAttribute("inert")||ot!==At&&getNodeName(ot)==="details"&&!ot.open&&!isWithinOpenDetailsSummary(At,ot)||ot.hasAttribute("hidden")||!ut&&!isElementVisible(ot))return!1}return!0}function getTabIndex(At){const ot=At.tabIndex;if(ot<0){const ut=getNodeName(At);if(ut==="details"||ut==="audio"||ut==="video"||isHTMLElement$1(At)&&At.isContentEditable)return 0}return ot}function getNamedRadioInput(At){if(getNodeName(At)!=="input")return null;const ot=At;return ot.type==="radio"&&ot.name!==""?ot:null}function isTabbableRadio(At,ot){const ut=getNamedRadioInput(At);if(!ut)return!0;const pt=ot.find(ft=>{const ht=getNamedRadioInput(ft);return ht?.name===ut.name&&ht.form===ut.form&&ht.checked});return pt?pt===ut:ot.find(ft=>{const ht=getNamedRadioInput(ft);return ht?.name===ut.name&&ht.form===ut.form})===ut}function getComposedChildren(At){if(isHTMLElement$1(At)&&getNodeName(At)==="slot"){const ot=At.assignedElements({flatten:!0});if(ot.length>0)return ot}return isHTMLElement$1(At)&&At.shadowRoot?Array.from(At.shadowRoot.children):Array.from(At.children)}function appendCandidates(At,ot){getComposedChildren(At).forEach(ut=>{isFocusableCandidate(ut)&&ot.push(ut),appendCandidates(ut,ot)})}function appendMatchingElements(At,ot,ut){getComposedChildren(At).forEach(pt=>{isHTMLElement$1(pt)&&pt.matches(ot)&&ut.push(pt),appendMatchingElements(pt,ot,ut)})}function isTabbable(At){return isFocusableElement(At)&&getTabIndex(At)>=0}function focusable(At){const ot=[];return appendCandidates(At,ot),ot.filter(isFocusableElement)}function tabbable(At){const ot=focusable(At);return ot.filter(ut=>getTabIndex(ut)>=0&&isTabbableRadio(ut,ot))}function getTabbableIn(At,ot){const ut=tabbable(At),pt=ut.length;if(pt===0)return;const ft=activeElement(ownerDocument(At)),ht=ut.indexOf(ft),yt=ht===-1?ot===1?0:pt-1:ht+ot;return ut[yt]}function getNextTabbable(At){return getTabbableIn(ownerDocument(At).body,1)||At}function getPreviousTabbable(At){return getTabbableIn(ownerDocument(At).body,-1)||At}function getTabbableNearElement(At,ot){if(!At)return null;const ut=tabbable(ownerDocument(At).body),pt=ut.length;if(pt===0)return null;const ft=ut.indexOf(At);if(ft===-1)return null;const ht=(ft+ot+pt)%pt;return ut[ht]}function getTabbableAfterElement(At){return getTabbableNearElement(At,1)}function getTabbableBeforeElement(At){return getTabbableNearElement(At,-1)}function isOutsideEvent(At,ot){const ut=ot||At.currentTarget,pt=At.relatedTarget;return!pt||!contains$2(ut,pt)}function disableFocusInside(At){tabbable(At).forEach(ut=>{ut.dataset.tabindex=ut.getAttribute("tabindex")||"",ut.setAttribute("tabindex","-1")})}function enableFocusInside(At){const ot=[];appendMatchingElements(At,"[data-tabindex]",ot),ot.forEach(ut=>{const pt=ut.dataset.tabindex;delete ut.dataset.tabindex,pt?ut.setAttribute("tabindex",pt):ut.removeAttribute("tabindex")})}function getNodeChildren(At,ot,ut=!0){return At.filter(ft=>ft.parentId===ot).flatMap(ft=>[...!ut||ft.context?.open?[ft]:[],...getNodeChildren(At,ft.id,ut)])}function getNodeAncestors(At,ot){let ut=[],pt=At.find(ft=>ft.id===ot)?.parentId;for(;pt;){const ft=At.find(ht=>ht.id===pt);pt=ft?.parentId,ft&&(ut=ut.concat(ft))}return ut}function createAttribute(At){return`data-base-ui-${At}`}let rafId=0;function enqueueFocus(At,ot={}){const{preventScroll:ut=!1,cancelPrevious:pt=!0,sync:ft=!1}=ot;pt&&cancelAnimationFrame(rafId);const ht=()=>At?.focus({preventScroll:ut});if(ft)return ht(),NOOP;const yt=requestAnimationFrame(ht);return rafId=yt,()=>{rafId===yt&&(cancelAnimationFrame(yt),rafId=0)}}const counters={inert:new WeakMap,"aria-hidden":new WeakMap},markerName="data-base-ui-inert",uncontrolledElementsSets={inert:new WeakSet,"aria-hidden":new WeakSet};let markerCounterMap=new WeakMap,lockCount$1=0;function getUncontrolledElementsSet(At){return uncontrolledElementsSets[At]}function unwrapHost$1(At){return At?isShadowRoot(At)?At.host:unwrapHost$1(At.parentNode):null}const correctElements=(At,ot)=>ot.map(ut=>{if(At.contains(ut))return ut;const pt=unwrapHost$1(ut);return At.contains(pt)?pt:null}).filter(ut=>ut!=null),buildKeepSet=At=>{const ot=new Set;return At.forEach(ut=>{let pt=ut;for(;pt&&!ot.has(pt);)ot.add(pt),pt=pt.parentNode}),ot},collectOutsideElements=(At,ot,ut)=>{const pt=[],ft=ht=>{!ht||ut.has(ht)||Array.from(ht.children).forEach(yt=>{getNodeName(yt)!=="script"&&(ot.has(yt)?ft(yt):pt.push(yt))})};return ft(At),pt};function applyAttributeToOthers$1(At,ot,ut,pt,{mark:ft=!0,markerIgnoreElements:ht=[]}){const yt=pt?"inert":ut?"aria-hidden":null;let kt=null,Et=null;const Ot=correctElements(ot,At),_t=ft?correctElements(ot,ht):[],Qt=new Set(_t),vt=ft?collectOutsideElements(ot,buildKeepSet(Ot),new Set(Ot)).filter(Pt=>!Qt.has(Pt)):[],St=[],$t=[];if(yt){const Pt=counters[yt],Nt=getUncontrolledElementsSet(yt);Et=Nt,kt=Pt;const Lt=correctElements(ot,Array.from(ot.querySelectorAll("[aria-live]"))),qt=Ot.concat(Lt);collectOutsideElements(ot,buildKeepSet(qt),new Set(qt)).forEach(Zt=>{const Ht=Zt.getAttribute(yt),Wt=Ht!==null&&Ht!=="false",wn=(Pt.get(Zt)||0)+1;Pt.set(Zt,wn),St.push(Zt),wn===1&&Wt&&Nt.add(Zt),Wt||Zt.setAttribute(yt,yt==="inert"?"":"true")})}return ft&&vt.forEach(Pt=>{const Nt=(markerCounterMap.get(Pt)||0)+1;markerCounterMap.set(Pt,Nt),$t.push(Pt),Nt===1&&Pt.setAttribute(markerName,"")}),lockCount$1+=1,()=>{kt&&St.forEach(Pt=>{const Lt=(kt.get(Pt)||0)-1;kt.set(Pt,Lt),Lt||(!Et?.has(Pt)&&yt&&Pt.removeAttribute(yt),Et?.delete(Pt))}),ft&&$t.forEach(Pt=>{const Nt=(markerCounterMap.get(Pt)||0)-1;markerCounterMap.set(Pt,Nt),Nt||Pt.removeAttribute(markerName)}),lockCount$1-=1,lockCount$1||(counters.inert=new WeakMap,counters["aria-hidden"]=new WeakMap,uncontrolledElementsSets.inert=new WeakSet,uncontrolledElementsSets["aria-hidden"]=new WeakSet,markerCounterMap=new WeakMap)}}function markOthers(At,ot={}){const{ariaHidden:ut=!1,inert:pt=!1,mark:ft=!0,markerIgnoreElements:ht=[]}=ot,yt=ownerDocument(At[0]).body;return applyAttributeToOthers$1(At,yt,ut,pt,{mark:ft,markerIgnoreElements:ht})}var reactDomExports=requireReactDom();const ReactDOM=getDefaultExportFromCjs(reactDomExports),SafeReact={...React$1};let globalId=0;function useGlobalId(At,ot="mui"){const[ut,pt]=reactExports.useState(At),ft=At||ut;return reactExports.useEffect(()=>{ut==null&&(globalId+=1,pt(`${ot}-${globalId}`))},[ut,ot]),ft}const maybeReactUseId=SafeReact.useId;function useId$1(At,ot){if(maybeReactUseId!==void 0){const ut=maybeReactUseId();return At??(ot?`${ot}-${ut}`:ut)}return useGlobalId(At,ot)}const majorVersion=parseInt(reactExports.version,10);function isReactVersionAtLeast(At){return majorVersion>=At}function getReactElementRef(At){if(!reactExports.isValidElement(At))return null;const ot=At,ut=ot.props;return(isReactVersionAtLeast(19)?ut?.ref:ot.ref)??null}function mergeObjects$1(At,ot){if(At&&!ot)return At;if(!At&&ot)return ot;if(At||ot)return{...At,...ot}}function getStateAttributesProps(At,ot){const ut={};for(const pt in At){const ft=At[pt];if(ot?.hasOwnProperty(pt)){const ht=ot[pt](ft);ht!=null&&Object.assign(ut,ht);continue}ft===!0?ut[`data-${pt.toLowerCase()}`]="":ft&&(ut[`data-${pt.toLowerCase()}`]=ft.toString())}return ut}function resolveClassName(At,ot){return typeof At=="function"?At(ot):At}function resolveStyle(At,ot){return typeof At=="function"?At(ot):At}const EMPTY_PROPS={};function mergeProps$3(At,ot,ut,pt,ft){if(!ut&&!pt&&!ft&&!At)return createInitialMergedProps(ot);let ht=createInitialMergedProps(At);return ot&&(ht=mergeInto(ht,ot)),ut&&(ht=mergeInto(ht,ut)),pt&&(ht=mergeInto(ht,pt)),ft&&(ht=mergeInto(ht,ft)),ht}function mergePropsN(At){if(At.length===0)return EMPTY_PROPS;if(At.length===1)return createInitialMergedProps(At[0]);let ot=createInitialMergedProps(At[0]);for(let ut=1;ut<At.length;ut+=1)ot=mergeInto(ot,At[ut]);return ot}function createInitialMergedProps(At){return isPropsGetter(At)?{...resolvePropsGetter(At,EMPTY_PROPS)}:copyInitialProps(At)}function mergeInto(At,ot){return isPropsGetter(ot)?resolvePropsGetter(ot,At):mutablyMergeInto(At,ot)}function copyInitialProps(At){const ot={...At};for(const ut in ot){const pt=ot[ut];isEventHandler(ut,pt)&&(ot[ut]=wrapEventHandler(pt))}return ot}function mutablyMergeInto(At,ot){if(!ot)return At;for(const ut in ot){const pt=ot[ut];switch(ut){case"style":{At[ut]=mergeObjects$1(At.style,pt);break}case"className":{At[ut]=mergeClassNames(At.className,pt);break}default:isEventHandler(ut,pt)?At[ut]=mergeEventHandlers(At[ut],pt):At[ut]=pt}}return At}function isEventHandler(At,ot){const ut=At.charCodeAt(0),pt=At.charCodeAt(1),ft=At.charCodeAt(2);return ut===111&&pt===110&&ft>=65&&ft<=90&&(typeof ot=="function"||typeof ot>"u")}function isPropsGetter(At){return typeof At=="function"}function resolvePropsGetter(At,ot){return isPropsGetter(At)?At(ot):At??EMPTY_PROPS}function mergeEventHandlers(At,ot){return ot?At?ut=>{if(isSyntheticEvent(ut)){const ft=ut;makeEventPreventable(ft);const ht=ot(ft);return ft.baseUIHandlerPrevented||At?.(ft),ht}const pt=ot(ut);return At?.(ut),pt}:wrapEventHandler(ot):At}function wrapEventHandler(At){return At&&(ot=>(isSyntheticEvent(ot)&&makeEventPreventable(ot),At(ot)))}function makeEventPreventable(At){return At.preventBaseUIHandler=()=>{At.baseUIHandlerPrevented=!0},At}function mergeClassNames(At,ot){return ot?At?ot+" "+At:ot:At}function isSyntheticEvent(At){return At!=null&&typeof At=="object"&&"nativeEvent"in At}function useRenderElement(At,ot,ut={}){const pt=ot.render,ft=useRenderElementProps(ot,ut);if(ut.enabled===!1)return null;const ht=ut.state??EMPTY_OBJECT;return evaluateRenderProp(At,pt,ft,ht)}function useRenderElementProps(At,ot={}){const{className:ut,style:pt,render:ft}=At,{state:ht=EMPTY_OBJECT,ref:yt,props:kt,stateAttributesMapping:Et,enabled:Ot=!0}=ot,_t=Ot?resolveClassName(ut,ht):void 0,Qt=Ot?resolveStyle(pt,ht):void 0,vt=Ot?getStateAttributesProps(ht,Et):EMPTY_OBJECT,St=Ot&&kt?resolveRenderFunctionProps(kt):void 0,$t=Ot?mergeObjects$1(vt,St)??{}:EMPTY_OBJECT;return typeof document<"u"&&(Ot?Array.isArray(yt)?$t.ref=useMergedRefsN([$t.ref,getReactElementRef(ft),...yt]):$t.ref=useMergedRefs($t.ref,getReactElementRef(ft),yt):useMergedRefs(null,null)),Ot?(_t!==void 0&&($t.className=mergeClassNames($t.className,_t)),Qt!==void 0&&($t.style=mergeObjects$1($t.style,Qt)),$t):EMPTY_OBJECT}function resolveRenderFunctionProps(At){return Array.isArray(At)?mergePropsN(At):mergeProps$3(void 0,At)}const REACT_LAZY_TYPE$1=Symbol.for("react.lazy");function evaluateRenderProp(At,ot,ut,pt){if(ot){if(typeof ot=="function")return ot(ut,pt);const ft=mergeProps$3(ut,ot.props);ft.ref=ut.ref;let ht=ot;return ht?.$$typeof===REACT_LAZY_TYPE$1&&(ht=reactExports.Children.toArray(ot)[0]),reactExports.cloneElement(ht,ft)}if(At&&typeof At=="string")return renderTag(At,ut);throw new Error(formatErrorMessage(8))}function renderTag(At,ot){return At==="button"?reactExports.createElement("button",{type:"button",...ot,key:ot.key}):At==="img"?reactExports.createElement("img",{alt:"",...ot,key:ot.key}):reactExports.createElement(At,ot)}const PortalContext=reactExports.createContext(null),usePortalContext$1=()=>reactExports.useContext(PortalContext),attr=createAttribute("portal");function useFloatingPortalNode(At={}){const{ref:ot,container:ut,componentProps:pt=EMPTY_OBJECT,elementProps:ft}=At,ht=useId$1(),kt=usePortalContext$1()?.portalNode,[Et,Ot]=reactExports.useState(null),[_t,Qt]=reactExports.useState(null),vt=useStableCallback$1(Nt=>{Nt!==null&&Qt(Nt)}),St=reactExports.useRef(null);useIsoLayoutEffect(()=>{if(ut===null){St.current&&(St.current=null,Qt(null),Ot(null));return}if(ht==null)return;const Nt=(ut&&(isNode$1(ut)?ut:ut.current))??kt??document.body;if(Nt==null){St.current&&(St.current=null,Qt(null),Ot(null));return}St.current!==Nt&&(St.current=Nt,Qt(null),Ot(Nt))},[ut,kt,ht]);const $t=useRenderElement("div",pt,{ref:[ot,vt],props:[{id:ht,[attr]:""},ft]});return{portalNode:_t,portalSubtree:Et&&$t?reactDomExports.createPortal($t,Et):null}}const FloatingPortal=reactExports.forwardRef(function(ot,ut){const{children:pt,container:ft,className:ht,render:yt,renderGuards:kt,style:Et,...Ot}=ot,{portalNode:_t,portalSubtree:Qt}=useFloatingPortalNode({container:ft,ref:ut,componentProps:ot,elementProps:Ot}),vt=reactExports.useRef(null),St=reactExports.useRef(null),$t=reactExports.useRef(null),Pt=reactExports.useRef(null),[Nt,Lt]=reactExports.useState(null),qt=reactExports.useRef(!1),jt=Nt?.modal,Zt=Nt?.open,Ht=typeof kt=="boolean"?kt:!!Nt&&!Nt.modal&&Nt.open&&!!_t;reactExports.useEffect(()=>{if(!_t||jt)return;function wn(Qn){_t&&Qn.relatedTarget&&isOutsideEvent(Qn)&&(Qn.type==="focusin"?qt.current&&(enableFocusInside(_t),qt.current=!1):(disableFocusInside(_t),qt.current=!0))}return mergeCleanups(addEventListener(_t,"focusin",wn,!0),addEventListener(_t,"focusout",wn,!0))},[_t,jt]),reactExports.useEffect(()=>{!_t||Zt!==!1||(enableFocusInside(_t),qt.current=!1)},[Zt,_t]);const Wt=reactExports.useMemo(()=>({beforeOutsideRef:vt,afterOutsideRef:St,beforeInsideRef:$t,afterInsideRef:Pt,portalNode:_t,setFocusManagerState:Lt}),[_t]);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Qt,jsxRuntimeExports.jsxs(PortalContext.Provider,{value:Wt,children:[Ht&&_t&&jsxRuntimeExports.jsx(FocusGuard,{"data-type":"outside",ref:vt,onFocus:wn=>{if(isOutsideEvent(wn,_t))$t.current?.focus();else{const Qn=Nt?Nt.domReference:null;getPreviousTabbable(Qn)?.focus()}}}),Ht&&_t&&jsxRuntimeExports.jsx("span",{"aria-owns":_t.id,style:ownerVisuallyHidden}),_t&&reactDomExports.createPortal(pt,_t),Ht&&_t&&jsxRuntimeExports.jsx(FocusGuard,{"data-type":"outside",ref:St,onFocus:wn=>{if(isOutsideEvent(wn,_t))Pt.current?.focus();else{const Qn=Nt?Nt.domReference:null;getNextTabbable(Qn)?.focus(),Nt?.closeOnFocusOut&&Nt?.onOpenChange(!1,createChangeEventDetails(focusOut,wn.nativeEvent))}}})]})]})});function createEventEmitter(){const At=new Map;return{emit(ot,ut){At.get(ot)?.forEach(pt=>pt(ut))},on(ot,ut){At.has(ot)||At.set(ot,new Set),At.get(ot).add(ut)},off(ot,ut){At.get(ot)?.delete(ut)}}}class FloatingTreeStore{nodesRef={current:[]};events=createEventEmitter();addNode(ot){this.nodesRef.current.push(ot)}removeNode(ot){const ut=this.nodesRef.current.findIndex(pt=>pt===ot);ut!==-1&&this.nodesRef.current.splice(ut,1)}}const FloatingNodeContext=reactExports.createContext(null),FloatingTreeContext=reactExports.createContext(null),useFloatingParentNodeId=()=>reactExports.useContext(FloatingNodeContext)?.id||null,useFloatingTree=At=>{const ot=reactExports.useContext(FloatingTreeContext);return At??ot};function useFloatingNodeId(At){const ot=useId$1(),ut=useFloatingTree(At),pt=useFloatingParentNodeId();return useIsoLayoutEffect(()=>{if(!ot)return;const ft={id:ot,parentId:pt};return ut?.addNode(ft),()=>{ut?.removeNode(ft)}},[ut,ot,pt]),ot}function FloatingNode(At){const{children:ot,id:ut}=At,pt=useFloatingParentNodeId();return jsxRuntimeExports.jsx(FloatingNodeContext.Provider,{value:reactExports.useMemo(()=>({id:ut,parentId:pt}),[ut,pt]),children:ot})}function FloatingTree(At){const{children:ot,externalTree:ut}=At,pt=useRefWithInit(()=>ut??new FloatingTreeStore).current;return jsxRuntimeExports.jsx(FloatingTreeContext.Provider,{value:pt,children:ot})}function resolveRef(At){return At==null?At:"current"in At?At.current:At}function getEventType(At,ot){const ut=getWindow$1(getTarget(At));return At instanceof ut.KeyboardEvent?"keyboard":At instanceof ut.FocusEvent?ot||"keyboard":"pointerType"in At?At.pointerType||"keyboard":"touches"in At?"touch":At instanceof ut.MouseEvent?ot||(At.detail===0?"keyboard":"mouse"):""}const LIST_LIMIT=20;let previouslyFocusedElements=[];function clearDisconnectedPreviouslyFocusedElements(){previouslyFocusedElements=previouslyFocusedElements.filter(At=>At.deref()?.isConnected)}function addPreviouslyFocusedElement(At){clearDisconnectedPreviouslyFocusedElements(),At&&getNodeName(At)!=="body"&&(previouslyFocusedElements.push(new WeakRef(At)),previouslyFocusedElements.length>LIST_LIMIT&&(previouslyFocusedElements=previouslyFocusedElements.slice(-LIST_LIMIT)))}function getPreviouslyFocusedElement(){return clearDisconnectedPreviouslyFocusedElements(),previouslyFocusedElements[previouslyFocusedElements.length-1]?.deref()}function getFirstTabbableElement(At){return At?isTabbable(At)?At:tabbable(At)[0]||At:null}function isFocusable(At){return!At||!At.isConnected?!1:typeof At.checkVisibility=="function"?At.checkVisibility():isElementVisible(At)}function handleTabIndex(At,ot){if(At.hasAttribute("tabindex")&&!At.hasAttribute("data-tabindex")||!ot.current.includes("floating")&&!At.getAttribute("role")?.includes("dialog"))return;const pt=focusable(At).filter(ht=>{const yt=ht.getAttribute("data-tabindex")||"";return isTabbable(ht)||ht.hasAttribute("data-tabindex")&&!yt.startsWith("-")}),ft=At.getAttribute("tabindex");ot.current.includes("floating")||pt.length===0?ft!=="0"&&At.setAttribute("tabindex","0"):(ft!=="-1"||At.hasAttribute("data-tabindex")&&At.getAttribute("data-tabindex")!=="-1")&&(At.setAttribute("tabindex","-1"),At.setAttribute("data-tabindex","-1"))}function FloatingFocusManager(At){const{context:ot,children:ut,disabled:pt=!1,initialFocus:ft=!0,returnFocus:ht=!0,restoreFocus:yt=!1,modal:kt=!0,closeOnFocusOut:Et=!0,openInteractionType:Ot="",nextFocusableElement:_t,previousFocusableElement:Qt,beforeContentFocusGuardRef:vt,externalTree:St,getInsideElements:$t}=At,Pt="rootStore"in ot?ot.rootStore:ot,Nt=Pt.useState("open"),Lt=Pt.useState("domReferenceElement"),qt=Pt.useState("floatingElement"),{events:jt,dataRef:Zt}=Pt.context,Ht=useStableCallback$1(()=>Zt.current.floatingContext?.nodeId),Wt=ft===!1,wn=isTypeableCombobox(Lt)&&Wt,Qn=reactExports.useRef(["content"]),Jt=useValueAsRef(ft),Gn=useValueAsRef(ht),Jn=useValueAsRef(Ot),Vn=useFloatingTree(St),Fn=usePortalContext$1(),Xn=reactExports.useRef(!1),Ar=reactExports.useRef(!1),Yn=reactExports.useRef(!1),lr=reactExports.useRef(null),nr=reactExports.useRef(""),mr=reactExports.useRef(""),Zn=reactExports.useRef(null),ur=reactExports.useRef(null),yr=useMergedRefs(Zn,vt,Fn?.beforeInsideRef),ir=useMergedRefs(ur,Fn?.afterInsideRef),Cr=useTimeout(),kr=useTimeout(),Br=useAnimationFrame(),Dr=Fn!=null,Gr=getFloatingFocusElement(qt),jr=useStableCallback$1((ma=Gr)=>ma?tabbable(ma):[]),na=useStableCallback$1(()=>$t?.().filter(ma=>ma!=null)??[]);reactExports.useEffect(()=>{if(pt||!kt)return;function ma(ba){ba.key==="Tab"&&contains$2(Gr,activeElement(ownerDocument(Gr)))&&jr().length===0&&!wn&&stopEvent(ba)}const pa=ownerDocument(Gr);return addEventListener(pa,"keydown",ma)},[pt,Lt,Gr,kt,Qn,wn,jr]),reactExports.useEffect(()=>{if(pt||!Nt)return;const ma=ownerDocument(Gr);function pa(){Yn.current=!1}function ba(ya){const Xa=getTarget(ya),Ni=na(),ii=contains$2(qt,Xa)||contains$2(Lt,Xa)||contains$2(Fn?.portalNode,Xa)||Ni.some(Za=>Za===Xa||contains$2(Za,Xa));Yn.current=!ii,mr.current=ya.pointerType||"keyboard",Xa?.closest(`[${CLICK_TRIGGER_IDENTIFIER}]`)&&(Ar.current=!0)}function ti(){mr.current="keyboard"}return mergeCleanups(addEventListener(ma,"pointerdown",ba,!0),addEventListener(ma,"pointerup",pa,!0),addEventListener(ma,"pointercancel",pa,!0),addEventListener(ma,"keydown",ti,!0))},[pt,qt,Lt,Gr,Nt,Fn,na]),reactExports.useEffect(()=>{if(pt||!Et)return;const ma=ownerDocument(Gr);function pa(){Ar.current=!0,kr.start(0,()=>{Ar.current=!1})}function ba(Ni){const ii=getTarget(Ni);isTabbable(ii)&&(lr.current=ii)}function ti(Ni){const ii=Ni.relatedTarget,Za=Ni.currentTarget,$a=getTarget(Ni);queueMicrotask(()=>{const Ya=Ht(),Ta=Pt.context.triggerElements,qa=na(),ki=ii?.hasAttribute(createAttribute("focus-guard"))&&[Zn.current,ur.current,Fn?.beforeInsideRef.current,Fn?.afterInsideRef.current,Fn?.beforeOutsideRef.current,Fn?.afterOutsideRef.current,resolveRef(Qt),resolveRef(_t)].includes(ii),La=!(contains$2(Lt,ii)||contains$2(qt,ii)||contains$2(ii,qt)||contains$2(Fn?.portalNode,ii)||qa.some(Ja=>Ja===ii||contains$2(Ja,ii))||ii!=null&&Ta.hasElement(ii)||Ta.hasMatchingElement(Ja=>contains$2(Ja,ii))||ki||Vn&&(getNodeChildren(Vn.nodesRef.current,Ya).find(Ja=>contains$2(Ja.context?.elements.floating,ii)||contains$2(Ja.context?.elements.domReference,ii))||getNodeAncestors(Vn.nodesRef.current,Ya).find(Ja=>[Ja.context?.elements.floating,getFloatingFocusElement(Ja.context?.elements.floating)].includes(ii)||Ja.context?.elements.domReference===ii)));if(Za===Lt&&Gr&&handleTabIndex(Gr,Qn),yt&&Za!==Lt&&!isFocusable($a)&&activeElement(ma)===ma.body){if(isHTMLElement$1(Gr)&&(Gr.focus(),yt==="popup")){Br.request(()=>{Gr.focus()});return}const Ja=jr(),qi=lr.current,co=(qi&&Ja.includes(qi)?qi:null)||Ja[Ja.length-1]||Gr;isHTMLElement$1(co)&&co.focus()}if(Zt.current.insideReactTree){Zt.current.insideReactTree=!1;return}(wn||!kt)&&ii&&La&&!Ar.current&&(wn||ii!==getPreviouslyFocusedElement())&&(Xn.current=!0,Pt.setOpen(!1,createChangeEventDetails(focusOut,Ni)))})}function ya(){Yn.current||(Zt.current.insideReactTree=!0,Cr.start(0,()=>{Zt.current.insideReactTree=!1}))}const Xa=isHTMLElement$1(Lt)?Lt:null;if(!(!qt&&!Xa))return mergeCleanups(Xa&&addEventListener(Xa,"focusout",ti),Xa&&addEventListener(Xa,"pointerdown",pa),qt&&addEventListener(qt,"focusin",ba),qt&&addEventListener(qt,"focusout",ti),qt&&Fn&&addEventListener(qt,"focusout",ya,!0))},[pt,Lt,qt,Gr,kt,Vn,Fn,Pt,Et,yt,jr,wn,Ht,Qn,Zt,Cr,kr,Br,_t,Qt,na]),reactExports.useEffect(()=>{if(pt||!qt||!Nt)return;const ma=Array.from(Fn?.portalNode?.querySelectorAll(`[${createAttribute("portal")}]`)||[]),ba=(Vn?getNodeAncestors(Vn.nodesRef.current,Ht()):[]).find(Za=>isTypeableCombobox(Za.context?.elements.domReference||null))?.context?.elements.domReference,ya=[...[qt,...ma,Zn.current,ur.current,Fn?.beforeOutsideRef.current,Fn?.afterOutsideRef.current,...na()],ba,resolveRef(Qt),resolveRef(_t),wn?Lt:null].filter(Za=>Za!=null),Xa=markOthers(ya,{ariaHidden:kt||wn,mark:!1}),Ni=[qt,...ma].filter(Za=>Za!=null),ii=markOthers(Ni);return()=>{ii(),Xa()}},[Nt,pt,Lt,qt,kt,Qn,Fn,wn,Vn,Ht,_t,Qt,na]),useIsoLayoutEffect(()=>{if(!Nt||pt||!isHTMLElement$1(Gr))return;const ma=ownerDocument(Gr),pa=activeElement(ma);queueMicrotask(()=>{const ba=Jt.current,ti=typeof ba=="function"?ba(Jn.current||""):ba;if(ti===void 0||ti===!1||contains$2(Gr,pa))return;let Xa=null;const Ni=()=>(Xa==null&&(Xa=jr(Gr)),Xa[0]||Gr);let ii;ti===!0||ti===null?ii=Ni():ii=resolveRef(ti),ii=ii||Ni(),enqueueFocus(ii,{preventScroll:ii===Gr})})},[pt,Nt,Gr,Wt,jr,Jt,Jn]),useIsoLayoutEffect(()=>{if(pt||!Gr)return;const ma=ownerDocument(Gr),pa=activeElement(ma);addPreviouslyFocusedElement(pa);function ba(ya){if(ya.open||(nr.current=getEventType(ya.nativeEvent,mr.current)),ya.reason===triggerHover&&ya.nativeEvent.type==="mouseleave"&&(Xn.current=!0),ya.reason===outsidePress)if(ya.nested)Xn.current=!1;else if(isVirtualClick(ya.nativeEvent)||isVirtualPointerEvent(ya.nativeEvent))Xn.current=!1;else{let Xa=!1;ownerDocument(Gr).createElement("div").focus({get preventScroll(){return Xa=!0,!1}}),Xa?Xn.current=!1:Xn.current=!0}}jt.on("openchange",ba);function ti(){const ya=Gn.current;let Xa=typeof ya=="function"?ya(nr.current):ya;if(Xa===void 0||Xa===!1)return null;if(Xa===null&&(Xa=!0),typeof Xa=="boolean"){const ii=Lt||getPreviouslyFocusedElement();return ii&&ii.isConnected?ii:null}const Ni=Lt||getPreviouslyFocusedElement();return resolveRef(Xa)||Ni||null}return()=>{jt.off("openchange",ba);const ya=activeElement(ma),Xa=na(),Ni=contains$2(qt,ya)||Xa.some($a=>$a===ya||contains$2($a,ya))||Vn&&getNodeChildren(Vn.nodesRef.current,Ht(),!1).some($a=>contains$2($a.context?.elements.floating,ya)),ii=Gn.current,Za=ti();queueMicrotask(()=>{const $a=getFirstTabbableElement(Za),Ya=typeof ii!="boolean";ii&&!Xn.current&&isHTMLElement$1($a)&&(!(!Ya&&$a!==ya&&ya!==ma.body)||Ni)&&$a.focus({preventScroll:!0}),Xn.current=!1})}},[pt,qt,Gr,Gn,Zt,jt,Vn,Lt,Ht,na]),useIsoLayoutEffect(()=>{if(!isWebKit$1||Nt||!qt)return;const ma=activeElement(ownerDocument(qt));!isHTMLElement$1(ma)||!isTypeableElement(ma)||contains$2(qt,ma)&&ma.blur()},[Nt,qt]),useIsoLayoutEffect(()=>{if(!(pt||!Fn))return Fn.setFocusManagerState({modal:kt,closeOnFocusOut:Et,open:Nt,onOpenChange:Pt.setOpen,domReference:Lt}),()=>{Fn.setFocusManagerState(null)}},[pt,Fn,kt,Nt,Pt,Et,Lt]),useIsoLayoutEffect(()=>{if(!(pt||!Gr))return handleTabIndex(Gr,Qn),()=>{queueMicrotask(clearDisconnectedPreviouslyFocusedElements)}},[pt,Gr,Qn]);const ca=!pt&&(kt?!wn:!0)&&(Dr||kt);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ca&&jsxRuntimeExports.jsx(FocusGuard,{"data-type":"inside",ref:yr,onFocus:ma=>{if(kt){const pa=jr();enqueueFocus(pa[pa.length-1])}else Fn?.portalNode&&(Xn.current=!1,isOutsideEvent(ma,Fn.portalNode)?getNextTabbable(Lt)?.focus():resolveRef(Qt??Fn.beforeOutsideRef)?.focus())}}),ut,ca&&jsxRuntimeExports.jsx(FocusGuard,{"data-type":"inside",ref:ir,onFocus:ma=>{kt?enqueueFocus(jr()[0]):Fn?.portalNode&&(Et&&(Xn.current=!0),isOutsideEvent(ma,Fn.portalNode)?getPreviousTabbable(Lt)?.focus():resolveRef(_t??Fn.afterOutsideRef)?.focus())}})]})}function useClick(At,ot={}){const ut="rootStore"in At?At.rootStore:At,pt=ut.context.dataRef,{enabled:ft=!0,event:ht="click",toggle:yt=!0,ignoreMouse:kt=!1,stickIfOpen:Et=!0,touchOpenDelay:Ot=0,reason:_t=triggerPress}=ot,Qt=reactExports.useRef(void 0),vt=useAnimationFrame(),St=useTimeout(),$t=reactExports.useMemo(()=>({onPointerDown(Pt){Qt.current=Pt.pointerType},onMouseDown(Pt){const Nt=Qt.current,Lt=Pt.nativeEvent,qt=ut.select("open");if(Pt.button!==0||ht==="click"||isMouseLikePointerType(Nt,!0)&&kt)return;const jt=pt.current.openEvent,Zt=jt?.type,Ht=ut.select("domReferenceElement")!==Pt.currentTarget,Wt=qt&&Ht||!(qt&&yt&&(!(jt&&Et)||Zt==="click"||Zt==="mousedown")),wn=getTarget(Lt);if(isTypeableElement(wn)){const Jt=createChangeEventDetails(_t,Lt,wn);Wt&&Nt==="touch"&&Ot>0?St.start(Ot,()=>{ut.setOpen(!0,Jt)}):ut.setOpen(Wt,Jt);return}const Qn=Pt.currentTarget;vt.request(()=>{const Jt=createChangeEventDetails(_t,Lt,Qn);Wt&&Nt==="touch"&&Ot>0?St.start(Ot,()=>{ut.setOpen(!0,Jt)}):ut.setOpen(Wt,Jt)})},onClick(Pt){if(ht==="mousedown-only")return;const Nt=Qt.current;if(ht==="mousedown"&&Nt){Qt.current=void 0;return}if(isMouseLikePointerType(Nt,!0)&&kt)return;const Lt=ut.select("open"),qt=pt.current.openEvent,jt=ut.select("domReferenceElement")!==Pt.currentTarget,Zt=Lt&&jt||!(Lt&&yt&&(!(qt&&Et)||isClickLikeEvent(qt))),Ht=createChangeEventDetails(_t,Pt.nativeEvent,Pt.currentTarget);Zt&&Nt==="touch"&&Ot>0?St.start(Ot,()=>{ut.setOpen(!0,Ht)}):ut.setOpen(Zt,Ht)},onKeyDown(){Qt.current=void 0}}),[pt,ht,kt,ut,Et,yt,vt,St,Ot,_t]);return reactExports.useMemo(()=>ft?{reference:$t}:EMPTY_OBJECT,[ft,$t])}function createVirtualElement(At,ot){let ut=null,pt=null,ft=!1;return{contextElement:At||void 0,getBoundingClientRect(){const ht=At?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},yt=ot.axis==="x"||ot.axis==="both",kt=ot.axis==="y"||ot.axis==="both",Et=["mouseenter","mousemove"].includes(ot.dataRef.current.openEvent?.type||"")&&ot.pointerType!=="touch";let Ot=ht.width,_t=ht.height,Qt=ht.x,vt=ht.y;return ut==null&&ot.x&&yt&&(ut=ht.x-ot.x),pt==null&&ot.y&&kt&&(pt=ht.y-ot.y),Qt-=ut||0,vt-=pt||0,Ot=0,_t=0,!ft||Et?(Ot=ot.axis==="y"?ht.width:0,_t=ot.axis==="x"?ht.height:0,Qt=yt&&ot.x!=null?ot.x:Qt,vt=kt&&ot.y!=null?ot.y:vt):ft&&!Et&&(_t=ot.axis==="x"?ht.height:_t,Ot=ot.axis==="y"?ht.width:Ot),ft=!0,{width:Ot,height:_t,x:Qt,y:vt,top:vt,right:Qt+Ot,bottom:vt+_t,left:Qt}}}}function isMouseBasedEvent(At){return At!=null&&At.clientX!=null}function useClientPoint(At,ot={}){const ut="rootStore"in At?At.rootStore:At,pt=ut.useState("open"),ft=ut.useState("floatingElement"),ht=ut.useState("domReferenceElement"),yt=ut.context.dataRef,{enabled:kt=!0,axis:Et="both"}=ot,Ot=reactExports.useRef(!1),_t=reactExports.useRef(null),[Qt,vt]=reactExports.useState(),[St,$t]=reactExports.useState([]),Pt=useStableCallback$1((Zt,Ht,Wt)=>{Ot.current||yt.current.openEvent&&!isMouseBasedEvent(yt.current.openEvent)||ut.set("positionReference",createVirtualElement(Wt??ht,{x:Zt,y:Ht,axis:Et,dataRef:yt,pointerType:Qt}))}),Nt=useStableCallback$1(Zt=>{pt?_t.current||$t([]):Pt(Zt.clientX,Zt.clientY,Zt.currentTarget)}),Lt=isMouseLikePointerType(Qt)?ft:pt,qt=reactExports.useCallback(()=>{if(!Lt||!kt)return;const Zt=getWindow$1(ft);function Ht(Wt){const wn=getTarget(Wt);contains$2(ft,wn)?(_t.current?.(),_t.current=null):Pt(Wt.clientX,Wt.clientY)}if(!yt.current.openEvent||isMouseBasedEvent(yt.current.openEvent)){const Wt=()=>{_t.current?.(),_t.current=null};return _t.current=addEventListener(Zt,"mousemove",Ht),Wt}ut.set("positionReference",ht)},[Lt,kt,ft,yt,ht,ut,Pt]);reactExports.useEffect(()=>qt(),[qt,St]),reactExports.useEffect(()=>{kt&&!ft&&(Ot.current=!1)},[kt,ft]),reactExports.useEffect(()=>{!kt&&pt&&(Ot.current=!0)},[kt,pt]);const jt=reactExports.useMemo(()=>{function Zt(Ht){vt(Ht.pointerType)}return{onPointerDown:Zt,onPointerEnter:Zt,onMouseMove:Nt,onMouseEnter:Nt}},[Nt]);return reactExports.useMemo(()=>kt?{reference:jt,trigger:jt}:{},[kt,jt])}const bubbleHandlerKeys={intentional:"onClick",sloppy:"onPointerDown"};function alwaysFalse(){return!1}function normalizeProp(At){return{escapeKey:typeof At=="boolean"?At:At?.escapeKey??!1,outsidePress:typeof At=="boolean"?At:At?.outsidePress??!0}}function useDismiss(At,ot={}){const ut="rootStore"in At?At.rootStore:At,pt=ut.useState("open"),ft=ut.useState("floatingElement"),{dataRef:ht}=ut.context,{enabled:yt=!0,escapeKey:kt=!0,outsidePress:Et=!0,outsidePressEvent:Ot="sloppy",referencePress:_t=alwaysFalse,referencePressEvent:Qt="sloppy",bubbles:vt,externalTree:St}=ot,$t=useFloatingTree(St),Pt=useStableCallback$1(typeof Et=="function"?Et:()=>!1),Nt=typeof Et=="function"?Pt:Et,Lt=Nt!==!1,qt=useStableCallback$1(()=>Ot),jt=reactExports.useRef(!1),Zt=reactExports.useRef(!1),Ht=reactExports.useRef(!1),{escapeKey:Wt,outsidePress:wn}=normalizeProp(vt),Qn=reactExports.useRef(null),Jt=useTimeout(),Gn=useTimeout(),Jn=useStableCallback$1(()=>{Gn.clear(),ht.current.insideReactTree=!1}),Vn=reactExports.useRef(!1),Fn=reactExports.useRef(""),Xn=useStableCallback$1(_t),Ar=useStableCallback$1(ur=>{if(!pt||!yt||!kt||ur.key!=="Escape"||Vn.current)return;const yr=ht.current.floatingContext?.nodeId,ir=$t?getNodeChildren($t.nodesRef.current,yr):[];if(!Wt&&ir.length>0){let Br=!0;if(ir.forEach(Dr=>{Dr.context?.open&&!Dr.context.dataRef.current.__escapeKeyBubbles&&(Br=!1)}),!Br)return}const Cr=isReactEvent(ur)?ur.nativeEvent:ur,kr=createChangeEventDetails(escapeKey,Cr);ut.setOpen(!1,kr),!Wt&&!kr.isPropagationAllowed&&ur.stopPropagation()}),Yn=useStableCallback$1(()=>{ht.current.insideReactTree=!0,Gn.start(0,Jn)});reactExports.useEffect(()=>{if(!pt||!yt)return;ht.current.__escapeKeyBubbles=Wt,ht.current.__outsidePressBubbles=wn;const ur=new Timeout,yr=new Timeout;function ir(){ur.clear(),Vn.current=!0}function Cr(){ur.start(isWebKit()?5:0,()=>{Vn.current=!1})}function kr(){Ht.current=!0,yr.start(0,()=>{Ht.current=!1})}function Br(){jt.current=!1,Zt.current=!1}function Dr(){const Ta=Fn.current,qa=Ta==="pen"||!Ta?"mouse":Ta,ki=qt(),La=typeof ki=="function"?ki():ki;return typeof La=="string"?La:La[qa]}function Gr(Ta){const qa=Dr();return qa==="intentional"&&Ta.type!=="click"||qa==="sloppy"&&Ta.type==="click"}function jr(Ta){const qa=ht.current.floatingContext?.nodeId,ki=$t&&getNodeChildren($t.nodesRef.current,qa).some(La=>isEventTargetWithin(Ta,La.context?.elements.floating));return isEventTargetWithin(Ta,ut.select("floatingElement"))||isEventTargetWithin(Ta,ut.select("domReferenceElement"))||ki}function na(Ta){if(Gr(Ta)){Jn();return}if(ht.current.insideReactTree){Jn();return}const qa=getTarget(Ta),ki=`[${createAttribute("inert")}]`,La=isElement(qa)?qa.getRootNode():null,Ja=Array.from((isShadowRoot(La)?La:ownerDocument(ut.select("floatingElement"))).querySelectorAll(ki)),qi=ut.context.triggerElements;if(qa&&(qi.hasElement(qa)||qi.hasMatchingElement(ao=>contains$2(ao,qa))))return;let co=isElement(qa)?qa:null;for(;co&&!isLastTraversableNode(co);){const ao=getParentNode(co);if(isLastTraversableNode(ao)||!isElement(ao))break;co=ao}if(Ja.length&&isElement(qa)&&!isRootElement(qa)&&!contains$2(qa,ut.select("floatingElement"))&&Ja.every(ao=>!contains$2(co,ao)))return;if(isHTMLElement$1(qa)&&!("touches"in Ta)){const ao=isLastTraversableNode(qa),Jo=getComputedStyle$1(qa),Ji=/auto|scroll/,Ms=ao||Ji.test(Jo.overflowX),Vs=ao||Ji.test(Jo.overflowY),ZA=Ms&&qa.clientWidth>0&&qa.scrollWidth>qa.clientWidth,Xo=Vs&&qa.clientHeight>0&&qa.scrollHeight>qa.clientHeight,ho=Jo.direction==="rtl",ks=Xo&&(ho?Ta.offsetX<=qa.offsetWidth-qa.clientWidth:Ta.offsetX>qa.clientWidth),lA=ZA&&Ta.offsetY>qa.clientHeight;if(ks||lA)return}if(jr(Ta))return;if(Dr()==="intentional"&&Ht.current){yr.clear(),Ht.current=!1;return}if(typeof Nt=="function"&&!Nt(Ta))return;const ns=ht.current.floatingContext?.nodeId,Qo=$t?getNodeChildren($t.nodesRef.current,ns):[];if(Qo.length>0){let ao=!0;if(Qo.forEach(Jo=>{Jo.context?.open&&!Jo.context.dataRef.current.__outsidePressBubbles&&(ao=!1)}),!ao)return}ut.setOpen(!1,createChangeEventDetails(outsidePress,Ta)),Jn()}function ca(Ta){Dr()!=="sloppy"||Ta.pointerType==="touch"||!ut.select("open")||!yt||isEventTargetWithin(Ta,ut.select("floatingElement"))||isEventTargetWithin(Ta,ut.select("domReferenceElement"))||na(Ta)}function ma(Ta){if(Dr()!=="sloppy"||!ut.select("open")||!yt||isEventTargetWithin(Ta,ut.select("floatingElement"))||isEventTargetWithin(Ta,ut.select("domReferenceElement")))return;const qa=Ta.touches[0];qa&&(Qn.current={startTime:Date.now(),startX:qa.clientX,startY:qa.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},Jt.start(1e3,()=>{Qn.current&&(Qn.current.dismissOnTouchEnd=!1,Qn.current.dismissOnMouseDown=!1)}))}function pa(Ta,qa){const ki=getTarget(Ta);if(!ki)return;const La=addEventListener(ki,Ta.type,()=>{qa(Ta),La()})}function ba(Ta){Fn.current="touch",pa(Ta,ma)}function ti(Ta){Jt.clear(),Ta.type==="pointerdown"&&(Fn.current=Ta.pointerType),!(Ta.type==="mousedown"&&Qn.current&&!Qn.current.dismissOnMouseDown)&&pa(Ta,qa=>{qa.type==="pointerdown"?ca(qa):na(qa)})}function ya(Ta){if(!jt.current)return;const qa=Zt.current;if(Br(),Dr()==="intentional"){if(Ta.type==="pointercancel"){qa&&kr();return}if(!jr(Ta)){if(qa){kr();return}typeof Nt=="function"&&!Nt(Ta)||(yr.clear(),Ht.current=!0,Jn())}}}function Xa(Ta){if(Dr()!=="sloppy"||!Qn.current||isEventTargetWithin(Ta,ut.select("floatingElement"))||isEventTargetWithin(Ta,ut.select("domReferenceElement")))return;const qa=Ta.touches[0];if(!qa)return;const ki=Math.abs(qa.clientX-Qn.current.startX),La=Math.abs(qa.clientY-Qn.current.startY),Ja=Math.sqrt(ki*ki+La*La);Ja>5&&(Qn.current.dismissOnTouchEnd=!0),Ja>10&&(na(Ta),Jt.clear(),Qn.current=null)}function Ni(Ta){pa(Ta,Xa)}function ii(Ta){Dr()!=="sloppy"||!Qn.current||isEventTargetWithin(Ta,ut.select("floatingElement"))||isEventTargetWithin(Ta,ut.select("domReferenceElement"))||(Qn.current.dismissOnTouchEnd&&na(Ta),Jt.clear(),Qn.current=null)}function Za(Ta){pa(Ta,ii)}const $a=ownerDocument(ft),Ya=mergeCleanups(kt&&mergeCleanups(addEventListener($a,"keydown",Ar),addEventListener($a,"compositionstart",ir),addEventListener($a,"compositionend",Cr)),Lt&&mergeCleanups(addEventListener($a,"click",ti,!0),addEventListener($a,"pointerdown",ti,!0),addEventListener($a,"pointerup",ya,!0),addEventListener($a,"pointercancel",ya,!0),addEventListener($a,"mousedown",ti,!0),addEventListener($a,"mouseup",ya,!0),addEventListener($a,"touchstart",ba,!0),addEventListener($a,"touchmove",Ni,!0),addEventListener($a,"touchend",Za,!0)));return()=>{Ya(),ur.clear(),yr.clear(),Br(),Ht.current=!1}},[ht,ft,kt,Lt,Nt,pt,yt,Wt,wn,Ar,Jn,qt,$t,ut,Jt]),reactExports.useEffect(Jn,[Nt,Jn]);const lr=reactExports.useMemo(()=>({onKeyDown:Ar,[bubbleHandlerKeys[Qt]]:ur=>{Xn()&&ut.setOpen(!1,createChangeEventDetails(triggerPress,ur.nativeEvent))},...Qt!=="intentional"&&{onClick(ur){Xn()&&ut.setOpen(!1,createChangeEventDetails(triggerPress,ur.nativeEvent))}}}),[Ar,ut,Qt,Xn]),nr=useStableCallback$1(ur=>{if(!pt||!yt||ur.button!==0)return;const yr=getTarget(ur.nativeEvent);contains$2(ut.select("floatingElement"),yr)&&(jt.current||(jt.current=!0,Zt.current=!1))}),mr=useStableCallback$1(ur=>{!pt||!yt||(ur.defaultPrevented||ur.nativeEvent.defaultPrevented)&&jt.current&&(Zt.current=!0)}),Zn=reactExports.useMemo(()=>({onKeyDown:Ar,onPointerDown:mr,onMouseDown:mr,onClickCapture:Yn,onMouseDownCapture(ur){Yn(),nr(ur)},onPointerDownCapture(ur){Yn(),nr(ur)},onMouseUpCapture:Yn,onTouchEndCapture:Yn,onTouchMoveCapture:Yn}),[Ar,Yn,nr,mr]);return reactExports.useMemo(()=>yt?{reference:lr,floating:Zn,trigger:lr}:{},[yt,lr,Zn])}function computeCoordsFromPlacement(At,ot,ut){let{reference:pt,floating:ft}=At;const ht=getSideAxis(ot),yt=getAlignmentAxis(ot),kt=getAxisLength(yt),Et=getSide(ot),Ot=ht==="y",_t=pt.x+pt.width/2-ft.width/2,Qt=pt.y+pt.height/2-ft.height/2,vt=pt[kt]/2-ft[kt]/2;let St;switch(Et){case"top":St={x:_t,y:pt.y-ft.height};break;case"bottom":St={x:_t,y:pt.y+pt.height};break;case"right":St={x:pt.x+pt.width,y:Qt};break;case"left":St={x:pt.x-ft.width,y:Qt};break;default:St={x:pt.x,y:pt.y}}switch(getAlignment(ot)){case"start":St[yt]-=vt*(ut&&Ot?-1:1);break;case"end":St[yt]+=vt*(ut&&Ot?-1:1);break}return St}async function detectOverflow(At,ot){var ut;ot===void 0&&(ot={});const{x:pt,y:ft,platform:ht,rects:yt,elements:kt,strategy:Et}=At,{boundary:Ot="clippingAncestors",rootBoundary:_t="viewport",elementContext:Qt="floating",altBoundary:vt=!1,padding:St=0}=evaluate(ot,At),$t=getPaddingObject(St),Nt=kt[vt?Qt==="floating"?"reference":"floating":Qt],Lt=rectToClientRect(await ht.getClippingRect({element:(ut=await(ht.isElement==null?void 0:ht.isElement(Nt)))==null||ut?Nt:Nt.contextElement||await(ht.getDocumentElement==null?void 0:ht.getDocumentElement(kt.floating)),boundary:Ot,rootBoundary:_t,strategy:Et})),qt=Qt==="floating"?{x:pt,y:ft,width:yt.floating.width,height:yt.floating.height}:yt.reference,jt=await(ht.getOffsetParent==null?void 0:ht.getOffsetParent(kt.floating)),Zt=await(ht.isElement==null?void 0:ht.isElement(jt))?await(ht.getScale==null?void 0:ht.getScale(jt))||{x:1,y:1}:{x:1,y:1},Ht=rectToClientRect(ht.convertOffsetParentRelativeRectToViewportRelativeRect?await ht.convertOffsetParentRelativeRectToViewportRelativeRect({elements:kt,rect:qt,offsetParent:jt,strategy:Et}):qt);return{top:(Lt.top-Ht.top+$t.top)/Zt.y,bottom:(Ht.bottom-Lt.bottom+$t.bottom)/Zt.y,left:(Lt.left-Ht.left+$t.left)/Zt.x,right:(Ht.right-Lt.right+$t.right)/Zt.x}}const MAX_RESET_COUNT=50,computePosition$1=async(At,ot,ut)=>{const{placement:pt="bottom",strategy:ft="absolute",middleware:ht=[],platform:yt}=ut,kt=yt.detectOverflow?yt:{...yt,detectOverflow},Et=await(yt.isRTL==null?void 0:yt.isRTL(ot));let Ot=await yt.getElementRects({reference:At,floating:ot,strategy:ft}),{x:_t,y:Qt}=computeCoordsFromPlacement(Ot,pt,Et),vt=pt,St=0;const $t={};for(let Pt=0;Pt<ht.length;Pt++){const Nt=ht[Pt];if(!Nt)continue;const{name:Lt,fn:qt}=Nt,{x:jt,y:Zt,data:Ht,reset:Wt}=await qt({x:_t,y:Qt,initialPlacement:pt,placement:vt,strategy:ft,middlewareData:$t,rects:Ot,platform:kt,elements:{reference:At,floating:ot}});_t=jt??_t,Qt=Zt??Qt,$t[Lt]={...$t[Lt],...Ht},Wt&&St<MAX_RESET_COUNT&&(St++,typeof Wt=="object"&&(Wt.placement&&(vt=Wt.placement),Wt.rects&&(Ot=Wt.rects===!0?await yt.getElementRects({reference:At,floating:ot,strategy:ft}):Wt.rects),{x:_t,y:Qt}=computeCoordsFromPlacement(Ot,vt,Et)),Pt=-1)}return{x:_t,y:Qt,placement:vt,strategy:ft,middlewareData:$t}},flip$2=function(At){return At===void 0&&(At={}),{name:"flip",options:At,async fn(ot){var ut,pt;const{placement:ft,middlewareData:ht,rects:yt,initialPlacement:kt,platform:Et,elements:Ot}=ot,{mainAxis:_t=!0,crossAxis:Qt=!0,fallbackPlacements:vt,fallbackStrategy:St="bestFit",fallbackAxisSideDirection:$t="none",flipAlignment:Pt=!0,...Nt}=evaluate(At,ot);if((ut=ht.arrow)!=null&&ut.alignmentOffset)return{};const Lt=getSide(ft),qt=getSideAxis(kt),jt=getSide(kt)===kt,Zt=await(Et.isRTL==null?void 0:Et.isRTL(Ot.floating)),Ht=vt||(jt||!Pt?[getOppositePlacement(kt)]:getExpandedPlacements(kt)),Wt=$t!=="none";!vt&&Wt&&Ht.push(...getOppositeAxisPlacements(kt,Pt,$t,Zt));const wn=[kt,...Ht],Qn=await Et.detectOverflow(ot,Nt),Jt=[];let Gn=((pt=ht.flip)==null?void 0:pt.overflows)||[];if(_t&&Jt.push(Qn[Lt]),Qt){const Xn=getAlignmentSides(ft,yt,Zt);Jt.push(Qn[Xn[0]],Qn[Xn[1]])}if(Gn=[...Gn,{placement:ft,overflows:Jt}],!Jt.every(Xn=>Xn<=0)){var Jn,Vn;const Xn=(((Jn=ht.flip)==null?void 0:Jn.index)||0)+1,Ar=wn[Xn];if(Ar&&(!(Qt==="alignment"?qt!==getSideAxis(Ar):!1)||Gn.every(nr=>getSideAxis(nr.placement)===qt?nr.overflows[0]>0:!0)))return{data:{index:Xn,overflows:Gn},reset:{placement:Ar}};let Yn=(Vn=Gn.filter(lr=>lr.overflows[0]<=0).sort((lr,nr)=>lr.overflows[1]-nr.overflows[1])[0])==null?void 0:Vn.placement;if(!Yn)switch(St){case"bestFit":{var Fn;const lr=(Fn=Gn.filter(nr=>{if(Wt){const mr=getSideAxis(nr.placement);return mr===qt||mr==="y"}return!0}).map(nr=>[nr.placement,nr.overflows.filter(mr=>mr>0).reduce((mr,Zn)=>mr+Zn,0)]).sort((nr,mr)=>nr[1]-mr[1])[0])==null?void 0:Fn[0];lr&&(Yn=lr);break}case"initialPlacement":Yn=kt;break}if(ft!==Yn)return{reset:{placement:Yn}}}return{}}}};function getSideOffsets(At,ot){return{top:At.top-ot.height,right:At.right-ot.width,bottom:At.bottom-ot.height,left:At.left-ot.width}}function isAnySideFullyClipped(At){return sides.some(ot=>At[ot]>=0)}const hide$4=function(At){return At===void 0&&(At={}),{name:"hide",options:At,async fn(ot){const{rects:ut,platform:pt}=ot,{strategy:ft="referenceHidden",...ht}=evaluate(At,ot);switch(ft){case"referenceHidden":{const yt=await pt.detectOverflow(ot,{...ht,elementContext:"reference"}),kt=getSideOffsets(yt,ut.reference);return{data:{referenceHiddenOffsets:kt,referenceHidden:isAnySideFullyClipped(kt)}}}case"escaped":{const yt=await pt.detectOverflow(ot,{...ht,altBoundary:!0}),kt=getSideOffsets(yt,ut.floating);return{data:{escapedOffsets:kt,escaped:isAnySideFullyClipped(kt)}}}default:return{}}}}},originSides=new Set(["left","top"]);async function convertValueToCoords(At,ot){const{placement:ut,platform:pt,elements:ft}=At,ht=await(pt.isRTL==null?void 0:pt.isRTL(ft.floating)),yt=getSide(ut),kt=getAlignment(ut),Et=getSideAxis(ut)==="y",Ot=originSides.has(yt)?-1:1,_t=ht&&Et?-1:1,Qt=evaluate(ot,At);let{mainAxis:vt,crossAxis:St,alignmentAxis:$t}=typeof Qt=="number"?{mainAxis:Qt,crossAxis:0,alignmentAxis:null}:{mainAxis:Qt.mainAxis||0,crossAxis:Qt.crossAxis||0,alignmentAxis:Qt.alignmentAxis};return kt&&typeof $t=="number"&&(St=kt==="end"?$t*-1:$t),Et?{x:St*_t,y:vt*Ot}:{x:vt*Ot,y:St*_t}}const offset$2=function(At){return At===void 0&&(At=0),{name:"offset",options:At,async fn(ot){var ut,pt;const{x:ft,y:ht,placement:yt,middlewareData:kt}=ot,Et=await convertValueToCoords(ot,At);return yt===((ut=kt.offset)==null?void 0:ut.placement)&&(pt=kt.arrow)!=null&&pt.alignmentOffset?{}:{x:ft+Et.x,y:ht+Et.y,data:{...Et,placement:yt}}}}},shift$3=function(At){return At===void 0&&(At={}),{name:"shift",options:At,async fn(ot){const{x:ut,y:pt,placement:ft,platform:ht}=ot,{mainAxis:yt=!0,crossAxis:kt=!1,limiter:Et={fn:Lt=>{let{x:qt,y:jt}=Lt;return{x:qt,y:jt}}},...Ot}=evaluate(At,ot),_t={x:ut,y:pt},Qt=await ht.detectOverflow(ot,Ot),vt=getSideAxis(getSide(ft)),St=getOppositeAxis(vt);let $t=_t[St],Pt=_t[vt];if(yt){const Lt=St==="y"?"top":"left",qt=St==="y"?"bottom":"right",jt=$t+Qt[Lt],Zt=$t-Qt[qt];$t=clamp$1(jt,$t,Zt)}if(kt){const Lt=vt==="y"?"top":"left",qt=vt==="y"?"bottom":"right",jt=Pt+Qt[Lt],Zt=Pt-Qt[qt];Pt=clamp$1(jt,Pt,Zt)}const Nt=Et.fn({...ot,[St]:$t,[vt]:Pt});return{...Nt,data:{x:Nt.x-ut,y:Nt.y-pt,enabled:{[St]:yt,[vt]:kt}}}}}},limitShift$2=function(At){return At===void 0&&(At={}),{options:At,fn(ot){const{x:ut,y:pt,placement:ft,rects:ht,middlewareData:yt}=ot,{offset:kt=0,mainAxis:Et=!0,crossAxis:Ot=!0}=evaluate(At,ot),_t={x:ut,y:pt},Qt=getSideAxis(ft),vt=getOppositeAxis(Qt);let St=_t[vt],$t=_t[Qt];const Pt=evaluate(kt,ot),Nt=typeof Pt=="number"?{mainAxis:Pt,crossAxis:0}:{mainAxis:0,crossAxis:0,...Pt};if(Et){const jt=vt==="y"?"height":"width",Zt=ht.reference[vt]-ht.floating[jt]+Nt.mainAxis,Ht=ht.reference[vt]+ht.reference[jt]-Nt.mainAxis;St<Zt?St=Zt:St>Ht&&(St=Ht)}if(Ot){var Lt,qt;const jt=vt==="y"?"width":"height",Zt=originSides.has(getSide(ft)),Ht=ht.reference[Qt]-ht.floating[jt]+(Zt&&((Lt=yt.offset)==null?void 0:Lt[Qt])||0)+(Zt?0:Nt.crossAxis),Wt=ht.reference[Qt]+ht.reference[jt]+(Zt?0:((qt=yt.offset)==null?void 0:qt[Qt])||0)-(Zt?Nt.crossAxis:0);$t<Ht?$t=Ht:$t>Wt&&($t=Wt)}return{[vt]:St,[Qt]:$t}}}},size$2=function(At){return At===void 0&&(At={}),{name:"size",options:At,async fn(ot){var ut,pt;const{placement:ft,rects:ht,platform:yt,elements:kt}=ot,{apply:Et=()=>{},...Ot}=evaluate(At,ot),_t=await yt.detectOverflow(ot,Ot),Qt=getSide(ft),vt=getAlignment(ft),St=getSideAxis(ft)==="y",{width:$t,height:Pt}=ht.floating;let Nt,Lt;Qt==="top"||Qt==="bottom"?(Nt=Qt,Lt=vt===(await(yt.isRTL==null?void 0:yt.isRTL(kt.floating))?"start":"end")?"left":"right"):(Lt=Qt,Nt=vt==="end"?"top":"bottom");const qt=Pt-_t.top-_t.bottom,jt=$t-_t.left-_t.right,Zt=min$1(Pt-_t[Nt],qt),Ht=min$1($t-_t[Lt],jt),Wt=!ot.middlewareData.shift;let wn=Zt,Qn=Ht;if((ut=ot.middlewareData.shift)!=null&&ut.enabled.x&&(Qn=jt),(pt=ot.middlewareData.shift)!=null&&pt.enabled.y&&(wn=qt),Wt&&!vt){const Gn=max$1(_t.left,0),Jn=max$1(_t.right,0),Vn=max$1(_t.top,0),Fn=max$1(_t.bottom,0);St?Qn=$t-2*(Gn!==0||Jn!==0?Gn+Jn:max$1(_t.left,_t.right)):wn=Pt-2*(Vn!==0||Fn!==0?Vn+Fn:max$1(_t.top,_t.bottom))}await Et({...ot,availableWidth:Qn,availableHeight:wn});const Jt=await yt.getDimensions(kt.floating);return $t!==Jt.width||Pt!==Jt.height?{reset:{rects:!0}}:{}}}};function getCssDimensions(At){const ot=getComputedStyle$1(At);let ut=parseFloat(ot.width)||0,pt=parseFloat(ot.height)||0;const ft=isHTMLElement$1(At),ht=ft?At.offsetWidth:ut,yt=ft?At.offsetHeight:pt,kt=round$1(ut)!==ht||round$1(pt)!==yt;return kt&&(ut=ht,pt=yt),{width:ut,height:pt,$:kt}}function unwrapElement(At){return isElement(At)?At:At.contextElement}function getScale$2(At){const ot=unwrapElement(At);if(!isHTMLElement$1(ot))return createCoords(1);const ut=ot.getBoundingClientRect(),{width:pt,height:ft,$:ht}=getCssDimensions(ot);let yt=(ht?round$1(ut.width):ut.width)/pt,kt=(ht?round$1(ut.height):ut.height)/ft;return(!yt||!Number.isFinite(yt))&&(yt=1),(!kt||!Number.isFinite(kt))&&(kt=1),{x:yt,y:kt}}const noOffsets=createCoords(0);function getVisualOffsets(At){const ot=getWindow$1(At);return!isWebKit()||!ot.visualViewport?noOffsets:{x:ot.visualViewport.offsetLeft,y:ot.visualViewport.offsetTop}}function shouldAddVisualOffsets(At,ot,ut){return ot===void 0&&(ot=!1),!ut||ot&&ut!==getWindow$1(At)?!1:ot}function getBoundingClientRect(At,ot,ut,pt){ot===void 0&&(ot=!1),ut===void 0&&(ut=!1);const ft=At.getBoundingClientRect(),ht=unwrapElement(At);let yt=createCoords(1);ot&&(pt?isElement(pt)&&(yt=getScale$2(pt)):yt=getScale$2(At));const kt=shouldAddVisualOffsets(ht,ut,pt)?getVisualOffsets(ht):createCoords(0);let Et=(ft.left+kt.x)/yt.x,Ot=(ft.top+kt.y)/yt.y,_t=ft.width/yt.x,Qt=ft.height/yt.y;if(ht){const vt=getWindow$1(ht),St=pt&&isElement(pt)?getWindow$1(pt):pt;let $t=vt,Pt=getFrameElement($t);for(;Pt&&pt&&St!==$t;){const Nt=getScale$2(Pt),Lt=Pt.getBoundingClientRect(),qt=getComputedStyle$1(Pt),jt=Lt.left+(Pt.clientLeft+parseFloat(qt.paddingLeft))*Nt.x,Zt=Lt.top+(Pt.clientTop+parseFloat(qt.paddingTop))*Nt.y;Et*=Nt.x,Ot*=Nt.y,_t*=Nt.x,Qt*=Nt.y,Et+=jt,Ot+=Zt,$t=getWindow$1(Pt),Pt=getFrameElement($t)}}return rectToClientRect({width:_t,height:Qt,x:Et,y:Ot})}function getWindowScrollBarX(At,ot){const ut=getNodeScroll(At).scrollLeft;return ot?ot.left+ut:getBoundingClientRect(getDocumentElement(At)).left+ut}function getHTMLOffset(At,ot){const ut=At.getBoundingClientRect(),pt=ut.left+ot.scrollLeft-getWindowScrollBarX(At,ut),ft=ut.top+ot.scrollTop;return{x:pt,y:ft}}function convertOffsetParentRelativeRectToViewportRelativeRect(At){let{elements:ot,rect:ut,offsetParent:pt,strategy:ft}=At;const ht=ft==="fixed",yt=getDocumentElement(pt),kt=ot?isTopLayer(ot.floating):!1;if(pt===yt||kt&&ht)return ut;let Et={scrollLeft:0,scrollTop:0},Ot=createCoords(1);const _t=createCoords(0),Qt=isHTMLElement$1(pt);if((Qt||!Qt&&!ht)&&((getNodeName(pt)!=="body"||isOverflowElement(yt))&&(Et=getNodeScroll(pt)),Qt)){const St=getBoundingClientRect(pt);Ot=getScale$2(pt),_t.x=St.x+pt.clientLeft,_t.y=St.y+pt.clientTop}const vt=yt&&!Qt&&!ht?getHTMLOffset(yt,Et):createCoords(0);return{width:ut.width*Ot.x,height:ut.height*Ot.y,x:ut.x*Ot.x-Et.scrollLeft*Ot.x+_t.x+vt.x,y:ut.y*Ot.y-Et.scrollTop*Ot.y+_t.y+vt.y}}function getClientRects(At){return Array.from(At.getClientRects())}function getDocumentRect(At){const ot=getDocumentElement(At),ut=getNodeScroll(At),pt=At.ownerDocument.body,ft=max$1(ot.scrollWidth,ot.clientWidth,pt.scrollWidth,pt.clientWidth),ht=max$1(ot.scrollHeight,ot.clientHeight,pt.scrollHeight,pt.clientHeight);let yt=-ut.scrollLeft+getWindowScrollBarX(At);const kt=-ut.scrollTop;return getComputedStyle$1(pt).direction==="rtl"&&(yt+=max$1(ot.clientWidth,pt.clientWidth)-ft),{width:ft,height:ht,x:yt,y:kt}}const SCROLLBAR_MAX=25;function getViewportRect(At,ot){const ut=getWindow$1(At),pt=getDocumentElement(At),ft=ut.visualViewport;let ht=pt.clientWidth,yt=pt.clientHeight,kt=0,Et=0;if(ft){ht=ft.width,yt=ft.height;const _t=isWebKit();(!_t||_t&&ot==="fixed")&&(kt=ft.offsetLeft,Et=ft.offsetTop)}const Ot=getWindowScrollBarX(pt);if(Ot<=0){const _t=pt.ownerDocument,Qt=_t.body,vt=getComputedStyle(Qt),St=_t.compatMode==="CSS1Compat"&&parseFloat(vt.marginLeft)+parseFloat(vt.marginRight)||0,$t=Math.abs(pt.clientWidth-Qt.clientWidth-St);$t<=SCROLLBAR_MAX&&(ht-=$t)}else Ot<=SCROLLBAR_MAX&&(ht+=Ot);return{width:ht,height:yt,x:kt,y:Et}}function getInnerBoundingClientRect(At,ot){const ut=getBoundingClientRect(At,!0,ot==="fixed"),pt=ut.top+At.clientTop,ft=ut.left+At.clientLeft,ht=isHTMLElement$1(At)?getScale$2(At):createCoords(1),yt=At.clientWidth*ht.x,kt=At.clientHeight*ht.y,Et=ft*ht.x,Ot=pt*ht.y;return{width:yt,height:kt,x:Et,y:Ot}}function getClientRectFromClippingAncestor(At,ot,ut){let pt;if(ot==="viewport")pt=getViewportRect(At,ut);else if(ot==="document")pt=getDocumentRect(getDocumentElement(At));else if(isElement(ot))pt=getInnerBoundingClientRect(ot,ut);else{const ft=getVisualOffsets(At);pt={x:ot.x-ft.x,y:ot.y-ft.y,width:ot.width,height:ot.height}}return rectToClientRect(pt)}function hasFixedPositionAncestor(At,ot){const ut=getParentNode(At);return ut===ot||!isElement(ut)||isLastTraversableNode(ut)?!1:getComputedStyle$1(ut).position==="fixed"||hasFixedPositionAncestor(ut,ot)}function getClippingElementAncestors(At,ot){const ut=ot.get(At);if(ut)return ut;let pt=getOverflowAncestors(At,[],!1).filter(kt=>isElement(kt)&&getNodeName(kt)!=="body"),ft=null;const ht=getComputedStyle$1(At).position==="fixed";let yt=ht?getParentNode(At):At;for(;isElement(yt)&&!isLastTraversableNode(yt);){const kt=getComputedStyle$1(yt),Et=isContainingBlock(yt);!Et&&kt.position==="fixed"&&(ft=null),(ht?!Et&&!ft:!Et&&kt.position==="static"&&!!ft&&(ft.position==="absolute"||ft.position==="fixed")||isOverflowElement(yt)&&!Et&&hasFixedPositionAncestor(At,yt))?pt=pt.filter(_t=>_t!==yt):ft=kt,yt=getParentNode(yt)}return ot.set(At,pt),pt}function getClippingRect(At){let{element:ot,boundary:ut,rootBoundary:pt,strategy:ft}=At;const yt=[...ut==="clippingAncestors"?isTopLayer(ot)?[]:getClippingElementAncestors(ot,this._c):[].concat(ut),pt],kt=getClientRectFromClippingAncestor(ot,yt[0],ft);let Et=kt.top,Ot=kt.right,_t=kt.bottom,Qt=kt.left;for(let vt=1;vt<yt.length;vt++){const St=getClientRectFromClippingAncestor(ot,yt[vt],ft);Et=max$1(St.top,Et),Ot=min$1(St.right,Ot),_t=min$1(St.bottom,_t),Qt=max$1(St.left,Qt)}return{width:Ot-Qt,height:_t-Et,x:Qt,y:Et}}function getDimensions(At){const{width:ot,height:ut}=getCssDimensions(At);return{width:ot,height:ut}}function getRectRelativeToOffsetParent(At,ot,ut){const pt=isHTMLElement$1(ot),ft=getDocumentElement(ot),ht=ut==="fixed",yt=getBoundingClientRect(At,!0,ht,ot);let kt={scrollLeft:0,scrollTop:0};const Et=createCoords(0);function Ot(){Et.x=getWindowScrollBarX(ft)}if(pt||!pt&&!ht)if((getNodeName(ot)!=="body"||isOverflowElement(ft))&&(kt=getNodeScroll(ot)),pt){const St=getBoundingClientRect(ot,!0,ht,ot);Et.x=St.x+ot.clientLeft,Et.y=St.y+ot.clientTop}else ft&&Ot();ht&&!pt&&ft&&Ot();const _t=ft&&!pt&&!ht?getHTMLOffset(ft,kt):createCoords(0),Qt=yt.left+kt.scrollLeft-Et.x-_t.x,vt=yt.top+kt.scrollTop-Et.y-_t.y;return{x:Qt,y:vt,width:yt.width,height:yt.height}}function isStaticPositioned(At){return getComputedStyle$1(At).position==="static"}function getTrueOffsetParent(At,ot){if(!isHTMLElement$1(At)||getComputedStyle$1(At).position==="fixed")return null;if(ot)return ot(At);let ut=At.offsetParent;return getDocumentElement(At)===ut&&(ut=ut.ownerDocument.body),ut}function getOffsetParent(At,ot){const ut=getWindow$1(At);if(isTopLayer(At))return ut;if(!isHTMLElement$1(At)){let ft=getParentNode(At);for(;ft&&!isLastTraversableNode(ft);){if(isElement(ft)&&!isStaticPositioned(ft))return ft;ft=getParentNode(ft)}return ut}let pt=getTrueOffsetParent(At,ot);for(;pt&&isTableElement(pt)&&isStaticPositioned(pt);)pt=getTrueOffsetParent(pt,ot);return pt&&isLastTraversableNode(pt)&&isStaticPositioned(pt)&&!isContainingBlock(pt)?ut:pt||getContainingBlock(At)||ut}const getElementRects=async function(At){const ot=this.getOffsetParent||getOffsetParent,ut=this.getDimensions,pt=await ut(At.floating);return{reference:getRectRelativeToOffsetParent(At.reference,await ot(At.floating),At.strategy),floating:{x:0,y:0,width:pt.width,height:pt.height}}};function isRTL(At){return getComputedStyle$1(At).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale:getScale$2,isElement,isRTL};function rectsAreEqual(At,ot){return At.x===ot.x&&At.y===ot.y&&At.width===ot.width&&At.height===ot.height}function observeMove(At,ot){let ut=null,pt;const ft=getDocumentElement(At);function ht(){var kt;clearTimeout(pt),(kt=ut)==null||kt.disconnect(),ut=null}function yt(kt,Et){kt===void 0&&(kt=!1),Et===void 0&&(Et=1),ht();const Ot=At.getBoundingClientRect(),{left:_t,top:Qt,width:vt,height:St}=Ot;if(kt||ot(),!vt||!St)return;const $t=floor(Qt),Pt=floor(ft.clientWidth-(_t+vt)),Nt=floor(ft.clientHeight-(Qt+St)),Lt=floor(_t),jt={rootMargin:-$t+"px "+-Pt+"px "+-Nt+"px "+-Lt+"px",threshold:max$1(0,min$1(1,Et))||1};let Zt=!0;function Ht(Wt){const wn=Wt[0].intersectionRatio;if(wn!==Et){if(!Zt)return yt();wn?yt(!1,wn):pt=setTimeout(()=>{yt(!1,1e-7)},1e3)}wn===1&&!rectsAreEqual(Ot,At.getBoundingClientRect())&&yt(),Zt=!1}try{ut=new IntersectionObserver(Ht,{...jt,root:ft.ownerDocument})}catch{ut=new IntersectionObserver(Ht,jt)}ut.observe(At)}return yt(!0),ht}function autoUpdate(At,ot,ut,pt){pt===void 0&&(pt={});const{ancestorScroll:ft=!0,ancestorResize:ht=!0,elementResize:yt=typeof ResizeObserver=="function",layoutShift:kt=typeof IntersectionObserver=="function",animationFrame:Et=!1}=pt,Ot=unwrapElement(At),_t=ft||ht?[...Ot?getOverflowAncestors(Ot):[],...ot?getOverflowAncestors(ot):[]]:[];_t.forEach(Lt=>{ft&&Lt.addEventListener("scroll",ut,{passive:!0}),ht&&Lt.addEventListener("resize",ut)});const Qt=Ot&&kt?observeMove(Ot,ut):null;let vt=-1,St=null;yt&&(St=new ResizeObserver(Lt=>{let[qt]=Lt;qt&&qt.target===Ot&&St&&ot&&(St.unobserve(ot),cancelAnimationFrame(vt),vt=requestAnimationFrame(()=>{var jt;(jt=St)==null||jt.observe(ot)})),ut()}),Ot&&!Et&&St.observe(Ot),ot&&St.observe(ot));let $t,Pt=Et?getBoundingClientRect(At):null;Et&&Nt();function Nt(){const Lt=getBoundingClientRect(At);Pt&&!rectsAreEqual(Pt,Lt)&&ut(),Pt=Lt,$t=requestAnimationFrame(Nt)}return ut(),()=>{var Lt;_t.forEach(qt=>{ft&&qt.removeEventListener("scroll",ut),ht&&qt.removeEventListener("resize",ut)}),Qt?.(),(Lt=St)==null||Lt.disconnect(),St=null,Et&&cancelAnimationFrame($t)}}const offset$1=offset$2,shift$2=shift$3,flip$1=flip$2,size$1=size$2,hide$3=hide$4,limitShift$1=limitShift$2,computePosition=(At,ot,ut)=>{const pt=new Map,ft={platform,...ut},ht={...ft.platform,_c:pt};return computePosition$1(At,ot,{...ft,platform:ht})};var isClient=typeof document<"u",noop$1=function(){},index$n=isClient?reactExports.useLayoutEffect:noop$1;function deepEqual(At,ot){if(At===ot)return!0;if(typeof At!=typeof ot)return!1;if(typeof At=="function"&&At.toString()===ot.toString())return!0;let ut,pt,ft;if(At&&ot&&typeof At=="object"){if(Array.isArray(At)){if(ut=At.length,ut!==ot.length)return!1;for(pt=ut;pt--!==0;)if(!deepEqual(At[pt],ot[pt]))return!1;return!0}if(ft=Object.keys(At),ut=ft.length,ut!==Object.keys(ot).length)return!1;for(pt=ut;pt--!==0;)if(!{}.hasOwnProperty.call(ot,ft[pt]))return!1;for(pt=ut;pt--!==0;){const ht=ft[pt];if(!(ht==="_owner"&&At.$$typeof)&&!deepEqual(At[ht],ot[ht]))return!1}return!0}return At!==At&&ot!==ot}function getDPR(At){return typeof window>"u"?1:(At.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(At,ot){const ut=getDPR(At);return Math.round(ot*ut)/ut}function useLatestRef(At){const ot=reactExports.useRef(At);return index$n(()=>{ot.current=At}),ot}function useFloating$1(At){At===void 0&&(At={});const{placement:ot="bottom",strategy:ut="absolute",middleware:pt=[],platform:ft,elements:{reference:ht,floating:yt}={},transform:kt=!0,whileElementsMounted:Et,open:Ot}=At,[_t,Qt]=reactExports.useState({x:0,y:0,strategy:ut,placement:ot,middlewareData:{},isPositioned:!1}),[vt,St]=reactExports.useState(pt);deepEqual(vt,pt)||St(pt);const[$t,Pt]=reactExports.useState(null),[Nt,Lt]=reactExports.useState(null),qt=reactExports.useCallback(nr=>{nr!==Wt.current&&(Wt.current=nr,Pt(nr))},[]),jt=reactExports.useCallback(nr=>{nr!==wn.current&&(wn.current=nr,Lt(nr))},[]),Zt=ht||$t,Ht=yt||Nt,Wt=reactExports.useRef(null),wn=reactExports.useRef(null),Qn=reactExports.useRef(_t),Jt=Et!=null,Gn=useLatestRef(Et),Jn=useLatestRef(ft),Vn=useLatestRef(Ot),Fn=reactExports.useCallback(()=>{if(!Wt.current||!wn.current)return;const nr={placement:ot,strategy:ut,middleware:vt};Jn.current&&(nr.platform=Jn.current),computePosition(Wt.current,wn.current,nr).then(mr=>{const Zn={...mr,isPositioned:Vn.current!==!1};Xn.current&&!deepEqual(Qn.current,Zn)&&(Qn.current=Zn,reactDomExports.flushSync(()=>{Qt(Zn)}))})},[vt,ot,ut,Jn,Vn]);index$n(()=>{Ot===!1&&Qn.current.isPositioned&&(Qn.current.isPositioned=!1,Qt(nr=>({...nr,isPositioned:!1})))},[Ot]);const Xn=reactExports.useRef(!1);index$n(()=>(Xn.current=!0,()=>{Xn.current=!1}),[]),index$n(()=>{if(Zt&&(Wt.current=Zt),Ht&&(wn.current=Ht),Zt&&Ht){if(Gn.current)return Gn.current(Zt,Ht,Fn);Fn()}},[Zt,Ht,Fn,Gn,Jt]);const Ar=reactExports.useMemo(()=>({reference:Wt,floating:wn,setReference:qt,setFloating:jt}),[qt,jt]),Yn=reactExports.useMemo(()=>({reference:Zt,floating:Ht}),[Zt,Ht]),lr=reactExports.useMemo(()=>{const nr={position:ut,left:0,top:0};if(!Yn.floating)return nr;const mr=roundByDPR(Yn.floating,_t.x),Zn=roundByDPR(Yn.floating,_t.y);return kt?{...nr,transform:"translate("+mr+"px, "+Zn+"px)",...getDPR(Yn.floating)>=1.5&&{willChange:"transform"}}:{position:ut,left:mr,top:Zn}},[ut,kt,Yn.floating,_t.x,_t.y]);return reactExports.useMemo(()=>({..._t,update:Fn,refs:Ar,elements:Yn,floatingStyles:lr}),[_t,Fn,Ar,Yn,lr])}const offset=(At,ot)=>{const ut=offset$1(At);return{name:ut.name,fn:ut.fn,options:[At,ot]}},shift$1=(At,ot)=>{const ut=shift$2(At);return{name:ut.name,fn:ut.fn,options:[At,ot]}},limitShift=(At,ot)=>({fn:limitShift$1(At).fn,options:[At,ot]}),flip=(At,ot)=>{const ut=flip$1(At);return{name:ut.name,fn:ut.fn,options:[At,ot]}},size=(At,ot)=>{const ut=size$1(At);return{name:ut.name,fn:ut.fn,options:[At,ot]}},hide$2=(At,ot)=>{const ut=hide$3(At);return{name:ut.name,fn:ut.fn,options:[At,ot]}},createSelector=(At,ot,ut,pt,ft,ht,...yt)=>{if(yt.length>0)throw new Error(formatErrorMessage(1));let kt;if(At)kt=At;else throw new Error("Missing arguments");return kt};var shim={exports:{}},useSyncExternalStoreShim_production={};var hasRequiredUseSyncExternalStoreShim_production;function requireUseSyncExternalStoreShim_production(){if(hasRequiredUseSyncExternalStoreShim_production)return useSyncExternalStoreShim_production;hasRequiredUseSyncExternalStoreShim_production=1;var At=requireReact();function ot(Qt,vt){return Qt===vt&&(Qt!==0||1/Qt===1/vt)||Qt!==Qt&&vt!==vt}var ut=typeof Object.is=="function"?Object.is:ot,pt=At.useState,ft=At.useEffect,ht=At.useLayoutEffect,yt=At.useDebugValue;function kt(Qt,vt){var St=vt(),$t=pt({inst:{value:St,getSnapshot:vt}}),Pt=$t[0].inst,Nt=$t[1];return ht(function(){Pt.value=St,Pt.getSnapshot=vt,Et(Pt)&&Nt({inst:Pt})},[Qt,St,vt]),ft(function(){return Et(Pt)&&Nt({inst:Pt}),Qt(function(){Et(Pt)&&Nt({inst:Pt})})},[Qt]),yt(St),St}function Et(Qt){var vt=Qt.getSnapshot;Qt=Qt.value;try{var St=vt();return!ut(Qt,St)}catch{return!0}}function Ot(Qt,vt){return vt()}var _t=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ot:kt;return useSyncExternalStoreShim_production.useSyncExternalStore=At.useSyncExternalStore!==void 0?At.useSyncExternalStore:_t,useSyncExternalStoreShim_production}var hasRequiredShim;function requireShim(){return hasRequiredShim||(hasRequiredShim=1,shim.exports=requireUseSyncExternalStoreShim_production()),shim.exports}var shimExports=requireShim(),withSelector={exports:{}},withSelector_production={};var hasRequiredWithSelector_production;function requireWithSelector_production(){if(hasRequiredWithSelector_production)return withSelector_production;hasRequiredWithSelector_production=1;var At=requireReact(),ot=requireShim();function ut(Ot,_t){return Ot===_t&&(Ot!==0||1/Ot===1/_t)||Ot!==Ot&&_t!==_t}var pt=typeof Object.is=="function"?Object.is:ut,ft=ot.useSyncExternalStore,ht=At.useRef,yt=At.useEffect,kt=At.useMemo,Et=At.useDebugValue;return withSelector_production.useSyncExternalStoreWithSelector=function(Ot,_t,Qt,vt,St){var $t=ht(null);if($t.current===null){var Pt={hasValue:!1,value:null};$t.current=Pt}else Pt=$t.current;$t=kt(function(){function Lt(Wt){if(!qt){if(qt=!0,jt=Wt,Wt=vt(Wt),St!==void 0&&Pt.hasValue){var wn=Pt.value;if(St(wn,Wt))return Zt=wn}return Zt=Wt}if(wn=Zt,pt(jt,Wt))return wn;var Qn=vt(Wt);return St!==void 0&&St(wn,Qn)?(jt=Wt,wn):(jt=Wt,Zt=Qn)}var qt=!1,jt,Zt,Ht=Qt===void 0?null:Qt;return[function(){return Lt(_t())},Ht===null?void 0:function(){return Lt(Ht())}]},[_t,Qt,vt,St]);var Nt=ft(Ot,$t[0],$t[1]);return yt(function(){Pt.hasValue=!0,Pt.value=Nt},[Nt]),Et(Nt),Nt},withSelector_production}var hasRequiredWithSelector;function requireWithSelector(){return hasRequiredWithSelector||(hasRequiredWithSelector=1,withSelector.exports=requireWithSelector_production()),withSelector.exports}var withSelectorExports=requireWithSelector();const canUseRawUseSyncExternalStore=isReactVersionAtLeast(19),useStoreImplementation=canUseRawUseSyncExternalStore?useStoreFast:useStoreLegacy;function useStore$1(At,ot,ut,pt,ft){return useStoreImplementation(At,ot,ut,pt,ft)}function useStoreR19(At,ot,ut,pt,ft){const ht=reactExports.useCallback(()=>ot(At.getSnapshot(),ut,pt,ft),[At,ot,ut,pt,ft]);return shimExports.useSyncExternalStore(At.subscribe,ht,ht)}register$2({before(At){At.syncIndex=0,At.didInitialize||(At.syncTick=1,At.syncHooks=[],At.didChangeStore=!0,At.getSnapshot=()=>{let ot=!1;for(let ut=0;ut<At.syncHooks.length;ut+=1){const pt=At.syncHooks[ut],ft=pt.selector(pt.store.state,pt.a1,pt.a2,pt.a3);(pt.didChange||!Object.is(pt.value,ft))&&(ot=!0,pt.value=ft,pt.didChange=!1)}return ot&&(At.syncTick+=1),At.syncTick})},after(At){At.syncHooks.length>0&&(At.didChangeStore&&(At.didChangeStore=!1,At.subscribe=ot=>{const ut=new Set;for(const ft of At.syncHooks)ut.add(ft.store);const pt=[];for(const ft of ut)pt.push(ft.subscribe(ot));return()=>{for(const ft of pt)ft()}}),shimExports.useSyncExternalStore(At.subscribe,At.getSnapshot,At.getSnapshot))}});function useStoreFast(At,ot,ut,pt,ft){const ht=getInstance();if(!ht)return useStoreR19(At,ot,ut,pt,ft);const yt=ht.syncIndex;ht.syncIndex+=1;let kt;return ht.didInitialize?(kt=ht.syncHooks[yt],(kt.store!==At||kt.selector!==ot||!Object.is(kt.a1,ut)||!Object.is(kt.a2,pt)||!Object.is(kt.a3,ft))&&(kt.store!==At&&(ht.didChangeStore=!0),kt.store=At,kt.selector=ot,kt.a1=ut,kt.a2=pt,kt.a3=ft,kt.didChange=!0)):(kt={store:At,selector:ot,a1:ut,a2:pt,a3:ft,value:ot(At.getSnapshot(),ut,pt,ft),didChange:!1},ht.syncHooks.push(kt)),kt.value}function useStoreLegacy(At,ot,ut,pt,ft){return withSelectorExports.useSyncExternalStoreWithSelector(At.subscribe,At.getSnapshot,At.getSnapshot,ht=>ot(ht,ut,pt,ft))}class Store{constructor(ot){this.state=ot,this.listeners=new Set,this.updateTick=0}subscribe=ot=>(this.listeners.add(ot),()=>{this.listeners.delete(ot)});getSnapshot=()=>this.state;setState(ot){if(this.state===ot)return;this.state=ot,this.updateTick+=1;const ut=this.updateTick;for(const pt of this.listeners){if(ut!==this.updateTick)return;pt(ot)}}update(ot){for(const ut in ot)if(!Object.is(this.state[ut],ot[ut])){this.setState({...this.state,...ot});return}}set(ot,ut){Object.is(this.state[ot],ut)||this.setState({...this.state,[ot]:ut})}notifyAll(){const ot={...this.state};this.setState(ot)}use(ot,ut,pt,ft){return useStore$1(this,ot,ut,pt,ft)}}class ReactStore extends Store{constructor(ot,ut={},pt){super(ot),this.context=ut,this.selectors=pt}useSyncedValue(ot,ut){reactExports.useDebugValue(ot),useIsoLayoutEffect(()=>{this.state[ot]!==ut&&this.set(ot,ut)},[ot,ut])}useSyncedValueWithCleanup(ot,ut){const pt=this;useIsoLayoutEffect(()=>(pt.state[ot]!==ut&&pt.set(ot,ut),()=>{pt.set(ot,void 0)}),[pt,ot,ut])}useSyncedValues(ot){const ut=this,pt=Object.values(ot);useIsoLayoutEffect(()=>{ut.update(ot)},[ut,...pt])}useControlledProp(ot,ut){reactExports.useDebugValue(ot);const pt=ut!==void 0;useIsoLayoutEffect(()=>{pt&&!Object.is(this.state[ot],ut)&&super.setState({...this.state,[ot]:ut})},[ot,ut,pt])}select(ot,ut,pt,ft){const ht=this.selectors[ot];return ht(this.state,ut,pt,ft)}useState(ot,ut,pt,ft){return reactExports.useDebugValue(ot),useStore$1(this,this.selectors[ot],ut,pt,ft)}useContextCallback(ot,ut){reactExports.useDebugValue(ot);const pt=useStableCallback$1(ut??NOOP);this.context[ot]=pt}useStateSetter(ot){const ut=reactExports.useRef(void 0);return ut.current===void 0&&(ut.current=pt=>{this.set(ot,pt)}),ut.current}observe(ot,ut){let pt;typeof ot=="function"?pt=ot:pt=this.selectors[ot];let ft=pt(this.state);return ut(ft,ft,this),this.subscribe(ht=>{const yt=pt(ht);if(!Object.is(ft,yt)){const kt=ft;ft=yt,ut(yt,kt,this)}})}}const selectors$5={open:createSelector(At=>At.open),transitionStatus:createSelector(At=>At.transitionStatus),domReferenceElement:createSelector(At=>At.domReferenceElement),referenceElement:createSelector(At=>At.positionReference??At.referenceElement),floatingElement:createSelector(At=>At.floatingElement),floatingId:createSelector(At=>At.floatingId)};class FloatingRootStore extends ReactStore{constructor(ot){const{syncOnly:ut,nested:pt,onOpenChange:ft,triggerElements:ht,...yt}=ot;super({...yt,positionReference:yt.referenceElement,domReferenceElement:yt.referenceElement},{onOpenChange:ft,dataRef:{current:{}},events:createEventEmitter(),nested:pt,triggerElements:ht},selectors$5),this.syncOnly=ut}syncOpenEvent=(ot,ut)=>{(!ot||!this.state.open||ut!=null&&isClickLikeEvent(ut))&&(this.context.dataRef.current.openEvent=ot?ut:void 0)};dispatchOpenChange=(ot,ut)=>{this.syncOpenEvent(ot,ut.event);const pt={open:ot,reason:ut.reason,nativeEvent:ut.event,nested:this.context.nested,triggerElement:ut.trigger};this.context.events.emit("openchange",pt)};setOpen=(ot,ut)=>{if(this.syncOnly){this.context.onOpenChange?.(ot,ut);return}this.dispatchOpenChange(ot,ut),this.context.onOpenChange?.(ot,ut)}}function useTransitionStatus(At,ot=!1,ut=!1){const[pt,ft]=reactExports.useState(At&&ot?"idle":void 0),[ht,yt]=reactExports.useState(At);return At&&!ht&&(yt(!0),ft("starting")),!At&&ht&&pt!=="ending"&&!ut&&ft("ending"),!At&&!ht&&pt==="ending"&&ft(void 0),useIsoLayoutEffect(()=>{if(!At&&ht&&pt!=="ending"&&ut){const kt=AnimationFrame.request(()=>{ft("ending")});return()=>{AnimationFrame.cancel(kt)}}},[At,ht,pt,ut]),useIsoLayoutEffect(()=>{if(!At||ot)return;const kt=AnimationFrame.request(()=>{ft(void 0)});return()=>{AnimationFrame.cancel(kt)}},[ot,At]),useIsoLayoutEffect(()=>{if(!At||!ot)return;At&&ht&&pt!=="idle"&&ft("starting");const kt=AnimationFrame.request(()=>{ft("idle")});return()=>{AnimationFrame.cancel(kt)}},[ot,At,ht,pt]),{mounted:ht,setMounted:yt,transitionStatus:pt}}let TransitionStatusDataAttributes=(function(At){return At.startingStyle="data-starting-style",At.endingStyle="data-ending-style",At})({});const STARTING_HOOK={[TransitionStatusDataAttributes.startingStyle]:""},ENDING_HOOK={[TransitionStatusDataAttributes.endingStyle]:""},transitionStatusMapping={transitionStatus(At){return At==="starting"?STARTING_HOOK:At==="ending"?ENDING_HOOK:null}};function useAnimationsFinished(At,ot=!1,ut=!0){const pt=useAnimationFrame();return useStableCallback$1((ft,ht=null)=>{pt.cancel();const yt=resolveRef(At);if(yt==null)return;const kt=yt,Et=()=>{reactDomExports.flushSync(ft)};if(typeof kt.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){ft();return}function Ot(){Promise.all(kt.getAnimations().map(_t=>_t.finished)).then(()=>{ht?.aborted||Et()}).catch(()=>{if(ut){ht?.aborted||Et();return}const _t=kt.getAnimations();!ht?.aborted&&_t.length>0&&_t.some(Qt=>Qt.pending||Qt.playState!=="finished")&&Ot()})}if(ot){const _t=TransitionStatusDataAttributes.startingStyle;if(!kt.hasAttribute(_t)){pt.request(Ot);return}const Qt=new MutationObserver(()=>{kt.hasAttribute(_t)||(Qt.disconnect(),Ot())});Qt.observe(kt,{attributes:!0,attributeFilter:[_t]}),ht?.addEventListener("abort",()=>Qt.disconnect(),{once:!0});return}pt.request(Ot)})}function useOpenChangeComplete(At){const{enabled:ot=!0,open:ut,ref:pt,onComplete:ft}=At,ht=useStableCallback$1(ft),yt=useAnimationsFinished(pt,ut,!1);reactExports.useEffect(()=>{if(!ot)return;const kt=new AbortController;return yt(ht,kt.signal),()=>{kt.abort()}},[ot,ut,ht,yt])}function useTriggerRegistration(At,ot){const ut=reactExports.useRef(null),pt=reactExports.useRef(null);return reactExports.useCallback(ft=>{if(At!==void 0){if(ut.current!==null){const ht=ut.current,yt=pt.current,kt=ot.context.triggerElements.getById(ht);yt&&kt===yt&&ot.context.triggerElements.delete(ht),ut.current=null,pt.current=null}ft!==null&&(ut.current=At,pt.current=ft,ot.context.triggerElements.add(At,ft))}},[ot,At])}function useTriggerDataForwarding(At,ot,ut,pt){const ft=ut.useState("isMountedByTrigger",At),ht=useTriggerRegistration(At,ut),yt=useStableCallback$1(kt=>{if(ht(kt),!kt||!ut.select("open"))return;const Et=ut.select("activeTriggerId");if(Et===At){ut.update({activeTriggerElement:kt,...pt});return}Et==null&&ut.update({activeTriggerId:At,activeTriggerElement:kt,...pt})});return useIsoLayoutEffect(()=>{ft&&ut.update({activeTriggerElement:ot.current,...pt})},[ft,ut,ot,...Object.values(pt)]),{registerTrigger:yt,isMountedByThisTrigger:ft}}function useImplicitActiveTrigger(At){const ot=At.useState("open");useIsoLayoutEffect(()=>{if(ot&&!At.select("activeTriggerId")&&At.context.triggerElements.size===1){const ut=At.context.triggerElements.entries().next();if(!ut.done){const[pt,ft]=ut.value;At.update({activeTriggerId:pt,activeTriggerElement:ft})}}},[ot,At])}function useOpenStateTransitions(At,ot,ut){const{mounted:pt,setMounted:ft,transitionStatus:ht}=useTransitionStatus(At);ot.useSyncedValues({mounted:pt,transitionStatus:ht});const yt=useStableCallback$1(()=>{ft(!1),ot.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),ut?.(),ot.context.onOpenChangeComplete?.(!1)}),kt=ot.useState("preventUnmountingOnClose");return useOpenChangeComplete({enabled:!kt,open:At,ref:ot.context.popupRef,onComplete(){At||yt()}}),{forceUnmount:yt,transitionStatus:ht}}class PopupTriggerMap{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(ot,ut){const pt=this.idMap.get(ot);pt!==ut&&(pt!==void 0&&this.elementsSet.delete(pt),this.elementsSet.add(ut),this.idMap.set(ot,ut))}delete(ot){const ut=this.idMap.get(ot);ut&&(this.elementsSet.delete(ut),this.idMap.delete(ot))}hasElement(ot){return this.elementsSet.has(ot)}hasMatchingElement(ot){for(const ut of this.elementsSet)if(ot(ut))return!0;return!1}getById(ot){return this.idMap.get(ot)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function getEmptyRootContext(){return new FloatingRootStore({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new PopupTriggerMap,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0})}function createInitialPopupStoreState(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:getEmptyRootContext(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:EMPTY_OBJECT,inactiveTriggerProps:EMPTY_OBJECT,popupProps:EMPTY_OBJECT}}const activeTriggerIdSelector=createSelector(At=>At.triggerIdProp??At.activeTriggerId),popupStoreSelectors={open:createSelector(At=>At.openProp??At.open),mounted:createSelector(At=>At.mounted),transitionStatus:createSelector(At=>At.transitionStatus),floatingRootContext:createSelector(At=>At.floatingRootContext),preventUnmountingOnClose:createSelector(At=>At.preventUnmountingOnClose),payload:createSelector(At=>At.payload),activeTriggerId:activeTriggerIdSelector,activeTriggerElement:createSelector(At=>At.mounted?At.activeTriggerElement:null),isTriggerActive:createSelector((At,ot)=>ot!==void 0&&activeTriggerIdSelector(At)===ot),isOpenedByTrigger:createSelector((At,ot)=>ot!==void 0&&activeTriggerIdSelector(At)===ot&&At.open),isMountedByTrigger:createSelector((At,ot)=>ot!==void 0&&activeTriggerIdSelector(At)===ot&&At.mounted),triggerProps:createSelector((At,ot)=>ot?At.activeTriggerProps:At.inactiveTriggerProps),popupProps:createSelector(At=>At.popupProps),popupElement:createSelector(At=>At.popupElement),positionerElement:createSelector(At=>At.positionerElement)};function useFloatingRootContext(At){const{open:ot=!1,onOpenChange:ut,elements:pt={}}=At,ft=useId$1(),ht=useFloatingParentNodeId()!=null,yt=useRefWithInit(()=>new FloatingRootStore({open:ot,transitionStatus:void 0,onOpenChange:ut,referenceElement:pt.reference??null,floatingElement:pt.floating??null,triggerElements:new PopupTriggerMap,floatingId:ft,syncOnly:!1,nested:ht})).current;return useIsoLayoutEffect(()=>{const kt={open:ot,floatingId:ft};pt.reference!==void 0&&(kt.referenceElement=pt.reference,kt.domReferenceElement=isElement(pt.reference)?pt.reference:null),pt.floating!==void 0&&(kt.floatingElement=pt.floating),yt.update(kt)},[ot,ft,pt.reference,pt.floating,yt]),yt.context.onOpenChange=ut,yt.context.nested=ht,yt}function useFloating(At={}){const{nodeId:ot,externalTree:ut}=At,pt=useFloatingRootContext(At),ft=At.rootContext||pt,ht={reference:ft.useState("referenceElement"),floating:ft.useState("floatingElement"),domReference:ft.useState("domReferenceElement")},[yt,kt]=reactExports.useState(null),Et=reactExports.useRef(null),Ot=useFloatingTree(ut);useIsoLayoutEffect(()=>{ht.domReference&&(Et.current=ht.domReference)},[ht.domReference]);const _t=useFloating$1({...At,elements:{...ht,...yt&&{reference:yt}}}),Qt=reactExports.useCallback(Qn=>{const Jt=isElement(Qn)?{getBoundingClientRect:()=>Qn.getBoundingClientRect(),getClientRects:()=>Qn.getClientRects(),contextElement:Qn}:Qn;kt(Jt),_t.refs.setReference(Jt)},[_t.refs]),[vt,St]=reactExports.useState(void 0),[$t,Pt]=reactExports.useState(null);ft.useSyncedValue("referenceElement",vt??null);const Nt=isElement(vt)?vt:null;ft.useSyncedValue("domReferenceElement",vt===void 0?ht.domReference:Nt),ft.useSyncedValue("floatingElement",$t);const Lt=reactExports.useCallback(Qn=>{(isElement(Qn)||Qn===null)&&(Et.current=Qn,St(Qn)),(isElement(_t.refs.reference.current)||_t.refs.reference.current===null||Qn!==null&&!isElement(Qn))&&_t.refs.setReference(Qn)},[_t.refs,St]),qt=reactExports.useCallback(Qn=>{Pt(Qn),_t.refs.setFloating(Qn)},[_t.refs]),jt=reactExports.useMemo(()=>({..._t.refs,setReference:Lt,setFloating:qt,setPositionReference:Qt,domReference:Et}),[_t.refs,Lt,qt,Qt]),Zt=reactExports.useMemo(()=>({..._t.elements,domReference:ht.domReference}),[_t.elements,ht.domReference]),Ht=ft.useState("open"),Wt=ft.useState("floatingId"),wn=reactExports.useMemo(()=>({..._t,dataRef:ft.context.dataRef,open:Ht,onOpenChange:ft.setOpen,events:ft.context.events,floatingId:Wt,refs:jt,elements:Zt,nodeId:ot,rootStore:ft}),[_t,jt,Zt,ot,ft,Ht,Wt]);return useIsoLayoutEffect(()=>{ft.context.dataRef.current.floatingContext=wn;const Qn=Ot?.nodesRef.current.find(Jt=>Jt.id===ot);Qn&&(Qn.context=wn)}),reactExports.useMemo(()=>({..._t,context:wn,refs:jt,elements:Zt,rootStore:ft}),[_t,jt,Zt,wn,ft])}function useSyncedFloatingRootContext(At){const{popupStore:ot,treatPopupAsFloatingElement:ut=!1,onOpenChange:pt}=At,ft=useId$1(),ht=useFloatingParentNodeId()!=null,yt=ot.useState("open"),kt=ot.useState("activeTriggerElement"),Et=ot.useState(ut?"popupElement":"positionerElement"),Ot=ot.context.triggerElements,_t=useRefWithInit(()=>new FloatingRootStore({open:yt,transitionStatus:void 0,referenceElement:kt,floatingElement:Et,triggerElements:Ot,onOpenChange:pt,floatingId:ft,syncOnly:!0,nested:ht})).current;return useIsoLayoutEffect(()=>{const Qt={open:yt,floatingId:ft,referenceElement:kt,floatingElement:Et};isElement(kt)&&(Qt.domReferenceElement=kt),_t.state.positionReference===_t.state.referenceElement&&(Qt.positionReference=kt),_t.update(Qt)},[yt,ft,kt,Et,_t]),_t.context.onOpenChange=pt,_t.context.nested=ht,_t}const isMacSafari=isMac&&isSafari;function useFocus(At,ot={}){const ut="rootStore"in At?At.rootStore:At,{events:pt,dataRef:ft}=ut.context,{enabled:ht=!0,delay:yt}=ot,kt=reactExports.useRef(!1),Et=reactExports.useRef(null),Ot=useTimeout(),_t=reactExports.useRef(!0);reactExports.useEffect(()=>{const vt=ut.select("domReferenceElement");if(!ht)return;const St=getWindow$1(vt);function $t(){const Lt=ut.select("domReferenceElement");!ut.select("open")&&isHTMLElement$1(Lt)&&Lt===activeElement(ownerDocument(Lt))&&(kt.current=!0)}function Pt(){_t.current=!0}function Nt(){_t.current=!1}return mergeCleanups(addEventListener(St,"blur",$t),isMacSafari&&addEventListener(St,"keydown",Pt,!0),isMacSafari&&addEventListener(St,"pointerdown",Nt,!0))},[ut,ht]),reactExports.useEffect(()=>{if(!ht)return;function vt(St){if(St.reason===triggerPress||St.reason===escapeKey){const $t=ut.select("domReferenceElement");isElement($t)&&(Et.current=$t,kt.current=!0)}}return pt.on("openchange",vt),()=>{pt.off("openchange",vt)}},[pt,ht,ut]);const Qt=reactExports.useMemo(()=>({onMouseLeave(){kt.current=!1,Et.current=null},onFocus(vt){const St=vt.currentTarget;if(kt.current){if(Et.current===St)return;kt.current=!1,Et.current=null}const $t=getTarget(vt.nativeEvent);if(isElement($t)){if(isMacSafari&&!vt.relatedTarget){if(!_t.current&&!isTypeableElement($t))return}else if(!matchesFocusVisible($t))return}const Pt=isTargetInsideEnabledTrigger(vt.relatedTarget,ut.context.triggerElements),{nativeEvent:Nt,currentTarget:Lt}=vt,qt=typeof yt=="function"?yt():yt;if(ut.select("open")&&Pt||qt===0||qt===void 0){ut.setOpen(!0,createChangeEventDetails(triggerFocus,Nt,Lt));return}Ot.start(qt,()=>{kt.current||ut.setOpen(!0,createChangeEventDetails(triggerFocus,Nt,Lt))})},onBlur(vt){kt.current=!1,Et.current=null;const St=vt.relatedTarget,$t=vt.nativeEvent,Pt=isElement(St)&&St.hasAttribute(createAttribute("focus-guard"))&&St.getAttribute("data-type")==="outside";Ot.start(0,()=>{const Nt=ut.select("domReferenceElement"),Lt=activeElement(ownerDocument(Nt));!St&&Lt===Nt||contains$2(ft.current.floatingContext?.refs.floating.current,Lt)||contains$2(Nt,Lt)||Pt||isTargetInsideEnabledTrigger(St??Lt,ut.context.triggerElements)||ut.setOpen(!1,createChangeEventDetails(triggerFocus,$t))})}}),[ft,ut,Ot,yt]);return reactExports.useMemo(()=>ht?{reference:Qt,trigger:Qt}:{},[ht,Qt])}class HoverInteraction{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Timeout,this.restTimeout=new Timeout,this.handleCloseOptions=void 0}static create(){return new HoverInteraction}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const pointerEventsMutationOwnerByScopeElement=new WeakMap;function clearSafePolygonPointerEventsMutation(At){if(!At.performedPointerEventsMutation)return;const ot=At.pointerEventsScopeElement;ot&&pointerEventsMutationOwnerByScopeElement.get(ot)===At&&(At.pointerEventsScopeElement?.style.removeProperty("pointer-events"),At.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),At.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),pointerEventsMutationOwnerByScopeElement.delete(ot)),At.performedPointerEventsMutation=!1,At.pointerEventsScopeElement=null,At.pointerEventsReferenceElement=null,At.pointerEventsFloatingElement=null}function applySafePolygonPointerEventsMutation(At,ot){const{scopeElement:ut,referenceElement:pt,floatingElement:ft}=ot,ht=pointerEventsMutationOwnerByScopeElement.get(ut);ht&&ht!==At&&clearSafePolygonPointerEventsMutation(ht),clearSafePolygonPointerEventsMutation(At),At.performedPointerEventsMutation=!0,At.pointerEventsScopeElement=ut,At.pointerEventsReferenceElement=pt,At.pointerEventsFloatingElement=ft,pointerEventsMutationOwnerByScopeElement.set(ut,At),ut.style.pointerEvents="none",pt.style.pointerEvents="auto",ft.style.pointerEvents="auto"}function useHoverInteractionSharedState(At){const ot=useRefWithInit(HoverInteraction.create).current,ut=At.context.dataRef.current;return ut.hoverInteractionState||(ut.hoverInteractionState=ot),useOnMount(ut.hoverInteractionState.disposeEffect),ut.hoverInteractionState}function useHoverFloatingInteraction(At,ot={}){const ut="rootStore"in At?At.rootStore:At,pt=ut.useState("open"),ft=ut.useState("floatingElement"),ht=ut.useState("domReferenceElement"),{dataRef:yt}=ut.context,{enabled:kt=!0,closeDelay:Et=0,nodeId:Ot}=ot,_t=useHoverInteractionSharedState(ut),Qt=useFloatingTree(),vt=useFloatingParentNodeId(),St=useStableCallback$1(()=>isClickLikeOpenEvent(yt.current.openEvent?.type,_t.interactedInside)),$t=useStableCallback$1(()=>{const Zt=yt.current.openEvent?.type;return Zt?.includes("mouse")&&Zt!=="mousedown"}),Pt=useStableCallback$1(Zt=>isTargetInsideEnabledTrigger(Zt,ut.context.triggerElements)),Nt=reactExports.useCallback(Zt=>{const Ht=getDelay(Et,"close",_t.pointerType),Wt=()=>{ut.setOpen(!1,createChangeEventDetails(triggerHover,Zt)),Qt?.events.emit("floating.closed",Zt)};Ht?_t.openChangeTimeout.start(Ht,Wt):(_t.openChangeTimeout.clear(),Wt())},[Et,ut,_t,Qt]),Lt=useStableCallback$1(()=>{clearSafePolygonPointerEventsMutation(_t)}),qt=useStableCallback$1(Zt=>{const Ht=getTarget(Zt);if(!isInteractiveElement(Ht)){_t.interactedInside=!1;return}_t.interactedInside=Ht?.closest("[aria-haspopup]")!=null});useIsoLayoutEffect(()=>{pt||(_t.pointerType=void 0,_t.restTimeoutPending=!1,_t.interactedInside=!1,Lt())},[pt,_t,Lt]),reactExports.useEffect(()=>Lt,[Lt]),useIsoLayoutEffect(()=>{if(kt&&pt&&_t.handleCloseOptions?.blockPointerEvents&&$t()&&isElement(ht)&&ft){const Zt=ht,Ht=ft,Wt=ownerDocument(ft),wn=Qt?.nodesRef.current.find(Jt=>Jt.id===vt)?.context?.elements.floating;wn&&(wn.style.pointerEvents="");const Qn=_t.handleCloseOptions?.getScope?.()??_t.pointerEventsScopeElement??wn??Zt.closest("[data-rootownerid]")??Wt.body;return applySafePolygonPointerEventsMutation(_t,{scopeElement:Qn,referenceElement:Zt,floatingElement:Ht}),()=>{Lt()}}},[kt,pt,ht,ft,_t,$t,Qt,vt,Lt]);const jt=useTimeout();reactExports.useEffect(()=>{if(!kt)return;function Zt(){_t.openChangeTimeout.clear(),jt.clear(),Qt?.events.off("floating.closed",Wt),Lt()}function Ht(Qn){if(Qt&&vt&&getNodeChildren(Qt.nodesRef.current,vt).length>0){Qt.events.on("floating.closed",Wt);return}if(Pt(Qn.relatedTarget))return;const Jt=yt.current.floatingContext?.nodeId??Ot,Gn=Qn.relatedTarget;if(!(Qt&&Jt&&isElement(Gn)&&getNodeChildren(Qt.nodesRef.current,Jt,!1).some(Vn=>contains$2(Vn.context?.elements.floating,Gn)))){if(_t.handler){_t.handler(Qn);return}Lt(),St()||Nt(Qn)}}function Wt(Qn){!Qt||!vt||getNodeChildren(Qt.nodesRef.current,vt).length>0||jt.start(0,()=>{Qt.events.off("floating.closed",Wt),ut.setOpen(!1,createChangeEventDetails(triggerHover,Qn)),Qt.events.emit("floating.closed",Qn)})}const wn=ft;return mergeCleanups(wn&&addEventListener(wn,"mouseenter",Zt),wn&&addEventListener(wn,"mouseleave",Ht),wn&&addEventListener(wn,"pointerdown",qt,!0),()=>{Qt?.events.off("floating.closed",Wt)})},[kt,ft,ut,yt,Ot,St,Pt,Nt,Lt,qt,_t,Qt,vt,jt])}const EMPTY_REF={current:null};function useHoverReferenceInteraction(At,ot={}){const ut="rootStore"in At?At.rootStore:At,{dataRef:pt,events:ft}=ut.context,{enabled:ht=!0,delay:yt=0,handleClose:kt=null,mouseOnly:Et=!1,restMs:Ot=0,move:_t=!0,triggerElementRef:Qt=EMPTY_REF,externalTree:vt,isActiveTrigger:St=!0,getHandleCloseContext:$t,isClosing:Pt}=ot,Nt=useFloatingTree(vt),Lt=useHoverInteractionSharedState(ut),qt=reactExports.useRef(!1),jt=useValueAsRef(kt),Zt=useValueAsRef(yt),Ht=useValueAsRef(Ot),Wt=useValueAsRef(ht),wn=useValueAsRef(Pt);St&&(Lt.handleCloseOptions=jt.current?.__options);const Qn=useStableCallback$1(()=>isClickLikeOpenEvent(pt.current.openEvent?.type,Lt.interactedInside)),Jt=useStableCallback$1(Xn=>isTargetInsideEnabledTrigger(Xn,ut.context.triggerElements)),Gn=useStableCallback$1((Xn,Ar,Yn)=>{const lr=ut.context.triggerElements;if(lr.hasElement(Ar))return!Xn||!contains$2(Xn,Ar);if(!isElement(Yn))return!1;const nr=Yn;return lr.hasMatchingElement(mr=>contains$2(mr,nr))&&(!Xn||!contains$2(Xn,nr))}),Jn=useStableCallback$1((Xn,Ar=!0)=>{const Yn=getDelay(Zt.current,"close",Lt.pointerType);Yn?Lt.openChangeTimeout.start(Yn,()=>{ut.setOpen(!1,createChangeEventDetails(triggerHover,Xn)),Nt?.events.emit("floating.closed",Xn)}):Ar&&(Lt.openChangeTimeout.clear(),ut.setOpen(!1,createChangeEventDetails(triggerHover,Xn)),Nt?.events.emit("floating.closed",Xn))}),Vn=useStableCallback$1(()=>{if(!Lt.handler)return;ownerDocument(ut.select("domReferenceElement")).removeEventListener("mousemove",Lt.handler),Lt.handler=void 0}),Fn=useStableCallback$1(()=>{clearSafePolygonPointerEventsMutation(Lt)});return reactExports.useEffect(()=>Vn,[Vn]),reactExports.useEffect(()=>{if(!ht)return;function Xn(Ar){Ar.open?qt.current=!1:(qt.current=Ar.reason===triggerHover,Vn(),Lt.openChangeTimeout.clear(),Lt.restTimeout.clear(),Lt.blockMouseMove=!0,Lt.restTimeoutPending=!1)}return ft.on("openchange",Xn),()=>{ft.off("openchange",Xn)}},[ht,ft,Lt,Vn]),reactExports.useEffect(()=>{if(!ht)return;const Xn=Qt.current??(St?ut.select("domReferenceElement"):null);if(!isElement(Xn))return;function Ar(lr){if(Lt.openChangeTimeout.clear(),Lt.blockMouseMove=!1,Et&&!isMouseLikePointerType(Lt.pointerType))return;const nr=getRestMs(Ht.current),mr=getDelay(Zt.current,"open",Lt.pointerType),Zn=getTarget(lr),ur=lr.currentTarget??null,yr=ut.select("domReferenceElement");let ir=ur;if(isElement(Zn)&&!ut.context.triggerElements.hasElement(Zn)){for(const ma of ut.context.triggerElements.elements())if(contains$2(ma,Zn)){ir=ma;break}}isElement(ur)&&isElement(yr)&&!ut.context.triggerElements.hasElement(ur)&&contains$2(ur,yr)&&(ir=yr);const Cr=ir==null?!1:Gn(yr,ir,Zn),kr=ut.select("open"),Br=wn.current?.()??ut.select("transitionStatus")==="ending",Dr=!kr&&Br&&qt.current,Gr=!Cr&&isElement(ir)&&isElement(yr)&&contains$2(yr,ir)&&Dr,jr=nr>0&&!mr,na=Cr&&(kr||Dr)||Gr,ca=!kr||Cr;if(na){ut.setOpen(!0,createChangeEventDetails(triggerHover,lr,ir));return}jr||(mr?Lt.openChangeTimeout.start(mr,()=>{ca&&ut.setOpen(!0,createChangeEventDetails(triggerHover,lr,ir))}):ca&&ut.setOpen(!0,createChangeEventDetails(triggerHover,lr,ir)))}function Yn(lr){if(Qn()){Fn();return}Vn();const nr=ut.select("domReferenceElement"),mr=ownerDocument(nr);Lt.restTimeout.clear(),Lt.restTimeoutPending=!1;const Zn=pt.current.floatingContext??$t?.();if(Jt(lr.relatedTarget))return;if(jt.current&&Zn){ut.select("open")||Lt.openChangeTimeout.clear();const ir=Qt.current;Lt.handler=jt.current({...Zn,tree:Nt,x:lr.clientX,y:lr.clientY,onClose(){Fn(),Vn(),Wt.current&&!Qn()&&ir===ut.select("domReferenceElement")&&Jn(lr,!0)}}),mr.addEventListener("mousemove",Lt.handler),Lt.handler(lr);return}(Lt.pointerType!=="touch"||!contains$2(ut.select("floatingElement"),lr.relatedTarget))&&Jn(lr)}return _t?mergeCleanups(addEventListener(Xn,"mousemove",Ar,{once:!0}),addEventListener(Xn,"mouseenter",Ar),addEventListener(Xn,"mouseleave",Yn)):mergeCleanups(addEventListener(Xn,"mouseenter",Ar),addEventListener(Xn,"mouseleave",Yn))},[Vn,Fn,pt,Zt,Jn,ut,ht,jt,Lt,St,Gn,Qn,Jt,Et,_t,Ht,Qt,Nt,Wt,$t,wn]),reactExports.useMemo(()=>{if(!ht)return;function Xn(Ar){Lt.pointerType=Ar.pointerType}return{onPointerDown:Xn,onPointerEnter:Xn,onMouseMove(Ar){const{nativeEvent:Yn}=Ar,lr=Ar.currentTarget,nr=ut.select("domReferenceElement"),mr=ut.select("open"),Zn=Gn(nr,lr,Ar.target);if(Et&&!isMouseLikePointerType(Lt.pointerType))return;if(mr&&Zn&&Lt.handleCloseOptions?.blockPointerEvents){const ir=ut.select("floatingElement");if(ir){const Cr=Lt.handleCloseOptions?.getScope?.()??lr.ownerDocument.body;applySafePolygonPointerEventsMutation(Lt,{scopeElement:Cr,referenceElement:lr,floatingElement:ir})}}const ur=getRestMs(Ht.current);if(mr&&!Zn||ur===0||!Zn&&Lt.restTimeoutPending&&Ar.movementX**2+Ar.movementY**2<2)return;Lt.restTimeout.clear();function yr(){if(Lt.restTimeoutPending=!1,Qn())return;const ir=ut.select("open");!Lt.blockMouseMove&&(!ir||Zn)&&ut.setOpen(!0,createChangeEventDetails(triggerHover,Yn,lr))}Lt.pointerType==="touch"?reactDomExports.flushSync(()=>{yr()}):Zn&&mr?yr():(Lt.restTimeoutPending=!0,Lt.restTimeout.start(ur,yr))}}},[ht,Lt,Qn,Gn,Et,ut,Ht])}function useInteractions(At=[]){const ot=At.map(Ot=>Ot?.reference),ut=At.map(Ot=>Ot?.floating),pt=At.map(Ot=>Ot?.item),ft=At.map(Ot=>Ot?.trigger),ht=reactExports.useCallback(Ot=>mergeProps$2(Ot,At,"reference"),ot),yt=reactExports.useCallback(Ot=>mergeProps$2(Ot,At,"floating"),ut),kt=reactExports.useCallback(Ot=>mergeProps$2(Ot,At,"item"),pt),Et=reactExports.useCallback(Ot=>mergeProps$2(Ot,At,"trigger"),ft);return reactExports.useMemo(()=>({getReferenceProps:ht,getFloatingProps:yt,getItemProps:kt,getTriggerProps:Et}),[ht,yt,kt,Et])}function mergeProps$2(At,ot,ut){const pt=new Map,ft=ut==="item",ht={};ut==="floating"&&(ht.tabIndex=-1,ht[FOCUSABLE_ATTRIBUTE]="");for(const yt in At)ft&&At&&(yt===ACTIVE_KEY||yt===SELECTED_KEY)||(ht[yt]=At[yt]);for(let yt=0;yt<ot.length;yt+=1){let kt;const Et=ot[yt]?.[ut];typeof Et=="function"?kt=At?Et(At):null:kt=Et,kt&&mutablyMergeProps(ht,kt,ft,pt)}return mutablyMergeProps(ht,At,ft,pt),ht}function mutablyMergeProps(At,ot,ut,pt){for(const ft in ot){const ht=ot[ft];ut&&(ft===ACTIVE_KEY||ft===SELECTED_KEY)||(ft.startsWith("on")?(pt.has(ft)||pt.set(ft,[]),typeof ht=="function"&&(pt.get(ft)?.push(ht),At[ft]=(...yt)=>pt.get(ft)?.map(kt=>kt(...yt)).find(kt=>kt!==void 0))):At[ft]=ht)}}function isMouseWithinBounds(At){const ot=At.currentTarget.getBoundingClientRect();return ot.top+1<=At.clientY&&At.clientY<=ot.bottom-1&&ot.left+1<=At.clientX&&At.clientX<=ot.right-1}const ESCAPE="Escape";function doSwitch(At,ot,ut){switch(At){case"vertical":return ot;case"horizontal":return ut;default:return ot||ut}}function isMainOrientationKey(At,ot){return doSwitch(ot,At===ARROW_UP$1||At===ARROW_DOWN$1,At===ARROW_LEFT$1||At===ARROW_RIGHT$1)}function isMainOrientationToEndKey(At,ot,ut){return doSwitch(ot,At===ARROW_DOWN$1,ut?At===ARROW_LEFT$1:At===ARROW_RIGHT$1)||At==="Enter"||At===" "||At===""}function isCrossOrientationOpenKey(At,ot,ut){return doSwitch(ot,ut?At===ARROW_LEFT$1:At===ARROW_RIGHT$1,At===ARROW_DOWN$1)}function isCrossOrientationCloseKey(At,ot,ut,pt){const ft=ut?At===ARROW_RIGHT$1:At===ARROW_LEFT$1,ht=At===ARROW_UP$1;return ot==="both"||ot==="horizontal"&&pt&&pt>1?At===ESCAPE:doSwitch(ot,ft,ht)}function useListNavigation(At,ot){const ut="rootStore"in At?At.rootStore:At,pt=ut.useState("open"),ft=ut.useState("floatingElement"),ht=ut.useState("domReferenceElement"),yt=ut.context.dataRef,{listRef:kt,activeIndex:Et,onNavigate:Ot=()=>{},enabled:_t=!0,selectedIndex:Qt=null,allowEscape:vt=!1,loopFocus:St=!1,nested:$t=!1,rtl:Pt=!1,virtual:Nt=!1,focusItemOnOpen:Lt="auto",focusItemOnHover:qt=!0,openOnArrowKeyDown:jt=!0,disabledIndices:Zt=void 0,orientation:Ht="vertical",parentOrientation:Wt,cols:wn=1,id:Qn,resetOnPointerLeave:Jt=!0,externalTree:Gn}=ot,Jn=getFloatingFocusElement(ft),Vn=useValueAsRef(Jn),Fn=useFloatingParentNodeId(),Xn=useFloatingTree(Gn);useIsoLayoutEffect(()=>{yt.current.orientation=Ht},[yt,Ht]);const Ar=isTypeableCombobox(ht),Yn=reactExports.useRef(Lt),lr=reactExports.useRef(Qt??-1),nr=reactExports.useRef(null),mr=reactExports.useRef(!0),Zn=useStableCallback$1($a=>{Ot(lr.current===-1?null:lr.current,$a)}),ur=reactExports.useRef(Zn),yr=reactExports.useRef(!!ft),ir=reactExports.useRef(pt),Cr=reactExports.useRef(!1),kr=reactExports.useRef(!1),Br=reactExports.useRef(null),Dr=useValueAsRef(Zt),Gr=useValueAsRef(pt),jr=useValueAsRef(Qt),na=useValueAsRef(Jt),ca=useStableCallback$1(()=>{function $a(ki){Nt?Xn?.events.emit("virtualfocus",ki):Br.current=enqueueFocus(ki,{sync:Cr.current,preventScroll:!0})}const Ya=kt.current[lr.current],Ta=kr.current;Ya&&$a(Ya),(Cr.current?ki=>ki():requestAnimationFrame)(()=>{const ki=kt.current[lr.current]||Ya;if(!ki)return;Ya||$a(ki),ba&&(Ta||!mr.current)&&ki.scrollIntoView?.({block:"nearest",inline:"nearest"})})});useIsoLayoutEffect(()=>{_t&&(pt&&ft?(lr.current=Qt??-1,Yn.current&&Qt!=null&&(kr.current=!0,Zn())):yr.current&&(lr.current=-1,ur.current()))},[_t,pt,ft,Qt,Zn]),useIsoLayoutEffect(()=>{if(_t){if(!pt){Cr.current=!1;return}if(ft)if(Et==null){if(Cr.current=!1,jr.current!=null)return;if(yr.current&&(lr.current=-1,ca()),(!ir.current||!yr.current)&&Yn.current&&(nr.current!=null||Yn.current===!0&&nr.current==null)){let $a=0;const Ya=()=>{kt.current[0]==null?($a<2&&($a?requestAnimationFrame:queueMicrotask)(Ya),$a+=1):(lr.current=nr.current==null||isMainOrientationToEndKey(nr.current,Ht,Pt)||$t?getMinListIndex(kt):getMaxListIndex(kt),nr.current=null,Zn())};Ya()}}else isIndexOutOfListBounds(kt.current,Et)||(lr.current=Et,ca(),kr.current=!1)}},[_t,pt,ft,Et,jr,$t,kt,Ht,Pt,Zn,ca,Dr]),useIsoLayoutEffect(()=>{if(!_t||ft||!Xn||Nt||!yr.current)return;const $a=Xn.nodesRef.current,Ya=$a.find(ki=>ki.id===Fn)?.context?.elements.floating,Ta=activeElement(ownerDocument(ft)),qa=$a.some(ki=>ki.context&&contains$2(ki.context.elements.floating,Ta));Ya&&!qa&&mr.current&&Ya.focus({preventScroll:!0})},[_t,ft,Xn,Fn,Nt]),useIsoLayoutEffect(()=>{ur.current=Zn,ir.current=pt,yr.current=!!ft}),useIsoLayoutEffect(()=>{pt||(nr.current=null,Yn.current=Lt)},[pt,Lt]);const ma=Et!=null,pa=useStableCallback$1($a=>{if(!Gr.current)return;const Ya=kt.current.indexOf($a.currentTarget);Ya!==-1&&(lr.current!==Ya||Et!==Ya)&&(lr.current=Ya,Zn($a))}),ba=reactExports.useMemo(()=>({onFocus(Ya){Cr.current=!0,pa(Ya)},onClick:({currentTarget:Ya})=>Ya.focus({preventScroll:!0}),onMouseMove(Ya){Cr.current=!0,kr.current=!1,qt&&pa(Ya)},onPointerLeave(Ya){if(!Gr.current||!mr.current||Ya.pointerType==="touch")return;Cr.current=!0;const Ta=Ya.relatedTarget;if(!isMouseWithinBounds(Ya)&&!(!qt||kt.current.includes(Ta))&&na.current&&(Br.current?.(),Br.current=null,lr.current=-1,Zn(Ya),!Nt)){const qa=Vn.current,ki=activeElement(ownerDocument(qa));qa&&contains$2(qa,ki)&&qa.focus({preventScroll:!0})}}}),[pa,Gr,Vn,qt,kt,Zn,na,Nt]),ti=reactExports.useCallback(()=>Wt??Xn?.nodesRef.current.find($a=>$a.id===Fn)?.context?.dataRef?.current.orientation,[Fn,Xn,Wt]),ya=useStableCallback$1($a=>{if(mr.current=!1,Cr.current=!0,$a.which===229||!Gr.current&&$a.currentTarget===Vn.current)return;if($t&&isCrossOrientationCloseKey($a.key,Ht,Pt,wn)){isMainOrientationKey($a.key,ti())||stopEvent($a),ut.setOpen(!1,createChangeEventDetails(listNavigation,$a.nativeEvent)),isHTMLElement$1(ht)&&(Nt?Xn?.events.emit("virtualfocus",ht):ht.focus());return}const Ya=lr.current,Ta=getMinListIndex(kt,Zt),qa=getMaxListIndex(kt,Zt);if(Ar||($a.key==="Home"&&(stopEvent($a),lr.current=Ta,Zn($a)),$a.key==="End"&&(stopEvent($a),lr.current=qa,Zn($a))),wn>1){const ki=Array.from({length:kt.current.length},()=>({width:1,height:1})),La=createGridCellMap(ki,wn),Ja=La.findIndex(ns=>ns!=null&&!isListIndexDisabled(kt.current,ns,Zt)),qi=La.reduce((ns,Qo,ao)=>Qo!=null&&!isListIndexDisabled(kt.current,Qo,Zt)?ao:ns,-1),co=La[getGridNavigatedIndex(La.map(ns=>ns!=null?kt.current[ns]:null),{event:$a,orientation:Ht,loopFocus:St,rtl:Pt,cols:wn,disabledIndices:getGridCellIndices([...(typeof Zt!="function"?Zt:null)||kt.current.map((ns,Qo)=>isListIndexDisabled(kt.current,Qo,Zt)?Qo:void 0),void 0],La),minIndex:Ja,maxIndex:qi,prevIndex:getGridCellIndexOfCorner(lr.current>qa?Ta:lr.current,ki,La,wn,$a.key===ARROW_DOWN$1?"bl":$a.key===(Pt?ARROW_LEFT$1:ARROW_RIGHT$1)?"tr":"tl"),stopEvent:!0})];if(co!=null&&(lr.current=co,Zn($a)),Ht==="both")return}if(isMainOrientationKey($a.key,Ht)){if(stopEvent($a),pt&&!Nt&&activeElement($a.currentTarget.ownerDocument)===$a.currentTarget){lr.current=isMainOrientationToEndKey($a.key,Ht,Pt)?Ta:qa,Zn($a);return}isMainOrientationToEndKey($a.key,Ht,Pt)?St?Ya>=qa?vt&&Ya!==kt.current.length?lr.current=-1:(Cr.current=!1,lr.current=Ta):lr.current=findNonDisabledListIndex(kt.current,{startingIndex:Ya,disabledIndices:Zt}):lr.current=Math.min(qa,findNonDisabledListIndex(kt.current,{startingIndex:Ya,disabledIndices:Zt})):St?Ya<=Ta?vt&&Ya!==-1?lr.current=kt.current.length:(Cr.current=!1,lr.current=qa):lr.current=findNonDisabledListIndex(kt.current,{startingIndex:Ya,decrement:!0,disabledIndices:Zt}):lr.current=Math.max(Ta,findNonDisabledListIndex(kt.current,{startingIndex:Ya,decrement:!0,disabledIndices:Zt})),isIndexOutOfListBounds(kt.current,lr.current)&&(lr.current=-1),Zn($a)}}),Xa=reactExports.useMemo(()=>Nt&&pt&&ma&&{"aria-activedescendant":`${Qn}-${Et}`},[Nt,pt,ma,Qn,Et]),Ni=reactExports.useMemo(()=>({"aria-orientation":Ht==="both"?void 0:Ht,...Ar?{}:Xa,onKeyDown($a){if($a.key==="Tab"&&$a.shiftKey&&pt&&!Nt){const Ya=getTarget($a.nativeEvent);if(Ya&&!contains$2(Vn.current,Ya))return;stopEvent($a),ut.setOpen(!1,createChangeEventDetails(focusOut,$a.nativeEvent)),isHTMLElement$1(ht)&&ht.focus();return}ya($a)},onPointerMove(){mr.current=!0}}),[Xa,ya,Vn,Ht,Ar,ut,pt,Nt,ht]),ii=reactExports.useMemo(()=>{function $a(Ta){Lt==="auto"&&isVirtualClick(Ta.nativeEvent)&&(Yn.current=!Nt)}function Ya(Ta){Yn.current=Lt,Lt==="auto"&&isVirtualPointerEvent(Ta.nativeEvent)&&(Yn.current=!0)}return{onKeyDown(Ta){const qa=ut.select("open");mr.current=!1;const ki=Ta.key.startsWith("Arrow"),La=isCrossOrientationOpenKey(Ta.key,ti(),Pt),Ja=isMainOrientationKey(Ta.key,Ht),qi=($t?La:Ja)||Ta.key==="Enter"||Ta.key.trim()==="";if(Nt&&qa)return ya(Ta);if(!(!qa&&!jt&&ki)){if(qi){const co=isMainOrientationKey(Ta.key,ti());nr.current=$t&&co?null:Ta.key}if($t){La&&(stopEvent(Ta),qa?(lr.current=getMinListIndex(kt,Dr.current),Zn(Ta)):ut.setOpen(!0,createChangeEventDetails(listNavigation,Ta.nativeEvent,Ta.currentTarget)));return}Ja&&(jr.current!=null&&(lr.current=jr.current),stopEvent(Ta),!qa&&jt?ut.setOpen(!0,createChangeEventDetails(listNavigation,Ta.nativeEvent,Ta.currentTarget)):ya(Ta),qa&&Zn(Ta))}},onFocus(Ta){ut.select("open")&&!Nt&&(lr.current=-1,Zn(Ta))},onPointerDown:Ya,onPointerEnter:Ya,onMouseDown:$a,onClick:$a}},[ya,Dr,Lt,kt,$t,Zn,ut,jt,Ht,ti,Pt,jr,Nt]),Za=reactExports.useMemo(()=>({...Xa,...ii}),[Xa,ii]);return reactExports.useMemo(()=>_t?{reference:Za,floating:Ni,item:ba,trigger:ii}:{},[_t,Za,Ni,ii,ba])}const componentRoleToAriaRoleMap=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function useRole(At,ot={}){const ut="rootStore"in At?At.rootStore:At,pt=ut.useState("open"),ft=ut.useState("floatingId"),ht=ut.useState("domReferenceElement"),yt=ut.useState("floatingElement"),{role:kt="dialog"}=ot,Et=useId$1(),Ot=ht?.id||Et,_t=reactExports.useMemo(()=>getFloatingFocusElement(yt)?.id||ft,[yt,ft]),Qt=componentRoleToAriaRoleMap.get(kt)??kt,St=useFloatingParentNodeId()!=null,$t=reactExports.useMemo(()=>Qt==="tooltip"||kt==="label"?EMPTY_OBJECT:{"aria-haspopup":Qt==="alertdialog"?"dialog":Qt,"aria-expanded":"false",...Qt==="listbox"&&{role:"combobox"},...Qt==="menu"&&St&&{role:"menuitem"},...kt==="select"&&{"aria-autocomplete":"none"},...kt==="combobox"&&{"aria-autocomplete":"list"}},[Qt,St,kt]),Pt=reactExports.useMemo(()=>Qt==="tooltip"||kt==="label"?{[`aria-${kt==="label"?"labelledby":"describedby"}`]:pt?_t:void 0}:{...$t,"aria-expanded":pt?"true":"false","aria-controls":pt?_t:void 0,...Qt==="menu"&&{id:Ot}},[Qt,_t,pt,Ot,kt,$t]),Nt=reactExports.useMemo(()=>{const qt={id:_t,...Qt&&{role:Qt}};return Qt==="tooltip"||kt==="label"?qt:{...qt,...Qt==="menu"&&{"aria-labelledby":Ot}}},[Qt,_t,Ot,kt]),Lt=reactExports.useCallback(({active:qt,selected:jt})=>{const Zt={role:"option",...qt&&{id:`${_t}-fui-option`}};switch(kt){case"select":case"combobox":return{...Zt,"aria-selected":jt}}return{}},[_t,kt]);return reactExports.useMemo(()=>({reference:Pt,floating:Nt,item:Lt,trigger:$t}),[Pt,Nt,$t,Lt])}function useTypeahead(At,ot){const ut="rootStore"in At?At.rootStore:At,pt=ut.context.dataRef,ft=ut.useState("open"),{listRef:ht,elementsRef:yt,activeIndex:kt,onMatch:Et,onTypingChange:Ot,enabled:_t=!0,resetMs:Qt=750,selectedIndex:vt=null}=ot,St=useTimeout(),$t=reactExports.useRef(""),Pt=reactExports.useRef(vt??kt??-1),Nt=reactExports.useRef(null);useIsoLayoutEffect(()=>{!ft&&vt!==null||(St.clear(),Nt.current=null,$t.current!==""&&($t.current=""))},[ft,vt,St]),useIsoLayoutEffect(()=>{ft&&$t.current===""&&(Pt.current=vt??kt??-1)},[ft,vt,kt]);const Lt=useStableCallback$1(Wt=>{Wt?pt.current.typing||(pt.current.typing=Wt,Ot?.(Wt)):pt.current.typing&&(pt.current.typing=Wt,Ot?.(Wt))}),qt=useStableCallback$1(Wt=>{function wn(Ar){const Yn=yt?.current[Ar];return!Yn||isElementVisible(Yn)}function Qn(Ar,Yn,lr=0){if(Ar.length===0)return-1;const nr=(lr%Ar.length+Ar.length)%Ar.length,mr=Yn.toLocaleLowerCase();for(let Zn=0;Zn<Ar.length;Zn+=1){const ur=(nr+Zn)%Ar.length;if(!(!Ar[ur]?.toLocaleLowerCase().startsWith(mr)||!wn(ur)))return ur}return-1}const Jt=ht.current;if($t.current.length>0&&Wt.key===" "&&(stopEvent(Wt),Lt(!0)),$t.current.length>0&&$t.current[0]!==" "&&Qn(Jt,$t.current)===-1&&Wt.key!==" "&&Lt(!1),Jt==null||Wt.key.length!==1||Wt.ctrlKey||Wt.metaKey||Wt.altKey)return;ft&&Wt.key!==" "&&(stopEvent(Wt),Lt(!0));const Gn=$t.current==="";Gn&&(Pt.current=vt??kt??-1),Jt.every(Ar=>Ar?Ar[0]?.toLocaleLowerCase()!==Ar[1]?.toLocaleLowerCase():!0)&&$t.current===Wt.key&&($t.current="",Pt.current=Nt.current),$t.current+=Wt.key,St.start(Qt,()=>{$t.current="",Pt.current=Nt.current,Lt(!1)});const Fn=((Gn?vt??kt??-1:Pt.current)??0)+1,Xn=Qn(Jt,$t.current,Fn);Xn!==-1?(Et?.(Xn),Nt.current=Xn):Wt.key!==" "&&($t.current="",Lt(!1))}),jt=useStableCallback$1(Wt=>{const wn=Wt.relatedTarget,Qn=ut.select("domReferenceElement"),Jt=ut.select("floatingElement"),Gn=contains$2(Qn,wn),Jn=contains$2(Jt,wn);Gn||Jn||(St.clear(),$t.current="",Pt.current=Nt.current,Lt(!1))}),Zt=reactExports.useMemo(()=>({onKeyDown:qt,onBlur:jt}),[qt,jt]),Ht=reactExports.useMemo(()=>({onKeyDown:qt,onBlur:jt}),[qt,jt]);return reactExports.useMemo(()=>_t?{reference:Zt,floating:Ht}:{},[_t,Zt,Ht])}const CURSOR_SPEED_THRESHOLD=.1,CURSOR_SPEED_THRESHOLD_SQUARED=CURSOR_SPEED_THRESHOLD*CURSOR_SPEED_THRESHOLD,POLYGON_BUFFER=.5;function hasIntersectingEdge(At,ot,ut,pt,ft,ht){return pt>=ot!=ht>=ot&&At<=(ft-ut)*(ot-pt)/(ht-pt)+ut}function isPointInQuadrilateral(At,ot,ut,pt,ft,ht,yt,kt,Et,Ot){let _t=!1;return hasIntersectingEdge(At,ot,ut,pt,ft,ht)&&(_t=!_t),hasIntersectingEdge(At,ot,ft,ht,yt,kt)&&(_t=!_t),hasIntersectingEdge(At,ot,yt,kt,Et,Ot)&&(_t=!_t),hasIntersectingEdge(At,ot,Et,Ot,ut,pt)&&(_t=!_t),_t}function isInsideRect(At,ot,ut){return At>=ut.x&&At<=ut.x+ut.width&&ot>=ut.y&&ot<=ut.y+ut.height}function isInsideAxisAlignedRect(At,ot,ut,pt,ft,ht){const yt=Math.min(ut,ft),kt=Math.max(ut,ft),Et=Math.min(pt,ht),Ot=Math.max(pt,ht);return At>=yt&&At<=kt&&ot>=Et&&ot<=Ot}function safePolygon(At={}){const{blockPointerEvents:ot=!1}=At,ut=new Timeout,pt=({x:ft,y:ht,placement:yt,elements:kt,onClose:Et,nodeId:Ot,tree:_t})=>{const Qt=yt?.split("-")[0];let vt=!1,St=null,$t=null,Pt=typeof performance<"u"?performance.now():0;function Nt(qt,jt){const Zt=performance.now(),Ht=Zt-Pt;if(St===null||$t===null||Ht===0)return St=qt,$t=jt,Pt=Zt,!1;const Wt=qt-St,wn=jt-$t,Qn=Wt*Wt+wn*wn,Jt=Ht*Ht*CURSOR_SPEED_THRESHOLD_SQUARED;return St=qt,$t=jt,Pt=Zt,Qn<Jt}function Lt(){ut.clear(),Et()}return function(jt){ut.clear();const Zt=kt.domReference,Ht=kt.floating;if(!Zt||!Ht||Qt==null||ft==null||ht==null)return;const{clientX:Wt,clientY:wn}=jt,Qn=getTarget(jt),Jt=jt.type==="mouseleave",Gn=contains$2(Ht,Qn),Jn=contains$2(Zt,Qn);if(Gn&&(vt=!0,!Jt))return;if(Jn&&(vt=!1,!Jt)){vt=!0;return}if(Jt&&isElement(jt.relatedTarget)&&contains$2(Ht,jt.relatedTarget))return;function Vn(){return!!(_t&&getNodeChildren(_t.nodesRef.current,Ot).length>0)}function Fn(){Vn()||Lt()}if(Vn())return;const Xn=Zt.getBoundingClientRect(),Ar=Ht.getBoundingClientRect(),Yn=ft>Ar.right-Ar.width/2,lr=ht>Ar.bottom-Ar.height/2,nr=Ar.width>Xn.width,mr=Ar.height>Xn.height,Zn=(nr?Xn:Ar).left,ur=(nr?Xn:Ar).right,yr=(mr?Xn:Ar).top,ir=(mr?Xn:Ar).bottom;if(Qt==="top"&&ht>=Xn.bottom-1||Qt==="bottom"&&ht<=Xn.top+1||Qt==="left"&&ft>=Xn.right-1||Qt==="right"&&ft<=Xn.left+1){Fn();return}let Cr=!1;switch(Qt){case"top":Cr=isInsideAxisAlignedRect(Wt,wn,Zn,Xn.top+1,ur,Ar.bottom-1);break;case"bottom":Cr=isInsideAxisAlignedRect(Wt,wn,Zn,Ar.top+1,ur,Xn.bottom-1);break;case"left":Cr=isInsideAxisAlignedRect(Wt,wn,Ar.right-1,ir,Xn.left+1,yr);break;case"right":Cr=isInsideAxisAlignedRect(Wt,wn,Xn.right-1,ir,Ar.left+1,yr);break}if(Cr)return;if(vt&&!isInsideRect(Wt,wn,Xn)){Fn();return}if(!Jt&&Nt(Wt,wn)){Fn();return}let kr=!1;switch(Qt){case"top":{const Br=nr?POLYGON_BUFFER/2:POLYGON_BUFFER*4,Dr=nr||Yn?ft+Br:ft-Br,Gr=nr?ft-Br:Yn?ft+Br:ft-Br,jr=ht+POLYGON_BUFFER+1,na=Yn||nr?Ar.bottom-POLYGON_BUFFER:Ar.top,ca=Yn?nr?Ar.bottom-POLYGON_BUFFER:Ar.top:Ar.bottom-POLYGON_BUFFER;kr=isPointInQuadrilateral(Wt,wn,Dr,jr,Gr,jr,Ar.left,na,Ar.right,ca);break}case"bottom":{const Br=nr?POLYGON_BUFFER/2:POLYGON_BUFFER*4,Dr=nr||Yn?ft+Br:ft-Br,Gr=nr?ft-Br:Yn?ft+Br:ft-Br,jr=ht-POLYGON_BUFFER,na=Yn||nr?Ar.top+POLYGON_BUFFER:Ar.bottom,ca=Yn?nr?Ar.top+POLYGON_BUFFER:Ar.bottom:Ar.top+POLYGON_BUFFER;kr=isPointInQuadrilateral(Wt,wn,Dr,jr,Gr,jr,Ar.left,na,Ar.right,ca);break}case"left":{const Br=mr?POLYGON_BUFFER/2:POLYGON_BUFFER*4,Dr=mr||lr?ht+Br:ht-Br,Gr=mr?ht-Br:lr?ht+Br:ht-Br,jr=ft+POLYGON_BUFFER+1,na=lr||mr?Ar.right-POLYGON_BUFFER:Ar.left,ca=lr?mr?Ar.right-POLYGON_BUFFER:Ar.left:Ar.right-POLYGON_BUFFER;kr=isPointInQuadrilateral(Wt,wn,na,Ar.top,ca,Ar.bottom,jr,Dr,jr,Gr);break}case"right":{const Br=mr?POLYGON_BUFFER/2:POLYGON_BUFFER*4,Dr=mr||lr?ht+Br:ht-Br,Gr=mr?ht-Br:lr?ht+Br:ht-Br,jr=ft-POLYGON_BUFFER,na=lr||mr?Ar.left+POLYGON_BUFFER:Ar.right,ca=lr?mr?Ar.left+POLYGON_BUFFER:Ar.right:Ar.left+POLYGON_BUFFER;kr=isPointInQuadrilateral(Wt,wn,jr,Dr,jr,Gr,na,Ar.top,ca,Ar.bottom);break}}kr?vt||ut.start(40,Fn):Fn()}};return pt.__options={...At,blockPointerEvents:ot},pt}const selectors$4={...popupStoreSelectors,disabled:createSelector(At=>At.disabled),instantType:createSelector(At=>At.instantType),isInstantPhase:createSelector(At=>At.isInstantPhase),trackCursorAxis:createSelector(At=>At.trackCursorAxis),disableHoverablePopup:createSelector(At=>At.disableHoverablePopup),lastOpenChangeReason:createSelector(At=>At.openChangeReason),closeOnClick:createSelector(At=>At.closeOnClick),closeDelay:createSelector(At=>At.closeDelay),hasViewport:createSelector(At=>At.hasViewport)};class TooltipStore extends ReactStore{constructor(ot){super({...createInitialState$3(),...ot},{popupRef:reactExports.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new PopupTriggerMap},selectors$4)}setOpen=(ot,ut)=>{const pt=ut.reason,ft=pt===triggerHover,ht=ot&&pt===triggerFocus,yt=!ot&&(pt===triggerPress||pt===escapeKey);if(ut.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(ot,ut),ut.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(ot,ut);const kt=()=>{const Et={open:ot,openChangeReason:pt};ht?Et.instantType="focus":yt?Et.instantType="dismiss":pt===triggerHover&&(Et.instantType=void 0);const Ot=ut.trigger?.id??null;(Ot||ot)&&(Et.activeTriggerId=Ot,Et.activeTriggerElement=ut.trigger??null),this.update(Et)};ft?reactDomExports.flushSync(kt):kt()};static useStore(ot,ut){const pt=useRefWithInit(()=>new TooltipStore(ut)).current,ft=ot??pt,ht=useSyncedFloatingRootContext({popupStore:ft,onOpenChange:ft.setOpen});return ft.state.floatingRootContext=ht,ft}}function createInitialState$3(){return{...createInitialPopupStoreState(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}const TooltipRoot=fastComponent(function(ot){const{disabled:ut=!1,defaultOpen:pt=!1,open:ft,disableHoverablePopup:ht=!1,trackCursorAxis:yt="none",actionsRef:kt,onOpenChange:Et,onOpenChangeComplete:Ot,handle:_t,triggerId:Qt,defaultTriggerId:vt=null,children:St}=ot,$t=TooltipStore.useStore(_t?.store,{open:pt,openProp:ft,activeTriggerId:vt,triggerIdProp:Qt});useOnFirstRender(()=>{ft===void 0&&$t.state.open===!1&&pt===!0&&$t.update({open:!0,activeTriggerId:vt})}),$t.useControlledProp("openProp",ft),$t.useControlledProp("triggerIdProp",Qt),$t.useContextCallback("onOpenChange",Et),$t.useContextCallback("onOpenChangeComplete",Ot);const Pt=$t.useState("open"),Nt=!ut&&Pt,Lt=$t.useState("activeTriggerId"),qt=$t.useState("payload");$t.useSyncedValues({trackCursorAxis:yt,disableHoverablePopup:ht}),useIsoLayoutEffect(()=>{Pt&&ut&&$t.setOpen(!1,createChangeEventDetails(disabled))},[Pt,ut,$t]),$t.useSyncedValue("disabled",ut),useImplicitActiveTrigger($t);const{forceUnmount:jt,transitionStatus:Zt}=useOpenStateTransitions(Nt,$t),Ht=$t.select("floatingRootContext"),Wt=$t.useState("isInstantPhase"),wn=$t.useState("instantType"),Qn=$t.useState("lastOpenChangeReason"),Jt=reactExports.useRef(null);useIsoLayoutEffect(()=>{Zt==="ending"&&Qn===none$3||Zt!=="ending"&&Wt?(wn!=="delay"&&(Jt.current=wn),$t.set("instantType","delay")):Jt.current!==null&&($t.set("instantType",Jt.current),Jt.current=null)},[Zt,Wt,Qn,wn,$t]),useIsoLayoutEffect(()=>{Nt&&Lt==null&&$t.set("payload",void 0)},[$t,Lt,Nt]);const Gn=reactExports.useCallback(()=>{$t.setOpen(!1,createTooltipEventDetails($t,imperativeAction))},[$t]);reactExports.useImperativeHandle(kt,()=>({unmount:jt,close:Gn}),[jt,Gn]);const Jn=useDismiss(Ht,{enabled:!ut,referencePress:()=>$t.select("closeOnClick")}),Vn=useClientPoint(Ht,{enabled:!ut&&yt!=="none",axis:yt==="none"?void 0:yt}),{getReferenceProps:Fn,getFloatingProps:Xn,getTriggerProps:Ar}=useInteractions([Jn,Vn]),Yn=reactExports.useMemo(()=>Fn(),[Fn]),lr=reactExports.useMemo(()=>Ar(),[Ar]),nr=reactExports.useMemo(()=>Xn(),[Xn]);return $t.useSyncedValues({activeTriggerProps:Yn,inactiveTriggerProps:lr,popupProps:nr}),jsxRuntimeExports.jsx(TooltipRootContext.Provider,{value:$t,children:typeof St=="function"?St({payload:qt}):St})});function createTooltipEventDetails(At,ot){const ut=createChangeEventDetails(ot);return ut.preventUnmountOnClose=()=>{At.set("preventUnmountingOnClose",!0)},ut}let CommonPopupDataAttributes=(function(At){return At.open="data-open",At.closed="data-closed",At[At.startingStyle=TransitionStatusDataAttributes.startingStyle]="startingStyle",At[At.endingStyle=TransitionStatusDataAttributes.endingStyle]="endingStyle",At.anchorHidden="data-anchor-hidden",At.side="data-side",At.align="data-align",At})({}),CommonTriggerDataAttributes=(function(At){return At.popupOpen="data-popup-open",At.pressed="data-pressed",At})({});const TRIGGER_HOOK={[CommonTriggerDataAttributes.popupOpen]:""},PRESSABLE_TRIGGER_HOOK={[CommonTriggerDataAttributes.popupOpen]:"",[CommonTriggerDataAttributes.pressed]:""},POPUP_OPEN_HOOK={[CommonPopupDataAttributes.open]:""},POPUP_CLOSED_HOOK={[CommonPopupDataAttributes.closed]:""},ANCHOR_HIDDEN_HOOK={[CommonPopupDataAttributes.anchorHidden]:""},triggerOpenStateMapping$1={open(At){return At?TRIGGER_HOOK:null}},pressableTriggerOpenStateMapping={open(At){return At?PRESSABLE_TRIGGER_HOOK:null}},popupStateMapping={open(At){return At?POPUP_OPEN_HOOK:POPUP_CLOSED_HOOK},anchorHidden(At){return At?ANCHOR_HIDDEN_HOOK:null}};function useBaseUiId(At){return useId$1(At,"base-ui")}const TooltipProviderContext=reactExports.createContext(void 0);function useTooltipProviderContext(){return reactExports.useContext(TooltipProviderContext)}let TooltipTriggerDataAttributes=(function(At){return At[At.popupOpen=CommonTriggerDataAttributes.popupOpen]="popupOpen",At.triggerDisabled="data-trigger-disabled",At})({});const OPEN_DELAY$1=600,TooltipTrigger=fastComponentRef(function(ot,ut){const{className:pt,render:ft,handle:ht,payload:yt,disabled:kt,delay:Et,closeOnClick:Ot=!0,closeDelay:_t,id:Qt,style:vt,...St}=ot,$t=useTooltipRootContext(!0),Pt=ht?.store??$t;if(!Pt)throw new Error(formatErrorMessage(82));const Nt=useBaseUiId(Qt),Lt=Pt.useState("isTriggerActive",Nt),qt=Pt.useState("isOpenedByTrigger",Nt),jt=Pt.useState("floatingRootContext"),Zt=reactExports.useRef(null),Ht=Et??OPEN_DELAY$1,Wt=_t??0,{registerTrigger:wn,isMountedByThisTrigger:Qn}=useTriggerDataForwarding(Nt,Zt,Pt,{payload:yt,closeOnClick:Ot,closeDelay:Wt}),Jt=useTooltipProviderContext(),{delayRef:Gn,isInstantPhase:Jn,hasProvider:Vn}=useDelayGroup(jt,{open:qt});Pt.useSyncedValue("isInstantPhase",Jn);const Fn=Pt.useState("disabled"),Xn=kt??Fn,Ar=Pt.useState("trackCursorAxis"),Yn=Pt.useState("disableHoverablePopup"),lr=useHoverReferenceInteraction(jt,{enabled:!Xn,mouseOnly:!0,move:!1,handleClose:!Yn&&Ar!=="both"?safePolygon():null,restMs(){const yr=Jt?.delay,ir=typeof Gn.current=="object"?Gn.current.open:void 0;let Cr=Ht;return Vn&&(ir!==0?Cr=Et??yr??Ht:Cr=0),Cr},delay(){const yr=typeof Gn.current=="object"?Gn.current.close:void 0;let ir=Wt;return _t==null&&Vn&&(ir=yr),{close:ir}},triggerElementRef:Zt,isActiveTrigger:Lt,isClosing:()=>Pt.select("transitionStatus")==="ending"}),nr=useFocus(jt,{enabled:!Xn}).reference,mr={open:qt},Zn=Pt.useState("triggerProps",Qn);return useRenderElement("button",ot,{state:mr,ref:[ut,wn,Zt],props:[lr,nr,Zn,{onPointerDown(){Pt.set("closeOnClick",Ot)},id:Nt,[TooltipTriggerDataAttributes.triggerDisabled]:Xn?"":void 0},St],stateAttributesMapping:triggerOpenStateMapping$1})}),TooltipPortalContext=reactExports.createContext(void 0);function useTooltipPortalContext(){const At=reactExports.useContext(TooltipPortalContext);if(At===void 0)throw new Error(formatErrorMessage(70));return At}const FloatingPortalLite=reactExports.forwardRef(function(ot,ut){const{children:pt,container:ft,className:ht,render:yt,style:kt,...Et}=ot,{portalNode:Ot,portalSubtree:_t}=useFloatingPortalNode({container:ft,ref:ut,componentProps:ot,elementProps:Et});return!_t&&!Ot?null:jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[_t,Ot&&reactDomExports.createPortal(pt,Ot)]})}),TooltipPortal=reactExports.forwardRef(function(ot,ut){const{keepMounted:pt=!1,...ft}=ot;return useTooltipRootContext().useState("mounted")||pt?jsxRuntimeExports.jsx(TooltipPortalContext.Provider,{value:pt,children:jsxRuntimeExports.jsx(FloatingPortalLite,{ref:ut,...ft})}):null}),TooltipPositionerContext=reactExports.createContext(void 0);function useTooltipPositionerContext(){const At=reactExports.useContext(TooltipPositionerContext);if(At===void 0)throw new Error(formatErrorMessage(71));return At}const DirectionContext=reactExports.createContext(void 0);function useDirection(){return reactExports.useContext(DirectionContext)?.direction??"ltr"}const baseArrow=At=>({name:"arrow",options:At,async fn(ot){const{x:ut,y:pt,placement:ft,rects:ht,platform:yt,elements:kt,middlewareData:Et}=ot,{element:Ot,padding:_t=0,offsetParent:Qt="real"}=evaluate(At,ot)||{};if(Ot==null)return{};const vt=getPaddingObject(_t),St={x:ut,y:pt},$t=getAlignmentAxis(ft),Pt=getAxisLength($t),Nt=await yt.getDimensions(Ot),Lt=$t==="y",qt=Lt?"top":"left",jt=Lt?"bottom":"right",Zt=Lt?"clientHeight":"clientWidth",Ht=ht.reference[Pt]+ht.reference[$t]-St[$t]-ht.floating[Pt],Wt=St[$t]-ht.reference[$t],wn=Qt==="real"?await yt.getOffsetParent?.(Ot):kt.floating;let Qn=kt.floating[Zt]||ht.floating[Pt];(!Qn||!await yt.isElement?.(wn))&&(Qn=kt.floating[Zt]||ht.floating[Pt]);const Jt=Ht/2-Wt/2,Gn=Qn/2-Nt[Pt]/2-1,Jn=Math.min(vt[qt],Gn),Vn=Math.min(vt[jt],Gn),Fn=Jn,Xn=Qn-Nt[Pt]-Vn,Ar=Qn/2-Nt[Pt]/2+Jt,Yn=clamp$1(Fn,Ar,Xn),lr=!Et.arrow&&getAlignment(ft)!=null&&Ar!==Yn&&ht.reference[Pt]/2-(Ar<Fn?Jn:Vn)-Nt[Pt]/2<0,nr=lr?Ar<Fn?Ar-Fn:Ar-Xn:0;return{[$t]:St[$t]+nr,data:{[$t]:Yn,centerOffset:Ar-Yn-nr,...lr&&{alignmentOffset:nr}},reset:lr}}}),arrow=(At,ot)=>({...baseArrow(At),options:[At,ot]}),hide$1={name:"hide",async fn(At){const{width:ot,height:ut,x:pt,y:ft}=At.rects.reference,ht=ot===0&&ut===0&&pt===0&&ft===0;return{data:{referenceHidden:(await hide$2().fn(At)).data?.referenceHidden||ht}}}},DEFAULT_SIDES={sideX:"left",sideY:"top"},adaptiveOrigin={name:"adaptiveOrigin",async fn(At){const{x:ot,y:ut,rects:{floating:pt},elements:{floating:ft},platform:ht,strategy:yt,placement:kt}=At,Et=getWindow$1(ft),Ot=Et.getComputedStyle(ft);if(!(Ot.transitionDuration!=="0s"&&Ot.transitionDuration!==""))return{x:ot,y:ut,data:DEFAULT_SIDES};const Qt=await ht.getOffsetParent?.(ft);let vt={width:0,height:0};if(yt==="fixed"&&Et?.visualViewport)vt={width:Et.visualViewport.width,height:Et.visualViewport.height};else if(Qt===Et){const qt=ownerDocument(ft);vt={width:qt.documentElement.clientWidth,height:qt.documentElement.clientHeight}}else await ht.isElement?.(Qt)&&(vt=await ht.getDimensions(Qt));const St=getSide(kt);let $t=ot,Pt=ut;St==="left"&&($t=vt.width-(ot+pt.width)),St==="top"&&(Pt=vt.height-(ut+pt.height));const Nt=St==="left"?"right":DEFAULT_SIDES.sideX,Lt=St==="top"?"bottom":DEFAULT_SIDES.sideY;return{x:$t,y:Pt,data:{sideX:Nt,sideY:Lt}}}};function getLogicalSide(At,ot,ut){const pt=At==="inline-start"||At==="inline-end";return{top:"top",right:pt?ut?"inline-start":"inline-end":"right",bottom:"bottom",left:pt?ut?"inline-end":"inline-start":"left"}[ot]}function getOffsetData(At,ot,ut){const{rects:pt,placement:ft}=At;return{side:getLogicalSide(ot,getSide(ft),ut),align:getAlignment(ft)||"center",anchor:{width:pt.reference.width,height:pt.reference.height},positioner:{width:pt.floating.width,height:pt.floating.height}}}function useAnchorPositioning(At){const{anchor:ot,positionMethod:ut="absolute",side:pt="bottom",sideOffset:ft=0,align:ht="center",alignOffset:yt=0,collisionBoundary:kt,collisionPadding:Et=5,sticky:Ot=!1,arrowPadding:_t=5,disableAnchorTracking:Qt=!1,keepMounted:vt=!1,floatingRootContext:St,mounted:$t,collisionAvoidance:Pt,shiftCrossAxis:Nt=!1,nodeId:Lt,adaptiveOrigin:qt,lazyFlip:jt=!1,externalTree:Zt}=At,[Ht,Wt]=reactExports.useState(null);!$t&&Ht!==null&&Wt(null);const wn=Pt.side||"flip",Qn=Pt.align||"flip",Jt=Pt.fallbackAxisSide||"end",Gn=typeof ot=="function"?ot:void 0,Jn=useStableCallback$1(Gn),Vn=Gn?Jn:ot,Fn=useValueAsRef(ot),Xn=useValueAsRef($t),Yn=useDirection()==="rtl",lr=Ht||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":Yn?"left":"right","inline-start":Yn?"right":"left"}[pt],nr=ht==="center"?lr:`${lr}-${ht}`;let mr=Et;const Zn=1,ur=pt==="bottom"?Zn:0,yr=pt==="top"?Zn:0,ir=pt==="right"?Zn:0,Cr=pt==="left"?Zn:0;typeof mr=="number"?mr={top:mr+ur,right:mr+Cr,bottom:mr+yr,left:mr+ir}:mr&&(mr={top:(mr.top||0)+ur,right:(mr.right||0)+Cr,bottom:(mr.bottom||0)+yr,left:(mr.left||0)+ir});const kr={boundary:kt==="clipping-ancestors"?"clippingAncestors":kt,padding:mr},Br=reactExports.useRef(null),Dr=useValueAsRef(ft),Gr=useValueAsRef(yt),ca=[offset(Xo=>{const ho=getOffsetData(Xo,pt,Yn),ks=typeof Dr.current=="function"?Dr.current(ho):Dr.current,lA=typeof Gr.current=="function"?Gr.current(ho):Gr.current;return{mainAxis:ks,crossAxis:lA,alignmentAxis:lA}},[typeof ft!="function"?ft:0,typeof yt!="function"?yt:0,Yn,pt])],ma=Qn==="none"&&wn!=="shift",pa=!ma&&(Ot||Nt||wn==="shift"),ba=wn==="none"?null:flip({...kr,padding:{top:mr.top+Zn,right:mr.right+Zn,bottom:mr.bottom+Zn,left:mr.left+Zn},mainAxis:!Nt&&wn==="flip",crossAxis:Qn==="flip"?"alignment":!1,fallbackAxisSideDirection:Jt}),ti=ma?null:shift$1(Xo=>{const ho=ownerDocument(Xo.elements.floating).documentElement;return{...kr,rootBoundary:Nt?{x:0,y:0,width:ho.clientWidth,height:ho.clientHeight}:void 0,mainAxis:Qn!=="none",crossAxis:pa,limiter:Ot||Nt?void 0:limitShift(ks=>{if(!Br.current)return{};const{width:lA,height:fA}=Br.current.getBoundingClientRect(),bo=getSideAxis(getSide(ks.placement)),si=bo==="y"?lA:fA,Mi=bo==="y"?mr.left+mr.right:mr.top+mr.bottom;return{offset:si/2+Mi/2}})}},[kr,Ot,Nt,mr,Qn]);wn==="shift"||Qn==="shift"||ht==="center"?ca.push(ti,ba):ca.push(ba,ti),ca.push(size({...kr,apply({elements:{floating:Xo},availableWidth:ho,availableHeight:ks,rects:lA}){if(!Xn.current)return;const fA=Xo.style;fA.setProperty("--available-width",`${ho}px`),fA.setProperty("--available-height",`${ks}px`);const bo=getWindow$1(Xo).devicePixelRatio||1,{x:si,y:Mi,width:rs,height:So}=lA.reference,ms=(Math.round((si+rs)*bo)-Math.round(si*bo))/bo,uo=(Math.round((Mi+So)*bo)-Math.round(Mi*bo))/bo;fA.setProperty("--anchor-width",`${ms}px`),fA.setProperty("--anchor-height",`${uo}px`)}}),arrow(()=>({element:Br.current||ownerDocument(Br.current).createElement("div"),padding:_t,offsetParent:"floating"}),[_t]),{name:"transformOrigin",fn(Xo){const{elements:ho,middlewareData:ks,placement:lA,rects:fA,y:bo}=Xo,si=getSide(lA),Mi=getSideAxis(si),rs=Br.current,So=ks.arrow?.x||0,ms=ks.arrow?.y||0,uo=rs?.clientWidth||0,mo=rs?.clientHeight||0,Ss=So+uo/2,xs=ms+mo/2,Js=Math.abs(ks.shift?.y||0),Us=fA.reference.height/2,Es=typeof ft=="function"?ft(getOffsetData(Xo,pt,Yn)):ft,fc=Js>Es,gu={top:`${Ss}px calc(100% + ${Es}px)`,bottom:`${Ss}px ${-Es}px`,left:`calc(100% + ${Es}px) ${xs}px`,right:`${-Es}px ${xs}px`}[si],Fl=`${Ss}px ${fA.reference.y+Us-bo}px`;return ho.floating.style.setProperty("--transform-origin",pa&&Mi==="y"&&fc?Fl:gu),{}}},hide$1,qt),useIsoLayoutEffect(()=>{!$t&&St&&St.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[$t,St]);const ya=reactExports.useMemo(()=>({elementResize:!Qt&&typeof ResizeObserver<"u",layoutShift:!Qt&&typeof IntersectionObserver<"u"}),[Qt]),{refs:Xa,elements:Ni,x:ii,y:Za,middlewareData:$a,update:Ya,placement:Ta,context:qa,isPositioned:ki,floatingStyles:La}=useFloating({rootContext:St,open:vt?$t:void 0,placement:nr,middleware:ca,strategy:ut,whileElementsMounted:vt?void 0:(...Xo)=>autoUpdate(...Xo,ya),nodeId:Lt,externalTree:Zt}),{sideX:Ja,sideY:qi}=$a.adaptiveOrigin||DEFAULT_SIDES,co=ki?ut:"fixed",ns=reactExports.useMemo(()=>{const Xo=qt?{position:co,[Ja]:ii,[qi]:Za}:{position:co,...La};return ki||(Xo.opacity=0),Xo},[qt,co,Ja,ii,qi,Za,La,ki]),Qo=reactExports.useRef(null);useIsoLayoutEffect(()=>{if(!$t)return;const Xo=Fn.current,ho=typeof Xo=="function"?Xo():Xo,lA=(isRef(ho)?ho.current:ho)||null||null;lA!==Qo.current&&(Xa.setPositionReference(lA),Qo.current=lA)},[$t,Xa,Vn,Fn]),reactExports.useEffect(()=>{if(!$t)return;const Xo=Fn.current;typeof Xo!="function"&&isRef(Xo)&&Xo.current!==Qo.current&&(Xa.setPositionReference(Xo.current),Qo.current=Xo.current)},[$t,Xa,Vn,Fn]),reactExports.useEffect(()=>{if(vt&&$t&&Ni.domReference&&Ni.floating)return autoUpdate(Ni.domReference,Ni.floating,Ya,ya)},[vt,$t,Ni,Ya,ya]);const ao=getSide(Ta),Jo=getLogicalSide(pt,ao,Yn),Ji=getAlignment(Ta)||"center",Ms=!!$a.hide?.referenceHidden;useIsoLayoutEffect(()=>{jt&&$t&&ki&&Wt(ao)},[jt,$t,ki,ao]);const Vs=reactExports.useMemo(()=>({position:"absolute",top:$a.arrow?.y,left:$a.arrow?.x}),[$a.arrow]),ZA=$a.arrow?.centerOffset!==0;return reactExports.useMemo(()=>({positionerStyles:ns,arrowStyles:Vs,arrowRef:Br,arrowUncentered:ZA,side:Jo,align:Ji,physicalSide:ao,anchorHidden:Ms,refs:Xa,context:qa,isPositioned:ki,update:Ya}),[ns,Vs,Br,ZA,Jo,Ji,ao,Ms,Xa,qa,ki,Ya])}function isRef(At){return At!=null&&"current"in At}function getDisabledMountTransitionStyles(At){return At==="starting"?DISABLED_TRANSITIONS_STYLE:EMPTY_OBJECT}function usePositioner(At,ot,{styles:ut,transitionStatus:pt,props:ft,refs:ht,hidden:yt,inert:kt=!1}){const Et={...ut};return kt&&(Et.pointerEvents="none"),useRenderElement("div",At,{state:ot,ref:ht,props:[{role:"presentation",hidden:yt,style:Et},getDisabledMountTransitionStyles(pt),ft],stateAttributesMapping:popupStateMapping})}const TooltipPositioner=reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,anchor:ht,positionMethod:yt="absolute",side:kt="top",align:Et="center",sideOffset:Ot=0,alignOffset:_t=0,collisionBoundary:Qt="clipping-ancestors",collisionPadding:vt=5,arrowPadding:St=5,sticky:$t=!1,disableAnchorTracking:Pt=!1,collisionAvoidance:Nt=POPUP_COLLISION_AVOIDANCE,style:Lt,...qt}=ot,jt=useTooltipRootContext(),Zt=useTooltipPortalContext(),Ht=jt.useState("open"),Wt=jt.useState("mounted"),wn=jt.useState("trackCursorAxis"),Qn=jt.useState("disableHoverablePopup"),Jt=jt.useState("floatingRootContext"),Gn=jt.useState("instantType"),Jn=jt.useState("transitionStatus"),Vn=jt.useState("hasViewport"),Fn=useAnchorPositioning({anchor:ht,positionMethod:yt,floatingRootContext:Jt,mounted:Wt,side:kt,sideOffset:Ot,align:Et,alignOffset:_t,collisionBoundary:Qt,collisionPadding:vt,sticky:$t,arrowPadding:St,disableAnchorTracking:Pt,keepMounted:Zt,collisionAvoidance:Nt,adaptiveOrigin:Vn?adaptiveOrigin:void 0}),Xn=reactExports.useMemo(()=>({open:Ht,side:Fn.side,align:Fn.align,anchorHidden:Fn.anchorHidden,instant:wn!=="none"?"tracking-cursor":Gn}),[Ht,Fn.side,Fn.align,Fn.anchorHidden,wn,Gn]),Ar=usePositioner(ot,Xn,{styles:Fn.positionerStyles,transitionStatus:Jn,props:qt,refs:[ut,jt.useStateSetter("positionerElement")],hidden:!Wt,inert:!Ht||wn==="both"||Qn});return jsxRuntimeExports.jsx(TooltipPositionerContext.Provider,{value:Fn,children:Ar})}),stateAttributesMapping$9={...popupStateMapping,...transitionStatusMapping},TooltipPopup=reactExports.forwardRef(function(ot,ut){const{className:pt,render:ft,style:ht,...yt}=ot,kt=useTooltipRootContext(),{side:Et,align:Ot}=useTooltipPositionerContext(),_t=kt.useState("open"),Qt=kt.useState("instantType"),vt=kt.useState("transitionStatus"),St=kt.useState("popupProps"),$t=kt.useState("floatingRootContext");useOpenChangeComplete({open:_t,ref:kt.context.popupRef,onComplete(){_t&&kt.context.onOpenChangeComplete?.(!0)}});const Pt=kt.useState("disabled"),Nt=kt.useState("closeDelay");return useHoverFloatingInteraction($t,{enabled:!Pt,closeDelay:Nt}),useRenderElement("div",ot,{state:{open:_t,side:Et,align:Ot,instant:Qt,transitionStatus:vt},ref:[ut,kt.context.popupRef,kt.useStateSetter("popupElement")],props:[St,getDisabledMountTransitionStyles(vt),yt],stateAttributesMapping:stateAttributesMapping$9})}),TooltipArrow=reactExports.forwardRef(function(ot,ut){const{className:pt,render:ft,style:ht,...yt}=ot,kt=useTooltipRootContext(),Et=kt.useState("open"),Ot=kt.useState("instantType"),{arrowRef:_t,side:Qt,align:vt,arrowUncentered:St,arrowStyles:$t}=useTooltipPositionerContext();return useRenderElement("div",ot,{state:{open:Et,side:Qt,align:vt,uncentered:St,instant:Ot},ref:[ut,_t],props:[{style:$t,"aria-hidden":!0},yt],stateAttributesMapping:popupStateMapping})}),TooltipProvider=function(ot){const{delay:ut,closeDelay:pt,timeout:ft=400}=ot,ht=reactExports.useMemo(()=>({delay:ut,closeDelay:pt}),[ut,pt]),yt=reactExports.useMemo(()=>({open:ut,close:pt}),[ut,pt]);return jsxRuntimeExports.jsx(TooltipProviderContext.Provider,{value:ht,children:jsxRuntimeExports.jsx(FloatingDelayGroup,{delay:yt,timeoutMs:ft,children:ot.children})})};function inertValue(At){return isReactVersionAtLeast(19)?At:At?"true":void 0}function usePreviousValue(At){const[ot,ut]=reactExports.useState({current:At,previous:null});return At!==ot.current&&ut({current:At,previous:ot.current}),ot.previous}function r$9(At){var ot,ut,pt="";if(typeof At=="string"||typeof At=="number")pt+=At;else if(typeof At=="object")if(Array.isArray(At)){var ft=At.length;for(ot=0;ot<ft;ot++)At[ot]&&(ut=r$9(At[ot]))&&(pt&&(pt+=" "),pt+=ut)}else for(ut in At)At[ut]&&(pt&&(pt+=" "),pt+=ut);return pt}function clsx(){for(var At,ot,ut=0,pt="",ft=arguments.length;ut<ft;ut++)(At=arguments[ut])&&(ot=r$9(At))&&(pt&&(pt+=" "),pt+=ot);return pt}const concatArrays=(At,ot)=>{const ut=new Array(At.length+ot.length);for(let pt=0;pt<At.length;pt++)ut[pt]=At[pt];for(let pt=0;pt<ot.length;pt++)ut[At.length+pt]=ot[pt];return ut},createClassValidatorObject=(At,ot)=>({classGroupId:At,validator:ot}),createClassPartObject=(At=new Map,ot=null,ut)=>({nextPart:At,validators:ot,classGroupId:ut}),CLASS_PART_SEPARATOR="-",EMPTY_CONFLICTS=[],ARBITRARY_PROPERTY_PREFIX="arbitrary..",createClassGroupUtils=At=>{const ot=createClassMap(At),{conflictingClassGroups:ut,conflictingClassGroupModifiers:pt}=At;return{getClassGroupId:yt=>{if(yt.startsWith("[")&&yt.endsWith("]"))return getGroupIdForArbitraryProperty(yt);const kt=yt.split(CLASS_PART_SEPARATOR),Et=kt[0]===""&&kt.length>1?1:0;return getGroupRecursive(kt,Et,ot)},getConflictingClassGroupIds:(yt,kt)=>{if(kt){const Et=pt[yt],Ot=ut[yt];return Et?Ot?concatArrays(Ot,Et):Et:Ot||EMPTY_CONFLICTS}return ut[yt]||EMPTY_CONFLICTS}}},getGroupRecursive=(At,ot,ut)=>{if(At.length-ot===0)return ut.classGroupId;const ft=At[ot],ht=ut.nextPart.get(ft);if(ht){const Ot=getGroupRecursive(At,ot+1,ht);if(Ot)return Ot}const yt=ut.validators;if(yt===null)return;const kt=ot===0?At.join(CLASS_PART_SEPARATOR):At.slice(ot).join(CLASS_PART_SEPARATOR),Et=yt.length;for(let Ot=0;Ot<Et;Ot++){const _t=yt[Ot];if(_t.validator(kt))return _t.classGroupId}},getGroupIdForArbitraryProperty=At=>At.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const ot=At.slice(1,-1),ut=ot.indexOf(":"),pt=ot.slice(0,ut);return pt?ARBITRARY_PROPERTY_PREFIX+pt:void 0})(),createClassMap=At=>{const{theme:ot,classGroups:ut}=At;return processClassGroups(ut,ot)},processClassGroups=(At,ot)=>{const ut=createClassPartObject();for(const pt in At){const ft=At[pt];processClassesRecursively(ft,ut,pt,ot)}return ut},processClassesRecursively=(At,ot,ut,pt)=>{const ft=At.length;for(let ht=0;ht<ft;ht++){const yt=At[ht];processClassDefinition(yt,ot,ut,pt)}},processClassDefinition=(At,ot,ut,pt)=>{if(typeof At=="string"){processStringDefinition(At,ot,ut);return}if(typeof At=="function"){processFunctionDefinition(At,ot,ut,pt);return}processObjectDefinition(At,ot,ut,pt)},processStringDefinition=(At,ot,ut)=>{const pt=At===""?ot:getPart(ot,At);pt.classGroupId=ut},processFunctionDefinition=(At,ot,ut,pt)=>{if(isThemeGetter(At)){processClassesRecursively(At(pt),ot,ut,pt);return}ot.validators===null&&(ot.validators=[]),ot.validators.push(createClassValidatorObject(ut,At))},processObjectDefinition=(At,ot,ut,pt)=>{const ft=Object.entries(At),ht=ft.length;for(let yt=0;yt<ht;yt++){const[kt,Et]=ft[yt];processClassesRecursively(Et,getPart(ot,kt),ut,pt)}},getPart=(At,ot)=>{let ut=At;const pt=ot.split(CLASS_PART_SEPARATOR),ft=pt.length;for(let ht=0;ht<ft;ht++){const yt=pt[ht];let kt=ut.nextPart.get(yt);kt||(kt=createClassPartObject(),ut.nextPart.set(yt,kt)),ut=kt}return ut},isThemeGetter=At=>"isThemeGetter"in At&&At.isThemeGetter===!0,createLruCache=At=>{if(At<1)return{get:()=>{},set:()=>{}};let ot=0,ut=Object.create(null),pt=Object.create(null);const ft=(ht,yt)=>{ut[ht]=yt,ot++,ot>At&&(ot=0,pt=ut,ut=Object.create(null))};return{get(ht){let yt=ut[ht];if(yt!==void 0)return yt;if((yt=pt[ht])!==void 0)return ft(ht,yt),yt},set(ht,yt){ht in ut?ut[ht]=yt:ft(ht,yt)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",EMPTY_MODIFIERS=[],createResultObject=(At,ot,ut,pt,ft)=>({modifiers:At,hasImportantModifier:ot,baseClassName:ut,maybePostfixModifierPosition:pt,isExternal:ft}),createParseClassName=At=>{const{prefix:ot,experimentalParseClassName:ut}=At;let pt=ft=>{const ht=[];let yt=0,kt=0,Et=0,Ot;const _t=ft.length;for(let Pt=0;Pt<_t;Pt++){const Nt=ft[Pt];if(yt===0&&kt===0){if(Nt===MODIFIER_SEPARATOR){ht.push(ft.slice(Et,Pt)),Et=Pt+1;continue}if(Nt==="/"){Ot=Pt;continue}}Nt==="["?yt++:Nt==="]"?yt--:Nt==="("?kt++:Nt===")"&&kt--}const Qt=ht.length===0?ft:ft.slice(Et);let vt=Qt,St=!1;Qt.endsWith(IMPORTANT_MODIFIER)?(vt=Qt.slice(0,-1),St=!0):Qt.startsWith(IMPORTANT_MODIFIER)&&(vt=Qt.slice(1),St=!0);const $t=Ot&&Ot>Et?Ot-Et:void 0;return createResultObject(ht,St,vt,$t)};if(ot){const ft=ot+MODIFIER_SEPARATOR,ht=pt;pt=yt=>yt.startsWith(ft)?ht(yt.slice(ft.length)):createResultObject(EMPTY_MODIFIERS,!1,yt,void 0,!0)}if(ut){const ft=pt;pt=ht=>ut({className:ht,parseClassName:ft})}return pt},createSortModifiers=At=>{const ot=new Map;return At.orderSensitiveModifiers.forEach((ut,pt)=>{ot.set(ut,1e6+pt)}),ut=>{const pt=[];let ft=[];for(let ht=0;ht<ut.length;ht++){const yt=ut[ht],kt=yt[0]==="[",Et=ot.has(yt);kt||Et?(ft.length>0&&(ft.sort(),pt.push(...ft),ft=[]),pt.push(yt)):ft.push(yt)}return ft.length>0&&(ft.sort(),pt.push(...ft)),pt}},createConfigUtils=At=>({cache:createLruCache(At.cacheSize),parseClassName:createParseClassName(At),sortModifiers:createSortModifiers(At),...createClassGroupUtils(At)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(At,ot)=>{const{parseClassName:ut,getClassGroupId:pt,getConflictingClassGroupIds:ft,sortModifiers:ht}=ot,yt=[],kt=At.trim().split(SPLIT_CLASSES_REGEX);let Et="";for(let Ot=kt.length-1;Ot>=0;Ot-=1){const _t=kt[Ot],{isExternal:Qt,modifiers:vt,hasImportantModifier:St,baseClassName:$t,maybePostfixModifierPosition:Pt}=ut(_t);if(Qt){Et=_t+(Et.length>0?" "+Et:Et);continue}let Nt=!!Pt,Lt=pt(Nt?$t.substring(0,Pt):$t);if(!Lt){if(!Nt){Et=_t+(Et.length>0?" "+Et:Et);continue}if(Lt=pt($t),!Lt){Et=_t+(Et.length>0?" "+Et:Et);continue}Nt=!1}const qt=vt.length===0?"":vt.length===1?vt[0]:ht(vt).join(":"),jt=St?qt+IMPORTANT_MODIFIER:qt,Zt=jt+Lt;if(yt.indexOf(Zt)>-1)continue;yt.push(Zt);const Ht=ft(Lt,Nt);for(let Wt=0;Wt<Ht.length;++Wt){const wn=Ht[Wt];yt.push(jt+wn)}Et=_t+(Et.length>0?" "+Et:Et)}return Et},twJoin=(...At)=>{let ot=0,ut,pt,ft="";for(;ot<At.length;)(ut=At[ot++])&&(pt=toValue(ut))&&(ft&&(ft+=" "),ft+=pt);return ft},toValue=At=>{if(typeof At=="string")return At;let ot,ut="";for(let pt=0;pt<At.length;pt++)At[pt]&&(ot=toValue(At[pt]))&&(ut&&(ut+=" "),ut+=ot);return ut},createTailwindMerge=(At,...ot)=>{let ut,pt,ft,ht;const yt=Et=>{const Ot=ot.reduce((_t,Qt)=>Qt(_t),At());return ut=createConfigUtils(Ot),pt=ut.cache.get,ft=ut.cache.set,ht=kt,kt(Et)},kt=Et=>{const Ot=pt(Et);if(Ot)return Ot;const _t=mergeClassList(Et,ut);return ft(Et,_t),_t};return ht=yt,(...Et)=>ht(twJoin(...Et))},fallbackThemeArr=[],fromTheme=At=>{const ot=ut=>ut[At]||fallbackThemeArr;return ot.isThemeGetter=!0,ot},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=At=>fractionRegex.test(At),isNumber$4=At=>!!At&&!Number.isNaN(Number(At)),isInteger$1=At=>!!At&&Number.isInteger(Number(At)),isPercent=At=>At.endsWith("%")&&isNumber$4(At.slice(0,-1)),isTshirtSize=At=>tshirtUnitRegex.test(At),isAny=()=>!0,isLengthOnly=At=>lengthUnitRegex.test(At)&&!colorFunctionRegex.test(At),isNever=()=>!1,isShadow=At=>shadowRegex.test(At),isImage=At=>imageRegex.test(At),isAnyNonArbitrary=At=>!isArbitraryValue(At)&&!isArbitraryVariable(At),isArbitrarySize=At=>getIsArbitraryValue(At,isLabelSize,isNever),isArbitraryValue=At=>arbitraryValueRegex.test(At),isArbitraryLength=At=>getIsArbitraryValue(At,isLabelLength,isLengthOnly),isArbitraryNumber=At=>getIsArbitraryValue(At,isLabelNumber,isNumber$4),isArbitraryWeight=At=>getIsArbitraryValue(At,isLabelWeight,isAny),isArbitraryFamilyName=At=>getIsArbitraryValue(At,isLabelFamilyName,isNever),isArbitraryPosition=At=>getIsArbitraryValue(At,isLabelPosition,isNever),isArbitraryImage=At=>getIsArbitraryValue(At,isLabelImage,isImage),isArbitraryShadow=At=>getIsArbitraryValue(At,isLabelShadow,isShadow),isArbitraryVariable=At=>arbitraryVariableRegex.test(At),isArbitraryVariableLength=At=>getIsArbitraryVariable(At,isLabelLength),isArbitraryVariableFamilyName=At=>getIsArbitraryVariable(At,isLabelFamilyName),isArbitraryVariablePosition=At=>getIsArbitraryVariable(At,isLabelPosition),isArbitraryVariableSize=At=>getIsArbitraryVariable(At,isLabelSize),isArbitraryVariableImage=At=>getIsArbitraryVariable(At,isLabelImage),isArbitraryVariableShadow=At=>getIsArbitraryVariable(At,isLabelShadow,!0),isArbitraryVariableWeight=At=>getIsArbitraryVariable(At,isLabelWeight,!0),getIsArbitraryValue=(At,ot,ut)=>{const pt=arbitraryValueRegex.exec(At);return pt?pt[1]?ot(pt[1]):ut(pt[2]):!1},getIsArbitraryVariable=(At,ot,ut=!1)=>{const pt=arbitraryVariableRegex.exec(At);return pt?pt[1]?ot(pt[1]):ut:!1},isLabelPosition=At=>At==="position"||At==="percentage",isLabelImage=At=>At==="image"||At==="url",isLabelSize=At=>At==="length"||At==="size"||At==="bg-size",isLabelLength=At=>At==="length",isLabelNumber=At=>At==="number",isLabelFamilyName=At=>At==="family-name",isLabelWeight=At=>At==="number"||At==="weight",isLabelShadow=At=>At==="shadow",getDefaultConfig=()=>{const At=fromTheme("color"),ot=fromTheme("font"),ut=fromTheme("text"),pt=fromTheme("font-weight"),ft=fromTheme("tracking"),ht=fromTheme("leading"),yt=fromTheme("breakpoint"),kt=fromTheme("container"),Et=fromTheme("spacing"),Ot=fromTheme("radius"),_t=fromTheme("shadow"),Qt=fromTheme("inset-shadow"),vt=fromTheme("text-shadow"),St=fromTheme("drop-shadow"),$t=fromTheme("blur"),Pt=fromTheme("perspective"),Nt=fromTheme("aspect"),Lt=fromTheme("ease"),qt=fromTheme("animate"),jt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Zt=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Ht=()=>[...Zt(),isArbitraryVariable,isArbitraryValue],Wt=()=>["auto","hidden","clip","visible","scroll"],wn=()=>["auto","contain","none"],Qn=()=>[isArbitraryVariable,isArbitraryValue,Et],Jt=()=>[isFraction,"full","auto",...Qn()],Gn=()=>[isInteger$1,"none","subgrid",isArbitraryVariable,isArbitraryValue],Jn=()=>["auto",{span:["full",isInteger$1,isArbitraryVariable,isArbitraryValue]},isInteger$1,isArbitraryVariable,isArbitraryValue],Vn=()=>[isInteger$1,"auto",isArbitraryVariable,isArbitraryValue],Fn=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],Xn=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ar=()=>["start","end","center","stretch","center-safe","end-safe"],Yn=()=>["auto",...Qn()],lr=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Qn()],nr=()=>[isFraction,"screen","full","dvw","lvw","svw","min","max","fit",...Qn()],mr=()=>[isFraction,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Qn()],Zn=()=>[At,isArbitraryVariable,isArbitraryValue],ur=()=>[...Zt(),isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],yr=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ir=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],Cr=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],kr=()=>["","none","full",Ot,isArbitraryVariable,isArbitraryValue],Br=()=>["",isNumber$4,isArbitraryVariableLength,isArbitraryLength],Dr=()=>["solid","dashed","dotted","double"],Gr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],jr=()=>[isNumber$4,isPercent,isArbitraryVariablePosition,isArbitraryPosition],na=()=>["","none",$t,isArbitraryVariable,isArbitraryValue],ca=()=>["none",isNumber$4,isArbitraryVariable,isArbitraryValue],ma=()=>["none",isNumber$4,isArbitraryVariable,isArbitraryValue],pa=()=>[isNumber$4,isArbitraryVariable,isArbitraryValue],ba=()=>[isFraction,"full",...Qn()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber$4],text:[isTshirtSize],"text-shadow":[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,Nt]}],container:["container"],columns:[{columns:[isNumber$4,isArbitraryValue,isArbitraryVariable,kt]}],"break-after":[{"break-after":jt()}],"break-before":[{"break-before":jt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Ht()}],overflow:[{overflow:Wt()}],"overflow-x":[{"overflow-x":Wt()}],"overflow-y":[{"overflow-y":Wt()}],overscroll:[{overscroll:wn()}],"overscroll-x":[{"overscroll-x":wn()}],"overscroll-y":[{"overscroll-y":wn()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Jt()}],"inset-x":[{"inset-x":Jt()}],"inset-y":[{"inset-y":Jt()}],start:[{"inset-s":Jt(),start:Jt()}],end:[{"inset-e":Jt(),end:Jt()}],"inset-bs":[{"inset-bs":Jt()}],"inset-be":[{"inset-be":Jt()}],top:[{top:Jt()}],right:[{right:Jt()}],bottom:[{bottom:Jt()}],left:[{left:Jt()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger$1,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",kt,...Qn()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber$4,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger$1,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":Gn()}],"col-start-end":[{col:Jn()}],"col-start":[{"col-start":Vn()}],"col-end":[{"col-end":Vn()}],"grid-rows":[{"grid-rows":Gn()}],"row-start-end":[{row:Jn()}],"row-start":[{"row-start":Vn()}],"row-end":[{"row-end":Vn()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Fn()}],"auto-rows":[{"auto-rows":Fn()}],gap:[{gap:Qn()}],"gap-x":[{"gap-x":Qn()}],"gap-y":[{"gap-y":Qn()}],"justify-content":[{justify:[...Xn(),"normal"]}],"justify-items":[{"justify-items":[...Ar(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ar()]}],"align-content":[{content:["normal",...Xn()]}],"align-items":[{items:[...Ar(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ar(),{baseline:["","last"]}]}],"place-content":[{"place-content":Xn()}],"place-items":[{"place-items":[...Ar(),"baseline"]}],"place-self":[{"place-self":["auto",...Ar()]}],p:[{p:Qn()}],px:[{px:Qn()}],py:[{py:Qn()}],ps:[{ps:Qn()}],pe:[{pe:Qn()}],pbs:[{pbs:Qn()}],pbe:[{pbe:Qn()}],pt:[{pt:Qn()}],pr:[{pr:Qn()}],pb:[{pb:Qn()}],pl:[{pl:Qn()}],m:[{m:Yn()}],mx:[{mx:Yn()}],my:[{my:Yn()}],ms:[{ms:Yn()}],me:[{me:Yn()}],mbs:[{mbs:Yn()}],mbe:[{mbe:Yn()}],mt:[{mt:Yn()}],mr:[{mr:Yn()}],mb:[{mb:Yn()}],ml:[{ml:Yn()}],"space-x":[{"space-x":Qn()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Qn()}],"space-y-reverse":["space-y-reverse"],size:[{size:lr()}],"inline-size":[{inline:["auto",...nr()]}],"min-inline-size":[{"min-inline":["auto",...nr()]}],"max-inline-size":[{"max-inline":["none",...nr()]}],"block-size":[{block:["auto",...mr()]}],"min-block-size":[{"min-block":["auto",...mr()]}],"max-block-size":[{"max-block":["none",...mr()]}],w:[{w:[kt,"screen",...lr()]}],"min-w":[{"min-w":[kt,"screen","none",...lr()]}],"max-w":[{"max-w":[kt,"screen","none","prose",{screen:[yt]},...lr()]}],h:[{h:["screen","lh",...lr()]}],"min-h":[{"min-h":["screen","lh","none",...lr()]}],"max-h":[{"max-h":["screen","lh",...lr()]}],"font-size":[{text:["base",ut,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[pt,isArbitraryVariableWeight,isArbitraryWeight]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryFamilyName,ot]}],"font-features":[{"font-features":[isArbitraryValue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[ft,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber$4,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[ht,...Qn()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Zn()}],"text-color":[{text:Zn()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Dr(),"wavy"]}],"text-decoration-thickness":[{decoration:[isNumber$4,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:Zn()}],"underline-offset":[{"underline-offset":[isNumber$4,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Qn()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ur()}],"bg-repeat":[{bg:yr()}],"bg-size":[{bg:ir()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger$1,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger$1,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:Zn()}],"gradient-from-pos":[{from:Cr()}],"gradient-via-pos":[{via:Cr()}],"gradient-to-pos":[{to:Cr()}],"gradient-from":[{from:Zn()}],"gradient-via":[{via:Zn()}],"gradient-to":[{to:Zn()}],rounded:[{rounded:kr()}],"rounded-s":[{"rounded-s":kr()}],"rounded-e":[{"rounded-e":kr()}],"rounded-t":[{"rounded-t":kr()}],"rounded-r":[{"rounded-r":kr()}],"rounded-b":[{"rounded-b":kr()}],"rounded-l":[{"rounded-l":kr()}],"rounded-ss":[{"rounded-ss":kr()}],"rounded-se":[{"rounded-se":kr()}],"rounded-ee":[{"rounded-ee":kr()}],"rounded-es":[{"rounded-es":kr()}],"rounded-tl":[{"rounded-tl":kr()}],"rounded-tr":[{"rounded-tr":kr()}],"rounded-br":[{"rounded-br":kr()}],"rounded-bl":[{"rounded-bl":kr()}],"border-w":[{border:Br()}],"border-w-x":[{"border-x":Br()}],"border-w-y":[{"border-y":Br()}],"border-w-s":[{"border-s":Br()}],"border-w-e":[{"border-e":Br()}],"border-w-bs":[{"border-bs":Br()}],"border-w-be":[{"border-be":Br()}],"border-w-t":[{"border-t":Br()}],"border-w-r":[{"border-r":Br()}],"border-w-b":[{"border-b":Br()}],"border-w-l":[{"border-l":Br()}],"divide-x":[{"divide-x":Br()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Br()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Dr(),"hidden","none"]}],"divide-style":[{divide:[...Dr(),"hidden","none"]}],"border-color":[{border:Zn()}],"border-color-x":[{"border-x":Zn()}],"border-color-y":[{"border-y":Zn()}],"border-color-s":[{"border-s":Zn()}],"border-color-e":[{"border-e":Zn()}],"border-color-bs":[{"border-bs":Zn()}],"border-color-be":[{"border-be":Zn()}],"border-color-t":[{"border-t":Zn()}],"border-color-r":[{"border-r":Zn()}],"border-color-b":[{"border-b":Zn()}],"border-color-l":[{"border-l":Zn()}],"divide-color":[{divide:Zn()}],"outline-style":[{outline:[...Dr(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber$4,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:Zn()}],shadow:[{shadow:["","none",_t,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:Zn()}],"inset-shadow":[{"inset-shadow":["none",Qt,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":Zn()}],"ring-w":[{ring:Br()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Zn()}],"ring-offset-w":[{"ring-offset":[isNumber$4,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":Zn()}],"inset-ring-w":[{"inset-ring":Br()}],"inset-ring-color":[{"inset-ring":Zn()}],"text-shadow":[{"text-shadow":["none",vt,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":Zn()}],opacity:[{opacity:[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":[...Gr(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Gr()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[isNumber$4]}],"mask-image-linear-from-pos":[{"mask-linear-from":jr()}],"mask-image-linear-to-pos":[{"mask-linear-to":jr()}],"mask-image-linear-from-color":[{"mask-linear-from":Zn()}],"mask-image-linear-to-color":[{"mask-linear-to":Zn()}],"mask-image-t-from-pos":[{"mask-t-from":jr()}],"mask-image-t-to-pos":[{"mask-t-to":jr()}],"mask-image-t-from-color":[{"mask-t-from":Zn()}],"mask-image-t-to-color":[{"mask-t-to":Zn()}],"mask-image-r-from-pos":[{"mask-r-from":jr()}],"mask-image-r-to-pos":[{"mask-r-to":jr()}],"mask-image-r-from-color":[{"mask-r-from":Zn()}],"mask-image-r-to-color":[{"mask-r-to":Zn()}],"mask-image-b-from-pos":[{"mask-b-from":jr()}],"mask-image-b-to-pos":[{"mask-b-to":jr()}],"mask-image-b-from-color":[{"mask-b-from":Zn()}],"mask-image-b-to-color":[{"mask-b-to":Zn()}],"mask-image-l-from-pos":[{"mask-l-from":jr()}],"mask-image-l-to-pos":[{"mask-l-to":jr()}],"mask-image-l-from-color":[{"mask-l-from":Zn()}],"mask-image-l-to-color":[{"mask-l-to":Zn()}],"mask-image-x-from-pos":[{"mask-x-from":jr()}],"mask-image-x-to-pos":[{"mask-x-to":jr()}],"mask-image-x-from-color":[{"mask-x-from":Zn()}],"mask-image-x-to-color":[{"mask-x-to":Zn()}],"mask-image-y-from-pos":[{"mask-y-from":jr()}],"mask-image-y-to-pos":[{"mask-y-to":jr()}],"mask-image-y-from-color":[{"mask-y-from":Zn()}],"mask-image-y-to-color":[{"mask-y-to":Zn()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":jr()}],"mask-image-radial-to-pos":[{"mask-radial-to":jr()}],"mask-image-radial-from-color":[{"mask-radial-from":Zn()}],"mask-image-radial-to-color":[{"mask-radial-to":Zn()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Zt()}],"mask-image-conic-pos":[{"mask-conic":[isNumber$4]}],"mask-image-conic-from-pos":[{"mask-conic-from":jr()}],"mask-image-conic-to-pos":[{"mask-conic-to":jr()}],"mask-image-conic-from-color":[{"mask-conic-from":Zn()}],"mask-image-conic-to-color":[{"mask-conic-to":Zn()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ur()}],"mask-repeat":[{mask:yr()}],"mask-size":[{mask:ir()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",isArbitraryVariable,isArbitraryValue]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:na()}],brightness:[{brightness:[isNumber$4,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",St,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":Zn()}],grayscale:[{grayscale:["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber$4,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":na()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber$4,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber$4,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Qn()}],"border-spacing-x":[{"border-spacing-x":Qn()}],"border-spacing-y":[{"border-spacing-y":Qn()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber$4,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",Lt,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber$4,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",qt,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[Pt,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":Ht()}],rotate:[{rotate:ca()}],"rotate-x":[{"rotate-x":ca()}],"rotate-y":[{"rotate-y":ca()}],"rotate-z":[{"rotate-z":ca()}],scale:[{scale:ma()}],"scale-x":[{"scale-x":ma()}],"scale-y":[{"scale-y":ma()}],"scale-z":[{"scale-z":ma()}],"scale-3d":["scale-3d"],skew:[{skew:pa()}],"skew-x":[{"skew-x":pa()}],"skew-y":[{"skew-y":pa()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:Ht()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ba()}],"translate-x":[{"translate-x":ba()}],"translate-y":[{"translate-y":ba()}],"translate-z":[{"translate-z":ba()}],"translate-none":["translate-none"],accent:[{accent:Zn()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Zn()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Qn()}],"scroll-mx":[{"scroll-mx":Qn()}],"scroll-my":[{"scroll-my":Qn()}],"scroll-ms":[{"scroll-ms":Qn()}],"scroll-me":[{"scroll-me":Qn()}],"scroll-mbs":[{"scroll-mbs":Qn()}],"scroll-mbe":[{"scroll-mbe":Qn()}],"scroll-mt":[{"scroll-mt":Qn()}],"scroll-mr":[{"scroll-mr":Qn()}],"scroll-mb":[{"scroll-mb":Qn()}],"scroll-ml":[{"scroll-ml":Qn()}],"scroll-p":[{"scroll-p":Qn()}],"scroll-px":[{"scroll-px":Qn()}],"scroll-py":[{"scroll-py":Qn()}],"scroll-ps":[{"scroll-ps":Qn()}],"scroll-pe":[{"scroll-pe":Qn()}],"scroll-pbs":[{"scroll-pbs":Qn()}],"scroll-pbe":[{"scroll-pbe":Qn()}],"scroll-pt":[{"scroll-pt":Qn()}],"scroll-pr":[{"scroll-pr":Qn()}],"scroll-pb":[{"scroll-pb":Qn()}],"scroll-pl":[{"scroll-pl":Qn()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...Zn()]}],"stroke-w":[{stroke:[isNumber$4,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...Zn()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},twMerge=createTailwindMerge(getDefaultConfig);function isArray(At){return Array.isArray?Array.isArray(At):getTag(At)==="[object Array]"}function baseToString(At){if(typeof At=="string")return At;let ot=At+"";return ot=="0"&&1/At==-1/0?"-0":ot}function toString$2(At){return At==null?"":baseToString(At)}function isString(At){return typeof At=="string"}function isNumber$3(At){return typeof At=="number"}function isBoolean(At){return At===!0||At===!1||isObjectLike(At)&&getTag(At)=="[object Boolean]"}function isObject(At){return typeof At=="object"}function isObjectLike(At){return isObject(At)&&At!==null}function isDefined(At){return At!=null}function isBlank(At){return!At.trim().length}function getTag(At){return At==null?At===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(At)}const INCORRECT_INDEX_TYPE="Incorrect 'index' type",LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY=At=>`Invalid value for key ${At}`,PATTERN_LENGTH_TOO_LARGE=At=>`Pattern length exceeds max of ${At}.`,MISSING_KEY_PROPERTY=At=>`Missing ${At} property in key`,INVALID_KEY_WEIGHT_VALUE=At=>`Property 'weight' in key '${At}' must be a positive integer`,hasOwn=Object.prototype.hasOwnProperty;class KeyStore{constructor(ot){this._keys=[],this._keyMap={};let ut=0;ot.forEach(pt=>{let ft=createKey(pt);this._keys.push(ft),this._keyMap[ft.id]=ft,ut+=ft.weight}),this._keys.forEach(pt=>{pt.weight/=ut})}get(ot){return this._keyMap[ot]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function createKey(At){let ot=null,ut=null,pt=null,ft=1,ht=null;if(isString(At)||isArray(At))pt=At,ot=createKeyPath(At),ut=createKeyId(At);else{if(!hasOwn.call(At,"name"))throw new Error(MISSING_KEY_PROPERTY("name"));const yt=At.name;if(pt=yt,hasOwn.call(At,"weight")&&(ft=At.weight,ft<=0))throw new Error(INVALID_KEY_WEIGHT_VALUE(yt));ot=createKeyPath(yt),ut=createKeyId(yt),ht=At.getFn}return{path:ot,id:ut,weight:ft,src:pt,getFn:ht}}function createKeyPath(At){return isArray(At)?At:At.split(".")}function createKeyId(At){return isArray(At)?At.join("."):At}function get$1(At,ot){let ut=[],pt=!1;const ft=(ht,yt,kt)=>{if(isDefined(ht))if(!yt[kt])ut.push(ht);else{let Et=yt[kt];const Ot=ht[Et];if(!isDefined(Ot))return;if(kt===yt.length-1&&(isString(Ot)||isNumber$3(Ot)||isBoolean(Ot)))ut.push(toString$2(Ot));else if(isArray(Ot)){pt=!0;for(let _t=0,Qt=Ot.length;_t<Qt;_t+=1)ft(Ot[_t],yt,kt+1)}else yt.length&&ft(Ot,yt,kt+1)}};return ft(At,isString(ot)?ot.split("."):ot,0),pt?ut:ut[0]}const MatchOptions={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},BasicOptions={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(At,ot)=>At.score===ot.score?At.idx<ot.idx?-1:1:At.score<ot.score?-1:1},FuzzyOptions={location:0,threshold:.6,distance:100},AdvancedOptions={useExtendedSearch:!1,getFn:get$1,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Config$1={...BasicOptions,...MatchOptions,...FuzzyOptions,...AdvancedOptions};const SPACE=/[^ ]+/g;function norm(At=1,ot=3){const ut=new Map,pt=Math.pow(10,ot);return{get(ft){const ht=ft.match(SPACE).length;if(ut.has(ht))return ut.get(ht);const yt=1/Math.pow(ht,.5*At),kt=parseFloat(Math.round(yt*pt)/pt);return ut.set(ht,kt),kt},clear(){ut.clear()}}}class FuseIndex{constructor({getFn:ot=Config$1.getFn,fieldNormWeight:ut=Config$1.fieldNormWeight}={}){this.norm=norm(ut,3),this.getFn=ot,this.isCreated=!1,this.setIndexRecords()}setSources(ot=[]){this.docs=ot}setIndexRecords(ot=[]){this.records=ot}setKeys(ot=[]){this.keys=ot,this._keysMap={},ot.forEach((ut,pt)=>{this._keysMap[ut.id]=pt})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,isString(this.docs[0])?this.docs.forEach((ot,ut)=>{this._addString(ot,ut)}):this.docs.forEach((ot,ut)=>{this._addObject(ot,ut)}),this.norm.clear())}add(ot){const ut=this.size();isString(ot)?this._addString(ot,ut):this._addObject(ot,ut)}removeAt(ot){this.records.splice(ot,1);for(let ut=ot,pt=this.size();ut<pt;ut+=1)this.records[ut].i-=1}getValueForItemAtKeyId(ot,ut){return ot[this._keysMap[ut]]}size(){return this.records.length}_addString(ot,ut){if(!isDefined(ot)||isBlank(ot))return;let pt={v:ot,i:ut,n:this.norm.get(ot)};this.records.push(pt)}_addObject(ot,ut){let pt={i:ut,$:{}};this.keys.forEach((ft,ht)=>{let yt=ft.getFn?ft.getFn(ot):this.getFn(ot,ft.path);if(isDefined(yt)){if(isArray(yt)){let kt=[];const Et=[{nestedArrIndex:-1,value:yt}];for(;Et.length;){const{nestedArrIndex:Ot,value:_t}=Et.pop();if(isDefined(_t))if(isString(_t)&&!isBlank(_t)){let Qt={v:_t,i:Ot,n:this.norm.get(_t)};kt.push(Qt)}else isArray(_t)&&_t.forEach((Qt,vt)=>{Et.push({nestedArrIndex:vt,value:Qt})})}pt.$[ht]=kt}else if(isString(yt)&&!isBlank(yt)){let kt={v:yt,n:this.norm.get(yt)};pt.$[ht]=kt}}}),this.records.push(pt)}toJSON(){return{keys:this.keys,records:this.records}}}function createIndex(At,ot,{getFn:ut=Config$1.getFn,fieldNormWeight:pt=Config$1.fieldNormWeight}={}){const ft=new FuseIndex({getFn:ut,fieldNormWeight:pt});return ft.setKeys(At.map(createKey)),ft.setSources(ot),ft.create(),ft}function parseIndex(At,{getFn:ot=Config$1.getFn,fieldNormWeight:ut=Config$1.fieldNormWeight}={}){const{keys:pt,records:ft}=At,ht=new FuseIndex({getFn:ot,fieldNormWeight:ut});return ht.setKeys(pt),ht.setIndexRecords(ft),ht}function computeScore$1(At,{errors:ot=0,currentLocation:ut=0,expectedLocation:pt=0,distance:ft=Config$1.distance,ignoreLocation:ht=Config$1.ignoreLocation}={}){const yt=ot/At.length;if(ht)return yt;const kt=Math.abs(pt-ut);return ft?yt+kt/ft:kt?1:yt}function convertMaskToIndices(At=[],ot=Config$1.minMatchCharLength){let ut=[],pt=-1,ft=-1,ht=0;for(let yt=At.length;ht<yt;ht+=1){let kt=At[ht];kt&&pt===-1?pt=ht:!kt&&pt!==-1&&(ft=ht-1,ft-pt+1>=ot&&ut.push([pt,ft]),pt=-1)}return At[ht-1]&&ht-pt>=ot&&ut.push([pt,ht-1]),ut}const MAX_BITS=32;function search$3(At,ot,ut,{location:pt=Config$1.location,distance:ft=Config$1.distance,threshold:ht=Config$1.threshold,findAllMatches:yt=Config$1.findAllMatches,minMatchCharLength:kt=Config$1.minMatchCharLength,includeMatches:Et=Config$1.includeMatches,ignoreLocation:Ot=Config$1.ignoreLocation}={}){if(ot.length>MAX_BITS)throw new Error(PATTERN_LENGTH_TOO_LARGE(MAX_BITS));const _t=ot.length,Qt=At.length,vt=Math.max(0,Math.min(pt,Qt));let St=ht,$t=vt;const Pt=kt>1||Et,Nt=Pt?Array(Qt):[];let Lt;for(;(Lt=At.indexOf(ot,$t))>-1;){let wn=computeScore$1(ot,{currentLocation:Lt,expectedLocation:vt,distance:ft,ignoreLocation:Ot});if(St=Math.min(wn,St),$t=Lt+_t,Pt){let Qn=0;for(;Qn<_t;)Nt[Lt+Qn]=1,Qn+=1}}$t=-1;let qt=[],jt=1,Zt=_t+Qt;const Ht=1<<_t-1;for(let wn=0;wn<_t;wn+=1){let Qn=0,Jt=Zt;for(;Qn<Jt;)computeScore$1(ot,{errors:wn,currentLocation:vt+Jt,expectedLocation:vt,distance:ft,ignoreLocation:Ot})<=St?Qn=Jt:Zt=Jt,Jt=Math.floor((Zt-Qn)/2+Qn);Zt=Jt;let Gn=Math.max(1,vt-Jt+1),Jn=yt?Qt:Math.min(vt+Jt,Qt)+_t,Vn=Array(Jn+2);Vn[Jn+1]=(1<<wn)-1;for(let Xn=Jn;Xn>=Gn;Xn-=1){let Ar=Xn-1,Yn=ut[At.charAt(Ar)];if(Pt&&(Nt[Ar]=+!!Yn),Vn[Xn]=(Vn[Xn+1]<<1|1)&Yn,wn&&(Vn[Xn]|=(qt[Xn+1]|qt[Xn])<<1|1|qt[Xn+1]),Vn[Xn]&Ht&&(jt=computeScore$1(ot,{errors:wn,currentLocation:Ar,expectedLocation:vt,distance:ft,ignoreLocation:Ot}),jt<=St)){if(St=jt,$t=Ar,$t<=vt)break;Gn=Math.max(1,2*vt-$t)}}if(computeScore$1(ot,{errors:wn+1,currentLocation:vt,expectedLocation:vt,distance:ft,ignoreLocation:Ot})>St)break;qt=Vn}const Wt={isMatch:$t>=0,score:Math.max(.001,jt)};if(Pt){const wn=convertMaskToIndices(Nt,kt);wn.length?Et&&(Wt.indices=wn):Wt.isMatch=!1}return Wt}function createPatternAlphabet(At){let ot={};for(let ut=0,pt=At.length;ut<pt;ut+=1){const ft=At.charAt(ut);ot[ft]=(ot[ft]||0)|1<<pt-ut-1}return ot}const stripDiacritics=String.prototype.normalize?(At=>At.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(At=>At);class BitapSearch{constructor(ot,{location:ut=Config$1.location,threshold:pt=Config$1.threshold,distance:ft=Config$1.distance,includeMatches:ht=Config$1.includeMatches,findAllMatches:yt=Config$1.findAllMatches,minMatchCharLength:kt=Config$1.minMatchCharLength,isCaseSensitive:Et=Config$1.isCaseSensitive,ignoreDiacritics:Ot=Config$1.ignoreDiacritics,ignoreLocation:_t=Config$1.ignoreLocation}={}){if(this.options={location:ut,threshold:pt,distance:ft,includeMatches:ht,findAllMatches:yt,minMatchCharLength:kt,isCaseSensitive:Et,ignoreDiacritics:Ot,ignoreLocation:_t},ot=Et?ot:ot.toLowerCase(),ot=Ot?stripDiacritics(ot):ot,this.pattern=ot,this.chunks=[],!this.pattern.length)return;const Qt=(St,$t)=>{this.chunks.push({pattern:St,alphabet:createPatternAlphabet(St),startIndex:$t})},vt=this.pattern.length;if(vt>MAX_BITS){let St=0;const $t=vt%MAX_BITS,Pt=vt-$t;for(;St<Pt;)Qt(this.pattern.substr(St,MAX_BITS),St),St+=MAX_BITS;if($t){const Nt=vt-MAX_BITS;Qt(this.pattern.substr(Nt),Nt)}}else Qt(this.pattern,0)}searchIn(ot){const{isCaseSensitive:ut,ignoreDiacritics:pt,includeMatches:ft}=this.options;if(ot=ut?ot:ot.toLowerCase(),ot=pt?stripDiacritics(ot):ot,this.pattern===ot){let Pt={isMatch:!0,score:0};return ft&&(Pt.indices=[[0,ot.length-1]]),Pt}const{location:ht,distance:yt,threshold:kt,findAllMatches:Et,minMatchCharLength:Ot,ignoreLocation:_t}=this.options;let Qt=[],vt=0,St=!1;this.chunks.forEach(({pattern:Pt,alphabet:Nt,startIndex:Lt})=>{const{isMatch:qt,score:jt,indices:Zt}=search$3(ot,Pt,Nt,{location:ht+Lt,distance:yt,threshold:kt,findAllMatches:Et,minMatchCharLength:Ot,includeMatches:ft,ignoreLocation:_t});qt&&(St=!0),vt+=jt,qt&&Zt&&(Qt=[...Qt,...Zt])});let $t={isMatch:St,score:St?vt/this.chunks.length:1};return St&&ft&&($t.indices=Qt),$t}}class BaseMatch{constructor(ot){this.pattern=ot}static isMultiMatch(ot){return getMatch(ot,this.multiRegex)}static isSingleMatch(ot){return getMatch(ot,this.singleRegex)}search(){}}function getMatch(At,ot){const ut=At.match(ot);return ut?ut[1]:null}class ExactMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(ot){const ut=ot===this.pattern;return{isMatch:ut,score:ut?0:1,indices:[0,this.pattern.length-1]}}}class InverseExactMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(ot){const pt=ot.indexOf(this.pattern)===-1;return{isMatch:pt,score:pt?0:1,indices:[0,ot.length-1]}}}class PrefixExactMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(ot){const ut=ot.startsWith(this.pattern);return{isMatch:ut,score:ut?0:1,indices:[0,this.pattern.length-1]}}}class InversePrefixExactMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(ot){const ut=!ot.startsWith(this.pattern);return{isMatch:ut,score:ut?0:1,indices:[0,ot.length-1]}}}class SuffixExactMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(ot){const ut=ot.endsWith(this.pattern);return{isMatch:ut,score:ut?0:1,indices:[ot.length-this.pattern.length,ot.length-1]}}}class InverseSuffixExactMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(ot){const ut=!ot.endsWith(this.pattern);return{isMatch:ut,score:ut?0:1,indices:[0,ot.length-1]}}}class FuzzyMatch extends BaseMatch{constructor(ot,{location:ut=Config$1.location,threshold:pt=Config$1.threshold,distance:ft=Config$1.distance,includeMatches:ht=Config$1.includeMatches,findAllMatches:yt=Config$1.findAllMatches,minMatchCharLength:kt=Config$1.minMatchCharLength,isCaseSensitive:Et=Config$1.isCaseSensitive,ignoreDiacritics:Ot=Config$1.ignoreDiacritics,ignoreLocation:_t=Config$1.ignoreLocation}={}){super(ot),this._bitapSearch=new BitapSearch(ot,{location:ut,threshold:pt,distance:ft,includeMatches:ht,findAllMatches:yt,minMatchCharLength:kt,isCaseSensitive:Et,ignoreDiacritics:Ot,ignoreLocation:_t})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(ot){return this._bitapSearch.searchIn(ot)}}class IncludeMatch extends BaseMatch{constructor(ot){super(ot)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(ot){let ut=0,pt;const ft=[],ht=this.pattern.length;for(;(pt=ot.indexOf(this.pattern,ut))>-1;)ut=pt+ht,ft.push([pt,ut-1]);const yt=!!ft.length;return{isMatch:yt,score:yt?0:1,indices:ft}}}const searchers=[ExactMatch,IncludeMatch,PrefixExactMatch,InversePrefixExactMatch,InverseSuffixExactMatch,SuffixExactMatch,InverseExactMatch,FuzzyMatch],searchersLen=searchers.length,SPACE_RE=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,OR_TOKEN="|";function parseQuery(At,ot={}){return At.split(OR_TOKEN).map(ut=>{let pt=ut.trim().split(SPACE_RE).filter(ht=>ht&&!!ht.trim()),ft=[];for(let ht=0,yt=pt.length;ht<yt;ht+=1){const kt=pt[ht];let Et=!1,Ot=-1;for(;!Et&&++Ot<searchersLen;){const _t=searchers[Ot];let Qt=_t.isMultiMatch(kt);Qt&&(ft.push(new _t(Qt,ot)),Et=!0)}if(!Et)for(Ot=-1;++Ot<searchersLen;){const _t=searchers[Ot];let Qt=_t.isSingleMatch(kt);if(Qt){ft.push(new _t(Qt,ot));break}}}return ft})}const MultiMatchSet=new Set([FuzzyMatch.type,IncludeMatch.type]);class ExtendedSearch{constructor(ot,{isCaseSensitive:ut=Config$1.isCaseSensitive,ignoreDiacritics:pt=Config$1.ignoreDiacritics,includeMatches:ft=Config$1.includeMatches,minMatchCharLength:ht=Config$1.minMatchCharLength,ignoreLocation:yt=Config$1.ignoreLocation,findAllMatches:kt=Config$1.findAllMatches,location:Et=Config$1.location,threshold:Ot=Config$1.threshold,distance:_t=Config$1.distance}={}){this.query=null,this.options={isCaseSensitive:ut,ignoreDiacritics:pt,includeMatches:ft,minMatchCharLength:ht,findAllMatches:kt,ignoreLocation:yt,location:Et,threshold:Ot,distance:_t},ot=ut?ot:ot.toLowerCase(),ot=pt?stripDiacritics(ot):ot,this.pattern=ot,this.query=parseQuery(this.pattern,this.options)}static condition(ot,ut){return ut.useExtendedSearch}searchIn(ot){const ut=this.query;if(!ut)return{isMatch:!1,score:1};const{includeMatches:pt,isCaseSensitive:ft,ignoreDiacritics:ht}=this.options;ot=ft?ot:ot.toLowerCase(),ot=ht?stripDiacritics(ot):ot;let yt=0,kt=[],Et=0;for(let Ot=0,_t=ut.length;Ot<_t;Ot+=1){const Qt=ut[Ot];kt.length=0,yt=0;for(let vt=0,St=Qt.length;vt<St;vt+=1){const $t=Qt[vt],{isMatch:Pt,indices:Nt,score:Lt}=$t.search(ot);if(Pt){if(yt+=1,Et+=Lt,pt){const qt=$t.constructor.type;MultiMatchSet.has(qt)?kt=[...kt,...Nt]:kt.push(Nt)}}else{Et=0,yt=0,kt.length=0;break}}if(yt){let vt={isMatch:!0,score:Et/yt};return pt&&(vt.indices=kt),vt}}return{isMatch:!1,score:1}}}const registeredSearchers=[];function register$1(...At){registeredSearchers.push(...At)}function createSearcher(At,ot){for(let ut=0,pt=registeredSearchers.length;ut<pt;ut+=1){let ft=registeredSearchers[ut];if(ft.condition(At,ot))return new ft(At,ot)}return new BitapSearch(At,ot)}const LogicalOperator={AND:"$and",OR:"$or"},KeyType={PATH:"$path",PATTERN:"$val"},isExpression=At=>!!(At[LogicalOperator.AND]||At[LogicalOperator.OR]),isPath=At=>!!At[KeyType.PATH],isLeaf=At=>!isArray(At)&&isObject(At)&&!isExpression(At),convertToExplicit=At=>({[LogicalOperator.AND]:Object.keys(At).map(ot=>({[ot]:At[ot]}))});function parse$5(At,ot,{auto:ut=!0}={}){const pt=ft=>{let ht=Object.keys(ft);const yt=isPath(ft);if(!yt&&ht.length>1&&!isExpression(ft))return pt(convertToExplicit(ft));if(isLeaf(ft)){const Et=yt?ft[KeyType.PATH]:ht[0],Ot=yt?ft[KeyType.PATTERN]:ft[Et];if(!isString(Ot))throw new Error(LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY(Et));const _t={keyId:createKeyId(Et),pattern:Ot};return ut&&(_t.searcher=createSearcher(Ot,ot)),_t}let kt={children:[],operator:ht[0]};return ht.forEach(Et=>{const Ot=ft[Et];isArray(Ot)&&Ot.forEach(_t=>{kt.children.push(pt(_t))})}),kt};return isExpression(At)||(At=convertToExplicit(At)),pt(At)}function computeScore(At,{ignoreFieldNorm:ot=Config$1.ignoreFieldNorm}){At.forEach(ut=>{let pt=1;ut.matches.forEach(({key:ft,norm:ht,score:yt})=>{const kt=ft?ft.weight:null;pt*=Math.pow(yt===0&&kt?Number.EPSILON:yt,(kt||1)*(ot?1:ht))}),ut.score=pt})}function transformMatches(At,ot){const ut=At.matches;ot.matches=[],isDefined(ut)&&ut.forEach(pt=>{if(!isDefined(pt.indices)||!pt.indices.length)return;const{indices:ft,value:ht}=pt;let yt={indices:ft,value:ht};pt.key&&(yt.key=pt.key.src),pt.idx>-1&&(yt.refIndex=pt.idx),ot.matches.push(yt)})}function transformScore(At,ot){ot.score=At.score}function format(At,ot,{includeMatches:ut=Config$1.includeMatches,includeScore:pt=Config$1.includeScore}={}){const ft=[];return ut&&ft.push(transformMatches),pt&&ft.push(transformScore),At.map(ht=>{const{idx:yt}=ht,kt={item:ot[yt],refIndex:yt};return ft.length&&ft.forEach(Et=>{Et(ht,kt)}),kt})}class Fuse{constructor(ot,ut={},pt){this.options={...Config$1,...ut},this.options.useExtendedSearch,this._keyStore=new KeyStore(this.options.keys),this.setCollection(ot,pt)}setCollection(ot,ut){if(this._docs=ot,ut&&!(ut instanceof FuseIndex))throw new Error(INCORRECT_INDEX_TYPE);this._myIndex=ut||createIndex(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(ot){isDefined(ot)&&(this._docs.push(ot),this._myIndex.add(ot))}remove(ot=()=>!1){const ut=[];for(let pt=0,ft=this._docs.length;pt<ft;pt+=1){const ht=this._docs[pt];ot(ht,pt)&&(this.removeAt(pt),pt-=1,ft-=1,ut.push(ht))}return ut}removeAt(ot){this._docs.splice(ot,1),this._myIndex.removeAt(ot)}getIndex(){return this._myIndex}search(ot,{limit:ut=-1}={}){const{includeMatches:pt,includeScore:ft,shouldSort:ht,sortFn:yt,ignoreFieldNorm:kt}=this.options;let Et=isString(ot)?isString(this._docs[0])?this._searchStringList(ot):this._searchObjectList(ot):this._searchLogical(ot);return computeScore(Et,{ignoreFieldNorm:kt}),ht&&Et.sort(yt),isNumber$3(ut)&&ut>-1&&(Et=Et.slice(0,ut)),format(Et,this._docs,{includeMatches:pt,includeScore:ft})}_searchStringList(ot){const ut=createSearcher(ot,this.options),{records:pt}=this._myIndex,ft=[];return pt.forEach(({v:ht,i:yt,n:kt})=>{if(!isDefined(ht))return;const{isMatch:Et,score:Ot,indices:_t}=ut.searchIn(ht);Et&&ft.push({item:ht,idx:yt,matches:[{score:Ot,value:ht,norm:kt,indices:_t}]})}),ft}_searchLogical(ot){const ut=parse$5(ot,this.options),pt=(kt,Et,Ot)=>{if(!kt.children){const{keyId:Qt,searcher:vt}=kt,St=this._findMatches({key:this._keyStore.get(Qt),value:this._myIndex.getValueForItemAtKeyId(Et,Qt),searcher:vt});return St&&St.length?[{idx:Ot,item:Et,matches:St}]:[]}const _t=[];for(let Qt=0,vt=kt.children.length;Qt<vt;Qt+=1){const St=kt.children[Qt],$t=pt(St,Et,Ot);if($t.length)_t.push(...$t);else if(kt.operator===LogicalOperator.AND)return[]}return _t},ft=this._myIndex.records,ht={},yt=[];return ft.forEach(({$:kt,i:Et})=>{if(isDefined(kt)){let Ot=pt(ut,kt,Et);Ot.length&&(ht[Et]||(ht[Et]={idx:Et,item:kt,matches:[]},yt.push(ht[Et])),Ot.forEach(({matches:_t})=>{ht[Et].matches.push(..._t)}))}}),yt}_searchObjectList(ot){const ut=createSearcher(ot,this.options),{keys:pt,records:ft}=this._myIndex,ht=[];return ft.forEach(({$:yt,i:kt})=>{if(!isDefined(yt))return;let Et=[];pt.forEach((Ot,_t)=>{Et.push(...this._findMatches({key:Ot,value:yt[_t],searcher:ut}))}),Et.length&&ht.push({idx:kt,item:yt,matches:Et})}),ht}_findMatches({key:ot,value:ut,searcher:pt}){if(!isDefined(ut))return[];let ft=[];if(isArray(ut))ut.forEach(({v:ht,i:yt,n:kt})=>{if(!isDefined(ht))return;const{isMatch:Et,score:Ot,indices:_t}=pt.searchIn(ht);Et&&ft.push({score:Ot,key:ot,value:ht,idx:yt,norm:kt,indices:_t})});else{const{v:ht,n:yt}=ut,{isMatch:kt,score:Et,indices:Ot}=pt.searchIn(ht);kt&&ft.push({score:Et,key:ot,value:ht,norm:yt,indices:Ot})}return ft}}Fuse.version="7.1.0";Fuse.createIndex=createIndex;Fuse.parseIndex=parseIndex;Fuse.config=Config$1;Fuse.parseQuery=parse$5;register$1(ExtendedSearch);const MenuPositionerContext=reactExports.createContext(void 0);function useMenuPositionerContext(At){const ot=reactExports.useContext(MenuPositionerContext);if(ot===void 0&&!At)throw new Error(formatErrorMessage(33));return ot}const MenuRootContext=reactExports.createContext(void 0);function useMenuRootContext(At){const ot=reactExports.useContext(MenuRootContext);if(ot===void 0&&!At)throw new Error(formatErrorMessage(36));return ot}const ContextMenuRootContext=reactExports.createContext(void 0);function useContextMenuRootContext(At=!0){const ot=reactExports.useContext(ContextMenuRootContext);if(ot===void 0&&!At)throw new Error(formatErrorMessage(25));return ot}function useControlled({controlled:At,default:ot,name:ut,state:pt="value"}){const{current:ft}=reactExports.useRef(At!==void 0),[ht,yt]=reactExports.useState(ot),kt=ft?At:ht,Et=reactExports.useCallback(Ot=>{ft||yt(Ot)},[]);return[kt,Et]}const CompositeRootContext=reactExports.createContext(void 0);function useCompositeRootContext(At=!1){const ot=reactExports.useContext(CompositeRootContext);if(ot===void 0&&!At)throw new Error(formatErrorMessage(16));return ot}function useFocusableWhenDisabled(At){const{focusableWhenDisabled:ot,disabled:ut,composite:pt=!1,tabIndex:ft=0,isNativeButton:ht}=At,yt=pt&&ot!==!1,kt=pt&&ot===!1;return{props:reactExports.useMemo(()=>{const Ot={onKeyDown(_t){ut&&ot&&_t.key!=="Tab"&&_t.preventDefault()}};return pt||(Ot.tabIndex=ft,!ht&&ut&&(Ot.tabIndex=ot?ft:-1)),(ht&&(ot||yt)||!ht&&ut)&&(Ot["aria-disabled"]=ut),ht&&(!ot||kt)&&(Ot.disabled=ut),Ot},[pt,ut,ot,yt,kt,ht,ft])}}function useButton(At={}){const{disabled:ot=!1,focusableWhenDisabled:ut,tabIndex:pt=0,native:ft=!0,composite:ht}=At,yt=reactExports.useRef(null),kt=useCompositeRootContext(!0),Et=ht??kt!==void 0,{props:Ot}=useFocusableWhenDisabled({focusableWhenDisabled:ut,disabled:ot,composite:Et,tabIndex:pt,isNativeButton:ft}),_t=reactExports.useCallback(()=>{const St=yt.current;isButtonElement(St)&&Et&&ot&&Ot.disabled===void 0&&St.disabled&&(St.disabled=!1)},[ot,Ot.disabled,Et]);useIsoLayoutEffect(_t,[_t]);const Qt=reactExports.useCallback((St={})=>{const{onClick:$t,onMouseDown:Pt,onKeyUp:Nt,onKeyDown:Lt,onPointerDown:qt,...jt}=St;return mergeProps$3({type:ft?"button":void 0,onClick(Ht){if(ot){Ht.preventDefault();return}$t?.(Ht)},onMouseDown(Ht){ot||Pt?.(Ht)},onKeyDown(Ht){if(ot||(makeEventPreventable(Ht),Lt?.(Ht),Ht.baseUIHandlerPrevented))return;const Wt=Ht.target===Ht.currentTarget,wn=Ht.currentTarget,Qn=isButtonElement(wn),Jt=!ft&&isValidLinkElement(wn),Gn=Wt&&(ft?Qn:!Jt),Jn=Ht.key==="Enter",Vn=Ht.key===" ",Fn=wn.getAttribute("role"),Xn=Fn?.startsWith("menuitem")||Fn==="option"||Fn==="gridcell";if(Wt&&Et&&Vn){if(Ht.defaultPrevented&&Xn)return;Ht.preventDefault(),Jt||ft&&Qn?(wn.click(),Ht.preventBaseUIHandler()):Gn&&($t?.(Ht),Ht.preventBaseUIHandler());return}Gn&&(!ft&&(Vn||Jn)&&Ht.preventDefault(),!ft&&Jn&&$t?.(Ht))},onKeyUp(Ht){if(!ot){if(makeEventPreventable(Ht),Nt?.(Ht),Ht.target===Ht.currentTarget&&ft&&Et&&isButtonElement(Ht.currentTarget)&&Ht.key===" "){Ht.preventDefault();return}Ht.baseUIHandlerPrevented||Ht.target===Ht.currentTarget&&!ft&&!Et&&Ht.key===" "&&$t?.(Ht)}},onPointerDown(Ht){if(ot){Ht.preventDefault();return}qt?.(Ht)}},ft?void 0:{role:"button"},Ot,jt)},[ot,Ot,Et,ft]),vt=useStableCallback$1(St=>{yt.current=St,_t()});return{getButtonProps:Qt,buttonRef:vt}}function isButtonElement(At){return isHTMLElement$1(At)&&At.tagName==="BUTTON"}function isValidLinkElement(At){return!!(At?.tagName==="A"&&At?.href)}function useMenuItemCommonProps(At){const{closeOnClick:ot,highlighted:ut,id:pt,nodeId:ft,store:ht,typingRef:yt,itemRef:kt,itemMetadata:Et}=At,{events:Ot}=ht.useState("floatingTreeRoot"),_t=useContextMenuRootContext(!0),Qt=_t!==void 0;return reactExports.useMemo(()=>({id:pt,role:"menuitem",tabIndex:ut?0:-1,onKeyDown(vt){vt.key===" "&&yt?.current&&vt.preventDefault()},onMouseMove(vt){ft&&Ot.emit("itemhover",{nodeId:ft,target:vt.currentTarget})},onClick(vt){ot&&Ot.emit("close",{domEvent:vt,reason:itemPress})},onMouseUp(vt){if(_t){const St=_t.initialCursorPointRef.current;if(_t.initialCursorPointRef.current=null,Qt&&St&&Math.abs(vt.clientX-St.x)<=1&&Math.abs(vt.clientY-St.y)<=1||Qt&&!isMac&&vt.button===2)return}kt.current&&ht.context.allowMouseUpTriggerRef.current&&(!Qt||vt.button===2)&&(!Et||Et.type==="regular-item")&&kt.current.click()}}),[ot,ut,pt,Ot,ft,ht,yt,kt,_t,Qt,Et])}const REGULAR_ITEM={type:"regular-item"};function useMenuItem(At){const{closeOnClick:ot,disabled:ut=!1,highlighted:pt,id:ft,store:ht,typingRef:yt=ht.context.typingRef,nativeButton:kt,itemMetadata:Et,nodeId:Ot}=At,_t=reactExports.useRef(null),{getButtonProps:Qt,buttonRef:vt}=useButton({disabled:ut,focusableWhenDisabled:!0,native:kt,composite:!0}),St=useMenuItemCommonProps({closeOnClick:ot,highlighted:pt,id:ft,nodeId:Ot,store:ht,typingRef:yt,itemRef:_t,itemMetadata:Et}),$t=reactExports.useCallback(Nt=>mergeProps$3(St,{onMouseEnter(){Et.type==="submenu-trigger"&&Et.setActive()}},Nt,Qt),[St,Qt,Et]),Pt=useMergedRefs(_t,vt);return reactExports.useMemo(()=>({getItemProps:$t,itemRef:Pt}),[$t,Pt])}const CompositeListContext=reactExports.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function useCompositeListContext(){return reactExports.useContext(CompositeListContext)}let IndexGuessBehavior=(function(At){return At[At.None=0]="None",At[At.GuessFromOrder=1]="GuessFromOrder",At})({});function useCompositeListItem(At={}){const{label:ot,metadata:ut,textRef:pt,indexGuessBehavior:ft,index:ht}=At,{register:yt,unregister:kt,subscribeMapChange:Et,elementsRef:Ot,labelsRef:_t,nextIndexRef:Qt}=useCompositeListContext(),vt=reactExports.useRef(-1),[St,$t]=reactExports.useState(ht??(ft===IndexGuessBehavior.GuessFromOrder?()=>{if(vt.current===-1){const Lt=Qt.current;Qt.current+=1,vt.current=Lt}return vt.current}:-1)),Pt=reactExports.useRef(null),Nt=reactExports.useCallback(Lt=>{if(Pt.current=Lt,St!==-1&&Lt!==null&&(Ot.current[St]=Lt,_t)){const qt=ot!==void 0;_t.current[St]=qt?ot:pt?.current?.textContent??Lt.textContent}},[St,Ot,_t,ot,pt]);return useIsoLayoutEffect(()=>{if(ht!=null)return;const Lt=Pt.current;if(Lt)return yt(Lt,ut),()=>{kt(Lt)}},[ht,yt,kt,ut]),useIsoLayoutEffect(()=>{if(ht==null)return Et(Lt=>{const qt=Pt.current?Lt.get(Pt.current)?.index:null;qt!=null&&$t(qt)})},[ht,Et,$t]),reactExports.useMemo(()=>({ref:Nt,index:St}),[St,Nt])}let MenuCheckboxItemDataAttributes=(function(At){return At.checked="data-checked",At.unchecked="data-unchecked",At.disabled="data-disabled",At.highlighted="data-highlighted",At})({});const itemMapping={checked(At){return At?{[MenuCheckboxItemDataAttributes.checked]:""}:{[MenuCheckboxItemDataAttributes.unchecked]:""}},...transitionStatusMapping},MenuItem=reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,id:ht,label:yt,nativeButton:kt=!1,disabled:Et=!1,closeOnClick:Ot=!0,style:_t,...Qt}=ot,vt=useCompositeListItem({label:yt}),St=useMenuPositionerContext(!0),$t=useBaseUiId(ht),{store:Pt}=useMenuRootContext(),Nt=Pt.useState("isActive",vt.index),Lt=Pt.useState("itemProps"),{getItemProps:qt,itemRef:jt}=useMenuItem({closeOnClick:Ot,disabled:Et,highlighted:Nt,id:$t,store:Pt,nativeButton:kt,nodeId:St?.context.nodeId,itemMetadata:REGULAR_ITEM});return useRenderElement("div",ot,{state:{disabled:Et,highlighted:Nt},props:[Lt,Qt,qt],ref:[jt,ut,vt.ref]})}),ToolbarRootContext=reactExports.createContext(void 0);function useToolbarRootContext(At){return reactExports.useContext(ToolbarRootContext)}const ARROW_UP="ArrowUp",ARROW_DOWN="ArrowDown",ARROW_LEFT="ArrowLeft",ARROW_RIGHT="ArrowRight",HOME="Home",END="End",HORIZONTAL_KEYS=new Set([ARROW_LEFT,ARROW_RIGHT]),VERTICAL_KEYS=new Set([ARROW_UP,ARROW_DOWN]),ARROW_KEYS=new Set([...HORIZONTAL_KEYS,...VERTICAL_KEYS]);[...ARROW_KEYS];const COMPOSITE_KEYS=new Set([ARROW_UP,ARROW_DOWN,ARROW_LEFT,ARROW_RIGHT,HOME,END]),stateAttributesMapping$8={...popupStateMapping,...transitionStatusMapping},MenuPopup=reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,style:ht,finalFocus:yt,...kt}=ot,{store:Et}=useMenuRootContext(),{side:Ot,align:_t}=useMenuPositionerContext(),Qt=useToolbarRootContext()!=null,vt=Et.useState("open"),St=Et.useState("transitionStatus"),$t=Et.useState("popupProps"),Pt=Et.useState("mounted"),Nt=Et.useState("instantType"),Lt=Et.useState("activeTriggerElement"),qt=Et.useState("parent"),jt=Et.useState("lastOpenChangeReason"),Zt=Et.useState("rootId"),Ht=Et.useState("floatingRootContext"),Wt=Et.useState("floatingTreeRoot"),wn=Et.useState("closeDelay"),Qn=Et.useState("activeTriggerElement"),Jt=qt.type==="context-menu";useOpenChangeComplete({open:vt,ref:Et.context.popupRef,onComplete(){vt&&Et.context.onOpenChangeComplete?.(!0)}}),reactExports.useEffect(()=>{function Yn(lr){Et.setOpen(!1,createChangeEventDetails(lr.reason,lr.domEvent))}return Wt.events.on("close",Yn),()=>{Wt.events.off("close",Yn)}},[Wt.events,Et]);const Gn=Et.useState("hoverEnabled"),Jn=Et.useState("disabled");useHoverFloatingInteraction(Ht,{enabled:Gn&&!Jn&&!Jt&&qt.type!=="menubar",closeDelay:wn});const Vn={transitionStatus:St,side:Ot,align:_t,open:vt,nested:qt.type==="menu",instant:Nt},Fn=reactExports.useCallback(Yn=>{Et.set("popupElement",Yn)},[Et]),Xn=useRenderElement("div",ot,{state:Vn,ref:[ut,Et.context.popupRef,Fn],stateAttributesMapping:stateAttributesMapping$8,props:[$t,{onKeyDown(Yn){Qt&&COMPOSITE_KEYS.has(Yn.key)&&Yn.stopPropagation()}},getDisabledMountTransitionStyles(St),kt,{"data-rootownerid":Zt}]});let Ar=qt.type===void 0||Jt;return(Lt||qt.type==="menubar"&&jt!==outsidePress)&&(Ar=!0),jsxRuntimeExports.jsx(FloatingFocusManager,{context:Ht,modal:Jt,disabled:!Pt,returnFocus:yt===void 0?Ar:yt,initialFocus:qt.type!=="menu",restoreFocus:!0,externalTree:qt.type!=="menubar"?Wt:void 0,previousFocusableElement:Qn,nextFocusableElement:qt.type===void 0?Et.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:qt.type===void 0?Et.context.beforeContentFocusGuardRef:void 0,children:Xn})}),MenuPortalContext=reactExports.createContext(void 0);function useMenuPortalContext(){const At=reactExports.useContext(MenuPortalContext);if(At===void 0)throw new Error(formatErrorMessage(32));return At}const MenuPortal=reactExports.forwardRef(function(ot,ut){const{keepMounted:pt=!1,...ft}=ot,{store:ht}=useMenuRootContext();return ht.useState("mounted")||pt?jsxRuntimeExports.jsx(MenuPortalContext.Provider,{value:pt,children:jsxRuntimeExports.jsx(FloatingPortal,{ref:ut,...ft})}):null});function CompositeList(At){const{children:ot,elementsRef:ut,labelsRef:pt,onMapChange:ft}=At,ht=useStableCallback$1(ft),yt=reactExports.useRef(0),kt=useRefWithInit(createListeners).current,Et=useRefWithInit(createMap).current,[Ot,_t]=reactExports.useState(0),Qt=reactExports.useRef(Ot),vt=useStableCallback$1((Lt,qt)=>{Et.set(Lt,qt??null),Qt.current+=1,_t(Qt.current)}),St=useStableCallback$1(Lt=>{Et.delete(Lt),Qt.current+=1,_t(Qt.current)}),$t=reactExports.useMemo(()=>{const Lt=new Map;return Array.from(Et.keys()).filter(jt=>jt.isConnected).sort(sortByDocumentPosition).forEach((jt,Zt)=>{const Ht=Et.get(jt)??{};Lt.set(jt,{...Ht,index:Zt})}),Lt},[Et,Ot]);useIsoLayoutEffect(()=>{if(typeof MutationObserver!="function"||$t.size===0)return;const Lt=new MutationObserver(qt=>{const jt=new Set,Zt=Ht=>jt.has(Ht)?jt.delete(Ht):jt.add(Ht);qt.forEach(Ht=>{Ht.removedNodes.forEach(Zt),Ht.addedNodes.forEach(Zt)}),jt.size===0&&(Qt.current+=1,_t(Qt.current))});return $t.forEach((qt,jt)=>{jt.parentElement&&Lt.observe(jt.parentElement,{childList:!0})}),()=>{Lt.disconnect()}},[$t]),useIsoLayoutEffect(()=>{Qt.current===Ot&&(ut.current.length!==$t.size&&(ut.current.length=$t.size),pt&&pt.current.length!==$t.size&&(pt.current.length=$t.size),yt.current=$t.size),ht($t)},[ht,$t,ut,pt,Ot]),useIsoLayoutEffect(()=>()=>{ut.current=[]},[ut]),useIsoLayoutEffect(()=>()=>{pt&&(pt.current=[])},[pt]);const Pt=useStableCallback$1(Lt=>(kt.add(Lt),()=>{kt.delete(Lt)}));useIsoLayoutEffect(()=>{kt.forEach(Lt=>Lt($t))},[kt,$t]);const Nt=reactExports.useMemo(()=>({register:vt,unregister:St,subscribeMapChange:Pt,elementsRef:ut,labelsRef:pt,nextIndexRef:yt}),[vt,St,Pt,ut,pt,yt]);return jsxRuntimeExports.jsx(CompositeListContext.Provider,{value:Nt,children:ot})}function createMap(){return new Map}function createListeners(){return new Set}function sortByDocumentPosition(At,ot){const ut=At.compareDocumentPosition(ot);return ut&Node.DOCUMENT_POSITION_FOLLOWING||ut&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:ut&Node.DOCUMENT_POSITION_PRECEDING||ut&Node.DOCUMENT_POSITION_CONTAINS?1:0}const InternalBackdrop=reactExports.forwardRef(function(ot,ut){const{cutout:pt,...ft}=ot;let ht;if(pt){const yt=pt.getBoundingClientRect();ht=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${yt.left}px ${yt.top}px,${yt.left}px ${yt.bottom}px,${yt.right}px ${yt.bottom}px,${yt.right}px ${yt.top}px,${yt.left}px ${yt.top}px)`}return jsxRuntimeExports.jsx("div",{ref:ut,role:"presentation","data-base-ui-inert":"",...ft,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:ht}})});let originalHtmlStyles={},originalBodyStyles={},originalHtmlScrollBehavior="";function hasInsetScrollbars(At){if(typeof document>"u")return!1;const ot=ownerDocument(At);return getWindow$1(ot).innerWidth-ot.documentElement.clientWidth>0}function supportsStableScrollbarGutter(At){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const ut=ownerDocument(At),pt=ut.documentElement,ft=ut.body,ht=isOverflowElement(pt)?pt:ft,yt=ht.style.overflowY,kt=pt.style.scrollbarGutter;pt.style.scrollbarGutter="stable",ht.style.overflowY="scroll";const Et=ht.offsetWidth;ht.style.overflowY="hidden";const Ot=ht.offsetWidth;return ht.style.overflowY=yt,pt.style.scrollbarGutter=kt,Et===Ot}function preventScrollOverlayScrollbars(At){const ot=ownerDocument(At),ut=ot.documentElement,pt=ot.body,ft=isOverflowElement(ut)?ut:pt,ht={overflowY:ft.style.overflowY,overflowX:ft.style.overflowX};return Object.assign(ft.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(ft.style,ht)}}function preventScrollInsetScrollbars(At){const ot=ownerDocument(At),ut=ot.documentElement,pt=ot.body,ft=getWindow$1(ut);let ht=0,yt=0,kt=!1;const Et=AnimationFrame.create();if(isWebKit$1&&(ft.visualViewport?.scale??1)!==1)return()=>{};function Ot(){const St=ft.getComputedStyle(ut),$t=ft.getComputedStyle(pt),Lt=(St.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";ht=ut.scrollTop,yt=ut.scrollLeft,originalHtmlStyles={scrollbarGutter:ut.style.scrollbarGutter,overflowY:ut.style.overflowY,overflowX:ut.style.overflowX},originalHtmlScrollBehavior=ut.style.scrollBehavior,originalBodyStyles={position:pt.style.position,height:pt.style.height,width:pt.style.width,boxSizing:pt.style.boxSizing,overflowY:pt.style.overflowY,overflowX:pt.style.overflowX,scrollBehavior:pt.style.scrollBehavior};const qt=ut.scrollHeight>ut.clientHeight,jt=ut.scrollWidth>ut.clientWidth,Zt=St.overflowY==="scroll"||$t.overflowY==="scroll",Ht=St.overflowX==="scroll"||$t.overflowX==="scroll",Wt=Math.max(0,ft.innerWidth-pt.clientWidth),wn=Math.max(0,ft.innerHeight-pt.clientHeight),Qn=parseFloat($t.marginTop)+parseFloat($t.marginBottom),Jt=parseFloat($t.marginLeft)+parseFloat($t.marginRight),Gn=isOverflowElement(ut)?ut:pt;if(kt=supportsStableScrollbarGutter(At),kt){ut.style.scrollbarGutter=Lt,Gn.style.overflowY="hidden",Gn.style.overflowX="hidden";return}Object.assign(ut.style,{scrollbarGutter:Lt,overflowY:"hidden",overflowX:"hidden"}),(qt||Zt)&&(ut.style.overflowY="scroll"),(jt||Ht)&&(ut.style.overflowX="scroll"),Object.assign(pt.style,{position:"relative",height:Qn||wn?`calc(100dvh - ${Qn+wn}px)`:"100dvh",width:Jt||Wt?`calc(100vw - ${Jt+Wt}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),pt.scrollTop=ht,pt.scrollLeft=yt,ut.setAttribute("data-base-ui-scroll-locked",""),ut.style.scrollBehavior="unset"}function _t(){Object.assign(ut.style,originalHtmlStyles),Object.assign(pt.style,originalBodyStyles),kt||(ut.scrollTop=ht,ut.scrollLeft=yt,ut.removeAttribute("data-base-ui-scroll-locked"),ut.style.scrollBehavior=originalHtmlScrollBehavior)}function Qt(){_t(),Et.request(Ot)}Ot();const vt=addEventListener(ft,"resize",Qt);return()=>{Et.cancel(),_t(),typeof ft.removeEventListener=="function"&&vt()}}class ScrollLocker{lockCount=0;restore=null;timeoutLock=Timeout.create();timeoutUnlock=Timeout.create();acquire(ot){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(ot)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(ot){if(this.lockCount===0||this.restore!==null)return;const pt=ownerDocument(ot).documentElement,ft=getWindow$1(pt).getComputedStyle(pt).overflowY;if(ft==="hidden"||ft==="clip"){this.restore=NOOP;return}const ht=isIOS||!hasInsetScrollbars(ot);this.restore=ht?preventScrollOverlayScrollbars(ot):preventScrollInsetScrollbars(ot)}}const SCROLL_LOCKER=new ScrollLocker;function useScrollLock(At=!0,ot=null){useIsoLayoutEffect(()=>{if(At)return SCROLL_LOCKER.acquire(ot)},[At,ot])}const VIEWPORT_WIDTH_TOLERANCE_PX=20;function useAnchoredPopupScrollLock(At,ot,ut,pt){const[ft,ht]=reactExports.useState(!1);useIsoLayoutEffect(()=>{if(!At||!ot||ut==null){ht(!1);return}const yt=ownerDocument(ut).documentElement.clientWidth,kt=ut.offsetWidth;ht(yt>0&&kt>0&&kt>=yt-VIEWPORT_WIDTH_TOLERANCE_PX)},[At,ot,ut]),useScrollLock(At&&(!ot||ft),pt)}const MenuPositioner=reactExports.forwardRef(function(ot,ut){const{anchor:pt,positionMethod:ft="absolute",className:ht,render:yt,side:kt,align:Et,sideOffset:Ot=0,alignOffset:_t=0,collisionBoundary:Qt="clipping-ancestors",collisionPadding:vt=5,arrowPadding:St=5,sticky:$t=!1,disableAnchorTracking:Pt=!1,collisionAvoidance:Nt=DROPDOWN_COLLISION_AVOIDANCE,style:Lt,...qt}=ot,{store:jt}=useMenuRootContext(),Zt=useMenuPortalContext(),Ht=useContextMenuRootContext(!0),Wt=jt.useState("parent"),wn=jt.useState("floatingRootContext"),Qn=jt.useState("floatingTreeRoot"),Jt=jt.useState("mounted"),Gn=jt.useState("open"),Jn=jt.useState("modal"),Vn=jt.useState("openMethod"),Fn=jt.useState("activeTriggerElement"),Xn=jt.useState("transitionStatus"),Ar=jt.useState("positionerElement"),Yn=jt.useState("instantType"),lr=jt.useState("hasViewport"),nr=jt.useState("lastOpenChangeReason"),mr=jt.useState("floatingNodeId"),Zn=jt.useState("floatingParentNodeId"),ur=wn.useState("domReferenceElement"),yr=reactExports.useRef(null),ir=useAnimationsFinished(Ar,!1,!1);let Cr=pt,kr=Ot,Br=_t,Dr=Et,Gr=Nt;Wt.type==="context-menu"&&(Cr=pt??Wt.context?.anchor,Dr=Dr??"start",!kt&&Dr!=="center"&&(Br=ot.alignOffset??2,kr=ot.sideOffset??-5));let jr=kt,na=Dr;Wt.type==="menu"?(jr=jr??"inline-end",na=na??"start",Gr=ot.collisionAvoidance??POPUP_COLLISION_AVOIDANCE):Wt.type==="menubar"&&(jr=jr??"bottom",na=na??"start");const ca=Wt.type==="context-menu",ma=useAnchorPositioning({anchor:Cr,floatingRootContext:wn,positionMethod:Ht?"fixed":ft,mounted:Jt,side:jr,sideOffset:kr,align:na,alignOffset:Br,arrowPadding:ca?0:St,collisionBoundary:Qt,collisionPadding:vt,sticky:$t,nodeId:mr,keepMounted:Zt,disableAnchorTracking:Pt,collisionAvoidance:Gr,shiftCrossAxis:ca&&!("side"in Gr&&Gr.side==="flip"),externalTree:Qn,adaptiveOrigin:lr?adaptiveOrigin:void 0});reactExports.useEffect(()=>{function Za($a){$a.open&&($a.parentNodeId===mr&&jt.set("hoverEnabled",!1),$a.nodeId!==mr&&$a.parentNodeId===jt.select("floatingParentNodeId")&&jt.setOpen(!1,createChangeEventDetails(siblingOpen)))}return Qn.events.on("menuopenchange",Za),()=>{Qn.events.off("menuopenchange",Za)}},[jt,Qn.events,mr]),reactExports.useEffect(()=>{if(jt.select("floatingParentNodeId")==null)return;function Za($a){if($a.open||$a.nodeId!==jt.select("floatingParentNodeId"))return;const Ya=$a.reason??siblingOpen;jt.setOpen(!1,createChangeEventDetails(Ya))}return Qn.events.on("menuopenchange",Za),()=>{Qn.events.off("menuopenchange",Za)}},[Qn.events,jt]);const pa=useTimeout();reactExports.useEffect(()=>{Gn||pa.clear()},[Gn,pa]),reactExports.useEffect(()=>{function Za($a){if(!(!Gn||$a.nodeId!==jt.select("floatingParentNodeId")))if($a.target&&Fn&&Fn!==$a.target){const Ya=jt.select("closeDelay");Ya>0?pa.isStarted()||pa.start(Ya,()=>{jt.setOpen(!1,createChangeEventDetails(siblingOpen))}):jt.setOpen(!1,createChangeEventDetails(siblingOpen))}else pa.clear()}return Qn.events.on("itemhover",Za),()=>{Qn.events.off("itemhover",Za)}},[Qn.events,Gn,Fn,jt,pa]),reactExports.useEffect(()=>{const Za={open:Gn,nodeId:mr,parentNodeId:Zn,reason:jt.select("lastOpenChangeReason")};Qn.events.emit("menuopenchange",Za)},[Qn.events,Gn,jt,mr,Zn]),useIsoLayoutEffect(()=>{const Za=ur,$a=yr.current;if(Za&&(yr.current=Za),$a&&Za&&Za!==$a){jt.set("instantType",void 0);const Ya=new AbortController;return ir(()=>{jt.set("instantType","trigger-change")},Ya.signal),()=>{Ya.abort()}}},[ur,ir,jt]);const ba={open:Gn,side:ma.side,align:ma.align,anchorHidden:ma.anchorHidden,nested:Wt.type==="menu",instant:Yn},ti=Wt.type==="menubar"&&Wt.context.modal;useAnchoredPopupScrollLock(Gn&&(ti||Jn&&nr!==triggerHover),Vn==="touch",Ar,Fn);const Xa=usePositioner(ot,ba,{styles:ma.positionerStyles,transitionStatus:Xn,props:qt,refs:[ut,jt.useStateSetter("positionerElement")],hidden:!Jt,inert:!Gn}),Ni=Jt&&Wt.type!=="menu"&&(Wt.type!=="menubar"&&Jn&&nr!==triggerHover||Wt.type==="menubar"&&Wt.context.modal);let ii=null;return Wt.type==="menubar"?ii=Wt.context.contentElement:Wt.type===void 0&&(ii=Fn),jsxRuntimeExports.jsxs(MenuPositionerContext.Provider,{value:ma,children:[Ni&&jsxRuntimeExports.jsx(InternalBackdrop,{ref:Wt.type==="context-menu"||Wt.type==="nested-context-menu"?Wt.context.internalBackdropRef:null,inert:inertValue(!Gn),cutout:ii}),jsxRuntimeExports.jsx(FloatingNode,{id:mr,children:jsxRuntimeExports.jsx(CompositeList,{elementsRef:jt.context.itemDomElements,labelsRef:jt.context.itemLabels,children:Xa})})]})}),MenuRadioGroupContext=reactExports.createContext(void 0);function useMenuRadioGroupContext(){const At=reactExports.useContext(MenuRadioGroupContext);if(At===void 0)throw new Error(formatErrorMessage(34));return At}const MenuRadioGroup=reactExports.memo(reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,value:ht,defaultValue:yt,onValueChange:kt,disabled:Et=!1,style:Ot,..._t}=ot,[Qt,vt]=useControlled({controlled:ht,default:yt,name:"MenuRadioGroup"}),St=useStableCallback$1(kt),$t=useStableCallback$1((qt,jt)=>{St?.(qt,jt),!jt.isCanceled&&vt(qt)}),Nt=useRenderElement("div",ot,{state:{disabled:Et},ref:ut,props:{role:"group","aria-disabled":Et||void 0,..._t}}),Lt=reactExports.useMemo(()=>({value:Qt,setValue:$t,disabled:Et}),[Qt,$t,Et]);return jsxRuntimeExports.jsx(MenuRadioGroupContext.Provider,{value:Lt,children:Nt})})),MenuRadioItemContext=reactExports.createContext(void 0);function useMenuRadioItemContext(){const At=reactExports.useContext(MenuRadioItemContext);if(At===void 0)throw new Error(formatErrorMessage(35));return At}const MenuRadioItem=reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,id:ht,label:yt,nativeButton:kt=!1,disabled:Et=!1,closeOnClick:Ot=!1,value:_t,style:Qt,...vt}=ot,St=useCompositeListItem({label:yt}),$t=useMenuPositionerContext(!0),Pt=useBaseUiId(ht),{store:Nt}=useMenuRootContext(),Lt=Nt.useState("isActive",St.index),qt=Nt.useState("itemProps"),{value:jt,setValue:Zt,disabled:Ht}=useMenuRadioGroupContext(),Wt=Ht||Et,wn=jt===_t,{getItemProps:Qn,itemRef:Jt}=useMenuItem({closeOnClick:Ot,disabled:Wt,highlighted:Lt,id:Pt,store:Nt,nativeButton:kt,nodeId:$t?.context.nodeId,itemMetadata:REGULAR_ITEM}),Gn=reactExports.useMemo(()=>({disabled:Wt,highlighted:Lt,checked:wn}),[Wt,Lt,wn]),Jn=useStableCallback$1(Fn=>{const Xn={...createChangeEventDetails(itemPress,Fn.nativeEvent),preventUnmountOnClose:()=>{}};Zt(_t,Xn)}),Vn=useRenderElement("div",ot,{state:Gn,stateAttributesMapping:itemMapping,props:[qt,{role:"menuitemradio","aria-checked":wn,onClick:Jn},vt,Qn],ref:[Jt,ut,St.ref]});return jsxRuntimeExports.jsx(MenuRadioItemContext.Provider,{value:Gn,children:Vn})}),MenuRadioItemIndicator=reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,style:ht,keepMounted:yt=!1,...kt}=ot,Et=useMenuRadioItemContext(),Ot=reactExports.useRef(null),{transitionStatus:_t,setMounted:Qt}=useTransitionStatus(Et.checked);useOpenChangeComplete({open:Et.checked,ref:Ot,onComplete(){Et.checked||Qt(!1)}});const vt={checked:Et.checked,disabled:Et.disabled,highlighted:Et.highlighted,transitionStatus:_t};return useRenderElement("span",ot,{state:vt,stateAttributesMapping:itemMapping,ref:[ut,Ot],props:{"aria-hidden":!0,...kt},enabled:yt||Et.checked})}),MenubarContext=reactExports.createContext(null);function useMenubarContext(At){return reactExports.useContext(MenubarContext)}function useEnhancedClickHandler(At){const ot=reactExports.useRef(""),ut=reactExports.useCallback(ft=>{ft.defaultPrevented||(ot.current=ft.pointerType,At(ft,ft.pointerType))},[At]);return{onClick:reactExports.useCallback(ft=>{if(ft.detail===0){At(ft,"keyboard");return}"pointerType"in ft?At(ft,ft.pointerType):At(ft,ot.current),ot.current=""},[At]),onPointerDown:ut}}function useValueChanged(At,ot){const ut=reactExports.useRef(At),pt=useStableCallback$1(ot);useIsoLayoutEffect(()=>{ut.current!==At&&pt(ut.current)},[At,pt]),useIsoLayoutEffect(()=>{ut.current=At},[At])}function useOpenInteractionType(At){const[ot,ut]=reactExports.useState(null),pt=useStableCallback$1((yt,kt)=>{At||ut(kt||(isIOS?"touch":""))});useValueChanged(At,yt=>{yt&&!At&&ut(null)});const{onClick:ft,onPointerDown:ht}=useEnhancedClickHandler(pt);return reactExports.useMemo(()=>({openMethod:ot,triggerProps:{onClick:ft,onPointerDown:ht}}),[ot,ft,ht])}const selectors$3={...popupStoreSelectors,disabled:createSelector(At=>At.parent.type==="menubar"&&At.parent.context.disabled||At.disabled),modal:createSelector(At=>(At.parent.type===void 0||At.parent.type==="context-menu")&&(At.modal??!0)),openMethod:createSelector(At=>At.openMethod),allowMouseEnter:createSelector(At=>At.allowMouseEnter),stickIfOpen:createSelector(At=>At.stickIfOpen),parent:createSelector(At=>At.parent),rootId:createSelector(At=>At.parent.type==="menu"?At.parent.store.select("rootId"):At.parent.type!==void 0?At.parent.context.rootId:At.rootId),activeIndex:createSelector(At=>At.activeIndex),isActive:createSelector((At,ot)=>At.activeIndex===ot),hoverEnabled:createSelector(At=>At.hoverEnabled),instantType:createSelector(At=>At.instantType),lastOpenChangeReason:createSelector(At=>At.openChangeReason),floatingTreeRoot:createSelector(At=>At.parent.type==="menu"?At.parent.store.select("floatingTreeRoot"):At.floatingTreeRoot),floatingNodeId:createSelector(At=>At.floatingNodeId),floatingParentNodeId:createSelector(At=>At.floatingParentNodeId),itemProps:createSelector(At=>At.itemProps),closeDelay:createSelector(At=>At.closeDelay),hasViewport:createSelector(At=>At.hasViewport),keyboardEventRelay:createSelector(At=>{if(At.keyboardEventRelay)return At.keyboardEventRelay;if(At.parent.type==="menu")return At.parent.store.select("keyboardEventRelay")})};class MenuStore extends ReactStore{constructor(ot){super({...createInitialState$2(),...ot},{positionerRef:reactExports.createRef(),popupRef:reactExports.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:reactExports.createRef(),beforeContentFocusGuardRef:reactExports.createRef(),onOpenChangeComplete:void 0,triggerElements:new PopupTriggerMap},selectors$3),this.unsubscribeParentListener=this.observe("parent",ut=>{if(this.unsubscribeParentListener?.(),ut.type==="menu"){let pt=ut.store.select("rootId"),ft=ut.store.select("floatingTreeRoot"),ht=ut.store.select("keyboardEventRelay");this.unsubscribeParentListener=ut.store.subscribe(()=>{const yt=ut.store.select("rootId"),kt=ut.store.select("floatingTreeRoot"),Et=ut.store.select("keyboardEventRelay");pt===yt&&ft===kt&&ht===Et||(pt=yt,ft=kt,ht=Et,this.notifyAll())}),this.context.allowMouseUpTriggerRef=ut.store.context.allowMouseUpTriggerRef;return}ut.type!==void 0&&(this.context.allowMouseUpTriggerRef=ut.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(ot,ut){this.state.floatingRootContext.context.events.emit("setOpen",{open:ot,eventDetails:ut})}static useStore(ot,ut){const pt=useRefWithInit(()=>new MenuStore(ut)).current;return ot??pt}unsubscribeParentListener=null}function createInitialState$2(){return{...createInitialPopupStoreState(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new FloatingTreeStore,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:EMPTY_OBJECT,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}const MenuSubmenuRootContext=reactExports.createContext(void 0);function useMenuSubmenuRootContext(){return reactExports.useContext(MenuSubmenuRootContext)}const MenuRoot=fastComponent(function(ot){const{children:ut,open:pt,onOpenChange:ft,onOpenChangeComplete:ht,defaultOpen:yt=!1,disabled:kt=!1,modal:Et,loopFocus:Ot=!0,orientation:_t="vertical",actionsRef:Qt,closeParentOnEsc:vt=!1,handle:St,triggerId:$t,defaultTriggerId:Pt=null,highlightItemOnHover:Nt=!0}=ot,Lt=useContextMenuRootContext(!0),qt=useMenuRootContext(!0),jt=useMenubarContext(!0),Zt=useMenuSubmenuRootContext(),Ht=reactExports.useMemo(()=>Zt&&qt?{type:"menu",store:qt.store}:jt?{type:"menubar",context:jt}:Lt&&!qt?{type:"context-menu",context:Lt}:{type:void 0},[Lt,qt,jt,Zt]),Wt=MenuStore.useStore(St?.store,{open:yt,openProp:pt,activeTriggerId:Pt,triggerIdProp:$t,parent:Ht});useOnFirstRender(()=>{pt===void 0&&Wt.state.open===!1&&yt===!0&&Wt.update({open:!0,activeTriggerId:Pt})}),Wt.useControlledProp("openProp",pt),Wt.useControlledProp("triggerIdProp",$t),Wt.useContextCallback("onOpenChangeComplete",ht);const wn=Wt.useState("floatingTreeRoot"),Qn=useFloatingNodeId(wn),Jt=useFloatingParentNodeId();useIsoLayoutEffect(()=>{Lt&&!qt?Wt.update({parent:{type:"context-menu",context:Lt},floatingNodeId:Qn,floatingParentNodeId:Jt}):qt&&Wt.update({floatingNodeId:Qn,floatingParentNodeId:Jt})},[Lt,qt,Qn,Jt,Wt]);const Gn=Wt.useState("open"),Jn=Wt.useState("activeTriggerElement"),Vn=Wt.useState("positionerElement"),Fn=Wt.useState("hoverEnabled"),Xn=Wt.useState("disabled"),Ar=Wt.useState("lastOpenChangeReason"),Yn=Wt.useState("parent"),lr=Wt.useState("activeIndex"),nr=Wt.useState("payload"),mr=Wt.useState("floatingParentNodeId"),Zn=reactExports.useRef(null),ur=mr!=null,{openMethod:yr,triggerProps:ir}=useOpenInteractionType(Gn);Wt.useSyncedValues({disabled:kt,modal:Yn.type===void 0?Et:void 0,openMethod:yr,rootId:useId$1()}),useImplicitActiveTrigger(Wt);const{forceUnmount:Cr}=useOpenStateTransitions(Gn,Wt,()=>{Wt.update({allowMouseEnter:!1,stickIfOpen:!0})}),kr=reactExports.useRef(Yn.type!=="context-menu"),Br=useTimeout();reactExports.useEffect(()=>{if(Gn||(Zn.current=null),Yn.type==="context-menu"){if(!Gn){Br.clear(),kr.current=!1;return}Br.start(500,()=>{kr.current=!0})}},[Br,Gn,Yn.type]),useIsoLayoutEffect(()=>{!Gn&&!Fn&&Wt.set("hoverEnabled",!0)},[Gn,Fn,Wt]);const Dr=reactExports.useRef(!0),Gr=useTimeout(),jr=useStableCallback$1((ao,Jo)=>{const Ji=Jo.reason;if(Gn===ao&&Jo.trigger===Jn&&Ar===Ji||(Jo.preventUnmountOnClose=()=>{Wt.set("preventUnmountingOnClose",!0)},!ao&&Jo.trigger==null&&(Jo.trigger=Jn??void 0),ft?.(ao,Jo),Jo.isCanceled))return;Wt.state.floatingRootContext.dispatchOpenChange(ao,Jo);const Ms=Jo.event;if(ao===!1&&Ms?.type==="click"&&Ms.pointerType==="touch"&&!Dr.current)return;if(!ao&&lr!==null){const ks=Wt.context.itemDomElements.current[lr];queueMicrotask(()=>{ks?.setAttribute("tabindex","-1")})}ao&&Ji===triggerFocus?(Dr.current=!1,Gr.start(300,()=>{Dr.current=!0})):(Dr.current=!0,Gr.clear());const Vs=(Ji===triggerPress||Ji===itemPress)&&Ms.detail===0&&Ms?.isTrusted,ZA=!ao&&(Ji===escapeKey||Ji==null),Xo={open:ao,openChangeReason:Ji};Zn.current=Jo.event??null;const ho=Jo.trigger?.id??null;(ho||ao)&&(Xo.activeTriggerId=ho,Xo.activeTriggerElement=Jo.trigger??null),Wt.update(Xo),Yn.type==="menubar"&&(Ji===triggerFocus||Ji===focusOut||Ji===triggerHover||Ji===listNavigation||Ji===siblingOpen)?Wt.set("instantType","group"):Vs||ZA?Wt.set("instantType",Vs?"click":"dismiss"):Wt.set("instantType",void 0)}),na=reactExports.useCallback(ao=>{const Jo=createChangeEventDetails(ao);return Jo.preventUnmountOnClose=()=>{Wt.set("preventUnmountingOnClose",!0)},Jo},[Wt]),ca=reactExports.useCallback(()=>{Wt.setOpen(!1,na(imperativeAction))},[Wt,na]);reactExports.useImperativeHandle(Qt,()=>({unmount:Cr,close:ca}),[Cr,ca]);let ma;Yn.type==="context-menu"&&(ma=Yn.context),reactExports.useImperativeHandle(ma?.positionerRef,()=>Vn,[Vn]),reactExports.useImperativeHandle(ma?.actionsRef,()=>({setOpen:jr}),[jr]);const pa=useSyncedFloatingRootContext({popupStore:Wt,onOpenChange:jr}),ba=pa.context.events;reactExports.useEffect(()=>{const ao=({open:Jo,eventDetails:Ji})=>jr(Jo,Ji);return ba.on("setOpen",ao),()=>{ba?.off("setOpen",ao)}},[ba,jr]);const ti=useDismiss(pa,{enabled:!Xn,bubbles:{escapeKey:vt&&Yn.type==="menu"},outsidePress(){return Yn.type!=="context-menu"||Zn.current?.type==="contextmenu"?!0:kr.current},externalTree:ur?wn:void 0}),ya=useRole(pa,{role:"menu"}),Xa=useDirection(),Ni=reactExports.useCallback(ao=>{Wt.select("activeIndex")!==ao&&Wt.set("activeIndex",ao)},[Wt]),ii=useListNavigation(pa,{enabled:!Xn,listRef:Wt.context.itemDomElements,activeIndex:lr,nested:Yn.type!==void 0,loopFocus:Ot,orientation:_t,parentOrientation:Yn.type==="menubar"?Yn.context.orientation:void 0,rtl:Xa==="rtl",disabledIndices:EMPTY_ARRAY,onNavigate:Ni,openOnArrowKeyDown:Yn.type!=="context-menu",externalTree:ur?wn:void 0,focusItemOnHover:Nt}),Za=reactExports.useCallback(ao=>{Wt.context.typingRef.current=ao},[Wt]),$a=useTypeahead(pa,{listRef:Wt.context.itemLabels,elementsRef:Wt.context.itemDomElements,activeIndex:lr,resetMs:TYPEAHEAD_RESET_MS,onMatch:ao=>{Gn&&ao!==lr&&Wt.set("activeIndex",ao)},onTypingChange:Za}),{getReferenceProps:Ya,getFloatingProps:Ta,getItemProps:qa,getTriggerProps:ki}=useInteractions([ti,ya,ii,$a]),La=reactExports.useMemo(()=>{const ao=mergeProps$3(Ya(),{onMouseMove(){Wt.set("allowMouseEnter",!0)}},ir);return delete ao.role,ao},[Ya,Wt,ir]),Ja=reactExports.useMemo(()=>{const ao=ki();if(!ao)return ao;const Jo=mergeProps$3(ao,ir);return delete Jo.role,delete Jo["aria-controls"],Jo},[ki,ir]),qi=reactExports.useMemo(()=>Ta({onMouseMove(){Wt.set("allowMouseEnter",!0),Yn.type==="menu"&&Wt.set("hoverEnabled",!1)},onClick(){Wt.select("hoverEnabled")&&Wt.set("hoverEnabled",!1)},onKeyDown(ao){const Jo=Wt.select("keyboardEventRelay");Jo&&!ao.isPropagationStopped()&&Jo(ao)}}),[Ta,Yn.type,Wt]),co=reactExports.useMemo(()=>qa(),[qa]);Wt.useSyncedValues({floatingRootContext:pa,activeTriggerProps:La,inactiveTriggerProps:Ja,popupProps:qi,itemProps:co});const ns=reactExports.useMemo(()=>({store:Wt,parent:Ht}),[Wt,Ht]),Qo=jsxRuntimeExports.jsx(MenuRootContext.Provider,{value:ns,children:typeof ut=="function"?ut({payload:nr}):ut});return Yn.type===void 0||Yn.type==="context-menu"?jsxRuntimeExports.jsx(FloatingTree,{externalTree:wn,children:Qo}):Qo});function MenuSubmenuRoot(At){const ot=useMenuRootContext().store,ut=reactExports.useMemo(()=>({parentMenu:ot}),[ot]);return jsxRuntimeExports.jsx(MenuSubmenuRootContext.Provider,{value:ut,children:jsxRuntimeExports.jsx(MenuRoot,{...At})})}function getPseudoElementBounds(At){const ot=At.getBoundingClientRect(),ut=getWindow$1(At),pt=ut.getComputedStyle(At,"::before"),ft=ut.getComputedStyle(At,"::after");if(!(pt.content!=="none"||ft.content!=="none"))return ot;const yt=parseFloat(pt.width)||0,kt=parseFloat(pt.height)||0,Et=parseFloat(ft.width)||0,Ot=parseFloat(ft.height)||0,_t=Math.max(ot.width,yt,Et),Qt=Math.max(ot.height,kt,Ot),vt=_t-ot.width,St=Qt-ot.height;return{left:ot.left-vt/2,right:ot.right+vt/2,top:ot.top-St/2,bottom:ot.bottom+St/2}}function useCompositeItem(At={}){const{highlightItemOnHover:ot,highlightedIndex:ut,onHighlightedIndexChange:pt}=useCompositeRootContext(),{ref:ft,index:ht}=useCompositeListItem(At),yt=ut===ht,kt=reactExports.useRef(null),Et=useMergedRefs(ft,kt);return{compositeProps:reactExports.useMemo(()=>({tabIndex:yt?0:-1,onFocus(){pt(ht)},onMouseMove(){const _t=kt.current;if(!ot||!_t)return;const Qt=_t.hasAttribute("disabled")||_t.ariaDisabled==="true";!yt&&!Qt&&_t.focus()}}),[yt,pt,ht,ot]),compositeRef:Et,index:ht}}function CompositeItem(At){const{render:ot,className:ut,style:pt,state:ft=EMPTY_OBJECT,props:ht=EMPTY_ARRAY,refs:yt=EMPTY_ARRAY,metadata:kt,stateAttributesMapping:Et,tag:Ot="div",..._t}=At,{compositeProps:Qt,compositeRef:vt}=useCompositeItem({metadata:kt});return useRenderElement(Ot,At,{state:ft,ref:[...yt,vt],props:[Qt,...ht,_t],stateAttributesMapping:Et})}function findRootOwnerId(At){if(isHTMLElement$1(At)&&At.hasAttribute("data-rootownerid"))return At.getAttribute("data-rootownerid")??void 0;if(!isLastTraversableNode(At))return findRootOwnerId(getParentNode(At))}function useTriggerFocusGuards(At,ot){const ut=reactExports.useRef(null),pt=useStableCallback$1(ht=>{reactDomExports.flushSync(()=>{At.setOpen(!1,createChangeEventDetails(focusOut,ht.nativeEvent,ht.currentTarget))}),getTabbableBeforeElement(ut.current)?.focus()}),ft=useStableCallback$1(ht=>{const yt=At.select("positionerElement");if(yt&&isOutsideEvent(ht,yt))At.context.beforeContentFocusGuardRef.current?.focus();else{reactDomExports.flushSync(()=>{At.setOpen(!1,createChangeEventDetails(focusOut,ht.nativeEvent,ht.currentTarget))});let kt=getTabbableAfterElement(At.context.triggerFocusTargetRef.current||ot.current);for(;kt!==null&&contains$2(yt,kt);){const Et=kt;if(kt=getNextTabbable(kt),kt===Et)break}kt?.focus()}});return{preFocusGuardRef:ut,handlePreFocusGuardFocus:pt,handleFocusTargetFocus:ft}}function useMixedToggleClickHandler(At){const{enabled:ot=!0,mouseDownAction:ut,open:pt}=At,ft=reactExports.useRef(!1);return reactExports.useMemo(()=>ot?{onMouseDown:ht=>{(ut==="open"&&!pt||ut==="close"&&pt)&&(ft.current=!0,ownerDocument(ht.currentTarget).addEventListener("click",()=>{ft.current=!1},{once:!0}))},onClick:ht=>{ft.current&&(ft.current=!1,ht.preventBaseUIHandler())}}:EMPTY_OBJECT,[ot,ut,pt])}const BOUNDARY_OFFSET$1=2,MenuTrigger=fastComponentRef(function(ot,ut){const{render:pt,className:ft,disabled:ht=!1,nativeButton:yt=!0,id:kt,openOnHover:Et,delay:Ot=100,closeDelay:_t=0,handle:Qt,payload:vt,style:St,...$t}=ot,Pt=useMenuRootContext(!0),Nt=Qt?.store??Pt?.store;if(!Nt)throw new Error(formatErrorMessage(85));const Lt=useBaseUiId(kt),qt=Nt.useState("isTriggerActive",Lt),jt=Nt.useState("floatingRootContext"),Zt=Nt.useState("isOpenedByTrigger",Lt),Ht=reactExports.useRef(null),Wt=useMenuParent(),wn=useCompositeRootContext(!0),Qn=useFloatingTree(),Jt=reactExports.useMemo(()=>Qn??new FloatingTreeStore,[Qn]),Gn=useFloatingNodeId(Jt),Jn=useFloatingParentNodeId(),{registerTrigger:Vn,isMountedByThisTrigger:Fn}=useTriggerDataForwarding(Lt,Ht,Nt,{payload:vt,closeDelay:_t,parent:Wt,floatingTreeRoot:Jt,floatingNodeId:Gn,floatingParentNodeId:Jn,keyboardEventRelay:wn?.relayKeyboardEvent}),Xn=Wt.type==="menubar",Ar=Nt.useState("disabled"),Yn=ht||Ar||Xn&&Wt.context.disabled,{getButtonProps:lr,buttonRef:nr}=useButton({disabled:Yn,native:yt});reactExports.useEffect(()=>{!Zt&&Wt.type===void 0&&(Nt.context.allowMouseUpTriggerRef.current=!1)},[Nt,Zt,Wt.type]);const mr=reactExports.useRef(null),Zn=useTimeout(),ur=useStableCallback$1(Ni=>{if(!mr.current)return;Zn.clear(),Nt.context.allowMouseUpTriggerRef.current=!1;const ii=Ni.target;if(contains$2(mr.current,ii)||contains$2(Nt.select("positionerElement"),ii)||ii===mr.current||ii!=null&&findRootOwnerId(ii)===Nt.select("rootId"))return;const Za=getPseudoElementBounds(mr.current);Ni.clientX>=Za.left-BOUNDARY_OFFSET$1&&Ni.clientX<=Za.right+BOUNDARY_OFFSET$1&&Ni.clientY>=Za.top-BOUNDARY_OFFSET$1&&Ni.clientY<=Za.bottom+BOUNDARY_OFFSET$1||Jt.events.emit("close",{domEvent:Ni,reason:cancelOpen})});reactExports.useEffect(()=>{Zt&&Nt.select("lastOpenChangeReason")===triggerHover&&ownerDocument(mr.current).addEventListener("mouseup",ur,{once:!0})},[Zt,ur,Nt]);const yr=Xn&&Wt.context.hasSubmenuOpen,Cr=useHoverReferenceInteraction(jt,{enabled:(Et??yr)&&!Yn&&Wt.type!=="context-menu"&&(!Xn||yr&&!Fn),handleClose:safePolygon({blockPointerEvents:!Xn}),mouseOnly:!0,move:!1,restMs:Wt.type===void 0?Ot:void 0,delay:{close:_t},triggerElementRef:Ht,externalTree:Jt,isActiveTrigger:qt,isClosing:()=>Nt.select("transitionStatus")==="ending"}),kr=useStickIfOpen(Zt,Nt.select("lastOpenChangeReason")),Br=useClick(jt,{enabled:!Yn&&Wt.type!=="context-menu",event:Zt&&Xn?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:Wt.type===void 0?kr:!1}),Dr=useFocus(jt,{enabled:!Yn&&yr}),Gr=useMixedToggleClickHandler({open:Zt,enabled:Xn,mouseDownAction:"open"}),jr=useInteractions([Br,Dr]),na={disabled:Yn,open:Zt},ca=Nt.useState("triggerProps",Fn),ma=[mr,ut,nr,Vn,Ht],pa=[jr.getReferenceProps(),Cr??EMPTY_OBJECT,ca,{"aria-haspopup":"menu",id:Lt,onMouseDown:Ni=>{if(Nt.select("open"))return;Zn.start(200,()=>{Nt.context.allowMouseUpTriggerRef.current=!0}),ownerDocument(Ni.currentTarget).addEventListener("mouseup",ur,{once:!0})}},Xn?{role:"menuitem"}:{},Gr,$t,lr],{preFocusGuardRef:ba,handlePreFocusGuardFocus:ti,handleFocusTargetFocus:ya}=useTriggerFocusGuards(Nt,Ht),Xa=useRenderElement("button",ot,{enabled:!Xn,stateAttributesMapping:pressableTriggerOpenStateMapping,state:na,ref:ma,props:pa});return Xn?jsxRuntimeExports.jsx(CompositeItem,{tag:"button",render:pt,className:ft,style:St,state:na,refs:ma,props:pa,stateAttributesMapping:pressableTriggerOpenStateMapping}):Zt?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(FocusGuard,{ref:ba,onFocus:ti},`${Lt}-pre-focus-guard`),jsxRuntimeExports.jsx(reactExports.Fragment,{children:Xa},Lt),jsxRuntimeExports.jsx(FocusGuard,{ref:Nt.context.triggerFocusTargetRef,onFocus:ya},`${Lt}-post-focus-guard`)]}):jsxRuntimeExports.jsx(reactExports.Fragment,{children:Xa},Lt)});function useStickIfOpen(At,ot){const ut=useTimeout(),[pt,ft]=reactExports.useState(!1);return useIsoLayoutEffect(()=>{At&&ot==="trigger-hover"?(ft(!0),ut.start(PATIENT_CLICK_THRESHOLD,()=>{ft(!1)})):At||(ut.clear(),ft(!1))},[At,ot,ut]),pt}function useMenuParent(){const At=useContextMenuRootContext(!0),ot=useMenuRootContext(!0),ut=useMenubarContext();return reactExports.useMemo(()=>ut?{type:"menubar",context:ut}:At&&!ot?{type:"context-menu",context:At}:{type:void 0},[At,ot,ut])}const Separator=reactExports.forwardRef(function(ot,ut){const{className:pt,render:ft,orientation:ht="horizontal",style:yt,...kt}=ot;return useRenderElement("div",ot,{state:{orientation:ht},ref:ut,props:[{role:"separator","aria-orientation":ht},kt]})}),MenuSubmenuTrigger=reactExports.forwardRef(function(ot,ut){const{render:pt,className:ft,label:ht,id:yt,nativeButton:kt=!1,openOnHover:Et=!0,delay:Ot=100,closeDelay:_t=0,disabled:Qt=!1,style:vt,...St}=ot,$t=useCompositeListItem(),Pt=useMenuPositionerContext(),{store:Nt}=useMenuRootContext(),Lt=useBaseUiId(yt),qt=Nt.useState("open"),jt=Nt.useState("floatingRootContext"),Zt=Nt.useState("floatingTreeRoot"),Ht=useTriggerRegistration(Lt,Nt),Wt=reactExports.useCallback(Br=>{const Dr=Ht(Br);return Br!==null&&Nt.select("open")&&Nt.select("activeTriggerId")==null&&Nt.update({activeTriggerId:Lt,activeTriggerElement:Br,closeDelay:_t}),Dr},[Ht,_t,Nt,Lt]),wn=reactExports.useRef(null),Qn=reactExports.useCallback(Br=>{wn.current=Br,Nt.set("activeTriggerElement",Br)},[Nt]),Jt=useMenuSubmenuRootContext();if(!Jt?.parentMenu)throw new Error(formatErrorMessage(37));Nt.useSyncedValue("closeDelay",_t);const Gn=Jt.parentMenu,Jn=Gn.useState("itemProps"),Vn=Gn.useState("isActive",$t.index),Fn=reactExports.useMemo(()=>({type:"submenu-trigger",setActive(){Gn.set("activeIndex",$t.index)}}),[Gn,$t.index]),Xn=Nt.useState("disabled"),Ar=Qt||Xn,{getItemProps:Yn,itemRef:lr}=useMenuItem({closeOnClick:!1,disabled:Ar,highlighted:Vn,id:Lt,store:Nt,typingRef:Gn.context.typingRef,nativeButton:kt,itemMetadata:Fn,nodeId:Pt?.context.nodeId}),nr=Nt.useState("hoverEnabled"),mr=Gn.useState("allowMouseEnter"),Zn=useHoverReferenceInteraction(jt,{enabled:nr&&Et&&!Ar,handleClose:safePolygon({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:Ot,delay:mr?{open:Ot,close:_t}:0,triggerElementRef:wn,externalTree:Zt,isClosing:()=>Nt.select("transitionStatus")==="ending"}),ur=useClick(jt,{enabled:!Ar,event:"mousedown",toggle:!Et,ignoreMouse:Et,stickIfOpen:!1}),yr=useInteractions([ur]),ir=Nt.useState("triggerProps",!0);return delete ir.id,useRenderElement("div",ot,{state:{disabled:Ar,highlighted:Vn,open:qt},stateAttributesMapping:triggerOpenStateMapping$1,props:[yr.getReferenceProps(),Zn,ir,Jn,{tabIndex:qt||Vn?0:-1,onBlur(){Vn&&Gn.set("activeIndex",null)}},St,Yn],ref:[ut,$t.ref,lr,Wt,Qn]})});function useCombinedRefs(){for(var At=arguments.length,ot=new Array(At),ut=0;ut<At;ut++)ot[ut]=arguments[ut];return reactExports.useMemo(()=>pt=>{ot.forEach(ft=>ft(pt))},ot)}const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function isWindow(At){const ot=Object.prototype.toString.call(At);return ot==="[object Window]"||ot==="[object global]"}function isNode(At){return"nodeType"in At}function getWindow(At){var ot,ut;return At?isWindow(At)?At:isNode(At)&&(ot=(ut=At.ownerDocument)==null?void 0:ut.defaultView)!=null?ot:window:window}function isDocument(At){const{Document:ot}=getWindow(At);return At instanceof ot}function isHTMLElement(At){return isWindow(At)?!1:At instanceof getWindow(At).HTMLElement}function isSVGElement$1(At){return At instanceof getWindow(At).SVGElement}function getOwnerDocument(At){return At?isWindow(At)?At.document:isNode(At)?isDocument(At)?At:isHTMLElement(At)||isSVGElement$1(At)?At.ownerDocument:document:document:document}const useIsomorphicLayoutEffect$2=canUseDOM?reactExports.useLayoutEffect:reactExports.useEffect;function useEvent(At){const ot=reactExports.useRef(At);return useIsomorphicLayoutEffect$2(()=>{ot.current=At}),reactExports.useCallback(function(){for(var ut=arguments.length,pt=new Array(ut),ft=0;ft<ut;ft++)pt[ft]=arguments[ft];return ot.current==null?void 0:ot.current(...pt)},[])}function useInterval(){const At=reactExports.useRef(null),ot=reactExports.useCallback((pt,ft)=>{At.current=setInterval(pt,ft)},[]),ut=reactExports.useCallback(()=>{At.current!==null&&(clearInterval(At.current),At.current=null)},[]);return[ot,ut]}function useLatestValue(At,ot){ot===void 0&&(ot=[At]);const ut=reactExports.useRef(At);return useIsomorphicLayoutEffect$2(()=>{ut.current!==At&&(ut.current=At)},ot),ut}function useLazyMemo(At,ot){const ut=reactExports.useRef();return reactExports.useMemo(()=>{const pt=At(ut.current);return ut.current=pt,pt},[...ot])}function useNodeRef(At){const ot=useEvent(At),ut=reactExports.useRef(null),pt=reactExports.useCallback(ft=>{ft!==ut.current&&ot?.(ft,ut.current),ut.current=ft},[]);return[ut,pt]}function usePrevious(At){const ot=reactExports.useRef();return reactExports.useEffect(()=>{ot.current=At},[At]),ot.current}let ids={};function useUniqueId(At,ot){return reactExports.useMemo(()=>{if(ot)return ot;const ut=ids[At]==null?0:ids[At]+1;return ids[At]=ut,At+"-"+ut},[At,ot])}function createAdjustmentFn(At){return function(ot){for(var ut=arguments.length,pt=new Array(ut>1?ut-1:0),ft=1;ft<ut;ft++)pt[ft-1]=arguments[ft];return pt.reduce((ht,yt)=>{const kt=Object.entries(yt);for(const[Et,Ot]of kt){const _t=ht[Et];_t!=null&&(ht[Et]=_t+At*Ot)}return ht},{...ot})}}const add$2=createAdjustmentFn(1),subtract=createAdjustmentFn(-1);function hasViewportRelativeCoordinates(At){return"clientX"in At&&"clientY"in At}function isKeyboardEvent(At){if(!At)return!1;const{KeyboardEvent:ot}=getWindow(At.target);return ot&&At instanceof ot}function isTouchEvent(At){if(!At)return!1;const{TouchEvent:ot}=getWindow(At.target);return ot&&At instanceof ot}function getEventCoordinates(At){if(isTouchEvent(At)){if(At.touches&&At.touches.length){const{clientX:ot,clientY:ut}=At.touches[0];return{x:ot,y:ut}}else if(At.changedTouches&&At.changedTouches.length){const{clientX:ot,clientY:ut}=At.changedTouches[0];return{x:ot,y:ut}}}return hasViewportRelativeCoordinates(At)?{x:At.clientX,y:At.clientY}:null}const CSS$1=Object.freeze({Translate:{toString(At){if(!At)return;const{x:ot,y:ut}=At;return"translate3d("+(ot?Math.round(ot):0)+"px, "+(ut?Math.round(ut):0)+"px, 0)"}},Scale:{toString(At){if(!At)return;const{scaleX:ot,scaleY:ut}=At;return"scaleX("+ot+") scaleY("+ut+")"}},Transform:{toString(At){if(At)return[CSS$1.Translate.toString(At),CSS$1.Scale.toString(At)].join(" ")}},Transition:{toString(At){let{property:ot,duration:ut,easing:pt}=At;return ot+" "+ut+"ms "+pt}}}),SELECTOR="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function findFirstFocusableNode(At){return At.matches(SELECTOR)?At:At.querySelector(SELECTOR)}const hiddenStyles={display:"none"};function HiddenText(At){let{id:ot,value:ut}=At;return React.createElement("div",{id:ot,style:hiddenStyles},ut)}function LiveRegion(At){let{id:ot,announcement:ut,ariaLiveType:pt="assertive"}=At;const ft={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return React.createElement("div",{id:ot,style:ft,role:"status","aria-live":pt,"aria-atomic":!0},ut)}function useAnnouncement(){const[At,ot]=reactExports.useState("");return{announce:reactExports.useCallback(pt=>{pt!=null&&ot(pt)},[]),announcement:At}}const DndMonitorContext=reactExports.createContext(null);function useDndMonitor(At){const ot=reactExports.useContext(DndMonitorContext);reactExports.useEffect(()=>{if(!ot)throw new Error("useDndMonitor must be used within a children of <DndContext>");return ot(At)},[At,ot])}function useDndMonitorProvider(){const[At]=reactExports.useState(()=>new Set),ot=reactExports.useCallback(pt=>(At.add(pt),()=>At.delete(pt)),[At]);return[reactExports.useCallback(pt=>{let{type:ft,event:ht}=pt;At.forEach(yt=>{var kt;return(kt=yt[ft])==null?void 0:kt.call(yt,ht)})},[At]),ot]}const defaultScreenReaderInstructions={draggable:`
|
|
19
11
|
To pick up a draggable item, press the space bar.
|
|
20
12
|
While dragging, use the arrow keys to move the item.
|
|
21
13
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
@@ -4094,4 +4086,4 @@ Example:
|
|
|
4094
4086
|
For tests, pass a Ghostty instance directly:
|
|
4095
4087
|
import { Ghostty, Terminal } from "ghostty-web";
|
|
4096
4088
|
const ghostty = await Ghostty.load();
|
|
4097
|
-
const term = new Terminal({ ghostty });`)}const e={},__viteBrowserExternal2447137e=Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));export{searchKeymap as $,useShallow as A,EditorView as B,CSS$1 as C,DragOverlay as D,EditorState as E,FileDiff as F,gutters as G,Compartment as H,lineNumbers as I,history as J,indentUnit as K,keymap as L,indentWithTab as M,defaultKeymap as N,historyKeymap as O,PointerSensor as P,searchPanelOpen as Q,React as R,SortableContext as S,search$2 as T,ViewPlugin as U,VirtualizedFileDiff as V,WorkerUrl as W,RangeSetBuilder as X,Decoration as Y,StateField as Z,__vitePreload as _,useSensor as a,DialogPopup as a$,forceParsing as a0,openSearchPanel as a1,closeSearchPanel as a2,WidgetType as a3,EditorSelection as a4,StreamLanguage as a5,shell as a6,python$4 as a7,markdown$2 as a8,html$5 as a9,TooltipTrigger as aA,TooltipPopup as aB,TooltipProvider as aC,TooltipArrow as aD,TooltipPortal as aE,TooltipPositioner as aF,MenuRoot as aG,MenuTrigger as aH,MenuPopup as aI,MenuItem as aJ,Separator as aK,MenuRadioGroup as aL,MenuRadioItem as aM,MenuSubmenuRoot as aN,MenuSubmenuTrigger as aO,MenuPositioner as aP,MenuPortal as aQ,MenuRadioItemIndicator as aR,createOpencodeClient as aS,Toaster as aT,toast as aU,useStore as aV,DialogBackdrop as aW,DialogTitle$1 as aX,DialogDescription$1 as aY,DialogRoot as aZ,DialogClose$1 as a_,css$4 as aa,json$3 as ab,javascript$4 as ac,syntaxHighlighting as ad,HighlightStyle as ae,tags$1 as af,LanguageDescription as ag,languages as ah,defaultHighlightStyle as ai,classHighlighter as aj,File$1 as ak,convertFileSrc as al,highlighter as am,QRCode as an,useDraggable as ao,useDroppable as ap,KeyboardSensor as aq,sortableKeyboardCoordinates as ar,useMotionValue as as,animate as at,motion as au,clientExports as av,Fuse as aw,twMerge as ax,clsx as ay,TooltipRoot as az,useSortable as b,DialogPortal$1 as b0,cva as b1,CheckboxIndicator as b2,CheckboxRoot as b3,SelectRoot as b4,SelectTrigger as b5,SelectValue as b6,SelectPopup as b7,SelectItem as b8,SelectGroup as b9,
|
|
4089
|
+
const term = new Terminal({ ghostty });`)}const e={},__viteBrowserExternal2447137e=Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));export{searchKeymap as $,useShallow as A,EditorView as B,CSS$1 as C,DragOverlay as D,EditorState as E,FileDiff as F,gutters as G,Compartment as H,lineNumbers as I,history as J,indentUnit as K,keymap as L,indentWithTab as M,defaultKeymap as N,historyKeymap as O,PointerSensor as P,searchPanelOpen as Q,React as R,SortableContext as S,search$2 as T,ViewPlugin as U,VirtualizedFileDiff as V,WorkerUrl as W,RangeSetBuilder as X,Decoration as Y,StateField as Z,__vitePreload as _,useSensor as a,DialogPopup as a$,forceParsing as a0,openSearchPanel as a1,closeSearchPanel as a2,WidgetType as a3,EditorSelection as a4,StreamLanguage as a5,shell as a6,python$4 as a7,markdown$2 as a8,html$5 as a9,TooltipTrigger as aA,TooltipPopup as aB,TooltipProvider as aC,TooltipArrow as aD,TooltipPortal as aE,TooltipPositioner as aF,MenuRoot as aG,MenuTrigger as aH,MenuPopup as aI,MenuItem as aJ,Separator as aK,MenuRadioGroup as aL,MenuRadioItem as aM,MenuSubmenuRoot as aN,MenuSubmenuTrigger as aO,MenuPositioner as aP,MenuPortal as aQ,MenuRadioItemIndicator as aR,createOpencodeClient as aS,Toaster as aT,toast as aU,useStore as aV,DialogBackdrop as aW,DialogTitle$1 as aX,DialogDescription$1 as aY,DialogRoot as aZ,DialogClose$1 as a_,css$4 as aa,json$3 as ab,javascript$4 as ac,syntaxHighlighting as ad,HighlightStyle as ae,tags$1 as af,LanguageDescription as ag,languages as ah,defaultHighlightStyle as ai,classHighlighter as aj,File$1 as ak,convertFileSrc as al,highlighter as am,QRCode as an,useDraggable as ao,useDroppable as ap,KeyboardSensor as aq,sortableKeyboardCoordinates as ar,useMotionValue as as,animate as at,motion as au,clientExports as av,Fuse as aw,twMerge as ax,clsx as ay,TooltipRoot as az,useSortable as b,DialogPortal$1 as b0,cva as b1,CheckboxIndicator as b2,CheckboxRoot as b3,SelectRoot as b4,SelectTrigger as b5,SelectValue as b6,SelectPopup as b7,SelectItem as b8,SelectGroup as b9,remarkGfm as bA,remarkMath as bB,rehypeKatex as bC,renderMermaidSVG as bD,renderMermaidASCII as bE,Prism$1 as bF,workboxWindow_prod_es5 as bG,index$m as bH,core$1 as bI,window$1 as bJ,app as bK,webviewWindow as bL,transformers as bM,SelectGroupLabel as ba,SelectIcon as bb,SelectPositioner as bc,SelectPortal as bd,SelectItemIndicator as be,SelectItemText as bf,registerCustomTheme as bg,startRegistration as bh,WebAuthnAbortService as bi,WebAuthnError as bj,startAuthentication as bk,PatchDiff as bl,PopoverTrigger as bm,PopoverPositioner as bn,PopoverPopup as bo,PopoverPortal as bp,PopoverRoot as bq,toPng as br,measureElement as bs,browserSupportsWebAuthn as bt,IA as bu,DA as bv,q as bw,g$1 as bx,pr as by,Markdown as bz,compilerRuntimeExports as c,horizontalListSortingStrategy as d,DndContext as e,closestCenter as f,create$1 as g,heic2any$1 as h,devtools as i,jsxRuntimeExports as j,SwitchThumb as k,SwitchRoot as l,createJSONStorage as m,CollapsibleRoot as n,CollapsibleTrigger as o,persist as p,CollapsiblePanel as q,reactExports as r,arrayMove as s,_e$2 as t,useSensors as u,verticalListSortingStrategy as v,useVirtualizer$1 as w,reactDomExports as x,WorkerPoolManager as y,Virtualizer as z};
|