@tanstack/cta-ui 0.36.2 → 0.37.2

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.
@@ -47,107 +47,107 @@ function U3(n,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&
47
47
  Error generating stack: `+f.message+`
48
48
  `+f.stack}}function ii(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function xb(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function zE(o){var l=xb(o)?"checked":"value",f=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),d=""+o[l];if(!o.hasOwnProperty(l)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var g=f.get,y=f.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return g.call(this)},set:function(Q){d=""+Q,y.call(this,Q)}}),Object.defineProperty(o,l,{enumerable:f.enumerable}),{getValue:function(){return d},setValue:function(Q){d=""+Q},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function ef(o){o._valueTracker||(o._valueTracker=zE(o))}function Sb(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var f=l.getValue(),d="";return o&&(d=xb(o)?o.checked?"true":"false":o.value),o=d,o!==f?(l.setValue(o),!0):!1}function tf(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var qE=/[\n"\\]/g;function ri(o){return o.replace(qE,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Dp(o,l,f,d,g,y,Q,P){o.name="",Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"?o.type=Q:o.removeAttribute("type"),l!=null?Q==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+ii(l)):o.value!==""+ii(l)&&(o.value=""+ii(l)):Q!=="submit"&&Q!=="reset"||o.removeAttribute("value"),l!=null?jp(o,Q,ii(l)):f!=null?jp(o,Q,ii(f)):d!=null&&o.removeAttribute("value"),g==null&&y!=null&&(o.defaultChecked=!!y),g!=null&&(o.checked=g&&typeof g!="function"&&typeof g!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?o.name=""+ii(P):o.removeAttribute("name")}function wb(o,l,f,d,g,y,Q,P){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(o.type=y),l!=null||f!=null){if(!(y!=="submit"&&y!=="reset"||l!=null))return;f=f!=null?""+ii(f):"",l=l!=null?""+ii(l):f,P||l===o.value||(o.value=l),o.defaultValue=l}d=d??g,d=typeof d!="function"&&typeof d!="symbol"&&!!d,o.checked=P?o.checked:!!d,o.defaultChecked=!!d,Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"&&(o.name=Q)}function jp(o,l,f){l==="number"&&tf(o.ownerDocument)===o||o.defaultValue===""+f||(o.defaultValue=""+f)}function Wo(o,l,f,d){if(o=o.options,l){l={};for(var g=0;g<f.length;g++)l["$"+f[g]]=!0;for(f=0;f<o.length;f++)g=l.hasOwnProperty("$"+o[f].value),o[f].selected!==g&&(o[f].selected=g),g&&d&&(o[f].defaultSelected=!0)}else{for(f=""+ii(f),l=null,g=0;g<o.length;g++){if(o[g].value===f){o[g].selected=!0,d&&(o[g].defaultSelected=!0);return}l!==null||o[g].disabled||(l=o[g])}l!==null&&(l.selected=!0)}}function kb(o,l,f){if(l!=null&&(l=""+ii(l),l!==o.value&&(o.value=l),f==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=f!=null?""+ii(f):""}function Qb(o,l,f,d){if(l==null){if(d!=null){if(f!=null)throw Error(i(92));if(ce(d)){if(1<d.length)throw Error(i(93));d=d[0]}f=d}f==null&&(f=""),l=f}f=ii(l),o.defaultValue=f,d=o.textContent,d===f&&d!==""&&d!==null&&(o.value=d)}function Ho(o,l){if(l){var f=o.firstChild;if(f&&f===o.lastChild&&f.nodeType===3){f.nodeValue=l;return}}o.textContent=l}var BE=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 Cb(o,l,f){var d=l.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?d?o.setProperty(l,""):l==="float"?o.cssFloat="":o[l]="":d?o.setProperty(l,f):typeof f!="number"||f===0||BE.has(l)?l==="float"?o.cssFloat=f:o[l]=(""+f).trim():o[l]=f+"px"}function Tb(o,l,f){if(l!=null&&typeof l!="object")throw Error(i(62));if(o=o.style,f!=null){for(var d in f)!f.hasOwnProperty(d)||l!=null&&l.hasOwnProperty(d)||(d.indexOf("--")===0?o.setProperty(d,""):d==="float"?o.cssFloat="":o[d]="");for(var g in l)d=l[g],l.hasOwnProperty(g)&&f[g]!==d&&Cb(o,g,d)}else for(var y in l)l.hasOwnProperty(y)&&Cb(o,y,l[y])}function Np(o){if(o.indexOf("-")===-1)return!1;switch(o){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 VE=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"]]),YE=/^[\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 nf(o){return YE.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}var Zp=null;function Xp(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Fo=null,Ko=null;function Pb(o){var l=Yo(o);if(l&&(o=l.stateNode)){var f=o[lt]||null;e:switch(o=l.stateNode,l.type){case"input":if(Dp(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),l=f.name,f.type==="radio"&&l!=null){for(f=o;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+ri(""+l)+'"][type="radio"]'),l=0;l<f.length;l++){var d=f[l];if(d!==o&&d.form===o.form){var g=d[lt]||null;if(!g)throw Error(i(90));Dp(d,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(l=0;l<f.length;l++)d=f[l],d.form===o.form&&Sb(d)}break e;case"textarea":kb(o,f.value,f.defaultValue);break e;case"select":l=f.value,l!=null&&Wo(o,!!f.multiple,l,!1)}}}var Lp=!1;function Ab(o,l,f){if(Lp)return o(l,f);Lp=!0;try{var d=o(l);return d}finally{if(Lp=!1,(Fo!==null||Ko!==null)&&(qf(),Fo&&(l=Fo,o=Ko,Ko=Fo=null,Pb(l),o)))for(l=0;l<o.length;l++)Pb(o[l])}}function Rl(o,l){var f=o.stateNode;if(f===null)return null;var d=f[lt]||null;if(d===null)return null;f=d[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(o=o.type,d=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!d;break e;default:o=!1}if(o)return null;if(f&&typeof f!="function")throw Error(i(231,l,typeof f));return f}var Pr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zp=!1;if(Pr)try{var $l={};Object.defineProperty($l,"passive",{get:function(){zp=!0}}),window.addEventListener("test",$l,$l),window.removeEventListener("test",$l,$l)}catch{zp=!1}var os=null,qp=null,rf=null;function Mb(){if(rf)return rf;var o,l=qp,f=l.length,d,g="value"in os?os.value:os.textContent,y=g.length;for(o=0;o<f&&l[o]===g[o];o++);var Q=f-o;for(d=1;d<=Q&&l[f-d]===g[y-d];d++);return rf=g.slice(o,1<d?1-d:void 0)}function sf(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function of(){return!0}function Rb(){return!1}function wn(o){function l(f,d,g,y,Q){this._reactName=f,this._targetInst=g,this.type=d,this.nativeEvent=y,this.target=Q,this.currentTarget=null;for(var P in o)o.hasOwnProperty(P)&&(f=o[P],this[P]=f?f(y):y[P]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?of:Rb,this.isPropagationStopped=Rb,this}return p(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=of)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=of)},persist:function(){},isPersistent:of}),l}var Fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},af=wn(Fs),El=p({},Fs,{view:0,detail:0}),UE=wn(El),Bp,Vp,_l,lf=p({},El,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Up,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==_l&&(_l&&o.type==="mousemove"?(Bp=o.screenX-_l.screenX,Vp=o.screenY-_l.screenY):Vp=Bp=0,_l=o),Bp)},movementY:function(o){return"movementY"in o?o.movementY:Vp}}),$b=wn(lf),GE=p({},lf,{dataTransfer:0}),IE=wn(GE),WE=p({},El,{relatedTarget:0}),Yp=wn(WE),HE=p({},Fs,{animationName:0,elapsedTime:0,pseudoElement:0}),FE=wn(HE),KE=p({},Fs,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),JE=wn(KE),e5=p({},Fs,{data:0}),Eb=wn(e5),t5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n5={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"},i5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r5(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=i5[o])?!!l[o]:!1}function Up(){return r5}var s5=p({},El,{key:function(o){if(o.key){var l=t5[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=sf(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?n5[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Up,charCode:function(o){return o.type==="keypress"?sf(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?sf(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),o5=wn(s5),a5=p({},lf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_b=wn(a5),l5=p({},El,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Up}),c5=wn(l5),u5=p({},Fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),f5=wn(u5),h5=p({},lf,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),d5=wn(h5),p5=p({},Fs,{newState:0,oldState:0}),m5=wn(p5),g5=[9,13,27,32],Gp=Pr&&"CompositionEvent"in window,Dl=null;Pr&&"documentMode"in document&&(Dl=document.documentMode);var O5=Pr&&"TextEvent"in window&&!Dl,Db=Pr&&(!Gp||Dl&&8<Dl&&11>=Dl),jb=" ",Nb=!1;function Zb(o,l){switch(o){case"keyup":return g5.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xb(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Jo=!1;function y5(o,l){switch(o){case"compositionend":return Xb(l);case"keypress":return l.which!==32?null:(Nb=!0,jb);case"textInput":return o=l.data,o===jb&&Nb?null:o;default:return null}}function v5(o,l){if(Jo)return o==="compositionend"||!Gp&&Zb(o,l)?(o=Mb(),rf=qp=os=null,Jo=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Db&&l.locale!=="ko"?null:l.data;default:return null}}var b5={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 Lb(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!b5[o.type]:l==="textarea"}function zb(o,l,f,d){Fo?Ko?Ko.push(d):Ko=[d]:Fo=d,l=If(l,"onChange"),0<l.length&&(f=new af("onChange","change",null,f,d),o.push({event:f,listeners:l}))}var jl=null,Nl=null;function x5(o){xS(o,0)}function cf(o){var l=Ml(o);if(Sb(l))return o}function qb(o,l){if(o==="change")return l}var Bb=!1;if(Pr){var Ip;if(Pr){var Wp="oninput"in document;if(!Wp){var Vb=document.createElement("div");Vb.setAttribute("oninput","return;"),Wp=typeof Vb.oninput=="function"}Ip=Wp}else Ip=!1;Bb=Ip&&(!document.documentMode||9<document.documentMode)}function Yb(){jl&&(jl.detachEvent("onpropertychange",Ub),Nl=jl=null)}function Ub(o){if(o.propertyName==="value"&&cf(Nl)){var l=[];zb(l,Nl,o,Xp(o)),Ab(x5,l)}}function S5(o,l,f){o==="focusin"?(Yb(),jl=l,Nl=f,jl.attachEvent("onpropertychange",Ub)):o==="focusout"&&Yb()}function w5(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return cf(Nl)}function k5(o,l){if(o==="click")return cf(l)}function Q5(o,l){if(o==="input"||o==="change")return cf(l)}function C5(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var Nn=typeof Object.is=="function"?Object.is:C5;function Zl(o,l){if(Nn(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var f=Object.keys(o),d=Object.keys(l);if(f.length!==d.length)return!1;for(d=0;d<f.length;d++){var g=f[d];if(!me.call(l,g)||!Nn(o[g],l[g]))return!1}return!0}function Gb(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Ib(o,l){var f=Gb(o);o=0;for(var d;f;){if(f.nodeType===3){if(d=o+f.textContent.length,o<=l&&d>=l)return{node:f,offset:l-o};o=d}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=Gb(f)}}function Wb(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?Wb(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Hb(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=tf(o.document);l instanceof o.HTMLIFrameElement;){try{var f=typeof l.contentWindow.location.href=="string"}catch{f=!1}if(f)o=l.contentWindow;else break;l=tf(o.document)}return l}function Hp(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}var T5=Pr&&"documentMode"in document&&11>=document.documentMode,ea=null,Fp=null,Xl=null,Kp=!1;function Fb(o,l,f){var d=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Kp||ea==null||ea!==tf(d)||(d=ea,"selectionStart"in d&&Hp(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Xl&&Zl(Xl,d)||(Xl=d,d=If(Fp,"onSelect"),0<d.length&&(l=new af("onSelect","select",null,l,f),o.push({event:l,listeners:d}),l.target=ea)))}function Ks(o,l){var f={};return f[o.toLowerCase()]=l.toLowerCase(),f["Webkit"+o]="webkit"+l,f["Moz"+o]="moz"+l,f}var ta={animationend:Ks("Animation","AnimationEnd"),animationiteration:Ks("Animation","AnimationIteration"),animationstart:Ks("Animation","AnimationStart"),transitionrun:Ks("Transition","TransitionRun"),transitionstart:Ks("Transition","TransitionStart"),transitioncancel:Ks("Transition","TransitionCancel"),transitionend:Ks("Transition","TransitionEnd")},Jp={},Kb={};Pr&&(Kb=document.createElement("div").style,"AnimationEvent"in window||(delete ta.animationend.animation,delete ta.animationiteration.animation,delete ta.animationstart.animation),"TransitionEvent"in window||delete ta.transitionend.transition);function Js(o){if(Jp[o])return Jp[o];if(!ta[o])return o;var l=ta[o],f;for(f in l)if(l.hasOwnProperty(f)&&f in Kb)return Jp[o]=l[f];return o}var Jb=Js("animationend"),e1=Js("animationiteration"),t1=Js("animationstart"),P5=Js("transitionrun"),A5=Js("transitionstart"),M5=Js("transitioncancel"),n1=Js("transitionend"),i1=new Map,em="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(" ");em.push("scrollEnd");function Ti(o,l){i1.set(o,l),Hs(l,[o])}var r1=new WeakMap;function si(o,l){if(typeof o=="object"&&o!==null){var f=r1.get(o);return f!==void 0?f:(l={value:o,source:l,stack:bb(l)},r1.set(o,l),l)}return{value:o,source:l,stack:bb(l)}}var oi=[],na=0,tm=0;function uf(){for(var o=na,l=tm=na=0;l<o;){var f=oi[l];oi[l++]=null;var d=oi[l];oi[l++]=null;var g=oi[l];oi[l++]=null;var y=oi[l];if(oi[l++]=null,d!==null&&g!==null){var Q=d.pending;Q===null?g.next=g:(g.next=Q.next,Q.next=g),d.pending=g}y!==0&&s1(f,g,y)}}function ff(o,l,f,d){oi[na++]=o,oi[na++]=l,oi[na++]=f,oi[na++]=d,tm|=d,o.lanes|=d,o=o.alternate,o!==null&&(o.lanes|=d)}function nm(o,l,f,d){return ff(o,l,f,d),hf(o)}function ia(o,l){return ff(o,null,null,l),hf(o)}function s1(o,l,f){o.lanes|=f;var d=o.alternate;d!==null&&(d.lanes|=f);for(var g=!1,y=o.return;y!==null;)y.childLanes|=f,d=y.alternate,d!==null&&(d.childLanes|=f),y.tag===22&&(o=y.stateNode,o===null||o._visibility&1||(g=!0)),o=y,y=y.return;return o.tag===3?(y=o.stateNode,g&&l!==null&&(g=31-Qt(f),o=y.hiddenUpdates,d=o[g],d===null?o[g]=[l]:d.push(l),l.lane=f|536870912),y):null}function hf(o){if(50<uc)throw uc=0,lg=null,Error(i(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var ra={};function R5(o,l,f,d){this.tag=o,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zn(o,l,f,d){return new R5(o,l,f,d)}function im(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Ar(o,l){var f=o.alternate;return f===null?(f=Zn(o.tag,l,o.key,o.mode),f.elementType=o.elementType,f.type=o.type,f.stateNode=o.stateNode,f.alternate=o,o.alternate=f):(f.pendingProps=l,f.type=o.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=o.flags&65011712,f.childLanes=o.childLanes,f.lanes=o.lanes,f.child=o.child,f.memoizedProps=o.memoizedProps,f.memoizedState=o.memoizedState,f.updateQueue=o.updateQueue,l=o.dependencies,f.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},f.sibling=o.sibling,f.index=o.index,f.ref=o.ref,f.refCleanup=o.refCleanup,f}function o1(o,l){o.flags&=65011714;var f=o.alternate;return f===null?(o.childLanes=0,o.lanes=l,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=f.childLanes,o.lanes=f.lanes,o.child=f.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=f.memoizedProps,o.memoizedState=f.memoizedState,o.updateQueue=f.updateQueue,o.type=f.type,l=f.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),o}function df(o,l,f,d,g,y){var Q=0;if(d=o,typeof o=="function")im(o)&&(Q=1);else if(typeof o=="string")Q=E3(o,f,oe.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case Y:return o=Zn(31,f,l,g),o.elementType=Y,o.lanes=y,o;case b:return eo(f.children,g,y,l);case x:Q=8,g|=24;break;case w:return o=Zn(12,f,l,g|2),o.elementType=w,o.lanes=y,o;case R:return o=Zn(13,f,l,g),o.elementType=R,o.lanes=y,o;case _:return o=Zn(19,f,l,g),o.elementType=_,o.lanes=y,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case k:case A:Q=10;break e;case T:Q=9;break e;case $:Q=11;break e;case D:Q=14;break e;case j:Q=16,d=null;break e}Q=29,f=Error(i(130,o===null?"null":typeof o,"")),d=null}return l=Zn(Q,f,l,g),l.elementType=o,l.type=d,l.lanes=y,l}function eo(o,l,f,d){return o=Zn(7,o,d,l),o.lanes=f,o}function rm(o,l,f){return o=Zn(6,o,null,l),o.lanes=f,o}function sm(o,l,f){return l=Zn(4,o.children!==null?o.children:[],o.key,l),l.lanes=f,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var sa=[],oa=0,pf=null,mf=0,ai=[],li=0,to=null,Mr=1,Rr="";function no(o,l){sa[oa++]=mf,sa[oa++]=pf,pf=o,mf=l}function a1(o,l,f){ai[li++]=Mr,ai[li++]=Rr,ai[li++]=to,to=o;var d=Mr;o=Rr;var g=32-Qt(d)-1;d&=~(1<<g),f+=1;var y=32-Qt(l)+g;if(30<y){var Q=g-g%5;y=(d&(1<<Q)-1).toString(32),d>>=Q,g-=Q,Mr=1<<32-Qt(l)+g|f<<g|d,Rr=y+o}else Mr=1<<y|f<<g|d,Rr=o}function om(o){o.return!==null&&(no(o,1),a1(o,1,0))}function am(o){for(;o===pf;)pf=sa[--oa],sa[oa]=null,mf=sa[--oa],sa[oa]=null;for(;o===to;)to=ai[--li],ai[li]=null,Rr=ai[--li],ai[li]=null,Mr=ai[--li],ai[li]=null}var On=null,bt=null,Ge=!1,io=null,Bi=!1,lm=Error(i(519));function ro(o){var l=Error(i(418,""));throw ql(si(l,o)),lm}function l1(o){var l=o.stateNode,f=o.type,d=o.memoizedProps;switch(l[Tt]=o,l[lt]=d,f){case"dialog":Ze("cancel",l),Ze("close",l);break;case"iframe":case"object":case"embed":Ze("load",l);break;case"video":case"audio":for(f=0;f<hc.length;f++)Ze(hc[f],l);break;case"source":Ze("error",l);break;case"img":case"image":case"link":Ze("error",l),Ze("load",l);break;case"details":Ze("toggle",l);break;case"input":Ze("invalid",l),wb(l,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0),ef(l);break;case"select":Ze("invalid",l);break;case"textarea":Ze("invalid",l),Qb(l,d.value,d.defaultValue,d.children),ef(l)}f=d.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||l.textContent===""+f||d.suppressHydrationWarning===!0||QS(l.textContent,f)?(d.popover!=null&&(Ze("beforetoggle",l),Ze("toggle",l)),d.onScroll!=null&&Ze("scroll",l),d.onScrollEnd!=null&&Ze("scrollend",l),d.onClick!=null&&(l.onclick=Wf),l=!0):l=!1,l||ro(o)}function c1(o){for(On=o.return;On;)switch(On.tag){case 5:case 13:Bi=!1;return;case 27:case 3:Bi=!0;return;default:On=On.return}}function Ll(o){if(o!==On)return!1;if(!Ge)return c1(o),Ge=!0,!1;var l=o.tag,f;if((f=l!==3&&l!==27)&&((f=l===5)&&(f=o.type,f=!(f!=="form"&&f!=="button")||kg(o.type,o.memoizedProps)),f=!f),f&&bt&&ro(o),c1(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));e:{for(o=o.nextSibling,l=0;o;){if(o.nodeType===8)if(f=o.data,f==="/$"){if(l===0){bt=Ai(o.nextSibling);break e}l--}else f!=="$"&&f!=="$!"&&f!=="$?"||l++;o=o.nextSibling}bt=null}}else l===27?(l=bt,Ss(o.type)?(o=Pg,Pg=null,bt=o):bt=l):bt=On?Ai(o.stateNode.nextSibling):null;return!0}function zl(){bt=On=null,Ge=!1}function u1(){var o=io;return o!==null&&(Cn===null?Cn=o:Cn.push.apply(Cn,o),io=null),o}function ql(o){io===null?io=[o]:io.push(o)}var cm=q(null),so=null,$r=null;function as(o,l,f){F(cm,l._currentValue),l._currentValue=f}function Er(o){o._currentValue=cm.current,te(cm)}function um(o,l,f){for(;o!==null;){var d=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,d!==null&&(d.childLanes|=l)):d!==null&&(d.childLanes&l)!==l&&(d.childLanes|=l),o===f)break;o=o.return}}function fm(o,l,f,d){var g=o.child;for(g!==null&&(g.return=o);g!==null;){var y=g.dependencies;if(y!==null){var Q=g.child;y=y.firstContext;e:for(;y!==null;){var P=y;y=g;for(var N=0;N<l.length;N++)if(P.context===l[N]){y.lanes|=f,P=y.alternate,P!==null&&(P.lanes|=f),um(y.return,f,o),d||(Q=null);break e}y=P.next}}else if(g.tag===18){if(Q=g.return,Q===null)throw Error(i(341));Q.lanes|=f,y=Q.alternate,y!==null&&(y.lanes|=f),um(Q,f,o),Q=null}else Q=g.child;if(Q!==null)Q.return=g;else for(Q=g;Q!==null;){if(Q===o){Q=null;break}if(g=Q.sibling,g!==null){g.return=Q.return,Q=g;break}Q=Q.return}g=Q}}function Bl(o,l,f,d){o=null;for(var g=l,y=!1;g!==null;){if(!y){if((g.flags&524288)!==0)y=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var Q=g.alternate;if(Q===null)throw Error(i(387));if(Q=Q.memoizedProps,Q!==null){var P=g.type;Nn(g.pendingProps.value,Q.value)||(o!==null?o.push(P):o=[P])}}else if(g===de.current){if(Q=g.alternate,Q===null)throw Error(i(387));Q.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(o!==null?o.push(yc):o=[yc])}g=g.return}o!==null&&fm(l,o,f,d),l.flags|=262144}function gf(o){for(o=o.firstContext;o!==null;){if(!Nn(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function oo(o){so=o,$r=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function cn(o){return f1(so,o)}function Of(o,l){return so===null&&oo(o),f1(o,l)}function f1(o,l){var f=l._currentValue;if(l={context:l,memoizedValue:f,next:null},$r===null){if(o===null)throw Error(i(308));$r=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else $r=$r.next=l;return f}var $5=typeof AbortController<"u"?AbortController:function(){var o=[],l=this.signal={aborted:!1,addEventListener:function(f,d){o.push(d)}};this.abort=function(){l.aborted=!0,o.forEach(function(f){return f()})}},E5=n.unstable_scheduleCallback,_5=n.unstable_NormalPriority,Bt={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hm(){return{controller:new $5,data:new Map,refCount:0}}function Vl(o){o.refCount--,o.refCount===0&&E5(_5,function(){o.controller.abort()})}var Yl=null,dm=0,aa=0,la=null;function D5(o,l){if(Yl===null){var f=Yl=[];dm=0,aa=mg(),la={status:"pending",value:void 0,then:function(d){f.push(d)}}}return dm++,l.then(h1,h1),l}function h1(){if(--dm===0&&Yl!==null){la!==null&&(la.status="fulfilled");var o=Yl;Yl=null,aa=0,la=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function j5(o,l){var f=[],d={status:"pending",value:null,reason:null,then:function(g){f.push(g)}};return o.then(function(){d.status="fulfilled",d.value=l;for(var g=0;g<f.length;g++)(0,f[g])(l)},function(g){for(d.status="rejected",d.reason=g,g=0;g<f.length;g++)(0,f[g])(void 0)}),d}var d1=Z.S;Z.S=function(o,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&D5(o,l),d1!==null&&d1(o,l)};var ao=q(null);function pm(){var o=ao.current;return o!==null?o:ct.pooledCache}function yf(o,l){l===null?F(ao,ao.current):F(ao,l.pool)}function p1(){var o=pm();return o===null?null:{parent:Bt._currentValue,pool:o}}var Ul=Error(i(460)),m1=Error(i(474)),vf=Error(i(542)),mm={then:function(){}};function g1(o){return o=o.status,o==="fulfilled"||o==="rejected"}function bf(){}function O1(o,l,f){switch(f=o[f],f===void 0?o.push(l):f!==l&&(l.then(bf,bf),l=f),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,v1(o),o;default:if(typeof l.status=="string")l.then(bf,bf);else{if(o=ct,o!==null&&100<o.shellSuspendCounter)throw Error(i(482));o=l,o.status="pending",o.then(function(d){if(l.status==="pending"){var g=l;g.status="fulfilled",g.value=d}},function(d){if(l.status==="pending"){var g=l;g.status="rejected",g.reason=d}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,v1(o),o}throw Gl=l,Ul}}var Gl=null;function y1(){if(Gl===null)throw Error(i(459));var o=Gl;return Gl=null,o}function v1(o){if(o===Ul||o===vf)throw Error(i(483))}var ls=!1;function gm(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Om(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function cs(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function us(o,l,f){var d=o.updateQueue;if(d===null)return null;if(d=d.shared,(He&2)!==0){var g=d.pending;return g===null?l.next=l:(l.next=g.next,g.next=l),d.pending=l,l=hf(o),s1(o,null,f),l}return ff(o,d,l,f),hf(o)}function Il(o,l,f){if(l=l.updateQueue,l!==null&&(l=l.shared,(f&4194048)!==0)){var d=l.lanes;d&=o.pendingLanes,f|=d,l.lanes=f,dt(o,f)}}function ym(o,l){var f=o.updateQueue,d=o.alternate;if(d!==null&&(d=d.updateQueue,f===d)){var g=null,y=null;if(f=f.firstBaseUpdate,f!==null){do{var Q={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};y===null?g=y=Q:y=y.next=Q,f=f.next}while(f!==null);y===null?g=y=l:y=y.next=l}else g=y=l;f={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:y,shared:d.shared,callbacks:d.callbacks},o.updateQueue=f;return}o=f.lastBaseUpdate,o===null?f.firstBaseUpdate=l:o.next=l,f.lastBaseUpdate=l}var vm=!1;function Wl(){if(vm){var o=la;if(o!==null)throw o}}function Hl(o,l,f,d){vm=!1;var g=o.updateQueue;ls=!1;var y=g.firstBaseUpdate,Q=g.lastBaseUpdate,P=g.shared.pending;if(P!==null){g.shared.pending=null;var N=P,V=N.next;N.next=null,Q===null?y=V:Q.next=V,Q=N;var ne=o.alternate;ne!==null&&(ne=ne.updateQueue,P=ne.lastBaseUpdate,P!==Q&&(P===null?ne.firstBaseUpdate=V:P.next=V,ne.lastBaseUpdate=N))}if(y!==null){var se=g.baseState;Q=0,ne=V=N=null,P=y;do{var G=P.lane&-536870913,H=G!==P.lane;if(H?(qe&G)===G:(d&G)===G){G!==0&&G===aa&&(vm=!0),ne!==null&&(ne=ne.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var Pe=o,Qe=P;G=l;var tt=f;switch(Qe.tag){case 1:if(Pe=Qe.payload,typeof Pe=="function"){se=Pe.call(tt,se,G);break e}se=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=Qe.payload,G=typeof Pe=="function"?Pe.call(tt,se,G):Pe,G==null)break e;se=p({},se,G);break e;case 2:ls=!0}}G=P.callback,G!==null&&(o.flags|=64,H&&(o.flags|=8192),H=g.callbacks,H===null?g.callbacks=[G]:H.push(G))}else H={lane:G,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ne===null?(V=ne=H,N=se):ne=ne.next=H,Q|=G;if(P=P.next,P===null){if(P=g.shared.pending,P===null)break;H=P,P=H.next,H.next=null,g.lastBaseUpdate=H,g.shared.pending=null}}while(!0);ne===null&&(N=se),g.baseState=N,g.firstBaseUpdate=V,g.lastBaseUpdate=ne,y===null&&(g.shared.lanes=0),ys|=Q,o.lanes=Q,o.memoizedState=se}}function b1(o,l){if(typeof o!="function")throw Error(i(191,o));o.call(l)}function x1(o,l){var f=o.callbacks;if(f!==null)for(o.callbacks=null,o=0;o<f.length;o++)b1(f[o],l)}var ca=q(null),xf=q(0);function S1(o,l){o=Lr,F(xf,o),F(ca,l),Lr=o|l.baseLanes}function bm(){F(xf,Lr),F(ca,ca.current)}function xm(){Lr=xf.current,te(ca),te(xf)}var fs=0,Ee=null,Je=null,Et=null,Sf=!1,ua=!1,lo=!1,wf=0,Fl=0,fa=null,N5=0;function Pt(){throw Error(i(321))}function Sm(o,l){if(l===null)return!1;for(var f=0;f<l.length&&f<o.length;f++)if(!Nn(o[f],l[f]))return!1;return!0}function wm(o,l,f,d,g,y){return fs=y,Ee=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Z.H=o===null||o.memoizedState===null?sx:ox,lo=!1,y=f(d,g),lo=!1,ua&&(y=k1(l,f,d,g)),w1(o),y}function w1(o){Z.H=Af;var l=Je!==null&&Je.next!==null;if(fs=0,Et=Je=Ee=null,Sf=!1,Fl=0,fa=null,l)throw Error(i(300));o===null||Wt||(o=o.dependencies,o!==null&&gf(o)&&(Wt=!0))}function k1(o,l,f,d){Ee=o;var g=0;do{if(ua&&(fa=null),Fl=0,ua=!1,25<=g)throw Error(i(301));if(g+=1,Et=Je=null,o.updateQueue!=null){var y=o.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}Z.H=V5,y=l(f,d)}while(ua);return y}function Z5(){var o=Z.H,l=o.useState()[0];return l=typeof l.then=="function"?Kl(l):l,o=o.useState()[0],(Je!==null?Je.memoizedState:null)!==o&&(Ee.flags|=1024),l}function km(){var o=wf!==0;return wf=0,o}function Qm(o,l,f){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~f}function Cm(o){if(Sf){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}Sf=!1}fs=0,Et=Je=Ee=null,ua=!1,Fl=wf=0,fa=null}function kn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Ee.memoizedState=Et=o:Et=Et.next=o,Et}function _t(){if(Je===null){var o=Ee.alternate;o=o!==null?o.memoizedState:null}else o=Je.next;var l=Et===null?Ee.memoizedState:Et.next;if(l!==null)Et=l,Je=o;else{if(o===null)throw Ee.alternate===null?Error(i(467)):Error(i(310));Je=o,o={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},Et===null?Ee.memoizedState=Et=o:Et=Et.next=o}return Et}function Tm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(o){var l=Fl;return Fl+=1,fa===null&&(fa=[]),o=O1(fa,o,l),l=Ee,(Et===null?l.memoizedState:Et.next)===null&&(l=l.alternate,Z.H=l===null||l.memoizedState===null?sx:ox),o}function kf(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Kl(o);if(o.$$typeof===A)return cn(o)}throw Error(i(438,String(o)))}function Pm(o){var l=null,f=Ee.updateQueue;if(f!==null&&(l=f.memoCache),l==null){var d=Ee.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(l={data:d.data.map(function(g){return g.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),f===null&&(f=Tm(),Ee.updateQueue=f),f.memoCache=l,f=l.data[l.index],f===void 0)for(f=l.data[l.index]=Array(o),d=0;d<o;d++)f[d]=J;return l.index++,f}function _r(o,l){return typeof l=="function"?l(o):l}function Qf(o){var l=_t();return Am(l,Je,o)}function Am(o,l,f){var d=o.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=f;var g=o.baseQueue,y=d.pending;if(y!==null){if(g!==null){var Q=g.next;g.next=y.next,y.next=Q}l.baseQueue=g=y,d.pending=null}if(y=o.baseState,g===null)o.memoizedState=y;else{l=g.next;var P=Q=null,N=null,V=l,ne=!1;do{var se=V.lane&-536870913;if(se!==V.lane?(qe&se)===se:(fs&se)===se){var G=V.revertLane;if(G===0)N!==null&&(N=N.next={lane:0,revertLane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),se===aa&&(ne=!0);else if((fs&G)===G){V=V.next,G===aa&&(ne=!0);continue}else se={lane:0,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},N===null?(P=N=se,Q=y):N=N.next=se,Ee.lanes|=G,ys|=G;se=V.action,lo&&f(y,se),y=V.hasEagerState?V.eagerState:f(y,se)}else G={lane:se,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},N===null?(P=N=G,Q=y):N=N.next=G,Ee.lanes|=se,ys|=se;V=V.next}while(V!==null&&V!==l);if(N===null?Q=y:N.next=P,!Nn(y,o.memoizedState)&&(Wt=!0,ne&&(f=la,f!==null)))throw f;o.memoizedState=y,o.baseState=Q,o.baseQueue=N,d.lastRenderedState=y}return g===null&&(d.lanes=0),[o.memoizedState,d.dispatch]}function Mm(o){var l=_t(),f=l.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=o;var d=f.dispatch,g=f.pending,y=l.memoizedState;if(g!==null){f.pending=null;var Q=g=g.next;do y=o(y,Q.action),Q=Q.next;while(Q!==g);Nn(y,l.memoizedState)||(Wt=!0),l.memoizedState=y,l.baseQueue===null&&(l.baseState=y),f.lastRenderedState=y}return[y,d]}function Q1(o,l,f){var d=Ee,g=_t(),y=Ge;if(y){if(f===void 0)throw Error(i(407));f=f()}else f=l();var Q=!Nn((Je||g).memoizedState,f);Q&&(g.memoizedState=f,Wt=!0),g=g.queue;var P=P1.bind(null,d,g,o);if(Jl(2048,8,P,[o]),g.getSnapshot!==l||Q||Et!==null&&Et.memoizedState.tag&1){if(d.flags|=2048,ha(9,Cf(),T1.bind(null,d,g,f,l),null),ct===null)throw Error(i(349));y||(fs&124)!==0||C1(d,l,f)}return f}function C1(o,l,f){o.flags|=16384,o={getSnapshot:l,value:f},l=Ee.updateQueue,l===null?(l=Tm(),Ee.updateQueue=l,l.stores=[o]):(f=l.stores,f===null?l.stores=[o]:f.push(o))}function T1(o,l,f,d){l.value=f,l.getSnapshot=d,A1(l)&&M1(o)}function P1(o,l,f){return f(function(){A1(l)&&M1(o)})}function A1(o){var l=o.getSnapshot;o=o.value;try{var f=l();return!Nn(o,f)}catch{return!0}}function M1(o){var l=ia(o,2);l!==null&&Bn(l,o,2)}function Rm(o){var l=kn();if(typeof o=="function"){var f=o;if(o=f(),lo){jn(!0);try{f()}finally{jn(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_r,lastRenderedState:o},l}function R1(o,l,f,d){return o.baseState=f,Am(o,Je,typeof d=="function"?d:_r)}function X5(o,l,f,d,g){if(Pf(o))throw Error(i(485));if(o=l.action,o!==null){var y={payload:g,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Q){y.listeners.push(Q)}};Z.T!==null?f(!0):y.isTransition=!1,d(y),f=l.pending,f===null?(y.next=l.pending=y,$1(l,y)):(y.next=f.next,l.pending=f.next=y)}}function $1(o,l){var f=l.action,d=l.payload,g=o.state;if(l.isTransition){var y=Z.T,Q={};Z.T=Q;try{var P=f(g,d),N=Z.S;N!==null&&N(Q,P),E1(o,l,P)}catch(V){$m(o,l,V)}finally{Z.T=y}}else try{y=f(g,d),E1(o,l,y)}catch(V){$m(o,l,V)}}function E1(o,l,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(d){_1(o,l,d)},function(d){return $m(o,l,d)}):_1(o,l,f)}function _1(o,l,f){l.status="fulfilled",l.value=f,D1(l),o.state=f,l=o.pending,l!==null&&(f=l.next,f===l?o.pending=null:(f=f.next,l.next=f,$1(o,f)))}function $m(o,l,f){var d=o.pending;if(o.pending=null,d!==null){d=d.next;do l.status="rejected",l.reason=f,D1(l),l=l.next;while(l!==d)}o.action=null}function D1(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function j1(o,l){return l}function N1(o,l){if(Ge){var f=ct.formState;if(f!==null){e:{var d=Ee;if(Ge){if(bt){t:{for(var g=bt,y=Bi;g.nodeType!==8;){if(!y){g=null;break t}if(g=Ai(g.nextSibling),g===null){g=null;break t}}y=g.data,g=y==="F!"||y==="F"?g:null}if(g){bt=Ai(g.nextSibling),d=g.data==="F!";break e}}ro(d)}d=!1}d&&(l=f[0])}}return f=kn(),f.memoizedState=f.baseState=l,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:j1,lastRenderedState:l},f.queue=d,f=nx.bind(null,Ee,d),d.dispatch=f,d=Rm(!1),y=Nm.bind(null,Ee,!1,d.queue),d=kn(),g={state:l,dispatch:null,action:o,pending:null},d.queue=g,f=X5.bind(null,Ee,g,y,f),g.dispatch=f,d.memoizedState=o,[l,f,!1]}function Z1(o){var l=_t();return X1(l,Je,o)}function X1(o,l,f){if(l=Am(o,l,j1)[0],o=Qf(_r)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var d=Kl(l)}catch(Q){throw Q===Ul?vf:Q}else d=l;l=_t();var g=l.queue,y=g.dispatch;return f!==l.memoizedState&&(Ee.flags|=2048,ha(9,Cf(),L5.bind(null,g,f),null)),[d,y,o]}function L5(o,l){o.action=l}function L1(o){var l=_t(),f=Je;if(f!==null)return X1(l,f,o);_t(),l=l.memoizedState,f=_t();var d=f.queue.dispatch;return f.memoizedState=o,[l,d,!1]}function ha(o,l,f,d){return o={tag:o,create:f,deps:d,inst:l,next:null},l=Ee.updateQueue,l===null&&(l=Tm(),Ee.updateQueue=l),f=l.lastEffect,f===null?l.lastEffect=o.next=o:(d=f.next,f.next=o,o.next=d,l.lastEffect=o),o}function Cf(){return{destroy:void 0,resource:void 0}}function z1(){return _t().memoizedState}function Tf(o,l,f,d){var g=kn();d=d===void 0?null:d,Ee.flags|=o,g.memoizedState=ha(1|l,Cf(),f,d)}function Jl(o,l,f,d){var g=_t();d=d===void 0?null:d;var y=g.memoizedState.inst;Je!==null&&d!==null&&Sm(d,Je.memoizedState.deps)?g.memoizedState=ha(l,y,f,d):(Ee.flags|=o,g.memoizedState=ha(1|l,y,f,d))}function q1(o,l){Tf(8390656,8,o,l)}function B1(o,l){Jl(2048,8,o,l)}function V1(o,l){return Jl(4,2,o,l)}function Y1(o,l){return Jl(4,4,o,l)}function U1(o,l){if(typeof l=="function"){o=o();var f=l(o);return function(){typeof f=="function"?f():l(null)}}if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function G1(o,l,f){f=f!=null?f.concat([o]):null,Jl(4,4,U1.bind(null,l,o),f)}function Em(){}function I1(o,l){var f=_t();l=l===void 0?null:l;var d=f.memoizedState;return l!==null&&Sm(l,d[1])?d[0]:(f.memoizedState=[o,l],o)}function W1(o,l){var f=_t();l=l===void 0?null:l;var d=f.memoizedState;if(l!==null&&Sm(l,d[1]))return d[0];if(d=o(),lo){jn(!0);try{o()}finally{jn(!1)}}return f.memoizedState=[d,l],d}function _m(o,l,f){return f===void 0||(fs&1073741824)!==0?o.memoizedState=l:(o.memoizedState=f,o=Kx(),Ee.lanes|=o,ys|=o,f)}function H1(o,l,f,d){return Nn(f,l)?f:ca.current!==null?(o=_m(o,f,d),Nn(o,l)||(Wt=!0),o):(fs&42)===0?(Wt=!0,o.memoizedState=f):(o=Kx(),Ee.lanes|=o,ys|=o,l)}function F1(o,l,f,d,g){var y=U.p;U.p=y!==0&&8>y?y:8;var Q=Z.T,P={};Z.T=P,Nm(o,!1,l,f);try{var N=g(),V=Z.S;if(V!==null&&V(P,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var ne=j5(N,d);ec(o,l,ne,qn(o))}else ec(o,l,d,qn(o))}catch(se){ec(o,l,{then:function(){},status:"rejected",reason:se},qn())}finally{U.p=y,Z.T=Q}}function z5(){}function Dm(o,l,f,d){if(o.tag!==5)throw Error(i(476));var g=K1(o).queue;F1(o,g,l,z,f===null?z5:function(){return J1(o),f(d)})}function K1(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_r,lastRenderedState:z},next:null};var f={};return l.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_r,lastRenderedState:f},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function J1(o){var l=K1(o).next.queue;ec(o,l,{},qn())}function jm(){return cn(yc)}function ex(){return _t().memoizedState}function tx(){return _t().memoizedState}function q5(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var f=qn();o=cs(f);var d=us(l,o,f);d!==null&&(Bn(d,l,f),Il(d,l,f)),l={cache:hm()},o.payload=l;return}l=l.return}}function B5(o,l,f){var d=qn();f={lane:d,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null},Pf(o)?ix(l,f):(f=nm(o,l,f,d),f!==null&&(Bn(f,o,d),rx(f,l,d)))}function nx(o,l,f){var d=qn();ec(o,l,f,d)}function ec(o,l,f,d){var g={lane:d,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null};if(Pf(o))ix(l,g);else{var y=o.alternate;if(o.lanes===0&&(y===null||y.lanes===0)&&(y=l.lastRenderedReducer,y!==null))try{var Q=l.lastRenderedState,P=y(Q,f);if(g.hasEagerState=!0,g.eagerState=P,Nn(P,Q))return ff(o,l,g,0),ct===null&&uf(),!1}catch{}finally{}if(f=nm(o,l,g,d),f!==null)return Bn(f,o,d),rx(f,l,d),!0}return!1}function Nm(o,l,f,d){if(d={lane:2,revertLane:mg(),action:d,hasEagerState:!1,eagerState:null,next:null},Pf(o)){if(l)throw Error(i(479))}else l=nm(o,f,d,2),l!==null&&Bn(l,o,2)}function Pf(o){var l=o.alternate;return o===Ee||l!==null&&l===Ee}function ix(o,l){ua=Sf=!0;var f=o.pending;f===null?l.next=l:(l.next=f.next,f.next=l),o.pending=l}function rx(o,l,f){if((f&4194048)!==0){var d=l.lanes;d&=o.pendingLanes,f|=d,l.lanes=f,dt(o,f)}}var Af={readContext:cn,use:kf,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useLayoutEffect:Pt,useInsertionEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useSyncExternalStore:Pt,useId:Pt,useHostTransitionStatus:Pt,useFormState:Pt,useActionState:Pt,useOptimistic:Pt,useMemoCache:Pt,useCacheRefresh:Pt},sx={readContext:cn,use:kf,useCallback:function(o,l){return kn().memoizedState=[o,l===void 0?null:l],o},useContext:cn,useEffect:q1,useImperativeHandle:function(o,l,f){f=f!=null?f.concat([o]):null,Tf(4194308,4,U1.bind(null,l,o),f)},useLayoutEffect:function(o,l){return Tf(4194308,4,o,l)},useInsertionEffect:function(o,l){Tf(4,2,o,l)},useMemo:function(o,l){var f=kn();l=l===void 0?null:l;var d=o();if(lo){jn(!0);try{o()}finally{jn(!1)}}return f.memoizedState=[d,l],d},useReducer:function(o,l,f){var d=kn();if(f!==void 0){var g=f(l);if(lo){jn(!0);try{f(l)}finally{jn(!1)}}}else g=l;return d.memoizedState=d.baseState=g,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:g},d.queue=o,o=o.dispatch=B5.bind(null,Ee,o),[d.memoizedState,o]},useRef:function(o){var l=kn();return o={current:o},l.memoizedState=o},useState:function(o){o=Rm(o);var l=o.queue,f=nx.bind(null,Ee,l);return l.dispatch=f,[o.memoizedState,f]},useDebugValue:Em,useDeferredValue:function(o,l){var f=kn();return _m(f,o,l)},useTransition:function(){var o=Rm(!1);return o=F1.bind(null,Ee,o.queue,!0,!1),kn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,f){var d=Ee,g=kn();if(Ge){if(f===void 0)throw Error(i(407));f=f()}else{if(f=l(),ct===null)throw Error(i(349));(qe&124)!==0||C1(d,l,f)}g.memoizedState=f;var y={value:f,getSnapshot:l};return g.queue=y,q1(P1.bind(null,d,y,o),[o]),d.flags|=2048,ha(9,Cf(),T1.bind(null,d,y,f,l),null),f},useId:function(){var o=kn(),l=ct.identifierPrefix;if(Ge){var f=Rr,d=Mr;f=(d&~(1<<32-Qt(d)-1)).toString(32)+f,l="«"+l+"R"+f,f=wf++,0<f&&(l+="H"+f.toString(32)),l+="»"}else f=N5++,l="«"+l+"r"+f.toString(32)+"»";return o.memoizedState=l},useHostTransitionStatus:jm,useFormState:N1,useActionState:N1,useOptimistic:function(o){var l=kn();l.memoizedState=l.baseState=o;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=f,l=Nm.bind(null,Ee,!0,f),f.dispatch=l,[o,l]},useMemoCache:Pm,useCacheRefresh:function(){return kn().memoizedState=q5.bind(null,Ee)}},ox={readContext:cn,use:kf,useCallback:I1,useContext:cn,useEffect:B1,useImperativeHandle:G1,useInsertionEffect:V1,useLayoutEffect:Y1,useMemo:W1,useReducer:Qf,useRef:z1,useState:function(){return Qf(_r)},useDebugValue:Em,useDeferredValue:function(o,l){var f=_t();return H1(f,Je.memoizedState,o,l)},useTransition:function(){var o=Qf(_r)[0],l=_t().memoizedState;return[typeof o=="boolean"?o:Kl(o),l]},useSyncExternalStore:Q1,useId:ex,useHostTransitionStatus:jm,useFormState:Z1,useActionState:Z1,useOptimistic:function(o,l){var f=_t();return R1(f,Je,o,l)},useMemoCache:Pm,useCacheRefresh:tx},V5={readContext:cn,use:kf,useCallback:I1,useContext:cn,useEffect:B1,useImperativeHandle:G1,useInsertionEffect:V1,useLayoutEffect:Y1,useMemo:W1,useReducer:Mm,useRef:z1,useState:function(){return Mm(_r)},useDebugValue:Em,useDeferredValue:function(o,l){var f=_t();return Je===null?_m(f,o,l):H1(f,Je.memoizedState,o,l)},useTransition:function(){var o=Mm(_r)[0],l=_t().memoizedState;return[typeof o=="boolean"?o:Kl(o),l]},useSyncExternalStore:Q1,useId:ex,useHostTransitionStatus:jm,useFormState:L1,useActionState:L1,useOptimistic:function(o,l){var f=_t();return Je!==null?R1(f,Je,o,l):(f.baseState=o,[o,f.queue.dispatch])},useMemoCache:Pm,useCacheRefresh:tx},da=null,tc=0;function Mf(o){var l=tc;return tc+=1,da===null&&(da=[]),O1(da,o,l)}function nc(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function Rf(o,l){throw l.$$typeof===m?Error(i(525)):(o=Object.prototype.toString.call(l),Error(i(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o)))}function ax(o){var l=o._init;return l(o._payload)}function lx(o){function l(L,X){if(o){var B=L.deletions;B===null?(L.deletions=[X],L.flags|=16):B.push(X)}}function f(L,X){if(!o)return null;for(;X!==null;)l(L,X),X=X.sibling;return null}function d(L){for(var X=new Map;L!==null;)L.key!==null?X.set(L.key,L):X.set(L.index,L),L=L.sibling;return X}function g(L,X){return L=Ar(L,X),L.index=0,L.sibling=null,L}function y(L,X,B){return L.index=B,o?(B=L.alternate,B!==null?(B=B.index,B<X?(L.flags|=67108866,X):B):(L.flags|=67108866,X)):(L.flags|=1048576,X)}function Q(L){return o&&L.alternate===null&&(L.flags|=67108866),L}function P(L,X,B,ie){return X===null||X.tag!==6?(X=rm(B,L.mode,ie),X.return=L,X):(X=g(X,B),X.return=L,X)}function N(L,X,B,ie){var ye=B.type;return ye===b?ne(L,X,B.props.children,ie,B.key):X!==null&&(X.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===j&&ax(ye)===X.type)?(X=g(X,B.props),nc(X,B),X.return=L,X):(X=df(B.type,B.key,B.props,null,L.mode,ie),nc(X,B),X.return=L,X)}function V(L,X,B,ie){return X===null||X.tag!==4||X.stateNode.containerInfo!==B.containerInfo||X.stateNode.implementation!==B.implementation?(X=sm(B,L.mode,ie),X.return=L,X):(X=g(X,B.children||[]),X.return=L,X)}function ne(L,X,B,ie,ye){return X===null||X.tag!==7?(X=eo(B,L.mode,ie,ye),X.return=L,X):(X=g(X,B),X.return=L,X)}function se(L,X,B){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return X=rm(""+X,L.mode,B),X.return=L,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case O:return B=df(X.type,X.key,X.props,null,L.mode,B),nc(B,X),B.return=L,B;case v:return X=sm(X,L.mode,B),X.return=L,X;case j:var ie=X._init;return X=ie(X._payload),se(L,X,B)}if(ce(X)||W(X))return X=eo(X,L.mode,B,null),X.return=L,X;if(typeof X.then=="function")return se(L,Mf(X),B);if(X.$$typeof===A)return se(L,Of(L,X),B);Rf(L,X)}return null}function G(L,X,B,ie){var ye=X!==null?X.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return ye!==null?null:P(L,X,""+B,ie);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case O:return B.key===ye?N(L,X,B,ie):null;case v:return B.key===ye?V(L,X,B,ie):null;case j:return ye=B._init,B=ye(B._payload),G(L,X,B,ie)}if(ce(B)||W(B))return ye!==null?null:ne(L,X,B,ie,null);if(typeof B.then=="function")return G(L,X,Mf(B),ie);if(B.$$typeof===A)return G(L,X,Of(L,B),ie);Rf(L,B)}return null}function H(L,X,B,ie,ye){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return L=L.get(B)||null,P(X,L,""+ie,ye);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case O:return L=L.get(ie.key===null?B:ie.key)||null,N(X,L,ie,ye);case v:return L=L.get(ie.key===null?B:ie.key)||null,V(X,L,ie,ye);case j:var De=ie._init;return ie=De(ie._payload),H(L,X,B,ie,ye)}if(ce(ie)||W(ie))return L=L.get(B)||null,ne(X,L,ie,ye,null);if(typeof ie.then=="function")return H(L,X,B,Mf(ie),ye);if(ie.$$typeof===A)return H(L,X,B,Of(X,ie),ye);Rf(X,ie)}return null}function Pe(L,X,B,ie){for(var ye=null,De=null,we=X,Ce=X=0,Ft=null;we!==null&&Ce<B.length;Ce++){we.index>Ce?(Ft=we,we=null):Ft=we.sibling;var Ye=G(L,we,B[Ce],ie);if(Ye===null){we===null&&(we=Ft);break}o&&we&&Ye.alternate===null&&l(L,we),X=y(Ye,X,Ce),De===null?ye=Ye:De.sibling=Ye,De=Ye,we=Ft}if(Ce===B.length)return f(L,we),Ge&&no(L,Ce),ye;if(we===null){for(;Ce<B.length;Ce++)we=se(L,B[Ce],ie),we!==null&&(X=y(we,X,Ce),De===null?ye=we:De.sibling=we,De=we);return Ge&&no(L,Ce),ye}for(we=d(we);Ce<B.length;Ce++)Ft=H(we,L,Ce,B[Ce],ie),Ft!==null&&(o&&Ft.alternate!==null&&we.delete(Ft.key===null?Ce:Ft.key),X=y(Ft,X,Ce),De===null?ye=Ft:De.sibling=Ft,De=Ft);return o&&we.forEach(function(Ts){return l(L,Ts)}),Ge&&no(L,Ce),ye}function Qe(L,X,B,ie){if(B==null)throw Error(i(151));for(var ye=null,De=null,we=X,Ce=X=0,Ft=null,Ye=B.next();we!==null&&!Ye.done;Ce++,Ye=B.next()){we.index>Ce?(Ft=we,we=null):Ft=we.sibling;var Ts=G(L,we,Ye.value,ie);if(Ts===null){we===null&&(we=Ft);break}o&&we&&Ts.alternate===null&&l(L,we),X=y(Ts,X,Ce),De===null?ye=Ts:De.sibling=Ts,De=Ts,we=Ft}if(Ye.done)return f(L,we),Ge&&no(L,Ce),ye;if(we===null){for(;!Ye.done;Ce++,Ye=B.next())Ye=se(L,Ye.value,ie),Ye!==null&&(X=y(Ye,X,Ce),De===null?ye=Ye:De.sibling=Ye,De=Ye);return Ge&&no(L,Ce),ye}for(we=d(we);!Ye.done;Ce++,Ye=B.next())Ye=H(we,L,Ce,Ye.value,ie),Ye!==null&&(o&&Ye.alternate!==null&&we.delete(Ye.key===null?Ce:Ye.key),X=y(Ye,X,Ce),De===null?ye=Ye:De.sibling=Ye,De=Ye);return o&&we.forEach(function(Y3){return l(L,Y3)}),Ge&&no(L,Ce),ye}function tt(L,X,B,ie){if(typeof B=="object"&&B!==null&&B.type===b&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case O:e:{for(var ye=B.key;X!==null;){if(X.key===ye){if(ye=B.type,ye===b){if(X.tag===7){f(L,X.sibling),ie=g(X,B.props.children),ie.return=L,L=ie;break e}}else if(X.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===j&&ax(ye)===X.type){f(L,X.sibling),ie=g(X,B.props),nc(ie,B),ie.return=L,L=ie;break e}f(L,X);break}else l(L,X);X=X.sibling}B.type===b?(ie=eo(B.props.children,L.mode,ie,B.key),ie.return=L,L=ie):(ie=df(B.type,B.key,B.props,null,L.mode,ie),nc(ie,B),ie.return=L,L=ie)}return Q(L);case v:e:{for(ye=B.key;X!==null;){if(X.key===ye)if(X.tag===4&&X.stateNode.containerInfo===B.containerInfo&&X.stateNode.implementation===B.implementation){f(L,X.sibling),ie=g(X,B.children||[]),ie.return=L,L=ie;break e}else{f(L,X);break}else l(L,X);X=X.sibling}ie=sm(B,L.mode,ie),ie.return=L,L=ie}return Q(L);case j:return ye=B._init,B=ye(B._payload),tt(L,X,B,ie)}if(ce(B))return Pe(L,X,B,ie);if(W(B)){if(ye=W(B),typeof ye!="function")throw Error(i(150));return B=ye.call(B),Qe(L,X,B,ie)}if(typeof B.then=="function")return tt(L,X,Mf(B),ie);if(B.$$typeof===A)return tt(L,X,Of(L,B),ie);Rf(L,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,X!==null&&X.tag===6?(f(L,X.sibling),ie=g(X,B),ie.return=L,L=ie):(f(L,X),ie=rm(B,L.mode,ie),ie.return=L,L=ie),Q(L)):f(L,X)}return function(L,X,B,ie){try{tc=0;var ye=tt(L,X,B,ie);return da=null,ye}catch(we){if(we===Ul||we===vf)throw we;var De=Zn(29,we,null,L.mode);return De.lanes=ie,De.return=L,De}finally{}}}var pa=lx(!0),cx=lx(!1),ci=q(null),Vi=null;function hs(o){var l=o.alternate;F(Vt,Vt.current&1),F(ci,o),Vi===null&&(l===null||ca.current!==null||l.memoizedState!==null)&&(Vi=o)}function ux(o){if(o.tag===22){if(F(Vt,Vt.current),F(ci,o),Vi===null){var l=o.alternate;l!==null&&l.memoizedState!==null&&(Vi=o)}}else ds()}function ds(){F(Vt,Vt.current),F(ci,ci.current)}function Dr(o){te(ci),Vi===o&&(Vi=null),te(Vt)}var Vt=q(0);function $f(o){for(var l=o;l!==null;){if(l.tag===13){var f=l.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||Tg(f)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function Zm(o,l,f,d){l=o.memoizedState,f=f(d,l),f=f==null?l:p({},l,f),o.memoizedState=f,o.lanes===0&&(o.updateQueue.baseState=f)}var Xm={enqueueSetState:function(o,l,f){o=o._reactInternals;var d=qn(),g=cs(d);g.payload=l,f!=null&&(g.callback=f),l=us(o,g,d),l!==null&&(Bn(l,o,d),Il(l,o,d))},enqueueReplaceState:function(o,l,f){o=o._reactInternals;var d=qn(),g=cs(d);g.tag=1,g.payload=l,f!=null&&(g.callback=f),l=us(o,g,d),l!==null&&(Bn(l,o,d),Il(l,o,d))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var f=qn(),d=cs(f);d.tag=2,l!=null&&(d.callback=l),l=us(o,d,f),l!==null&&(Bn(l,o,f),Il(l,o,f))}};function fx(o,l,f,d,g,y,Q){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(d,y,Q):l.prototype&&l.prototype.isPureReactComponent?!Zl(f,d)||!Zl(g,y):!0}function hx(o,l,f,d){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(f,d),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(f,d),l.state!==o&&Xm.enqueueReplaceState(l,l.state,null)}function co(o,l){var f=l;if("ref"in l){f={};for(var d in l)d!=="ref"&&(f[d]=l[d])}if(o=o.defaultProps){f===l&&(f=p({},f));for(var g in o)f[g]===void 0&&(f[g]=o[g])}return f}var Ef=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function dx(o){Ef(o)}function px(o){console.error(o)}function mx(o){Ef(o)}function _f(o,l){try{var f=o.onUncaughtError;f(l.value,{componentStack:l.stack})}catch(d){setTimeout(function(){throw d})}}function gx(o,l,f){try{var d=o.onCaughtError;d(f.value,{componentStack:f.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Lm(o,l,f){return f=cs(f),f.tag=3,f.payload={element:null},f.callback=function(){_f(o,l)},f}function Ox(o){return o=cs(o),o.tag=3,o}function yx(o,l,f,d){var g=f.type.getDerivedStateFromError;if(typeof g=="function"){var y=d.value;o.payload=function(){return g(y)},o.callback=function(){gx(l,f,d)}}var Q=f.stateNode;Q!==null&&typeof Q.componentDidCatch=="function"&&(o.callback=function(){gx(l,f,d),typeof g!="function"&&(vs===null?vs=new Set([this]):vs.add(this));var P=d.stack;this.componentDidCatch(d.value,{componentStack:P!==null?P:""})})}function Y5(o,l,f,d,g){if(f.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(l=f.alternate,l!==null&&Bl(l,f,g,!0),f=ci.current,f!==null){switch(f.tag){case 13:return Vi===null?ug():f.alternate===null&&xt===0&&(xt=3),f.flags&=-257,f.flags|=65536,f.lanes=g,d===mm?f.flags|=16384:(l=f.updateQueue,l===null?f.updateQueue=new Set([d]):l.add(d),hg(o,d,g)),!1;case 22:return f.flags|=65536,d===mm?f.flags|=16384:(l=f.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([d])},f.updateQueue=l):(f=l.retryQueue,f===null?l.retryQueue=new Set([d]):f.add(d)),hg(o,d,g)),!1}throw Error(i(435,f.tag))}return hg(o,d,g),ug(),!1}if(Ge)return l=ci.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=g,d!==lm&&(o=Error(i(422),{cause:d}),ql(si(o,f)))):(d!==lm&&(l=Error(i(423),{cause:d}),ql(si(l,f))),o=o.current.alternate,o.flags|=65536,g&=-g,o.lanes|=g,d=si(d,f),g=Lm(o.stateNode,d,g),ym(o,g),xt!==4&&(xt=2)),!1;var y=Error(i(520),{cause:d});if(y=si(y,f),cc===null?cc=[y]:cc.push(y),xt!==4&&(xt=2),l===null)return!0;d=si(d,f),f=l;do{switch(f.tag){case 3:return f.flags|=65536,o=g&-g,f.lanes|=o,o=Lm(f.stateNode,d,o),ym(f,o),!1;case 1:if(l=f.type,y=f.stateNode,(f.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(vs===null||!vs.has(y))))return f.flags|=65536,g&=-g,f.lanes|=g,g=Ox(g),yx(g,o,f,d),ym(f,g),!1}f=f.return}while(f!==null);return!1}var vx=Error(i(461)),Wt=!1;function Jt(o,l,f,d){l.child=o===null?cx(l,null,f,d):pa(l,o.child,f,d)}function bx(o,l,f,d,g){f=f.render;var y=l.ref;if("ref"in d){var Q={};for(var P in d)P!=="ref"&&(Q[P]=d[P])}else Q=d;return oo(l),d=wm(o,l,f,Q,y,g),P=km(),o!==null&&!Wt?(Qm(o,l,g),jr(o,l,g)):(Ge&&P&&om(l),l.flags|=1,Jt(o,l,d,g),l.child)}function xx(o,l,f,d,g){if(o===null){var y=f.type;return typeof y=="function"&&!im(y)&&y.defaultProps===void 0&&f.compare===null?(l.tag=15,l.type=y,Sx(o,l,y,d,g)):(o=df(f.type,null,d,l,l.mode,g),o.ref=l.ref,o.return=l,l.child=o)}if(y=o.child,!Im(o,g)){var Q=y.memoizedProps;if(f=f.compare,f=f!==null?f:Zl,f(Q,d)&&o.ref===l.ref)return jr(o,l,g)}return l.flags|=1,o=Ar(y,d),o.ref=l.ref,o.return=l,l.child=o}function Sx(o,l,f,d,g){if(o!==null){var y=o.memoizedProps;if(Zl(y,d)&&o.ref===l.ref)if(Wt=!1,l.pendingProps=d=y,Im(o,g))(o.flags&131072)!==0&&(Wt=!0);else return l.lanes=o.lanes,jr(o,l,g)}return zm(o,l,f,d,g)}function wx(o,l,f){var d=l.pendingProps,g=d.children,y=o!==null?o.memoizedState:null;if(d.mode==="hidden"){if((l.flags&128)!==0){if(d=y!==null?y.baseLanes|f:f,o!==null){for(g=l.child=o.child,y=0;g!==null;)y=y|g.lanes|g.childLanes,g=g.sibling;l.childLanes=y&~d}else l.childLanes=0,l.child=null;return kx(o,l,d,f)}if((f&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&yf(l,y!==null?y.cachePool:null),y!==null?S1(l,y):bm(),ux(l);else return l.lanes=l.childLanes=536870912,kx(o,l,y!==null?y.baseLanes|f:f,f)}else y!==null?(yf(l,y.cachePool),S1(l,y),ds(),l.memoizedState=null):(o!==null&&yf(l,null),bm(),ds());return Jt(o,l,g,f),l.child}function kx(o,l,f,d){var g=pm();return g=g===null?null:{parent:Bt._currentValue,pool:g},l.memoizedState={baseLanes:f,cachePool:g},o!==null&&yf(l,null),bm(),ux(l),o!==null&&Bl(o,l,d,!0),null}function Df(o,l){var f=l.ref;if(f===null)o!==null&&o.ref!==null&&(l.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(i(284));(o===null||o.ref!==f)&&(l.flags|=4194816)}}function zm(o,l,f,d,g){return oo(l),f=wm(o,l,f,d,void 0,g),d=km(),o!==null&&!Wt?(Qm(o,l,g),jr(o,l,g)):(Ge&&d&&om(l),l.flags|=1,Jt(o,l,f,g),l.child)}function Qx(o,l,f,d,g,y){return oo(l),l.updateQueue=null,f=k1(l,d,f,g),w1(o),d=km(),o!==null&&!Wt?(Qm(o,l,y),jr(o,l,y)):(Ge&&d&&om(l),l.flags|=1,Jt(o,l,f,y),l.child)}function Cx(o,l,f,d,g){if(oo(l),l.stateNode===null){var y=ra,Q=f.contextType;typeof Q=="object"&&Q!==null&&(y=cn(Q)),y=new f(d,y),l.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Xm,l.stateNode=y,y._reactInternals=l,y=l.stateNode,y.props=d,y.state=l.memoizedState,y.refs={},gm(l),Q=f.contextType,y.context=typeof Q=="object"&&Q!==null?cn(Q):ra,y.state=l.memoizedState,Q=f.getDerivedStateFromProps,typeof Q=="function"&&(Zm(l,f,Q,d),y.state=l.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(Q=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),Q!==y.state&&Xm.enqueueReplaceState(y,y.state,null),Hl(l,d,y,g),Wl(),y.state=l.memoizedState),typeof y.componentDidMount=="function"&&(l.flags|=4194308),d=!0}else if(o===null){y=l.stateNode;var P=l.memoizedProps,N=co(f,P);y.props=N;var V=y.context,ne=f.contextType;Q=ra,typeof ne=="object"&&ne!==null&&(Q=cn(ne));var se=f.getDerivedStateFromProps;ne=typeof se=="function"||typeof y.getSnapshotBeforeUpdate=="function",P=l.pendingProps!==P,ne||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(P||V!==Q)&&hx(l,y,d,Q),ls=!1;var G=l.memoizedState;y.state=G,Hl(l,d,y,g),Wl(),V=l.memoizedState,P||G!==V||ls?(typeof se=="function"&&(Zm(l,f,se,d),V=l.memoizedState),(N=ls||fx(l,f,N,d,G,V,Q))?(ne||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(l.flags|=4194308)):(typeof y.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=d,l.memoizedState=V),y.props=d,y.state=V,y.context=Q,d=N):(typeof y.componentDidMount=="function"&&(l.flags|=4194308),d=!1)}else{y=l.stateNode,Om(o,l),Q=l.memoizedProps,ne=co(f,Q),y.props=ne,se=l.pendingProps,G=y.context,V=f.contextType,N=ra,typeof V=="object"&&V!==null&&(N=cn(V)),P=f.getDerivedStateFromProps,(V=typeof P=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(Q!==se||G!==N)&&hx(l,y,d,N),ls=!1,G=l.memoizedState,y.state=G,Hl(l,d,y,g),Wl();var H=l.memoizedState;Q!==se||G!==H||ls||o!==null&&o.dependencies!==null&&gf(o.dependencies)?(typeof P=="function"&&(Zm(l,f,P,d),H=l.memoizedState),(ne=ls||fx(l,f,ne,d,G,H,N)||o!==null&&o.dependencies!==null&&gf(o.dependencies))?(V||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(d,H,N),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(d,H,N)),typeof y.componentDidUpdate=="function"&&(l.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof y.componentDidUpdate!="function"||Q===o.memoizedProps&&G===o.memoizedState||(l.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||Q===o.memoizedProps&&G===o.memoizedState||(l.flags|=1024),l.memoizedProps=d,l.memoizedState=H),y.props=d,y.state=H,y.context=N,d=ne):(typeof y.componentDidUpdate!="function"||Q===o.memoizedProps&&G===o.memoizedState||(l.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||Q===o.memoizedProps&&G===o.memoizedState||(l.flags|=1024),d=!1)}return y=d,Df(o,l),d=(l.flags&128)!==0,y||d?(y=l.stateNode,f=d&&typeof f.getDerivedStateFromError!="function"?null:y.render(),l.flags|=1,o!==null&&d?(l.child=pa(l,o.child,null,g),l.child=pa(l,null,f,g)):Jt(o,l,f,g),l.memoizedState=y.state,o=l.child):o=jr(o,l,g),o}function Tx(o,l,f,d){return zl(),l.flags|=256,Jt(o,l,f,d),l.child}var qm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bm(o){return{baseLanes:o,cachePool:p1()}}function Vm(o,l,f){return o=o!==null?o.childLanes&~f:0,l&&(o|=ui),o}function Px(o,l,f){var d=l.pendingProps,g=!1,y=(l.flags&128)!==0,Q;if((Q=y)||(Q=o!==null&&o.memoizedState===null?!1:(Vt.current&2)!==0),Q&&(g=!0,l.flags&=-129),Q=(l.flags&32)!==0,l.flags&=-33,o===null){if(Ge){if(g?hs(l):ds(),Ge){var P=bt,N;if(N=P){e:{for(N=P,P=Bi;N.nodeType!==8;){if(!P){P=null;break e}if(N=Ai(N.nextSibling),N===null){P=null;break e}}P=N}P!==null?(l.memoizedState={dehydrated:P,treeContext:to!==null?{id:Mr,overflow:Rr}:null,retryLane:536870912,hydrationErrors:null},N=Zn(18,null,null,0),N.stateNode=P,N.return=l,l.child=N,On=l,bt=null,N=!0):N=!1}N||ro(l)}if(P=l.memoizedState,P!==null&&(P=P.dehydrated,P!==null))return Tg(P)?l.lanes=32:l.lanes=536870912,null;Dr(l)}return P=d.children,d=d.fallback,g?(ds(),g=l.mode,P=jf({mode:"hidden",children:P},g),d=eo(d,g,f,null),P.return=l,d.return=l,P.sibling=d,l.child=P,g=l.child,g.memoizedState=Bm(f),g.childLanes=Vm(o,Q,f),l.memoizedState=qm,d):(hs(l),Ym(l,P))}if(N=o.memoizedState,N!==null&&(P=N.dehydrated,P!==null)){if(y)l.flags&256?(hs(l),l.flags&=-257,l=Um(o,l,f)):l.memoizedState!==null?(ds(),l.child=o.child,l.flags|=128,l=null):(ds(),g=d.fallback,P=l.mode,d=jf({mode:"visible",children:d.children},P),g=eo(g,P,f,null),g.flags|=2,d.return=l,g.return=l,d.sibling=g,l.child=d,pa(l,o.child,null,f),d=l.child,d.memoizedState=Bm(f),d.childLanes=Vm(o,Q,f),l.memoizedState=qm,l=g);else if(hs(l),Tg(P)){if(Q=P.nextSibling&&P.nextSibling.dataset,Q)var V=Q.dgst;Q=V,d=Error(i(419)),d.stack="",d.digest=Q,ql({value:d,source:null,stack:null}),l=Um(o,l,f)}else if(Wt||Bl(o,l,f,!1),Q=(f&o.childLanes)!==0,Wt||Q){if(Q=ct,Q!==null&&(d=f&-f,d=(d&42)!==0?1:gt(d),d=(d&(Q.suspendedLanes|f))!==0?0:d,d!==0&&d!==N.retryLane))throw N.retryLane=d,ia(o,d),Bn(Q,o,d),vx;P.data==="$?"||ug(),l=Um(o,l,f)}else P.data==="$?"?(l.flags|=192,l.child=o.child,l=null):(o=N.treeContext,bt=Ai(P.nextSibling),On=l,Ge=!0,io=null,Bi=!1,o!==null&&(ai[li++]=Mr,ai[li++]=Rr,ai[li++]=to,Mr=o.id,Rr=o.overflow,to=l),l=Ym(l,d.children),l.flags|=4096);return l}return g?(ds(),g=d.fallback,P=l.mode,N=o.child,V=N.sibling,d=Ar(N,{mode:"hidden",children:d.children}),d.subtreeFlags=N.subtreeFlags&65011712,V!==null?g=Ar(V,g):(g=eo(g,P,f,null),g.flags|=2),g.return=l,d.return=l,d.sibling=g,l.child=d,d=g,g=l.child,P=o.child.memoizedState,P===null?P=Bm(f):(N=P.cachePool,N!==null?(V=Bt._currentValue,N=N.parent!==V?{parent:V,pool:V}:N):N=p1(),P={baseLanes:P.baseLanes|f,cachePool:N}),g.memoizedState=P,g.childLanes=Vm(o,Q,f),l.memoizedState=qm,d):(hs(l),f=o.child,o=f.sibling,f=Ar(f,{mode:"visible",children:d.children}),f.return=l,f.sibling=null,o!==null&&(Q=l.deletions,Q===null?(l.deletions=[o],l.flags|=16):Q.push(o)),l.child=f,l.memoizedState=null,f)}function Ym(o,l){return l=jf({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function jf(o,l){return o=Zn(22,o,null,l),o.lanes=0,o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},o}function Um(o,l,f){return pa(l,o.child,null,f),o=Ym(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function Ax(o,l,f){o.lanes|=l;var d=o.alternate;d!==null&&(d.lanes|=l),um(o.return,l,f)}function Gm(o,l,f,d,g){var y=o.memoizedState;y===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:d,tail:f,tailMode:g}:(y.isBackwards=l,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=f,y.tailMode=g)}function Mx(o,l,f){var d=l.pendingProps,g=d.revealOrder,y=d.tail;if(Jt(o,l,d.children,f),d=Vt.current,(d&2)!==0)d=d&1|2,l.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Ax(o,f,l);else if(o.tag===19)Ax(o,f,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}d&=1}switch(F(Vt,d),g){case"forwards":for(f=l.child,g=null;f!==null;)o=f.alternate,o!==null&&$f(o)===null&&(g=f),f=f.sibling;f=g,f===null?(g=l.child,l.child=null):(g=f.sibling,f.sibling=null),Gm(l,!1,g,f,y);break;case"backwards":for(f=null,g=l.child,l.child=null;g!==null;){if(o=g.alternate,o!==null&&$f(o)===null){l.child=g;break}o=g.sibling,g.sibling=f,f=g,g=o}Gm(l,!0,f,null,y);break;case"together":Gm(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function jr(o,l,f){if(o!==null&&(l.dependencies=o.dependencies),ys|=l.lanes,(f&l.childLanes)===0)if(o!==null){if(Bl(o,l,f,!1),(f&l.childLanes)===0)return null}else return null;if(o!==null&&l.child!==o.child)throw Error(i(153));if(l.child!==null){for(o=l.child,f=Ar(o,o.pendingProps),l.child=f,f.return=l;o.sibling!==null;)o=o.sibling,f=f.sibling=Ar(o,o.pendingProps),f.return=l;f.sibling=null}return l.child}function Im(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&gf(o)))}function U5(o,l,f){switch(l.tag){case 3:ke(l,l.stateNode.containerInfo),as(l,Bt,o.memoizedState.cache),zl();break;case 27:case 5:We(l);break;case 4:ke(l,l.stateNode.containerInfo);break;case 10:as(l,l.type,l.memoizedProps.value);break;case 13:var d=l.memoizedState;if(d!==null)return d.dehydrated!==null?(hs(l),l.flags|=128,null):(f&l.child.childLanes)!==0?Px(o,l,f):(hs(l),o=jr(o,l,f),o!==null?o.sibling:null);hs(l);break;case 19:var g=(o.flags&128)!==0;if(d=(f&l.childLanes)!==0,d||(Bl(o,l,f,!1),d=(f&l.childLanes)!==0),g){if(d)return Mx(o,l,f);l.flags|=128}if(g=l.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),F(Vt,Vt.current),d)break;return null;case 22:case 23:return l.lanes=0,wx(o,l,f);case 24:as(l,Bt,o.memoizedState.cache)}return jr(o,l,f)}function Rx(o,l,f){if(o!==null)if(o.memoizedProps!==l.pendingProps)Wt=!0;else{if(!Im(o,f)&&(l.flags&128)===0)return Wt=!1,U5(o,l,f);Wt=(o.flags&131072)!==0}else Wt=!1,Ge&&(l.flags&1048576)!==0&&a1(l,mf,l.index);switch(l.lanes=0,l.tag){case 16:e:{o=l.pendingProps;var d=l.elementType,g=d._init;if(d=g(d._payload),l.type=d,typeof d=="function")im(d)?(o=co(d,o),l.tag=1,l=Cx(null,l,d,o,f)):(l.tag=0,l=zm(null,l,d,o,f));else{if(d!=null){if(g=d.$$typeof,g===$){l.tag=11,l=bx(null,l,d,o,f);break e}else if(g===D){l.tag=14,l=xx(null,l,d,o,f);break e}}throw l=le(d)||d,Error(i(306,l,""))}}return l;case 0:return zm(o,l,l.type,l.pendingProps,f);case 1:return d=l.type,g=co(d,l.pendingProps),Cx(o,l,d,g,f);case 3:e:{if(ke(l,l.stateNode.containerInfo),o===null)throw Error(i(387));d=l.pendingProps;var y=l.memoizedState;g=y.element,Om(o,l),Hl(l,d,null,f);var Q=l.memoizedState;if(d=Q.cache,as(l,Bt,d),d!==y.cache&&fm(l,[Bt],f,!0),Wl(),d=Q.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:Q.cache},l.updateQueue.baseState=y,l.memoizedState=y,l.flags&256){l=Tx(o,l,d,f);break e}else if(d!==g){g=si(Error(i(424)),l),ql(g),l=Tx(o,l,d,f);break e}else{switch(o=l.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(bt=Ai(o.firstChild),On=l,Ge=!0,io=null,Bi=!0,f=cx(l,null,d,f),l.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(zl(),d===g){l=jr(o,l,f);break e}Jt(o,l,d,f)}l=l.child}return l;case 26:return Df(o,l),o===null?(f=DS(l.type,null,l.pendingProps,null))?l.memoizedState=f:Ge||(f=l.type,o=l.pendingProps,d=Hf(ue.current).createElement(f),d[Tt]=l,d[lt]=o,tn(d,f,o),It(d),l.stateNode=d):l.memoizedState=DS(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return We(l),o===null&&Ge&&(d=l.stateNode=$S(l.type,l.pendingProps,ue.current),On=l,Bi=!0,g=bt,Ss(l.type)?(Pg=g,bt=Ai(d.firstChild)):bt=g),Jt(o,l,l.pendingProps.children,f),Df(o,l),o===null&&(l.flags|=4194304),l.child;case 5:return o===null&&Ge&&((g=d=bt)&&(d=b3(d,l.type,l.pendingProps,Bi),d!==null?(l.stateNode=d,On=l,bt=Ai(d.firstChild),Bi=!1,g=!0):g=!1),g||ro(l)),We(l),g=l.type,y=l.pendingProps,Q=o!==null?o.memoizedProps:null,d=y.children,kg(g,y)?d=null:Q!==null&&kg(g,Q)&&(l.flags|=32),l.memoizedState!==null&&(g=wm(o,l,Z5,null,null,f),yc._currentValue=g),Df(o,l),Jt(o,l,d,f),l.child;case 6:return o===null&&Ge&&((o=f=bt)&&(f=x3(f,l.pendingProps,Bi),f!==null?(l.stateNode=f,On=l,bt=null,o=!0):o=!1),o||ro(l)),null;case 13:return Px(o,l,f);case 4:return ke(l,l.stateNode.containerInfo),d=l.pendingProps,o===null?l.child=pa(l,null,d,f):Jt(o,l,d,f),l.child;case 11:return bx(o,l,l.type,l.pendingProps,f);case 7:return Jt(o,l,l.pendingProps,f),l.child;case 8:return Jt(o,l,l.pendingProps.children,f),l.child;case 12:return Jt(o,l,l.pendingProps.children,f),l.child;case 10:return d=l.pendingProps,as(l,l.type,d.value),Jt(o,l,d.children,f),l.child;case 9:return g=l.type._context,d=l.pendingProps.children,oo(l),g=cn(g),d=d(g),l.flags|=1,Jt(o,l,d,f),l.child;case 14:return xx(o,l,l.type,l.pendingProps,f);case 15:return Sx(o,l,l.type,l.pendingProps,f);case 19:return Mx(o,l,f);case 31:return d=l.pendingProps,f=l.mode,d={mode:d.mode,children:d.children},o===null?(f=jf(d,f),f.ref=l.ref,l.child=f,f.return=l,l=f):(f=Ar(o.child,d),f.ref=l.ref,l.child=f,f.return=l,l=f),l;case 22:return wx(o,l,f);case 24:return oo(l),d=cn(Bt),o===null?(g=pm(),g===null&&(g=ct,y=hm(),g.pooledCache=y,y.refCount++,y!==null&&(g.pooledCacheLanes|=f),g=y),l.memoizedState={parent:d,cache:g},gm(l),as(l,Bt,g)):((o.lanes&f)!==0&&(Om(o,l),Hl(l,null,null,f),Wl()),g=o.memoizedState,y=l.memoizedState,g.parent!==d?(g={parent:d,cache:d},l.memoizedState=g,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=g),as(l,Bt,d)):(d=y.cache,as(l,Bt,d),d!==g.cache&&fm(l,[Bt],f,!0))),Jt(o,l,l.pendingProps.children,f),l.child;case 29:throw l.pendingProps}throw Error(i(156,l.tag))}function Nr(o){o.flags|=4}function $x(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!LS(l)){if(l=ci.current,l!==null&&((qe&4194048)===qe?Vi!==null:(qe&62914560)!==qe&&(qe&536870912)===0||l!==Vi))throw Gl=mm,m1;o.flags|=8192}}function Nf(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?qo():536870912,o.lanes|=l,ya|=l)}function ic(o,l){if(!Ge)switch(o.tailMode){case"hidden":l=o.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?o.tail=null:f.sibling=null;break;case"collapsed":f=o.tail;for(var d=null;f!==null;)f.alternate!==null&&(d=f),f=f.sibling;d===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:d.sibling=null}}function Ot(o){var l=o.alternate!==null&&o.alternate.child===o.child,f=0,d=0;if(l)for(var g=o.child;g!==null;)f|=g.lanes|g.childLanes,d|=g.subtreeFlags&65011712,d|=g.flags&65011712,g.return=o,g=g.sibling;else for(g=o.child;g!==null;)f|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=o,g=g.sibling;return o.subtreeFlags|=d,o.childLanes=f,l}function G5(o,l,f){var d=l.pendingProps;switch(am(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(l),null;case 1:return Ot(l),null;case 3:return f=l.stateNode,d=null,o!==null&&(d=o.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),Er(Bt),Ue(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(o===null||o.child===null)&&(Ll(l)?Nr(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,u1())),Ot(l),null;case 26:return f=l.memoizedState,o===null?(Nr(l),f!==null?(Ot(l),$x(l,f)):(Ot(l),l.flags&=-16777217)):f?f!==o.memoizedState?(Nr(l),Ot(l),$x(l,f)):(Ot(l),l.flags&=-16777217):(o.memoizedProps!==d&&Nr(l),Ot(l),l.flags&=-16777217),null;case 27:Le(l),f=ue.current;var g=l.type;if(o!==null&&l.stateNode!=null)o.memoizedProps!==d&&Nr(l);else{if(!d){if(l.stateNode===null)throw Error(i(166));return Ot(l),null}o=oe.current,Ll(l)?l1(l):(o=$S(g,d,f),l.stateNode=o,Nr(l))}return Ot(l),null;case 5:if(Le(l),f=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==d&&Nr(l);else{if(!d){if(l.stateNode===null)throw Error(i(166));return Ot(l),null}if(o=oe.current,Ll(l))l1(l);else{switch(g=Hf(ue.current),o){case 1:o=g.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:o=g.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":o=g.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":o=g.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":o=g.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof d.is=="string"?g.createElement("select",{is:d.is}):g.createElement("select"),d.multiple?o.multiple=!0:d.size&&(o.size=d.size);break;default:o=typeof d.is=="string"?g.createElement(f,{is:d.is}):g.createElement(f)}}o[Tt]=l,o[lt]=d;e:for(g=l.child;g!==null;){if(g.tag===5||g.tag===6)o.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===l)break e;for(;g.sibling===null;){if(g.return===null||g.return===l)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}l.stateNode=o;e:switch(tn(o,f,d),f){case"button":case"input":case"select":case"textarea":o=!!d.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Nr(l)}}return Ot(l),l.flags&=-16777217,null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==d&&Nr(l);else{if(typeof d!="string"&&l.stateNode===null)throw Error(i(166));if(o=ue.current,Ll(l)){if(o=l.stateNode,f=l.memoizedProps,d=null,g=On,g!==null)switch(g.tag){case 27:case 5:d=g.memoizedProps}o[Tt]=l,o=!!(o.nodeValue===f||d!==null&&d.suppressHydrationWarning===!0||QS(o.nodeValue,f)),o||ro(l)}else o=Hf(o).createTextNode(d),o[Tt]=l,l.stateNode=o}return Ot(l),null;case 13:if(d=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(g=Ll(l),d!==null&&d.dehydrated!==null){if(o===null){if(!g)throw Error(i(318));if(g=l.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[Tt]=l}else zl(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Ot(l),g=!1}else g=u1(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=g),g=!0;if(!g)return l.flags&256?(Dr(l),l):(Dr(l),null)}if(Dr(l),(l.flags&128)!==0)return l.lanes=f,l;if(f=d!==null,o=o!==null&&o.memoizedState!==null,f){d=l.child,g=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(g=d.alternate.memoizedState.cachePool.pool);var y=null;d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(y=d.memoizedState.cachePool.pool),y!==g&&(d.flags|=2048)}return f!==o&&f&&(l.child.flags|=8192),Nf(l,l.updateQueue),Ot(l),null;case 4:return Ue(),o===null&&vg(l.stateNode.containerInfo),Ot(l),null;case 10:return Er(l.type),Ot(l),null;case 19:if(te(Vt),g=l.memoizedState,g===null)return Ot(l),null;if(d=(l.flags&128)!==0,y=g.rendering,y===null)if(d)ic(g,!1);else{if(xt!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(y=$f(o),y!==null){for(l.flags|=128,ic(g,!1),o=y.updateQueue,l.updateQueue=o,Nf(l,o),l.subtreeFlags=0,o=f,f=l.child;f!==null;)o1(f,o),f=f.sibling;return F(Vt,Vt.current&1|2),l.child}o=o.sibling}g.tail!==null&&at()>Lf&&(l.flags|=128,d=!0,ic(g,!1),l.lanes=4194304)}else{if(!d)if(o=$f(y),o!==null){if(l.flags|=128,d=!0,o=o.updateQueue,l.updateQueue=o,Nf(l,o),ic(g,!0),g.tail===null&&g.tailMode==="hidden"&&!y.alternate&&!Ge)return Ot(l),null}else 2*at()-g.renderingStartTime>Lf&&f!==536870912&&(l.flags|=128,d=!0,ic(g,!1),l.lanes=4194304);g.isBackwards?(y.sibling=l.child,l.child=y):(o=g.last,o!==null?o.sibling=y:l.child=y,g.last=y)}return g.tail!==null?(l=g.tail,g.rendering=l,g.tail=l.sibling,g.renderingStartTime=at(),l.sibling=null,o=Vt.current,F(Vt,d?o&1|2:o&1),l):(Ot(l),null);case 22:case 23:return Dr(l),xm(),d=l.memoizedState!==null,o!==null?o.memoizedState!==null!==d&&(l.flags|=8192):d&&(l.flags|=8192),d?(f&536870912)!==0&&(l.flags&128)===0&&(Ot(l),l.subtreeFlags&6&&(l.flags|=8192)):Ot(l),f=l.updateQueue,f!==null&&Nf(l,f.retryQueue),f=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),d=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==f&&(l.flags|=2048),o!==null&&te(ao),null;case 24:return f=null,o!==null&&(f=o.memoizedState.cache),l.memoizedState.cache!==f&&(l.flags|=2048),Er(Bt),Ot(l),null;case 25:return null;case 30:return null}throw Error(i(156,l.tag))}function I5(o,l){switch(am(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return Er(Bt),Ue(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return Le(l),null;case 13:if(Dr(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(i(340));zl()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return te(Vt),null;case 4:return Ue(),null;case 10:return Er(l.type),null;case 22:case 23:return Dr(l),xm(),o!==null&&te(ao),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return Er(Bt),null;case 25:return null;default:return null}}function Ex(o,l){switch(am(l),l.tag){case 3:Er(Bt),Ue();break;case 26:case 27:case 5:Le(l);break;case 4:Ue();break;case 13:Dr(l);break;case 19:te(Vt);break;case 10:Er(l.type);break;case 22:case 23:Dr(l),xm(),o!==null&&te(ao);break;case 24:Er(Bt)}}function rc(o,l){try{var f=l.updateQueue,d=f!==null?f.lastEffect:null;if(d!==null){var g=d.next;f=g;do{if((f.tag&o)===o){d=void 0;var y=f.create,Q=f.inst;d=y(),Q.destroy=d}f=f.next}while(f!==g)}}catch(P){nt(l,l.return,P)}}function ps(o,l,f){try{var d=l.updateQueue,g=d!==null?d.lastEffect:null;if(g!==null){var y=g.next;d=y;do{if((d.tag&o)===o){var Q=d.inst,P=Q.destroy;if(P!==void 0){Q.destroy=void 0,g=l;var N=f,V=P;try{V()}catch(ne){nt(g,N,ne)}}}d=d.next}while(d!==y)}}catch(ne){nt(l,l.return,ne)}}function _x(o){var l=o.updateQueue;if(l!==null){var f=o.stateNode;try{x1(l,f)}catch(d){nt(o,o.return,d)}}}function Dx(o,l,f){f.props=co(o.type,o.memoizedProps),f.state=o.memoizedState;try{f.componentWillUnmount()}catch(d){nt(o,l,d)}}function sc(o,l){try{var f=o.ref;if(f!==null){switch(o.tag){case 26:case 27:case 5:var d=o.stateNode;break;case 30:d=o.stateNode;break;default:d=o.stateNode}typeof f=="function"?o.refCleanup=f(d):f.current=d}}catch(g){nt(o,l,g)}}function Yi(o,l){var f=o.ref,d=o.refCleanup;if(f!==null)if(typeof d=="function")try{d()}catch(g){nt(o,l,g)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(g){nt(o,l,g)}else f.current=null}function jx(o){var l=o.type,f=o.memoizedProps,d=o.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":f.autoFocus&&d.focus();break e;case"img":f.src?d.src=f.src:f.srcSet&&(d.srcset=f.srcSet)}}catch(g){nt(o,o.return,g)}}function Wm(o,l,f){try{var d=o.stateNode;m3(d,o.type,f,l),d[lt]=l}catch(g){nt(o,o.return,g)}}function Nx(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Ss(o.type)||o.tag===4}function Hm(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Nx(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Ss(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Fm(o,l,f){var d=o.tag;if(d===5||d===6)o=o.stateNode,l?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(o,l):(l=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,l.appendChild(o),f=f._reactRootContainer,f!=null||l.onclick!==null||(l.onclick=Wf));else if(d!==4&&(d===27&&Ss(o.type)&&(f=o.stateNode,l=null),o=o.child,o!==null))for(Fm(o,l,f),o=o.sibling;o!==null;)Fm(o,l,f),o=o.sibling}function Zf(o,l,f){var d=o.tag;if(d===5||d===6)o=o.stateNode,l?f.insertBefore(o,l):f.appendChild(o);else if(d!==4&&(d===27&&Ss(o.type)&&(f=o.stateNode),o=o.child,o!==null))for(Zf(o,l,f),o=o.sibling;o!==null;)Zf(o,l,f),o=o.sibling}function Zx(o){var l=o.stateNode,f=o.memoizedProps;try{for(var d=o.type,g=l.attributes;g.length;)l.removeAttributeNode(g[0]);tn(l,d,f),l[Tt]=o,l[lt]=f}catch(y){nt(o,o.return,y)}}var Zr=!1,At=!1,Km=!1,Xx=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function W5(o,l){if(o=o.containerInfo,Sg=nh,o=Hb(o),Hp(o)){if("selectionStart"in o)var f={start:o.selectionStart,end:o.selectionEnd};else e:{f=(f=o.ownerDocument)&&f.defaultView||window;var d=f.getSelection&&f.getSelection();if(d&&d.rangeCount!==0){f=d.anchorNode;var g=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{f.nodeType,y.nodeType}catch{f=null;break e}var Q=0,P=-1,N=-1,V=0,ne=0,se=o,G=null;t:for(;;){for(var H;se!==f||g!==0&&se.nodeType!==3||(P=Q+g),se!==y||d!==0&&se.nodeType!==3||(N=Q+d),se.nodeType===3&&(Q+=se.nodeValue.length),(H=se.firstChild)!==null;)G=se,se=H;for(;;){if(se===o)break t;if(G===f&&++V===g&&(P=Q),G===y&&++ne===d&&(N=Q),(H=se.nextSibling)!==null)break;se=G,G=se.parentNode}se=H}f=P===-1||N===-1?null:{start:P,end:N}}else f=null}f=f||{start:0,end:0}}else f=null;for(wg={focusedElem:o,selectionRange:f},nh=!1,Ht=l;Ht!==null;)if(l=Ht,o=l.child,(l.subtreeFlags&1024)!==0&&o!==null)o.return=l,Ht=o;else for(;Ht!==null;){switch(l=Ht,y=l.alternate,o=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if((o&1024)!==0&&y!==null){o=void 0,f=l,g=y.memoizedProps,y=y.memoizedState,d=f.stateNode;try{var Pe=co(f.type,g,f.elementType===f.type);o=d.getSnapshotBeforeUpdate(Pe,y),d.__reactInternalSnapshotBeforeUpdate=o}catch(Qe){nt(f,f.return,Qe)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,f=o.nodeType,f===9)Cg(o);else if(f===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Cg(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(i(163))}if(o=l.sibling,o!==null){o.return=l.return,Ht=o;break}Ht=l.return}}function Lx(o,l,f){var d=f.flags;switch(f.tag){case 0:case 11:case 15:ms(o,f),d&4&&rc(5,f);break;case 1:if(ms(o,f),d&4)if(o=f.stateNode,l===null)try{o.componentDidMount()}catch(Q){nt(f,f.return,Q)}else{var g=co(f.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(g,l,o.__reactInternalSnapshotBeforeUpdate)}catch(Q){nt(f,f.return,Q)}}d&64&&_x(f),d&512&&sc(f,f.return);break;case 3:if(ms(o,f),d&64&&(o=f.updateQueue,o!==null)){if(l=null,f.child!==null)switch(f.child.tag){case 27:case 5:l=f.child.stateNode;break;case 1:l=f.child.stateNode}try{x1(o,l)}catch(Q){nt(f,f.return,Q)}}break;case 27:l===null&&d&4&&Zx(f);case 26:case 5:ms(o,f),l===null&&d&4&&jx(f),d&512&&sc(f,f.return);break;case 12:ms(o,f);break;case 13:ms(o,f),d&4&&Bx(o,f),d&64&&(o=f.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(f=r3.bind(null,f),S3(o,f))));break;case 22:if(d=f.memoizedState!==null||Zr,!d){l=l!==null&&l.memoizedState!==null||At,g=Zr;var y=At;Zr=d,(At=l)&&!y?gs(o,f,(f.subtreeFlags&8772)!==0):ms(o,f),Zr=g,At=y}break;case 30:break;default:ms(o,f)}}function zx(o){var l=o.alternate;l!==null&&(o.alternate=null,zx(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&Rp(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var pt=null,Qn=!1;function Xr(o,l,f){for(f=f.child;f!==null;)qx(o,l,f),f=f.sibling}function qx(o,l,f){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(ei,f)}catch{}switch(f.tag){case 26:At||Yi(f,l),Xr(o,l,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:At||Yi(f,l);var d=pt,g=Qn;Ss(f.type)&&(pt=f.stateNode,Qn=!1),Xr(o,l,f),pc(f.stateNode),pt=d,Qn=g;break;case 5:At||Yi(f,l);case 6:if(d=pt,g=Qn,pt=null,Xr(o,l,f),pt=d,Qn=g,pt!==null)if(Qn)try{(pt.nodeType===9?pt.body:pt.nodeName==="HTML"?pt.ownerDocument.body:pt).removeChild(f.stateNode)}catch(y){nt(f,l,y)}else try{pt.removeChild(f.stateNode)}catch(y){nt(f,l,y)}break;case 18:pt!==null&&(Qn?(o=pt,MS(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,f.stateNode),Sc(o)):MS(pt,f.stateNode));break;case 4:d=pt,g=Qn,pt=f.stateNode.containerInfo,Qn=!0,Xr(o,l,f),pt=d,Qn=g;break;case 0:case 11:case 14:case 15:At||ps(2,f,l),At||ps(4,f,l),Xr(o,l,f);break;case 1:At||(Yi(f,l),d=f.stateNode,typeof d.componentWillUnmount=="function"&&Dx(f,l,d)),Xr(o,l,f);break;case 21:Xr(o,l,f);break;case 22:At=(d=At)||f.memoizedState!==null,Xr(o,l,f),At=d;break;default:Xr(o,l,f)}}function Bx(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Sc(o)}catch(f){nt(l,l.return,f)}}function H5(o){switch(o.tag){case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new Xx),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new Xx),l;default:throw Error(i(435,o.tag))}}function Jm(o,l){var f=H5(o);l.forEach(function(d){var g=s3.bind(null,o,d);f.has(d)||(f.add(d),d.then(g,g))})}function Xn(o,l){var f=l.deletions;if(f!==null)for(var d=0;d<f.length;d++){var g=f[d],y=o,Q=l,P=Q;e:for(;P!==null;){switch(P.tag){case 27:if(Ss(P.type)){pt=P.stateNode,Qn=!1;break e}break;case 5:pt=P.stateNode,Qn=!1;break e;case 3:case 4:pt=P.stateNode.containerInfo,Qn=!0;break e}P=P.return}if(pt===null)throw Error(i(160));qx(y,Q,g),pt=null,Qn=!1,y=g.alternate,y!==null&&(y.return=null),g.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)Vx(l,o),l=l.sibling}var Pi=null;function Vx(o,l){var f=o.alternate,d=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Xn(l,o),Ln(o),d&4&&(ps(3,o,o.return),rc(3,o),ps(5,o,o.return));break;case 1:Xn(l,o),Ln(o),d&512&&(At||f===null||Yi(f,f.return)),d&64&&Zr&&(o=o.updateQueue,o!==null&&(d=o.callbacks,d!==null&&(f=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=f===null?d:f.concat(d))));break;case 26:var g=Pi;if(Xn(l,o),Ln(o),d&512&&(At||f===null||Yi(f,f.return)),d&4){var y=f!==null?f.memoizedState:null;if(d=o.memoizedState,f===null)if(d===null)if(o.stateNode===null){e:{d=o.type,f=o.memoizedProps,g=g.ownerDocument||g;t:switch(d){case"title":y=g.getElementsByTagName("title")[0],(!y||y[Al]||y[Tt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=g.createElement(d),g.head.insertBefore(y,g.querySelector("head > title"))),tn(y,d,f),y[Tt]=o,It(y),d=y;break e;case"link":var Q=ZS("link","href",g).get(d+(f.href||""));if(Q){for(var P=0;P<Q.length;P++)if(y=Q[P],y.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&y.getAttribute("rel")===(f.rel==null?null:f.rel)&&y.getAttribute("title")===(f.title==null?null:f.title)&&y.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){Q.splice(P,1);break t}}y=g.createElement(d),tn(y,d,f),g.head.appendChild(y);break;case"meta":if(Q=ZS("meta","content",g).get(d+(f.content||""))){for(P=0;P<Q.length;P++)if(y=Q[P],y.getAttribute("content")===(f.content==null?null:""+f.content)&&y.getAttribute("name")===(f.name==null?null:f.name)&&y.getAttribute("property")===(f.property==null?null:f.property)&&y.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&y.getAttribute("charset")===(f.charSet==null?null:f.charSet)){Q.splice(P,1);break t}}y=g.createElement(d),tn(y,d,f),g.head.appendChild(y);break;default:throw Error(i(468,d))}y[Tt]=o,It(y),d=y}o.stateNode=d}else XS(g,o.type,o.stateNode);else o.stateNode=NS(g,d,o.memoizedProps);else y!==d?(y===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):y.count--,d===null?XS(g,o.type,o.stateNode):NS(g,d,o.memoizedProps)):d===null&&o.stateNode!==null&&Wm(o,o.memoizedProps,f.memoizedProps)}break;case 27:Xn(l,o),Ln(o),d&512&&(At||f===null||Yi(f,f.return)),f!==null&&d&4&&Wm(o,o.memoizedProps,f.memoizedProps);break;case 5:if(Xn(l,o),Ln(o),d&512&&(At||f===null||Yi(f,f.return)),o.flags&32){g=o.stateNode;try{Ho(g,"")}catch(H){nt(o,o.return,H)}}d&4&&o.stateNode!=null&&(g=o.memoizedProps,Wm(o,g,f!==null?f.memoizedProps:g)),d&1024&&(Km=!0);break;case 6:if(Xn(l,o),Ln(o),d&4){if(o.stateNode===null)throw Error(i(162));d=o.memoizedProps,f=o.stateNode;try{f.nodeValue=d}catch(H){nt(o,o.return,H)}}break;case 3:if(Jf=null,g=Pi,Pi=Ff(l.containerInfo),Xn(l,o),Pi=g,Ln(o),d&4&&f!==null&&f.memoizedState.isDehydrated)try{Sc(l.containerInfo)}catch(H){nt(o,o.return,H)}Km&&(Km=!1,Yx(o));break;case 4:d=Pi,Pi=Ff(o.stateNode.containerInfo),Xn(l,o),Ln(o),Pi=d;break;case 12:Xn(l,o),Ln(o);break;case 13:Xn(l,o),Ln(o),o.child.flags&8192&&o.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(sg=at()),d&4&&(d=o.updateQueue,d!==null&&(o.updateQueue=null,Jm(o,d)));break;case 22:g=o.memoizedState!==null;var N=f!==null&&f.memoizedState!==null,V=Zr,ne=At;if(Zr=V||g,At=ne||N,Xn(l,o),At=ne,Zr=V,Ln(o),d&8192)e:for(l=o.stateNode,l._visibility=g?l._visibility&-2:l._visibility|1,g&&(f===null||N||Zr||At||uo(o)),f=null,l=o;;){if(l.tag===5||l.tag===26){if(f===null){N=f=l;try{if(y=N.stateNode,g)Q=y.style,typeof Q.setProperty=="function"?Q.setProperty("display","none","important"):Q.display="none";else{P=N.stateNode;var se=N.memoizedProps.style,G=se!=null&&se.hasOwnProperty("display")?se.display:null;P.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(H){nt(N,N.return,H)}}}else if(l.tag===6){if(f===null){N=l;try{N.stateNode.nodeValue=g?"":N.memoizedProps}catch(H){nt(N,N.return,H)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;f===l&&(f=null),l=l.return}f===l&&(f=null),l.sibling.return=l.return,l=l.sibling}d&4&&(d=o.updateQueue,d!==null&&(f=d.retryQueue,f!==null&&(d.retryQueue=null,Jm(o,f))));break;case 19:Xn(l,o),Ln(o),d&4&&(d=o.updateQueue,d!==null&&(o.updateQueue=null,Jm(o,d)));break;case 30:break;case 21:break;default:Xn(l,o),Ln(o)}}function Ln(o){var l=o.flags;if(l&2){try{for(var f,d=o.return;d!==null;){if(Nx(d)){f=d;break}d=d.return}if(f==null)throw Error(i(160));switch(f.tag){case 27:var g=f.stateNode,y=Hm(o);Zf(o,y,g);break;case 5:var Q=f.stateNode;f.flags&32&&(Ho(Q,""),f.flags&=-33);var P=Hm(o);Zf(o,P,Q);break;case 3:case 4:var N=f.stateNode.containerInfo,V=Hm(o);Fm(o,V,N);break;default:throw Error(i(161))}}catch(ne){nt(o,o.return,ne)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function Yx(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;Yx(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function ms(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Lx(o,l.alternate,l),l=l.sibling}function uo(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:ps(4,l,l.return),uo(l);break;case 1:Yi(l,l.return);var f=l.stateNode;typeof f.componentWillUnmount=="function"&&Dx(l,l.return,f),uo(l);break;case 27:pc(l.stateNode);case 26:case 5:Yi(l,l.return),uo(l);break;case 22:l.memoizedState===null&&uo(l);break;case 30:uo(l);break;default:uo(l)}o=o.sibling}}function gs(o,l,f){for(f=f&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var d=l.alternate,g=o,y=l,Q=y.flags;switch(y.tag){case 0:case 11:case 15:gs(g,y,f),rc(4,y);break;case 1:if(gs(g,y,f),d=y,g=d.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(V){nt(d,d.return,V)}if(d=y,g=d.updateQueue,g!==null){var P=d.stateNode;try{var N=g.shared.hiddenCallbacks;if(N!==null)for(g.shared.hiddenCallbacks=null,g=0;g<N.length;g++)b1(N[g],P)}catch(V){nt(d,d.return,V)}}f&&Q&64&&_x(y),sc(y,y.return);break;case 27:Zx(y);case 26:case 5:gs(g,y,f),f&&d===null&&Q&4&&jx(y),sc(y,y.return);break;case 12:gs(g,y,f);break;case 13:gs(g,y,f),f&&Q&4&&Bx(g,y);break;case 22:y.memoizedState===null&&gs(g,y,f),sc(y,y.return);break;case 30:break;default:gs(g,y,f)}l=l.sibling}}function eg(o,l){var f=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==f&&(o!=null&&o.refCount++,f!=null&&Vl(f))}function tg(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&Vl(o))}function Ui(o,l,f,d){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Ux(o,l,f,d),l=l.sibling}function Ux(o,l,f,d){var g=l.flags;switch(l.tag){case 0:case 11:case 15:Ui(o,l,f,d),g&2048&&rc(9,l);break;case 1:Ui(o,l,f,d);break;case 3:Ui(o,l,f,d),g&2048&&(o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&Vl(o)));break;case 12:if(g&2048){Ui(o,l,f,d),o=l.stateNode;try{var y=l.memoizedProps,Q=y.id,P=y.onPostCommit;typeof P=="function"&&P(Q,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(N){nt(l,l.return,N)}}else Ui(o,l,f,d);break;case 13:Ui(o,l,f,d);break;case 23:break;case 22:y=l.stateNode,Q=l.alternate,l.memoizedState!==null?y._visibility&2?Ui(o,l,f,d):oc(o,l):y._visibility&2?Ui(o,l,f,d):(y._visibility|=2,ma(o,l,f,d,(l.subtreeFlags&10256)!==0)),g&2048&&eg(Q,l);break;case 24:Ui(o,l,f,d),g&2048&&tg(l.alternate,l);break;default:Ui(o,l,f,d)}}function ma(o,l,f,d,g){for(g=g&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var y=o,Q=l,P=f,N=d,V=Q.flags;switch(Q.tag){case 0:case 11:case 15:ma(y,Q,P,N,g),rc(8,Q);break;case 23:break;case 22:var ne=Q.stateNode;Q.memoizedState!==null?ne._visibility&2?ma(y,Q,P,N,g):oc(y,Q):(ne._visibility|=2,ma(y,Q,P,N,g)),g&&V&2048&&eg(Q.alternate,Q);break;case 24:ma(y,Q,P,N,g),g&&V&2048&&tg(Q.alternate,Q);break;default:ma(y,Q,P,N,g)}l=l.sibling}}function oc(o,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var f=o,d=l,g=d.flags;switch(d.tag){case 22:oc(f,d),g&2048&&eg(d.alternate,d);break;case 24:oc(f,d),g&2048&&tg(d.alternate,d);break;default:oc(f,d)}l=l.sibling}}var ac=8192;function ga(o){if(o.subtreeFlags&ac)for(o=o.child;o!==null;)Gx(o),o=o.sibling}function Gx(o){switch(o.tag){case 26:ga(o),o.flags&ac&&o.memoizedState!==null&&D3(Pi,o.memoizedState,o.memoizedProps);break;case 5:ga(o);break;case 3:case 4:var l=Pi;Pi=Ff(o.stateNode.containerInfo),ga(o),Pi=l;break;case 22:o.memoizedState===null&&(l=o.alternate,l!==null&&l.memoizedState!==null?(l=ac,ac=16777216,ga(o),ac=l):ga(o));break;default:ga(o)}}function Ix(o){var l=o.alternate;if(l!==null&&(o=l.child,o!==null)){l.child=null;do l=o.sibling,o.sibling=null,o=l;while(o!==null)}}function lc(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var f=0;f<l.length;f++){var d=l[f];Ht=d,Hx(d,o)}Ix(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Wx(o),o=o.sibling}function Wx(o){switch(o.tag){case 0:case 11:case 15:lc(o),o.flags&2048&&ps(9,o,o.return);break;case 3:lc(o);break;case 12:lc(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,Xf(o)):lc(o);break;default:lc(o)}}function Xf(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var f=0;f<l.length;f++){var d=l[f];Ht=d,Hx(d,o)}Ix(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:ps(8,l,l.return),Xf(l);break;case 22:f=l.stateNode,f._visibility&2&&(f._visibility&=-3,Xf(l));break;default:Xf(l)}o=o.sibling}}function Hx(o,l){for(;Ht!==null;){var f=Ht;switch(f.tag){case 0:case 11:case 15:ps(8,f,l);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var d=f.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Vl(f.memoizedState.cache)}if(d=f.child,d!==null)d.return=f,Ht=d;else e:for(f=o;Ht!==null;){d=Ht;var g=d.sibling,y=d.return;if(zx(d),d===f){Ht=null;break e}if(g!==null){g.return=y,Ht=g;break e}Ht=y}}}var F5={getCacheForType:function(o){var l=cn(Bt),f=l.data.get(o);return f===void 0&&(f=o(),l.data.set(o,f)),f}},K5=typeof WeakMap=="function"?WeakMap:Map,He=0,ct=null,Ne=null,qe=0,Fe=0,zn=null,Os=!1,Oa=!1,ng=!1,Lr=0,xt=0,ys=0,fo=0,ig=0,ui=0,ya=0,cc=null,Cn=null,rg=!1,sg=0,Lf=1/0,zf=null,vs=null,en=0,bs=null,va=null,ba=0,og=0,ag=null,Fx=null,uc=0,lg=null;function qn(){if((He&2)!==0&&qe!==0)return qe&-qe;if(Z.T!==null){var o=aa;return o!==0?o:mg()}return Ws()}function Kx(){ui===0&&(ui=(qe&536870912)===0||Ge?Sn():536870912);var o=ci.current;return o!==null&&(o.flags|=32),ui}function Bn(o,l,f){(o===ct&&(Fe===2||Fe===9)||o.cancelPendingCommit!==null)&&(xa(o,0),xs(o,qe,ui,!1)),Ci(o,f),((He&2)===0||o!==ct)&&(o===ct&&((He&2)===0&&(fo|=f),xt===4&&xs(o,qe,ui,!1)),Gi(o))}function Jx(o,l,f){if((He&6)!==0)throw Error(i(327));var d=!f&&(l&124)===0&&(l&o.expiredLanes)===0||Qr(o,l),g=d?t3(o,l):fg(o,l,!0),y=d;do{if(g===0){Oa&&!d&&xs(o,l,0,!1);break}else{if(f=o.current.alternate,y&&!J5(f)){g=fg(o,l,!1),y=!1;continue}if(g===2){if(y=l,o.errorRecoveryDisabledLanes&y)var Q=0;else Q=o.pendingLanes&-536870913,Q=Q!==0?Q:Q&536870912?536870912:0;if(Q!==0){l=Q;e:{var P=o;g=cc;var N=P.current.memoizedState.isDehydrated;if(N&&(xa(P,Q).flags|=256),Q=fg(P,Q,!1),Q!==2){if(ng&&!N){P.errorRecoveryDisabledLanes|=y,fo|=y,g=4;break e}y=Cn,Cn=g,y!==null&&(Cn===null?Cn=y:Cn.push.apply(Cn,y))}g=Q}if(y=!1,g!==2)continue}}if(g===1){xa(o,0),xs(o,l,0,!0);break}e:{switch(d=o,y=g,y){case 0:case 1:throw Error(i(345));case 4:if((l&4194048)!==l)break;case 6:xs(d,l,ui,!Os);break e;case 2:Cn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((l&62914560)===l&&(g=sg+300-at(),10<g)){if(xs(d,l,ui,!Os),kr(d,0,!0)!==0)break e;d.timeoutHandle=PS(eS.bind(null,d,f,Cn,zf,rg,l,ui,fo,ya,Os,y,2,-0,0),g);break e}eS(d,f,Cn,zf,rg,l,ui,fo,ya,Os,y,0,-0,0)}}break}while(!0);Gi(o)}function eS(o,l,f,d,g,y,Q,P,N,V,ne,se,G,H){if(o.timeoutHandle=-1,se=l.subtreeFlags,(se&8192||(se&16785408)===16785408)&&(Oc={stylesheets:null,count:0,unsuspend:_3},Gx(l),se=j3(),se!==null)){o.cancelPendingCommit=se(aS.bind(null,o,l,y,f,d,g,Q,P,N,ne,1,G,H)),xs(o,y,Q,!V);return}aS(o,l,y,f,d,g,Q,P,N)}function J5(o){for(var l=o;;){var f=l.tag;if((f===0||f===11||f===15)&&l.flags&16384&&(f=l.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var d=0;d<f.length;d++){var g=f[d],y=g.getSnapshot;g=g.value;try{if(!Nn(y(),g))return!1}catch{return!1}}if(f=l.child,l.subtreeFlags&16384&&f!==null)f.return=l,l=f;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function xs(o,l,f,d){l&=~ig,l&=~fo,o.suspendedLanes|=l,o.pingedLanes&=~l,d&&(o.warmLanes|=l),d=o.expirationTimes;for(var g=l;0<g;){var y=31-Qt(g),Q=1<<y;d[y]=-1,g&=~Q}f!==0&&Me(o,f,l)}function qf(){return(He&6)===0?(fc(0),!1):!0}function cg(){if(Ne!==null){if(Fe===0)var o=Ne.return;else o=Ne,$r=so=null,Cm(o),da=null,tc=0,o=Ne;for(;o!==null;)Ex(o.alternate,o),o=o.return;Ne=null}}function xa(o,l){var f=o.timeoutHandle;f!==-1&&(o.timeoutHandle=-1,O3(f)),f=o.cancelPendingCommit,f!==null&&(o.cancelPendingCommit=null,f()),cg(),ct=o,Ne=f=Ar(o.current,null),qe=l,Fe=0,zn=null,Os=!1,Oa=Qr(o,l),ng=!1,ya=ui=ig=fo=ys=xt=0,Cn=cc=null,rg=!1,(l&8)!==0&&(l|=l&32);var d=o.entangledLanes;if(d!==0)for(o=o.entanglements,d&=l;0<d;){var g=31-Qt(d),y=1<<g;l|=o[g],d&=~y}return Lr=l,uf(),f}function tS(o,l){Ee=null,Z.H=Af,l===Ul||l===vf?(l=y1(),Fe=3):l===m1?(l=y1(),Fe=4):Fe=l===vx?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,zn=l,Ne===null&&(xt=1,_f(o,si(l,o.current)))}function nS(){var o=Z.H;return Z.H=Af,o===null?Af:o}function iS(){var o=Z.A;return Z.A=F5,o}function ug(){xt=4,Os||(qe&4194048)!==qe&&ci.current!==null||(Oa=!0),(ys&134217727)===0&&(fo&134217727)===0||ct===null||xs(ct,qe,ui,!1)}function fg(o,l,f){var d=He;He|=2;var g=nS(),y=iS();(ct!==o||qe!==l)&&(zf=null,xa(o,l)),l=!1;var Q=xt;e:do try{if(Fe!==0&&Ne!==null){var P=Ne,N=zn;switch(Fe){case 8:cg(),Q=6;break e;case 3:case 2:case 9:case 6:ci.current===null&&(l=!0);var V=Fe;if(Fe=0,zn=null,Sa(o,P,N,V),f&&Oa){Q=0;break e}break;default:V=Fe,Fe=0,zn=null,Sa(o,P,N,V)}}e3(),Q=xt;break}catch(ne){tS(o,ne)}while(!0);return l&&o.shellSuspendCounter++,$r=so=null,He=d,Z.H=g,Z.A=y,Ne===null&&(ct=null,qe=0,uf()),Q}function e3(){for(;Ne!==null;)rS(Ne)}function t3(o,l){var f=He;He|=2;var d=nS(),g=iS();ct!==o||qe!==l?(zf=null,Lf=at()+500,xa(o,l)):Oa=Qr(o,l);e:do try{if(Fe!==0&&Ne!==null){l=Ne;var y=zn;t:switch(Fe){case 1:Fe=0,zn=null,Sa(o,l,y,1);break;case 2:case 9:if(g1(y)){Fe=0,zn=null,sS(l);break}l=function(){Fe!==2&&Fe!==9||ct!==o||(Fe=7),Gi(o)},y.then(l,l);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:g1(y)?(Fe=0,zn=null,sS(l)):(Fe=0,zn=null,Sa(o,l,y,7));break;case 5:var Q=null;switch(Ne.tag){case 26:Q=Ne.memoizedState;case 5:case 27:var P=Ne;if(!Q||LS(Q)){Fe=0,zn=null;var N=P.sibling;if(N!==null)Ne=N;else{var V=P.return;V!==null?(Ne=V,Bf(V)):Ne=null}break t}}Fe=0,zn=null,Sa(o,l,y,5);break;case 6:Fe=0,zn=null,Sa(o,l,y,6);break;case 8:cg(),xt=6;break e;default:throw Error(i(462))}}n3();break}catch(ne){tS(o,ne)}while(!0);return $r=so=null,Z.H=d,Z.A=g,He=f,Ne!==null?0:(ct=null,qe=0,uf(),xt)}function n3(){for(;Ne!==null&&!Xt();)rS(Ne)}function rS(o){var l=Rx(o.alternate,o,Lr);o.memoizedProps=o.pendingProps,l===null?Bf(o):Ne=l}function sS(o){var l=o,f=l.alternate;switch(l.tag){case 15:case 0:l=Qx(f,l,l.pendingProps,l.type,void 0,qe);break;case 11:l=Qx(f,l,l.pendingProps,l.type.render,l.ref,qe);break;case 5:Cm(l);default:Ex(f,l),l=Ne=o1(l,Lr),l=Rx(f,l,Lr)}o.memoizedProps=o.pendingProps,l===null?Bf(o):Ne=l}function Sa(o,l,f,d){$r=so=null,Cm(l),da=null,tc=0;var g=l.return;try{if(Y5(o,g,l,f,qe)){xt=1,_f(o,si(f,o.current)),Ne=null;return}}catch(y){if(g!==null)throw Ne=g,y;xt=1,_f(o,si(f,o.current)),Ne=null;return}l.flags&32768?(Ge||d===1?o=!0:Oa||(qe&536870912)!==0?o=!1:(Os=o=!0,(d===2||d===9||d===3||d===6)&&(d=ci.current,d!==null&&d.tag===13&&(d.flags|=16384))),oS(l,o)):Bf(l)}function Bf(o){var l=o;do{if((l.flags&32768)!==0){oS(l,Os);return}o=l.return;var f=G5(l.alternate,l,Lr);if(f!==null){Ne=f;return}if(l=l.sibling,l!==null){Ne=l;return}Ne=l=o}while(l!==null);xt===0&&(xt=5)}function oS(o,l){do{var f=I5(o.alternate,o);if(f!==null){f.flags&=32767,Ne=f;return}if(f=o.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!l&&(o=o.sibling,o!==null)){Ne=o;return}Ne=o=f}while(o!==null);xt=6,Ne=null}function aS(o,l,f,d,g,y,Q,P,N){o.cancelPendingCommit=null;do Vf();while(en!==0);if((He&6)!==0)throw Error(i(327));if(l!==null){if(l===o.current)throw Error(i(177));if(y=l.lanes|l.childLanes,y|=tm,Is(o,f,y,Q,P,N),o===ct&&(Ne=ct=null,qe=0),va=l,bs=o,ba=f,og=y,ag=g,Fx=d,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,o3(Jn,function(){return hS(),null})):(o.callbackNode=null,o.callbackPriority=0),d=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||d){d=Z.T,Z.T=null,g=U.p,U.p=2,Q=He,He|=4;try{W5(o,l,f)}finally{He=Q,U.p=g,Z.T=d}}en=1,lS(),cS(),uS()}}function lS(){if(en===1){en=0;var o=bs,l=va,f=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||f){f=Z.T,Z.T=null;var d=U.p;U.p=2;var g=He;He|=4;try{Vx(l,o);var y=wg,Q=Hb(o.containerInfo),P=y.focusedElem,N=y.selectionRange;if(Q!==P&&P&&P.ownerDocument&&Wb(P.ownerDocument.documentElement,P)){if(N!==null&&Hp(P)){var V=N.start,ne=N.end;if(ne===void 0&&(ne=V),"selectionStart"in P)P.selectionStart=V,P.selectionEnd=Math.min(ne,P.value.length);else{var se=P.ownerDocument||document,G=se&&se.defaultView||window;if(G.getSelection){var H=G.getSelection(),Pe=P.textContent.length,Qe=Math.min(N.start,Pe),tt=N.end===void 0?Qe:Math.min(N.end,Pe);!H.extend&&Qe>tt&&(Q=tt,tt=Qe,Qe=Q);var L=Ib(P,Qe),X=Ib(P,tt);if(L&&X&&(H.rangeCount!==1||H.anchorNode!==L.node||H.anchorOffset!==L.offset||H.focusNode!==X.node||H.focusOffset!==X.offset)){var B=se.createRange();B.setStart(L.node,L.offset),H.removeAllRanges(),Qe>tt?(H.addRange(B),H.extend(X.node,X.offset)):(B.setEnd(X.node,X.offset),H.addRange(B))}}}}for(se=[],H=P;H=H.parentNode;)H.nodeType===1&&se.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<se.length;P++){var ie=se[P];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}nh=!!Sg,wg=Sg=null}finally{He=g,U.p=d,Z.T=f}}o.current=l,en=2}}function cS(){if(en===2){en=0;var o=bs,l=va,f=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||f){f=Z.T,Z.T=null;var d=U.p;U.p=2;var g=He;He|=4;try{Lx(o,l.alternate,l)}finally{He=g,U.p=d,Z.T=f}}en=3}}function uS(){if(en===4||en===3){en=0,mn();var o=bs,l=va,f=ba,d=Fx;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?en=5:(en=0,va=bs=null,fS(o,o.pendingLanes));var g=o.pendingLanes;if(g===0&&(vs=null),zt(f),l=l.stateNode,Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(ei,l,void 0,(l.current.flags&128)===128)}catch{}if(d!==null){l=Z.T,g=U.p,U.p=2,Z.T=null;try{for(var y=o.onRecoverableError,Q=0;Q<d.length;Q++){var P=d[Q];y(P.value,{componentStack:P.stack})}}finally{Z.T=l,U.p=g}}(ba&3)!==0&&Vf(),Gi(o),g=o.pendingLanes,(f&4194090)!==0&&(g&42)!==0?o===lg?uc++:(uc=0,lg=o):uc=0,fc(0)}}function fS(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,Vl(l)))}function Vf(o){return lS(),cS(),uS(),hS()}function hS(){if(en!==5)return!1;var o=bs,l=og;og=0;var f=zt(ba),d=Z.T,g=U.p;try{U.p=32>f?32:f,Z.T=null,f=ag,ag=null;var y=bs,Q=ba;if(en=0,va=bs=null,ba=0,(He&6)!==0)throw Error(i(331));var P=He;if(He|=4,Wx(y.current),Ux(y,y.current,Q,f),He=P,fc(0,!1),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(ei,y)}catch{}return!0}finally{U.p=g,Z.T=d,fS(o,l)}}function dS(o,l,f){l=si(f,l),l=Lm(o.stateNode,l,2),o=us(o,l,2),o!==null&&(Ci(o,2),Gi(o))}function nt(o,l,f){if(o.tag===3)dS(o,o,f);else for(;l!==null;){if(l.tag===3){dS(l,o,f);break}else if(l.tag===1){var d=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(vs===null||!vs.has(d))){o=si(f,o),f=Ox(2),d=us(l,f,2),d!==null&&(yx(f,d,l,o),Ci(d,2),Gi(d));break}}l=l.return}}function hg(o,l,f){var d=o.pingCache;if(d===null){d=o.pingCache=new K5;var g=new Set;d.set(l,g)}else g=d.get(l),g===void 0&&(g=new Set,d.set(l,g));g.has(f)||(ng=!0,g.add(f),o=i3.bind(null,o,l,f),l.then(o,o))}function i3(o,l,f){var d=o.pingCache;d!==null&&d.delete(l),o.pingedLanes|=o.suspendedLanes&f,o.warmLanes&=~f,ct===o&&(qe&f)===f&&(xt===4||xt===3&&(qe&62914560)===qe&&300>at()-sg?(He&2)===0&&xa(o,0):ig|=f,ya===qe&&(ya=0)),Gi(o)}function pS(o,l){l===0&&(l=qo()),o=ia(o,l),o!==null&&(Ci(o,l),Gi(o))}function r3(o){var l=o.memoizedState,f=0;l!==null&&(f=l.retryLane),pS(o,f)}function s3(o,l){var f=0;switch(o.tag){case 13:var d=o.stateNode,g=o.memoizedState;g!==null&&(f=g.retryLane);break;case 19:d=o.stateNode;break;case 22:d=o.stateNode._retryCache;break;default:throw Error(i(314))}d!==null&&d.delete(l),pS(o,f)}function o3(o,l){return je(o,l)}var Yf=null,wa=null,dg=!1,Uf=!1,pg=!1,ho=0;function Gi(o){o!==wa&&o.next===null&&(wa===null?Yf=wa=o:wa=wa.next=o),Uf=!0,dg||(dg=!0,l3())}function fc(o,l){if(!pg&&Uf){pg=!0;do for(var f=!1,d=Yf;d!==null;){if(o!==0){var g=d.pendingLanes;if(g===0)var y=0;else{var Q=d.suspendedLanes,P=d.pingedLanes;y=(1<<31-Qt(42|o)+1)-1,y&=g&~(Q&~P),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(f=!0,yS(d,y))}else y=qe,y=kr(d,d===ct?y:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(y&3)===0||Qr(d,y)||(f=!0,yS(d,y));d=d.next}while(f);pg=!1}}function a3(){mS()}function mS(){Uf=dg=!1;var o=0;ho!==0&&(g3()&&(o=ho),ho=0);for(var l=at(),f=null,d=Yf;d!==null;){var g=d.next,y=gS(d,l);y===0?(d.next=null,f===null?Yf=g:f.next=g,g===null&&(wa=f)):(f=d,(o!==0||(y&3)!==0)&&(Uf=!0)),d=g}fc(o)}function gS(o,l){for(var f=o.suspendedLanes,d=o.pingedLanes,g=o.expirationTimes,y=o.pendingLanes&-62914561;0<y;){var Q=31-Qt(y),P=1<<Q,N=g[Q];N===-1?((P&f)===0||(P&d)!==0)&&(g[Q]=Gs(P,l)):N<=l&&(o.expiredLanes|=P),y&=~P}if(l=ct,f=qe,f=kr(o,o===l?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),d=o.callbackNode,f===0||o===l&&(Fe===2||Fe===9)||o.cancelPendingCommit!==null)return d!==null&&d!==null&&Ke(d),o.callbackNode=null,o.callbackPriority=0;if((f&3)===0||Qr(o,f)){if(l=f&-f,l===o.callbackPriority)return l;switch(d!==null&&Ke(d),zt(f)){case 2:case 8:f=Kn;break;case 32:f=Jn;break;case 268435456:f=Dn;break;default:f=Jn}return d=OS.bind(null,o),f=je(f,d),o.callbackPriority=l,o.callbackNode=f,l}return d!==null&&d!==null&&Ke(d),o.callbackPriority=2,o.callbackNode=null,2}function OS(o,l){if(en!==0&&en!==5)return o.callbackNode=null,o.callbackPriority=0,null;var f=o.callbackNode;if(Vf()&&o.callbackNode!==f)return null;var d=qe;return d=kr(o,o===ct?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),d===0?null:(Jx(o,d,l),gS(o,at()),o.callbackNode!=null&&o.callbackNode===f?OS.bind(null,o):null)}function yS(o,l){if(Vf())return null;Jx(o,l,!0)}function l3(){y3(function(){(He&6)!==0?je(kt,a3):mS()})}function mg(){return ho===0&&(ho=Sn()),ho}function vS(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:nf(""+o)}function bS(o,l){var f=l.ownerDocument.createElement("input");return f.name=l.name,f.value=l.value,o.id&&f.setAttribute("form",o.id),l.parentNode.insertBefore(f,l),o=new FormData(o),f.parentNode.removeChild(f),o}function c3(o,l,f,d,g){if(l==="submit"&&f&&f.stateNode===g){var y=vS((g[lt]||null).action),Q=d.submitter;Q&&(l=(l=Q[lt]||null)?vS(l.formAction):Q.getAttribute("formAction"),l!==null&&(y=l,Q=null));var P=new af("action","action",null,d,g);o.push({event:P,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(ho!==0){var N=Q?bS(g,Q):new FormData(g);Dm(f,{pending:!0,data:N,method:g.method,action:y},null,N)}}else typeof y=="function"&&(P.preventDefault(),N=Q?bS(g,Q):new FormData(g),Dm(f,{pending:!0,data:N,method:g.method,action:y},y,N))},currentTarget:g}]})}}for(var gg=0;gg<em.length;gg++){var Og=em[gg],u3=Og.toLowerCase(),f3=Og[0].toUpperCase()+Og.slice(1);Ti(u3,"on"+f3)}Ti(Jb,"onAnimationEnd"),Ti(e1,"onAnimationIteration"),Ti(t1,"onAnimationStart"),Ti("dblclick","onDoubleClick"),Ti("focusin","onFocus"),Ti("focusout","onBlur"),Ti(P5,"onTransitionRun"),Ti(A5,"onTransitionStart"),Ti(M5,"onTransitionCancel"),Ti(n1,"onTransitionEnd"),Go("onMouseEnter",["mouseout","mouseover"]),Go("onMouseLeave",["mouseout","mouseover"]),Go("onPointerEnter",["pointerout","pointerover"]),Go("onPointerLeave",["pointerout","pointerover"]),Hs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hc="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(" "),h3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hc));function xS(o,l){l=(l&4)!==0;for(var f=0;f<o.length;f++){var d=o[f],g=d.event;d=d.listeners;e:{var y=void 0;if(l)for(var Q=d.length-1;0<=Q;Q--){var P=d[Q],N=P.instance,V=P.currentTarget;if(P=P.listener,N!==y&&g.isPropagationStopped())break e;y=P,g.currentTarget=V;try{y(g)}catch(ne){Ef(ne)}g.currentTarget=null,y=N}else for(Q=0;Q<d.length;Q++){if(P=d[Q],N=P.instance,V=P.currentTarget,P=P.listener,N!==y&&g.isPropagationStopped())break e;y=P,g.currentTarget=V;try{y(g)}catch(ne){Ef(ne)}g.currentTarget=null,y=N}}}}function Ze(o,l){var f=l[Bo];f===void 0&&(f=l[Bo]=new Set);var d=o+"__bubble";f.has(d)||(SS(l,o,2,!1),f.add(d))}function yg(o,l,f){var d=0;l&&(d|=4),SS(f,o,d,l)}var Gf="_reactListening"+Math.random().toString(36).slice(2);function vg(o){if(!o[Gf]){o[Gf]=!0,mb.forEach(function(f){f!=="selectionchange"&&(h3.has(f)||yg(f,!1,o),yg(f,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Gf]||(l[Gf]=!0,yg("selectionchange",!1,l))}}function SS(o,l,f,d){switch(US(l)){case 2:var g=X3;break;case 8:g=L3;break;default:g=Eg}f=g.bind(null,l,f,o),g=void 0,!zp||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(g=!0),d?g!==void 0?o.addEventListener(l,f,{capture:!0,passive:g}):o.addEventListener(l,f,!0):g!==void 0?o.addEventListener(l,f,{passive:g}):o.addEventListener(l,f,!1)}function bg(o,l,f,d,g){var y=d;if((l&1)===0&&(l&2)===0&&d!==null)e:for(;;){if(d===null)return;var Q=d.tag;if(Q===3||Q===4){var P=d.stateNode.containerInfo;if(P===g)break;if(Q===4)for(Q=d.return;Q!==null;){var N=Q.tag;if((N===3||N===4)&&Q.stateNode.containerInfo===g)return;Q=Q.return}for(;P!==null;){if(Q=Vo(P),Q===null)return;if(N=Q.tag,N===5||N===6||N===26||N===27){d=y=Q;continue e}P=P.parentNode}}d=d.return}Ab(function(){var V=y,ne=Xp(f),se=[];e:{var G=i1.get(o);if(G!==void 0){var H=af,Pe=o;switch(o){case"keypress":if(sf(f)===0)break e;case"keydown":case"keyup":H=o5;break;case"focusin":Pe="focus",H=Yp;break;case"focusout":Pe="blur",H=Yp;break;case"beforeblur":case"afterblur":H=Yp;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=$b;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=IE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=c5;break;case Jb:case e1:case t1:H=FE;break;case n1:H=f5;break;case"scroll":case"scrollend":H=UE;break;case"wheel":H=d5;break;case"copy":case"cut":case"paste":H=JE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=_b;break;case"toggle":case"beforetoggle":H=m5}var Qe=(l&4)!==0,tt=!Qe&&(o==="scroll"||o==="scrollend"),L=Qe?G!==null?G+"Capture":null:G;Qe=[];for(var X=V,B;X!==null;){var ie=X;if(B=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||B===null||L===null||(ie=Rl(X,L),ie!=null&&Qe.push(dc(X,ie,B))),tt)break;X=X.return}0<Qe.length&&(G=new H(G,Pe,null,f,ne),se.push({event:G,listeners:Qe}))}}if((l&7)===0){e:{if(G=o==="mouseover"||o==="pointerover",H=o==="mouseout"||o==="pointerout",G&&f!==Zp&&(Pe=f.relatedTarget||f.fromElement)&&(Vo(Pe)||Pe[Gt]))break e;if((H||G)&&(G=ne.window===ne?ne:(G=ne.ownerDocument)?G.defaultView||G.parentWindow:window,H?(Pe=f.relatedTarget||f.toElement,H=V,Pe=Pe?Vo(Pe):null,Pe!==null&&(tt=s(Pe),Qe=Pe.tag,Pe!==tt||Qe!==5&&Qe!==27&&Qe!==6)&&(Pe=null)):(H=null,Pe=V),H!==Pe)){if(Qe=$b,ie="onMouseLeave",L="onMouseEnter",X="mouse",(o==="pointerout"||o==="pointerover")&&(Qe=_b,ie="onPointerLeave",L="onPointerEnter",X="pointer"),tt=H==null?G:Ml(H),B=Pe==null?G:Ml(Pe),G=new Qe(ie,X+"leave",H,f,ne),G.target=tt,G.relatedTarget=B,ie=null,Vo(ne)===V&&(Qe=new Qe(L,X+"enter",Pe,f,ne),Qe.target=B,Qe.relatedTarget=tt,ie=Qe),tt=ie,H&&Pe)t:{for(Qe=H,L=Pe,X=0,B=Qe;B;B=ka(B))X++;for(B=0,ie=L;ie;ie=ka(ie))B++;for(;0<X-B;)Qe=ka(Qe),X--;for(;0<B-X;)L=ka(L),B--;for(;X--;){if(Qe===L||L!==null&&Qe===L.alternate)break t;Qe=ka(Qe),L=ka(L)}Qe=null}else Qe=null;H!==null&&wS(se,G,H,Qe,!1),Pe!==null&&tt!==null&&wS(se,tt,Pe,Qe,!0)}}e:{if(G=V?Ml(V):window,H=G.nodeName&&G.nodeName.toLowerCase(),H==="select"||H==="input"&&G.type==="file")var ye=qb;else if(Lb(G))if(Bb)ye=Q5;else{ye=w5;var De=S5}else H=G.nodeName,!H||H.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?V&&Np(V.elementType)&&(ye=qb):ye=k5;if(ye&&(ye=ye(o,V))){zb(se,ye,f,ne);break e}De&&De(o,G,V),o==="focusout"&&V&&G.type==="number"&&V.memoizedProps.value!=null&&jp(G,"number",G.value)}switch(De=V?Ml(V):window,o){case"focusin":(Lb(De)||De.contentEditable==="true")&&(ea=De,Fp=V,Xl=null);break;case"focusout":Xl=Fp=ea=null;break;case"mousedown":Kp=!0;break;case"contextmenu":case"mouseup":case"dragend":Kp=!1,Fb(se,f,ne);break;case"selectionchange":if(T5)break;case"keydown":case"keyup":Fb(se,f,ne)}var we;if(Gp)e:{switch(o){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Jo?Zb(o,f)&&(Ce="onCompositionEnd"):o==="keydown"&&f.keyCode===229&&(Ce="onCompositionStart");Ce&&(Db&&f.locale!=="ko"&&(Jo||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Jo&&(we=Mb()):(os=ne,qp="value"in os?os.value:os.textContent,Jo=!0)),De=If(V,Ce),0<De.length&&(Ce=new Eb(Ce,o,null,f,ne),se.push({event:Ce,listeners:De}),we?Ce.data=we:(we=Xb(f),we!==null&&(Ce.data=we)))),(we=O5?y5(o,f):v5(o,f))&&(Ce=If(V,"onBeforeInput"),0<Ce.length&&(De=new Eb("onBeforeInput","beforeinput",null,f,ne),se.push({event:De,listeners:Ce}),De.data=we)),c3(se,o,V,f,ne)}xS(se,l)})}function dc(o,l,f){return{instance:o,listener:l,currentTarget:f}}function If(o,l){for(var f=l+"Capture",d=[];o!==null;){var g=o,y=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||y===null||(g=Rl(o,f),g!=null&&d.unshift(dc(o,g,y)),g=Rl(o,l),g!=null&&d.push(dc(o,g,y))),o.tag===3)return d;o=o.return}return[]}function ka(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function wS(o,l,f,d,g){for(var y=l._reactName,Q=[];f!==null&&f!==d;){var P=f,N=P.alternate,V=P.stateNode;if(P=P.tag,N!==null&&N===d)break;P!==5&&P!==26&&P!==27||V===null||(N=V,g?(V=Rl(f,y),V!=null&&Q.unshift(dc(f,V,N))):g||(V=Rl(f,y),V!=null&&Q.push(dc(f,V,N)))),f=f.return}Q.length!==0&&o.push({event:l,listeners:Q})}var d3=/\r\n?/g,p3=/\u0000|\uFFFD/g;function kS(o){return(typeof o=="string"?o:""+o).replace(d3,`
49
49
  `).replace(p3,"")}function QS(o,l){return l=kS(l),kS(o)===l}function Wf(){}function et(o,l,f,d,g,y){switch(f){case"children":typeof d=="string"?l==="body"||l==="textarea"&&d===""||Ho(o,d):(typeof d=="number"||typeof d=="bigint")&&l!=="body"&&Ho(o,""+d);break;case"className":Ju(o,"class",d);break;case"tabIndex":Ju(o,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Ju(o,f,d);break;case"style":Tb(o,d,y);break;case"data":if(l!=="object"){Ju(o,"data",d);break}case"src":case"href":if(d===""&&(l!=="a"||f!=="href")){o.removeAttribute(f);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){o.removeAttribute(f);break}d=nf(""+d),o.setAttribute(f,d);break;case"action":case"formAction":if(typeof d=="function"){o.setAttribute(f,"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 y=="function"&&(f==="formAction"?(l!=="input"&&et(o,l,"name",g.name,g,null),et(o,l,"formEncType",g.formEncType,g,null),et(o,l,"formMethod",g.formMethod,g,null),et(o,l,"formTarget",g.formTarget,g,null)):(et(o,l,"encType",g.encType,g,null),et(o,l,"method",g.method,g,null),et(o,l,"target",g.target,g,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){o.removeAttribute(f);break}d=nf(""+d),o.setAttribute(f,d);break;case"onClick":d!=null&&(o.onclick=Wf);break;case"onScroll":d!=null&&Ze("scroll",o);break;case"onScrollEnd":d!=null&&Ze("scrollend",o);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(f=d.__html,f!=null){if(g.children!=null)throw Error(i(60));o.innerHTML=f}}break;case"multiple":o.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":o.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){o.removeAttribute("xlink:href");break}f=nf(""+d),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?o.setAttribute(f,""+d):o.removeAttribute(f);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":d&&typeof d!="function"&&typeof d!="symbol"?o.setAttribute(f,""):o.removeAttribute(f);break;case"capture":case"download":d===!0?o.setAttribute(f,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?o.setAttribute(f,d):o.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?o.setAttribute(f,d):o.removeAttribute(f);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?o.removeAttribute(f):o.setAttribute(f,d);break;case"popover":Ze("beforetoggle",o),Ze("toggle",o),Ku(o,"popover",d);break;case"xlinkActuate":Tr(o,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Tr(o,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Tr(o,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Tr(o,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Tr(o,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Tr(o,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Tr(o,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Tr(o,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Tr(o,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Ku(o,"is",d);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=VE.get(f)||f,Ku(o,f,d))}}function xg(o,l,f,d,g,y){switch(f){case"style":Tb(o,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(f=d.__html,f!=null){if(g.children!=null)throw Error(i(60));o.innerHTML=f}}break;case"children":typeof d=="string"?Ho(o,d):(typeof d=="number"||typeof d=="bigint")&&Ho(o,""+d);break;case"onScroll":d!=null&&Ze("scroll",o);break;case"onScrollEnd":d!=null&&Ze("scrollend",o);break;case"onClick":d!=null&&(o.onclick=Wf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gb.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(g=f.endsWith("Capture"),l=f.slice(2,g?f.length-7:void 0),y=o[lt]||null,y=y!=null?y[f]:null,typeof y=="function"&&o.removeEventListener(l,y,g),typeof d=="function")){typeof y!="function"&&y!==null&&(f in o?o[f]=null:o.hasAttribute(f)&&o.removeAttribute(f)),o.addEventListener(l,d,g);break e}f in o?o[f]=d:d===!0?o.setAttribute(f,""):Ku(o,f,d)}}}function tn(o,l,f){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",o),Ze("load",o);var d=!1,g=!1,y;for(y in f)if(f.hasOwnProperty(y)){var Q=f[y];if(Q!=null)switch(y){case"src":d=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,l));default:et(o,l,y,Q,f,null)}}g&&et(o,l,"srcSet",f.srcSet,f,null),d&&et(o,l,"src",f.src,f,null);return;case"input":Ze("invalid",o);var P=y=Q=g=null,N=null,V=null;for(d in f)if(f.hasOwnProperty(d)){var ne=f[d];if(ne!=null)switch(d){case"name":g=ne;break;case"type":Q=ne;break;case"checked":N=ne;break;case"defaultChecked":V=ne;break;case"value":y=ne;break;case"defaultValue":P=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,l));break;default:et(o,l,d,ne,f,null)}}wb(o,y,P,N,V,Q,g,!1),ef(o);return;case"select":Ze("invalid",o),d=Q=y=null;for(g in f)if(f.hasOwnProperty(g)&&(P=f[g],P!=null))switch(g){case"value":y=P;break;case"defaultValue":Q=P;break;case"multiple":d=P;default:et(o,l,g,P,f,null)}l=y,f=Q,o.multiple=!!d,l!=null?Wo(o,!!d,l,!1):f!=null&&Wo(o,!!d,f,!0);return;case"textarea":Ze("invalid",o),y=g=d=null;for(Q in f)if(f.hasOwnProperty(Q)&&(P=f[Q],P!=null))switch(Q){case"value":d=P;break;case"defaultValue":g=P;break;case"children":y=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(i(91));break;default:et(o,l,Q,P,f,null)}Qb(o,d,g,y),ef(o);return;case"option":for(N in f)if(f.hasOwnProperty(N)&&(d=f[N],d!=null))switch(N){case"selected":o.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:et(o,l,N,d,f,null)}return;case"dialog":Ze("beforetoggle",o),Ze("toggle",o),Ze("cancel",o),Ze("close",o);break;case"iframe":case"object":Ze("load",o);break;case"video":case"audio":for(d=0;d<hc.length;d++)Ze(hc[d],o);break;case"image":Ze("error",o),Ze("load",o);break;case"details":Ze("toggle",o);break;case"embed":case"source":case"link":Ze("error",o),Ze("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in f)if(f.hasOwnProperty(V)&&(d=f[V],d!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,l));default:et(o,l,V,d,f,null)}return;default:if(Np(l)){for(ne in f)f.hasOwnProperty(ne)&&(d=f[ne],d!==void 0&&xg(o,l,ne,d,f,void 0));return}}for(P in f)f.hasOwnProperty(P)&&(d=f[P],d!=null&&et(o,l,P,d,f,null))}function m3(o,l,f,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,y=null,Q=null,P=null,N=null,V=null,ne=null;for(H in f){var se=f[H];if(f.hasOwnProperty(H)&&se!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":N=se;default:d.hasOwnProperty(H)||et(o,l,H,null,d,se)}}for(var G in d){var H=d[G];if(se=f[G],d.hasOwnProperty(G)&&(H!=null||se!=null))switch(G){case"type":y=H;break;case"name":g=H;break;case"checked":V=H;break;case"defaultChecked":ne=H;break;case"value":Q=H;break;case"defaultValue":P=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,l));break;default:H!==se&&et(o,l,G,H,d,se)}}Dp(o,Q,P,N,V,ne,y,g);return;case"select":H=Q=P=G=null;for(y in f)if(N=f[y],f.hasOwnProperty(y)&&N!=null)switch(y){case"value":break;case"multiple":H=N;default:d.hasOwnProperty(y)||et(o,l,y,null,d,N)}for(g in d)if(y=d[g],N=f[g],d.hasOwnProperty(g)&&(y!=null||N!=null))switch(g){case"value":G=y;break;case"defaultValue":P=y;break;case"multiple":Q=y;default:y!==N&&et(o,l,g,y,d,N)}l=P,f=Q,d=H,G!=null?Wo(o,!!f,G,!1):!!d!=!!f&&(l!=null?Wo(o,!!f,l,!0):Wo(o,!!f,f?[]:"",!1));return;case"textarea":H=G=null;for(P in f)if(g=f[P],f.hasOwnProperty(P)&&g!=null&&!d.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:et(o,l,P,null,d,g)}for(Q in d)if(g=d[Q],y=f[Q],d.hasOwnProperty(Q)&&(g!=null||y!=null))switch(Q){case"value":G=g;break;case"defaultValue":H=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==y&&et(o,l,Q,g,d,y)}kb(o,G,H);return;case"option":for(var Pe in f)if(G=f[Pe],f.hasOwnProperty(Pe)&&G!=null&&!d.hasOwnProperty(Pe))switch(Pe){case"selected":o.selected=!1;break;default:et(o,l,Pe,null,d,G)}for(N in d)if(G=d[N],H=f[N],d.hasOwnProperty(N)&&G!==H&&(G!=null||H!=null))switch(N){case"selected":o.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:et(o,l,N,G,d,H)}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 Qe in f)G=f[Qe],f.hasOwnProperty(Qe)&&G!=null&&!d.hasOwnProperty(Qe)&&et(o,l,Qe,null,d,G);for(V in d)if(G=d[V],H=f[V],d.hasOwnProperty(V)&&G!==H&&(G!=null||H!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(137,l));break;default:et(o,l,V,G,d,H)}return;default:if(Np(l)){for(var tt in f)G=f[tt],f.hasOwnProperty(tt)&&G!==void 0&&!d.hasOwnProperty(tt)&&xg(o,l,tt,void 0,d,G);for(ne in d)G=d[ne],H=f[ne],!d.hasOwnProperty(ne)||G===H||G===void 0&&H===void 0||xg(o,l,ne,G,d,H);return}}for(var L in f)G=f[L],f.hasOwnProperty(L)&&G!=null&&!d.hasOwnProperty(L)&&et(o,l,L,null,d,G);for(se in d)G=d[se],H=f[se],!d.hasOwnProperty(se)||G===H||G==null&&H==null||et(o,l,se,G,d,H)}var Sg=null,wg=null;function Hf(o){return o.nodeType===9?o:o.ownerDocument}function CS(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function TS(o,l){if(o===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&l==="foreignObject"?0:o}function kg(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Qg=null;function g3(){var o=window.event;return o&&o.type==="popstate"?o===Qg?!1:(Qg=o,!0):(Qg=null,!1)}var PS=typeof setTimeout=="function"?setTimeout:void 0,O3=typeof clearTimeout=="function"?clearTimeout:void 0,AS=typeof Promise=="function"?Promise:void 0,y3=typeof queueMicrotask=="function"?queueMicrotask:typeof AS<"u"?function(o){return AS.resolve(null).then(o).catch(v3)}:PS;function v3(o){setTimeout(function(){throw o})}function Ss(o){return o==="head"}function MS(o,l){var f=l,d=0,g=0;do{var y=f.nextSibling;if(o.removeChild(f),y&&y.nodeType===8)if(f=y.data,f==="/$"){if(0<d&&8>d){f=d;var Q=o.ownerDocument;if(f&1&&pc(Q.documentElement),f&2&&pc(Q.body),f&4)for(f=Q.head,pc(f),Q=f.firstChild;Q;){var P=Q.nextSibling,N=Q.nodeName;Q[Al]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&Q.rel.toLowerCase()==="stylesheet"||f.removeChild(Q),Q=P}}if(g===0){o.removeChild(y),Sc(l);return}g--}else f==="$"||f==="$?"||f==="$!"?g++:d=f.charCodeAt(0)-48;else d=0;f=y}while(f);Sc(l)}function Cg(o){var l=o.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var f=l;switch(l=l.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":Cg(f),Rp(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}o.removeChild(f)}}function b3(o,l,f,d){for(;o.nodeType===1;){var g=f;if(o.nodeName.toLowerCase()!==l.toLowerCase()){if(!d&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(d){if(!o[Al])switch(l){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(y=o.getAttribute("rel"),y==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(y!==g.rel||o.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||o.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||o.getAttribute("title")!==(g.title==null?null:g.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(y=o.getAttribute("src"),(y!==(g.src==null?null:g.src)||o.getAttribute("type")!==(g.type==null?null:g.type)||o.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&y&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(l==="input"&&o.type==="hidden"){var y=g.name==null?null:""+g.name;if(g.type==="hidden"&&o.getAttribute("name")===y)return o}else return o;if(o=Ai(o.nextSibling),o===null)break}return null}function x3(o,l,f){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!f||(o=Ai(o.nextSibling),o===null))return null;return o}function Tg(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState==="complete"}function S3(o,l){var f=o.ownerDocument;if(o.data!=="$?"||f.readyState==="complete")l();else{var d=function(){l(),f.removeEventListener("DOMContentLoaded",d)};f.addEventListener("DOMContentLoaded",d),o._reactRetry=d}}function Ai(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return o}var Pg=null;function RS(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var f=o.data;if(f==="$"||f==="$!"||f==="$?"){if(l===0)return o;l--}else f==="/$"&&l++}o=o.previousSibling}return null}function $S(o,l,f){switch(l=Hf(f),o){case"html":if(o=l.documentElement,!o)throw Error(i(452));return o;case"head":if(o=l.head,!o)throw Error(i(453));return o;case"body":if(o=l.body,!o)throw Error(i(454));return o;default:throw Error(i(451))}}function pc(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);Rp(o)}var fi=new Map,ES=new Set;function Ff(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var zr=U.d;U.d={f:w3,r:k3,D:Q3,C:C3,L:T3,m:P3,X:M3,S:A3,M:R3};function w3(){var o=zr.f(),l=qf();return o||l}function k3(o){var l=Yo(o);l!==null&&l.tag===5&&l.type==="form"?J1(l):zr.r(o)}var Qa=typeof document>"u"?null:document;function _S(o,l,f){var d=Qa;if(d&&typeof l=="string"&&l){var g=ri(l);g='link[rel="'+o+'"][href="'+g+'"]',typeof f=="string"&&(g+='[crossorigin="'+f+'"]'),ES.has(g)||(ES.add(g),o={rel:o,crossOrigin:f,href:l},d.querySelector(g)===null&&(l=d.createElement("link"),tn(l,"link",o),It(l),d.head.appendChild(l)))}}function Q3(o){zr.D(o),_S("dns-prefetch",o,null)}function C3(o,l){zr.C(o,l),_S("preconnect",o,l)}function T3(o,l,f){zr.L(o,l,f);var d=Qa;if(d&&o&&l){var g='link[rel="preload"][as="'+ri(l)+'"]';l==="image"&&f&&f.imageSrcSet?(g+='[imagesrcset="'+ri(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(g+='[imagesizes="'+ri(f.imageSizes)+'"]')):g+='[href="'+ri(o)+'"]';var y=g;switch(l){case"style":y=Ca(o);break;case"script":y=Ta(o)}fi.has(y)||(o=p({rel:"preload",href:l==="image"&&f&&f.imageSrcSet?void 0:o,as:l},f),fi.set(y,o),d.querySelector(g)!==null||l==="style"&&d.querySelector(mc(y))||l==="script"&&d.querySelector(gc(y))||(l=d.createElement("link"),tn(l,"link",o),It(l),d.head.appendChild(l)))}}function P3(o,l){zr.m(o,l);var f=Qa;if(f&&o){var d=l&&typeof l.as=="string"?l.as:"script",g='link[rel="modulepreload"][as="'+ri(d)+'"][href="'+ri(o)+'"]',y=g;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Ta(o)}if(!fi.has(y)&&(o=p({rel:"modulepreload",href:o},l),fi.set(y,o),f.querySelector(g)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(gc(y)))return}d=f.createElement("link"),tn(d,"link",o),It(d),f.head.appendChild(d)}}}function A3(o,l,f){zr.S(o,l,f);var d=Qa;if(d&&o){var g=Uo(d).hoistableStyles,y=Ca(o);l=l||"default";var Q=g.get(y);if(!Q){var P={loading:0,preload:null};if(Q=d.querySelector(mc(y)))P.loading=5;else{o=p({rel:"stylesheet",href:o,"data-precedence":l},f),(f=fi.get(y))&&Ag(o,f);var N=Q=d.createElement("link");It(N),tn(N,"link",o),N._p=new Promise(function(V,ne){N.onload=V,N.onerror=ne}),N.addEventListener("load",function(){P.loading|=1}),N.addEventListener("error",function(){P.loading|=2}),P.loading|=4,Kf(Q,l,d)}Q={type:"stylesheet",instance:Q,count:1,state:P},g.set(y,Q)}}}function M3(o,l){zr.X(o,l);var f=Qa;if(f&&o){var d=Uo(f).hoistableScripts,g=Ta(o),y=d.get(g);y||(y=f.querySelector(gc(g)),y||(o=p({src:o,async:!0},l),(l=fi.get(g))&&Mg(o,l),y=f.createElement("script"),It(y),tn(y,"link",o),f.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(g,y))}}function R3(o,l){zr.M(o,l);var f=Qa;if(f&&o){var d=Uo(f).hoistableScripts,g=Ta(o),y=d.get(g);y||(y=f.querySelector(gc(g)),y||(o=p({src:o,async:!0,type:"module"},l),(l=fi.get(g))&&Mg(o,l),y=f.createElement("script"),It(y),tn(y,"link",o),f.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(g,y))}}function DS(o,l,f,d){var g=(g=ue.current)?Ff(g):null;if(!g)throw Error(i(446));switch(o){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(l=Ca(f.href),f=Uo(g).hoistableStyles,d=f.get(l),d||(d={type:"style",instance:null,count:0,state:null},f.set(l,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){o=Ca(f.href);var y=Uo(g).hoistableStyles,Q=y.get(o);if(Q||(g=g.ownerDocument||g,Q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(o,Q),(y=g.querySelector(mc(o)))&&!y._p&&(Q.instance=y,Q.state.loading=5),fi.has(o)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},fi.set(o,f),y||$3(g,o,f,Q.state))),l&&d===null)throw Error(i(528,""));return Q}if(l&&d!==null)throw Error(i(529,""));return null;case"script":return l=f.async,f=f.src,typeof f=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Ta(f),f=Uo(g).hoistableScripts,d=f.get(l),d||(d={type:"script",instance:null,count:0,state:null},f.set(l,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,o))}}function Ca(o){return'href="'+ri(o)+'"'}function mc(o){return'link[rel="stylesheet"]['+o+"]"}function jS(o){return p({},o,{"data-precedence":o.precedence,precedence:null})}function $3(o,l,f,d){o.querySelector('link[rel="preload"][as="style"]['+l+"]")?d.loading=1:(l=o.createElement("link"),d.preload=l,l.addEventListener("load",function(){return d.loading|=1}),l.addEventListener("error",function(){return d.loading|=2}),tn(l,"link",f),It(l),o.head.appendChild(l))}function Ta(o){return'[src="'+ri(o)+'"]'}function gc(o){return"script[async]"+o}function NS(o,l,f){if(l.count++,l.instance===null)switch(l.type){case"style":var d=o.querySelector('style[data-href~="'+ri(f.href)+'"]');if(d)return l.instance=d,It(d),d;var g=p({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return d=(o.ownerDocument||o).createElement("style"),It(d),tn(d,"style",g),Kf(d,f.precedence,o),l.instance=d;case"stylesheet":g=Ca(f.href);var y=o.querySelector(mc(g));if(y)return l.state.loading|=4,l.instance=y,It(y),y;d=jS(f),(g=fi.get(g))&&Ag(d,g),y=(o.ownerDocument||o).createElement("link"),It(y);var Q=y;return Q._p=new Promise(function(P,N){Q.onload=P,Q.onerror=N}),tn(y,"link",d),l.state.loading|=4,Kf(y,f.precedence,o),l.instance=y;case"script":return y=Ta(f.src),(g=o.querySelector(gc(y)))?(l.instance=g,It(g),g):(d=f,(g=fi.get(y))&&(d=p({},f),Mg(d,g)),o=o.ownerDocument||o,g=o.createElement("script"),It(g),tn(g,"link",d),o.head.appendChild(g),l.instance=g);case"void":return null;default:throw Error(i(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(d=l.instance,l.state.loading|=4,Kf(d,f.precedence,o));return l.instance}function Kf(o,l,f){for(var d=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=d.length?d[d.length-1]:null,y=g,Q=0;Q<d.length;Q++){var P=d[Q];if(P.dataset.precedence===l)y=P;else if(y!==g)break}y?y.parentNode.insertBefore(o,y.nextSibling):(l=f.nodeType===9?f.head:f,l.insertBefore(o,l.firstChild))}function Ag(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function Mg(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var Jf=null;function ZS(o,l,f){if(Jf===null){var d=new Map,g=Jf=new Map;g.set(f,d)}else g=Jf,d=g.get(f),d||(d=new Map,g.set(f,d));if(d.has(o))return d;for(d.set(o,null),f=f.getElementsByTagName(o),g=0;g<f.length;g++){var y=f[g];if(!(y[Al]||y[Tt]||o==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var Q=y.getAttribute(l)||"";Q=o+Q;var P=d.get(Q);P?P.push(y):d.set(Q,[y])}}return d}function XS(o,l,f){o=o.ownerDocument||o,o.head.insertBefore(f,l==="title"?o.querySelector("head > title"):null)}function E3(o,l,f){if(f===1||l.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return o=l.disabled,typeof l.precedence=="string"&&o==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function LS(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}var Oc=null;function _3(){}function D3(o,l,f){if(Oc===null)throw Error(i(475));var d=Oc;if(l.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var g=Ca(f.href),y=o.querySelector(mc(g));if(y){o=y._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(d.count++,d=eh.bind(d),o.then(d,d)),l.state.loading|=4,l.instance=y,It(y);return}y=o.ownerDocument||o,f=jS(f),(g=fi.get(g))&&Ag(f,g),y=y.createElement("link"),It(y);var Q=y;Q._p=new Promise(function(P,N){Q.onload=P,Q.onerror=N}),tn(y,"link",f),l.instance=y}d.stylesheets===null&&(d.stylesheets=new Map),d.stylesheets.set(l,o),(o=l.state.preload)&&(l.state.loading&3)===0&&(d.count++,l=eh.bind(d),o.addEventListener("load",l),o.addEventListener("error",l))}}function j3(){if(Oc===null)throw Error(i(475));var o=Oc;return o.stylesheets&&o.count===0&&Rg(o,o.stylesheets),0<o.count?function(l){var f=setTimeout(function(){if(o.stylesheets&&Rg(o,o.stylesheets),o.unsuspend){var d=o.unsuspend;o.unsuspend=null,d()}},6e4);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(f)}}:null}function eh(){if(this.count--,this.count===0){if(this.stylesheets)Rg(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var th=null;function Rg(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,th=new Map,l.forEach(N3,o),th=null,eh.call(o))}function N3(o,l){if(!(l.state.loading&4)){var f=th.get(o);if(f)var d=f.get(null);else{f=new Map,th.set(o,f);for(var g=o.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<g.length;y++){var Q=g[y];(Q.nodeName==="LINK"||Q.getAttribute("media")!=="not all")&&(f.set(Q.dataset.precedence,Q),d=Q)}d&&f.set(null,d)}g=l.instance,Q=g.getAttribute("data-precedence"),y=f.get(Q)||d,y===d&&f.set(null,g),f.set(Q,g),this.count++,d=eh.bind(this),g.addEventListener("load",d),g.addEventListener("error",d),y?y.parentNode.insertBefore(g,y.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(g,o.firstChild)),l.state.loading|=4}}var yc={$$typeof:A,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function Z3(o,l,f,d,g,y,Q,P){this.tag=1,this.containerInfo=o,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=ss(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ss(0),this.hiddenUpdates=ss(null),this.identifierPrefix=d,this.onUncaughtError=g,this.onCaughtError=y,this.onRecoverableError=Q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function zS(o,l,f,d,g,y,Q,P,N,V,ne,se){return o=new Z3(o,l,f,Q,P,N,V,se),l=1,y===!0&&(l|=24),y=Zn(3,null,null,l),o.current=y,y.stateNode=o,l=hm(),l.refCount++,o.pooledCache=l,l.refCount++,y.memoizedState={element:d,isDehydrated:f,cache:l},gm(y),o}function qS(o){return o?(o=ra,o):ra}function BS(o,l,f,d,g,y){g=qS(g),d.context===null?d.context=g:d.pendingContext=g,d=cs(l),d.payload={element:f},y=y===void 0?null:y,y!==null&&(d.callback=y),f=us(o,d,l),f!==null&&(Bn(f,o,l),Il(f,o,l))}function VS(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var f=o.retryLane;o.retryLane=f!==0&&f<l?f:l}}function $g(o,l){VS(o,l),(o=o.alternate)&&VS(o,l)}function YS(o){if(o.tag===13){var l=ia(o,67108864);l!==null&&Bn(l,o,67108864),$g(o,67108864)}}var nh=!0;function X3(o,l,f,d){var g=Z.T;Z.T=null;var y=U.p;try{U.p=2,Eg(o,l,f,d)}finally{U.p=y,Z.T=g}}function L3(o,l,f,d){var g=Z.T;Z.T=null;var y=U.p;try{U.p=8,Eg(o,l,f,d)}finally{U.p=y,Z.T=g}}function Eg(o,l,f,d){if(nh){var g=_g(d);if(g===null)bg(o,l,d,ih,f),GS(o,d);else if(q3(g,o,l,f,d))d.stopPropagation();else if(GS(o,d),l&4&&-1<z3.indexOf(o)){for(;g!==null;){var y=Yo(g);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var Q=ni(y.pendingLanes);if(Q!==0){var P=y;for(P.pendingLanes|=2,P.entangledLanes|=2;Q;){var N=1<<31-Qt(Q);P.entanglements[1]|=N,Q&=~N}Gi(y),(He&6)===0&&(Lf=at()+500,fc(0))}}break;case 13:P=ia(y,2),P!==null&&Bn(P,y,2),qf(),$g(y,2)}if(y=_g(d),y===null&&bg(o,l,d,ih,f),y===g)break;g=y}g!==null&&d.stopPropagation()}else bg(o,l,d,null,f)}}function _g(o){return o=Xp(o),Dg(o)}var ih=null;function Dg(o){if(ih=null,o=Vo(o),o!==null){var l=s(o);if(l===null)o=null;else{var f=l.tag;if(f===13){if(o=a(l),o!==null)return o;o=null}else if(f===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null)}}return ih=o,null}function US(o){switch(o){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(Fn()){case kt:return 2;case Kn:return 8;case Jn:case Lt:return 32;case Dn:return 268435456;default:return 32}default:return 32}}var jg=!1,ws=null,ks=null,Qs=null,vc=new Map,bc=new Map,Cs=[],z3="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 GS(o,l){switch(o){case"focusin":case"focusout":ws=null;break;case"dragenter":case"dragleave":ks=null;break;case"mouseover":case"mouseout":Qs=null;break;case"pointerover":case"pointerout":vc.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":bc.delete(l.pointerId)}}function xc(o,l,f,d,g,y){return o===null||o.nativeEvent!==y?(o={blockedOn:l,domEventName:f,eventSystemFlags:d,nativeEvent:y,targetContainers:[g]},l!==null&&(l=Yo(l),l!==null&&YS(l)),o):(o.eventSystemFlags|=d,l=o.targetContainers,g!==null&&l.indexOf(g)===-1&&l.push(g),o)}function q3(o,l,f,d,g){switch(l){case"focusin":return ws=xc(ws,o,l,f,d,g),!0;case"dragenter":return ks=xc(ks,o,l,f,d,g),!0;case"mouseover":return Qs=xc(Qs,o,l,f,d,g),!0;case"pointerover":var y=g.pointerId;return vc.set(y,xc(vc.get(y)||null,o,l,f,d,g)),!0;case"gotpointercapture":return y=g.pointerId,bc.set(y,xc(bc.get(y)||null,o,l,f,d,g)),!0}return!1}function IS(o){var l=Vo(o.target);if(l!==null){var f=s(l);if(f!==null){if(l=f.tag,l===13){if(l=a(f),l!==null){o.blockedOn=l,qt(o.priority,function(){if(f.tag===13){var d=qn();d=gt(d);var g=ia(f,d);g!==null&&Bn(g,f,d),$g(f,d)}});return}}else if(l===3&&f.stateNode.current.memoizedState.isDehydrated){o.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}o.blockedOn=null}function rh(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var f=_g(o.nativeEvent);if(f===null){f=o.nativeEvent;var d=new f.constructor(f.type,f);Zp=d,f.target.dispatchEvent(d),Zp=null}else return l=Yo(f),l!==null&&YS(l),o.blockedOn=f,!1;l.shift()}return!0}function WS(o,l,f){rh(o)&&f.delete(l)}function B3(){jg=!1,ws!==null&&rh(ws)&&(ws=null),ks!==null&&rh(ks)&&(ks=null),Qs!==null&&rh(Qs)&&(Qs=null),vc.forEach(WS),bc.forEach(WS)}function sh(o,l){o.blockedOn===l&&(o.blockedOn=null,jg||(jg=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,B3)))}var oh=null;function HS(o){oh!==o&&(oh=o,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){oh===o&&(oh=null);for(var l=0;l<o.length;l+=3){var f=o[l],d=o[l+1],g=o[l+2];if(typeof d!="function"){if(Dg(d||f)===null)continue;break}var y=Yo(f);y!==null&&(o.splice(l,3),l-=3,Dm(y,{pending:!0,data:g,method:f.method,action:d},d,g))}}))}function Sc(o){function l(N){return sh(N,o)}ws!==null&&sh(ws,o),ks!==null&&sh(ks,o),Qs!==null&&sh(Qs,o),vc.forEach(l),bc.forEach(l);for(var f=0;f<Cs.length;f++){var d=Cs[f];d.blockedOn===o&&(d.blockedOn=null)}for(;0<Cs.length&&(f=Cs[0],f.blockedOn===null);)IS(f),f.blockedOn===null&&Cs.shift();if(f=(o.ownerDocument||o).$$reactFormReplay,f!=null)for(d=0;d<f.length;d+=3){var g=f[d],y=f[d+1],Q=g[lt]||null;if(typeof y=="function")Q||HS(f);else if(Q){var P=null;if(y&&y.hasAttribute("formAction")){if(g=y,Q=y[lt]||null)P=Q.formAction;else if(Dg(g)!==null)continue}else P=Q.action;typeof P=="function"?f[d+1]=P:(f.splice(d,3),d-=3),HS(f)}}}function Ng(o){this._internalRoot=o}ah.prototype.render=Ng.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(i(409));var f=l.current,d=qn();BS(f,d,o,l,null,null)},ah.prototype.unmount=Ng.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;BS(o.current,2,null,o,null,null),qf(),l[Gt]=null}};function ah(o){this._internalRoot=o}ah.prototype.unstable_scheduleHydration=function(o){if(o){var l=Ws();o={blockedOn:null,target:o,priority:l};for(var f=0;f<Cs.length&&l!==0&&l<Cs[f].priority;f++);Cs.splice(f,0,o),f===0&&IS(o)}};var FS=e.version;if(FS!=="19.1.0")throw Error(i(527,FS,"19.1.0"));U.findDOMNode=function(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(i(188)):(o=Object.keys(o).join(","),Error(i(268,o)));return o=u(l),o=o!==null?h(o):null,o=o===null?null:o.stateNode,o};var V3={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lh.isDisabled&&lh.supportsFiber)try{ei=lh.inject(V3),Ut=lh}catch{}}return kc.createRoot=function(o,l){if(!r(o))throw Error(i(299));var f=!1,d="",g=dx,y=px,Q=mx,P=null;return l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(y=l.onCaughtError),l.onRecoverableError!==void 0&&(Q=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(P=l.unstable_transitionCallbacks)),l=zS(o,1,!1,null,null,f,d,g,y,Q,P,null),o[Gt]=l.current,vg(o),new Ng(l)},kc.hydrateRoot=function(o,l,f){if(!r(o))throw Error(i(299));var d=!1,g="",y=dx,Q=px,P=mx,N=null,V=null;return f!=null&&(f.unstable_strictMode===!0&&(d=!0),f.identifierPrefix!==void 0&&(g=f.identifierPrefix),f.onUncaughtError!==void 0&&(y=f.onUncaughtError),f.onCaughtError!==void 0&&(Q=f.onCaughtError),f.onRecoverableError!==void 0&&(P=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(N=f.unstable_transitionCallbacks),f.formState!==void 0&&(V=f.formState)),l=zS(o,1,!0,l,f??null,d,g,y,Q,P,N,V),l.context=qS(null),f=l.current,d=qn(),d=gt(d),g=cs(d),g.callback=null,us(f,g,d),f=d,l.current.lanes=f,Ci(l,f),Gi(l),o[Gt]=l.current,vg(o),new ah(l)},kc.version="19.1.0",kc}var aw;function e_(){if(aw)return Xg.exports;aw=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),Xg.exports=J3(),Xg.exports}var t_=e_();const n_=yy(t_);var C=vy();const ee=yy(C),eC=U3({__proto__:null,default:ee},[C]),lw=n=>{let e;const t=new Set,i=(h,p)=>{const m=typeof h=="function"?h(e):h;if(!Object.is(m,e)){const O=e;e=p??(typeof m!="object"||m===null)?m:Object.assign({},e,m),t.forEach(v=>v(e,O))}},r=()=>e,c={setState:i,getState:r,getInitialState:()=>u,subscribe:h=>(t.add(h),()=>t.delete(h))},u=e=n(i,r,c);return c},tC=n=>n?lw(n):lw,i_=n=>n;function Ji(n,e=i_){const t=ee.useSyncExternalStore(n.subscribe,()=>e(n.getState()),()=>e(n.getInitialState()));return ee.useDebugValue(t),t}const cw=n=>{const e=tC(n),t=i=>Ji(e,i);return Object.assign(t,e),t},Tu=n=>n?cw(n):cw;function r_(n,e){let t;try{t=n()}catch{return}return{getItem:r=>{var s;const a=u=>u===null?null:JSON.parse(u,void 0),c=(s=t.getItem(r))!=null?s:null;return c instanceof Promise?c.then(a):a(c)},setItem:(r,s)=>t.setItem(r,JSON.stringify(s,void 0)),removeItem:r=>t.removeItem(r)}}const UO=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(i){return UO(i)(t)},catch(i){return this}}}catch(t){return{then(i){return this},catch(i){return UO(i)(t)}}}},s_=(n,e)=>(t,i,r)=>{let s={storage:r_(()=>localStorage),partialize:x=>x,version:0,merge:(x,w)=>({...w,...x}),...e},a=!1;const c=new Set,u=new Set;let h=s.storage;if(!h)return n((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),t(...x)},i,r);const p=()=>{const x=s.partialize({...i()});return h.setItem(s.name,{state:x,version:s.version})},m=r.setState;r.setState=(x,w)=>{m(x,w),p()};const O=n((...x)=>{t(...x),p()},i,r);r.getInitialState=()=>O;let v;const b=()=>{var x,w;if(!h)return;a=!1,c.forEach(T=>{var A;return T((A=i())!=null?A:O)});const k=((w=s.onRehydrateStorage)==null?void 0:w.call(s,(x=i())!=null?x:O))||void 0;return UO(h.getItem.bind(h))(s.name).then(T=>{if(T)if(typeof T.version=="number"&&T.version!==s.version){if(s.migrate){const A=s.migrate(T.state,T.version);return A instanceof Promise?A.then($=>[!0,$]):[!0,A]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,T.state];return[!1,void 0]}).then(T=>{var A;const[$,R]=T;if(v=s.merge(R,(A=i())!=null?A:O),t(v,!0),$)return p()}).then(()=>{k?.(v,void 0),v=i(),a=!0,u.forEach(T=>T(v))}).catch(T=>{k?.(void 0,T)})};return r.persist={setOptions:x=>{s={...s,...x},x.storage&&(h=x.storage)},clearStorage:()=>{h?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>b(),hasHydrated:()=>a,onHydrate:x=>(c.add(x),()=>{c.delete(x)}),onFinishHydration:x=>(u.add(x),()=>{u.delete(x)})},s.skipHydration||b(),v||O},o_=s_;var Pu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ko=typeof window>"u"||"Deno"in globalThis;function hi(){}function a_(n,e){return typeof n=="function"?n(e):n}function GO(n){return typeof n=="number"&&n>=0&&n!==1/0}function nC(n,e){return Math.max(n+(e||0)-Date.now(),0)}function qa(n,e){return typeof n=="function"?n(e):n}function Mi(n,e){return typeof n=="function"?n(e):n}function uw(n,e){const{type:t="all",exact:i,fetchStatus:r,predicate:s,queryKey:a,stale:c}=n;if(a){if(i){if(e.queryHash!==by(a,e.options))return!1}else if(!tu(e.queryKey,a))return!1}if(t!=="all"){const u=e.isActive();if(t==="active"&&!u||t==="inactive"&&u)return!1}return!(typeof c=="boolean"&&e.isStale()!==c||r&&r!==e.state.fetchStatus||s&&!s(e))}function fw(n,e){const{exact:t,status:i,predicate:r,mutationKey:s}=n;if(s){if(!e.options.mutationKey)return!1;if(t){if(eu(e.options.mutationKey)!==eu(s))return!1}else if(!tu(e.options.mutationKey,s))return!1}return!(i&&e.state.status!==i||r&&!r(e))}function by(n,e){return(e?.queryKeyHashFn||eu)(n)}function eu(n){return JSON.stringify(n,(e,t)=>WO(t)?Object.keys(t).sort().reduce((i,r)=>(i[r]=t[r],i),{}):t)}function tu(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?Object.keys(e).every(t=>tu(n[t],e[t])):!1}function iC(n,e){if(n===e)return n;const t=hw(n)&&hw(e);if(t||WO(n)&&WO(e)){const i=t?n:Object.keys(n),r=i.length,s=t?e:Object.keys(e),a=s.length,c=t?[]:{};let u=0;for(let h=0;h<a;h++){const p=t?h:s[h];(!t&&i.includes(p)||t)&&n[p]===void 0&&e[p]===void 0?(c[p]=void 0,u++):(c[p]=iC(n[p],e[p]),c[p]===n[p]&&n[p]!==void 0&&u++)}return r===a&&u===r?n:c}return e}function IO(n,e){if(!e||Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}function hw(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function WO(n){if(!dw(n))return!1;const e=n.constructor;if(e===void 0)return!0;const t=e.prototype;return!(!dw(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function dw(n){return Object.prototype.toString.call(n)==="[object Object]"}function l_(n){return new Promise(e=>{setTimeout(e,n)})}function HO(n,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(n,e):t.structuralSharing!==!1?iC(n,e):e}function c_(n,e,t=0){const i=[...n,e];return t&&i.length>t?i.slice(1):i}function u_(n,e,t=0){const i=[e,...n];return t&&i.length>t?i.slice(0,-1):i}var xy=Symbol();function rC(n,e){return!n.queryFn&&e?.initialPromise?()=>e.initialPromise:!n.queryFn||n.queryFn===xy?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var f_=class extends Pu{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!ko&&window.addEventListener){const e=()=>n();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(e=>{e(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Sy=new f_,h_=class extends Pu{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!ko&&window.addEventListener){const e=()=>n(!0),t=()=>n(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(t=>{t(n)}))}isOnline(){return this.#t}},Od=new h_;function FO(){let n,e;const t=new Promise((r,s)=>{n=r,e=s});t.status="pending",t.catch(()=>{});function i(r){Object.assign(t,r),delete t.resolve,delete t.reject}return t.resolve=r=>{i({status:"fulfilled",value:r}),n(r)},t.reject=r=>{i({status:"rejected",reason:r}),e(r)},t}function d_(n){return Math.min(1e3*2**n,3e4)}function sC(n){return(n??"online")==="online"?Od.isOnline():!0}var oC=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Vg(n){return n instanceof oC}function aC(n){let e=!1,t=0,i=!1,r;const s=FO(),a=x=>{i||(O(new oC(x)),n.abort?.())},c=()=>{e=!0},u=()=>{e=!1},h=()=>Sy.isFocused()&&(n.networkMode==="always"||Od.isOnline())&&n.canRun(),p=()=>sC(n.networkMode)&&n.canRun(),m=x=>{i||(i=!0,n.onSuccess?.(x),r?.(),s.resolve(x))},O=x=>{i||(i=!0,n.onError?.(x),r?.(),s.reject(x))},v=()=>new Promise(x=>{r=w=>{(i||h())&&x(w)},n.onPause?.()}).then(()=>{r=void 0,i||n.onContinue?.()}),b=()=>{if(i)return;let x;const w=t===0?n.initialPromise:void 0;try{x=w??n.fn()}catch(k){x=Promise.reject(k)}Promise.resolve(x).then(m).catch(k=>{if(i)return;const T=n.retry??(ko?0:3),A=n.retryDelay??d_,$=typeof A=="function"?A(t,k):A,R=T===!0||typeof T=="number"&&t<T||typeof T=="function"&&T(t,k);if(e||!R){O(k);return}t++,n.onFail?.(t,k),l_($).then(()=>h()?void 0:v()).then(()=>{e?O(k):b()})})};return{promise:s,cancel:a,continue:()=>(r?.(),s),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?b():v().then(b),s)}}var p_=n=>setTimeout(n,0);function m_(){let n=[],e=0,t=c=>{c()},i=c=>{c()},r=p_;const s=c=>{e?n.push(c):r(()=>{t(c)})},a=()=>{const c=n;n=[],c.length&&r(()=>{i(()=>{c.forEach(u=>{t(u)})})})};return{batch:c=>{let u;e++;try{u=c()}finally{e--,e||a()}return u},batchCalls:c=>(...u)=>{s(()=>{c(...u)})},schedule:s,setNotifyFunction:c=>{t=c},setBatchNotifyFunction:c=>{i=c},setScheduler:c=>{r=c}}}var rn=m_(),lC=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),GO(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ko?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},g_=class extends lC{#t;#e;#n;#i;#r;#a;#o;constructor(n){super(),this.#o=!1,this.#a=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#n=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=O_(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){this.options={...this.#a,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,e){const t=HO(this.state.data,n,this.options);return this.#s({data:t,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),t}setState(n,e){this.#s({type:"setState",state:n,setStateOptions:e})}cancel(n){const e=this.#r?.promise;return this.#r?.cancel(n),e?e.then(hi).catch(hi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>Mi(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xy||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!nC(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(e=>e!==n),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}fetch(n,e){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const c=this.observers.find(u=>u.options.queryFn);c&&this.setOptions(c.options)}const t=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#o=!0,t.signal)})},r=()=>{const c=rC(this.options,e),u={client:this.#i,queryKey:this.queryKey,meta:this.meta};return i(u),this.#o=!1,this.options.persister?this.options.persister(c,u,this):c(u)},s={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};i(s),this.options.behavior?.onFetch(s,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#s({type:"fetch",meta:s.fetchOptions?.meta});const a=c=>{Vg(c)&&c.silent||this.#s({type:"error",error:c}),Vg(c)||(this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this)),this.scheduleGc()};return this.#r=aC({initialPromise:e?.initialPromise,fn:s.fetchFn,abort:t.abort.bind(t),onSuccess:c=>{if(c===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(u){a(u);return}this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),this.scheduleGc()},onError:a,onFail:(c,u)=>{this.#s({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#r.start()}#s(n){const e=t=>{switch(n.type){case"failed":return{...t,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...cC(t.data,this.options),fetchMeta:n.meta??null};case"success":return{...t,data:n.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=n.error;return Vg(i)&&i.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...n.state}}};this.state=e(this.state),rn.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function cC(n,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sC(e.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function O_(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=e!==void 0,i=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var y_=class extends Pu{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,e,t){const i=e.queryKey,r=e.queryHash??by(i,e);let s=this.get(r);return s||(s=new g_({client:n,queryKey:i,queryHash:r,options:n.defaultQueryOptions(e),state:t,defaultOptions:n.getQueryDefaults(i)}),this.add(s)),s}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const e=this.#t.get(n.queryHash);e&&(n.destroy(),e===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){rn.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const e={exact:!0,...n};return this.getAll().find(t=>uw(e,t))}findAll(n={}){const e=this.getAll();return Object.keys(n).length>0?e.filter(t=>uw(n,t)):e}notify(n){rn.batch(()=>{this.listeners.forEach(e=>{e(n)})})}onFocus(){rn.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){rn.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},v_=class extends lC{#t;#e;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||b_(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(e=>e!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const e=()=>{this.#i({type:"continue"})};this.#n=aC({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(r,s)=>{this.#i({type:"failed",failureCount:r,error:s})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const t=this.state.status==="pending",i=!this.#n.canStart();try{if(t)e();else{this.#i({type:"pending",variables:n,isPaused:i}),await this.#e.config.onMutate?.(n,this);const s=await this.options.onMutate?.(n);s!==this.state.context&&this.#i({type:"pending",context:s,variables:n,isPaused:i})}const r=await this.#n.start();return await this.#e.config.onSuccess?.(r,n,this.state.context,this),await this.options.onSuccess?.(r,n,this.state.context),await this.#e.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,n,this.state.context),this.#i({type:"success",data:r}),r}catch(r){try{throw await this.#e.config.onError?.(r,n,this.state.context,this),await this.options.onError?.(r,n,this.state.context),await this.#e.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,r,n,this.state.context),r}finally{this.#i({type:"error",error:r})}}finally{this.#e.runNext(this)}}#i(n){const e=t=>{switch(n.type){case"failed":return{...t,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...t,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:n.error,failureCount:t.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=e(this.state),rn.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function b_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var x_=class extends Pu{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,e,t){const i=new v_({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(e),state:t});return this.add(i),i}add(n){this.#t.add(n);const e=ch(n);if(typeof e=="string"){const t=this.#e.get(e);t?t.push(n):this.#e.set(e,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const e=ch(n);if(typeof e=="string"){const t=this.#e.get(e);if(t)if(t.length>1){const i=t.indexOf(n);i!==-1&&t.splice(i,1)}else t[0]===n&&this.#e.delete(e)}}this.notify({type:"removed",mutation:n})}canRun(n){const e=ch(n);if(typeof e=="string"){const i=this.#e.get(e)?.find(r=>r.state.status==="pending");return!i||i===n}else return!0}runNext(n){const e=ch(n);return typeof e=="string"?this.#e.get(e)?.find(i=>i!==n&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){rn.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const e={exact:!0,...n};return this.getAll().find(t=>fw(e,t))}findAll(n={}){return this.getAll().filter(e=>fw(n,e))}notify(n){rn.batch(()=>{this.listeners.forEach(e=>{e(n)})})}resumePausedMutations(){const n=this.getAll().filter(e=>e.state.isPaused);return rn.batch(()=>Promise.all(n.map(e=>e.continue().catch(hi))))}};function ch(n){return n.options.scope?.id}function pw(n){return{onFetch:(e,t)=>{const i=e.options,r=e.fetchOptions?.meta?.fetchMore?.direction,s=e.state.data?.pages||[],a=e.state.data?.pageParams||[];let c={pages:[],pageParams:[]},u=0;const h=async()=>{let p=!1;const m=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(e.signal.aborted?p=!0:e.signal.addEventListener("abort",()=>{p=!0}),e.signal)})},O=rC(e.options,e.fetchOptions),v=async(b,x,w)=>{if(p)return Promise.reject();if(x==null&&b.pages.length)return Promise.resolve(b);const k={client:e.client,queryKey:e.queryKey,pageParam:x,direction:w?"backward":"forward",meta:e.options.meta};m(k);const T=await O(k),{maxPages:A}=e.options,$=w?u_:c_;return{pages:$(b.pages,T,A),pageParams:$(b.pageParams,x,A)}};if(r&&s.length){const b=r==="backward",x=b?S_:mw,w={pages:s,pageParams:a},k=x(i,w);c=await v(w,k,b)}else{const b=n??s.length;do{const x=u===0?a[0]??i.initialPageParam:mw(i,c);if(u>0&&x==null)break;c=await v(c,x),u++}while(u<b)}return c};e.options.persister?e.fetchFn=()=>e.options.persister?.(h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t):e.fetchFn=h}}}function mw(n,{pages:e,pageParams:t}){const i=e.length-1;return e.length>0?n.getNextPageParam(e[i],e,t[i],t):void 0}function S_(n,{pages:e,pageParams:t}){return e.length>0?n.getPreviousPageParam?.(e[0],e,t[0],t):void 0}var w_=class{#t;#e;#n;#i;#r;#a;#o;#s;constructor(n={}){this.#t=n.queryCache||new y_,this.#e=n.mutationCache||new x_,this.#n=n.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Sy.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=Od.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const e=this.defaultQueryOptions({queryKey:n});return this.#t.get(e.queryHash)?.state.data}ensureQueryData(n){const e=this.defaultQueryOptions(n),t=this.#t.build(this,e),i=t.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&t.isStaleByTime(qa(e.staleTime,t))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:e,state:t})=>{const i=t.data;return[e,i]})}setQueryData(n,e,t){const i=this.defaultQueryOptions({queryKey:n}),s=this.#t.get(i.queryHash)?.state.data,a=a_(e,s);if(a!==void 0)return this.#t.build(this,i).setData(a,{...t,manual:!0})}setQueriesData(n,e,t){return rn.batch(()=>this.#t.findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,e,t)]))}getQueryState(n){const e=this.defaultQueryOptions({queryKey:n});return this.#t.get(e.queryHash)?.state}removeQueries(n){const e=this.#t;rn.batch(()=>{e.findAll(n).forEach(t=>{e.remove(t)})})}resetQueries(n,e){const t=this.#t;return rn.batch(()=>(t.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},e)))}cancelQueries(n,e={}){const t={revert:!0,...e},i=rn.batch(()=>this.#t.findAll(n).map(r=>r.cancel(t)));return Promise.all(i).then(hi).catch(hi)}invalidateQueries(n,e={}){return rn.batch(()=>(this.#t.findAll(n).forEach(t=>{t.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},e)))}refetchQueries(n,e={}){const t={...e,cancelRefetch:e.cancelRefetch??!0},i=rn.batch(()=>this.#t.findAll(n).filter(r=>!r.isDisabled()).map(r=>{let s=r.fetch(void 0,t);return t.throwOnError||(s=s.catch(hi)),r.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(hi)}fetchQuery(n){const e=this.defaultQueryOptions(n);e.retry===void 0&&(e.retry=!1);const t=this.#t.build(this,e);return t.isStaleByTime(qa(e.staleTime,t))?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(hi).catch(hi)}fetchInfiniteQuery(n){return n.behavior=pw(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(hi).catch(hi)}ensureInfiniteQueryData(n){return n.behavior=pw(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Od.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,e){this.#i.set(eu(n),{queryKey:n,defaultOptions:e})}getQueryDefaults(n){const e=[...this.#i.values()],t={};return e.forEach(i=>{tu(n,i.queryKey)&&Object.assign(t,i.defaultOptions)}),t}setMutationDefaults(n,e){this.#r.set(eu(n),{mutationKey:n,defaultOptions:e})}getMutationDefaults(n){const e=[...this.#r.values()],t={};return e.forEach(i=>{tu(n,i.mutationKey)&&Object.assign(t,i.defaultOptions)}),t}defaultQueryOptions(n){if(n._defaulted)return n;const e={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return e.queryHash||(e.queryHash=by(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===xy&&(e.enabled=!1),e}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},k_=class extends Pu{constructor(n,e){super(),this.options=e,this.#t=n,this.#s=null,this.#o=FO(),this.options.experimental_prefetchInRender||this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}#t;#e=void 0;#n=void 0;#i=void 0;#r;#a;#o;#s;#m;#h;#d;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),gw(this.#e,this.options)?this.#f():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return KO(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return KO(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#e.removeObserver(this)}setOptions(n){const e=this.options,t=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Mi(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),e._defaulted&&!IO(this.options,e)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&Ow(this.#e,t,this.options,e)&&this.#f(),this.updateResult(),i&&(this.#e!==t||Mi(this.options.enabled,this.#e)!==Mi(e.enabled,this.#e)||qa(this.options.staleTime,this.#e)!==qa(e.staleTime,this.#e))&&this.#g();const r=this.#O();i&&(this.#e!==t||Mi(this.options.enabled,this.#e)!==Mi(e.enabled,this.#e)||r!==this.#l)&&this.#y(r)}getOptimisticResult(n){const e=this.#t.getQueryCache().build(this.#t,n),t=this.createResult(e,n);return C_(this,t)&&(this.#i=t,this.#a=this.options,this.#r=this.#e.state),t}getCurrentResult(){return this.#i}trackResult(n,e){return new Proxy(n,{get:(t,i)=>(this.trackProp(i),e?.(i),Reflect.get(t,i))})}trackProp(n){this.#p.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const e=this.#t.defaultQueryOptions(n),t=this.#t.getQueryCache().build(this.#t,e);return t.fetch().then(()=>this.createResult(t,e))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(n){this.#S();let e=this.#e.fetch(this.options,n);return n?.throwOnError||(e=e.catch(hi)),e}#g(){this.#b();const n=qa(this.options.staleTime,this.#e);if(ko||this.#i.isStale||!GO(n))return;const t=nC(this.#i.dataUpdatedAt,n)+1;this.#c=setTimeout(()=>{this.#i.isStale||this.updateResult()},t)}#O(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(n){this.#x(),this.#l=n,!(ko||Mi(this.options.enabled,this.#e)===!1||!GO(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||Sy.isFocused())&&this.#f()},this.#l))}#v(){this.#g(),this.#y(this.#O())}#b(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#x(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(n,e){const t=this.#e,i=this.options,r=this.#i,s=this.#r,a=this.#a,u=n!==t?n.state:this.#n,{state:h}=n;let p={...h},m=!1,O;if(e._optimisticResults){const j=this.hasListeners(),Y=!j&&gw(n,e),J=j&&Ow(n,t,e,i);(Y||J)&&(p={...p,...cC(h.data,n.options)}),e._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:v,errorUpdatedAt:b,status:x}=p;O=p.data;let w=!1;if(e.placeholderData!==void 0&&O===void 0&&x==="pending"){let j;r?.isPlaceholderData&&e.placeholderData===a?.placeholderData?(j=r.data,w=!0):j=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,j!==void 0&&(x="success",O=HO(r?.data,j,e),m=!0)}if(e.select&&O!==void 0&&!w)if(r&&O===s?.data&&e.select===this.#m)O=this.#h;else try{this.#m=e.select,O=e.select(O),O=HO(r?.data,O,e),this.#h=O,this.#s=null}catch(j){this.#s=j}this.#s&&(v=this.#s,O=this.#h,b=Date.now(),x="error");const k=p.fetchStatus==="fetching",T=x==="pending",A=x==="error",$=T&&k,R=O!==void 0,D={status:x,fetchStatus:p.fetchStatus,isPending:T,isSuccess:x==="success",isError:A,isInitialLoading:$,isLoading:$,data:O,dataUpdatedAt:p.dataUpdatedAt,error:v,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:k,isRefetching:k&&!T,isLoadingError:A&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:A&&R,isStale:wy(n,e),refetch:this.refetch,promise:this.#o};if(this.options.experimental_prefetchInRender){const j=I=>{D.status==="error"?I.reject(D.error):D.data!==void 0&&I.resolve(D.data)},Y=()=>{const I=this.#o=D.promise=FO();j(I)},J=this.#o;switch(J.status){case"pending":n.queryHash===t.queryHash&&j(J);break;case"fulfilled":(D.status==="error"||D.data!==J.value)&&Y();break;case"rejected":(D.status!=="error"||D.error!==J.reason)&&Y();break}}return D}updateResult(){const n=this.#i,e=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#a=this.options,this.#r.data!==void 0&&(this.#d=this.#e),IO(e,n))return;this.#i=e;const t=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,r=typeof i=="function"?i():i;if(r==="all"||!r&&!this.#p.size)return!0;const s=new Set(r??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(a=>{const c=a;return this.#i[c]!==n[c]&&s.has(c)})};this.#w({listeners:t()})}#S(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const e=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(e?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#w(n){rn.batch(()=>{n.listeners&&this.listeners.forEach(e=>{e(this.#i)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Q_(n,e){return Mi(e.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&e.retryOnMount===!1)}function gw(n,e){return Q_(n,e)||n.state.data!==void 0&&KO(n,e,e.refetchOnMount)}function KO(n,e,t){if(Mi(e.enabled,n)!==!1){const i=typeof t=="function"?t(n):t;return i==="always"||i!==!1&&wy(n,e)}return!1}function Ow(n,e,t,i){return(n!==e||Mi(i.enabled,n)===!1)&&(!t.suspense||n.state.status!=="error")&&wy(n,t)}function wy(n,e){return Mi(e.enabled,n)!==!1&&n.isStaleByTime(qa(e.staleTime,n))}function C_(n,e){return!IO(n.getCurrentResult(),e)}var uC=C.createContext(void 0),T_=n=>{const e=C.useContext(uC);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},P_=({client:n,children:e})=>(C.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),S.jsx(uC.Provider,{value:n,children:e})),fC=C.createContext(!1),A_=()=>C.useContext(fC);fC.Provider;function M_(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var R_=C.createContext(M_()),$_=()=>C.useContext(R_);function E_(n,e){return typeof n=="function"?n(...e):!!n}function yw(){}var __=(n,e)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(e.isReset()||(n.retryOnMount=!1))},D_=n=>{C.useEffect(()=>{n.clearReset()},[n])},j_=({result:n,errorResetBoundary:e,throwOnError:t,query:i,suspense:r})=>n.isError&&!e.isReset()&&!n.isFetching&&i&&(r&&n.data===void 0||E_(t,[n.error,i])),N_=n=>{const e=n.staleTime;n.suspense&&(n.staleTime=typeof e=="function"?(...t)=>Math.max(e(...t),1e3):Math.max(e??1e3,1e3),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3)))},Z_=(n,e)=>n.isLoading&&n.isFetching&&!e,X_=(n,e)=>n?.suspense&&e.isPending,vw=(n,e,t)=>e.fetchOptimistic(n).catch(()=>{t.clearReset()});function L_(n,e,t){const i=T_(),r=A_(),s=$_(),a=i.defaultQueryOptions(n);i.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=r?"isRestoring":"optimistic",N_(a),__(a,s),D_(s);const c=!i.getQueryCache().get(a.queryHash),[u]=C.useState(()=>new e(i,a)),h=u.getOptimisticResult(a),p=!r&&n.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(m=>{const O=p?u.subscribe(rn.batchCalls(m)):yw;return u.updateResult(),O},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),C.useEffect(()=>{u.setOptions(a)},[a,u]),X_(a,h))throw vw(a,u,s);if(j_({result:h,errorResetBoundary:s,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw h.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(a,h),a.experimental_prefetchInRender&&!ko&&Z_(h,r)&&(c?vw(a,u,s):i.getQueryCache().get(a.queryHash)?.promise)?.catch(yw).finally(()=>{u.updateResult()}),a.notifyOnChangeProps?h:u.trackResult(h)}function hC(n,e){return L_(n,k_)}const Vs="";async function z_(n,e,t){return await fetch(`${Vs}/api/create-app`,{method:"POST",body:JSON.stringify({options:{...n,chosenAddOns:e,starter:t?.url||void 0}}),headers:{"Content-Type":"application/json"}})}async function q_(n){return await fetch(`${Vs}/api/add-to-app`,{method:"POST",body:JSON.stringify({addOns:n}),headers:{"Content-Type":"application/json"}})}function dC(){return fetch(`${Vs}/api/shutdown`,{method:"POST"})}async function B_(n){return await(await fetch(`${Vs}/api/load-remote-add-on?url=${n}`)).json()}async function pC(n){return await(await fetch(`${Vs}/api/load-starter?url=${n}`)).json()}const V_=fetch(`${Vs}/api/initial-payload`);async function Y_(){return await(await V_).json()}async function U_(n,e,t){return(await fetch(`${Vs}/api/dry-run-create-app`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({options:{...n,chosenAddOns:e,starter:t?.url}})})).json()}async function G_(n){return(await fetch(`${Vs}/api/dry-run-add-to-app`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({addOns:n})})).json()}function I_(n,e,t){const i=new Map,r=u=>n.find(h=>h.id===u).type,s=u=>r(u)==="deployment",a=u=>e.some(h=>r(h)===r(u));for(const u of n)i.set(u.id,{selected:!1,enabled:!0,dependedUpon:!1,isSingleSelect:u.type==="deployment"?u.type:void 0});function c(u){const h=new Set;function p(m){if(h.has(m))return;h.add(m);const O=n.find(v=>v.id===m);if(O){for(const b of O.dependsOn||[]){const x=i.get(b);x&&(x.selected=!0,x.enabled=!!s(b),x.dependedUpon=!0,p(b))}const v=i.get(m);v&&(v.selected=!0,v.dependedUpon||(v.enabled=!0))}}p(u)}for(const u of t){const h=i.get(u);h&&(s(u)?a(u)?(h.selected=!1,h.enabled=!0,h.dependedUpon=!1):(h.selected=!0,h.enabled=!0,h.dependedUpon=!0):(h.selected=!0,h.enabled=!1,h.dependedUpon=!0,c(u)))}for(const u of e)c(u);return Object.fromEntries(Array.from(i.entries()).map(([u,h])=>[u,{enabled:h.enabled,selected:h.selected,isSingleSelect:h.isSingleSelect}]))}const dn=Tu(()=>({initialized:!1,framework:"",mode:"",projectName:"",targetDir:"",typescript:!0,tailwind:!0,git:!0,chosenAddOns:[],addOnOptions:{},packageManager:"pnpm"})),Ni=()=>hC({queryKey:["initial-data"],queryFn:Y_}),gr=()=>{const{data:n}=Ni();return n!==void 0},mC=()=>Ni().data?.forcedRouterMode,W_=()=>Ni().data?.forcedAddOns,ky=()=>Ni().data?.registry,H_=()=>Ni().data?.localFiles,F_=()=>Ni().data?.output,gC=()=>Ni().data?.options,K_=()=>gC()?.chosenAddOns,Or=()=>Ni().data?.applicationMode,J_=()=>Ni().data?.showDeploymentOptions,eD=()=>Ni().data?.addOns,tD=()=>Ni().data?.supportedModes,bw=Tu(()=>({includeFiles:["unchanged","added","modified","deleted","overwritten"]})),Za=Tu(()=>({userSelectedAddOns:[],customAddOns:[]})),ml=Tu(()=>({projectStarter:void 0}));function nD(n){Za.setState(e=>({customAddOns:[...e.customAddOns,n]})),n.modes.includes(dn.getState().mode)&&Za.setState(e=>({userSelectedAddOns:[...e.userSelectedAddOns,n.id]}))}function Au(){const n=gr(),e=Mu(),t=K_(),i=eD(),r=W_(),{userSelectedAddOns:s,customAddOns:a}=Za(),c=ml().projectStarter,u=C.useMemo(()=>n?[...i?.[e]||[],...a.filter(x=>x.modes.includes(e))]:[],[n,e,i,a]),h=C.useMemo(()=>{if(!n)return{};const b=new Set;for(const x of c?.dependsOn||[])b.add(x);for(const x of t)b.add(x);for(const x of r||[])b.add(x);return I_(u,s,Array.from(b))},[n,u,s,t,c?.dependsOn,r]),p=C.useMemo(()=>{if(!n)return[];const b=new Set(Object.keys(h).filter(x=>h[x].selected));for(const x of r||[])b.add(x);return Array.from(b)},[n,h,r]),m=C.useCallback(b=>{if(n)if(h[b].isSingleSelect){if(!h[b].selected){const x=h[b].isSingleSelect,w=Object.keys(h).find(k=>k!==b&&h[k].isSingleSelect===x&&h[k].selected);Za.setState(k=>{let T=k.userSelectedAddOns.filter(A=>A!==w);return T.includes(b)||(T=[...T,b]),{userSelectedAddOns:T}})}}else h[b].enabled&&(h[b].selected?Za.setState(x=>({userSelectedAddOns:x.userSelectedAddOns.filter(w=>w!==b)})):Za.setState(x=>({userSelectedAddOns:[...x.userSelectedAddOns,b]})))},[n,h,u]),O=C.useCallback((b,x,w)=>{n&&dn.setState(k=>({addOnOptions:{...k.addOnOptions,[b]:{...k.addOnOptions[b],[x]:w}}}))},[n]),v=C.useCallback(b=>dn.getState().addOnOptions[b]||{},[]);return{toggleAddOn:m,setAddOnOption:O,getAddOnOptions:v,chosenAddOns:p,availableAddOns:u,userSelectedAddOns:s,originalSelectedAddOns:t,addOnState:h}}const Qy=()=>ml(n=>n.projectStarter===void 0),iD=()=>{const n=gr(),e=mC(),t=Qy();return n?!e&&t:!1},rD=()=>{const n=gr(),e=Qy(),t=Mu();return n?e&&t==="code-router":!1},sD=()=>{const n=gr(),e=Qy(),t=Mu();return n?e&&t==="code-router":!1},oD=()=>dn(n=>n.projectName),Mu=()=>{const n=gr(),e=mC(),t=dn(i=>i.mode);return n?e||t:"file-router"};function OC(){const n=gr(),e=bw(i=>i.includeFiles),t=C.useCallback(i=>{n&&bw.setState(r=>({includeFiles:r.includeFiles.includes(i)?r.includeFiles.filter(s=>s!==i):[...r.includeFiles,i]}))},[n]);return{includedFiles:e,toggleFilter:t}}function aD(){const n=gr(),e=Or(),{initialized:t,...i}=dn(),{userSelectedAddOns:r,chosenAddOns:s}=Au(),a=ml().projectStarter,{data:c}=hC({queryKey:["dry-run",e,JSON.stringify(i),JSON.stringify(r),a?.url],queryFn:async()=>e==="none"||!n||!t?{files:{},commands:[],deletedFiles:[]}:e==="setup"?U_(i,s,a):G_(r),enabled:n,initialData:{files:{},commands:[],deletedFiles:[]}});return c}const lD=Tu()(o_(n=>({open:!1,dontShowAgain:!1,setOpen:e=>n({open:e}),setDontShowAgain:e=>n({dontShowAgain:e})}),{name:"startup-dialog",partialize:n=>({dontShowAgain:n.dontShowAgain}),merge:(n,e)=>(n&&n.dontShowAgain?e.open=!1:e.open=!0,e)})),cD=n=>dn.setState({projectName:n}),uD=n=>dn.setState({mode:n});function fD(n){dn.setState({typescript:n})}function hD(n){dn.setState({tailwind:n})}function JO(n){ml.setState(()=>({projectStarter:n})),n&&dn.setState({mode:n.mode})}function dD(){const n=gr(),e=gC();C.useEffect(()=>{n&&dn.setState({...e,initialized:!0})},[n])}/**
50
- * @license lucide-react v0.553.0 - ISC
50
+ * @license lucide-react v0.554.0 - ISC
51
51
  *
52
52
  * This source code is licensed under the ISC license.
53
53
  * See the LICENSE file in the root directory of this source tree.
54
54
  */const pD=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mD=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase()),xw=n=>{const e=mD(n);return e.charAt(0).toUpperCase()+e.slice(1)},yC=(...n)=>n.filter((e,t,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===t).join(" ").trim(),gD=n=>{for(const e in n)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
55
- * @license lucide-react v0.553.0 - ISC
55
+ * @license lucide-react v0.554.0 - ISC
56
56
  *
57
57
  * This source code is licensed under the ISC license.
58
58
  * See the LICENSE file in the root directory of this source tree.
59
59
  */var OD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
60
- * @license lucide-react v0.553.0 - ISC
60
+ * @license lucide-react v0.554.0 - ISC
61
61
  *
62
62
  * This source code is licensed under the ISC license.
63
63
  * See the LICENSE file in the root directory of this source tree.
64
64
  */const yD=C.forwardRef(({color:n="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:i,className:r="",children:s,iconNode:a,...c},u)=>C.createElement("svg",{ref:u,...OD,width:e,height:e,stroke:n,strokeWidth:i?Number(t)*24/Number(e):t,className:yC("lucide",r),...!s&&!gD(c)&&{"aria-hidden":"true"},...c},[...a.map(([h,p])=>C.createElement(h,p)),...Array.isArray(s)?s:[s]]));/**
65
- * @license lucide-react v0.553.0 - ISC
65
+ * @license lucide-react v0.554.0 - ISC
66
66
  *
67
67
  * This source code is licensed under the ISC license.
68
68
  * See the LICENSE file in the root directory of this source tree.
69
69
  */const ln=(n,e)=>{const t=C.forwardRef(({className:i,...r},s)=>C.createElement(yD,{ref:s,iconNode:e,className:yC(`lucide-${pD(xw(n))}`,`lucide-${n}`,i),...r}));return t.displayName=xw(n),t};/**
70
- * @license lucide-react v0.553.0 - ISC
70
+ * @license lucide-react v0.554.0 - ISC
71
71
  *
72
72
  * This source code is licensed under the ISC license.
73
73
  * See the LICENSE file in the root directory of this source tree.
74
74
  */const vD=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],vC=ln("chevron-down",vD);/**
75
- * @license lucide-react v0.553.0 - ISC
75
+ * @license lucide-react v0.554.0 - ISC
76
76
  *
77
77
  * This source code is licensed under the ISC license.
78
78
  * See the LICENSE file in the root directory of this source tree.
79
79
  */const bD=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xD=ln("chevron-right",bD);/**
80
- * @license lucide-react v0.553.0 - ISC
80
+ * @license lucide-react v0.554.0 - ISC
81
81
  *
82
82
  * This source code is licensed under the ISC license.
83
83
  * See the LICENSE file in the root directory of this source tree.
84
84
  */const SD=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],wD=ln("chevron-up",SD);/**
85
- * @license lucide-react v0.553.0 - ISC
85
+ * @license lucide-react v0.554.0 - ISC
86
86
  *
87
87
  * This source code is licensed under the ISC license.
88
88
  * See the LICENSE file in the root directory of this source tree.
89
89
  */const kD=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],QD=ln("code",kD);/**
90
- * @license lucide-react v0.553.0 - ISC
90
+ * @license lucide-react v0.554.0 - ISC
91
91
  *
92
92
  * This source code is licensed under the ISC license.
93
93
  * See the LICENSE file in the root directory of this source tree.
94
94
  */const CD=[["path",{d:"M14.5 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.8",key:"1kchwa"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M11.7 14.2 7 17l-4.7-2.8",key:"1yk8tc"}],["path",{d:"M3 13.1a2 2 0 0 0-.999 1.76v3.24a2 2 0 0 0 .969 1.78L6 21.7a2 2 0 0 0 2.03.01L11 19.9a2 2 0 0 0 1-1.76V14.9a2 2 0 0 0-.97-1.78L8 11.3a2 2 0 0 0-2.03-.01z",key:"19flxy"}],["path",{d:"M7 17v5",key:"1yj1jh"}]],TD=ln("file-box",CD);/**
95
- * @license lucide-react v0.553.0 - ISC
95
+ * @license lucide-react v0.554.0 - ISC
96
96
  *
97
97
  * This source code is licensed under the ISC license.
98
98
  * See the LICENSE file in the root directory of this source tree.
99
99
  */const PD=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],bC=ln("file-text",PD);/**
100
- * @license lucide-react v0.553.0 - ISC
100
+ * @license lucide-react v0.554.0 - ISC
101
101
  *
102
102
  * This source code is licensed under the ISC license.
103
103
  * See the LICENSE file in the root directory of this source tree.
104
104
  */const AD=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],xC=ln("folder",AD);/**
105
- * @license lucide-react v0.553.0 - ISC
105
+ * @license lucide-react v0.554.0 - ISC
106
106
  *
107
107
  * This source code is licensed under the ISC license.
108
108
  * See the LICENSE file in the root directory of this source tree.
109
109
  */const MD=[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]],RD=ln("hammer",MD);/**
110
- * @license lucide-react v0.553.0 - ISC
110
+ * @license lucide-react v0.554.0 - ISC
111
111
  *
112
112
  * This source code is licensed under the ISC license.
113
113
  * See the LICENSE file in the root directory of this source tree.
114
114
  */const $D=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],SC=ln("info",$D);/**
115
- * @license lucide-react v0.553.0 - ISC
115
+ * @license lucide-react v0.554.0 - ISC
116
116
  *
117
117
  * This source code is licensed under the ISC license.
118
118
  * See the LICENSE file in the root directory of this source tree.
119
119
  */const ED=[["path",{d:"m10 9-3 3 3 3",key:"1oro0q"}],["path",{d:"m14 15 3-3-3-3",key:"bz13h7"}],["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],_D=ln("message-circle-code",ED);/**
120
- * @license lucide-react v0.553.0 - ISC
120
+ * @license lucide-react v0.554.0 - ISC
121
121
  *
122
122
  * This source code is licensed under the ISC license.
123
123
  * See the LICENSE file in the root directory of this source tree.
124
124
  */const DD=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],jD=ln("package",DD);/**
125
- * @license lucide-react v0.553.0 - ISC
125
+ * @license lucide-react v0.554.0 - ISC
126
126
  *
127
127
  * This source code is licensed under the ISC license.
128
128
  * See the LICENSE file in the root directory of this source tree.
129
129
  */const ND=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ZD=ln("settings",ND);/**
130
- * @license lucide-react v0.553.0 - ISC
130
+ * @license lucide-react v0.554.0 - ISC
131
131
  *
132
132
  * This source code is licensed under the ISC license.
133
133
  * See the LICENSE file in the root directory of this source tree.
134
134
  */const XD=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],LD=ln("square-pen",XD);/**
135
- * @license lucide-react v0.553.0 - ISC
135
+ * @license lucide-react v0.554.0 - ISC
136
136
  *
137
137
  * This source code is licensed under the ISC license.
138
138
  * See the LICENSE file in the root directory of this source tree.
139
139
  */const zD=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],qD=ln("terminal",zD);/**
140
- * @license lucide-react v0.553.0 - ISC
140
+ * @license lucide-react v0.554.0 - ISC
141
141
  *
142
142
  * This source code is licensed under the ISC license.
143
143
  * See the LICENSE file in the root directory of this source tree.
144
144
  */const BD=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M9 12h6",key:"1c52cq"}],["path",{d:"M12 9v6",key:"199k2o"}]],VD=ln("ticket-plus",BD);/**
145
- * @license lucide-react v0.553.0 - ISC
145
+ * @license lucide-react v0.554.0 - ISC
146
146
  *
147
147
  * This source code is licensed under the ISC license.
148
148
  * See the LICENSE file in the root directory of this source tree.
149
149
  */const YD=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],UD=ln("trash",YD);/**
150
- * @license lucide-react v0.553.0 - ISC
150
+ * @license lucide-react v0.554.0 - ISC
151
151
  *
152
152
  * This source code is licensed under the ISC license.
153
153
  * See the LICENSE file in the root directory of this source tree.
@@ -330,4 +330,4 @@ function alsShim(): PluginOption {
330
330
  }
331
331
  `;function mW(n,e){let t=e;return n==="vite.config.ts"&&(t+=pW,t=t.replace("plugins: [",`${hW}plugins: [alsShim(),`)),t}const WQ=n=>{let e=n;return e=e.replace(/\u001b\[[0-9;]*[a-zA-Z]/g,""),e=e.replace(/\u001b\][0-9;]*;[^\u0007]*\u0007/g,""),e=e.replace(/\u001b[=>]/g,""),e=e.replace(/\r/g,""),e=e.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f-\u009f]/g,""),e=e.replace(/[⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏]/g,""),e=e.replace(/[▀▁▂▃▄▅▆▇█▉▊▋▌▍▎▏]/g,""),e=e.replace(/[░▒▓]/g,""),e=e.trim(),e.length>0?e:""};let YO=null;function gW(n){return YO||(YO=Yr.boot()),tC((t,i)=>({webContainer:YO,ready:!1,setupStep:"mounting",statusMessage:"",terminalOutput:[],previewUrl:null,error:null,devProcess:null,projectFiles:[],isInstalling:!1,teardown:()=>{t({webContainer:null,ready:!1})},addTerminalOutput:r=>{t(({terminalOutput:s})=>({terminalOutput:[...s,r]}))},setTerminalOutput:r=>{t({terminalOutput:r})},startDevServer:async()=>{const{devProcess:r,webContainer:s,addTerminalOutput:a}=i();if(!s)throw new Error("WebContainer not found");try{const c=await s;if(!c)throw new Error("WebContainer not found");r&&(console.log("Killing existing dev process..."),r.kill(),t({devProcess:null})),t({setupStep:"starting",statusMessage:"Starting development server..."}),a("🚀 Starting dev server..."),c.on("server-ready",(p,m)=>{console.log("Server ready on port",p,"at",m);const O=i();t({previewUrl:m,setupStep:"ready",statusMessage:"Development server running",terminalOutput:[...O.terminalOutput,`✅ Server ready at ${m}`]})});const u=await c.spawn("pnpm",["dev"]);t({devProcess:u}),u.output.pipeTo(new WritableStream({write(p){const m=WQ(p);if(m&&m.length>3){console.log("[DEV]",m);const O=i();t({terminalOutput:[...O.terminalOutput,m]})}}}));const h=await u.exit;h!==0&&(a(`❌ Dev server exited with code ${h}`),t({error:`Dev server exited with code ${h}`}))}catch(c){console.error("Dev server start error:",c),a(`❌ Dev server error: ${c.message}`),t({error:c.message,setupStep:"error"})}},updateProjectFiles:async r=>{const{projectFiles:s,addTerminalOutput:a,installDependencies:c,webContainer:u}=i();if(!u)throw console.error("WebContainer not found in updateProjectFiles"),new Error("WebContainer not found");try{const O=await u;if(!O)throw console.error("WebContainer resolved to null"),new Error("WebContainer not found");console.log("WebContainer booted successfully!",O)}catch(O){throw console.error("WebContainer boot failed:",O),t({error:`WebContainer boot failed: ${O.message}`,setupStep:"error"}),O}const h=await u;let p=!1;const m={};if(s.length===0){const O={};for(const{path:v,content:b}of r){const x=v.replace(/^\.?\//,""),w=x.split("/");let k=O;for(let $=0;$<w.length-1;$++){const R=w[$];k[R]||(k[R]={directory:{}}),k=k[R].directory}const T=w[w.length-1],A=mW(T,b);if(A.startsWith("base64::")){const $=A.replace("base64::","");try{const R=$.replace(/\s/g,""),_=atob(R),D=new Uint8Array(_.length);for(let j=0;j<_.length;j++)D[j]=_.charCodeAt(j)&255;m[x]=D}catch(R){console.error(`[BINARY ERROR] Failed to convert ${x}:`,R)}}else k[T]={file:{contents:String(A)}}}await h.mount(O);for(const[v,b]of Object.entries(m))await h.fs.writeFile(v,b);p=!0}else{const O=new Map;for(const{path:w,content:k}of s)O.set(w,k);const v=new Map;for(const{path:w,content:k}of r)v.set(w,k);const b=[];for(const{path:w,content:k}of r)O.has(w)?O.get(w)!==k&&b.push({path:w,content:k}):b.push({path:w,content:k});const x=[];for(const{path:w}of s)v.has(w)||x.push(w);if(b.length>0||x.length>0){const{devProcess:w}=i();w&&(console.log("Stopping dev server before file update..."),a("⏸️ Stopping dev server before updating files..."),w.kill(),t({devProcess:null,previewUrl:null}));for(const{path:k,content:T}of b)await h.fs.writeFile(k,T);for(const k of x)await h.fs.rm(k);a("📁 Files updated successfully"),b.some(({path:k})=>k==="./package.json")&&(p=!0)}}t({projectFiles:r}),p&&(a("📦 Package.json changed, reinstalling dependencies..."),await c())},installDependencies:async()=>{const{webContainer:r,addTerminalOutput:s,startDevServer:a,isInstalling:c}=i();if(c){console.log("Install already in progress, skipping");return}if(!r)throw new Error("WebContainer not found");t({isInstalling:!0});try{const u=await r;if(!u)throw t({isInstalling:!1}),new Error("WebContainer not found");t({setupStep:"installing",statusMessage:"Installing dependencies..."}),console.log("Starting pnpm install..."),s("📦 Running pnpm install..."),s("⏳ This may take a minute...");let h;try{h=await u.spawn("pnpm",["install"]),console.log("pnpm install process spawned successfully")}catch(x){throw console.error("Failed to spawn pnpm install:",x),x}let p=0,m=Date.now(),O=[],v=setInterval(()=>{const x=Math.floor((Date.now()-m)/1e3);console.log(`[INSTALL] Still running... (${x}s, ${p} output chunks)`)},5e3);h.output.pipeTo(new WritableStream({write(x){p++,O.push(x);const w=WQ(x);if(w&&w.length>3){const k=w.includes("added")||w.includes("removed")||w.includes("changed")||w.includes("audited")||w.includes("packages")||w.includes("error")||w.includes("warn")||w.includes("ERR")||w.includes("FAIL");k&&(console.log("[INSTALL]",w),s(w),k&&v&&(clearInterval(v),v=void 0))}}})),console.log("Waiting for install to complete...");const b=await h.exit;if(v&&clearInterval(v),console.log("Install exit code:",b),console.log("Total output lines:",p),b!==0){console.error("[INSTALL ERROR] All output:",O.join(`
332
332
  `));const x=`pnpm install failed with exit code ${b}`;throw s(`❌ ${x}`),s("💡 Check console for detailed error output"),t({error:x,setupStep:"error"}),new Error(x)}s("✅ Dependencies installed successfully"),await a()}catch(u){throw console.error("Install error:",u),s(`❌ Install error: ${u.message}`),t({error:u.message,setupStep:"error"}),u}finally{t({isInstalling:!1})}}}))}const TE=C.createContext(null);function OW({children:n,projectFiles:e}){console.log("WebContainerProvider rendering with",e.length,"files");const[t]=C.useState(()=>gW()),i=Ji(t,r=>r.updateProjectFiles);return C.useEffect(()=>{console.log("WebContainerProvider useEffect triggered with",e.length,"files"),i(e)},[i,e]),S.jsx(TE.Provider,{value:t,children:n})}function yW(){const n=C.useContext(TE);if(!n)throw new Error("WebContainerContext not found");const e=Ji(n,b=>b.webContainer),t=Ji(n,b=>b.setupStep),i=Ji(n,b=>b.statusMessage),r=Ji(n,b=>b.terminalOutput),s=Ji(n,b=>b.error),a=Ji(n,b=>b.previewUrl),c=Ji(n,b=>b.startDevServer),u=Ji(n,b=>b.setTerminalOutput),[h,p]=C.useState(!1),m=C.useRef(null);C.useEffect(()=>{m.current&&(m.current.scrollTop=m.current.scrollHeight)},[r]);const O=b=>{switch(b){case"mounting":return"📁";case"installing":return"📦";case"starting":return"🚀";case"ready":return"✅";case"error":return"❌"}},v=b=>{switch(b){case"error":return"text-red-500";case"ready":return"text-green-500";default:return"text-blue-500"}};return!e||t==="error"||t!=="ready"||!a?S.jsx("div",{className:"flex items-center justify-center h-full bg-gray-50 dark:bg-gray-900",children:S.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow-xl p-8 max-w-2xl w-full mx-4 border-2 border-blue-500",children:[S.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:t==="error"?"Setup Failed":"Preparing Preview"}),t==="error"?S.jsxs("div",{className:"text-center",children:[S.jsx("div",{className:"text-4xl mb-4",children:"❌"}),S.jsx("div",{className:"text-lg font-medium text-red-600 mb-2",children:"An error occurred"}),S.jsx("div",{className:"text-sm text-gray-600 dark:text-gray-400 mb-4",children:s}),S.jsx("button",{onClick:c,className:"px-4 py-2 text-sm bg-orange-500 text-white rounded hover:bg-orange-600 transition-colors",children:"🔄 Retry"})]}):S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"space-y-4 mb-6",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("div",{className:`text-2xl ${t==="mounting"?"animate-pulse":""}`,children:O("mounting")}),S.jsx("div",{className:`flex-1 ${v(t==="mounting"?"mounting":t==="installing"||t==="starting"||t==="ready"?"ready":"mounting")}`,children:"Mount Files"}),(t==="installing"||t==="starting"||t==="ready")&&"✓"]}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("div",{className:`text-2xl ${t==="installing"?"animate-spin":""}`,children:O("installing")}),S.jsx("div",{className:`flex-1 ${v(t==="installing"?"installing":t==="starting"||t==="ready"?"ready":"mounting")}`,children:"Install Dependencies"}),(t==="starting"||t==="ready")&&"✓"]}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("div",{className:`text-2xl ${t==="starting"?"animate-bounce":""}`,children:O("starting")}),S.jsx("div",{className:`flex-1 ${v(t==="starting"?"starting":t==="ready"?"ready":"mounting")}`,children:"Start Server"}),t==="ready"&&"✓"]})]}),S.jsx("div",{className:"text-center text-sm text-gray-600 dark:text-gray-400",children:i||"Preparing your application..."})]})]})}):S.jsxs("div",{className:"flex flex-col h-full",children:[S.jsx("div",{className:"flex-1",children:a?S.jsx("iframe",{src:a,className:"w-full h-full border-0",title:"Application Preview",onLoad:()=>console.log("Iframe loaded successfully"),onError:b=>console.error("Iframe load error:",b)}):S.jsx("div",{className:"flex items-center justify-center h-full bg-gray-100 dark:bg-gray-800",children:S.jsxs("div",{className:"text-center",children:[S.jsx("div",{className:"text-2xl mb-2",children:"🔄"}),S.jsx("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Preview not available"})]})})}),S.jsxs("div",{className:"border-t border-gray-200 dark:border-gray-700 bg-black text-green-400 flex flex-col flex-shrink-0",children:[S.jsxs("div",{className:"p-2 border-b border-gray-700 bg-gray-900 flex items-center justify-between cursor-pointer hover:bg-gray-800 transition-colors",onClick:()=>p(!h),children:[S.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[S.jsx("button",{className:"text-gray-400 hover:text-gray-200",children:h?S.jsx(vC,{className:"w-4 h-4"}):S.jsx(wD,{className:"w-4 h-4"})}),S.jsx("div",{className:"text-xs font-medium text-gray-300",children:"Terminal Output"}),t==="ready"&&a&&S.jsx("div",{className:"text-xs text-green-500",children:"● Server Running"})]}),S.jsxs("div",{className:"flex items-center gap-2",onClick:b=>b.stopPropagation(),children:[a&&S.jsx("button",{onClick:()=>window.open(a,"_blank"),className:"px-2 py-1 text-xs bg-blue-500 text-white rounded hover:bg-blue-600 transition-colors",children:"Open in New Tab"}),S.jsx("button",{onClick:c,disabled:!e,className:"px-2 py-1 text-xs bg-orange-500 text-white rounded hover:bg-orange-600 transition-colors disabled:opacity-50",children:"🔄 Restart"}),S.jsx("button",{onClick:()=>u([]),className:"text-xs text-gray-400 hover:text-gray-200 transition-colors",children:"Clear"})]})]}),h&&S.jsx("div",{ref:m,className:"font-mono text-xs p-2 overflow-y-auto overflow-x-hidden",style:{maxHeight:"200px"},children:r.length>0?r.map((b,x)=>S.jsx("div",{className:"mb-1 leading-tight whitespace-pre-wrap break-words",children:b},x)):S.jsx("div",{className:"text-gray-500",children:"No output yet..."})})]})]})}var Mp="Tabs",[vW,HW]=Zi(Mp,[Sl]),PE=Sl(),[bW,hb]=vW(Mp),AE=C.forwardRef((n,e)=>{const{__scopeTabs:t,value:i,onValueChange:r,defaultValue:s,orientation:a="horizontal",dir:c,activationMode:u="automatic",...h}=n,p=Eu(c),[m,O]=Xi({prop:i,onChange:r,defaultProp:s??"",caller:Mp});return S.jsx(bW,{scope:t,baseId:Ir(),value:m,onValueChange:O,orientation:a,dir:p,activationMode:u,children:S.jsx(ze.div,{dir:p,"data-orientation":a,...h,ref:e})})});AE.displayName=Mp;var ME="TabsList",RE=C.forwardRef((n,e)=>{const{__scopeTabs:t,loop:i=!0,...r}=n,s=hb(ME,t),a=PE(t);return S.jsx(Gy,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:i,children:S.jsx(ze.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});RE.displayName=ME;var $E="TabsTrigger",EE=C.forwardRef((n,e)=>{const{__scopeTabs:t,value:i,disabled:r=!1,...s}=n,a=hb($E,t),c=PE(t),u=jE(a.baseId,i),h=NE(a.baseId,i),p=i===a.value;return S.jsx(Iy,{asChild:!0,...c,focusable:!r,active:p,children:S.jsx(ze.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":h,"data-state":p?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:u,...s,ref:e,onMouseDown:Ae(n.onMouseDown,m=>{!r&&m.button===0&&m.ctrlKey===!1?a.onValueChange(i):m.preventDefault()}),onKeyDown:Ae(n.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&a.onValueChange(i)}),onFocus:Ae(n.onFocus,()=>{const m=a.activationMode!=="manual";!p&&!r&&m&&a.onValueChange(i)})})})});EE.displayName=$E;var _E="TabsContent",DE=C.forwardRef((n,e)=>{const{__scopeTabs:t,value:i,forceMount:r,children:s,...a}=n,c=hb(_E,t),u=jE(c.baseId,i),h=NE(c.baseId,i),p=i===c.value,m=C.useRef(p);return C.useEffect(()=>{const O=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(O)},[]),S.jsx(yr,{present:r||p,children:({present:O})=>S.jsx(ze.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!O,id:h,tabIndex:0,...a,ref:e,style:{...n.style,animationDuration:m.current?"0s":void 0},children:O&&s})})});DE.displayName=_E;function jE(n,e){return`${n}-trigger-${e}`}function NE(n,e){return`${n}-content-${e}`}var xW=AE,SW=RE,wW=EE,kW=DE;function QW({className:n,...e}){return S.jsx(xW,{"data-slot":"tabs",className:Ie("flex flex-col gap-2",n),...e})}function CW({className:n,...e}){return S.jsx(SW,{"data-slot":"tabs-list",className:Ie("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",n),...e})}function HQ({className:n,...e}){return S.jsx(wW,{"data-slot":"tabs-trigger",className:Ie("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...e})}function FQ({className:n,...e}){return S.jsx(kW,{"data-slot":"tabs-content",className:Ie("flex-1 outline-none",n),...e})}function TW(){const{includedFiles:n,toggleFilter:e}=OC();return S.jsxs("div",{className:"bg-white dark:bg-black/40 shadow-xl p-4 rounded-lg flex flex-row items-center gap-4 mb-2",children:[S.jsx("h3",{className:"font-medium whitespace-nowrap",children:"File Filters"}),S.jsxs("div",{className:"flex flex-row items-center",children:[S.jsx(Ur,{id:"unchanged",checked:n.includes("unchanged"),onCheckedChange:()=>e("unchanged"),className:"mr-2"}),S.jsx(er,{htmlFor:"unchanged",className:Da.unchanged,children:"Unchanged"})]}),S.jsxs("div",{className:"flex flex-row items-center",children:[S.jsx(Ur,{id:"added",checked:n.includes("added"),onCheckedChange:()=>e("added"),className:"mr-2"}),S.jsx(er,{htmlFor:"added",className:Da.added,children:"Added"})]}),S.jsxs("div",{className:"flex flex-row items-center",children:[S.jsx(Ur,{id:"modified",checked:n.includes("modified"),onCheckedChange:()=>e("modified"),className:"mr-2"}),S.jsx(er,{htmlFor:"modified",className:Da.modified,children:"Modified"})]}),S.jsxs("div",{className:"flex flex-row items-center",children:[S.jsx(Ur,{id:"deleted",checked:n.includes("deleted"),onCheckedChange:()=>e("deleted"),className:"mr-2"}),S.jsx(er,{htmlFor:"deleted",className:Da.deleted,children:"Deleted"})]}),S.jsxs("div",{className:"flex flex-row items-center",children:[S.jsx(Ur,{id:"overwritten",checked:n.includes("overwritten"),onCheckedChange:()=>e("overwritten"),className:"mr-2"}),S.jsx(er,{htmlFor:"overwritten",className:Da.overwritten,children:"Overwritten"})]})]})}function PW(){const[n,e]=C.useState("./package.json"),t=F_(),i=H_(),r=aD(),s=Or(),a=r.files,c=s==="setup"?r.files:t?.files,u=r.deletedFiles,[h,p]=C.useState(),[m,O]=C.useState(),{includedFiles:v}=OC(),b=C.useMemo(()=>{const k=[];return!c||!i||Array.from(new Set([...Object.keys(a),...Object.keys(i),...Object.keys(c)])).sort().forEach(A=>{const $=A.replace("./",""),R=$.split("/");let _=k;R.forEach((D,j)=>{const Y=_.find(J=>J.name===D);if(Y)_=Y.children||[];else{const J=JX(A,a,c,i,u);if(j===R.length-1&&!v.includes(J.fileClass))return;j===R.length-1&&A===n&&(O(J.modifiedFile),p(J.originalFile));const I={id:R.slice(0,j+1).join("/"),name:D,fullPath:$,children:j<R.length-1?[]:void 0,icon:j<R.length-1?()=>S.jsx(xC,{className:"w-4 h-4 mr-2"}):()=>S.jsx(bC,{className:"w-4 h-4 mr-2"}),onClick:j===R.length-1?()=>{e(A),O(J.modifiedFile),p(J.originalFile)}:void 0,className:Da[J.fileClass],...J,contents:a[A]||i[A]||c[A]};_.push(I),_=I.children}})}),k},[a,c,i,v]),x=gr(),w=C.useMemo(()=>{if(console.log("Preparing WebContainer files, tree:",a),!a)return console.log("Tree is empty, returning empty array"),[];const k=Object.entries(a).map(([T,A])=>({path:T,content:A}));return console.log("WebContainer files prepared:",k.length,"files"),k},[a]);return x?S.jsx(OW,{projectFiles:w,children:S.jsxs("div",{className:"bg-white dark:bg-black/50 rounded-lg p-2 sm:p-4",children:[s==="add"&&S.jsx(TW,{}),S.jsxs(QW,{defaultValue:"files",className:"w-full",children:[S.jsxs(CW,{className:"mb-1 h-7 p-0.5 bg-transparent border border-gray-300 dark:border-gray-700",children:[S.jsx(HQ,{value:"files",className:"text-xs h-6 px-3 py-0 data-[state=active]:bg-gray-200 dark:data-[state=active]:bg-gray-800",children:"Files"}),S.jsx(HQ,{value:"preview",className:"text-xs h-6 px-3 py-0 data-[state=active]:bg-gray-200 dark:data-[state=active]:bg-gray-800",children:"Preview"})]}),S.jsx(FQ,{value:"files",className:"mt-0",children:S.jsxs("div",{className:"flex flex-row @container",children:[S.jsx("div",{className:"w-1/3 @6xl:w-1/4 bg-gray-500/10 rounded-l-lg",children:S.jsx(NI,{selectedFile:n,tree:b})}),S.jsx("div",{className:"w-2/3 @6xl:w-3/4",children:n&&m?S.jsx(OI,{filePath:n,originalFile:h,modifiedFile:m}):null})]})}),S.jsx(FQ,{value:"preview",className:"mt-0",children:S.jsx("div",{className:"h-[800px]",children:S.jsx(yW,{})})})]})]})}):null}function AW(){const n=Or(),e=ky(),{open:t,setOpen:i,dontShowAgain:r,setDontShowAgain:s}=lD();if(n!=="setup"||!e||e?.starters?.length===0)return null;async function a(c){const u=await pC(c);"error"in u?Py.error("Failed to load starter",{description:u.error}):(JO(u),i(!1))}return S.jsx(jo,{modal:!0,open:t,onOpenChange:i,children:S.jsxs(No,{className:"sm:min-w-[425px] sm:max-w-fit",children:[S.jsx(yl,{children:S.jsx(vl,{className:"text-center text-2xl font-bold",children:"Would you like to use a starter project?"})}),S.jsx("div",{children:S.jsx(ZP,{onImport:a})}),S.jsxs($u,{className:"flex sm:justify-between w-full",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(Ur,{id:"show-startup-dialog",checked:r,onCheckedChange:s}),S.jsx(er,{htmlFor:"show-startup-dialog",children:"Don't show this again"})]}),S.jsx(Oi,{onClick:()=>i(!1),children:"No, I want to start from scratch"})]})]})})}var MW=(n,e,t,i,r,s,a,c)=>{let u=document.documentElement,h=["light","dark"];function p(v){(Array.isArray(n)?n:[n]).forEach(b=>{let x=b==="class",w=x&&s?r.map(k=>s[k]||k):r;x?(u.classList.remove(...w),u.classList.add(s&&s[v]?s[v]:v)):u.setAttribute(b,v)}),m(v)}function m(v){c&&h.includes(v)&&(u.style.colorScheme=v)}function O(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)p(i);else try{let v=localStorage.getItem(e)||t,b=a&&v==="system"?O():v;p(b)}catch{}},RW=C.createContext(void 0),$W={setTheme:n=>{},themes:[]},EW=()=>{var n;return(n=C.useContext(RW))!=null?n:$W};C.memo(({forcedTheme:n,storageKey:e,attribute:t,enableSystem:i,enableColorScheme:r,defaultTheme:s,value:a,themes:c,nonce:u,scriptProps:h})=>{let p=JSON.stringify([t,e,s,n,c,a,i,r]).slice(1,-1);return C.createElement("script",{...h,suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(${MW.toString()})(${p})`}})});const _W=({...n})=>{const{theme:e="system"}=EW();return S.jsx(Sj,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...n})};function DW({children:n}){const[e]=C.useState(()=>new w_);return S.jsx(P_,{client:e,children:n})}function jW({children:n}){return dD(),S.jsxs(S.Fragment,{children:[n,S.jsx(_W,{})]})}function NW({children:n}){return S.jsx(DW,{children:S.jsx(jW,{children:n})})}const ZW={header:S.jsx(IX,{}),sidebar:S.jsx(UX,{}),fileNavigator:S.jsx(PW,{}),startupDialog:S.jsx(AW,{})};function XW(n){const e=Object.assign({},ZW,n.slots);return S.jsx(NW,{children:S.jsxs("main",{className:"min-w-[1280px]",children:[S.jsx(FX,{}),S.jsxs("div",{className:"min-h-dvh p-2 sm:p-4 space-y-2 sm:space-y-4 @container",children:[e.header,S.jsxs("div",{className:"flex flex-row",children:[S.jsx("div",{className:"w-1/3 @8xl:w-1/4 pr-2",children:e.sidebar}),S.jsx("div",{className:"w-2/3 @8xl:w-3/4 pl-2",children:e.fileNavigator})]})]}),e.startupDialog]})})}const KQ=document.getElementById("root");KQ&&n_.createRoot(KQ).render(S.jsx(XW,{}));
333
- //# sourceMappingURL=index-CsHdpzhu.js.map
333
+ //# sourceMappingURL=index-BlkQlFH3.js.map