const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./App-BSbPtvSW.js","./purify.es-CipTfxe2.js","./App-Buac-mIm.css","./App-Cu2_gDUw.js","./App-DHGy8fDP.js","./App-010rGorS.css"])))=>i.map(i=>d[i]); function kd(u,c){for(var s=0;sp[v]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const v of document.querySelectorAll('link[rel="modulepreload"]'))p(v);new MutationObserver(v=>{for(const w of v)if(w.type==="childList")for(const S of w.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&p(S)}).observe(document,{childList:!0,subtree:!0});function s(v){const w={};return v.integrity&&(w.integrity=v.integrity),v.referrerPolicy&&(w.referrerPolicy=v.referrerPolicy),v.crossOrigin==="use-credentials"?w.credentials="include":v.crossOrigin==="anonymous"?w.credentials="omit":w.credentials="same-origin",w}function p(v){if(v.ep)return;v.ep=!0;const w=s(v);fetch(v.href,w)}})();function ac(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Bo={exports:{}},Nr={},Wo={exports:{}},Z={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Qa;function Ed(){if(Qa)return Z;Qa=1;var u=Symbol.for("react.element"),c=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),S=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),L=Symbol.iterator;function W(h){return h===null||typeof h!="object"?null:(h=L&&h[L]||h["@@iterator"],typeof h=="function"?h:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,V={};function F(h,E,J){this.props=h,this.context=E,this.refs=V,this.updater=J||G}F.prototype.isReactComponent={},F.prototype.setState=function(h,E){if(typeof h!="object"&&typeof h!="function"&&h!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,h,E,"setState")},F.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};function Y(){}Y.prototype=F.prototype;function oe(h,E,J){this.props=h,this.context=E,this.refs=V,this.updater=J||G}var re=oe.prototype=new Y;re.constructor=oe,X(re,F.prototype),re.isPureReactComponent=!0;var ue=Array.isArray,Ce=Object.prototype.hasOwnProperty,Ie={current:null},Ue={key:!0,ref:!0,__self:!0,__source:!0};function Ze(h,E,J){var q,ee={},te=null,se=null;if(E!=null)for(q in E.ref!==void 0&&(se=E.ref),E.key!==void 0&&(te=""+E.key),E)Ce.call(E,q)&&!Ue.hasOwnProperty(q)&&(ee[q]=E[q]);var le=arguments.length-2;if(le===1)ee.children=J;else if(1>>1,E=z[h];if(0>>1;hv(ee,I))tev(se,ee)?(z[h]=se,z[te]=I,h=te):(z[h]=ee,z[q]=I,h=q);else if(tev(se,I))z[h]=se,z[te]=I,h=te;else break e}}return H}function v(z,H){var I=z.sortIndex-H.sortIndex;return I!==0?I:z.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var w=performance;u.unstable_now=function(){return w.now()}}else{var S=Date,C=S.now();u.unstable_now=function(){return S.now()-C}}var _=[],R=[],O=1,L=null,W=3,G=!1,X=!1,V=!1,F=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function re(z){for(var H=s(R);H!==null;){if(H.callback===null)p(R);else if(H.startTime<=z)p(R),H.sortIndex=H.expirationTime,c(_,H);else break;H=s(R)}}function ue(z){if(V=!1,re(z),!X)if(s(_)!==null)X=!0,Fe(Ce);else{var H=s(R);H!==null&&ve(ue,H.startTime-z)}}function Ce(z,H){X=!1,V&&(V=!1,Y(Ze),Ze=-1),G=!0;var I=W;try{for(re(H),L=s(_);L!==null&&(!(L.expirationTime>H)||z&&!bt());){var h=L.callback;if(typeof h=="function"){L.callback=null,W=L.priorityLevel;var E=h(L.expirationTime<=H);H=u.unstable_now(),typeof E=="function"?L.callback=E:L===s(_)&&p(_),re(H)}else p(_);L=s(_)}if(L!==null)var J=!0;else{var q=s(R);q!==null&&ve(ue,q.startTime-H),J=!1}return J}finally{L=null,W=I,G=!1}}var Ie=!1,Ue=null,Ze=-1,zt=5,kt=-1;function bt(){return!(u.unstable_now()-ktz||125h?(z.sortIndex=I,c(R,z),s(_)===null&&z===s(R)&&(V?(Y(Ze),Ze=-1):V=!0,ve(ue,I-h))):(z.sortIndex=E,c(_,z),X||G||(X=!0,Fe(Ce))),z},u.unstable_shouldYield=bt,u.unstable_wrapCallback=function(z){var H=W;return function(){var I=W;W=H;try{return z.apply(this,arguments)}finally{W=I}}}}($o)),$o}var Ja;function Nd(){return Ja||(Ja=1,Ao.exports=Pd()),Ao.exports}/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Za;function Rd(){if(Za)return He;Za=1;var u=Yo(),c=Nd();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_=Object.prototype.hasOwnProperty,R=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,O={},L={};function W(e){return _.call(L,e)?!0:_.call(O,e)?!1:R.test(e)?L[e]=!0:(O[e]=!0,!1)}function G(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function X(e,t,n,r){if(t===null||typeof t>"u"||G(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function V(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){F[e]=new V(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];F[t]=new V(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){F[e]=new V(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){F[e]=new V(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){F[e]=new V(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){F[e]=new V(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){F[e]=new V(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){F[e]=new V(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){F[e]=new V(e,5,!1,e.toLowerCase(),null,!1,!1)});var Y=/[\-:]([a-z])/g;function oe(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Y,oe);F[t]=new V(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Y,oe);F[t]=new V(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Y,oe);F[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){F[e]=new V(e,1,!1,e.toLowerCase(),null,!1,!1)}),F.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){F[e]=new V(e,1,!1,e.toLowerCase(),null,!0,!0)});function re(e,t,n,r){var l=F.hasOwnProperty(t)?F[t]:null;(l!==null?l.type!==0:r||!(2a||l[o]!==i[a]){var f=` `+l[o].replace(" at new "," at ");return e.displayName&&f.includes("")&&(f=f.replace("",e.displayName)),f}while(1<=o&&0<=a);break}}}finally{J=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?E(e):""}function ee(e){switch(e.tag){case 5:return E(e.type);case 16:return E("Lazy");case 13:return E("Suspense");case 19:return E("SuspenseList");case 0:case 2:case 15:return e=q(e.type,!1),e;case 11:return e=q(e.type.render,!1),e;case 1:return e=q(e.type,!0),e;default:return""}}function te(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ue:return"Fragment";case Ie:return"Portal";case zt:return"Profiler";case Ze:return"StrictMode";case Qe:return"Suspense";case lt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bt:return(e.displayName||"Context")+".Consumer";case kt:return(e._context.displayName||"Context")+".Provider";case pt:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ht:return t=e.displayName||null,t!==null?t:te(e.type)||"Memo";case Fe:t=e._payload,e=e._init;try{return te(e(t))}catch{}}return null}function se(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return te(t);case 8:return t===Ze?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function le(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function de(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ke(e){var t=de(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tr(e){e._valueTracker||(e._valueTracker=Ke(e))}function Zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=de(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Or(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ql(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=le(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bo(e,t){t=t.checked,t!=null&&re(e,"checked",t,!1)}function Kl(e,t){bo(e,t);var n=le(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Gl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Gl(e,t.type,le(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Gl(e,t,n){(t!=="number"||Or(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var An=Array.isArray;function vn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=jr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $n(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cc=["Webkit","ms","Moz","O"];Object.keys(Hn).forEach(function(e){Cc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hn[t]=Hn[e]})});function ou(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hn.hasOwnProperty(e)&&Hn[e]?(""+t).trim():t+"px"}function uu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ou(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var _c=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Jl(e,t){if(t){if(_c[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function Zl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ql=null;function bl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ei=null,yn=null,gn=null;function su(e){if(e=dr(e)){if(typeof ei!="function")throw Error(s(280));var t=e.stateNode;t&&(t=nl(t),ei(e.stateNode,e.type,t))}}function au(e){yn?gn?gn.push(e):gn=[e]:yn=e}function cu(){if(yn){var e=yn,t=gn;if(gn=yn=null,su(e),t)for(e=0;e>>=0,e===0?32:31-(Mc(e)/Uc|0)|0}var Fr=64,Br=4194304;function Yn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=Yn(a):(i&=o,i!==0&&(r=Yn(i)))}else o=n&~l,o!==0?r=Yn(o):i!==0&&(r=Yn(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Xn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=n}function Vc(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=rr),Fu=" ",Bu=!1;function Wu(e,t){switch(e){case"keyup":return vf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function gf(e,t){switch(e){case"compositionend":return Vu(t);case"keypress":return t.which!==32?null:(Bu=!0,Fu);case"textInput":return e=t.data,e===Fu&&Bu?null:e;default:return null}}function wf(e,t){if(kn)return e==="compositionend"||!gi&&Wu(e,t)?(e=Ou(),Qr=di=Dt=null,kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yu(n)}}function Ju(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ju(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zu(){for(var e=window,t=Or();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Or(e.document)}return t}function ki(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Rf(e){var t=Zu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ju(n.ownerDocument.documentElement,n)){if(r!==null&&ki(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Xu(n,i);var o=Xu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,En=null,Ei=null,ur=null,xi=!1;function qu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xi||En==null||En!==Or(r)||(r=En,"selectionStart"in r&&ki(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ur&&or(ur,r)||(ur=r,r=br(Ei,"onSelect"),0Nn||(e.current=Di[Nn],Di[Nn]=null,Nn--)}function ae(e,t){Nn++,Di[Nn]=e.current,e.current=t}var Bt={},ze=Ft(Bt),Be=Ft(!1),nn=Bt;function Rn(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function We(e){return e=e.childContextTypes,e!=null}function rl(){fe(Be),fe(ze)}function ps(e,t,n){if(ze.current!==Bt)throw Error(s(168));ae(ze,t),ae(Be,n)}function hs(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(s(108,se(e)||"Unknown",l));return I({},n,r)}function ll(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,nn=ze.current,ae(ze,e),ae(Be,Be.current),!0}function ms(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=hs(e,t,nn),r.__reactInternalMemoizedMergedChildContext=e,fe(Be),fe(ze),ae(ze,e)):fe(Be),ae(Be,n)}var xt=null,il=!1,Mi=!1;function vs(e){xt===null?xt=[e]:xt.push(e)}function Wf(e){il=!0,vs(e)}function Wt(){if(!Mi&&xt!==null){Mi=!0;var e=0,t=ie;try{var n=xt;for(ie=1;e>=o,l-=o,Ct=1<<32-it(t)+l|n<Q?(Ne=$,$=null):Ne=$.sibling;var ne=k(m,$,y[Q],N);if(ne===null){$===null&&($=Ne);break}e&&$&&ne.alternate===null&&t(m,$),d=i(ne,d,Q),A===null?B=ne:A.sibling=ne,A=ne,$=Ne}if(Q===y.length)return n(m,$),pe&&ln(m,Q),B;if($===null){for(;QQ?(Ne=$,$=null):Ne=$.sibling;var Xt=k(m,$,ne.value,N);if(Xt===null){$===null&&($=Ne);break}e&&$&&Xt.alternate===null&&t(m,$),d=i(Xt,d,Q),A===null?B=Xt:A.sibling=Xt,A=Xt,$=Ne}if(ne.done)return n(m,$),pe&&ln(m,Q),B;if($===null){for(;!ne.done;Q++,ne=y.next())ne=P(m,ne.value,N),ne!==null&&(d=i(ne,d,Q),A===null?B=ne:A.sibling=ne,A=ne);return pe&&ln(m,Q),B}for($=r(m,$);!ne.done;Q++,ne=y.next())ne=T($,m,Q,ne.value,N),ne!==null&&(e&&ne.alternate!==null&&$.delete(ne.key===null?Q:ne.key),d=i(ne,d,Q),A===null?B=ne:A.sibling=ne,A=ne);return e&&$.forEach(function(Sd){return t(m,Sd)}),pe&&ln(m,Q),B}function we(m,d,y,N){if(typeof y=="object"&&y!==null&&y.type===Ue&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ce:e:{for(var B=y.key,A=d;A!==null;){if(A.key===B){if(B=y.type,B===Ue){if(A.tag===7){n(m,A.sibling),d=l(A,y.props.children),d.return=m,m=d;break e}}else if(A.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===Fe&&Es(B)===A.type){n(m,A.sibling),d=l(A,y.props),d.ref=pr(m,A,y),d.return=m,m=d;break e}n(m,A);break}else t(m,A);A=A.sibling}y.type===Ue?(d=pn(y.props.children,m.mode,N,y.key),d.return=m,m=d):(N=jl(y.type,y.key,y.props,null,m.mode,N),N.ref=pr(m,d,y),N.return=m,m=N)}return o(m);case Ie:e:{for(A=y.key;d!==null;){if(d.key===A)if(d.tag===4&&d.stateNode.containerInfo===y.containerInfo&&d.stateNode.implementation===y.implementation){n(m,d.sibling),d=l(d,y.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=Io(y,m.mode,N),d.return=m,m=d}return o(m);case Fe:return A=y._init,we(m,d,A(y._payload),N)}if(An(y))return D(m,d,y,N);if(H(y))return U(m,d,y,N);al(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,d!==null&&d.tag===6?(n(m,d.sibling),d=l(d,y),d.return=m,m=d):(n(m,d),d=jo(y,m.mode,N),d.return=m,m=d),o(m)):n(m,d)}return we}var On=xs(!0),Cs=xs(!1),cl=Ft(null),fl=null,jn=null,Ai=null;function $i(){Ai=jn=fl=null}function Hi(e){var t=cl.current;fe(cl),e._currentValue=t}function Qi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function In(e,t){fl=e,Ai=jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ve=!0),e.firstContext=null)}function et(e){var t=e._currentValue;if(Ai!==e)if(e={context:e,memoizedValue:t,next:null},jn===null){if(fl===null)throw Error(s(308));jn=e,fl.dependencies={lanes:0,firstContext:e}}else jn=jn.next=e;return t}var on=null;function Ki(e){on===null?on=[e]:on.push(e)}function _s(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ki(t)):(n.next=l.next,l.next=n),t.interleaved=n,Pt(e,r)}function Pt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Vt=!1;function Gi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ps(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function At(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(b&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Pt(e,n)}return l=r.interleaved,l===null?(t.next=t,Ki(r)):(t.next=l.next,l.next=t),r.interleaved=t,Pt(e,n)}function dl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ui(e,n)}}function Ns(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function pl(e,t,n,r){var l=e.updateQueue;Vt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var f=a,g=f.next;f.next=null,o===null?i=g:o.next=g,o=f;var x=e.alternate;x!==null&&(x=x.updateQueue,a=x.lastBaseUpdate,a!==o&&(a===null?x.firstBaseUpdate=g:a.next=g,x.lastBaseUpdate=f))}if(i!==null){var P=l.baseState;o=0,x=g=f=null,a=i;do{var k=a.lane,T=a.eventTime;if((r&k)===k){x!==null&&(x=x.next={eventTime:T,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var D=e,U=a;switch(k=t,T=n,U.tag){case 1:if(D=U.payload,typeof D=="function"){P=D.call(T,P,k);break e}P=D;break e;case 3:D.flags=D.flags&-65537|128;case 0:if(D=U.payload,k=typeof D=="function"?D.call(T,P,k):D,k==null)break e;P=I({},P,k);break e;case 2:Vt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,k=l.effects,k===null?l.effects=[a]:k.push(a))}else T={eventTime:T,lane:k,tag:a.tag,payload:a.payload,callback:a.callback,next:null},x===null?(g=x=T,f=P):x=x.next=T,o|=k;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;k=a,a=k.next,k.next=null,l.lastBaseUpdate=k,l.shared.pending=null}}while(!0);if(x===null&&(f=P),l.baseState=f,l.firstBaseUpdate=g,l.lastBaseUpdate=x,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);an|=o,e.lanes=o,e.memoizedState=P}}function Rs(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=qi.transition;qi.transition={};try{e(!1),t()}finally{ie=n,qi.transition=r}}function Gs(){return tt().memoizedState}function Hf(e,t,n){var r=Kt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ys(e))Xs(t,n);else if(n=_s(e,t,n,r),n!==null){var l=Me();ft(n,e,r,l),Js(n,t,r)}}function Qf(e,t,n){var r=Kt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ys(e))Xs(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(l.hasEagerState=!0,l.eagerState=a,ot(a,o)){var f=t.interleaved;f===null?(l.next=l,Ki(t)):(l.next=f.next,f.next=l),t.interleaved=l;return}}catch{}finally{}n=_s(e,t,l,r),n!==null&&(l=Me(),ft(n,e,r,l),Js(n,t,r))}}function Ys(e){var t=e.alternate;return e===me||t!==null&&t===me}function Xs(e,t){yr=vl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Js(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ui(e,n)}}var wl={readContext:et,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},Kf={readContext:et,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:Bs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yl(4194308,4,As.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return yl(4,2,e,t)},useMemo:function(e,t){var n=gt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Hf.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:Us,useDebugValue:io,useDeferredValue:function(e){return gt().memoizedState=e},useTransition:function(){var e=Us(!1),t=e[0];return e=$f.bind(null,e[1]),gt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,l=gt();if(pe){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Pe===null)throw Error(s(349));(sn&30)!==0||Os(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Bs(Is.bind(null,r,i,e),[e]),r.flags|=2048,Sr(9,js.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=gt(),t=Pe.identifierPrefix;if(pe){var n=_t,r=Ct;n=(r&~(1<<32-it(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[vt]=t,e[fr]=r,va(e,t,!1,!1),t.stateNode=e;e:{switch(o=Zl(n,r),n){case"dialog":ce("cancel",e),ce("close",e),l=r;break;case"iframe":case"object":case"embed":ce("load",e),l=r;break;case"video":case"audio":for(l=0;lBn&&(t.flags|=128,r=!0,kr(i,!1),t.lanes=4194304)}else{if(!r)if(e=hl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!pe)return Oe(t),null}else 2*ge()-i.renderingStartTime>Bn&&n!==1073741824&&(t.flags|=128,r=!0,kr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ge(),t.sibling=null,n=he.current,ae(he,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return zo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Je&1073741824)!==0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function ed(e,t){switch(Fi(t),t.tag){case 1:return We(t.type)&&rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dn(),fe(Be),fe(ze),Zi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Xi(t),null;case 13:if(fe(he),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(he),null;case 4:return Dn(),null;case 10:return Hi(t.type._context),null;case 22:case 23:return zo(),null;case 24:return null;default:return null}}var xl=!1,je=!1,td=typeof WeakSet=="function"?WeakSet:Set,j=null;function Un(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else n.current=null}function go(e,t,n){try{n()}catch(r){ye(e,t,r)}}var wa=!1;function nd(e,t){if(Li=$r,e=Zu(),ki(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,f=-1,g=0,x=0,P=e,k=null;t:for(;;){for(var T;P!==n||l!==0&&P.nodeType!==3||(a=o+l),P!==i||r!==0&&P.nodeType!==3||(f=o+r),P.nodeType===3&&(o+=P.nodeValue.length),(T=P.firstChild)!==null;)k=P,P=T;for(;;){if(P===e)break t;if(k===n&&++g===l&&(a=o),k===i&&++x===r&&(f=o),(T=P.nextSibling)!==null)break;P=k,k=P.parentNode}P=T}n=a===-1||f===-1?null:{start:a,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for(zi={focusedElem:e,selectionRange:n},$r=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var D=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(D!==null){var U=D.memoizedProps,we=D.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?U:st(t.type,U),we);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(N){ye(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return D=wa,wa=!1,D}function Er(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&go(t,n,i)}l=l.next}while(l!==r)}}function Cl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function wo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Sa(e){var t=e.alternate;t!==null&&(e.alternate=null,Sa(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vt],delete t[fr],delete t[Ii],delete t[Ff],delete t[Bf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ka(e){return e.tag===5||e.tag===3||e.tag===4}function Ea(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ka(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function So(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tl));else if(r!==4&&(e=e.child,e!==null))for(So(e,t,n),e=e.sibling;e!==null;)So(e,t,n),e=e.sibling}function ko(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ko(e,t,n),e=e.sibling;e!==null;)ko(e,t,n),e=e.sibling}var Re=null,at=!1;function $t(e,t,n){for(n=n.child;n!==null;)xa(e,t,n),n=n.sibling}function xa(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Ur,n)}catch{}switch(n.tag){case 5:je||Un(n,t);case 6:var r=Re,l=at;Re=null,$t(e,t,n),Re=r,at=l,Re!==null&&(at?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(at?(e=Re,n=n.stateNode,e.nodeType===8?ji(e.parentNode,n):e.nodeType===1&&ji(e,n),er(e)):ji(Re,n.stateNode));break;case 4:r=Re,l=at,Re=n.stateNode.containerInfo,at=!0,$t(e,t,n),Re=r,at=l;break;case 0:case 11:case 14:case 15:if(!je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&((i&2)!==0||(i&4)!==0)&&go(n,t,o),l=l.next}while(l!==r)}$t(e,t,n);break;case 1:if(!je&&(Un(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ye(n,t,a)}$t(e,t,n);break;case 21:$t(e,t,n);break;case 22:n.mode&1?(je=(r=je)||n.memoizedState!==null,$t(e,t,n),je=r):$t(e,t,n);break;default:$t(e,t,n)}}function Ca(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new td),t.forEach(function(r){var l=fd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=ge()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ld(r/1960))-r,10e?16:e,Qt===null)var r=!1;else{if(e=Qt,Qt=null,Ll=0,(b&6)!==0)throw Error(s(331));var l=b;for(b|=4,j=e.current;j!==null;){var i=j,o=i.child;if((j.flags&16)!==0){var a=i.deletions;if(a!==null){for(var f=0;fge()-Co?fn(e,0):xo|=n),$e(e,t)}function Ua(e,t){t===0&&((e.mode&1)===0?t=1:(t=Br,Br<<=1,(Br&130023424)===0&&(Br=4194304)));var n=Me();e=Pt(e,t),e!==null&&(Xn(e,t,n),$e(e,n))}function cd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ua(e,n)}function fd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}r!==null&&r.delete(t),Ua(e,n)}var Fa;Fa=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Be.current)Ve=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Ve=!1,qf(e,t,n);Ve=(e.flags&131072)!==0}else Ve=!1,pe&&(t.flags&1048576)!==0&&ys(t,ul,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;El(e,t),e=t.pendingProps;var l=Rn(t,ze.current);In(t,n),l=eo(null,t,r,e,l,n);var i=to();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(i=!0,ll(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Gi(t),l.updater=Sl,t.stateNode=l,l._reactInternals=t,uo(t,r,e,n),t=fo(null,t,r,!0,i,n)):(t.tag=0,pe&&i&&Ui(t),De(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(El(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=pd(r),e=st(r,e),l){case 0:t=co(null,t,r,e,n);break e;case 1:t=ca(null,t,r,e,n);break e;case 11:t=ia(null,t,r,e,n);break e;case 14:t=oa(null,t,r,st(r.type,e),n);break e}throw Error(s(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:st(r,l),co(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:st(r,l),ca(e,t,r,l,n);case 3:e:{if(fa(t),e===null)throw Error(s(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Ps(e,t),pl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Mn(Error(s(423)),t),t=da(e,t,r,n,l);break e}else if(r!==l){l=Mn(Error(s(424)),t),t=da(e,t,r,n,l);break e}else for(Xe=Ut(t.stateNode.containerInfo.firstChild),Ye=t,pe=!0,ut=null,n=Cs(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Tn(),r===l){t=Rt(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return Ls(t),e===null&&Wi(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Ti(r,l)?o=null:i!==null&&Ti(r,i)&&(t.flags|=32),aa(e,t),De(e,t,o,n),t.child;case 6:return e===null&&Wi(t),null;case 13:return pa(e,t,n);case 4:return Yi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:st(r,l),ia(e,t,r,l,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,ae(cl,r._currentValue),r._currentValue=o,i!==null)if(ot(i.value,o)){if(i.children===l.children&&!Be.current){t=Rt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var f=a.firstContext;f!==null;){if(f.context===r){if(i.tag===1){f=Nt(-1,n&-n),f.tag=2;var g=i.updateQueue;if(g!==null){g=g.shared;var x=g.pending;x===null?f.next=f:(f.next=x.next,x.next=f),g.pending=f}}i.lanes|=n,f=i.alternate,f!==null&&(f.lanes|=n),Qi(i.return,n,t),a.lanes|=n;break}f=f.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(s(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Qi(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}De(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,In(t,n),l=et(l),r=r(l),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,l=st(r,t.pendingProps),l=st(r.type,l),oa(e,t,r,l,n);case 15:return ua(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:st(r,l),El(e,t),t.tag=1,We(r)?(e=!0,ll(t)):e=!1,In(t,n),qs(t,r,l),uo(t,r,l,n),fo(null,t,r,!0,e,n);case 19:return ma(e,t,n);case 22:return sa(e,t,n)}throw Error(s(156,t.tag))};function Ba(e,t){return gu(e,t)}function dd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,r){return new dd(e,t,n,r)}function Oo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pd(e){if(typeof e=="function")return Oo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pt)return 11;if(e===ht)return 14}return 2}function Yt(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Oo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ue:return pn(n.children,l,i,t);case Ze:o=8,l|=8;break;case zt:return e=rt(12,n,t,l|2),e.elementType=zt,e.lanes=i,e;case Qe:return e=rt(13,n,t,l),e.elementType=Qe,e.lanes=i,e;case lt:return e=rt(19,n,t,l),e.elementType=lt,e.lanes=i,e;case ve:return Il(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kt:o=10;break e;case bt:o=9;break e;case pt:o=11;break e;case ht:o=14;break e;case Fe:o=16,r=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=rt(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function pn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function Il(e,t,n,r){return e=rt(22,e,r,t),e.elementType=ve,e.lanes=n,e.stateNode={isHidden:!1},e}function jo(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Io(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hd(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oi(0),this.expirationTimes=oi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Do(e,t,n,r,l,i,o,a,f){return e=new hd(e,t,n,a,f),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gi(i),e}function md(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),Vo.exports=Rd(),Vo.exports}var ba;function Ld(){if(ba)return Vl;ba=1;var u=cc();return Vl.createRoot=u.createRoot,Vl.hydrateRoot=u.hydrateRoot,Vl}var zd=Ld();const Td=ac(zd);cc();/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Rr(){return Rr=Object.assign?Object.assign.bind():function(u){for(var c=1;c"u")throw new Error(c)}function fc(u,c){if(!u){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function jd(){return Math.random().toString(36).substr(2,8)}function tc(u,c){return{usr:u.state,key:u.key,idx:c}}function Qo(u,c,s,p){return s===void 0&&(s=null),Rr({pathname:typeof u=="string"?u:u.pathname,search:"",hash:""},typeof c=="string"?Vn(c):c,{state:s,key:c&&c.key||p||jd()})}function Al(u){let{pathname:c="/",search:s="",hash:p=""}=u;return s&&s!=="?"&&(c+=s.charAt(0)==="?"?s:"?"+s),p&&p!=="#"&&(c+=p.charAt(0)==="#"?p:"#"+p),c}function Vn(u){let c={};if(u){let s=u.indexOf("#");s>=0&&(c.hash=u.substr(s),u=u.substr(0,s));let p=u.indexOf("?");p>=0&&(c.search=u.substr(p),u=u.substr(0,p)),u&&(c.pathname=u)}return c}function Id(u,c,s,p){p===void 0&&(p={});let{window:v=document.defaultView,v5Compat:w=!1}=p,S=v.history,C=Jt.Pop,_=null,R=O();R==null&&(R=0,S.replaceState(Rr({},S.state,{idx:R}),""));function O(){return(S.state||{idx:null}).idx}function L(){C=Jt.Pop;let F=O(),Y=F==null?null:F-R;R=F,_&&_({action:C,location:V.location,delta:Y})}function W(F,Y){C=Jt.Push;let oe=Qo(V.location,F,Y);R=O()+1;let re=tc(oe,R),ue=V.createHref(oe);try{S.pushState(re,"",ue)}catch(Ce){if(Ce instanceof DOMException&&Ce.name==="DataCloneError")throw Ce;v.location.assign(ue)}w&&_&&_({action:C,location:V.location,delta:1})}function G(F,Y){C=Jt.Replace;let oe=Qo(V.location,F,Y);R=O();let re=tc(oe,R),ue=V.createHref(oe);S.replaceState(re,"",ue),w&&_&&_({action:C,location:V.location,delta:0})}function X(F){let Y=v.location.origin!=="null"?v.location.origin:v.location.href,oe=typeof F=="string"?F:Al(F);return oe=oe.replace(/ $/,"%20"),ke(Y,"No window.location.(origin|href) available to create URL for href: "+oe),new URL(oe,Y)}let V={get action(){return C},get location(){return u(v,S)},listen(F){if(_)throw new Error("A history only accepts one active listener");return v.addEventListener(ec,L),_=F,()=>{v.removeEventListener(ec,L),_=null}},createHref(F){return c(v,F)},createURL:X,encodeLocation(F){let Y=X(F);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:W,replace:G,go(F){return S.go(F)}};return V}var nc;(function(u){u.data="data",u.deferred="deferred",u.redirect="redirect",u.error="error"})(nc||(nc={}));function Dd(u,c,s){return s===void 0&&(s="/"),Md(u,c,s)}function Md(u,c,s,p){let v=typeof c=="string"?Vn(c):c,w=Xo(v.pathname||"/",s);if(w==null)return null;let S=dc(u);Ud(S);let C=null;for(let _=0;C==null&&_{let _={relativePath:C===void 0?w.path||"":C,caseSensitive:w.caseSensitive===!0,childrenIndex:S,route:w};_.relativePath.startsWith("/")&&(ke(_.relativePath.startsWith(p),'Absolute route path "'+_.relativePath+'" nested under path '+('"'+p+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),_.relativePath=_.relativePath.slice(p.length));let R=Zt([p,_.relativePath]),O=s.concat(_);w.children&&w.children.length>0&&(ke(w.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+R+'".')),dc(w.children,c,O,R)),!(w.path==null&&!w.index)&&c.push({path:R,score:Hd(R,w.index),routesMeta:O})};return u.forEach((w,S)=>{var C;if(w.path===""||!((C=w.path)!=null&&C.includes("?")))v(w,S);else for(let _ of pc(w.path))v(w,S,_)}),c}function pc(u){let c=u.split("/");if(c.length===0)return[];let[s,...p]=c,v=s.endsWith("?"),w=s.replace(/\?$/,"");if(p.length===0)return v?[w,""]:[w];let S=pc(p.join("/")),C=[];return C.push(...S.map(_=>_===""?w:[w,_].join("/"))),v&&C.push(...S),C.map(_=>u.startsWith("/")&&_===""?"/":_)}function Ud(u){u.sort((c,s)=>c.score!==s.score?s.score-c.score:Qd(c.routesMeta.map(p=>p.childrenIndex),s.routesMeta.map(p=>p.childrenIndex)))}const Fd=/^:[\w-]+$/,Bd=3,Wd=2,Vd=1,Ad=10,$d=-2,rc=u=>u==="*";function Hd(u,c){let s=u.split("/"),p=s.length;return s.some(rc)&&(p+=$d),c&&(p+=Wd),s.filter(v=>!rc(v)).reduce((v,w)=>v+(Fd.test(w)?Bd:w===""?Vd:Ad),p)}function Qd(u,c){return u.length===c.length&&u.slice(0,-1).every((p,v)=>p===c[v])?u[u.length-1]-c[c.length-1]:0}function Kd(u,c,s){let{routesMeta:p}=u,v={},w="/",S=[];for(let C=0;C{let{paramName:W,isOptional:G}=O;if(W==="*"){let V=C[L]||"";S=w.slice(0,w.length-V.length).replace(/(.)\/+$/,"$1")}const X=C[L];return G&&!X?R[W]=void 0:R[W]=(X||"").replace(/%2F/g,"/"),R},{}),pathname:w,pathnameBase:S,pattern:u}}function Yd(u,c,s){c===void 0&&(c=!1),s===void 0&&(s=!0),fc(u==="*"||!u.endsWith("*")||u.endsWith("/*"),'Route path "'+u+'" will be treated as if it were '+('"'+u.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+u.replace(/\*$/,"/*")+'".'));let p=[],v="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(S,C,_)=>(p.push({paramName:C,isOptional:_!=null}),_?"/?([^\\/]+)?":"/([^\\/]+)"));return u.endsWith("*")?(p.push({paramName:"*"}),v+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?v+="\\/*$":u!==""&&u!=="/"&&(v+="(?:(?=\\/|$))"),[new RegExp(v,c?void 0:"i"),p]}function Xd(u){try{return u.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return fc(!1,'The URL path "'+u+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+c+").")),u}}function Xo(u,c){if(c==="/")return u;if(!u.toLowerCase().startsWith(c.toLowerCase()))return null;let s=c.endsWith("/")?c.length-1:c.length,p=u.charAt(s);return p&&p!=="/"?null:u.slice(s)||"/"}function Jd(u,c){c===void 0&&(c="/");let{pathname:s,search:p="",hash:v=""}=typeof u=="string"?Vn(u):u;return{pathname:s?s.startsWith("/")?s:Zd(s,c):c,search:ep(p),hash:tp(v)}}function Zd(u,c){let s=c.replace(/\/+$/,"").split("/");return u.split("/").forEach(v=>{v===".."?s.length>1&&s.pop():v!=="."&&s.push(v)}),s.length>1?s.join("/"):"/"}function Ho(u,c,s,p){return"Cannot include a '"+u+"' character in a manually specified "+("`to."+c+"` field ["+JSON.stringify(p)+"]. Please separate it out to the ")+("`to."+s+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function qd(u){return u.filter((c,s)=>s===0||c.route.path&&c.route.path.length>0)}function hc(u,c){let s=qd(u);return c?s.map((p,v)=>v===s.length-1?p.pathname:p.pathnameBase):s.map(p=>p.pathnameBase)}function mc(u,c,s,p){p===void 0&&(p=!1);let v;typeof u=="string"?v=Vn(u):(v=Rr({},u),ke(!v.pathname||!v.pathname.includes("?"),Ho("?","pathname","search",v)),ke(!v.pathname||!v.pathname.includes("#"),Ho("#","pathname","hash",v)),ke(!v.search||!v.search.includes("#"),Ho("#","search","hash",v)));let w=u===""||v.pathname==="",S=w?"/":v.pathname,C;if(S==null)C=s;else{let L=c.length-1;if(!p&&S.startsWith("..")){let W=S.split("/");for(;W[0]==="..";)W.shift(),L-=1;v.pathname=W.join("/")}C=L>=0?c[L]:"/"}let _=Jd(v,C),R=S&&S!=="/"&&S.endsWith("/"),O=(w||S===".")&&s.endsWith("/");return!_.pathname.endsWith("/")&&(R||O)&&(_.pathname+="/"),_}const Zt=u=>u.join("/").replace(/\/\/+/g,"/"),bd=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),ep=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,tp=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u;function np(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}const vc=["post","put","patch","delete"];new Set(vc);const rp=["get",...vc];new Set(rp);/** * React Router v6.30.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Lr(){return Lr=Object.assign?Object.assign.bind():function(u){for(var c=1;c{C.current=!0}),M.useCallback(function(R,O){if(O===void 0&&(O={}),!C.current)return;if(typeof R=="number"){p.go(R);return}let L=mc(R,JSON.parse(S),w,O.relative==="path");u==null&&c!=="/"&&(L.pathname=L.pathname==="/"?c:Zt([c,L.pathname])),(O.replace?p.replace:p.push)(L,O.state,O)},[c,p,S,w,u])}function wc(u,c){let{relative:s}=c===void 0?{}:c,{future:p}=M.useContext(hn),{matches:v}=M.useContext(mn),{pathname:w}=Hl(),S=JSON.stringify(hc(v,p.v7_relativeSplatPath));return M.useMemo(()=>mc(u,JSON.parse(S),w,s==="path"),[u,S,w,s])}function sp(u,c){return ap(u,c)}function ap(u,c,s,p){zr()||ke(!1);let{navigator:v,static:w}=M.useContext(hn),{matches:S}=M.useContext(mn),C=S[S.length-1],_=C?C.params:{};C&&C.pathname;let R=C?C.pathnameBase:"/";C&&C.route;let O=Hl(),L;if(c){var W;let Y=typeof c=="string"?Vn(c):c;R==="/"||(W=Y.pathname)!=null&&W.startsWith(R)||ke(!1),L=Y}else L=O;let G=L.pathname||"/",X=G;if(R!=="/"){let Y=R.replace(/^\//,"").split("/");X="/"+G.replace(/^\//,"").split("/").slice(Y.length).join("/")}let V=Dd(u,{pathname:X}),F=hp(V&&V.map(Y=>Object.assign({},Y,{params:Object.assign({},_,Y.params),pathname:Zt([R,v.encodeLocation?v.encodeLocation(Y.pathname).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?R:Zt([R,v.encodeLocation?v.encodeLocation(Y.pathnameBase).pathname:Y.pathnameBase])})),S,s,p);return c&&F?M.createElement($l.Provider,{value:{location:Lr({pathname:"/",search:"",hash:"",state:null,key:"default"},L),navigationType:Jt.Pop}},F):F}function cp(){let u=gp(),c=np(u)?u.status+" "+u.statusText:u instanceof Error?u.message:JSON.stringify(u),s=u instanceof Error?u.stack:null,v={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},c),s?M.createElement("pre",{style:v},s):null,null)}const fp=M.createElement(cp,null);class dp extends M.Component{constructor(c){super(c),this.state={location:c.location,revalidation:c.revalidation,error:c.error}}static getDerivedStateFromError(c){return{error:c}}static getDerivedStateFromProps(c,s){return s.location!==c.location||s.revalidation!=="idle"&&c.revalidation==="idle"?{error:c.error,location:c.location,revalidation:c.revalidation}:{error:c.error!==void 0?c.error:s.error,location:s.location,revalidation:c.revalidation||s.revalidation}}componentDidCatch(c,s){console.error("React Router caught the following error during render",c,s)}render(){return this.state.error!==void 0?M.createElement(mn.Provider,{value:this.props.routeContext},M.createElement(yc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pp(u){let{routeContext:c,match:s,children:p}=u,v=M.useContext(Jo);return v&&v.static&&v.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(v.staticContext._deepestRenderedBoundaryId=s.route.id),M.createElement(mn.Provider,{value:c},p)}function hp(u,c,s,p){var v;if(c===void 0&&(c=[]),s===void 0&&(s=null),p===void 0&&(p=null),u==null){var w;if(!s)return null;if(s.errors)u=s.matches;else if((w=p)!=null&&w.v7_partialHydration&&c.length===0&&!s.initialized&&s.matches.length>0)u=s.matches;else return null}let S=u,C=(v=s)==null?void 0:v.errors;if(C!=null){let O=S.findIndex(L=>L.route.id&&C?.[L.route.id]!==void 0);O>=0||ke(!1),S=S.slice(0,Math.min(S.length,O+1))}let _=!1,R=-1;if(s&&p&&p.v7_partialHydration)for(let O=0;O=0?S=S.slice(0,R+1):S=[S[0]];break}}}return S.reduceRight((O,L,W)=>{let G,X=!1,V=null,F=null;s&&(G=C&&L.route.id?C[L.route.id]:void 0,V=L.route.errorElement||fp,_&&(R<0&&W===0?(Sp("route-fallback"),X=!0,F=null):R===W&&(X=!0,F=L.route.hydrateFallbackElement||null)));let Y=c.concat(S.slice(0,W+1)),oe=()=>{let re;return G?re=V:X?re=F:L.route.Component?re=M.createElement(L.route.Component,null):L.route.element?re=L.route.element:re=O,M.createElement(pp,{match:L,routeContext:{outlet:O,matches:Y,isDataRoute:s!=null},children:re})};return s&&(L.route.ErrorBoundary||L.route.errorElement||W===0)?M.createElement(dp,{location:s.location,revalidation:s.revalidation,component:V,error:G,children:oe(),routeContext:{outlet:null,matches:Y,isDataRoute:!0}}):oe()},null)}var Sc=function(u){return u.UseBlocker="useBlocker",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u}(Sc||{}),kc=function(u){return u.UseBlocker="useBlocker",u.UseLoaderData="useLoaderData",u.UseActionData="useActionData",u.UseRouteError="useRouteError",u.UseNavigation="useNavigation",u.UseRouteLoaderData="useRouteLoaderData",u.UseMatches="useMatches",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u.UseRouteId="useRouteId",u}(kc||{});function mp(u){let c=M.useContext(Jo);return c||ke(!1),c}function vp(u){let c=M.useContext(lp);return c||ke(!1),c}function yp(u){let c=M.useContext(mn);return c||ke(!1),c}function Ec(u){let c=yp(),s=c.matches[c.matches.length-1];return s.route.id||ke(!1),s.route.id}function gp(){var u;let c=M.useContext(yc),s=vp(),p=Ec();return c!==void 0?c:(u=s.errors)==null?void 0:u[p]}function wp(){let{router:u}=mp(Sc.UseNavigateStable),c=Ec(kc.UseNavigateStable),s=M.useRef(!1);return gc(()=>{s.current=!0}),M.useCallback(function(v,w){w===void 0&&(w={}),s.current&&(typeof v=="number"?u.navigate(v):u.navigate(v,Lr({fromRouteId:c},w)))},[u,c])}const lc={};function Sp(u,c,s){lc[u]||(lc[u]=!0)}function kp(u,c){u?.v7_startTransition,u?.v7_relativeSplatPath}function St(u){ke(!1)}function Ep(u){let{basename:c="/",children:s=null,location:p,navigationType:v=Jt.Pop,navigator:w,static:S=!1,future:C}=u;zr()&&ke(!1);let _=c.replace(/^\/*/,"/"),R=M.useMemo(()=>({basename:_,navigator:w,static:S,future:Lr({v7_relativeSplatPath:!1},C)}),[_,C,w,S]);typeof p=="string"&&(p=Vn(p));let{pathname:O="/",search:L="",hash:W="",state:G=null,key:X="default"}=p,V=M.useMemo(()=>{let F=Xo(O,_);return F==null?null:{location:{pathname:F,search:L,hash:W,state:G,key:X},navigationType:v}},[_,O,L,W,G,X,v]);return V==null?null:M.createElement(hn.Provider,{value:R},M.createElement($l.Provider,{children:s,value:V}))}function xp(u){let{children:c,location:s}=u;return sp(Ko(c),s)}new Promise(()=>{});function Ko(u,c){c===void 0&&(c=[]);let s=[];return M.Children.forEach(u,(p,v)=>{if(!M.isValidElement(p))return;let w=[...c,v];if(p.type===M.Fragment){s.push.apply(s,Ko(p.props.children,w));return}p.type!==St&&ke(!1),!p.props.index||!p.props.children||ke(!1);let S={id:p.props.id||w.join("-"),caseSensitive:p.props.caseSensitive,element:p.props.element,Component:p.props.Component,index:p.props.index,path:p.props.path,loader:p.props.loader,action:p.props.action,errorElement:p.props.errorElement,ErrorBoundary:p.props.ErrorBoundary,hasErrorBoundary:p.props.ErrorBoundary!=null||p.props.errorElement!=null,shouldRevalidate:p.props.shouldRevalidate,handle:p.props.handle,lazy:p.props.lazy};p.props.children&&(S.children=Ko(p.props.children,w)),s.push(S)}),s}/** * React Router DOM v6.30.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Go(){return Go=Object.assign?Object.assign.bind():function(u){for(var c=1;c=0)&&(s[v]=u[v]);return s}function _p(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Pp(u,c){return u.button===0&&(!c||c==="_self")&&!_p(u)}const Np=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Rp="6";try{window.__reactRouterVersion=Rp}catch{}const Lp="startTransition",ic=_d[Lp];function zp(u){let{basename:c,children:s,future:p,window:v}=u,w=M.useRef();w.current==null&&(w.current=Od({window:v,v5Compat:!0}));let S=w.current,[C,_]=M.useState({action:S.action,location:S.location}),{v7_startTransition:R}=p||{},O=M.useCallback(L=>{R&&ic?ic(()=>_(L)):_(L)},[_,R]);return M.useLayoutEffect(()=>S.listen(O),[S,O]),M.useEffect(()=>kp(p),[p]),M.createElement(Ep,{basename:c,children:s,location:C.location,navigationType:C.action,navigator:S,future:p})}const Tp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Op=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xc=M.forwardRef(function(c,s){let{onClick:p,relative:v,reloadDocument:w,replace:S,state:C,target:_,to:R,preventScrollReset:O,viewTransition:L}=c,W=Cp(c,Np),{basename:G}=M.useContext(hn),X,V=!1;if(typeof R=="string"&&Op.test(R)&&(X=R,Tp))try{let re=new URL(window.location.href),ue=R.startsWith("//")?new URL(re.protocol+R):new URL(R),Ce=Xo(ue.pathname,G);ue.origin===re.origin&&Ce!=null?R=Ce+ue.search+ue.hash:V=!0}catch{}let F=ip(R,{relative:v}),Y=jp(R,{replace:S,state:C,target:_,preventScrollReset:O,relative:v,viewTransition:L});function oe(re){p&&p(re),re.defaultPrevented||Y(re)}return M.createElement("a",Go({},W,{href:X||F,onClick:V||w?p:oe,ref:s,target:_}))});var oc;(function(u){u.UseScrollRestoration="useScrollRestoration",u.UseSubmit="useSubmit",u.UseSubmitFetcher="useSubmitFetcher",u.UseFetcher="useFetcher",u.useViewTransitionState="useViewTransitionState"})(oc||(oc={}));var uc;(function(u){u.UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration"})(uc||(uc={}));function jp(u,c){let{target:s,replace:p,state:v,preventScrollReset:w,relative:S,viewTransition:C}=c===void 0?{}:c,_=op(),R=Hl(),O=wc(u,{relative:S});return M.useCallback(L=>{if(Pp(L,s)){L.preventDefault();let W=p!==void 0?p:Al(R)===Al(O);_(u,{replace:W,state:v,preventScrollReset:w,relative:S,viewTransition:C})}},[R,_,O,p,v,s,u,w,S,C])}const Ip="modulepreload",Dp=function(u,c){return new URL(u,c).href},sc={},qt=function(c,s,p){let v=Promise.resolve();if(s&&s.length>0){const S=document.getElementsByTagName("link"),C=document.querySelector("meta[property=csp-nonce]"),_=C?.nonce||C?.getAttribute("nonce");v=Promise.allSettled(s.map(R=>{if(R=Dp(R,p),R in sc)return;sc[R]=!0;const O=R.endsWith(".css"),L=O?'[rel="stylesheet"]':"";if(!!p)for(let X=S.length-1;X>=0;X--){const V=S[X];if(V.href===R&&(!O||V.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${R}"]${L}`))return;const G=document.createElement("link");if(G.rel=O?"stylesheet":Ip,O||(G.as="script"),G.crossOrigin="",G.href=R,_&&G.setAttribute("nonce",_),document.head.appendChild(G),O)return new Promise((X,V)=>{G.addEventListener("load",X),G.addEventListener("error",()=>V(new Error(`Unable to preload CSS for ${R}`)))})}))}function w(S){const C=new Event("vite:preloadError",{cancelable:!0});if(C.payload=S,window.dispatchEvent(C),!C.defaultPrevented)throw S}return v.then(S=>{for(const C of S||[])C.status==="rejected"&&w(C.reason);return c().catch(w)})},Mp=[{id:"llama",name:"Llama 3.2",description:"Text generation with Llama 3.2 using WebGPU acceleration",category:"text-generation",requiresWebGPU:!0},{id:"phi",name:"Phi 3.5",description:"Text generation with Phi 3.5 using WebGPU acceleration",category:"text-generation",requiresWebGPU:!0},{id:"janus",name:"Janus",description:"Multimodal text generation with image creation capabilities",category:"multimodal",requiresWebGPU:!0},{id:"florence",name:"Florence 2",description:"Vision model for image understanding and captioning",category:"vision",requiresWebGPU:!0},{id:"cross-encoder",name:"Cross Encoder",description:"Text similarity and relevance scoring",category:"classification",requiresWebGPU:!1},{id:"zero-shot",name:"Zero-Shot Classification",description:"Classify text without specific training",category:"classification",requiresWebGPU:!1},{id:"speecht5",name:"SpeechT5",description:"Convert text to speech",category:"audio",requiresWebGPU:!1},{id:"tts",name:"Text-to-Speech WebGPU",description:"Generate speech from text with WebGPU acceleration",category:"audio",requiresWebGPU:!0}],Up=Mp.reduce((u,c)=>(u[c.category]||(u[c.category]=[]),u[c.category].push(c),u),{}),Fp={"text-generation":"Text Generation",classification:"Text Classification",vision:"Computer Vision",audio:"Audio Processing",multimodal:"Multimodal"};function Bp(){const[u,c]=M.useState(!1);return M.useEffect(()=>{c(typeof navigator<"u"&&navigator.gpu!==void 0)},[]),K.jsxs("div",{className:"max-w-5xl mx-auto",children:[K.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Transformers.js Examples"}),K.jsx("p",{className:"mb-8 text-gray-600",children:"Run machine learning models directly in your browser"}),!u&&K.jsx("div",{className:"mb-6 p-4 bg-yellow-50 border-l-4 border-yellow-400 text-yellow-800",children:K.jsxs("p",{children:[K.jsx("strong",{children:"Note:"})," WebGPU is not detected in your browser. Examples marked with ⚡ require WebGPU support and may not work properly."]})}),Object.entries(Up).map(([s,p])=>K.jsxs("section",{className:"mb-8",children:[K.jsx("h2",{className:"text-xl font-semibold mb-4 pb-2 border-b",children:Fp[s]||s}),K.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:p.map(v=>{const w=v.requiresWebGPU&&!u;return K.jsxs(xc,{to:w?"#":`/${v.id}`,className:`block p-4 border rounded-lg hover:bg-gray-50 transition ${w?"opacity-60 cursor-not-allowed":""}`,onClick:S=>w&&S.preventDefault(),children:[K.jsxs("div",{className:"flex items-center justify-between mb-2",children:[K.jsx("h3",{className:"font-medium text-lg",children:v.name}),v.requiresWebGPU&&K.jsx("span",{title:"Requires WebGPU",children:"⚡"})]}),K.jsx("p",{className:"text-gray-600 text-sm",children:v.description})]},v.id)})})]},s))]})}const Wp=dt.lazy(()=>qt(()=>import("./App-BSbPtvSW.js"),__vite__mapDeps([0,1,2]),import.meta.url)),Vp=dt.lazy(()=>qt(()=>import("./App-Cu2_gDUw.js"),__vite__mapDeps([3,1,2]),import.meta.url)),Ap=dt.lazy(()=>qt(()=>import("./App-DHGy8fDP.js"),__vite__mapDeps([4,1,5]),import.meta.url)),$p=dt.lazy(()=>qt(()=>import("./App-qHM7w8U_.js"),[],import.meta.url)),Hp=dt.lazy(()=>qt(()=>import("./App-DpCeKn2Q.js"),[],import.meta.url)),Qp=dt.lazy(()=>qt(()=>import("./App-CO3ebtL-.js"),[],import.meta.url)),Kp=dt.lazy(()=>qt(()=>import("./App-C7i5J2cl.js"),[],import.meta.url)),Gp=dt.lazy(()=>qt(()=>import("./App-B9vayPiK.js"),[],import.meta.url));function Yp(){return K.jsxs("div",{className:"min-h-screen bg-gray-50",children:[K.jsx("header",{className:"bg-white shadow p-4",children:K.jsx("div",{className:"container mx-auto",children:K.jsx(xc,{to:"/",className:"text-blue-600 hover:text-blue-800",children:"← Back to Examples"})})}),K.jsx("main",{className:"container mx-auto p-4",children:K.jsx(dt.Suspense,{fallback:K.jsx("div",{className:"flex justify-center py-20",children:"Loading example..."}),children:K.jsxs(xp,{children:[K.jsx(St,{path:"/",element:K.jsx(Bp,{})}),K.jsx(St,{path:"/llama",element:K.jsx(Wp,{})}),K.jsx(St,{path:"/phi",element:K.jsx(Vp,{})}),K.jsx(St,{path:"/janus",element:K.jsx(Ap,{})}),K.jsx(St,{path:"/florence",element:K.jsx($p,{})}),K.jsx(St,{path:"/cross-encoder",element:K.jsx(Hp,{})}),K.jsx(St,{path:"/zero-shot",element:K.jsx(Qp,{})}),K.jsx(St,{path:"/speecht5",element:K.jsx(Kp,{})}),K.jsx(St,{path:"/tts",element:K.jsx(Gp,{})})]})})})]})}Td.createRoot(document.getElementById("root")).render(K.jsx(dt.StrictMode,{children:K.jsx(zp,{children:K.jsx(Yp,{})})}));export{K as j,M as r};