voicecc 1.1.0 → 1.1.1
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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const v of document.querySelectorAll('link[rel="modulepreload"]'))r(v);new MutationObserver(v=>{for(const p of v)if(p.type==="childList")for(const b of p.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&r(b)}).observe(document,{childList:!0,subtree:!0});function o(v){const p={};return v.integrity&&(p.integrity=v.integrity),v.referrerPolicy&&(p.referrerPolicy=v.referrerPolicy),v.crossOrigin==="use-credentials"?p.credentials="include":v.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function r(v){if(v.ep)return;v.ep=!0;const p=o(v);fetch(v.href,p)}})();function Xv(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Gs={exports:{}},Yn={};var dh;function Zv(){if(dh)return Yn;dh=1;var u=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function o(r,v,p){var b=null;if(p!==void 0&&(b=""+p),v.key!==void 0&&(b=""+v.key),"key"in v){p={};for(var C in v)C!=="key"&&(p[C]=v[C])}else p=v;return v=p.ref,{$$typeof:u,type:r,key:b,ref:v!==void 0?v:null,props:p}}return Yn.Fragment=f,Yn.jsx=o,Yn.jsxs=o,Yn}var hh;function Kv(){return hh||(hh=1,Gs.exports=Zv()),Gs.exports}var s=Kv(),Qs={exports:{}},ne={};var mh;function kv(){if(mh)return ne;mh=1;var u=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),b=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),x=Symbol.iterator;function R(j){return j===null||typeof j!="object"?null:(j=x&&j[x]||j["@@iterator"],typeof j=="function"?j:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,w={};function q(j,Y,k){this.props=j,this.context=Y,this.refs=w,this.updater=k||z}q.prototype.isReactComponent={},q.prototype.setState=function(j,Y){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,Y,"setState")},q.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function G(){}G.prototype=q.prototype;function Q(j,Y,k){this.props=j,this.context=Y,this.refs=w,this.updater=k||z}var I=Q.prototype=new G;I.constructor=Q,U(I,q.prototype),I.isPureReactComponent=!0;var $=Array.isArray;function V(){}var X={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function K(j,Y,k){var F=k.ref;return{$$typeof:u,type:j,key:Y,ref:F!==void 0?F:null,props:k}}function le(j,Y){return K(j.type,Y,j.props)}function ze(j){return typeof j=="object"&&j!==null&&j.$$typeof===u}function $e(j){var Y={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(k){return Y[k]})}var Et=/\/+/g;function Me(j,Y){return typeof j=="object"&&j!==null&&j.key!=null?$e(""+j.key):Y.toString(36)}function he(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(V,V):(j.status="pending",j.then(function(Y){j.status==="pending"&&(j.status="fulfilled",j.value=Y)},function(Y){j.status==="pending"&&(j.status="rejected",j.reason=Y)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function D(j,Y,k,F,ie){var re=typeof j;(re==="undefined"||re==="boolean")&&(j=null);var Ee=!1;if(j===null)Ee=!0;else switch(re){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(j.$$typeof){case u:case f:Ee=!0;break;case y:return Ee=j._init,D(Ee(j._payload),Y,k,F,ie)}}if(Ee)return ie=ie(j),Ee=F===""?"."+Me(j,0):F,$(ie)?(k="",Ee!=null&&(k=Ee.replace(Et,"$&/")+"/"),D(ie,Y,k,"",function(Za){return Za})):ie!=null&&(ze(ie)&&(ie=le(ie,k+(ie.key==null||j&&j.key===ie.key?"":(""+ie.key).replace(Et,"$&/")+"/")+Ee)),Y.push(ie)),1;Ee=0;var lt=F===""?".":F+":";if($(j))for(var He=0;He<j.length;He++)F=j[He],re=lt+Me(F,He),Ee+=D(F,Y,k,re,ie);else if(He=R(j),typeof He=="function")for(j=He.call(j),He=0;!(F=j.next()).done;)F=F.value,re=lt+Me(F,He++),Ee+=D(F,Y,k,re,ie);else if(re==="object"){if(typeof j.then=="function")return D(he(j),Y,k,F,ie);throw Y=String(j),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function Z(j,Y,k){if(j==null)return j;var F=[],ie=0;return D(j,F,"","",function(re){return Y.call(k,re,ie++)}),F}function ee(j){if(j._status===-1){var Y=j._result;Y=Y(),Y.then(function(k){(j._status===0||j._status===-1)&&(j._status=1,j._result=k)},function(k){(j._status===0||j._status===-1)&&(j._status=2,j._result=k)}),j._status===-1&&(j._status=0,j._result=Y)}if(j._status===1)return j._result.default;throw j._result}var se=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},ve={map:Z,forEach:function(j,Y,k){Z(j,function(){Y.apply(this,arguments)},k)},count:function(j){var Y=0;return Z(j,function(){Y++}),Y},toArray:function(j){return Z(j,function(Y){return Y})||[]},only:function(j){if(!ze(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return ne.Activity=g,ne.Children=ve,ne.Component=q,ne.Fragment=o,ne.Profiler=v,ne.PureComponent=Q,ne.StrictMode=r,ne.Suspense=h,ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ne.__COMPILER_RUNTIME={__proto__:null,c:function(j){return X.H.useMemoCache(j)}},ne.cache=function(j){return function(){return j.apply(null,arguments)}},ne.cacheSignal=function(){return null},ne.cloneElement=function(j,Y,k){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var F=U({},j.props),ie=j.key;if(Y!=null)for(re in Y.key!==void 0&&(ie=""+Y.key),Y)!J.call(Y,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&Y.ref===void 0||(F[re]=Y[re]);var re=arguments.length-2;if(re===1)F.children=k;else if(1<re){for(var Ee=Array(re),lt=0;lt<re;lt++)Ee[lt]=arguments[lt+2];F.children=Ee}return K(j.type,ie,F)},ne.createContext=function(j){return j={$$typeof:b,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:p,_context:j},j},ne.createElement=function(j,Y,k){var F,ie={},re=null;if(Y!=null)for(F in Y.key!==void 0&&(re=""+Y.key),Y)J.call(Y,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ie[F]=Y[F]);var Ee=arguments.length-2;if(Ee===1)ie.children=k;else if(1<Ee){for(var lt=Array(Ee),He=0;He<Ee;He++)lt[He]=arguments[He+2];ie.children=lt}if(j&&j.defaultProps)for(F in Ee=j.defaultProps,Ee)ie[F]===void 0&&(ie[F]=Ee[F]);return K(j,re,ie)},ne.createRef=function(){return{current:null}},ne.forwardRef=function(j){return{$$typeof:C,render:j}},ne.isValidElement=ze,ne.lazy=function(j){return{$$typeof:y,_payload:{_status:-1,_result:j},_init:ee}},ne.memo=function(j,Y){return{$$typeof:d,type:j,compare:Y===void 0?null:Y}},ne.startTransition=function(j){var Y=X.T,k={};X.T=k;try{var F=j(),ie=X.S;ie!==null&&ie(k,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(V,se)}catch(re){se(re)}finally{Y!==null&&k.types!==null&&(Y.types=k.types),X.T=Y}},ne.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ne.use=function(j){return X.H.use(j)},ne.useActionState=function(j,Y,k){return X.H.useActionState(j,Y,k)},ne.useCallback=function(j,Y){return X.H.useCallback(j,Y)},ne.useContext=function(j){return X.H.useContext(j)},ne.useDebugValue=function(){},ne.useDeferredValue=function(j,Y){return X.H.useDeferredValue(j,Y)},ne.useEffect=function(j,Y){return X.H.useEffect(j,Y)},ne.useEffectEvent=function(j){return X.H.useEffectEvent(j)},ne.useId=function(){return X.H.useId()},ne.useImperativeHandle=function(j,Y,k){return X.H.useImperativeHandle(j,Y,k)},ne.useInsertionEffect=function(j,Y){return X.H.useInsertionEffect(j,Y)},ne.useLayoutEffect=function(j,Y){return X.H.useLayoutEffect(j,Y)},ne.useMemo=function(j,Y){return X.H.useMemo(j,Y)},ne.useOptimistic=function(j,Y){return X.H.useOptimistic(j,Y)},ne.useReducer=function(j,Y,k){return X.H.useReducer(j,Y,k)},ne.useRef=function(j){return X.H.useRef(j)},ne.useState=function(j){return X.H.useState(j)},ne.useSyncExternalStore=function(j,Y,k){return X.H.useSyncExternalStore(j,Y,k)},ne.useTransition=function(){return X.H.useTransition()},ne.version="19.2.4",ne}var yh;function ar(){return yh||(yh=1,Qs.exports=kv()),Qs.exports}var S=ar();const Ke=Xv(S);var Vs={exports:{}},qn={},Xs={exports:{}},Zs={};var vh;function Jv(){return vh||(vh=1,(function(u){function f(D,Z){var ee=D.length;D.push(Z);e:for(;0<ee;){var se=ee-1>>>1,ve=D[se];if(0<v(ve,Z))D[se]=Z,D[ee]=ve,ee=se;else break e}}function o(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var Z=D[0],ee=D.pop();if(ee!==Z){D[0]=ee;e:for(var se=0,ve=D.length,j=ve>>>1;se<j;){var Y=2*(se+1)-1,k=D[Y],F=Y+1,ie=D[F];if(0>v(k,ee))F<ve&&0>v(ie,k)?(D[se]=ie,D[F]=ee,se=F):(D[se]=k,D[Y]=ee,se=Y);else if(F<ve&&0>v(ie,ee))D[se]=ie,D[F]=ee,se=F;else break e}}return Z}function v(D,Z){var ee=D.sortIndex-Z.sortIndex;return ee!==0?ee:D.id-Z.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;u.unstable_now=function(){return p.now()}}else{var b=Date,C=b.now();u.unstable_now=function(){return b.now()-C}}var h=[],d=[],y=1,g=null,x=3,R=!1,z=!1,U=!1,w=!1,q=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function I(D){for(var Z=o(d);Z!==null;){if(Z.callback===null)r(d);else if(Z.startTime<=D)r(d),Z.sortIndex=Z.expirationTime,f(h,Z);else break;Z=o(d)}}function $(D){if(U=!1,I(D),!z)if(o(h)!==null)z=!0,V||(V=!0,$e());else{var Z=o(d);Z!==null&&he($,Z.startTime-D)}}var V=!1,X=-1,J=5,K=-1;function le(){return w?!0:!(u.unstable_now()-K<J)}function ze(){if(w=!1,V){var D=u.unstable_now();K=D;var Z=!0;try{e:{z=!1,U&&(U=!1,G(X),X=-1),R=!0;var ee=x;try{t:{for(I(D),g=o(h);g!==null&&!(g.expirationTime>D&&le());){var se=g.callback;if(typeof se=="function"){g.callback=null,x=g.priorityLevel;var ve=se(g.expirationTime<=D);if(D=u.unstable_now(),typeof ve=="function"){g.callback=ve,I(D),Z=!0;break t}g===o(h)&&r(h),I(D)}else r(h);g=o(h)}if(g!==null)Z=!0;else{var j=o(d);j!==null&&he($,j.startTime-D),Z=!1}}break e}finally{g=null,x=ee,R=!1}Z=void 0}}finally{Z?$e():V=!1}}}var $e;if(typeof Q=="function")$e=function(){Q(ze)};else if(typeof MessageChannel<"u"){var Et=new MessageChannel,Me=Et.port2;Et.port1.onmessage=ze,$e=function(){Me.postMessage(null)}}else $e=function(){q(ze,0)};function he(D,Z){X=q(function(){D(u.unstable_now())},Z)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(D){D.callback=null},u.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<D?Math.floor(1e3/D):5},u.unstable_getCurrentPriorityLevel=function(){return x},u.unstable_next=function(D){switch(x){case 1:case 2:case 3:var Z=3;break;default:Z=x}var ee=x;x=Z;try{return D()}finally{x=ee}},u.unstable_requestPaint=function(){w=!0},u.unstable_runWithPriority=function(D,Z){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ee=x;x=D;try{return Z()}finally{x=ee}},u.unstable_scheduleCallback=function(D,Z,ee){var se=u.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?se+ee:se):ee=se,D){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=ee+ve,D={id:y++,callback:Z,priorityLevel:D,startTime:ee,expirationTime:ve,sortIndex:-1},ee>se?(D.sortIndex=ee,f(d,D),o(h)===null&&D===o(d)&&(U?(G(X),X=-1):U=!0,he($,ee-se))):(D.sortIndex=ve,f(h,D),z||R||(z=!0,V||(V=!0,$e()))),D},u.unstable_shouldYield=le,u.unstable_wrapCallback=function(D){var Z=x;return function(){var ee=x;x=Z;try{return D.apply(this,arguments)}finally{x=ee}}}})(Zs)),Zs}var ph;function $v(){return ph||(ph=1,Xs.exports=Jv()),Xs.exports}var Ks={exports:{}},tt={};var gh;function Wv(){if(gh)return tt;gh=1;var u=ar();function f(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)d+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(f(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},v=Symbol.for("react.portal");function p(h,d,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:v,key:g==null?null:""+g,children:h,containerInfo:d,implementation:y}}var b=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function C(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,tt.createPortal=function(h,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(f(299));return p(h,d,null,y)},tt.flushSync=function(h){var d=b.T,y=r.p;try{if(b.T=null,r.p=2,h)return h()}finally{b.T=d,r.p=y,r.d.f()}},tt.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(h,d))},tt.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},tt.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var y=d.as,g=C(y,d.crossOrigin),x=typeof d.integrity=="string"?d.integrity:void 0,R=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;y==="style"?r.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:R}):y==="script"&&r.d.X(h,{crossOrigin:g,integrity:x,fetchPriority:R,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},tt.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var y=C(d.as,d.crossOrigin);r.d.M(h,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(h)},tt.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var y=d.as,g=C(y,d.crossOrigin);r.d.L(h,y,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},tt.preloadModule=function(h,d){if(typeof h=="string")if(d){var y=C(d.as,d.crossOrigin);r.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(h)},tt.requestFormReset=function(h){r.d.r(h)},tt.unstable_batchedUpdates=function(h,d){return h(d)},tt.useFormState=function(h,d,y){return b.H.useFormState(h,d,y)},tt.useFormStatus=function(){return b.H.useHostTransitionStatus()},tt.version="19.2.4",tt}var Sh;function Fv(){if(Sh)return Ks.exports;Sh=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(f){console.error(f)}}return u(),Ks.exports=Wv(),Ks.exports}var bh;function Iv(){if(bh)return qn;bh=1;var u=$v(),f=ar(),o=Fv();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function v(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function p(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function b(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function C(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(p(e)!==e)throw Error(r(188))}function d(e){var t=e.alternate;if(!t){if(t=p(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return h(n),e;if(i===a)return h(n),t;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=i;else{for(var c=!1,m=n.child;m;){if(m===l){c=!0,l=n,a=i;break}if(m===a){c=!0,a=n,l=i;break}m=m.sibling}if(!c){for(m=i.child;m;){if(m===l){c=!0,l=i,a=n;break}if(m===a){c=!0,a=i,l=n;break}m=m.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,x=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),ze=Symbol.iterator;function $e(e){return e===null||typeof e!="object"?null:(e=ze&&e[ze]||e["@@iterator"],typeof e=="function"?e:null)}var Et=Symbol.for("react.client.reference");function Me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Et?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case q:return"Profiler";case w:return"StrictMode";case $:return"Suspense";case V:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case Q:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:Me(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return Me(e(t))}catch{}}return null}var he=Array.isArray,D=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},se=[],ve=-1;function j(e){return{current:e}}function Y(e){0>ve||(e.current=se[ve],se[ve]=null,ve--)}function k(e,t){ve++,se[ve]=e.current,e.current=t}var F=j(null),ie=j(null),re=j(null),Ee=j(null);function lt(e,t){switch(k(re,t),k(ie,e),k(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=wd(t),e=Bd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(F),k(F,e)}function He(){Y(F),Y(ie),Y(re)}function Za(e){e.memoizedState!==null&&k(Ee,e);var t=F.current,l=Bd(t,e.type);t!==l&&(k(ie,e),k(F,l))}function Wn(e){ie.current===e&&(Y(F),Y(ie)),Ee.current===e&&(Y(Ee),wn._currentValue=ee)}var Cu,rr;function Hl(e){if(Cu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Cu=t&&t[1]||"",rr=-1<l.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Cu+e+rr}var Tu=!1;function ju(e,t){if(!e||Tu)return"";Tu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(O){var _=O}Reflect.construct(e,[],H)}else{try{H.call()}catch(O){_=O}e.call(H.prototype)}}else{try{throw Error()}catch(O){_=O}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(O){if(O&&_&&typeof O.stack=="string")return[O.stack,_.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),c=i[0],m=i[1];if(c&&m){var E=c.split(`
|
|
4
|
+
`),M=m.split(`
|
|
5
|
+
`);for(n=a=0;a<E.length&&!E[a].includes("DetermineComponentFrameRoot");)a++;for(;n<M.length&&!M[n].includes("DetermineComponentFrameRoot");)n++;if(a===E.length||n===M.length)for(a=E.length-1,n=M.length-1;1<=a&&0<=n&&E[a]!==M[n];)n--;for(;1<=a&&0<=n;a--,n--)if(E[a]!==M[n]){if(a!==1||n!==1)do if(a--,n--,0>n||E[a]!==M[n]){var B=`
|
|
6
|
+
`+E[a].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=a&&0<=n);break}}}finally{Tu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Hl(l):""}function xm(e,t){switch(e.tag){case 26:case 27:case 5:return Hl(e.type);case 16:return Hl("Lazy");case 13:return e.child!==t&&t!==null?Hl("Suspense Fallback"):Hl("Suspense");case 19:return Hl("SuspenseList");case 0:case 15:return ju(e.type,!1);case 11:return ju(e.type.render,!1);case 1:return ju(e.type,!0);case 31:return Hl("Activity");default:return""}}function or(e){try{var t="",l=null;do t+=xm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
+
Error generating stack: `+a.message+`
|
|
8
|
+
`+a.stack}}var Au=Object.prototype.hasOwnProperty,Ru=u.unstable_scheduleCallback,zu=u.unstable_cancelCallback,Em=u.unstable_shouldYield,Cm=u.unstable_requestPaint,ft=u.unstable_now,Tm=u.unstable_getCurrentPriorityLevel,fr=u.unstable_ImmediatePriority,dr=u.unstable_UserBlockingPriority,Fn=u.unstable_NormalPriority,jm=u.unstable_LowPriority,hr=u.unstable_IdlePriority,Am=u.log,Rm=u.unstable_setDisableYieldValue,Ka=null,dt=null;function dl(e){if(typeof Am=="function"&&Rm(e),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(Ka,e)}catch{}}var ht=Math.clz32?Math.clz32:Mm,zm=Math.log,Nm=Math.LN2;function Mm(e){return e>>>=0,e===0?32:31-(zm(e)/Nm|0)|0}var In=256,Pn=262144,ei=4194304;function Yl(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ti(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var m=a&134217727;return m!==0?(a=m&~i,a!==0?n=Yl(a):(c&=m,c!==0?n=Yl(c):l||(l=m&~e,l!==0&&(n=Yl(l))))):(m=a&~i,m!==0?n=Yl(m):c!==0?n=Yl(c):l||(l=a&~e,l!==0&&(n=Yl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function ka(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _m(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mr(){var e=ei;return ei<<=1,(ei&62914560)===0&&(ei=4194304),e}function Nu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ja(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Om(e,t,l,a,n,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var m=e.entanglements,E=e.expirationTimes,M=e.hiddenUpdates;for(l=c&~l;0<l;){var B=31-ht(l),H=1<<B;m[B]=0,E[B]=-1;var _=M[B];if(_!==null)for(M[B]=null,B=0;B<_.length;B++){var O=_[B];O!==null&&(O.lane&=-536870913)}l&=~H}a!==0&&yr(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function yr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ht(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function vr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ht(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function pr(e,t){var l=t&-t;return l=(l&42)!==0?1:Mu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Mu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function _u(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function gr(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:ih(e.type))}function Sr(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var hl=Math.random().toString(36).slice(2),We="__reactFiber$"+hl,nt="__reactProps$"+hl,na="__reactContainer$"+hl,Ou="__reactEvents$"+hl,Dm="__reactListeners$"+hl,Um="__reactHandles$"+hl,br="__reactResources$"+hl,$a="__reactMarker$"+hl;function Du(e){delete e[We],delete e[nt],delete e[Ou],delete e[Dm],delete e[Um]}function ia(e){var t=e[We];if(t)return t;for(var l=e.parentNode;l;){if(t=l[na]||l[We]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Vd(e);e!==null;){if(l=e[We])return l;e=Vd(e)}return t}e=l,l=e.parentNode}return null}function ua(e){if(e=e[We]||e[na]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ca(e){var t=e[br];return t||(t=e[br]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ke(e){e[$a]=!0}var xr=new Set,Er={};function ql(e,t){sa(e,t),sa(e+"Capture",t)}function sa(e,t){for(Er[e]=t,e=0;e<t.length;e++)xr.add(t[e])}var wm=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Cr={},Tr={};function Bm(e){return Au.call(Tr,e)?!0:Au.call(Cr,e)?!1:wm.test(e)?Tr[e]=!0:(Cr[e]=!0,!1)}function li(e,t,l){if(Bm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function ai(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Xt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Uu(e){if(!e._valueTracker){var t=jr(e)?"checked":"value";e._valueTracker=Lm(e,t,""+e[t])}}function Ar(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=jr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ni(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}}var Hm=/[\n"\\]/g;function Tt(e){return e.replace(Hm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function wu(e,t,l,a,n,i,c,m){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Bu(e,c,Ct(t)):l!=null?Bu(e,c,Ct(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Ct(m):e.removeAttribute("name")}function Rr(e,t,l,a,n,i,c,m){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Uu(e);return}l=l!=null?""+Ct(l):"",t=t!=null?""+Ct(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=m?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Uu(e)}function Bu(e,t,l){t==="number"&&ni(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ra(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ct(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function zr(e,t,l){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ct(l):""}function Nr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(he(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ct(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Uu(e)}function oa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Ym=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 Mr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Ym.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function _r(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Mr(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Mr(e,i,t[i])}function Lu(e){if(e.indexOf("-")===-1)return!1;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 qm=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"]]),Gm=/^[\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 ii(e){return Gm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var Hu=null;function Yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fa=null,da=null;function Or(e){var t=ua(e);if(t&&(e=t.stateNode)){var l=e[nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(wu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[nt]||null;if(!n)throw Error(r(90));wu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Ar(a)}break e;case"textarea":zr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ra(e,!!l.multiple,t,!1)}}}var qu=!1;function Dr(e,t,l){if(qu)return e(t,l);qu=!0;try{var a=e(t);return a}finally{if(qu=!1,(fa!==null||da!==null)&&(Ki(),fa&&(t=fa,e=da,da=fa=null,Or(t),e)))for(t=0;t<e.length;t++)Or(e[t])}}function Fa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[nt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gu=!1;if(Kt)try{var Ia={};Object.defineProperty(Ia,"passive",{get:function(){Gu=!0}}),window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{Gu=!1}var ml=null,Qu=null,ui=null;function Ur(){if(ui)return ui;var e,t=Qu,l=t.length,a,n="value"in ml?ml.value:ml.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[i-a];a++);return ui=n.slice(e,1<a?1-a:void 0)}function ci(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function si(){return!0}function wr(){return!1}function it(e){function t(l,a,n,i,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?si:wr,this.isPropagationStopped=wr,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=si)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=si)},persist:function(){},isPersistent:si}),t}var Gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ri=it(Gl),Pa=g({},Gl,{view:0,detail:0}),Qm=it(Pa),Vu,Xu,en,oi=g({},Pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ku,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&e.type==="mousemove"?(Vu=e.screenX-en.screenX,Xu=e.screenY-en.screenY):Xu=Vu=0,en=e),Vu)},movementY:function(e){return"movementY"in e?e.movementY:Xu}}),Br=it(oi),Vm=g({},oi,{dataTransfer:0}),Xm=it(Vm),Zm=g({},Pa,{relatedTarget:0}),Zu=it(Zm),Km=g({},Gl,{animationName:0,elapsedTime:0,pseudoElement:0}),km=it(Km),Jm=g({},Gl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$m=it(Jm),Wm=g({},Gl,{data:0}),Lr=it(Wm),Fm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Im={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"},Pm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ey(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pm[e])?!!t[e]:!1}function Ku(){return ey}var ty=g({},Pa,{key:function(e){if(e.key){var t=Fm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Im[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ku,charCode:function(e){return e.type==="keypress"?ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ly=it(ty),ay=g({},oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hr=it(ay),ny=g({},Pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ku}),iy=it(ny),uy=g({},Gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),cy=it(uy),sy=g({},oi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ry=it(sy),oy=g({},Gl,{newState:0,oldState:0}),fy=it(oy),dy=[9,13,27,32],ku=Kt&&"CompositionEvent"in window,tn=null;Kt&&"documentMode"in document&&(tn=document.documentMode);var hy=Kt&&"TextEvent"in window&&!tn,Yr=Kt&&(!ku||tn&&8<tn&&11>=tn),qr=" ",Gr=!1;function Qr(e,t){switch(e){case"keyup":return dy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ha=!1;function my(e,t){switch(e){case"compositionend":return Vr(t);case"keypress":return t.which!==32?null:(Gr=!0,qr);case"textInput":return e=t.data,e===qr&&Gr?null:e;default:return null}}function yy(e,t){if(ha)return e==="compositionend"||!ku&&Qr(e,t)?(e=Ur(),ui=Qu=ml=null,ha=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yr&&t.locale!=="ko"?null:t.data;default:return null}}var vy={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 Xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vy[e.type]:t==="textarea"}function Zr(e,t,l,a){fa?da?da.push(a):da=[a]:fa=a,t=Pi(t,"onChange"),0<t.length&&(l=new ri("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var ln=null,an=null;function py(e){Nd(e,0)}function fi(e){var t=Wa(e);if(Ar(t))return e}function Kr(e,t){if(e==="change")return t}var kr=!1;if(Kt){var Ju;if(Kt){var $u="oninput"in document;if(!$u){var Jr=document.createElement("div");Jr.setAttribute("oninput","return;"),$u=typeof Jr.oninput=="function"}Ju=$u}else Ju=!1;kr=Ju&&(!document.documentMode||9<document.documentMode)}function $r(){ln&&(ln.detachEvent("onpropertychange",Wr),an=ln=null)}function Wr(e){if(e.propertyName==="value"&&fi(an)){var t=[];Zr(t,an,e,Yu(e)),Dr(py,t)}}function gy(e,t,l){e==="focusin"?($r(),ln=t,an=l,ln.attachEvent("onpropertychange",Wr)):e==="focusout"&&$r()}function Sy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fi(an)}function by(e,t){if(e==="click")return fi(t)}function xy(e,t){if(e==="input"||e==="change")return fi(t)}function Ey(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mt=typeof Object.is=="function"?Object.is:Ey;function nn(e,t){if(mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Au.call(t,n)||!mt(e[n],t[n]))return!1}return!0}function Fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ir(e,t){var l=Fr(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Fr(l)}}function Pr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function eo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ni(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ni(e.document)}return t}function Wu(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")}var Cy=Kt&&"documentMode"in document&&11>=document.documentMode,ma=null,Fu=null,un=null,Iu=!1;function to(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Iu||ma==null||ma!==ni(a)||(a=ma,"selectionStart"in a&&Wu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),un&&nn(un,a)||(un=a,a=Pi(Fu,"onSelect"),0<a.length&&(t=new ri("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ma)))}function Ql(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ya={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionrun:Ql("Transition","TransitionRun"),transitionstart:Ql("Transition","TransitionStart"),transitioncancel:Ql("Transition","TransitionCancel"),transitionend:Ql("Transition","TransitionEnd")},Pu={},lo={};Kt&&(lo=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function Vl(e){if(Pu[e])return Pu[e];if(!ya[e])return e;var t=ya[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in lo)return Pu[e]=t[l];return e}var ao=Vl("animationend"),no=Vl("animationiteration"),io=Vl("animationstart"),Ty=Vl("transitionrun"),jy=Vl("transitionstart"),Ay=Vl("transitioncancel"),uo=Vl("transitionend"),co=new Map,ec="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(" ");ec.push("scrollEnd");function Ut(e,t){co.set(e,t),ql(t,[e])}var di=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},jt=[],va=0,tc=0;function hi(){for(var e=va,t=tc=va=0;t<e;){var l=jt[t];jt[t++]=null;var a=jt[t];jt[t++]=null;var n=jt[t];jt[t++]=null;var i=jt[t];if(jt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}i!==0&&so(l,n,i)}}function mi(e,t,l,a){jt[va++]=e,jt[va++]=t,jt[va++]=l,jt[va++]=a,tc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function lc(e,t,l,a){return mi(e,t,l,a),yi(e)}function Xl(e,t){return mi(e,null,null,t),yi(e)}function so(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-ht(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function yi(e){if(50<zn)throw zn=0,fs=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pa={};function Ry(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,l,a){return new Ry(e,t,l,a)}function ac(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kt(e,t){var l=e.alternate;return l===null?(l=yt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function ro(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function vi(e,t,l,a,n,i){var c=0;if(a=e,typeof e=="function")ac(e)&&(c=1);else if(typeof e=="string")c=Ov(e,l,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case K:return e=yt(31,l,t,n),e.elementType=K,e.lanes=i,e;case U:return Zl(l.children,n,i,t);case w:c=8,n|=24;break;case q:return e=yt(12,l,t,n|2),e.elementType=q,e.lanes=i,e;case $:return e=yt(13,l,t,n),e.elementType=$,e.lanes=i,e;case V:return e=yt(19,l,t,n),e.elementType=V,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q:c=10;break e;case G:c=9;break e;case I:c=11;break e;case X:c=14;break e;case J:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=yt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Zl(e,t,l,a){return e=yt(7,e,a,t),e.lanes=l,e}function nc(e,t,l){return e=yt(6,e,null,t),e.lanes=l,e}function oo(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function ic(e,t,l){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var fo=new WeakMap;function At(e,t){if(typeof e=="object"&&e!==null){var l=fo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:or(t)},fo.set(e,t),t)}return{value:e,source:t,stack:or(t)}}var ga=[],Sa=0,pi=null,cn=0,Rt=[],zt=0,yl=null,Yt=1,qt="";function Jt(e,t){ga[Sa++]=cn,ga[Sa++]=pi,pi=e,cn=t}function ho(e,t,l){Rt[zt++]=Yt,Rt[zt++]=qt,Rt[zt++]=yl,yl=e;var a=Yt;e=qt;var n=32-ht(a)-1;a&=~(1<<n),l+=1;var i=32-ht(t)+n;if(30<i){var c=n-n%5;i=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Yt=1<<32-ht(t)+n|l<<n|a,qt=i+e}else Yt=1<<i|l<<n|a,qt=e}function uc(e){e.return!==null&&(Jt(e,1),ho(e,1,0))}function cc(e){for(;e===pi;)pi=ga[--Sa],ga[Sa]=null,cn=ga[--Sa],ga[Sa]=null;for(;e===yl;)yl=Rt[--zt],Rt[zt]=null,qt=Rt[--zt],Rt[zt]=null,Yt=Rt[--zt],Rt[zt]=null}function mo(e,t){Rt[zt++]=Yt,Rt[zt++]=qt,Rt[zt++]=yl,Yt=t.id,qt=t.overflow,yl=e}var Fe=null,_e=null,pe=!1,vl=null,Nt=!1,sc=Error(r(519));function pl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw sn(At(t,e)),sc}function yo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[We]=e,t[nt]=a,l){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(l=0;l<Mn.length;l++)fe(Mn[l],t);break;case"source":fe("error",t);break;case"img":case"image":case"link":fe("error",t),fe("load",t);break;case"details":fe("toggle",t);break;case"input":fe("invalid",t),Rr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),Nr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Dd(t.textContent,l)?(a.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),a.onScroll!=null&&fe("scroll",t),a.onScrollEnd!=null&&fe("scrollend",t),a.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||pl(e,!0)}function vo(e){for(Fe=e.return;Fe;)switch(Fe.tag){case 5:case 31:case 13:Nt=!1;return;case 27:case 3:Nt=!0;return;default:Fe=Fe.return}}function ba(e){if(e!==Fe)return!1;if(!pe)return vo(e),pe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||As(e.type,e.memoizedProps)),l=!l),l&&_e&&pl(e),vo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));_e=Qd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));_e=Qd(e)}else t===27?(t=_e,_l(e.type)?(e=_s,_s=null,_e=e):_e=t):_e=Fe?_t(e.stateNode.nextSibling):null;return!0}function Kl(){_e=Fe=null,pe=!1}function rc(){var e=vl;return e!==null&&(rt===null?rt=e:rt.push.apply(rt,e),vl=null),e}function sn(e){vl===null?vl=[e]:vl.push(e)}var oc=j(null),kl=null,$t=null;function gl(e,t,l){k(oc,t._currentValue),t._currentValue=l}function Wt(e){e._currentValue=oc.current,Y(oc)}function fc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function dc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var m=i;i=n;for(var E=0;E<t.length;E++)if(m.context===t[E]){i.lanes|=l,m=i.alternate,m!==null&&(m.lanes|=l),fc(i.return,l,e),a||(c=null);break e}i=m.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),fc(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function xa(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var m=n.type;mt(n.pendingProps.value,c.value)||(e!==null?e.push(m):e=[m])}}else if(n===Ee.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(wn):e=[wn])}n=n.return}e!==null&&dc(t,e,l,a),t.flags|=262144}function gi(e){for(e=e.firstContext;e!==null;){if(!mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Jl(e){kl=e,$t=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return po(kl,e)}function Si(e,t){return kl===null&&Jl(e),po(e,t)}function po(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},$t===null){if(e===null)throw Error(r(308));$t=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $t=$t.next=t;return l}var zy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ny=u.unstable_scheduleCallback,My=u.unstable_NormalPriority,Ge={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hc(){return{controller:new zy,data:new Map,refCount:0}}function rn(e){e.refCount--,e.refCount===0&&Ny(My,function(){e.controller.abort()})}var on=null,mc=0,Ea=0,Ca=null;function _y(e,t){if(on===null){var l=on=[];mc=0,Ea=ps(),Ca={status:"pending",value:void 0,then:function(a){l.push(a)}}}return mc++,t.then(go,go),t}function go(){if(--mc===0&&on!==null){Ca!==null&&(Ca.status="fulfilled");var e=on;on=null,Ea=0,Ca=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Oy(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var So=D.S;D.S=function(e,t){ad=ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&_y(e,t),So!==null&&So(e,t)};var $l=j(null);function yc(){var e=$l.current;return e!==null?e:Ne.pooledCache}function bi(e,t){t===null?k($l,$l.current):k($l,t.pool)}function bo(){var e=yc();return e===null?null:{parent:Ge._currentValue,pool:e}}var Ta=Error(r(460)),vc=Error(r(474)),xi=Error(r(542)),Ei={then:function(){}};function xo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Eo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Zt,Zt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,To(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=Ne,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,To(e),e}throw Fl=t,Ta}}function Wl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Fl=l,Ta):l}}var Fl=null;function Co(){if(Fl===null)throw Error(r(459));var e=Fl;return Fl=null,e}function To(e){if(e===Ta||e===xi)throw Error(r(483))}var ja=null,fn=0;function Ci(e){var t=fn;return fn+=1,ja===null&&(ja=[]),Eo(ja,e,t)}function dn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ti(e,t){throw t.$$typeof===x?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function jo(e){function t(A,T){if(e){var N=A.deletions;N===null?(A.deletions=[T],A.flags|=16):N.push(T)}}function l(A,T){if(!e)return null;for(;T!==null;)t(A,T),T=T.sibling;return null}function a(A){for(var T=new Map;A!==null;)A.key!==null?T.set(A.key,A):T.set(A.index,A),A=A.sibling;return T}function n(A,T){return A=kt(A,T),A.index=0,A.sibling=null,A}function i(A,T,N){return A.index=N,e?(N=A.alternate,N!==null?(N=N.index,N<T?(A.flags|=67108866,T):N):(A.flags|=67108866,T)):(A.flags|=1048576,T)}function c(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function m(A,T,N,L){return T===null||T.tag!==6?(T=nc(N,A.mode,L),T.return=A,T):(T=n(T,N),T.return=A,T)}function E(A,T,N,L){var te=N.type;return te===U?B(A,T,N.props.children,L,N.key):T!==null&&(T.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===J&&Wl(te)===T.type)?(T=n(T,N.props),dn(T,N),T.return=A,T):(T=vi(N.type,N.key,N.props,null,A.mode,L),dn(T,N),T.return=A,T)}function M(A,T,N,L){return T===null||T.tag!==4||T.stateNode.containerInfo!==N.containerInfo||T.stateNode.implementation!==N.implementation?(T=ic(N,A.mode,L),T.return=A,T):(T=n(T,N.children||[]),T.return=A,T)}function B(A,T,N,L,te){return T===null||T.tag!==7?(T=Zl(N,A.mode,L,te),T.return=A,T):(T=n(T,N),T.return=A,T)}function H(A,T,N){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=nc(""+T,A.mode,N),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case R:return N=vi(T.type,T.key,T.props,null,A.mode,N),dn(N,T),N.return=A,N;case z:return T=ic(T,A.mode,N),T.return=A,T;case J:return T=Wl(T),H(A,T,N)}if(he(T)||$e(T))return T=Zl(T,A.mode,N,null),T.return=A,T;if(typeof T.then=="function")return H(A,Ci(T),N);if(T.$$typeof===Q)return H(A,Si(A,T),N);Ti(A,T)}return null}function _(A,T,N,L){var te=T!==null?T.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return te!==null?null:m(A,T,""+N,L);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case R:return N.key===te?E(A,T,N,L):null;case z:return N.key===te?M(A,T,N,L):null;case J:return N=Wl(N),_(A,T,N,L)}if(he(N)||$e(N))return te!==null?null:B(A,T,N,L,null);if(typeof N.then=="function")return _(A,T,Ci(N),L);if(N.$$typeof===Q)return _(A,T,Si(A,N),L);Ti(A,N)}return null}function O(A,T,N,L,te){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return A=A.get(N)||null,m(T,A,""+L,te);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case R:return A=A.get(L.key===null?N:L.key)||null,E(T,A,L,te);case z:return A=A.get(L.key===null?N:L.key)||null,M(T,A,L,te);case J:return L=Wl(L),O(A,T,N,L,te)}if(he(L)||$e(L))return A=A.get(N)||null,B(T,A,L,te,null);if(typeof L.then=="function")return O(A,T,N,Ci(L),te);if(L.$$typeof===Q)return O(A,T,N,Si(T,L),te);Ti(T,L)}return null}function W(A,T,N,L){for(var te=null,ge=null,P=T,ce=T=0,ye=null;P!==null&&ce<N.length;ce++){P.index>ce?(ye=P,P=null):ye=P.sibling;var Se=_(A,P,N[ce],L);if(Se===null){P===null&&(P=ye);break}e&&P&&Se.alternate===null&&t(A,P),T=i(Se,T,ce),ge===null?te=Se:ge.sibling=Se,ge=Se,P=ye}if(ce===N.length)return l(A,P),pe&&Jt(A,ce),te;if(P===null){for(;ce<N.length;ce++)P=H(A,N[ce],L),P!==null&&(T=i(P,T,ce),ge===null?te=P:ge.sibling=P,ge=P);return pe&&Jt(A,ce),te}for(P=a(P);ce<N.length;ce++)ye=O(P,A,ce,N[ce],L),ye!==null&&(e&&ye.alternate!==null&&P.delete(ye.key===null?ce:ye.key),T=i(ye,T,ce),ge===null?te=ye:ge.sibling=ye,ge=ye);return e&&P.forEach(function(Bl){return t(A,Bl)}),pe&&Jt(A,ce),te}function ae(A,T,N,L){if(N==null)throw Error(r(151));for(var te=null,ge=null,P=T,ce=T=0,ye=null,Se=N.next();P!==null&&!Se.done;ce++,Se=N.next()){P.index>ce?(ye=P,P=null):ye=P.sibling;var Bl=_(A,P,Se.value,L);if(Bl===null){P===null&&(P=ye);break}e&&P&&Bl.alternate===null&&t(A,P),T=i(Bl,T,ce),ge===null?te=Bl:ge.sibling=Bl,ge=Bl,P=ye}if(Se.done)return l(A,P),pe&&Jt(A,ce),te;if(P===null){for(;!Se.done;ce++,Se=N.next())Se=H(A,Se.value,L),Se!==null&&(T=i(Se,T,ce),ge===null?te=Se:ge.sibling=Se,ge=Se);return pe&&Jt(A,ce),te}for(P=a(P);!Se.done;ce++,Se=N.next())Se=O(P,A,ce,Se.value,L),Se!==null&&(e&&Se.alternate!==null&&P.delete(Se.key===null?ce:Se.key),T=i(Se,T,ce),ge===null?te=Se:ge.sibling=Se,ge=Se);return e&&P.forEach(function(Vv){return t(A,Vv)}),pe&&Jt(A,ce),te}function Re(A,T,N,L){if(typeof N=="object"&&N!==null&&N.type===U&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case R:e:{for(var te=N.key;T!==null;){if(T.key===te){if(te=N.type,te===U){if(T.tag===7){l(A,T.sibling),L=n(T,N.props.children),L.return=A,A=L;break e}}else if(T.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===J&&Wl(te)===T.type){l(A,T.sibling),L=n(T,N.props),dn(L,N),L.return=A,A=L;break e}l(A,T);break}else t(A,T);T=T.sibling}N.type===U?(L=Zl(N.props.children,A.mode,L,N.key),L.return=A,A=L):(L=vi(N.type,N.key,N.props,null,A.mode,L),dn(L,N),L.return=A,A=L)}return c(A);case z:e:{for(te=N.key;T!==null;){if(T.key===te)if(T.tag===4&&T.stateNode.containerInfo===N.containerInfo&&T.stateNode.implementation===N.implementation){l(A,T.sibling),L=n(T,N.children||[]),L.return=A,A=L;break e}else{l(A,T);break}else t(A,T);T=T.sibling}L=ic(N,A.mode,L),L.return=A,A=L}return c(A);case J:return N=Wl(N),Re(A,T,N,L)}if(he(N))return W(A,T,N,L);if($e(N)){if(te=$e(N),typeof te!="function")throw Error(r(150));return N=te.call(N),ae(A,T,N,L)}if(typeof N.then=="function")return Re(A,T,Ci(N),L);if(N.$$typeof===Q)return Re(A,T,Si(A,N),L);Ti(A,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,T!==null&&T.tag===6?(l(A,T.sibling),L=n(T,N),L.return=A,A=L):(l(A,T),L=nc(N,A.mode,L),L.return=A,A=L),c(A)):l(A,T)}return function(A,T,N,L){try{fn=0;var te=Re(A,T,N,L);return ja=null,te}catch(P){if(P===Ta||P===xi)throw P;var ge=yt(29,P,null,A.mode);return ge.lanes=L,ge.return=A,ge}}}var Il=jo(!0),Ao=jo(!1),Sl=!1;function pc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function bl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(be&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=yi(e),so(e,null,l),t}return mi(e,a,t,l),yi(e)}function hn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,vr(e,l)}}function Sc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var bc=!1;function mn(){if(bc){var e=Ca;if(e!==null)throw e}}function yn(e,t,l,a){bc=!1;var n=e.updateQueue;Sl=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,m=n.shared.pending;if(m!==null){n.shared.pending=null;var E=m,M=E.next;E.next=null,c===null?i=M:c.next=M,c=E;var B=e.alternate;B!==null&&(B=B.updateQueue,m=B.lastBaseUpdate,m!==c&&(m===null?B.firstBaseUpdate=M:m.next=M,B.lastBaseUpdate=E))}if(i!==null){var H=n.baseState;c=0,B=M=E=null,m=i;do{var _=m.lane&-536870913,O=_!==m.lane;if(O?(me&_)===_:(a&_)===_){_!==0&&_===Ea&&(bc=!0),B!==null&&(B=B.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var W=e,ae=m;_=t;var Re=l;switch(ae.tag){case 1:if(W=ae.payload,typeof W=="function"){H=W.call(Re,H,_);break e}H=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ae.payload,_=typeof W=="function"?W.call(Re,H,_):W,_==null)break e;H=g({},H,_);break e;case 2:Sl=!0}}_=m.callback,_!==null&&(e.flags|=64,O&&(e.flags|=8192),O=n.callbacks,O===null?n.callbacks=[_]:O.push(_))}else O={lane:_,tag:m.tag,payload:m.payload,callback:m.callback,next:null},B===null?(M=B=O,E=H):B=B.next=O,c|=_;if(m=m.next,m===null){if(m=n.shared.pending,m===null)break;O=m,m=O.next,O.next=null,n.lastBaseUpdate=O,n.shared.pending=null}}while(!0);B===null&&(E=H),n.baseState=E,n.firstBaseUpdate=M,n.lastBaseUpdate=B,i===null&&(n.shared.lanes=0),Al|=c,e.lanes=c,e.memoizedState=H}}function Ro(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function zo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Ro(l[e],t)}var Aa=j(null),ji=j(0);function No(e,t){e=il,k(ji,e),k(Aa,t),il=e|t.baseLanes}function xc(){k(ji,il),k(Aa,Aa.current)}function Ec(){il=ji.current,Y(Aa),Y(ji)}var vt=j(null),Mt=null;function El(e){var t=e.alternate;k(Ye,Ye.current&1),k(vt,e),Mt===null&&(t===null||Aa.current!==null||t.memoizedState!==null)&&(Mt=e)}function Cc(e){k(Ye,Ye.current),k(vt,e),Mt===null&&(Mt=e)}function Mo(e){e.tag===22?(k(Ye,Ye.current),k(vt,e),Mt===null&&(Mt=e)):Cl()}function Cl(){k(Ye,Ye.current),k(vt,vt.current)}function pt(e){Y(vt),Mt===e&&(Mt=null),Y(Ye)}var Ye=j(0);function Ai(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ns(l)||Ms(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ft=0,ue=null,je=null,Qe=null,Ri=!1,Ra=!1,Pl=!1,zi=0,vn=0,za=null,Dy=0;function we(){throw Error(r(321))}function Tc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!mt(e[l],t[l]))return!1;return!0}function jc(e,t,l,a,n,i){return Ft=i,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?mf:qc,Pl=!1,i=l(a,n),Pl=!1,Ra&&(i=Oo(t,l,a,n)),_o(e),i}function _o(e){D.H=Sn;var t=je!==null&&je.next!==null;if(Ft=0,Qe=je=ue=null,Ri=!1,vn=0,za=null,t)throw Error(r(300));e===null||Ve||(e=e.dependencies,e!==null&&gi(e)&&(Ve=!0))}function Oo(e,t,l,a){ue=e;var n=0;do{if(Ra&&(za=null),vn=0,Ra=!1,25<=n)throw Error(r(301));if(n+=1,Qe=je=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}D.H=yf,i=t(l,a)}while(Ra);return i}function Uy(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?pn(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(ue.flags|=1024),t}function Ac(){var e=zi!==0;return zi=0,e}function Rc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function zc(e){if(Ri){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ri=!1}Ft=0,Qe=je=ue=null,Ra=!1,vn=zi=0,za=null}function at(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ue.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function qe(){if(je===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Qe===null?ue.memoizedState:Qe.next;if(t!==null)Qe=t,je=e;else{if(e===null)throw ue.alternate===null?Error(r(467)):Error(r(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Qe===null?ue.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Ni(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pn(e){var t=vn;return vn+=1,za===null&&(za=[]),e=Eo(za,e,t),t=ue,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?mf:qc),e}function Mi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pn(e);if(e.$$typeof===Q)return Ie(e)}throw Error(r(438,String(e)))}function Nc(e){var t=null,l=ue.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ue.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Ni(),ue.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=le;return t.index++,l}function It(e,t){return typeof t=="function"?t(e):t}function _i(e){var t=qe();return Mc(t,je,e)}function Mc(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var m=c=null,E=null,M=t,B=!1;do{var H=M.lane&-536870913;if(H!==M.lane?(me&H)===H:(Ft&H)===H){var _=M.revertLane;if(_===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),H===Ea&&(B=!0);else if((Ft&_)===_){M=M.next,_===Ea&&(B=!0);continue}else H={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},E===null?(m=E=H,c=i):E=E.next=H,ue.lanes|=_,Al|=_;H=M.action,Pl&&l(i,H),i=M.hasEagerState?M.eagerState:l(i,H)}else _={lane:H,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},E===null?(m=E=_,c=i):E=E.next=_,ue.lanes|=H,Al|=H;M=M.next}while(M!==null&&M!==t);if(E===null?c=i:E.next=m,!mt(i,e.memoizedState)&&(Ve=!0,B&&(l=Ca,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=E,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function _c(e){var t=qe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);mt(i,t.memoizedState)||(Ve=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Do(e,t,l){var a=ue,n=qe(),i=pe;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!mt((je||n).memoizedState,l);if(c&&(n.memoizedState=l,Ve=!0),n=n.queue,Uc(Bo.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Qe!==null&&Qe.memoizedState.tag&1){if(a.flags|=2048,Na(9,{destroy:void 0},wo.bind(null,a,n,l,t),null),Ne===null)throw Error(r(349));i||(Ft&127)!==0||Uo(a,t,l)}return l}function Uo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ue.updateQueue,t===null?(t=Ni(),ue.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function wo(e,t,l,a){t.value=l,t.getSnapshot=a,Lo(t)&&Ho(e)}function Bo(e,t,l){return l(function(){Lo(t)&&Ho(e)})}function Lo(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!mt(e,l)}catch{return!0}}function Ho(e){var t=Xl(e,2);t!==null&&ot(t,e,2)}function Oc(e){var t=at();if(typeof e=="function"){var l=e;if(e=l(),Pl){dl(!0);try{l()}finally{dl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:e},t}function Yo(e,t,l,a){return e.baseState=l,Mc(e,je,typeof a=="function"?a:It)}function wy(e,t,l,a,n){if(Ui(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};D.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,qo(t,i)):(i.next=l.next,t.pending=l.next=i)}}function qo(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=D.T,c={};D.T=c;try{var m=l(n,a),E=D.S;E!==null&&E(c,m),Go(e,t,m)}catch(M){Dc(e,t,M)}finally{i!==null&&c.types!==null&&(i.types=c.types),D.T=i}}else try{i=l(n,a),Go(e,t,i)}catch(M){Dc(e,t,M)}}function Go(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Qo(e,t,a)},function(a){return Dc(e,t,a)}):Qo(e,t,l)}function Qo(e,t,l){t.status="fulfilled",t.value=l,Vo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,qo(e,l)))}function Dc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Vo(t),t=t.next;while(t!==a)}e.action=null}function Vo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xo(e,t){return t}function Zo(e,t){if(pe){var l=Ne.formState;if(l!==null){e:{var a=ue;if(pe){if(_e){t:{for(var n=_e,i=Nt;n.nodeType!==8;){if(!i){n=null;break t}if(n=_t(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){_e=_t(n.nextSibling),a=n.data==="F!";break e}}pl(a)}a=!1}a&&(t=l[0])}}return l=at(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:t},l.queue=a,l=ff.bind(null,ue,a),a.dispatch=l,a=Oc(!1),i=Yc.bind(null,ue,!1,a.queue),a=at(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=wy.bind(null,ue,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Ko(e){var t=qe();return ko(t,je,e)}function ko(e,t,l){if(t=Mc(e,t,Xo)[0],e=_i(It)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=pn(t)}catch(c){throw c===Ta?xi:c}else a=t;t=qe();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ue.flags|=2048,Na(9,{destroy:void 0},By.bind(null,n,l),null)),[a,i,e]}function By(e,t){e.action=t}function Jo(e){var t=qe(),l=je;if(l!==null)return ko(t,l,e);qe(),t=t.memoizedState,l=qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Na(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ue.updateQueue,t===null&&(t=Ni(),ue.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function $o(){return qe().memoizedState}function Oi(e,t,l,a){var n=at();ue.flags|=e,n.memoizedState=Na(1|t,{destroy:void 0},l,a===void 0?null:a)}function Di(e,t,l,a){var n=qe();a=a===void 0?null:a;var i=n.memoizedState.inst;je!==null&&a!==null&&Tc(a,je.memoizedState.deps)?n.memoizedState=Na(t,i,l,a):(ue.flags|=e,n.memoizedState=Na(1|t,i,l,a))}function Wo(e,t){Oi(8390656,8,e,t)}function Uc(e,t){Di(2048,8,e,t)}function Ly(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=Ni(),ue.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Fo(e){var t=qe().memoizedState;return Ly({ref:t,nextImpl:e}),function(){if((be&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Io(e,t){return Di(4,2,e,t)}function Po(e,t){return Di(4,4,e,t)}function ef(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function tf(e,t,l){l=l!=null?l.concat([e]):null,Di(4,4,ef.bind(null,t,e),l)}function wc(){}function lf(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Tc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function af(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Tc(t,a[1]))return a[0];if(a=e(),Pl){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a}function Bc(e,t,l){return l===void 0||(Ft&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=id(),ue.lanes|=e,Al|=e,l)}function nf(e,t,l,a){return mt(l,t)?l:Aa.current!==null?(e=Bc(e,l,a),mt(e,t)||(Ve=!0),e):(Ft&42)===0||(Ft&1073741824)!==0&&(me&261930)===0?(Ve=!0,e.memoizedState=l):(e=id(),ue.lanes|=e,Al|=e,t)}function uf(e,t,l,a,n){var i=Z.p;Z.p=i!==0&&8>i?i:8;var c=D.T,m={};D.T=m,Yc(e,!1,t,l);try{var E=n(),M=D.S;if(M!==null&&M(m,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var B=Oy(E,a);gn(e,t,B,bt(e))}else gn(e,t,a,bt(e))}catch(H){gn(e,t,{then:function(){},status:"rejected",reason:H},bt())}finally{Z.p=i,c!==null&&m.types!==null&&(c.types=m.types),D.T=c}}function Hy(){}function Lc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=cf(e).queue;uf(e,n,t,ee,l===null?Hy:function(){return sf(e),l(a)})}function cf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function sf(e){var t=cf(e);t.next===null&&(t=e.alternate.memoizedState),gn(e,t.next.queue,{},bt())}function Hc(){return Ie(wn)}function rf(){return qe().memoizedState}function of(){return qe().memoizedState}function Yy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=bt();e=bl(l);var a=xl(t,e,l);a!==null&&(ot(a,t,l),hn(a,t,l)),t={cache:hc()},e.payload=t;return}t=t.return}}function qy(e,t,l){var a=bt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ui(e)?df(t,l):(l=lc(e,t,l,a),l!==null&&(ot(l,e,a),hf(l,t,a)))}function ff(e,t,l){var a=bt();gn(e,t,l,a)}function gn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ui(e))df(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,m=i(c,l);if(n.hasEagerState=!0,n.eagerState=m,mt(m,c))return mi(e,t,n,0),Ne===null&&hi(),!1}catch{}if(l=lc(e,t,n,a),l!==null)return ot(l,e,a),hf(l,t,a),!0}return!1}function Yc(e,t,l,a){if(a={lane:2,revertLane:ps(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ui(e)){if(t)throw Error(r(479))}else t=lc(e,l,a,2),t!==null&&ot(t,e,2)}function Ui(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function df(e,t){Ra=Ri=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function hf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,vr(e,l)}}var Sn={readContext:Ie,use:Mi,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useLayoutEffect:we,useInsertionEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useSyncExternalStore:we,useId:we,useHostTransitionStatus:we,useFormState:we,useActionState:we,useOptimistic:we,useMemoCache:we,useCacheRefresh:we};Sn.useEffectEvent=we;var mf={readContext:Ie,use:Mi,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Wo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Oi(4194308,4,ef.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Oi(4194308,4,e,t)},useInsertionEffect:function(e,t){Oi(4,2,e,t)},useMemo:function(e,t){var l=at();t=t===void 0?null:t;var a=e();if(Pl){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=at();if(l!==void 0){var n=l(t);if(Pl){dl(!0);try{l(t)}finally{dl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=qy.bind(null,ue,e),[a.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:function(e){e=Oc(e);var t=e.queue,l=ff.bind(null,ue,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:wc,useDeferredValue:function(e,t){var l=at();return Bc(l,e,t)},useTransition:function(){var e=Oc(!1);return e=uf.bind(null,ue,e.queue,!0,!1),at().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ue,n=at();if(pe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ne===null)throw Error(r(349));(me&127)!==0||Uo(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,Wo(Bo.bind(null,a,i,e),[e]),a.flags|=2048,Na(9,{destroy:void 0},wo.bind(null,a,i,l,t),null),l},useId:function(){var e=at(),t=Ne.identifierPrefix;if(pe){var l=qt,a=Yt;l=(a&~(1<<32-ht(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Dy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Hc,useFormState:Zo,useActionState:Zo,useOptimistic:function(e){var t=at();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Yc.bind(null,ue,!0,l),l.dispatch=t,[e,t]},useMemoCache:Nc,useCacheRefresh:function(){return at().memoizedState=Yy.bind(null,ue)},useEffectEvent:function(e){var t=at(),l={impl:e};return t.memoizedState=l,function(){if((be&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},qc={readContext:Ie,use:Mi,useCallback:lf,useContext:Ie,useEffect:Uc,useImperativeHandle:tf,useInsertionEffect:Io,useLayoutEffect:Po,useMemo:af,useReducer:_i,useRef:$o,useState:function(){return _i(It)},useDebugValue:wc,useDeferredValue:function(e,t){var l=qe();return nf(l,je.memoizedState,e,t)},useTransition:function(){var e=_i(It)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:Do,useId:rf,useHostTransitionStatus:Hc,useFormState:Ko,useActionState:Ko,useOptimistic:function(e,t){var l=qe();return Yo(l,je,e,t)},useMemoCache:Nc,useCacheRefresh:of};qc.useEffectEvent=Fo;var yf={readContext:Ie,use:Mi,useCallback:lf,useContext:Ie,useEffect:Uc,useImperativeHandle:tf,useInsertionEffect:Io,useLayoutEffect:Po,useMemo:af,useReducer:_c,useRef:$o,useState:function(){return _c(It)},useDebugValue:wc,useDeferredValue:function(e,t){var l=qe();return je===null?Bc(l,e,t):nf(l,je.memoizedState,e,t)},useTransition:function(){var e=_c(It)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:Do,useId:rf,useHostTransitionStatus:Hc,useFormState:Jo,useActionState:Jo,useOptimistic:function(e,t){var l=qe();return je!==null?Yo(l,je,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Nc,useCacheRefresh:of};yf.useEffectEvent=Fo;function Gc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Qc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=bt(),n=bl(a);n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(ot(t,e,a),hn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=bt(),n=bl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(ot(t,e,a),hn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=bt(),a=bl(l);a.tag=2,t!=null&&(a.callback=t),t=xl(e,a,l),t!==null&&(ot(t,e,l),hn(t,e,l))}};function vf(e,t,l,a,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,c):t.prototype&&t.prototype.isPureReactComponent?!nn(l,a)||!nn(n,i):!0}function pf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Qc.enqueueReplaceState(t,t.state,null)}function ea(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=g({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function gf(e){di(e)}function Sf(e){console.error(e)}function bf(e){di(e)}function wi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function xf(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Vc(e,t,l){return l=bl(l),l.tag=3,l.payload={element:null},l.callback=function(){wi(e,t)},l}function Ef(e){return e=bl(e),e.tag=3,e}function Cf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){xf(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){xf(t,l,a),typeof n!="function"&&(Rl===null?Rl=new Set([this]):Rl.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function Gy(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&xa(t,l,n,!0),l=vt.current,l!==null){switch(l.tag){case 31:case 13:return Mt===null?ki():l.alternate===null&&Be===0&&(Be=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Ei?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),ms(e,a,n)),!1;case 22:return l.flags|=65536,a===Ei?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),ms(e,a,n)),!1}throw Error(r(435,l.tag))}return ms(e,a,n),ki(),!1}if(pe)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==sc&&(e=Error(r(422),{cause:a}),sn(At(e,l)))):(a!==sc&&(t=Error(r(423),{cause:a}),sn(At(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=At(a,l),n=Vc(e.stateNode,a,n),Sc(e,n),Be!==4&&(Be=2)),!1;var i=Error(r(520),{cause:a});if(i=At(i,l),Rn===null?Rn=[i]:Rn.push(i),Be!==4&&(Be=2),t===null)return!0;a=At(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Vc(l.stateNode,a,e),Sc(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Rl===null||!Rl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Ef(n),Cf(n,e,l,a),Sc(l,n),!1}l=l.return}while(l!==null);return!1}var Xc=Error(r(461)),Ve=!1;function Pe(e,t,l,a){t.child=e===null?Ao(t,null,l,a):Il(t,e.child,l,a)}function Tf(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var c={};for(var m in a)m!=="ref"&&(c[m]=a[m])}else c=a;return Jl(t),a=jc(e,t,l,c,i,n),m=Ac(),e!==null&&!Ve?(Rc(e,t,n),Pt(e,t,n)):(pe&&m&&uc(t),t.flags|=1,Pe(e,t,a,n),t.child)}function jf(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!ac(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Af(e,t,i,a,n)):(e=vi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Ic(e,n)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:nn,l(c,a)&&e.ref===t.ref)return Pt(e,t,n)}return t.flags|=1,e=kt(i,a),e.ref=t.ref,e.return=t,t.child=e}function Af(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(nn(i,a)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=a=i,Ic(e,n))(e.flags&131072)!==0&&(Ve=!0);else return t.lanes=e.lanes,Pt(e,t,n)}return Zc(e,t,l,a,n)}function Rf(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return zf(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bi(t,i!==null?i.cachePool:null),i!==null?No(t,i):xc(),Mo(t);else return a=t.lanes=536870912,zf(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(bi(t,i.cachePool),No(t,i),Cl(),t.memoizedState=null):(e!==null&&bi(t,null),xc(),Cl());return Pe(e,t,n,l),t.child}function bn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zf(e,t,l,a,n){var i=yc();return i=i===null?null:{parent:Ge._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&bi(t,null),xc(),Mo(t),e!==null&&xa(e,t,a,!0),t.childLanes=n,null}function Bi(e,t){return t=Hi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Nf(e,t,l){return Il(t,e.child,null,l),e=Bi(t,t.pendingProps),e.flags|=2,pt(t),t.memoizedState=null,e}function Qy(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(a.mode==="hidden")return e=Bi(t,a),t.lanes=536870912,bn(null,e);if(Cc(t),(e=_e)?(e=Gd(e,Nt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:qt}:null,retryLane:536870912,hydrationErrors:null},l=oo(e),l.return=t,t.child=l,Fe=t,_e=null)):e=null,e===null)throw pl(t);return t.lanes=536870912,null}return Bi(t,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(Cc(t),n)if(t.flags&256)t.flags&=-257,t=Nf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ve||xa(e,t,l,!1),n=(l&e.childLanes)!==0,Ve||n){if(a=Ne,a!==null&&(c=pr(a,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Xl(e,c),ot(a,e,c),Xc;ki(),t=Nf(e,t,l)}else e=i.treeContext,_e=_t(c.nextSibling),Fe=t,pe=!0,vl=null,Nt=!1,e!==null&&mo(t,e),t=Bi(t,a),t.flags|=4096;return t}return e=kt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Li(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Zc(e,t,l,a,n){return Jl(t),l=jc(e,t,l,a,void 0,n),a=Ac(),e!==null&&!Ve?(Rc(e,t,n),Pt(e,t,n)):(pe&&a&&uc(t),t.flags|=1,Pe(e,t,l,n),t.child)}function Mf(e,t,l,a,n,i){return Jl(t),t.updateQueue=null,l=Oo(t,a,l,n),_o(e),a=Ac(),e!==null&&!Ve?(Rc(e,t,i),Pt(e,t,i)):(pe&&a&&uc(t),t.flags|=1,Pe(e,t,l,i),t.child)}function _f(e,t,l,a,n){if(Jl(t),t.stateNode===null){var i=pa,c=l.contextType;typeof c=="object"&&c!==null&&(i=Ie(c)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Qc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},pc(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?Ie(c):pa,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Gc(t,l,c,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&Qc.enqueueReplaceState(i,i.state,null),yn(t,a,i,n),mn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var m=t.memoizedProps,E=ea(l,m);i.props=E;var M=i.context,B=l.contextType;c=pa,typeof B=="object"&&B!==null&&(c=Ie(B));var H=l.getDerivedStateFromProps;B=typeof H=="function"||typeof i.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,B||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(m||M!==c)&&pf(t,i,a,c),Sl=!1;var _=t.memoizedState;i.state=_,yn(t,a,i,n),mn(),M=t.memoizedState,m||_!==M||Sl?(typeof H=="function"&&(Gc(t,l,H,a),M=t.memoizedState),(E=Sl||vf(t,l,E,a,_,M,c))?(B||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=M),i.props=a,i.state=M,i.context=c,a=E):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,gc(e,t),c=t.memoizedProps,B=ea(l,c),i.props=B,H=t.pendingProps,_=i.context,M=l.contextType,E=pa,typeof M=="object"&&M!==null&&(E=Ie(M)),m=l.getDerivedStateFromProps,(M=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==H||_!==E)&&pf(t,i,a,E),Sl=!1,_=t.memoizedState,i.state=_,yn(t,a,i,n),mn();var O=t.memoizedState;c!==H||_!==O||Sl||e!==null&&e.dependencies!==null&&gi(e.dependencies)?(typeof m=="function"&&(Gc(t,l,m,a),O=t.memoizedState),(B=Sl||vf(t,l,B,a,_,O,E)||e!==null&&e.dependencies!==null&&gi(e.dependencies))?(M||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,O,E),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,O,E)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),i.props=a,i.state=O,i.context=E,a=B):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Li(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Il(t,e.child,null,n),t.child=Il(t,null,l,n)):Pe(e,t,l,n),t.memoizedState=i.state,e=t.child):e=Pt(e,t,n),e}function Of(e,t,l,a){return Kl(),t.flags|=256,Pe(e,t,l,a),t.child}var Kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kc(e){return{baseLanes:e,cachePool:bo()}}function Jc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=St),e}function Df(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(n?El(t):Cl(),(e=_e)?(e=Gd(e,Nt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:qt}:null,retryLane:536870912,hydrationErrors:null},l=oo(e),l.return=t,t.child=l,Fe=t,_e=null)):e=null,e===null)throw pl(t);return Ms(e)?t.lanes=32:t.lanes=536870912,null}var m=a.children;return a=a.fallback,n?(Cl(),n=t.mode,m=Hi({mode:"hidden",children:m},n),a=Zl(a,n,l,null),m.return=t,a.return=t,m.sibling=a,t.child=m,a=t.child,a.memoizedState=kc(l),a.childLanes=Jc(e,c,l),t.memoizedState=Kc,bn(null,a)):(El(t),$c(t,m))}var E=e.memoizedState;if(E!==null&&(m=E.dehydrated,m!==null)){if(i)t.flags&256?(El(t),t.flags&=-257,t=Wc(e,t,l)):t.memoizedState!==null?(Cl(),t.child=e.child,t.flags|=128,t=null):(Cl(),m=a.fallback,n=t.mode,a=Hi({mode:"visible",children:a.children},n),m=Zl(m,n,l,null),m.flags|=2,a.return=t,m.return=t,a.sibling=m,t.child=a,Il(t,e.child,null,l),a=t.child,a.memoizedState=kc(l),a.childLanes=Jc(e,c,l),t.memoizedState=Kc,t=bn(null,a));else if(El(t),Ms(m)){if(c=m.nextSibling&&m.nextSibling.dataset,c)var M=c.dgst;c=M,a=Error(r(419)),a.stack="",a.digest=c,sn({value:a,source:null,stack:null}),t=Wc(e,t,l)}else if(Ve||xa(e,t,l,!1),c=(l&e.childLanes)!==0,Ve||c){if(c=Ne,c!==null&&(a=pr(c,l),a!==0&&a!==E.retryLane))throw E.retryLane=a,Xl(e,a),ot(c,e,a),Xc;Ns(m)||ki(),t=Wc(e,t,l)}else Ns(m)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,_e=_t(m.nextSibling),Fe=t,pe=!0,vl=null,Nt=!1,e!==null&&mo(t,e),t=$c(t,a.children),t.flags|=4096);return t}return n?(Cl(),m=a.fallback,n=t.mode,E=e.child,M=E.sibling,a=kt(E,{mode:"hidden",children:a.children}),a.subtreeFlags=E.subtreeFlags&65011712,M!==null?m=kt(M,m):(m=Zl(m,n,l,null),m.flags|=2),m.return=t,a.return=t,a.sibling=m,t.child=a,bn(null,a),a=t.child,m=e.child.memoizedState,m===null?m=kc(l):(n=m.cachePool,n!==null?(E=Ge._currentValue,n=n.parent!==E?{parent:E,pool:E}:n):n=bo(),m={baseLanes:m.baseLanes|l,cachePool:n}),a.memoizedState=m,a.childLanes=Jc(e,c,l),t.memoizedState=Kc,bn(e.child,a)):(El(t),l=e.child,e=l.sibling,l=kt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function $c(e,t){return t=Hi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Hi(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function Wc(e,t,l){return Il(t,e.child,null,l),e=$c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Uf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),fc(e.return,t,l)}function Fc(e,t,l,a,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=i)}function wf(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var c=Ye.current,m=(c&2)!==0;if(m?(c=c&1|2,t.flags|=128):c&=1,k(Ye,c),Pe(e,t,a,l),a=pe?cn:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Uf(e,l,t);else if(e.tag===19)Uf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Ai(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Fc(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Ai(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Fc(t,!0,l,null,i,a);break;case"together":Fc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Pt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Al|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(xa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=kt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=kt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ic(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&gi(e)))}function Vy(e,t,l){switch(t.tag){case 3:lt(t,t.stateNode.containerInfo),gl(t,Ge,e.memoizedState.cache),Kl();break;case 27:case 5:Za(t);break;case 4:lt(t,t.stateNode.containerInfo);break;case 10:gl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Cc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(El(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Df(e,t,l):(El(t),e=Pt(e,t,l),e!==null?e.sibling:null);El(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(xa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return wf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),k(Ye,Ye.current),a)break;return null;case 22:return t.lanes=0,Rf(e,t,l,t.pendingProps);case 24:gl(t,Ge,e.memoizedState.cache)}return Pt(e,t,l)}function Bf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ve=!0;else{if(!Ic(e,l)&&(t.flags&128)===0)return Ve=!1,Vy(e,t,l);Ve=(e.flags&131072)!==0}else Ve=!1,pe&&(t.flags&1048576)!==0&&ho(t,cn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Wl(t.elementType),t.type=e,typeof e=="function")ac(e)?(a=ea(e,a),t.tag=1,t=_f(null,t,e,a,l)):(t.tag=0,t=Zc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===I){t.tag=11,t=Tf(null,t,e,a,l);break e}else if(n===X){t.tag=14,t=jf(null,t,e,a,l);break e}}throw t=Me(e)||e,Error(r(306,t,""))}}return t;case 0:return Zc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ea(a,t.pendingProps),_f(e,t,a,n,l);case 3:e:{if(lt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,gc(e,t),yn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,gl(t,Ge,a),a!==i.cache&&dc(t,[Ge],l,!0),mn(),a=c.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Of(e,t,a,l);break e}else if(a!==n){n=At(Error(r(424)),t),sn(n),t=Of(e,t,a,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,_e=_t(e.firstChild),Fe=t,pe=!0,vl=null,Nt=!0,l=Ao(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Kl(),a===n){t=Pt(e,t,l);break e}Pe(e,t,a,l)}t=t.child}return t;case 26:return Li(e,t),e===null?(l=kd(t.type,null,t.pendingProps,null))?t.memoizedState=l:pe||(l=t.type,e=t.pendingProps,a=eu(re.current).createElement(l),a[We]=t,a[nt]=e,et(a,l,e),ke(a),t.stateNode=a):t.memoizedState=kd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Za(t),e===null&&pe&&(a=t.stateNode=Xd(t.type,t.pendingProps,re.current),Fe=t,Nt=!0,n=_e,_l(t.type)?(_s=n,_e=_t(a.firstChild)):_e=n),Pe(e,t,t.pendingProps.children,l),Li(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((n=a=_e)&&(a=Sv(a,t.type,t.pendingProps,Nt),a!==null?(t.stateNode=a,Fe=t,_e=_t(a.firstChild),Nt=!1,n=!0):n=!1),n||pl(t)),Za(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,As(n,i)?a=null:c!==null&&As(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=jc(e,t,Uy,null,null,l),wn._currentValue=n),Li(e,t),Pe(e,t,a,l),t.child;case 6:return e===null&&pe&&((e=l=_e)&&(l=bv(l,t.pendingProps,Nt),l!==null?(t.stateNode=l,Fe=t,_e=null,e=!0):e=!1),e||pl(t)),null;case 13:return Df(e,t,l);case 4:return lt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Il(t,null,a,l):Pe(e,t,a,l),t.child;case 11:return Tf(e,t,t.type,t.pendingProps,l);case 7:return Pe(e,t,t.pendingProps,l),t.child;case 8:return Pe(e,t,t.pendingProps.children,l),t.child;case 12:return Pe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,gl(t,t.type,a.value),Pe(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Jl(t),n=Ie(n),a=a(n),t.flags|=1,Pe(e,t,a,l),t.child;case 14:return jf(e,t,t.type,t.pendingProps,l);case 15:return Af(e,t,t.type,t.pendingProps,l);case 19:return wf(e,t,l);case 31:return Qy(e,t,l);case 22:return Rf(e,t,l,t.pendingProps);case 24:return Jl(t),a=Ie(Ge),e===null?(n=yc(),n===null&&(n=Ne,i=hc(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},pc(t),gl(t,Ge,n)):((e.lanes&l)!==0&&(gc(e,t),yn(t,null,null,l),mn()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),gl(t,Ge,a)):(a=i.cache,gl(t,Ge,a),a!==n.cache&&dc(t,[Ge],l,!0))),Pe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function el(e){e.flags|=4}function Pc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(rd())e.flags|=8192;else throw Fl=Ei,vc}else e.flags&=-16777217}function Lf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Id(t))if(rd())e.flags|=8192;else throw Fl=Ei,vc}function Yi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?mr():536870912,e.lanes|=t,Da|=t)}function xn(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Xy(e,t,l){var a=t.pendingProps;switch(cc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Wt(Ge),He(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ba(t)?el(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rc())),Oe(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(el(t),i!==null?(Oe(t),Lf(t,i)):(Oe(t),Pc(t,n,null,a,l))):i?i!==e.memoizedState?(el(t),Oe(t),Lf(t,i)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&el(t),Oe(t),Pc(t,n,e,a,l)),null;case 27:if(Wn(t),l=re.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&el(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Oe(t),null}e=F.current,ba(t)?yo(t):(e=Xd(n,a,l),t.stateNode=e,el(t))}return Oe(t),null;case 5:if(Wn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&el(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Oe(t),null}if(i=F.current,ba(t))yo(t);else{var c=eu(re.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[We]=t,i[nt]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(et(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&el(t)}}return Oe(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&el(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=re.current,ba(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Fe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[We]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Dd(e.nodeValue,l)),e||pl(t,!0)}else e=eu(e).createTextNode(a),e[We]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ba(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[We]=t}else Kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(pt(t),t):(pt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ba(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[We]=t}else Kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(pt(t),t):(pt(t),null)}return pt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Yi(t,t.updateQueue),Oe(t),null);case 4:return He(),e===null&&xs(t.stateNode.containerInfo),Oe(t),null;case 10:return Wt(t.type),Oe(t),null;case 19:if(Y(Ye),a=t.memoizedState,a===null)return Oe(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)xn(a,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Ai(e),i!==null){for(t.flags|=128,xn(a,!1),e=i.updateQueue,t.updateQueue=e,Yi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)ro(l,e),l=l.sibling;return k(Ye,Ye.current&1|2),pe&&Jt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ft()>Xi&&(t.flags|=128,n=!0,xn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ai(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Yi(t,e),xn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!pe)return Oe(t),null}else 2*ft()-a.renderingStartTime>Xi&&l!==536870912&&(t.flags|=128,n=!0,xn(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ft(),e.sibling=null,l=Ye.current,k(Ye,n?l&1|2:l&1),pe&&Jt(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return pt(t),Ec(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&Yi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&Y($l),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Wt(Ge),Oe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Zy(e,t){switch(cc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wt(Ge),He(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Wn(t),null;case 31:if(t.memoizedState!==null){if(pt(t),t.alternate===null)throw Error(r(340));Kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Ye),null;case 4:return He(),null;case 10:return Wt(t.type),null;case 22:case 23:return pt(t),Ec(),e!==null&&Y($l),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wt(Ge),null;case 25:return null;default:return null}}function Hf(e,t){switch(cc(t),t.tag){case 3:Wt(Ge),He();break;case 26:case 27:case 5:Wn(t);break;case 4:He();break;case 31:t.memoizedState!==null&&pt(t);break;case 13:pt(t);break;case 19:Y(Ye);break;case 10:Wt(t.type);break;case 22:case 23:pt(t),Ec(),e!==null&&Y($l);break;case 24:Wt(Ge)}}function En(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,c=l.inst;a=i(),c.destroy=a}l=l.next}while(l!==n)}}catch(m){Te(t,t.return,m)}}function Tl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var c=a.inst,m=c.destroy;if(m!==void 0){c.destroy=void 0,n=t;var E=l,M=m;try{M()}catch(B){Te(n,E,B)}}}a=a.next}while(a!==i)}}catch(B){Te(t,t.return,B)}}function Yf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{zo(t,l)}catch(a){Te(e,e.return,a)}}}function qf(e,t,l){l.props=ea(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Te(e,t,a)}}function Cn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Te(e,t,n)}}function Gt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Te(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Te(e,t,n)}else l.current=null}function Gf(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Te(e,e.return,n)}}function es(e,t,l){try{var a=e.stateNode;hv(a,e.type,l,t),a[nt]=t}catch(n){Te(e,e.return,n)}}function Qf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&_l(e.type)||e.tag===4}function ts(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qf(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.tag===27&&_l(e.type)||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 ls(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Zt));else if(a!==4&&(a===27&&_l(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(ls(e,t,l),e=e.sibling;e!==null;)ls(e,t,l),e=e.sibling}function qi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&_l(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(qi(e,t,l),e=e.sibling;e!==null;)qi(e,t,l),e=e.sibling}function Vf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);et(t,a,l),t[We]=e,t[nt]=l}catch(i){Te(e,e.return,i)}}var tl=!1,Xe=!1,as=!1,Xf=typeof WeakSet=="function"?WeakSet:Set,Je=null;function Ky(e,t){if(e=e.containerInfo,Ts=cu,e=eo(e),Wu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,m=-1,E=-1,M=0,B=0,H=e,_=null;t:for(;;){for(var O;H!==l||n!==0&&H.nodeType!==3||(m=c+n),H!==i||a!==0&&H.nodeType!==3||(E=c+a),H.nodeType===3&&(c+=H.nodeValue.length),(O=H.firstChild)!==null;)_=H,H=O;for(;;){if(H===e)break t;if(_===l&&++M===n&&(m=c),_===i&&++B===a&&(E=c),(O=H.nextSibling)!==null)break;H=_,_=H.parentNode}H=O}l=m===-1||E===-1?null:{start:m,end:E}}else l=null}l=l||{start:0,end:0}}else l=null;for(js={focusedElem:e,selectionRange:l},cu=!1,Je=t;Je!==null;)if(t=Je,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Je=e;else for(;Je!==null;){switch(t=Je,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var W=ea(l.type,n);e=a.getSnapshotBeforeUpdate(W,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(ae){Te(l,l.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)zs(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Je=e;break}Je=t.return}}function Zf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:al(e,l),a&4&&En(5,l);break;case 1:if(al(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Te(l,l.return,c)}else{var n=ea(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Te(l,l.return,c)}}a&64&&Yf(l),a&512&&Cn(l,l.return);break;case 3:if(al(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{zo(e,t)}catch(c){Te(l,l.return,c)}}break;case 27:t===null&&a&4&&Vf(l);case 26:case 5:al(e,l),t===null&&a&4&&Gf(l),a&512&&Cn(l,l.return);break;case 12:al(e,l);break;case 31:al(e,l),a&4&&Jf(e,l);break;case 13:al(e,l),a&4&&$f(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=tv.bind(null,l),xv(e,l))));break;case 22:if(a=l.memoizedState!==null||tl,!a){t=t!==null&&t.memoizedState!==null||Xe,n=tl;var i=Xe;tl=a,(Xe=t)&&!i?nl(e,l,(l.subtreeFlags&8772)!==0):al(e,l),tl=n,Xe=i}break;case 30:break;default:al(e,l)}}function Kf(e){var t=e.alternate;t!==null&&(e.alternate=null,Kf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Du(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var De=null,ut=!1;function ll(e,t,l){for(l=l.child;l!==null;)kf(e,t,l),l=l.sibling}function kf(e,t,l){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Ka,l)}catch{}switch(l.tag){case 26:Xe||Gt(l,t),ll(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Xe||Gt(l,t);var a=De,n=ut;_l(l.type)&&(De=l.stateNode,ut=!1),ll(e,t,l),On(l.stateNode),De=a,ut=n;break;case 5:Xe||Gt(l,t);case 6:if(a=De,n=ut,De=null,ll(e,t,l),De=a,ut=n,De!==null)if(ut)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(l.stateNode)}catch(i){Te(l,t,i)}else try{De.removeChild(l.stateNode)}catch(i){Te(l,t,i)}break;case 18:De!==null&&(ut?(e=De,Yd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ga(e)):Yd(De,l.stateNode));break;case 4:a=De,n=ut,De=l.stateNode.containerInfo,ut=!0,ll(e,t,l),De=a,ut=n;break;case 0:case 11:case 14:case 15:Tl(2,l,t),Xe||Tl(4,l,t),ll(e,t,l);break;case 1:Xe||(Gt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&qf(l,t,a)),ll(e,t,l);break;case 21:ll(e,t,l);break;case 22:Xe=(a=Xe)||l.memoizedState!==null,ll(e,t,l),Xe=a;break;default:ll(e,t,l)}}function Jf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ga(e)}catch(l){Te(t,t.return,l)}}}function $f(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ga(e)}catch(l){Te(t,t.return,l)}}function ky(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Xf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Xf),t;default:throw Error(r(435,e.tag))}}function Gi(e,t){var l=ky(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=lv.bind(null,e,a);a.then(n,n)}})}function ct(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,c=t,m=c;e:for(;m!==null;){switch(m.tag){case 27:if(_l(m.type)){De=m.stateNode,ut=!1;break e}break;case 5:De=m.stateNode,ut=!1;break e;case 3:case 4:De=m.stateNode.containerInfo,ut=!0;break e}m=m.return}if(De===null)throw Error(r(160));kf(i,c,n),De=null,ut=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Wf(t,e),t=t.sibling}var wt=null;function Wf(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ct(t,e),st(e),a&4&&(Tl(3,e,e.return),En(3,e),Tl(5,e,e.return));break;case 1:ct(t,e),st(e),a&512&&(Xe||l===null||Gt(l,l.return)),a&64&&tl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=wt;if(ct(t,e),st(e),a&512&&(Xe||l===null||Gt(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[$a]||i[We]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),et(i,a,l),i[We]=e,ke(i),a=i;break e;case"link":var c=Wd("link","href",n).get(a+(l.href||""));if(c){for(var m=0;m<c.length;m++)if(i=c[m],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(m,1);break t}}i=n.createElement(a),et(i,a,l),n.head.appendChild(i);break;case"meta":if(c=Wd("meta","content",n).get(a+(l.content||""))){for(m=0;m<c.length;m++)if(i=c[m],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(m,1);break t}}i=n.createElement(a),et(i,a,l),n.head.appendChild(i);break;default:throw Error(r(468,a))}i[We]=e,ke(i),a=i}e.stateNode=a}else Fd(n,e.type,e.stateNode);else e.stateNode=$d(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?Fd(n,e.type,e.stateNode):$d(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&es(e,e.memoizedProps,l.memoizedProps)}break;case 27:ct(t,e),st(e),a&512&&(Xe||l===null||Gt(l,l.return)),l!==null&&a&4&&es(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ct(t,e),st(e),a&512&&(Xe||l===null||Gt(l,l.return)),e.flags&32){n=e.stateNode;try{oa(n,"")}catch(W){Te(e,e.return,W)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,es(e,n,l!==null?l.memoizedProps:n)),a&1024&&(as=!0);break;case 6:if(ct(t,e),st(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(W){Te(e,e.return,W)}}break;case 3:if(au=null,n=wt,wt=tu(t.containerInfo),ct(t,e),wt=n,st(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ga(t.containerInfo)}catch(W){Te(e,e.return,W)}as&&(as=!1,Ff(e));break;case 4:a=wt,wt=tu(e.stateNode.containerInfo),ct(t,e),st(e),wt=a;break;case 12:ct(t,e),st(e);break;case 31:ct(t,e),st(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gi(e,a)));break;case 13:ct(t,e),st(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Vi=ft()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gi(e,a)));break;case 22:n=e.memoizedState!==null;var E=l!==null&&l.memoizedState!==null,M=tl,B=Xe;if(tl=M||n,Xe=B||E,ct(t,e),Xe=B,tl=M,st(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||E||tl||Xe||ta(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){E=l=t;try{if(i=E.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{m=E.stateNode;var H=E.memoizedProps.style,_=H!=null&&H.hasOwnProperty("display")?H.display:null;m.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(W){Te(E,E.return,W)}}}else if(t.tag===6){if(l===null){E=t;try{E.stateNode.nodeValue=n?"":E.memoizedProps}catch(W){Te(E,E.return,W)}}}else if(t.tag===18){if(l===null){E=t;try{var O=E.stateNode;n?qd(O,!0):qd(E.stateNode,!1)}catch(W){Te(E,E.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Gi(e,l))));break;case 19:ct(t,e),st(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gi(e,a)));break;case 30:break;case 21:break;default:ct(t,e),st(e)}}function st(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Qf(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=ts(e);qi(e,i,n);break;case 5:var c=l.stateNode;l.flags&32&&(oa(c,""),l.flags&=-33);var m=ts(e);qi(e,m,c);break;case 3:case 4:var E=l.stateNode.containerInfo,M=ts(e);ls(e,M,E);break;default:throw Error(r(161))}}catch(B){Te(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ff(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ff(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function al(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Zf(e,t.alternate,t),t=t.sibling}function ta(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Tl(4,t,t.return),ta(t);break;case 1:Gt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&qf(t,t.return,l),ta(t);break;case 27:On(t.stateNode);case 26:case 5:Gt(t,t.return),ta(t);break;case 22:t.memoizedState===null&&ta(t);break;case 30:ta(t);break;default:ta(t)}e=e.sibling}}function nl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:nl(n,i,l),En(4,i);break;case 1:if(nl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(M){Te(a,a.return,M)}if(a=i,n=a.updateQueue,n!==null){var m=a.stateNode;try{var E=n.shared.hiddenCallbacks;if(E!==null)for(n.shared.hiddenCallbacks=null,n=0;n<E.length;n++)Ro(E[n],m)}catch(M){Te(a,a.return,M)}}l&&c&64&&Yf(i),Cn(i,i.return);break;case 27:Vf(i);case 26:case 5:nl(n,i,l),l&&a===null&&c&4&&Gf(i),Cn(i,i.return);break;case 12:nl(n,i,l);break;case 31:nl(n,i,l),l&&c&4&&Jf(n,i);break;case 13:nl(n,i,l),l&&c&4&&$f(n,i);break;case 22:i.memoizedState===null&&nl(n,i,l),Cn(i,i.return);break;case 30:break;default:nl(n,i,l)}t=t.sibling}}function ns(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&rn(l))}function is(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rn(e))}function Bt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)If(e,t,l,a),t=t.sibling}function If(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Bt(e,t,l,a),n&2048&&En(9,t);break;case 1:Bt(e,t,l,a);break;case 3:Bt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rn(e)));break;case 12:if(n&2048){Bt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,m=i.onPostCommit;typeof m=="function"&&m(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Te(t,t.return,E)}}else Bt(e,t,l,a);break;case 31:Bt(e,t,l,a);break;case 13:Bt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Bt(e,t,l,a):Tn(e,t):i._visibility&2?Bt(e,t,l,a):(i._visibility|=2,Ma(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&ns(c,t);break;case 24:Bt(e,t,l,a),n&2048&&is(t.alternate,t);break;default:Bt(e,t,l,a)}}function Ma(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,m=l,E=a,M=c.flags;switch(c.tag){case 0:case 11:case 15:Ma(i,c,m,E,n),En(8,c);break;case 23:break;case 22:var B=c.stateNode;c.memoizedState!==null?B._visibility&2?Ma(i,c,m,E,n):Tn(i,c):(B._visibility|=2,Ma(i,c,m,E,n)),n&&M&2048&&ns(c.alternate,c);break;case 24:Ma(i,c,m,E,n),n&&M&2048&&is(c.alternate,c);break;default:Ma(i,c,m,E,n)}t=t.sibling}}function Tn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Tn(l,a),n&2048&&ns(a.alternate,a);break;case 24:Tn(l,a),n&2048&&is(a.alternate,a);break;default:Tn(l,a)}t=t.sibling}}var jn=8192;function _a(e,t,l){if(e.subtreeFlags&jn)for(e=e.child;e!==null;)Pf(e,t,l),e=e.sibling}function Pf(e,t,l){switch(e.tag){case 26:_a(e,t,l),e.flags&jn&&e.memoizedState!==null&&Dv(l,wt,e.memoizedState,e.memoizedProps);break;case 5:_a(e,t,l);break;case 3:case 4:var a=wt;wt=tu(e.stateNode.containerInfo),_a(e,t,l),wt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=jn,jn=16777216,_a(e,t,l),jn=a):_a(e,t,l));break;default:_a(e,t,l)}}function ed(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function An(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Je=a,ld(a,e)}ed(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)td(e),e=e.sibling}function td(e){switch(e.tag){case 0:case 11:case 15:An(e),e.flags&2048&&Tl(9,e,e.return);break;case 3:An(e);break;case 12:An(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Qi(e)):An(e);break;default:An(e)}}function Qi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Je=a,ld(a,e)}ed(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tl(8,t,t.return),Qi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Qi(t));break;default:Qi(t)}e=e.sibling}}function ld(e,t){for(;Je!==null;){var l=Je;switch(l.tag){case 0:case 11:case 15:Tl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:rn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Je=a;else e:for(l=e;Je!==null;){a=Je;var n=a.sibling,i=a.return;if(Kf(a),a===l){Je=null;break e}if(n!==null){n.return=i,Je=n;break e}Je=i}}}var Jy={getCacheForType:function(e){var t=Ie(Ge),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ie(Ge).controller.signal}},$y=typeof WeakMap=="function"?WeakMap:Map,be=0,Ne=null,oe=null,me=0,Ce=0,gt=null,jl=!1,Oa=!1,us=!1,il=0,Be=0,Al=0,la=0,cs=0,St=0,Da=0,Rn=null,rt=null,ss=!1,Vi=0,ad=0,Xi=1/0,Zi=null,Rl=null,Ze=0,zl=null,Ua=null,ul=0,rs=0,os=null,nd=null,zn=0,fs=null;function bt(){return(be&2)!==0&&me!==0?me&-me:D.T!==null?ps():gr()}function id(){if(St===0)if((me&536870912)===0||pe){var e=Pn;Pn<<=1,(Pn&3932160)===0&&(Pn=262144),St=e}else St=536870912;return e=vt.current,e!==null&&(e.flags|=32),St}function ot(e,t,l){(e===Ne&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(wa(e,0),Nl(e,me,St,!1)),Ja(e,l),((be&2)===0||e!==Ne)&&(e===Ne&&((be&2)===0&&(la|=l),Be===4&&Nl(e,me,St,!1)),Qt(e))}function ud(e,t,l){if((be&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ka(e,t),n=a?Iy(e,t):hs(e,t,!0),i=a;do{if(n===0){Oa&&!a&&Nl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Wy(l)){n=hs(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var m=e;n=Rn;var E=m.current.memoizedState.isDehydrated;if(E&&(wa(m,c).flags|=256),c=hs(m,c,!1),c!==2){if(us&&!E){m.errorRecoveryDisabledLanes|=i,la|=i,n=4;break e}i=rt,rt=n,i!==null&&(rt===null?rt=i:rt.push.apply(rt,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){wa(e,0),Nl(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Nl(a,t,St,!jl);break e;case 2:rt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Vi+300-ft(),10<n)){if(Nl(a,t,St,!jl),ti(a,0,!0)!==0)break e;ul=t,a.timeoutHandle=Ld(cd.bind(null,a,l,rt,Zi,ss,t,St,la,Da,jl,i,"Throttled",-0,0),n);break e}cd(a,l,rt,Zi,ss,t,St,la,Da,jl,i,null,-0,0)}}break}while(!0);Qt(e)}function cd(e,t,l,a,n,i,c,m,E,M,B,H,_,O){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},Pf(t,i,H);var W=(i&62914560)===i?Vi-ft():(i&4194048)===i?ad-ft():0;if(W=Uv(H,W),W!==null){ul=i,e.cancelPendingCommit=W(yd.bind(null,e,t,i,l,a,n,c,m,E,B,H,null,_,O)),Nl(e,i,c,!M);return}}yd(e,t,i,l,a,n,c,m,E)}function Wy(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!mt(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Nl(e,t,l,a){t&=~cs,t&=~la,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-ht(n),c=1<<i;a[i]=-1,n&=~c}l!==0&&yr(e,l,t)}function Ki(){return(be&6)===0?(Nn(0),!1):!0}function ds(){if(oe!==null){if(Ce===0)var e=oe.return;else e=oe,$t=kl=null,zc(e),ja=null,fn=0,e=oe;for(;e!==null;)Hf(e.alternate,e),e=e.return;oe=null}}function wa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,vv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ul=0,ds(),Ne=e,oe=l=kt(e.current,null),me=t,Ce=0,gt=null,jl=!1,Oa=ka(e,t),us=!1,Da=St=cs=la=Al=Be=0,rt=Rn=null,ss=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ht(a),i=1<<n;t|=e[n],a&=~i}return il=t,hi(),l}function sd(e,t){ue=null,D.H=Sn,t===Ta||t===xi?(t=Co(),Ce=3):t===vc?(t=Co(),Ce=4):Ce=t===Xc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gt=t,oe===null&&(Be=1,wi(e,At(t,e.current)))}function rd(){var e=vt.current;return e===null?!0:(me&4194048)===me?Mt===null:(me&62914560)===me||(me&536870912)!==0?e===Mt:!1}function od(){var e=D.H;return D.H=Sn,e===null?Sn:e}function fd(){var e=D.A;return D.A=Jy,e}function ki(){Be=4,jl||(me&4194048)!==me&&vt.current!==null||(Oa=!0),(Al&134217727)===0&&(la&134217727)===0||Ne===null||Nl(Ne,me,St,!1)}function hs(e,t,l){var a=be;be|=2;var n=od(),i=fd();(Ne!==e||me!==t)&&(Zi=null,wa(e,t)),t=!1;var c=Be;e:do try{if(Ce!==0&&oe!==null){var m=oe,E=gt;switch(Ce){case 8:ds(),c=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var M=Ce;if(Ce=0,gt=null,Ba(e,m,E,M),l&&Oa){c=0;break e}break;default:M=Ce,Ce=0,gt=null,Ba(e,m,E,M)}}Fy(),c=Be;break}catch(B){sd(e,B)}while(!0);return t&&e.shellSuspendCounter++,$t=kl=null,be=a,D.H=n,D.A=i,oe===null&&(Ne=null,me=0,hi()),c}function Fy(){for(;oe!==null;)dd(oe)}function Iy(e,t){var l=be;be|=2;var a=od(),n=fd();Ne!==e||me!==t?(Zi=null,Xi=ft()+500,wa(e,t)):Oa=ka(e,t);e:do try{if(Ce!==0&&oe!==null){t=oe;var i=gt;t:switch(Ce){case 1:Ce=0,gt=null,Ba(e,t,i,1);break;case 2:case 9:if(xo(i)){Ce=0,gt=null,hd(t);break}t=function(){Ce!==2&&Ce!==9||Ne!==e||(Ce=7),Qt(e)},i.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:xo(i)?(Ce=0,gt=null,hd(t)):(Ce=0,gt=null,Ba(e,t,i,7));break;case 5:var c=null;switch(oe.tag){case 26:c=oe.memoizedState;case 5:case 27:var m=oe;if(c?Id(c):m.stateNode.complete){Ce=0,gt=null;var E=m.sibling;if(E!==null)oe=E;else{var M=m.return;M!==null?(oe=M,Ji(M)):oe=null}break t}}Ce=0,gt=null,Ba(e,t,i,5);break;case 6:Ce=0,gt=null,Ba(e,t,i,6);break;case 8:ds(),Be=6;break e;default:throw Error(r(462))}}Py();break}catch(B){sd(e,B)}while(!0);return $t=kl=null,D.H=a,D.A=n,be=l,oe!==null?0:(Ne=null,me=0,hi(),Be)}function Py(){for(;oe!==null&&!Em();)dd(oe)}function dd(e){var t=Bf(e.alternate,e,il);e.memoizedProps=e.pendingProps,t===null?Ji(e):oe=t}function hd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Mf(l,t,t.pendingProps,t.type,void 0,me);break;case 11:t=Mf(l,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:zc(t);default:Hf(l,t),t=oe=ro(t,il),t=Bf(l,t,il)}e.memoizedProps=e.pendingProps,t===null?Ji(e):oe=t}function Ba(e,t,l,a){$t=kl=null,zc(t),ja=null,fn=0;var n=t.return;try{if(Gy(e,n,t,l,me)){Be=1,wi(e,At(l,e.current)),oe=null;return}}catch(i){if(n!==null)throw oe=n,i;Be=1,wi(e,At(l,e.current)),oe=null;return}t.flags&32768?(pe||a===1?e=!0:Oa||(me&536870912)!==0?e=!1:(jl=e=!0,(a===2||a===9||a===3||a===6)&&(a=vt.current,a!==null&&a.tag===13&&(a.flags|=16384))),md(t,e)):Ji(t)}function Ji(e){var t=e;do{if((t.flags&32768)!==0){md(t,jl);return}e=t.return;var l=Xy(t.alternate,t,il);if(l!==null){oe=l;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);Be===0&&(Be=5)}function md(e,t){do{var l=Zy(e.alternate,e);if(l!==null){l.flags&=32767,oe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){oe=e;return}oe=e=l}while(e!==null);Be=6,oe=null}function yd(e,t,l,a,n,i,c,m,E){e.cancelPendingCommit=null;do $i();while(Ze!==0);if((be&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=tc,Om(e,l,i,c,m,E),e===Ne&&(oe=Ne=null,me=0),Ua=t,zl=e,ul=l,rs=i,os=n,nd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,av(Fn,function(){return bd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=Z.p,Z.p=2,c=be,be|=4;try{Ky(e,t,l)}finally{be=c,Z.p=n,D.T=a}}Ze=1,vd(),pd(),gd()}}function vd(){if(Ze===1){Ze=0;var e=zl,t=Ua,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=Z.p;Z.p=2;var n=be;be|=4;try{Wf(t,e);var i=js,c=eo(e.containerInfo),m=i.focusedElem,E=i.selectionRange;if(c!==m&&m&&m.ownerDocument&&Pr(m.ownerDocument.documentElement,m)){if(E!==null&&Wu(m)){var M=E.start,B=E.end;if(B===void 0&&(B=M),"selectionStart"in m)m.selectionStart=M,m.selectionEnd=Math.min(B,m.value.length);else{var H=m.ownerDocument||document,_=H&&H.defaultView||window;if(_.getSelection){var O=_.getSelection(),W=m.textContent.length,ae=Math.min(E.start,W),Re=E.end===void 0?ae:Math.min(E.end,W);!O.extend&&ae>Re&&(c=Re,Re=ae,ae=c);var A=Ir(m,ae),T=Ir(m,Re);if(A&&T&&(O.rangeCount!==1||O.anchorNode!==A.node||O.anchorOffset!==A.offset||O.focusNode!==T.node||O.focusOffset!==T.offset)){var N=H.createRange();N.setStart(A.node,A.offset),O.removeAllRanges(),ae>Re?(O.addRange(N),O.extend(T.node,T.offset)):(N.setEnd(T.node,T.offset),O.addRange(N))}}}}for(H=[],O=m;O=O.parentNode;)O.nodeType===1&&H.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<H.length;m++){var L=H[m];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}cu=!!Ts,js=Ts=null}finally{be=n,Z.p=a,D.T=l}}e.current=t,Ze=2}}function pd(){if(Ze===2){Ze=0;var e=zl,t=Ua,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=Z.p;Z.p=2;var n=be;be|=4;try{Zf(e,t.alternate,t)}finally{be=n,Z.p=a,D.T=l}}Ze=3}}function gd(){if(Ze===4||Ze===3){Ze=0,Cm();var e=zl,t=Ua,l=ul,a=nd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,Ua=zl=null,Sd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Rl=null),_u(l),t=t.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Ka,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=Z.p,Z.p=2,D.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var m=a[c];i(m.value,{componentStack:m.stack})}}finally{D.T=t,Z.p=n}}(ul&3)!==0&&$i(),Qt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===fs?zn++:(zn=0,fs=e):zn=0,Nn(0)}}function Sd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,rn(t)))}function $i(){return vd(),pd(),gd(),bd()}function bd(){if(Ze!==5)return!1;var e=zl,t=rs;rs=0;var l=_u(ul),a=D.T,n=Z.p;try{Z.p=32>l?32:l,D.T=null,l=os,os=null;var i=zl,c=ul;if(Ze=0,Ua=zl=null,ul=0,(be&6)!==0)throw Error(r(331));var m=be;if(be|=4,td(i.current),If(i,i.current,c,l),be=m,Nn(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Ka,i)}catch{}return!0}finally{Z.p=n,D.T=a,Sd(e,t)}}function xd(e,t,l){t=At(l,t),t=Vc(e.stateNode,t,2),e=xl(e,t,2),e!==null&&(Ja(e,2),Qt(e))}function Te(e,t,l){if(e.tag===3)xd(e,e,l);else for(;t!==null;){if(t.tag===3){xd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Rl===null||!Rl.has(a))){e=At(l,e),l=Ef(2),a=xl(t,l,2),a!==null&&(Cf(l,a,t,e),Ja(a,2),Qt(a));break}}t=t.return}}function ms(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new $y;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(us=!0,n.add(l),e=ev.bind(null,e,t,l),t.then(e,e))}function ev(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ne===e&&(me&l)===l&&(Be===4||Be===3&&(me&62914560)===me&&300>ft()-Vi?(be&2)===0&&wa(e,0):cs|=l,Da===me&&(Da=0)),Qt(e)}function Ed(e,t){t===0&&(t=mr()),e=Xl(e,t),e!==null&&(Ja(e,t),Qt(e))}function tv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ed(e,l)}function lv(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Ed(e,l)}function av(e,t){return Ru(e,t)}var Wi=null,La=null,ys=!1,Fi=!1,vs=!1,Ml=0;function Qt(e){e!==La&&e.next===null&&(La===null?Wi=La=e:La=La.next=e),Fi=!0,ys||(ys=!0,iv())}function Nn(e,t){if(!vs&&Fi){vs=!0;do for(var l=!1,a=Wi;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,m=a.pingedLanes;i=(1<<31-ht(42|e)+1)-1,i&=n&~(c&~m),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Ad(a,i))}else i=me,i=ti(a,a===Ne?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||ka(a,i)||(l=!0,Ad(a,i));a=a.next}while(l);vs=!1}}function nv(){Cd()}function Cd(){Fi=ys=!1;var e=0;Ml!==0&&yv()&&(e=Ml);for(var t=ft(),l=null,a=Wi;a!==null;){var n=a.next,i=Td(a,t);i===0?(a.next=null,l===null?Wi=n:l.next=n,n===null&&(La=l)):(l=a,(e!==0||(i&3)!==0)&&(Fi=!0)),a=n}Ze!==0&&Ze!==5||Nn(e),Ml!==0&&(Ml=0)}function Td(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-ht(i),m=1<<c,E=n[c];E===-1?((m&l)===0||(m&a)!==0)&&(n[c]=_m(m,t)):E<=t&&(e.expiredLanes|=m),i&=~m}if(t=Ne,l=me,l=ti(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&zu(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ka(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&zu(a),_u(l)){case 2:case 8:l=dr;break;case 32:l=Fn;break;case 268435456:l=hr;break;default:l=Fn}return a=jd.bind(null,e),l=Ru(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&zu(a),e.callbackPriority=2,e.callbackNode=null,2}function jd(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if($i()&&e.callbackNode!==l)return null;var a=me;return a=ti(e,e===Ne?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(ud(e,a,t),Td(e,ft()),e.callbackNode!=null&&e.callbackNode===l?jd.bind(null,e):null)}function Ad(e,t){if($i())return null;ud(e,t,!0)}function iv(){pv(function(){(be&6)!==0?Ru(fr,nv):Cd()})}function ps(){if(Ml===0){var e=Ea;e===0&&(e=In,In<<=1,(In&261888)===0&&(In=256)),Ml=e}return Ml}function Rd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ii(""+e)}function zd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function uv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Rd((n[nt]||null).action),c=a.submitter;c&&(t=(t=c[nt]||null)?Rd(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var m=new ri("action","action",null,a,n);e.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ml!==0){var E=c?zd(n,c):new FormData(n);Lc(l,{pending:!0,data:E,method:n.method,action:i},null,E)}}else typeof i=="function"&&(m.preventDefault(),E=c?zd(n,c):new FormData(n),Lc(l,{pending:!0,data:E,method:n.method,action:i},i,E))},currentTarget:n}]})}}for(var gs=0;gs<ec.length;gs++){var Ss=ec[gs],cv=Ss.toLowerCase(),sv=Ss[0].toUpperCase()+Ss.slice(1);Ut(cv,"on"+sv)}Ut(ao,"onAnimationEnd"),Ut(no,"onAnimationIteration"),Ut(io,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(Ty,"onTransitionRun"),Ut(jy,"onTransitionStart"),Ut(Ay,"onTransitionCancel"),Ut(uo,"onTransitionEnd"),sa("onMouseEnter",["mouseout","mouseover"]),sa("onMouseLeave",["mouseout","mouseover"]),sa("onPointerEnter",["pointerout","pointerover"]),sa("onPointerLeave",["pointerout","pointerover"]),ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mn="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(" "),rv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mn));function Nd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var c=a.length-1;0<=c;c--){var m=a[c],E=m.instance,M=m.currentTarget;if(m=m.listener,E!==i&&n.isPropagationStopped())break e;i=m,n.currentTarget=M;try{i(n)}catch(B){di(B)}n.currentTarget=null,i=E}else for(c=0;c<a.length;c++){if(m=a[c],E=m.instance,M=m.currentTarget,m=m.listener,E!==i&&n.isPropagationStopped())break e;i=m,n.currentTarget=M;try{i(n)}catch(B){di(B)}n.currentTarget=null,i=E}}}}function fe(e,t){var l=t[Ou];l===void 0&&(l=t[Ou]=new Set);var a=e+"__bubble";l.has(a)||(Md(t,e,2,!1),l.add(a))}function bs(e,t,l){var a=0;t&&(a|=4),Md(l,e,a,t)}var Ii="_reactListening"+Math.random().toString(36).slice(2);function xs(e){if(!e[Ii]){e[Ii]=!0,xr.forEach(function(l){l!=="selectionchange"&&(rv.has(l)||bs(l,!1,e),bs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ii]||(t[Ii]=!0,bs("selectionchange",!1,t))}}function Md(e,t,l,a){switch(ih(t)){case 2:var n=Lv;break;case 8:n=Hv;break;default:n=Bs}l=n.bind(null,t,l,e),n=void 0,!Gu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Es(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var m=a.stateNode.containerInfo;if(m===n)break;if(c===4)for(c=a.return;c!==null;){var E=c.tag;if((E===3||E===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;m!==null;){if(c=ia(m),c===null)return;if(E=c.tag,E===5||E===6||E===26||E===27){a=i=c;continue e}m=m.parentNode}}a=a.return}Dr(function(){var M=i,B=Yu(l),H=[];e:{var _=co.get(e);if(_!==void 0){var O=ri,W=e;switch(e){case"keypress":if(ci(l)===0)break e;case"keydown":case"keyup":O=ly;break;case"focusin":W="focus",O=Zu;break;case"focusout":W="blur",O=Zu;break;case"beforeblur":case"afterblur":O=Zu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Br;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Xm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=iy;break;case ao:case no:case io:O=km;break;case uo:O=cy;break;case"scroll":case"scrollend":O=Qm;break;case"wheel":O=ry;break;case"copy":case"cut":case"paste":O=$m;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Hr;break;case"toggle":case"beforetoggle":O=fy}var ae=(t&4)!==0,Re=!ae&&(e==="scroll"||e==="scrollend"),A=ae?_!==null?_+"Capture":null:_;ae=[];for(var T=M,N;T!==null;){var L=T;if(N=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||N===null||A===null||(L=Fa(T,A),L!=null&&ae.push(_n(T,L,N))),Re)break;T=T.return}0<ae.length&&(_=new O(_,W,null,l,B),H.push({event:_,listeners:ae}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",_&&l!==Hu&&(W=l.relatedTarget||l.fromElement)&&(ia(W)||W[na]))break e;if((O||_)&&(_=B.window===B?B:(_=B.ownerDocument)?_.defaultView||_.parentWindow:window,O?(W=l.relatedTarget||l.toElement,O=M,W=W?ia(W):null,W!==null&&(Re=p(W),ae=W.tag,W!==Re||ae!==5&&ae!==27&&ae!==6)&&(W=null)):(O=null,W=M),O!==W)){if(ae=Br,L="onMouseLeave",A="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Hr,L="onPointerLeave",A="onPointerEnter",T="pointer"),Re=O==null?_:Wa(O),N=W==null?_:Wa(W),_=new ae(L,T+"leave",O,l,B),_.target=Re,_.relatedTarget=N,L=null,ia(B)===M&&(ae=new ae(A,T+"enter",W,l,B),ae.target=N,ae.relatedTarget=Re,L=ae),Re=L,O&&W)t:{for(ae=ov,A=O,T=W,N=0,L=A;L;L=ae(L))N++;L=0;for(var te=T;te;te=ae(te))L++;for(;0<N-L;)A=ae(A),N--;for(;0<L-N;)T=ae(T),L--;for(;N--;){if(A===T||T!==null&&A===T.alternate){ae=A;break t}A=ae(A),T=ae(T)}ae=null}else ae=null;O!==null&&_d(H,_,O,ae,!1),W!==null&&Re!==null&&_d(H,Re,W,ae,!0)}}e:{if(_=M?Wa(M):window,O=_.nodeName&&_.nodeName.toLowerCase(),O==="select"||O==="input"&&_.type==="file")var ge=Kr;else if(Xr(_))if(kr)ge=xy;else{ge=Sy;var P=gy}else O=_.nodeName,!O||O.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?M&&Lu(M.elementType)&&(ge=Kr):ge=by;if(ge&&(ge=ge(e,M))){Zr(H,ge,l,B);break e}P&&P(e,_,M),e==="focusout"&&M&&_.type==="number"&&M.memoizedProps.value!=null&&Bu(_,"number",_.value)}switch(P=M?Wa(M):window,e){case"focusin":(Xr(P)||P.contentEditable==="true")&&(ma=P,Fu=M,un=null);break;case"focusout":un=Fu=ma=null;break;case"mousedown":Iu=!0;break;case"contextmenu":case"mouseup":case"dragend":Iu=!1,to(H,l,B);break;case"selectionchange":if(Cy)break;case"keydown":case"keyup":to(H,l,B)}var ce;if(ku)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else ha?Qr(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(Yr&&l.locale!=="ko"&&(ha||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&ha&&(ce=Ur()):(ml=B,Qu="value"in ml?ml.value:ml.textContent,ha=!0)),P=Pi(M,ye),0<P.length&&(ye=new Lr(ye,e,null,l,B),H.push({event:ye,listeners:P}),ce?ye.data=ce:(ce=Vr(l),ce!==null&&(ye.data=ce)))),(ce=hy?my(e,l):yy(e,l))&&(ye=Pi(M,"onBeforeInput"),0<ye.length&&(P=new Lr("onBeforeInput","beforeinput",null,l,B),H.push({event:P,listeners:ye}),P.data=ce)),uv(H,e,M,l,B)}Nd(H,t)})}function _n(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Pi(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Fa(e,l),n!=null&&a.unshift(_n(e,n,i)),n=Fa(e,t),n!=null&&a.push(_n(e,n,i))),e.tag===3)return a;e=e.return}return[]}function ov(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _d(e,t,l,a,n){for(var i=t._reactName,c=[];l!==null&&l!==a;){var m=l,E=m.alternate,M=m.stateNode;if(m=m.tag,E!==null&&E===a)break;m!==5&&m!==26&&m!==27||M===null||(E=M,n?(M=Fa(l,i),M!=null&&c.unshift(_n(l,M,E))):n||(M=Fa(l,i),M!=null&&c.push(_n(l,M,E)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var fv=/\r\n?/g,dv=/\u0000|\uFFFD/g;function Od(e){return(typeof e=="string"?e:""+e).replace(fv,`
|
|
9
|
+
`).replace(dv,"")}function Dd(e,t){return t=Od(t),Od(e)===t}function Ae(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||oa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&oa(e,""+a);break;case"className":ai(e,"class",a);break;case"tabIndex":ai(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ai(e,l,a);break;case"style":_r(e,a,i);break;case"data":if(t!=="object"){ai(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ii(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 i=="function"&&(l==="formAction"?(t!=="input"&&Ae(e,t,"name",n.name,n,null),Ae(e,t,"formEncType",n.formEncType,n,null),Ae(e,t,"formMethod",n.formMethod,n,null),Ae(e,t,"formTarget",n.formTarget,n,null)):(Ae(e,t,"encType",n.encType,n,null),Ae(e,t,"method",n.method,n,null),Ae(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ii(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=ii(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":fe("beforetoggle",e),fe("toggle",e),li(e,"popover",a);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":li(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=qm.get(l)||l,li(e,l,a))}}function Cs(e,t,l,a,n,i){switch(l){case"style":_r(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?oa(e,a):(typeof a=="number"||typeof a=="bigint")&&oa(e,""+a);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Er.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[nt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):li(e,l,a)}}}function et(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fe("error",e),fe("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ae(e,t,i,c,l,null)}}n&&Ae(e,t,"srcSet",l.srcSet,l,null),a&&Ae(e,t,"src",l.src,l,null);return;case"input":fe("invalid",e);var m=i=c=n=null,E=null,M=null;for(a in l)if(l.hasOwnProperty(a)){var B=l[a];if(B!=null)switch(a){case"name":n=B;break;case"type":c=B;break;case"checked":E=B;break;case"defaultChecked":M=B;break;case"value":i=B;break;case"defaultValue":m=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,t));break;default:Ae(e,t,a,B,l,null)}}Rr(e,i,m,E,M,c,n,!1);return;case"select":fe("invalid",e),a=c=i=null;for(n in l)if(l.hasOwnProperty(n)&&(m=l[n],m!=null))switch(n){case"value":i=m;break;case"defaultValue":c=m;break;case"multiple":a=m;default:Ae(e,t,n,m,l,null)}t=i,l=c,e.multiple=!!a,t!=null?ra(e,!!a,t,!1):l!=null&&ra(e,!!a,l,!0);return;case"textarea":fe("invalid",e),i=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(m=l[c],m!=null))switch(c){case"value":a=m;break;case"defaultValue":n=m;break;case"children":i=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:Ae(e,t,c,m,l,null)}Nr(e,a,n,i);return;case"option":for(E in l)l.hasOwnProperty(E)&&(a=l[E],a!=null)&&(E==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Ae(e,t,E,a,l,null));return;case"dialog":fe("beforetoggle",e),fe("toggle",e),fe("cancel",e),fe("close",e);break;case"iframe":case"object":fe("load",e);break;case"video":case"audio":for(a=0;a<Mn.length;a++)fe(Mn[a],e);break;case"image":fe("error",e),fe("load",e);break;case"details":fe("toggle",e);break;case"embed":case"source":case"link":fe("error",e),fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in l)if(l.hasOwnProperty(M)&&(a=l[M],a!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ae(e,t,M,a,l,null)}return;default:if(Lu(t)){for(B in l)l.hasOwnProperty(B)&&(a=l[B],a!==void 0&&Cs(e,t,B,a,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!=null&&Ae(e,t,m,a,l,null))}function hv(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,c=null,m=null,E=null,M=null,B=null;for(O in l){var H=l[O];if(l.hasOwnProperty(O)&&H!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":E=H;default:a.hasOwnProperty(O)||Ae(e,t,O,null,a,H)}}for(var _ in a){var O=a[_];if(H=l[_],a.hasOwnProperty(_)&&(O!=null||H!=null))switch(_){case"type":i=O;break;case"name":n=O;break;case"checked":M=O;break;case"defaultChecked":B=O;break;case"value":c=O;break;case"defaultValue":m=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:O!==H&&Ae(e,t,_,O,a,H)}}wu(e,c,m,E,M,B,i,n);return;case"select":O=c=m=_=null;for(i in l)if(E=l[i],l.hasOwnProperty(i)&&E!=null)switch(i){case"value":break;case"multiple":O=E;default:a.hasOwnProperty(i)||Ae(e,t,i,null,a,E)}for(n in a)if(i=a[n],E=l[n],a.hasOwnProperty(n)&&(i!=null||E!=null))switch(n){case"value":_=i;break;case"defaultValue":m=i;break;case"multiple":c=i;default:i!==E&&Ae(e,t,n,i,a,E)}t=m,l=c,a=O,_!=null?ra(e,!!l,_,!1):!!a!=!!l&&(t!=null?ra(e,!!l,t,!0):ra(e,!!l,l?[]:"",!1));return;case"textarea":O=_=null;for(m in l)if(n=l[m],l.hasOwnProperty(m)&&n!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ae(e,t,m,null,a,n)}for(c in a)if(n=a[c],i=l[c],a.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":_=n;break;case"defaultValue":O=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==i&&Ae(e,t,c,n,a,i)}zr(e,_,O);return;case"option":for(var W in l)_=l[W],l.hasOwnProperty(W)&&_!=null&&!a.hasOwnProperty(W)&&(W==="selected"?e.selected=!1:Ae(e,t,W,null,a,_));for(E in a)_=a[E],O=l[E],a.hasOwnProperty(E)&&_!==O&&(_!=null||O!=null)&&(E==="selected"?e.selected=_&&typeof _!="function"&&typeof _!="symbol":Ae(e,t,E,_,a,O));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 ae in l)_=l[ae],l.hasOwnProperty(ae)&&_!=null&&!a.hasOwnProperty(ae)&&Ae(e,t,ae,null,a,_);for(M in a)if(_=a[M],O=l[M],a.hasOwnProperty(M)&&_!==O&&(_!=null||O!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:Ae(e,t,M,_,a,O)}return;default:if(Lu(t)){for(var Re in l)_=l[Re],l.hasOwnProperty(Re)&&_!==void 0&&!a.hasOwnProperty(Re)&&Cs(e,t,Re,void 0,a,_);for(B in a)_=a[B],O=l[B],!a.hasOwnProperty(B)||_===O||_===void 0&&O===void 0||Cs(e,t,B,_,a,O);return}}for(var A in l)_=l[A],l.hasOwnProperty(A)&&_!=null&&!a.hasOwnProperty(A)&&Ae(e,t,A,null,a,_);for(H in a)_=a[H],O=l[H],!a.hasOwnProperty(H)||_===O||_==null&&O==null||Ae(e,t,H,_,a,O)}function Ud(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,c=n.initiatorType,m=n.duration;if(i&&m&&Ud(c)){for(c=0,m=n.responseEnd,a+=1;a<l.length;a++){var E=l[a],M=E.startTime;if(M>m)break;var B=E.transferSize,H=E.initiatorType;B&&Ud(H)&&(E=E.responseEnd,c+=B*(E<m?1:(m-M)/(E-M)))}if(--a,t+=8*(i+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ts=null,js=null;function eu(e){return e.nodeType===9?e:e.ownerDocument}function wd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Bd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function As(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Rs=null;function yv(){var e=window.event;return e&&e.type==="popstate"?e===Rs?!1:(Rs=e,!0):(Rs=null,!1)}var Ld=typeof setTimeout=="function"?setTimeout:void 0,vv=typeof clearTimeout=="function"?clearTimeout:void 0,Hd=typeof Promise=="function"?Promise:void 0,pv=typeof queueMicrotask=="function"?queueMicrotask:typeof Hd<"u"?function(e){return Hd.resolve(null).then(e).catch(gv)}:Ld;function gv(e){setTimeout(function(){throw e})}function _l(e){return e==="head"}function Yd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Ga(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")On(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,On(l);for(var i=l.firstChild;i;){var c=i.nextSibling,m=i.nodeName;i[$a]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&On(e.ownerDocument.body);l=n}while(l);Ga(t)}function qd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function zs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":zs(l),Du(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Sv(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[$a])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=_t(e.nextSibling),e===null)break}return null}function bv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=_t(e.nextSibling),e===null))return null;return e}function Gd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_t(e.nextSibling),e===null))return null;return e}function Ns(e){return e.data==="$?"||e.data==="$~"}function Ms(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function xv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function _t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var _s=null;function Qd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return _t(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Vd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Xd(e,t,l){switch(t=eu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function On(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Du(e)}var Ot=new Map,Zd=new Set;function tu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cl=Z.d;Z.d={f:Ev,r:Cv,D:Tv,C:jv,L:Av,m:Rv,X:Nv,S:zv,M:Mv};function Ev(){var e=cl.f(),t=Ki();return e||t}function Cv(e){var t=ua(e);t!==null&&t.tag===5&&t.type==="form"?sf(t):cl.r(e)}var Ha=typeof document>"u"?null:document;function Kd(e,t,l){var a=Ha;if(a&&typeof t=="string"&&t){var n=Tt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Zd.has(n)||(Zd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),et(t,"link",e),ke(t),a.head.appendChild(t)))}}function Tv(e){cl.D(e),Kd("dns-prefetch",e,null)}function jv(e,t){cl.C(e,t),Kd("preconnect",e,t)}function Av(e,t,l){cl.L(e,t,l);var a=Ha;if(a&&e&&t){var n='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Tt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Tt(l.imageSizes)+'"]')):n+='[href="'+Tt(e)+'"]';var i=n;switch(t){case"style":i=Ya(e);break;case"script":i=qa(e)}Ot.has(i)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ot.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Dn(i))||t==="script"&&a.querySelector(Un(i))||(t=a.createElement("link"),et(t,"link",e),ke(t),a.head.appendChild(t)))}}function Rv(e,t){cl.m(e,t);var l=Ha;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Tt(a)+'"][href="'+Tt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=qa(e)}if(!Ot.has(i)&&(e=g({rel:"modulepreload",href:e},t),Ot.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Un(i)))return}a=l.createElement("link"),et(a,"link",e),ke(a),l.head.appendChild(a)}}}function zv(e,t,l){cl.S(e,t,l);var a=Ha;if(a&&e){var n=ca(a).hoistableStyles,i=Ya(e);t=t||"default";var c=n.get(i);if(!c){var m={loading:0,preload:null};if(c=a.querySelector(Dn(i)))m.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ot.get(i))&&Os(e,l);var E=c=a.createElement("link");ke(E),et(E,"link",e),E._p=new Promise(function(M,B){E.onload=M,E.onerror=B}),E.addEventListener("load",function(){m.loading|=1}),E.addEventListener("error",function(){m.loading|=2}),m.loading|=4,lu(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:m},n.set(i,c)}}}function Nv(e,t){cl.X(e,t);var l=Ha;if(l&&e){var a=ca(l).hoistableScripts,n=qa(e),i=a.get(n);i||(i=l.querySelector(Un(n)),i||(e=g({src:e,async:!0},t),(t=Ot.get(n))&&Ds(e,t),i=l.createElement("script"),ke(i),et(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Mv(e,t){cl.M(e,t);var l=Ha;if(l&&e){var a=ca(l).hoistableScripts,n=qa(e),i=a.get(n);i||(i=l.querySelector(Un(n)),i||(e=g({src:e,async:!0,type:"module"},t),(t=Ot.get(n))&&Ds(e,t),i=l.createElement("script"),ke(i),et(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function kd(e,t,l,a){var n=(n=re.current)?tu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ya(l.href),l=ca(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ya(l.href);var i=ca(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(Dn(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Ot.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ot.set(e,l),i||_v(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=qa(l),l=ca(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ya(e){return'href="'+Tt(e)+'"'}function Dn(e){return'link[rel="stylesheet"]['+e+"]"}function Jd(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function _v(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),et(t,"link",l),ke(t),e.head.appendChild(t))}function qa(e){return'[src="'+Tt(e)+'"]'}function Un(e){return"script[async]"+e}function $d(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Tt(l.href)+'"]');if(a)return t.instance=a,ke(a),a;var n=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ke(a),et(a,"style",n),lu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ya(l.href);var i=e.querySelector(Dn(n));if(i)return t.state.loading|=4,t.instance=i,ke(i),i;a=Jd(l),(n=Ot.get(n))&&Os(a,n),i=(e.ownerDocument||e).createElement("link"),ke(i);var c=i;return c._p=new Promise(function(m,E){c.onload=m,c.onerror=E}),et(i,"link",a),t.state.loading|=4,lu(i,l.precedence,e),t.instance=i;case"script":return i=qa(l.src),(n=e.querySelector(Un(i)))?(t.instance=n,ke(n),n):(a=l,(n=Ot.get(i))&&(a=g({},l),Ds(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),ke(n),et(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,lu(a,l.precedence,e));return t.instance}function lu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c<a.length;c++){var m=a[c];if(m.dataset.precedence===t)i=m;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Os(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ds(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var au=null;function Wd(e,t,l){if(au===null){var a=new Map,n=au=new Map;n.set(l,a)}else n=au,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[$a]||i[We]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var m=a.get(c);m?m.push(i):a.set(c,[i])}}return a}function Fd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Ov(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Id(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Dv(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ya(a.href),i=t.querySelector(Dn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=nu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,ke(i);return}i=t.ownerDocument||t,a=Jd(a),(n=Ot.get(n))&&Os(a,n),i=i.createElement("link"),ke(i);var c=i;c._p=new Promise(function(m,E){c.onload=m,c.onerror=E}),et(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=nu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Us=0;function Uv(e,t){return e.stylesheets&&e.count===0&&uu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&uu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Us===0&&(Us=62500*mv());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&uu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Us?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function nu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)uu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var iu=null;function uu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,iu=new Map,t.forEach(wv,e),iu=null,nu.call(e))}function wv(e,t){if(!(t.state.loading&4)){var l=iu.get(e);if(l)var a=l.get(null);else{l=new Map,iu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),i=l.get(c)||a,i===a&&l.set(null,n),l.set(c,n),this.count++,a=nu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var wn={$$typeof:Q,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Bv(e,t,l,a,n,i,c,m,E){this.tag=1,this.containerInfo=e,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=Nu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nu(0),this.hiddenUpdates=Nu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Pd(e,t,l,a,n,i,c,m,E,M,B,H){return e=new Bv(e,t,l,c,E,M,B,H,m),t=1,i===!0&&(t|=24),i=yt(3,null,null,t),e.current=i,i.stateNode=e,t=hc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},pc(i),e}function eh(e){return e?(e=pa,e):pa}function th(e,t,l,a,n,i){n=eh(n),a.context===null?a.context=n:a.pendingContext=n,a=bl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=xl(e,a,t),l!==null&&(ot(l,e,t),hn(l,e,t))}function lh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ws(e,t){lh(e,t),(e=e.alternate)&&lh(e,t)}function ah(e){if(e.tag===13||e.tag===31){var t=Xl(e,67108864);t!==null&&ot(t,e,67108864),ws(e,67108864)}}function nh(e){if(e.tag===13||e.tag===31){var t=bt();t=Mu(t);var l=Xl(e,t);l!==null&&ot(l,e,t),ws(e,t)}}var cu=!0;function Lv(e,t,l,a){var n=D.T;D.T=null;var i=Z.p;try{Z.p=2,Bs(e,t,l,a)}finally{Z.p=i,D.T=n}}function Hv(e,t,l,a){var n=D.T;D.T=null;var i=Z.p;try{Z.p=8,Bs(e,t,l,a)}finally{Z.p=i,D.T=n}}function Bs(e,t,l,a){if(cu){var n=Ls(a);if(n===null)Es(e,t,a,su,l),uh(e,a);else if(qv(n,e,t,l,a))a.stopPropagation();else if(uh(e,a),t&4&&-1<Yv.indexOf(e)){for(;n!==null;){var i=ua(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Yl(i.pendingLanes);if(c!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;c;){var E=1<<31-ht(c);m.entanglements[1]|=E,c&=~E}Qt(i),(be&6)===0&&(Xi=ft()+500,Nn(0))}}break;case 31:case 13:m=Xl(i,2),m!==null&&ot(m,i,2),Ki(),ws(i,2)}if(i=Ls(a),i===null&&Es(e,t,a,su,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Es(e,t,a,null,l)}}function Ls(e){return e=Yu(e),Hs(e)}var su=null;function Hs(e){if(su=null,e=ia(e),e!==null){var t=p(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=b(t),e!==null)return e;e=null}else if(l===31){if(e=C(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return su=e,null}function ih(e){switch(e){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(Tm()){case fr:return 2;case dr:return 8;case Fn:case jm:return 32;case hr:return 268435456;default:return 32}default:return 32}}var Ys=!1,Ol=null,Dl=null,Ul=null,Bn=new Map,Ln=new Map,wl=[],Yv="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 uh(e,t){switch(e){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Dl=null;break;case"mouseover":case"mouseout":Ul=null;break;case"pointerover":case"pointerout":Bn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ln.delete(t.pointerId)}}function Hn(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=ua(t),t!==null&&ah(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function qv(e,t,l,a,n){switch(t){case"focusin":return Ol=Hn(Ol,e,t,l,a,n),!0;case"dragenter":return Dl=Hn(Dl,e,t,l,a,n),!0;case"mouseover":return Ul=Hn(Ul,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return Bn.set(i,Hn(Bn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Ln.set(i,Hn(Ln.get(i)||null,e,t,l,a,n)),!0}return!1}function ch(e){var t=ia(e.target);if(t!==null){var l=p(t);if(l!==null){if(t=l.tag,t===13){if(t=b(l),t!==null){e.blockedOn=t,Sr(e.priority,function(){nh(l)});return}}else if(t===31){if(t=C(l),t!==null){e.blockedOn=t,Sr(e.priority,function(){nh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ru(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ls(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Hu=a,l.target.dispatchEvent(a),Hu=null}else return t=ua(l),t!==null&&ah(t),e.blockedOn=l,!1;t.shift()}return!0}function sh(e,t,l){ru(e)&&l.delete(t)}function Gv(){Ys=!1,Ol!==null&&ru(Ol)&&(Ol=null),Dl!==null&&ru(Dl)&&(Dl=null),Ul!==null&&ru(Ul)&&(Ul=null),Bn.forEach(sh),Ln.forEach(sh)}function ou(e,t){e.blockedOn===t&&(e.blockedOn=null,Ys||(Ys=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Gv)))}var fu=null;function rh(e){fu!==e&&(fu=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){fu===e&&(fu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Hs(a||l)===null)continue;break}var i=ua(l);i!==null&&(e.splice(t,3),t-=3,Lc(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ga(e){function t(E){return ou(E,e)}Ol!==null&&ou(Ol,e),Dl!==null&&ou(Dl,e),Ul!==null&&ou(Ul,e),Bn.forEach(t),Ln.forEach(t);for(var l=0;l<wl.length;l++){var a=wl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<wl.length&&(l=wl[0],l.blockedOn===null);)ch(l),l.blockedOn===null&&wl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],c=n[nt]||null;if(typeof i=="function")c||rh(l);else if(c){var m=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[nt]||null)m=c.formAction;else if(Hs(n)!==null)continue}else m=c.action;typeof m=="function"?l[a+1]=m:(l.splice(a,3),a-=3),rh(l)}}}function oh(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function qs(e){this._internalRoot=e}du.prototype.render=qs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=bt();th(l,a,e,t,null,null)},du.prototype.unmount=qs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;th(e.current,2,null,e,null,null),Ki(),t[na]=null}};function du(e){this._internalRoot=e}du.prototype.unstable_scheduleHydration=function(e){if(e){var t=gr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<wl.length&&t!==0&&t<wl[l].priority;l++);wl.splice(l,0,e),l===0&&ch(e)}};var fh=f.version;if(fh!=="19.2.4")throw Error(r(527,fh,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=d(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Qv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hu.isDisabled&&hu.supportsFiber)try{Ka=hu.inject(Qv),dt=hu}catch{}}return qn.createRoot=function(e,t){if(!v(e))throw Error(r(299));var l=!1,a="",n=gf,i=Sf,c=bf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Pd(e,1,!1,null,null,l,a,null,n,i,c,oh),e[na]=t.current,xs(e),new qs(t)},qn.hydrateRoot=function(e,t,l){if(!v(e))throw Error(r(299));var a=!1,n="",i=gf,c=Sf,m=bf,E=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(E=l.formState)),t=Pd(e,1,!0,t,l??null,a,n,E,i,c,m,oh),t.context=eh(null),l=t.current,a=bt(),a=Mu(a),n=bl(a),n.callback=null,xl(l,n,a),l=a,t.current.lanes=l,Ja(t,l),Qt(t),e[na]=t.current,xs(e),new du(t)},qn.version="19.2.4",qn}var xh;function Pv(){if(xh)return Vs.exports;xh=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(f){console.error(f)}}return u(),Vs.exports=Iv(),Vs.exports}var ep=Pv();var Eh="popstate";function tp(u={}){function f(r,v){let{pathname:p,search:b,hash:C}=r.location;return Is("",{pathname:p,search:b,hash:C},v.state&&v.state.usr||null,v.state&&v.state.key||"default")}function o(r,v){return typeof v=="string"?v:Kn(v)}return ap(f,o,null,u)}function Ue(u,f){if(u===!1||u===null||typeof u>"u")throw new Error(f)}function Lt(u,f){if(!u){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function lp(){return Math.random().toString(36).substring(2,10)}function Ch(u,f){return{usr:u.state,key:u.key,idx:f}}function Is(u,f,o=null,r){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof f=="string"?Va(f):f,state:o,key:f&&f.key||r||lp()}}function Kn({pathname:u="/",search:f="",hash:o=""}){return f&&f!=="?"&&(u+=f.charAt(0)==="?"?f:"?"+f),o&&o!=="#"&&(u+=o.charAt(0)==="#"?o:"#"+o),u}function Va(u){let f={};if(u){let o=u.indexOf("#");o>=0&&(f.hash=u.substring(o),u=u.substring(0,o));let r=u.indexOf("?");r>=0&&(f.search=u.substring(r),u=u.substring(0,r)),u&&(f.pathname=u)}return f}function ap(u,f,o,r={}){let{window:v=document.defaultView,v5Compat:p=!1}=r,b=v.history,C="POP",h=null,d=y();d==null&&(d=0,b.replaceState({...b.state,idx:d},""));function y(){return(b.state||{idx:null}).idx}function g(){C="POP";let w=y(),q=w==null?null:w-d;d=w,h&&h({action:C,location:U.location,delta:q})}function x(w,q){C="PUSH";let G=Is(U.location,w,q);d=y()+1;let Q=Ch(G,d),I=U.createHref(G);try{b.pushState(Q,"",I)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;v.location.assign(I)}p&&h&&h({action:C,location:U.location,delta:1})}function R(w,q){C="REPLACE";let G=Is(U.location,w,q);d=y();let Q=Ch(G,d),I=U.createHref(G);b.replaceState(Q,"",I),p&&h&&h({action:C,location:U.location,delta:0})}function z(w){return np(w)}let U={get action(){return C},get location(){return u(v,b)},listen(w){if(h)throw new Error("A history only accepts one active listener");return v.addEventListener(Eh,g),h=w,()=>{v.removeEventListener(Eh,g),h=null}},createHref(w){return f(v,w)},createURL:z,encodeLocation(w){let q=z(w);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:x,replace:R,go(w){return b.go(w)}};return U}function np(u,f=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Ue(o,"No window.location.(origin|href) available to create URL");let r=typeof u=="string"?u:Kn(u);return r=r.replace(/ $/,"%20"),!f&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function Dh(u,f,o="/"){return ip(u,f,o,!1)}function ip(u,f,o,r){let v=typeof f=="string"?Va(f):f,p=ol(v.pathname||"/",o);if(p==null)return null;let b=Uh(u);up(b);let C=null;for(let h=0;C==null&&h<b.length;++h){let d=pp(p);C=yp(b[h],d,r)}return C}function Uh(u,f=[],o=[],r="",v=!1){let p=(b,C,h=v,d)=>{let y={relativePath:d===void 0?b.path||"":d,caseSensitive:b.caseSensitive===!0,childrenIndex:C,route:b};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(r)&&h)return;Ue(y.relativePath.startsWith(r),`Absolute route path "${y.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(r.length)}let g=rl([r,y.relativePath]),x=o.concat(y);b.children&&b.children.length>0&&(Ue(b.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Uh(b.children,f,x,g,h)),!(b.path==null&&!b.index)&&f.push({path:g,score:hp(g,b.index),routesMeta:x})};return u.forEach((b,C)=>{if(b.path===""||!b.path?.includes("?"))p(b,C);else for(let h of wh(b.path))p(b,C,!0,h)}),f}function wh(u){let f=u.split("/");if(f.length===0)return[];let[o,...r]=f,v=o.endsWith("?"),p=o.replace(/\?$/,"");if(r.length===0)return v?[p,""]:[p];let b=wh(r.join("/")),C=[];return C.push(...b.map(h=>h===""?p:[p,h].join("/"))),v&&C.push(...b),C.map(h=>u.startsWith("/")&&h===""?"/":h)}function up(u){u.sort((f,o)=>f.score!==o.score?o.score-f.score:mp(f.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var cp=/^:[\w-]+$/,sp=3,rp=2,op=1,fp=10,dp=-2,Th=u=>u==="*";function hp(u,f){let o=u.split("/"),r=o.length;return o.some(Th)&&(r+=dp),f&&(r+=rp),o.filter(v=>!Th(v)).reduce((v,p)=>v+(cp.test(p)?sp:p===""?op:fp),r)}function mp(u,f){return u.length===f.length&&u.slice(0,-1).every((r,v)=>r===f[v])?u[u.length-1]-f[f.length-1]:0}function yp(u,f,o=!1){let{routesMeta:r}=u,v={},p="/",b=[];for(let C=0;C<r.length;++C){let h=r[C],d=C===r.length-1,y=p==="/"?f:f.slice(p.length)||"/",g=gu({path:h.relativePath,caseSensitive:h.caseSensitive,end:d},y),x=h.route;if(!g&&d&&o&&!r[r.length-1].route.index&&(g=gu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},y)),!g)return null;Object.assign(v,g.params),b.push({params:v,pathname:rl([p,g.pathname]),pathnameBase:xp(rl([p,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(p=rl([p,g.pathnameBase]))}return b}function gu(u,f){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[o,r]=vp(u.path,u.caseSensitive,u.end),v=f.match(o);if(!v)return null;let p=v[0],b=p.replace(/(.)\/+$/,"$1"),C=v.slice(1);return{params:r.reduce((d,{paramName:y,isOptional:g},x)=>{if(y==="*"){let z=C[x]||"";b=p.slice(0,p.length-z.length).replace(/(.)\/+$/,"$1")}const R=C[x];return g&&!R?d[y]=void 0:d[y]=(R||"").replace(/%2F/g,"/"),d},{}),pathname:p,pathnameBase:b,pattern:u}}function vp(u,f=!1,o=!0){Lt(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 r=[],v="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(b,C,h)=>(r.push({paramName:C,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(r.push({paramName:"*"}),v+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?v+="\\/*$":u!==""&&u!=="/"&&(v+="(?:(?=\\/|$))"),[new RegExp(v,f?void 0:"i"),r]}function pp(u){try{return u.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return Lt(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${f}).`),u}}function ol(u,f){if(f==="/")return u;if(!u.toLowerCase().startsWith(f.toLowerCase()))return null;let o=f.endsWith("/")?f.length-1:f.length,r=u.charAt(o);return r&&r!=="/"?null:u.slice(o)||"/"}var gp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Sp(u,f="/"){let{pathname:o,search:r="",hash:v=""}=typeof u=="string"?Va(u):u,p;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?p=jh(o.substring(1),"/"):p=jh(o,f)):p=f,{pathname:p,search:Ep(r),hash:Cp(v)}}function jh(u,f){let o=f.replace(/\/+$/,"").split("/");return u.split("/").forEach(v=>{v===".."?o.length>1&&o.pop():v!=="."&&o.push(v)}),o.length>1?o.join("/"):"/"}function ks(u,f,o,r){return`Cannot include a '${u}' character in a manually specified \`to.${f}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function bp(u){return u.filter((f,o)=>o===0||f.route.path&&f.route.path.length>0)}function Bh(u){let f=bp(u);return f.map((o,r)=>r===f.length-1?o.pathname:o.pathnameBase)}function Lh(u,f,o,r=!1){let v;typeof u=="string"?v=Va(u):(v={...u},Ue(!v.pathname||!v.pathname.includes("?"),ks("?","pathname","search",v)),Ue(!v.pathname||!v.pathname.includes("#"),ks("#","pathname","hash",v)),Ue(!v.search||!v.search.includes("#"),ks("#","search","hash",v)));let p=u===""||v.pathname==="",b=p?"/":v.pathname,C;if(b==null)C=o;else{let g=f.length-1;if(!r&&b.startsWith("..")){let x=b.split("/");for(;x[0]==="..";)x.shift(),g-=1;v.pathname=x.join("/")}C=g>=0?f[g]:"/"}let h=Sp(v,C),d=b&&b!=="/"&&b.endsWith("/"),y=(p||b===".")&&o.endsWith("/");return!h.pathname.endsWith("/")&&(d||y)&&(h.pathname+="/"),h}var rl=u=>u.join("/").replace(/\/\/+/g,"/"),xp=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),Ep=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,Cp=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,Tp=class{constructor(u,f,o,r=!1){this.status=u,this.statusText=f||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function jp(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function Ap(u){return u.map(f=>f.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Hh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Yh(u,f){let o=u;if(typeof o!="string"||!gp.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,v=!1;if(Hh)try{let p=new URL(window.location.href),b=o.startsWith("//")?new URL(p.protocol+o):new URL(o),C=ol(b.pathname,f);b.origin===p.origin&&C!=null?o=C+b.search+b.hash:v=!0}catch{Lt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:v,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var qh=["POST","PUT","PATCH","DELETE"];new Set(qh);var Rp=["GET",...qh];new Set(Rp);var Xa=S.createContext(null);Xa.displayName="DataRouter";var bu=S.createContext(null);bu.displayName="DataRouterState";var zp=S.createContext(!1),Gh=S.createContext({isTransitioning:!1});Gh.displayName="ViewTransition";var Np=S.createContext(new Map);Np.displayName="Fetchers";var Mp=S.createContext(null);Mp.displayName="Await";var Dt=S.createContext(null);Dt.displayName="Navigation";var kn=S.createContext(null);kn.displayName="Location";var Ht=S.createContext({outlet:null,matches:[],isDataRoute:!1});Ht.displayName="Route";var nr=S.createContext(null);nr.displayName="RouteError";var Qh="REACT_ROUTER_ERROR",_p="REDIRECT",Op="ROUTE_ERROR_RESPONSE";function Dp(u){if(u.startsWith(`${Qh}:${_p}:{`))try{let f=JSON.parse(u.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function Up(u){if(u.startsWith(`${Qh}:${Op}:{`))try{let f=JSON.parse(u.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new Tp(f.status,f.statusText,f.data)}catch{}}function wp(u,{relative:f}={}){Ue(Jn(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=S.useContext(Dt),{hash:v,pathname:p,search:b}=$n(u,{relative:f}),C=p;return o!=="/"&&(C=p==="/"?o:rl([o,p])),r.createHref({pathname:C,search:b,hash:v})}function Jn(){return S.useContext(kn)!=null}function fl(){return Ue(Jn(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(kn).location}var Vh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Xh(u){S.useContext(Dt).static||S.useLayoutEffect(u)}function xu(){let{isDataRoute:u}=S.useContext(Ht);return u?Wp():Bp()}function Bp(){Ue(Jn(),"useNavigate() may be used only in the context of a <Router> component.");let u=S.useContext(Xa),{basename:f,navigator:o}=S.useContext(Dt),{matches:r}=S.useContext(Ht),{pathname:v}=fl(),p=JSON.stringify(Bh(r)),b=S.useRef(!1);return Xh(()=>{b.current=!0}),S.useCallback((h,d={})=>{if(Lt(b.current,Vh),!b.current)return;if(typeof h=="number"){o.go(h);return}let y=Lh(h,JSON.parse(p),v,d.relative==="path");u==null&&f!=="/"&&(y.pathname=y.pathname==="/"?f:rl([f,y.pathname])),(d.replace?o.replace:o.push)(y,d.state,d)},[f,o,p,v,u])}var Zh=S.createContext(null);function Lp(){return S.useContext(Zh)}function Hp(u){let f=S.useContext(Ht).outlet;return S.useMemo(()=>f&&S.createElement(Zh.Provider,{value:u},f),[f,u])}function Kh(){let{matches:u}=S.useContext(Ht),f=u[u.length-1];return f?f.params:{}}function $n(u,{relative:f}={}){let{matches:o}=S.useContext(Ht),{pathname:r}=fl(),v=JSON.stringify(Bh(o));return S.useMemo(()=>Lh(u,JSON.parse(v),r,f==="path"),[u,v,r,f])}function Yp(u,f){return kh(u,f)}function kh(u,f,o,r,v){Ue(Jn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:p}=S.useContext(Dt),{matches:b}=S.useContext(Ht),C=b[b.length-1],h=C?C.params:{},d=C?C.pathname:"/",y=C?C.pathnameBase:"/",g=C&&C.route;{let G=g&&g.path||"";$h(d,!g||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${G}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
10
|
+
|
|
11
|
+
Please change the parent <Route path="${G}"> to <Route path="${G==="/"?"*":`${G}/*`}">.`)}let x=fl(),R;if(f){let G=typeof f=="string"?Va(f):f;Ue(y==="/"||G.pathname?.startsWith(y),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${G.pathname}" was given in the \`location\` prop.`),R=G}else R=x;let z=R.pathname||"/",U=z;if(y!=="/"){let G=y.replace(/^\//,"").split("/");U="/"+z.replace(/^\//,"").split("/").slice(G.length).join("/")}let w=Dh(u,{pathname:U});Lt(g||w!=null,`No routes matched location "${R.pathname}${R.search}${R.hash}" `),Lt(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${R.pathname}${R.search}${R.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let q=Xp(w&&w.map(G=>Object.assign({},G,{params:Object.assign({},h,G.params),pathname:rl([y,p.encodeLocation?p.encodeLocation(G.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?y:rl([y,p.encodeLocation?p.encodeLocation(G.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathnameBase])})),b,o,r,v);return f&&q?S.createElement(kn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...R},navigationType:"POP"}},q):q}function qp(){let u=$p(),f=jp(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),o=u instanceof Error?u.stack:null,r="rgba(200,200,200, 0.5)",v={padding:"0.5rem",backgroundColor:r},p={padding:"2px 4px",backgroundColor:r},b=null;return console.error("Error handled by React Router default ErrorBoundary:",u),b=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:p},"ErrorBoundary")," or"," ",S.createElement("code",{style:p},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},f),o?S.createElement("pre",{style:v},o):null,b)}var Gp=S.createElement(qp,null),Jh=class extends S.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,f){return f.location!==u.location||f.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:f.error,location:f.location,revalidation:u.revalidation||f.revalidation}}componentDidCatch(u,f){this.props.onError?this.props.onError(u,f):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const o=Up(u.digest);o&&(u=o)}let f=u!==void 0?S.createElement(Ht.Provider,{value:this.props.routeContext},S.createElement(nr.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?S.createElement(Qp,{error:u},f):f}};Jh.contextType=zp;var Js=new WeakMap;function Qp({children:u,error:f}){let{basename:o}=S.useContext(Dt);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let r=Dp(f.digest);if(r){let v=Js.get(f);if(v)throw v;let p=Yh(r.location,o);if(Hh&&!Js.get(f))if(p.isExternal||r.reloadDocument)window.location.href=p.absoluteURL||p.to;else{const b=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(p.to,{replace:r.replace}));throw Js.set(f,b),b}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p.absoluteURL||p.to}`})}}return u}function Vp({routeContext:u,match:f,children:o}){let r=S.useContext(Xa);return r&&r.static&&r.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=f.route.id),S.createElement(Ht.Provider,{value:u},o)}function Xp(u,f=[],o=null,r=null,v=null){if(u==null){if(!o)return null;if(o.errors)u=o.matches;else if(f.length===0&&!o.initialized&&o.matches.length>0)u=o.matches;else return null}let p=u,b=o?.errors;if(b!=null){let y=p.findIndex(g=>g.route.id&&b?.[g.route.id]!==void 0);Ue(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(b).join(",")}`),p=p.slice(0,Math.min(p.length,y+1))}let C=!1,h=-1;if(o)for(let y=0;y<p.length;y++){let g=p[y];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=y),g.route.id){let{loaderData:x,errors:R}=o,z=g.route.loader&&!x.hasOwnProperty(g.route.id)&&(!R||R[g.route.id]===void 0);if(g.route.lazy||z){C=!0,h>=0?p=p.slice(0,h+1):p=[p[0]];break}}}let d=o&&r?(y,g)=>{r(y,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:Ap(o.matches),errorInfo:g})}:void 0;return p.reduceRight((y,g,x)=>{let R,z=!1,U=null,w=null;o&&(R=b&&g.route.id?b[g.route.id]:void 0,U=g.route.errorElement||Gp,C&&(h<0&&x===0?($h("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),z=!0,w=null):h===x&&(z=!0,w=g.route.hydrateFallbackElement||null)));let q=f.concat(p.slice(0,x+1)),G=()=>{let Q;return R?Q=U:z?Q=w:g.route.Component?Q=S.createElement(g.route.Component,null):g.route.element?Q=g.route.element:Q=y,S.createElement(Vp,{match:g,routeContext:{outlet:y,matches:q,isDataRoute:o!=null},children:Q})};return o&&(g.route.ErrorBoundary||g.route.errorElement||x===0)?S.createElement(Jh,{location:o.location,revalidation:o.revalidation,component:U,error:R,children:G(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:d}):G()},null)}function ir(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zp(u){let f=S.useContext(Xa);return Ue(f,ir(u)),f}function Kp(u){let f=S.useContext(bu);return Ue(f,ir(u)),f}function kp(u){let f=S.useContext(Ht);return Ue(f,ir(u)),f}function ur(u){let f=kp(u),o=f.matches[f.matches.length-1];return Ue(o.route.id,`${u} can only be used on routes that contain a unique "id"`),o.route.id}function Jp(){return ur("useRouteId")}function $p(){let u=S.useContext(nr),f=Kp("useRouteError"),o=ur("useRouteError");return u!==void 0?u:f.errors?.[o]}function Wp(){let{router:u}=Zp("useNavigate"),f=ur("useNavigate"),o=S.useRef(!1);return Xh(()=>{o.current=!0}),S.useCallback(async(v,p={})=>{Lt(o.current,Vh),o.current&&(typeof v=="number"?await u.navigate(v):await u.navigate(v,{fromRouteId:f,...p}))},[u,f])}var Ah={};function $h(u,f,o){!f&&!Ah[u]&&(Ah[u]=!0,Lt(!1,o))}S.memo(Fp);function Fp({routes:u,future:f,state:o,onError:r}){return kh(u,void 0,o,r,f)}function Ip(u){return Hp(u.context)}function Ll(u){Ue(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Pp({basename:u="/",children:f=null,location:o,navigationType:r="POP",navigator:v,static:p=!1,unstable_useTransitions:b}){Ue(!Jn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let C=u.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:C,navigator:v,static:p,unstable_useTransitions:b,future:{}}),[C,v,p,b]);typeof o=="string"&&(o=Va(o));let{pathname:d="/",search:y="",hash:g="",state:x=null,key:R="default"}=o,z=S.useMemo(()=>{let U=ol(d,C);return U==null?null:{location:{pathname:U,search:y,hash:g,state:x,key:R},navigationType:r}},[C,d,y,g,x,R,r]);return Lt(z!=null,`<Router basename="${C}"> is not able to match the URL "${d}${y}${g}" because it does not start with the basename, so the <Router> won't render anything.`),z==null?null:S.createElement(Dt.Provider,{value:h},S.createElement(kn.Provider,{children:f,value:z}))}function eg({children:u,location:f}){return Yp(Ps(u),f)}function Ps(u,f=[]){let o=[];return S.Children.forEach(u,(r,v)=>{if(!S.isValidElement(r))return;let p=[...f,v];if(r.type===S.Fragment){o.push.apply(o,Ps(r.props.children,p));return}Ue(r.type===Ll,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ue(!r.props.index||!r.props.children,"An index route cannot have child routes.");let b={id:r.props.id||p.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(b.children=Ps(r.props.children,p)),o.push(b)}),o}var vu="get",pu="application/x-www-form-urlencoded";function Eu(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function tg(u){return Eu(u)&&u.tagName.toLowerCase()==="button"}function lg(u){return Eu(u)&&u.tagName.toLowerCase()==="form"}function ag(u){return Eu(u)&&u.tagName.toLowerCase()==="input"}function ng(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function ig(u,f){return u.button===0&&(!f||f==="_self")&&!ng(u)}function er(u=""){return new URLSearchParams(typeof u=="string"||Array.isArray(u)||u instanceof URLSearchParams?u:Object.keys(u).reduce((f,o)=>{let r=u[o];return f.concat(Array.isArray(r)?r.map(v=>[o,v]):[[o,r]])},[]))}function ug(u,f){let o=er(u);return f&&f.forEach((r,v)=>{o.has(v)||f.getAll(v).forEach(p=>{o.append(v,p)})}),o}var mu=null;function cg(){if(mu===null)try{new FormData(document.createElement("form"),0),mu=!1}catch{mu=!0}return mu}var sg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $s(u){return u!=null&&!sg.has(u)?(Lt(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pu}"`),null):u}function rg(u,f){let o,r,v,p,b;if(lg(u)){let C=u.getAttribute("action");r=C?ol(C,f):null,o=u.getAttribute("method")||vu,v=$s(u.getAttribute("enctype"))||pu,p=new FormData(u)}else if(tg(u)||ag(u)&&(u.type==="submit"||u.type==="image")){let C=u.form;if(C==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=u.getAttribute("formaction")||C.getAttribute("action");if(r=h?ol(h,f):null,o=u.getAttribute("formmethod")||C.getAttribute("method")||vu,v=$s(u.getAttribute("formenctype"))||$s(C.getAttribute("enctype"))||pu,p=new FormData(C,u),!cg()){let{name:d,type:y,value:g}=u;if(y==="image"){let x=d?`${d}.`:"";p.append(`${x}x`,"0"),p.append(`${x}y`,"0")}else d&&p.append(d,g)}}else{if(Eu(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=vu,r=null,v=pu,b=u}return p&&v==="text/plain"&&(b=p,p=void 0),{action:r,method:o.toLowerCase(),encType:v,formData:p,body:b}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function cr(u,f){if(u===!1||u===null||typeof u>"u")throw new Error(f)}function og(u,f,o,r){let v=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return o?v.pathname.endsWith("/")?v.pathname=`${v.pathname}_.${r}`:v.pathname=`${v.pathname}.${r}`:v.pathname==="/"?v.pathname=`_root.${r}`:f&&ol(v.pathname,f)==="/"?v.pathname=`${f.replace(/\/$/,"")}/_root.${r}`:v.pathname=`${v.pathname.replace(/\/$/,"")}.${r}`,v}async function fg(u,f){if(u.id in f)return f[u.id];try{let o=await import(u.module);return f[u.id]=o,o}catch(o){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function dg(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function hg(u,f,o){let r=await Promise.all(u.map(async v=>{let p=f.routes[v.route.id];if(p){let b=await fg(p,o);return b.links?b.links():[]}return[]}));return pg(r.flat(1).filter(dg).filter(v=>v.rel==="stylesheet"||v.rel==="preload").map(v=>v.rel==="stylesheet"?{...v,rel:"prefetch",as:"style"}:{...v,rel:"prefetch"}))}function Rh(u,f,o,r,v,p){let b=(h,d)=>o[d]?h.route.id!==o[d].route.id:!0,C=(h,d)=>o[d].pathname!==h.pathname||o[d].route.path?.endsWith("*")&&o[d].params["*"]!==h.params["*"];return p==="assets"?f.filter((h,d)=>b(h,d)||C(h,d)):p==="data"?f.filter((h,d)=>{let y=r.routes[h.route.id];if(!y||!y.hasLoader)return!1;if(b(h,d)||C(h,d))return!0;if(h.route.shouldRevalidate){let g=h.route.shouldRevalidate({currentUrl:new URL(v.pathname+v.search+v.hash,window.origin),currentParams:o[0]?.params||{},nextUrl:new URL(u,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function mg(u,f,{includeHydrateFallback:o}={}){return yg(u.map(r=>{let v=f.routes[r.route.id];if(!v)return[];let p=[v.module];return v.clientActionModule&&(p=p.concat(v.clientActionModule)),v.clientLoaderModule&&(p=p.concat(v.clientLoaderModule)),o&&v.hydrateFallbackModule&&(p=p.concat(v.hydrateFallbackModule)),v.imports&&(p=p.concat(v.imports)),p}).flat(1))}function yg(u){return[...new Set(u)]}function vg(u){let f={},o=Object.keys(u).sort();for(let r of o)f[r]=u[r];return f}function pg(u,f){let o=new Set;return new Set(f),u.reduce((r,v)=>{let p=JSON.stringify(vg(v));return o.has(p)||(o.add(p),r.push({key:p,link:v})),r},[])}function Wh(){let u=S.useContext(Xa);return cr(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function gg(){let u=S.useContext(bu);return cr(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var sr=S.createContext(void 0);sr.displayName="FrameworkContext";function Fh(){let u=S.useContext(sr);return cr(u,"You must render this element inside a <HydratedRouter> element"),u}function Sg(u,f){let o=S.useContext(sr),[r,v]=S.useState(!1),[p,b]=S.useState(!1),{onFocus:C,onBlur:h,onMouseEnter:d,onMouseLeave:y,onTouchStart:g}=f,x=S.useRef(null);S.useEffect(()=>{if(u==="render"&&b(!0),u==="viewport"){let U=q=>{q.forEach(G=>{b(G.isIntersecting)})},w=new IntersectionObserver(U,{threshold:.5});return x.current&&w.observe(x.current),()=>{w.disconnect()}}},[u]),S.useEffect(()=>{if(r){let U=setTimeout(()=>{b(!0)},100);return()=>{clearTimeout(U)}}},[r]);let R=()=>{v(!0)},z=()=>{v(!1),b(!1)};return o?u!=="intent"?[p,x,{}]:[p,x,{onFocus:Gn(C,R),onBlur:Gn(h,z),onMouseEnter:Gn(d,R),onMouseLeave:Gn(y,z),onTouchStart:Gn(g,R)}]:[!1,x,{}]}function Gn(u,f){return o=>{u&&u(o),o.defaultPrevented||f(o)}}function bg({page:u,...f}){let{router:o}=Wh(),r=S.useMemo(()=>Dh(o.routes,u,o.basename),[o.routes,u,o.basename]);return r?S.createElement(Eg,{page:u,matches:r,...f}):null}function xg(u){let{manifest:f,routeModules:o}=Fh(),[r,v]=S.useState([]);return S.useEffect(()=>{let p=!1;return hg(u,f,o).then(b=>{p||v(b)}),()=>{p=!0}},[u,f,o]),r}function Eg({page:u,matches:f,...o}){let r=fl(),{future:v,manifest:p,routeModules:b}=Fh(),{basename:C}=Wh(),{loaderData:h,matches:d}=gg(),y=S.useMemo(()=>Rh(u,f,d,p,r,"data"),[u,f,d,p,r]),g=S.useMemo(()=>Rh(u,f,d,p,r,"assets"),[u,f,d,p,r]),x=S.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let U=new Set,w=!1;if(f.forEach(G=>{let Q=p.routes[G.route.id];!Q||!Q.hasLoader||(!y.some(I=>I.route.id===G.route.id)&&G.route.id in h&&b[G.route.id]?.shouldRevalidate||Q.hasClientLoader?w=!0:U.add(G.route.id))}),U.size===0)return[];let q=og(u,C,v.unstable_trailingSlashAwareDataRequests,"data");return w&&U.size>0&&q.searchParams.set("_routes",f.filter(G=>U.has(G.route.id)).map(G=>G.route.id).join(",")),[q.pathname+q.search]},[C,v.unstable_trailingSlashAwareDataRequests,h,r,p,y,f,u,b]),R=S.useMemo(()=>mg(g,p),[g,p]),z=xg(g);return S.createElement(S.Fragment,null,x.map(U=>S.createElement("link",{key:U,rel:"prefetch",as:"fetch",href:U,...o})),R.map(U=>S.createElement("link",{key:U,rel:"modulepreload",href:U,...o})),z.map(({key:U,link:w})=>S.createElement("link",{key:U,nonce:o.nonce,...w,crossOrigin:w.crossOrigin??o.crossOrigin})))}function Cg(...u){return f=>{u.forEach(o=>{typeof o=="function"?o(f):o!=null&&(o.current=f)})}}var Tg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Tg&&(window.__reactRouterVersion="7.13.0")}catch{}function jg({basename:u,children:f,unstable_useTransitions:o,window:r}){let v=S.useRef();v.current==null&&(v.current=tp({window:r,v5Compat:!0}));let p=v.current,[b,C]=S.useState({action:p.action,location:p.location}),h=S.useCallback(d=>{o===!1?C(d):S.startTransition(()=>C(d))},[o]);return S.useLayoutEffect(()=>p.listen(h),[p,h]),S.createElement(Pp,{basename:u,children:f,location:b.location,navigationType:b.action,navigator:p,unstable_useTransitions:o})}var Ih=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vt=S.forwardRef(function({onClick:f,discover:o="render",prefetch:r="none",relative:v,reloadDocument:p,replace:b,state:C,target:h,to:d,preventScrollReset:y,viewTransition:g,unstable_defaultShouldRevalidate:x,...R},z){let{basename:U,unstable_useTransitions:w}=S.useContext(Dt),q=typeof d=="string"&&Ih.test(d),G=Yh(d,U);d=G.to;let Q=wp(d,{relative:v}),[I,$,V]=Sg(r,R),X=Ng(d,{replace:b,state:C,target:h,preventScrollReset:y,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:x,unstable_useTransitions:w});function J(le){f&&f(le),le.defaultPrevented||X(le)}let K=S.createElement("a",{...R,...V,href:G.absoluteURL||Q,onClick:G.isExternal||p?f:J,ref:Cg(z,$),target:h,"data-discover":!q&&o==="render"?"true":void 0});return I&&!q?S.createElement(S.Fragment,null,K,S.createElement(bg,{page:Q})):K});Vt.displayName="Link";var Ag=S.forwardRef(function({"aria-current":f="page",caseSensitive:o=!1,className:r="",end:v=!1,style:p,to:b,viewTransition:C,children:h,...d},y){let g=$n(b,{relative:d.relative}),x=fl(),R=S.useContext(bu),{navigator:z,basename:U}=S.useContext(Dt),w=R!=null&&wg(g)&&C===!0,q=z.encodeLocation?z.encodeLocation(g).pathname:g.pathname,G=x.pathname,Q=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;o||(G=G.toLowerCase(),Q=Q?Q.toLowerCase():null,q=q.toLowerCase()),Q&&U&&(Q=ol(Q,U)||Q);const I=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let $=G===q||!v&&G.startsWith(q)&&G.charAt(I)==="/",V=Q!=null&&(Q===q||!v&&Q.startsWith(q)&&Q.charAt(q.length)==="/"),X={isActive:$,isPending:V,isTransitioning:w},J=$?f:void 0,K;typeof r=="function"?K=r(X):K=[r,$?"active":null,V?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let le=typeof p=="function"?p(X):p;return S.createElement(Vt,{...d,"aria-current":J,className:K,ref:y,style:le,to:b,viewTransition:C},typeof h=="function"?h(X):h)});Ag.displayName="NavLink";var Rg=S.forwardRef(({discover:u="render",fetcherKey:f,navigate:o,reloadDocument:r,replace:v,state:p,method:b=vu,action:C,onSubmit:h,relative:d,preventScrollReset:y,viewTransition:g,unstable_defaultShouldRevalidate:x,...R},z)=>{let{unstable_useTransitions:U}=S.useContext(Dt),w=Dg(),q=Ug(C,{relative:d}),G=b.toLowerCase()==="get"?"get":"post",Q=typeof C=="string"&&Ih.test(C),I=$=>{if(h&&h($),$.defaultPrevented)return;$.preventDefault();let V=$.nativeEvent.submitter,X=V?.getAttribute("formmethod")||b,J=()=>w(V||$.currentTarget,{fetcherKey:f,method:X,navigate:o,replace:v,state:p,relative:d,preventScrollReset:y,viewTransition:g,unstable_defaultShouldRevalidate:x});U&&o!==!1?S.startTransition(()=>J()):J()};return S.createElement("form",{ref:z,method:G,action:q,onSubmit:r?h:I,...R,"data-discover":!Q&&u==="render"?"true":void 0})});Rg.displayName="Form";function zg(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ph(u){let f=S.useContext(Xa);return Ue(f,zg(u)),f}function Ng(u,{target:f,replace:o,state:r,preventScrollReset:v,relative:p,viewTransition:b,unstable_defaultShouldRevalidate:C,unstable_useTransitions:h}={}){let d=xu(),y=fl(),g=$n(u,{relative:p});return S.useCallback(x=>{if(ig(x,f)){x.preventDefault();let R=o!==void 0?o:Kn(y)===Kn(g),z=()=>d(u,{replace:R,state:r,preventScrollReset:v,relative:p,viewTransition:b,unstable_defaultShouldRevalidate:C});h?S.startTransition(()=>z()):z()}},[y,d,g,o,r,f,u,v,p,b,C,h])}function Mg(u){Lt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let f=S.useRef(er(u)),o=S.useRef(!1),r=fl(),v=S.useMemo(()=>ug(r.search,o.current?null:f.current),[r.search]),p=xu(),b=S.useCallback((C,h)=>{const d=er(typeof C=="function"?C(new URLSearchParams(v)):C);o.current=!0,p("?"+d,h)},[p,v]);return[v,b]}var _g=0,Og=()=>`__${String(++_g)}__`;function Dg(){let{router:u}=Ph("useSubmit"),{basename:f}=S.useContext(Dt),o=Jp(),r=u.fetch,v=u.navigate;return S.useCallback(async(p,b={})=>{let{action:C,method:h,encType:d,formData:y,body:g}=rg(p,f);if(b.navigate===!1){let x=b.fetcherKey||Og();await r(x,o,b.action||C,{unstable_defaultShouldRevalidate:b.unstable_defaultShouldRevalidate,preventScrollReset:b.preventScrollReset,formData:y,body:g,formMethod:b.method||h,formEncType:b.encType||d,flushSync:b.flushSync})}else await v(b.action||C,{unstable_defaultShouldRevalidate:b.unstable_defaultShouldRevalidate,preventScrollReset:b.preventScrollReset,formData:y,body:g,formMethod:b.method||h,formEncType:b.encType||d,replace:b.replace,state:b.state,fromRouteId:o,flushSync:b.flushSync,viewTransition:b.viewTransition})},[r,v,f,o])}function Ug(u,{relative:f}={}){let{basename:o}=S.useContext(Dt),r=S.useContext(Ht);Ue(r,"useFormAction must be used inside a RouteContext");let[v]=r.matches.slice(-1),p={...$n(u||".",{relative:f})},b=fl();if(u==null){p.search=b.search;let C=new URLSearchParams(p.search),h=C.getAll("index");if(h.some(y=>y==="")){C.delete("index"),h.filter(g=>g).forEach(g=>C.append("index",g));let y=C.toString();p.search=y?`?${y}`:""}}return(!u||u===".")&&v.route.index&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(p.pathname=p.pathname==="/"?o:rl([o,p.pathname])),Kn(p)}function wg(u,{relative:f}={}){let o=S.useContext(Gh);Ue(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ph("useViewTransitionState"),v=$n(u,{relative:f});if(!o.isTransitioning)return!1;let p=ol(o.currentLocation.pathname,r)||o.currentLocation.pathname,b=ol(o.nextLocation.pathname,r)||o.nextLocation.pathname;return gu(v.pathname,b)!=null||gu(v.pathname,p)!=null}async function xe(u){const f=await fetch(u);if(!f.ok){const o=await f.json().catch(()=>({error:"Request failed"}));throw{status:f.status,message:o.error||"Request failed"}}return f.json()}async function xt(u,f){const o=await fetch(u,{method:"POST",headers:f!==void 0?{"Content-Type":"application/json"}:{},body:f!==void 0?JSON.stringify(f):void 0});if(!o.ok){const r=await o.json().catch(()=>({error:"Request failed"}));throw{status:o.status,message:r.error||"Request failed"}}return o.json()}async function Bg(u,f){const o=await fetch(u,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)});if(!o.ok){const r=await o.json().catch(()=>({error:"Request failed"}));throw{status:o.status,message:r.error||"Request failed"}}return o.json()}async function em(u){const f=await fetch(u,{method:"DELETE"});if(!f.ok){const o=await f.json().catch(()=>({error:"Request failed"}));throw{status:f.status,message:o.error||"Request failed"}}return f.json()}var Lg=Object.defineProperty,Su=Object.getOwnPropertySymbols,tm=Object.prototype.hasOwnProperty,lm=Object.prototype.propertyIsEnumerable,zh=(u,f,o)=>f in u?Lg(u,f,{enumerable:!0,configurable:!0,writable:!0,value:o}):u[f]=o,tr=(u,f)=>{for(var o in f||(f={}))tm.call(f,o)&&zh(u,o,f[o]);if(Su)for(var o of Su(f))lm.call(f,o)&&zh(u,o,f[o]);return u},lr=(u,f)=>{var o={};for(var r in u)tm.call(u,r)&&f.indexOf(r)<0&&(o[r]=u[r]);if(u!=null&&Su)for(var r of Su(u))f.indexOf(r)<0&&lm.call(u,r)&&(o[r]=u[r]);return o};var aa;(u=>{const f=class de{constructor(h,d,y,g){if(this.version=h,this.errorCorrectionLevel=d,this.modules=[],this.isFunction=[],h<de.MIN_VERSION||h>de.MAX_VERSION)throw new RangeError("Version value out of range");if(g<-1||g>7)throw new RangeError("Mask value out of range");this.size=h*4+17;let x=[];for(let z=0;z<this.size;z++)x.push(!1);for(let z=0;z<this.size;z++)this.modules.push(x.slice()),this.isFunction.push(x.slice());this.drawFunctionPatterns();const R=this.addEccAndInterleave(y);if(this.drawCodewords(R),g==-1){let z=1e9;for(let U=0;U<8;U++){this.applyMask(U),this.drawFormatBits(U);const w=this.getPenaltyScore();w<z&&(g=U,z=w),this.applyMask(U)}}v(0<=g&&g<=7),this.mask=g,this.applyMask(g),this.drawFormatBits(g),this.isFunction=[]}static encodeText(h,d){const y=u.QrSegment.makeSegments(h);return de.encodeSegments(y,d)}static encodeBinary(h,d){const y=u.QrSegment.makeBytes(h);return de.encodeSegments([y],d)}static encodeSegments(h,d,y=1,g=40,x=-1,R=!0){if(!(de.MIN_VERSION<=y&&y<=g&&g<=de.MAX_VERSION)||x<-1||x>7)throw new RangeError("Invalid value");let z,U;for(z=y;;z++){const Q=de.getNumDataCodewords(z,d)*8,I=b.getTotalBits(h,z);if(I<=Q){U=I;break}if(z>=g)throw new RangeError("Data too long")}for(const Q of[de.Ecc.MEDIUM,de.Ecc.QUARTILE,de.Ecc.HIGH])R&&U<=de.getNumDataCodewords(z,Q)*8&&(d=Q);let w=[];for(const Q of h){o(Q.mode.modeBits,4,w),o(Q.numChars,Q.mode.numCharCountBits(z),w);for(const I of Q.getData())w.push(I)}v(w.length==U);const q=de.getNumDataCodewords(z,d)*8;v(w.length<=q),o(0,Math.min(4,q-w.length),w),o(0,(8-w.length%8)%8,w),v(w.length%8==0);for(let Q=236;w.length<q;Q^=253)o(Q,8,w);let G=[];for(;G.length*8<w.length;)G.push(0);return w.forEach((Q,I)=>G[I>>>3]|=Q<<7-(I&7)),new de(z,d,G,x)}getModule(h,d){return 0<=h&&h<this.size&&0<=d&&d<this.size&&this.modules[d][h]}getModules(){return this.modules}drawFunctionPatterns(){for(let y=0;y<this.size;y++)this.setFunctionModule(6,y,y%2==0),this.setFunctionModule(y,6,y%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const h=this.getAlignmentPatternPositions(),d=h.length;for(let y=0;y<d;y++)for(let g=0;g<d;g++)y==0&&g==0||y==0&&g==d-1||y==d-1&&g==0||this.drawAlignmentPattern(h[y],h[g]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(h){const d=this.errorCorrectionLevel.formatBits<<3|h;let y=d;for(let x=0;x<10;x++)y=y<<1^(y>>>9)*1335;const g=(d<<10|y)^21522;v(g>>>15==0);for(let x=0;x<=5;x++)this.setFunctionModule(8,x,r(g,x));this.setFunctionModule(8,7,r(g,6)),this.setFunctionModule(8,8,r(g,7)),this.setFunctionModule(7,8,r(g,8));for(let x=9;x<15;x++)this.setFunctionModule(14-x,8,r(g,x));for(let x=0;x<8;x++)this.setFunctionModule(this.size-1-x,8,r(g,x));for(let x=8;x<15;x++)this.setFunctionModule(8,this.size-15+x,r(g,x));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let h=this.version;for(let y=0;y<12;y++)h=h<<1^(h>>>11)*7973;const d=this.version<<12|h;v(d>>>18==0);for(let y=0;y<18;y++){const g=r(d,y),x=this.size-11+y%3,R=Math.floor(y/3);this.setFunctionModule(x,R,g),this.setFunctionModule(R,x,g)}}drawFinderPattern(h,d){for(let y=-4;y<=4;y++)for(let g=-4;g<=4;g++){const x=Math.max(Math.abs(g),Math.abs(y)),R=h+g,z=d+y;0<=R&&R<this.size&&0<=z&&z<this.size&&this.setFunctionModule(R,z,x!=2&&x!=4)}}drawAlignmentPattern(h,d){for(let y=-2;y<=2;y++)for(let g=-2;g<=2;g++)this.setFunctionModule(h+g,d+y,Math.max(Math.abs(g),Math.abs(y))!=1)}setFunctionModule(h,d,y){this.modules[d][h]=y,this.isFunction[d][h]=!0}addEccAndInterleave(h){const d=this.version,y=this.errorCorrectionLevel;if(h.length!=de.getNumDataCodewords(d,y))throw new RangeError("Invalid argument");const g=de.NUM_ERROR_CORRECTION_BLOCKS[y.ordinal][d],x=de.ECC_CODEWORDS_PER_BLOCK[y.ordinal][d],R=Math.floor(de.getNumRawDataModules(d)/8),z=g-R%g,U=Math.floor(R/g);let w=[];const q=de.reedSolomonComputeDivisor(x);for(let Q=0,I=0;Q<g;Q++){let $=h.slice(I,I+U-x+(Q<z?0:1));I+=$.length;const V=de.reedSolomonComputeRemainder($,q);Q<z&&$.push(0),w.push($.concat(V))}let G=[];for(let Q=0;Q<w[0].length;Q++)w.forEach((I,$)=>{(Q!=U-x||$>=z)&&G.push(I[Q])});return v(G.length==R),G}drawCodewords(h){if(h.length!=Math.floor(de.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let d=0;for(let y=this.size-1;y>=1;y-=2){y==6&&(y=5);for(let g=0;g<this.size;g++)for(let x=0;x<2;x++){const R=y-x,U=(y+1&2)==0?this.size-1-g:g;!this.isFunction[U][R]&&d<h.length*8&&(this.modules[U][R]=r(h[d>>>3],7-(d&7)),d++)}}v(d==h.length*8)}applyMask(h){if(h<0||h>7)throw new RangeError("Mask value out of range");for(let d=0;d<this.size;d++)for(let y=0;y<this.size;y++){let g;switch(h){case 0:g=(y+d)%2==0;break;case 1:g=d%2==0;break;case 2:g=y%3==0;break;case 3:g=(y+d)%3==0;break;case 4:g=(Math.floor(y/3)+Math.floor(d/2))%2==0;break;case 5:g=y*d%2+y*d%3==0;break;case 6:g=(y*d%2+y*d%3)%2==0;break;case 7:g=((y+d)%2+y*d%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[d][y]&&g&&(this.modules[d][y]=!this.modules[d][y])}}getPenaltyScore(){let h=0;for(let x=0;x<this.size;x++){let R=!1,z=0,U=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[x][w]==R?(z++,z==5?h+=de.PENALTY_N1:z>5&&h++):(this.finderPenaltyAddHistory(z,U),R||(h+=this.finderPenaltyCountPatterns(U)*de.PENALTY_N3),R=this.modules[x][w],z=1);h+=this.finderPenaltyTerminateAndCount(R,z,U)*de.PENALTY_N3}for(let x=0;x<this.size;x++){let R=!1,z=0,U=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[w][x]==R?(z++,z==5?h+=de.PENALTY_N1:z>5&&h++):(this.finderPenaltyAddHistory(z,U),R||(h+=this.finderPenaltyCountPatterns(U)*de.PENALTY_N3),R=this.modules[w][x],z=1);h+=this.finderPenaltyTerminateAndCount(R,z,U)*de.PENALTY_N3}for(let x=0;x<this.size-1;x++)for(let R=0;R<this.size-1;R++){const z=this.modules[x][R];z==this.modules[x][R+1]&&z==this.modules[x+1][R]&&z==this.modules[x+1][R+1]&&(h+=de.PENALTY_N2)}let d=0;for(const x of this.modules)d=x.reduce((R,z)=>R+(z?1:0),d);const y=this.size*this.size,g=Math.ceil(Math.abs(d*20-y*10)/y)-1;return v(0<=g&&g<=9),h+=g*de.PENALTY_N4,v(0<=h&&h<=2568888),h}getAlignmentPatternPositions(){if(this.version==1)return[];{const h=Math.floor(this.version/7)+2,d=this.version==32?26:Math.ceil((this.version*4+4)/(h*2-2))*2;let y=[6];for(let g=this.size-7;y.length<h;g-=d)y.splice(1,0,g);return y}}static getNumRawDataModules(h){if(h<de.MIN_VERSION||h>de.MAX_VERSION)throw new RangeError("Version number out of range");let d=(16*h+128)*h+64;if(h>=2){const y=Math.floor(h/7)+2;d-=(25*y-10)*y-55,h>=7&&(d-=36)}return v(208<=d&&d<=29648),d}static getNumDataCodewords(h,d){return Math.floor(de.getNumRawDataModules(h)/8)-de.ECC_CODEWORDS_PER_BLOCK[d.ordinal][h]*de.NUM_ERROR_CORRECTION_BLOCKS[d.ordinal][h]}static reedSolomonComputeDivisor(h){if(h<1||h>255)throw new RangeError("Degree out of range");let d=[];for(let g=0;g<h-1;g++)d.push(0);d.push(1);let y=1;for(let g=0;g<h;g++){for(let x=0;x<d.length;x++)d[x]=de.reedSolomonMultiply(d[x],y),x+1<d.length&&(d[x]^=d[x+1]);y=de.reedSolomonMultiply(y,2)}return d}static reedSolomonComputeRemainder(h,d){let y=d.map(g=>0);for(const g of h){const x=g^y.shift();y.push(0),d.forEach((R,z)=>y[z]^=de.reedSolomonMultiply(R,x))}return y}static reedSolomonMultiply(h,d){if(h>>>8||d>>>8)throw new RangeError("Byte out of range");let y=0;for(let g=7;g>=0;g--)y=y<<1^(y>>>7)*285,y^=(d>>>g&1)*h;return v(y>>>8==0),y}finderPenaltyCountPatterns(h){const d=h[1];v(d<=this.size*3);const y=d>0&&h[2]==d&&h[3]==d*3&&h[4]==d&&h[5]==d;return(y&&h[0]>=d*4&&h[6]>=d?1:0)+(y&&h[6]>=d*4&&h[0]>=d?1:0)}finderPenaltyTerminateAndCount(h,d,y){return h&&(this.finderPenaltyAddHistory(d,y),d=0),d+=this.size,this.finderPenaltyAddHistory(d,y),this.finderPenaltyCountPatterns(y)}finderPenaltyAddHistory(h,d){d[0]==0&&(h+=this.size),d.pop(),d.unshift(h)}};f.MIN_VERSION=1,f.MAX_VERSION=40,f.PENALTY_N1=3,f.PENALTY_N2=3,f.PENALTY_N3=40,f.PENALTY_N4=10,f.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],f.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],u.QrCode=f;function o(C,h,d){if(h<0||h>31||C>>>h)throw new RangeError("Value out of range");for(let y=h-1;y>=0;y--)d.push(C>>>y&1)}function r(C,h){return(C>>>h&1)!=0}function v(C){if(!C)throw new Error("Assertion error")}const p=class Le{constructor(h,d,y){if(this.mode=h,this.numChars=d,this.bitData=y,d<0)throw new RangeError("Invalid argument");this.bitData=y.slice()}static makeBytes(h){let d=[];for(const y of h)o(y,8,d);return new Le(Le.Mode.BYTE,h.length,d)}static makeNumeric(h){if(!Le.isNumeric(h))throw new RangeError("String contains non-numeric characters");let d=[];for(let y=0;y<h.length;){const g=Math.min(h.length-y,3);o(parseInt(h.substring(y,y+g),10),g*3+1,d),y+=g}return new Le(Le.Mode.NUMERIC,h.length,d)}static makeAlphanumeric(h){if(!Le.isAlphanumeric(h))throw new RangeError("String contains unencodable characters in alphanumeric mode");let d=[],y;for(y=0;y+2<=h.length;y+=2){let g=Le.ALPHANUMERIC_CHARSET.indexOf(h.charAt(y))*45;g+=Le.ALPHANUMERIC_CHARSET.indexOf(h.charAt(y+1)),o(g,11,d)}return y<h.length&&o(Le.ALPHANUMERIC_CHARSET.indexOf(h.charAt(y)),6,d),new Le(Le.Mode.ALPHANUMERIC,h.length,d)}static makeSegments(h){return h==""?[]:Le.isNumeric(h)?[Le.makeNumeric(h)]:Le.isAlphanumeric(h)?[Le.makeAlphanumeric(h)]:[Le.makeBytes(Le.toUtf8ByteArray(h))]}static makeEci(h){let d=[];if(h<0)throw new RangeError("ECI assignment value out of range");if(h<128)o(h,8,d);else if(h<16384)o(2,2,d),o(h,14,d);else if(h<1e6)o(6,3,d),o(h,21,d);else throw new RangeError("ECI assignment value out of range");return new Le(Le.Mode.ECI,0,d)}static isNumeric(h){return Le.NUMERIC_REGEX.test(h)}static isAlphanumeric(h){return Le.ALPHANUMERIC_REGEX.test(h)}getData(){return this.bitData.slice()}static getTotalBits(h,d){let y=0;for(const g of h){const x=g.mode.numCharCountBits(d);if(g.numChars>=1<<x)return 1/0;y+=4+x+g.bitData.length}return y}static toUtf8ByteArray(h){h=encodeURI(h);let d=[];for(let y=0;y<h.length;y++)h.charAt(y)!="%"?d.push(h.charCodeAt(y)):(d.push(parseInt(h.substring(y+1,y+3),16)),y+=2);return d}};p.NUMERIC_REGEX=/^[0-9]*$/,p.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,p.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let b=p;u.QrSegment=p})(aa||(aa={}));(u=>{(f=>{const o=class{constructor(v,p){this.ordinal=v,this.formatBits=p}};o.LOW=new o(0,1),o.MEDIUM=new o(1,0),o.QUARTILE=new o(2,3),o.HIGH=new o(3,2),f.Ecc=o})(u.QrCode||(u.QrCode={}))})(aa||(aa={}));(u=>{(f=>{const o=class{constructor(v,p){this.modeBits=v,this.numBitsCharCount=p}numCharCountBits(v){return this.numBitsCharCount[Math.floor((v+7)/17)]}};o.NUMERIC=new o(1,[10,12,14]),o.ALPHANUMERIC=new o(2,[9,11,13]),o.BYTE=new o(4,[8,16,16]),o.KANJI=new o(8,[8,10,12]),o.ECI=new o(7,[0,0,0]),f.Mode=o})(u.QrSegment||(u.QrSegment={}))})(aa||(aa={}));var Qa=aa;var Hg={L:Qa.QrCode.Ecc.LOW,M:Qa.QrCode.Ecc.MEDIUM,Q:Qa.QrCode.Ecc.QUARTILE,H:Qa.QrCode.Ecc.HIGH},am=128,nm="L",im="#FFFFFF",um="#000000",cm=!1,sm=1,Yg=4,qg=0,Gg=.1;function rm(u,f=0){const o=[];return u.forEach(function(r,v){let p=null;r.forEach(function(b,C){if(!b&&p!==null){o.push(`M${p+f} ${v+f}h${C-p}v1H${p+f}z`),p=null;return}if(C===r.length-1){if(!b)return;p===null?o.push(`M${C+f},${v+f} h1v1H${C+f}z`):o.push(`M${p+f},${v+f} h${C+1-p}v1H${p+f}z`);return}b&&p===null&&(p=C)})}),o.join("")}function om(u,f){return u.slice().map((o,r)=>r<f.y||r>=f.y+f.h?o:o.map((v,p)=>p<f.x||p>=f.x+f.w?v:!1))}function Qg(u,f,o,r){if(r==null)return null;const v=u.length+o*2,p=Math.floor(f*Gg),b=v/f,C=(r.width||p)*b,h=(r.height||p)*b,d=r.x==null?u.length/2-C/2:r.x*b,y=r.y==null?u.length/2-h/2:r.y*b,g=r.opacity==null?1:r.opacity;let x=null;if(r.excavate){let z=Math.floor(d),U=Math.floor(y),w=Math.ceil(C+d-z),q=Math.ceil(h+y-U);x={x:z,y:U,w,h:q}}const R=r.crossOrigin;return{x:d,y,h,w:C,excavation:x,opacity:g,crossOrigin:R}}function Vg(u,f){return f!=null?Math.max(Math.floor(f),0):u?Yg:qg}function fm({value:u,level:f,minVersion:o,includeMargin:r,marginSize:v,imageSettings:p,size:b,boostLevel:C}){let h=Ke.useMemo(()=>{const z=(Array.isArray(u)?u:[u]).reduce((U,w)=>(U.push(...Qa.QrSegment.makeSegments(w)),U),[]);return Qa.QrCode.encodeSegments(z,Hg[f],o,void 0,void 0,C)},[u,f,o,C]);const{cells:d,margin:y,numCells:g,calculatedImageSettings:x}=Ke.useMemo(()=>{let R=h.getModules();const z=Vg(r,v),U=R.length+z*2,w=Qg(R,b,z,p);return{cells:R,margin:z,numCells:U,calculatedImageSettings:w}},[h,b,p,r,v]);return{qrcode:h,margin:y,cells:d,numCells:g,calculatedImageSettings:x}}var Xg=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),Zg=Ke.forwardRef(function(f,o){const r=f,{value:v,size:p=am,level:b=nm,bgColor:C=im,fgColor:h=um,includeMargin:d=cm,minVersion:y=sm,boostLevel:g,marginSize:x,imageSettings:R}=r,U=lr(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:w}=U,q=lr(U,["style"]),G=R?.src,Q=Ke.useRef(null),I=Ke.useRef(null),$=Ke.useCallback(Me=>{Q.current=Me,typeof o=="function"?o(Me):o&&(o.current=Me)},[o]),[V,X]=Ke.useState(!1),{margin:J,cells:K,numCells:le,calculatedImageSettings:ze}=fm({value:v,level:b,minVersion:y,boostLevel:g,includeMargin:d,marginSize:x,imageSettings:R,size:p});Ke.useEffect(()=>{if(Q.current!=null){const Me=Q.current,he=Me.getContext("2d");if(!he)return;let D=K;const Z=I.current,ee=ze!=null&&Z!==null&&Z.complete&&Z.naturalHeight!==0&&Z.naturalWidth!==0;ee&&ze.excavation!=null&&(D=om(K,ze.excavation));const se=window.devicePixelRatio||1;Me.height=Me.width=p*se;const ve=p/le*se;he.scale(ve,ve),he.fillStyle=C,he.fillRect(0,0,le,le),he.fillStyle=h,Xg?he.fill(new Path2D(rm(D,J))):K.forEach(function(j,Y){j.forEach(function(k,F){k&&he.fillRect(F+J,Y+J,1,1)})}),ze&&(he.globalAlpha=ze.opacity),ee&&he.drawImage(Z,ze.x+J,ze.y+J,ze.w,ze.h)}}),Ke.useEffect(()=>{X(!1)},[G]);const $e=tr({height:p,width:p},w);let Et=null;return G!=null&&(Et=Ke.createElement("img",{src:G,key:G,style:{display:"none"},onLoad:()=>{X(!0)},ref:I,crossOrigin:ze?.crossOrigin})),Ke.createElement(Ke.Fragment,null,Ke.createElement("canvas",tr({style:$e,height:p,width:p,ref:$,role:"img"},q)),Et)});Zg.displayName="QRCodeCanvas";var dm=Ke.forwardRef(function(f,o){const r=f,{value:v,size:p=am,level:b=nm,bgColor:C=im,fgColor:h=um,includeMargin:d=cm,minVersion:y=sm,boostLevel:g,title:x,marginSize:R,imageSettings:z}=r,U=lr(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:w,cells:q,numCells:G,calculatedImageSettings:Q}=fm({value:v,level:b,minVersion:y,boostLevel:g,includeMargin:d,marginSize:R,imageSettings:z,size:p});let I=q,$=null;z!=null&&Q!=null&&(Q.excavation!=null&&(I=om(q,Q.excavation)),$=Ke.createElement("image",{href:z.src,height:Q.h,width:Q.w,x:Q.x+w,y:Q.y+w,preserveAspectRatio:"none",opacity:Q.opacity,crossOrigin:Q.crossOrigin}));const V=rm(I,w);return Ke.createElement("svg",tr({height:p,width:p,viewBox:`0 0 ${G} ${G}`,ref:o,role:"img"},U),!!x&&Ke.createElement("title",null,x),Ke.createElement("path",{fill:C,d:`M0,0 h${G}v${G}H0z`,shapeRendering:"crispEdges"}),Ke.createElement("path",{fill:h,d:V,shapeRendering:"crispEdges"}),$)});dm.displayName="QRCodeSVG";function Kg({tunnelUrl:u,onClose:f}){const[o,r]=S.useState(null),[v,p]=S.useState(0),[b,C]=S.useState(""),[h,d]=S.useState(null),[y,g]=S.useState(!1),[x,R]=S.useState(!1),z=S.useRef(null),U=S.useRef(null),w=S.useRef(null),q=o?`${u}/call?code=${o}`:`${u}/call`,G=S.useCallback(async()=>{r(null),C(""),d(null),g(!1);try{const V=await xt("/api/webrtc/generate-code");r(V.code),p(V.expiresAt)}catch(V){const X=V instanceof Error?V.message:V?.message||"Failed to generate code";d(X)}},[]);S.useEffect(()=>(G(),xe("/api/tunnel/status").then(V=>{if(V.startedAt){const X=Date.now()-V.startedAt;X<6e4&&(R(!0),w.current=setTimeout(()=>R(!1),6e4-X))}}).catch(()=>{}),()=>{z.current&&clearInterval(z.current),U.current&&clearInterval(U.current),w.current&&clearTimeout(w.current)}),[G]),S.useEffect(()=>{if(!v||y)return;const V=()=>{const X=Math.max(0,Math.floor((v-Date.now())/1e3));if(X<=0){C("Code expired"),z.current&&(clearInterval(z.current),z.current=null);return}const J=Math.floor(X/60),K=X%60;C(`Expires in ${J}:${String(K).padStart(2,"0")}`)};return V(),z.current=setInterval(V,1e3),()=>{z.current&&clearInterval(z.current)}},[v,y]),S.useEffect(()=>{if(!(!o||y))return U.current=setInterval(async()=>{try{!(await xe(`/api/webrtc/code-status?code=${o}`)).active&&Date.now()<v&&(g(!0),z.current&&(clearInterval(z.current),z.current=null),U.current&&(clearInterval(U.current),U.current=null))}catch{}},2e3),()=>{U.current&&clearInterval(U.current)}},[o,v,y]);const Q=V=>{V.target===V.currentTarget&&f()},I=o?`${o.slice(0,3)} ${o.slice(3)}`:"------",$=b==="Code expired";return s.jsx("div",{className:"modal-overlay visible",onClick:Q,children:s.jsxs("div",{className:"modal",style:{textAlign:"center"},children:[s.jsx("button",{className:"modal-close",onClick:f,children:"×"}),s.jsx("h2",{children:"Call via Browser"}),s.jsx("p",{style:{fontSize:12,color:"#999",marginBottom:12},children:"Scan the QR code or open the link on any device, then enter the pairing code."}),s.jsx("div",{className:"qr-container",children:q&&s.jsx(dm,{value:q,size:160,level:"M"})}),s.jsx("div",{className:"call-url",children:s.jsx("a",{href:q,target:"_blank",rel:"noreferrer",children:q})}),x&&s.jsx("div",{style:{fontSize:11,color:"#d29922",marginBottom:8},children:"Tunnel is warming up — link may take a moment to become reachable"}),y?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"pairing-code",style:{color:"#2ea043"},children:"Paired"}),s.jsx("div",{className:"pairing-countdown",style:{color:"#2ea043"},children:"Device connected successfully"})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"pairing-code",style:{opacity:$?.4:1},children:h?"Error":I}),s.jsx("div",{className:"pairing-countdown",children:h||b})]}),s.jsx("button",{className:"btn-regenerate",onClick:G,children:y?"New Code":"Regenerate Code"})]})})}function kg({twilioStatus:u,browserCallStatus:f,authStatus:o}){const[r,v]=S.useState([]),[p,b]=S.useState(!1),C=fl(),h=f.running&&!!f.tunnelUrl,[d,y]=S.useState(()=>localStorage.getItem("theme")==="dark"||!localStorage.getItem("theme")&&window.matchMedia("(prefers-color-scheme: dark)").matches);S.useEffect(()=>{xe("/api/conversations").then(v).catch(()=>{})},[]),S.useEffect(()=>{d?(document.body.classList.add("dark"),document.body.classList.remove("light"),localStorage.setItem("theme","dark")):(document.body.classList.remove("dark"),document.body.classList.add("light"),localStorage.setItem("theme","light"))},[d]);const g=x=>{const z=new Date(x.timestamp).toLocaleDateString(void 0,{month:"short",day:"numeric"}),U=x.firstMessage.slice(0,30);return`${z} - ${U}`};return s.jsxs("div",{className:"sidebar",children:[s.jsx("div",{style:{padding:"24px 16px 8px 24px",display:"flex",alignItems:"center",gap:10},children:s.jsx("span",{style:{fontSize:"28px",fontWeight:"400",fontFamily:"'IBM Plex Serif', serif",letterSpacing:"-0.5px",color:"var(--text-primary)"},children:"VoiceCC"})}),s.jsx("div",{style:{padding:"16px 12px 0"},children:s.jsxs("span",{style:{position:"relative"},className:"browser-call-wrap",children:[s.jsx("button",{className:"btn-browser-call",disabled:!h,onClick:()=>b(!0),children:"New Browser Session"}),!h&&s.jsx("span",{className:"browser-call-tooltip",children:"Enable in Settings!"})]})}),s.jsxs("div",{className:"sidebar-nav",children:[s.jsxs(Vt,{to:"/",className:`sidebar-item ${C.pathname==="/"?"active":""}`,style:{textDecoration:"none",display:"flex",alignItems:"center"},children:[s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),s.jsx("polyline",{points:"9 22 9 12 15 12 15 22"})]}),"Home"]}),s.jsxs(Vt,{to:"/settings",className:`sidebar-item ${C.pathname.startsWith("/settings")?"active":""}`,style:{textDecoration:"none",display:"flex",alignItems:"center"},children:[s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})]}),"Settings"]}),s.jsxs(Vt,{to:"/agents",className:`sidebar-item ${C.pathname.startsWith("/agents")?"active":""}`,style:{textDecoration:"none",display:"flex",alignItems:"center"},children:[s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),s.jsx("circle",{cx:"9",cy:"7",r:"4"}),s.jsx("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),s.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}),"Agents"]}),s.jsx("div",{className:"sidebar-section-label",style:{marginTop:16,flexShrink:0},children:"History"}),s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,flex:1,overflowY:"auto"},children:[r.length===0&&s.jsx("div",{style:{padding:"8px 12px",fontSize:13,color:"var(--text-secondary)"},children:"No history yet."}),r.map(x=>s.jsx(Vt,{to:`/c/${x.sessionId}`,className:`sidebar-conversation ${C.pathname===`/c/${x.sessionId}`?"active":""}`,title:x.firstMessage,style:{textDecoration:"none",display:"block"},children:g(x)},x.sessionId))]})]}),s.jsxs("div",{className:"sidebar-footer",children:[o===!1&&s.jsx("div",{style:{margin:"0 12px 8px",padding:"8px 10px",fontSize:12,color:"#d73a49",background:"var(--bg-tertiary)",borderRadius:6,border:"1px solid #d73a49"},children:"Claude not authenticated"}),s.jsxs("button",{className:"sidebar-item",onClick:()=>y(!d),children:[d?s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"5"}),s.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),s.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),s.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),s.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),s.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),s.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),s.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),s.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}):s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}),d?"Light Mode":"Dark Mode"]}),s.jsxs("button",{className:"sidebar-item",onClick:()=>{},children:[s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),s.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]}),"Support"]})]}),p&&f.tunnelUrl&&s.jsx(Kg,{tunnelUrl:f.tunnelUrl,onClose:()=>b(!1)})]})}function Jg(){const[u,f]=S.useState({running:!1,tunnelUrl:null}),[o,r]=S.useState({running:!1,tunnelUrl:null}),[v,p]=S.useState(null),[b,C]=S.useState(null),[h,d]=S.useState(!1);S.useEffect(()=>{const g=()=>{xe("/api/twilio/status").then(f).catch(()=>{}),xe("/api/browser-call/status").then(r).catch(()=>{})};g();const x=setInterval(g,5e3);return()=>clearInterval(x)},[]),S.useEffect(()=>{xe("/api/auth").then(g=>p(g.authenticated)).catch(()=>p(!1))},[]),S.useEffect(()=>{xe("/api/version").then(C).catch(()=>{})},[]);const y=b?.updateAvailable&&!h;return s.jsxs("div",{style:{display:"flex",height:"100vh"},children:[s.jsx(kg,{twilioStatus:u,browserCallStatus:o,authStatus:v}),s.jsxs("div",{className:"main",style:{display:"flex",flexDirection:"column",height:"100vh",overflow:"hidden"},children:[y&&s.jsxs("div",{style:{padding:"8px 16px",background:"var(--bg-surface)",borderBottom:"1px solid var(--border-color)",fontSize:12,color:"var(--text-secondary)",display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0},children:[s.jsxs("span",{children:["Update available: ",s.jsxs("strong",{style:{color:"var(--text-primary)"},children:["v",b.latest]})," (current: v",b.current,"). Run ",s.jsx("code",{style:{background:"var(--bg-main)",padding:"1px 5px",fontFamily:'"SF Mono", "Fira Code", monospace',fontSize:11,color:"var(--accent-color)"},children:"npm install -g voicecc"})," to update."]}),s.jsx("button",{onClick:()=>d(!0),style:{background:"none",border:"none",color:"var(--text-secondary)",cursor:"pointer",fontSize:14,padding:"0 4px",lineHeight:1},children:"x"})]}),s.jsx(Ip,{context:{authStatus:v,setAuthStatus:p}})]})]})}function $g({onClose:u,onAuthenticated:f}){const[o,r]=S.useState(""),[v,p]=S.useState(!1),[b,C]=S.useState(null),h=y=>{y.target===y.currentTarget&&u()},d=async()=>{const y=o.trim();if(y){p(!0),C(null);try{(await xt("/api/auth/token",{token:y})).authenticated?(f(),u()):C("Token was saved but authentication failed. Check that the token is valid.")}catch(g){const x=g?.message||"Failed to save token";C(x)}p(!1)}};return s.jsx("div",{className:"modal-overlay visible",onClick:h,children:s.jsxs("div",{className:"modal",style:{width:500},children:[s.jsx("button",{className:"modal-close",onClick:u,children:"×"}),s.jsx("h2",{children:"Authenticate with Claude"}),s.jsxs("div",{style:{fontSize:13,color:"var(--text-secondary)",marginBottom:16,lineHeight:1.5},children:[s.jsx("p",{style:{marginBottom:12},children:"Run the following command in your terminal to generate a token:"}),s.jsx("code",{style:{display:"block",background:"var(--bg-main)",border:"1px solid var(--border-color)",padding:"8px 12px",fontFamily:'"SF Mono", "Fira Code", monospace',fontSize:12,color:"var(--accent-color)",marginBottom:12},children:"claude setup-token"}),s.jsx("p",{children:"Complete the sign-in in your browser, then paste the token below."})]}),s.jsx("input",{type:"password",placeholder:"sk-ant-oat01-...",value:o,onChange:y=>r(y.target.value),onKeyDown:y=>{y.key==="Enter"&&d()},style:{width:"100%",padding:"8px 10px",fontSize:13,fontFamily:'"SF Mono", "Fira Code", monospace',background:"var(--bg-main)",border:"1px solid var(--border-color)",color:"var(--text-primary)",boxSizing:"border-box"}}),b&&s.jsx("p",{style:{fontSize:12,color:"#d73a49",marginTop:8},children:b}),s.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:16},children:[s.jsx("button",{onClick:u,style:{background:"var(--btn-secondary-bg)",color:"var(--btn-secondary-text)",border:"1px solid var(--btn-secondary-border)"},children:"Cancel"}),s.jsx("button",{onClick:d,disabled:v||!o.trim(),children:v?"Saving...":"Save token"})]})]})})}function Wg(){const{authStatus:u,setAuthStatus:f}=Lp(),[o,r]=S.useState(null),[v,p]=S.useState(null),[b,C]=S.useState(!1);return S.useEffect(()=>{xe("/api/browser-call/status").then(h=>r(h.running)).catch(()=>r(!1)),xe("/api/mcp-servers").then(h=>p(h.servers)).catch(()=>p([]))},[]),s.jsxs("div",{className:"page active",style:{display:"flex",flexDirection:"column"},children:[s.jsx("div",{className:"page-header",style:{padding:"48px 64px 24px"},children:s.jsxs("div",{children:[s.jsx("h1",{children:"Getting started"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginTop:4},children:"Set up your environment to get started."})]})}),s.jsxs("div",{style:{padding:"0 64px 48px"},children:[s.jsxs("div",{className:"settings-panel",children:[s.jsx("h2",{style:{fontSize:16,fontWeight:600,color:"var(--text-primary)",marginBottom:4},children:"Connect your Claude Code"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginBottom:20},children:"VoiceCC needs an authenticated Claude Code session to work. The check below verifies your local CLI is logged in."}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[s.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:u===null?"#666":u?"var(--accent-color)":"#d73a49",flexShrink:0}}),s.jsx("span",{style:{fontSize:13,color:u===null?"var(--text-secondary)":u?"var(--accent-color)":"#d73a49"},children:u===null?"Checking authentication...":u?"Claude Code is authenticated":"Claude Code is not authenticated"})]}),u===!1&&s.jsx("div",{className:"settings-actions",children:s.jsx("button",{onClick:()=>C(!0),children:"Set up authentication"})})]}),b&&s.jsx($g,{onClose:()=>C(!1),onAuthenticated:()=>f(!0)}),s.jsxs("div",{className:"settings-panel",children:[s.jsx("h2",{style:{fontSize:16,fontWeight:600,color:"var(--text-primary)",marginBottom:4},children:"Enable calling from anywhere"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginBottom:20},children:"Call your voice assistant from any device using a browser."}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[s.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:o===null?"#666":o?"var(--accent-color)":"#d73a49",flexShrink:0}}),s.jsx("span",{style:{fontSize:13,color:o===null?"var(--text-secondary)":o?"var(--accent-color)":"#d73a49"},children:o===null?"Checking status...":o?"Browser calling is active":"Browser calling is not enabled"})]}),o===!1&&s.jsx("div",{className:"settings-actions",children:s.jsx(Vt,{to:"/settings?tab=integrations",style:{textDecoration:"none"},children:s.jsx("button",{children:"Set up in Settings"})})})]}),s.jsxs("div",{className:"settings-panel",children:[s.jsx("h2",{style:{fontSize:16,fontWeight:600,color:"var(--text-primary)",marginBottom:4},children:"MCP Integrations"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginBottom:20},children:"Connect external tools and services via MCP servers."}),v===null&&s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[s.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:"#666",flexShrink:0}}),s.jsx("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Checking..."})]}),v!==null&&v.length===0&&s.jsx("div",{className:"settings-actions",children:s.jsx(Vt,{to:"/settings?tab=integrations",style:{textDecoration:"none"},children:s.jsx("button",{children:"Set up in Settings"})})}),v!==null&&v.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6},children:v.map(h=>s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[s.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:h.status==="connected"?"var(--accent-color)":h.status==="needs_auth"?"#d29922":"#d73a49",flexShrink:0}}),s.jsx("span",{style:{fontSize:13,color:"var(--text-primary)"},children:h.name})]},h.name))}),s.jsx("div",{className:"settings-actions",children:s.jsx(Vt,{to:"/settings?tab=integrations",style:{textDecoration:"none"},children:s.jsx("button",{children:"Add more in Settings"})})})]})]})]})]})}function Fg({twilioRunning:u}){const[f,o]=S.useState(""),[r,v]=S.useState(""),[p,b]=S.useState(""),[C,h]=S.useState(!1);S.useEffect(()=>{xe("/api/settings").then(y=>{o(y.MAX_CONCURRENT_SESSIONS||""),v(y.USER_PHONE_NUMBER||"")}).catch(()=>b("Error loading settings"))},[]);const d=S.useCallback(async()=>{h(!0),b("Saving...");try{await xt("/api/settings",{MAX_CONCURRENT_SESSIONS:f,USER_PHONE_NUMBER:r}),b("Saved!"),setTimeout(()=>b(y=>y==="Saved!"?"":y),2e3)}catch{b("Error saving settings")}h(!1)},[f,r]);return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"page-header",style:{borderBottom:"none",padding:0,marginBottom:24},children:s.jsxs("div",{children:[s.jsx("h1",{children:"General Settings"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginTop:4},children:"Manage your workspace settings and core behavior."})]})}),s.jsxs("div",{className:"settings-panel",children:[s.jsx("h2",{style:{fontSize:16,fontWeight:600,color:"var(--text-primary)",marginBottom:4},children:"General Options"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginBottom:20},children:"Configure the core behavior of your voice assistant instance."}),s.jsxs("div",{className:"settings-row",children:[s.jsx("label",{htmlFor:"setting-max-sessions",style:{fontWeight:500,color:"var(--text-primary)"},children:"Max Concurrent Sessions"}),s.jsx("input",{type:"text",id:"setting-max-sessions",placeholder:"2",value:f,onChange:y=>o(y.target.value)})]}),s.jsxs("div",{className:"settings-row",children:[s.jsx("label",{htmlFor:"setting-user-phone",style:{fontWeight:500,color:"var(--text-primary)"},children:"Your Phone Number"}),s.jsx("input",{type:"text",id:"setting-user-phone",placeholder:"+15551234567",value:r,onChange:y=>v(y.target.value)})]}),s.jsxs("div",{className:"settings-actions",style:{marginTop:20},children:[s.jsx("button",{disabled:C,onClick:d,children:"Save changes"}),s.jsx("span",{className:"settings-status",children:p})]})]})]})}const hm="JBFqnCBsd6RMkjVDRZzb",mm="eleven_turbo_v2_5",ym="scribe_v1";async function Ig(){return xe("/api/providers/tts")}async function Pg(){return xe("/api/providers/stt")}async function e0(){return xe("/api/settings")}function t0({status:u}){let f,o,r;return u.ready?(f="Ready",o="rgba(34, 197, 94, 0.15)",r="#22c55e"):u.reason==="missing_api_key"?(f="Missing API Key",o="rgba(239, 68, 68, 0.15)",r="#ef4444"):(f="Unknown",o="rgba(156, 163, 175, 0.15)",r="#9ca3af"),s.jsx("span",{style:{display:"inline-block",padding:"2px 8px",borderRadius:"4px",fontSize:"11px",fontWeight:600,background:o,color:r},children:f})}function Nh({provider:u,selected:f,onSelect:o,onAction:r,actionLabel:v,actionDisabled:p}){const b=!u.status.ready;return s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 12px",border:f?"1px solid var(--btn-primary-bg)":"1px solid var(--border-color)",borderRadius:"4px",background:f?"rgba(59, 130, 246, 0.05)":"var(--bg-main)",cursor:b?"default":"pointer",transition:"all 0.15s ease"},onClick:b?void 0:o,children:[s.jsx("input",{type:"radio",checked:f,disabled:b,onChange:b?void 0:o,style:{margin:0,cursor:b?"default":"pointer"}}),s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[s.jsx("span",{style:{fontSize:"13px",fontWeight:600,color:"var(--text-primary)"},children:u.name}),s.jsx(t0,{status:u.status})]}),s.jsx("div",{style:{fontSize:"12px",color:"var(--text-secondary)",marginTop:"2px"},children:u.description})]}),r&&v&&s.jsx("button",{disabled:p,onClick:C=>{C.stopPropagation(),r()},style:{padding:"4px 12px",fontSize:"12px",background:"var(--btn-primary-bg)",color:"var(--btn-primary-text)",border:"none",borderRadius:"4px",cursor:p?"default":"pointer",opacity:p?.6:1},children:v})]})}const Vn={marginBottom:14},Xn={display:"block",fontSize:12,fontWeight:500,color:"var(--text-primary)",marginBottom:4},Zn={width:"100%",boxSizing:"border-box"},vm={display:"flex",justifyContent:"flex-end",gap:8,marginTop:8},pm={padding:"6px 16px",fontSize:"13px",background:"var(--bg-main)",color:"var(--text-primary)",border:"1px solid var(--border-color)",borderRadius:"4px",cursor:"pointer"},gm={padding:"6px 16px",fontSize:"13px",background:"var(--btn-primary-bg)",color:"var(--btn-primary-text)",border:"none",borderRadius:"4px",cursor:"pointer"};function l0({apiKey:u,voiceId:f,modelId:o,onSave:r,onClose:v}){const[p,b]=S.useState(u),[C,h]=S.useState(f),[d,y]=S.useState(o),g=()=>{r({apiKey:p,voiceId:C,modelId:d}),v()};return s.jsx("div",{className:"modal-overlay visible",onClick:x=>{x.target===x.currentTarget&&v()},children:s.jsxs("div",{className:"modal",style:{width:480},children:[s.jsx("button",{className:"modal-close",onClick:v,children:"×"}),s.jsx("h2",{children:"ElevenLabs TTS"}),s.jsx("p",{style:{fontSize:12,color:"var(--text-secondary)",marginBottom:16},children:"Configure API key, voice, and model for ElevenLabs text-to-speech."}),s.jsxs("div",{style:Vn,children:[s.jsx("label",{style:Xn,children:"API Key"}),s.jsx("input",{type:"password",value:p,onChange:x=>b(x.target.value),placeholder:"Enter your ElevenLabs API key",style:Zn})]}),s.jsxs("div",{style:Vn,children:[s.jsx("label",{style:Xn,children:"Voice ID"}),s.jsx("input",{type:"text",value:C,onChange:x=>h(x.target.value),placeholder:hm,style:Zn})]}),s.jsxs("div",{style:Vn,children:[s.jsx("label",{style:Xn,children:"TTS Model ID"}),s.jsx("input",{type:"text",value:d,onChange:x=>y(x.target.value),placeholder:mm,style:Zn})]}),s.jsxs("div",{style:vm,children:[s.jsx("button",{onClick:v,style:pm,children:"Cancel"}),s.jsx("button",{onClick:g,style:gm,children:"Apply"})]})]})})}function a0({apiKey:u,sttModelId:f,onSave:o,onClose:r}){const[v,p]=S.useState(u),[b,C]=S.useState(f),h=()=>{o({apiKey:v,sttModelId:b}),r()};return s.jsx("div",{className:"modal-overlay visible",onClick:d=>{d.target===d.currentTarget&&r()},children:s.jsxs("div",{className:"modal",style:{width:480},children:[s.jsx("button",{className:"modal-close",onClick:r,children:"×"}),s.jsx("h2",{children:"ElevenLabs STT"}),s.jsx("p",{style:{fontSize:12,color:"var(--text-secondary)",marginBottom:16},children:"Configure API key and model for ElevenLabs speech-to-text."}),s.jsxs("div",{style:Vn,children:[s.jsx("label",{style:Xn,children:"API Key"}),s.jsx("input",{type:"password",value:v,onChange:d=>p(d.target.value),placeholder:"Enter your ElevenLabs API key",style:Zn})]}),s.jsxs("div",{style:Vn,children:[s.jsx("label",{style:Xn,children:"STT Model ID"}),s.jsx("input",{type:"text",value:b,onChange:d=>C(d.target.value),placeholder:ym,style:Zn})]}),s.jsxs("div",{style:vm,children:[s.jsx("button",{onClick:r,style:pm,children:"Cancel"}),s.jsx("button",{onClick:h,style:gm,children:"Apply"})]})]})})}function n0(){const[u,f]=S.useState([]),[o,r]=S.useState([]),[v,p]=S.useState("elevenlabs"),[b,C]=S.useState("elevenlabs"),[h,d]=S.useState(""),[y,g]=S.useState(hm),[x,R]=S.useState(mm),[z,U]=S.useState(ym),[w,q]=S.useState(null),G=S.useCallback(async V=>{try{await xt("/api/settings",V)}catch{}},[]);S.useEffect(()=>{Ig().then(V=>{f(V.providers),p(V.active)}).catch(()=>{}),Pg().then(V=>{r(V.providers),C(V.active)}).catch(()=>{}),e0().then(V=>{V.ELEVENLABS_API_KEY&&d(V.ELEVENLABS_API_KEY),V.ELEVENLABS_VOICE_ID&&g(V.ELEVENLABS_VOICE_ID),V.ELEVENLABS_MODEL_ID&&R(V.ELEVENLABS_MODEL_ID),V.ELEVENLABS_STT_MODEL_ID&&U(V.ELEVENLABS_STT_MODEL_ID)}).catch(()=>{})},[]);const Q=S.useCallback(V=>{p(V),G({TTS_PROVIDER:V})},[G]),I=S.useCallback(V=>{C(V),G({STT_PROVIDER:V})},[G]),$=(V,X,J)=>{const K=J==="tts"?"elevenlabs-tts":"elevenlabs-stt";return{label:"Configure",onAction:()=>q({kind:K})}};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"page-header",style:{borderBottom:"none",padding:0,marginBottom:24},children:s.jsxs("div",{children:[s.jsx("h1",{children:"Voice Providers"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginTop:4},children:"Select and configure TTS and STT providers. Changes take effect on the next voice session."})]})}),s.jsxs("div",{className:"settings-panel",style:{marginBottom:24},children:[s.jsx("h2",{style:{fontSize:16,fontWeight:600,color:"var(--text-primary)",marginBottom:4},children:"TTS Provider"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginBottom:16},children:"Choose which text-to-speech engine to use."}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:u.map(V=>{const X=$(V.type,V.status,"tts");return s.jsx(Nh,{provider:V,selected:v===V.type,onSelect:()=>Q(V.type),onAction:X.onAction,actionLabel:X.label},V.type)})})]}),s.jsxs("div",{className:"settings-panel",style:{marginBottom:24},children:[s.jsx("h2",{style:{fontSize:16,fontWeight:600,color:"var(--text-primary)",marginBottom:4},children:"STT Provider"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginBottom:16},children:"Choose which speech-to-text engine to use."}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:o.map(V=>{const X=$(V.type,V.status,"stt");return s.jsx(Nh,{provider:V,selected:b===V.type,onSelect:()=>I(V.type),onAction:X.onAction,actionLabel:X.label},V.type)})})]}),w?.kind==="elevenlabs-tts"&&s.jsx(l0,{apiKey:h,voiceId:y,modelId:x,onSave:V=>{d(V.apiKey),g(V.voiceId),R(V.modelId),G({ELEVENLABS_API_KEY:V.apiKey,ELEVENLABS_VOICE_ID:V.voiceId,ELEVENLABS_MODEL_ID:V.modelId})},onClose:()=>q(null)}),w?.kind==="elevenlabs-stt"&&s.jsx(a0,{apiKey:h,sttModelId:z,onSave:V=>{d(V.apiKey),U(V.sttModelId),G({ELEVENLABS_API_KEY:V.apiKey,ELEVENLABS_STT_MODEL_ID:V.sttModelId})},onClose:()=>q(null)})]})}function i0({onClose:u}){const[f,o]=S.useState(""),[r,v]=S.useState(""),[p,b]=S.useState(null),[C,h]=S.useState([]),[d,y]=S.useState(""),[g,x]=S.useState(!1),[R,z]=S.useState(!1),[U,w]=S.useState(""),[q,G]=S.useState("");S.useEffect(()=>{xe("/api/settings").then(le=>{le.TWILIO_ACCOUNT_SID&&o(le.TWILIO_ACCOUNT_SID),le.TWILIO_AUTH_TOKEN&&v(le.TWILIO_AUTH_TOKEN)}).catch(()=>{}),xe("/api/integrations").then(le=>x(le.twilio.enabled)).catch(()=>{}),Q();const K=setInterval(Q,5e3);return()=>clearInterval(K)},[]),S.useEffect(()=>{f&&r&&xe("/api/twilio/phone-numbers").then(K=>h(K.numbers||[])).catch(()=>{})},[f,r]);const Q=()=>{xe("/api/twilio/status").then(b).catch(()=>{})},I=S.useCallback(async(K,le)=>{try{return await xt("/api/settings",{[K]:le}),!0}catch{return!1}},[]),$=S.useCallback(async()=>{const K=!g;z(!0);try{await xt("/api/integrations/twilio",{enabled:K}),x(K),Q()}catch(le){const ze=le instanceof Error?le.message:le?.message||"Failed";y(ze),setTimeout(()=>y(""),4e3)}finally{z(!1)}},[g]),V=K=>{K.target===K.currentTarget&&u()},X=p?.running??!1,J=p?.tunnelUrl?`${p.tunnelUrl}/twilio/incoming-call`:null;return s.jsx("div",{className:"modal-overlay visible",onClick:V,children:s.jsxs("div",{className:"modal",children:[s.jsx("button",{className:"modal-close",onClick:u,children:"×"}),s.jsx("h2",{children:"Twilio Voice Setup"}),s.jsxs("div",{className:"setup-step",children:[s.jsxs("div",{className:"setup-step-title",children:[s.jsx("span",{className:"setup-step-number",children:"1"}),"Create a Twilio account"]}),s.jsxs("div",{className:"setup-step-desc",children:["Sign up at ",s.jsx("a",{href:"https://www.twilio.com/try-twilio",target:"_blank",rel:"noreferrer",children:"twilio.com/try-twilio"}),". Copy your Account SID and Auth Token from the console dashboard."]}),s.jsxs("div",{className:"setup-paste-row",children:[s.jsx("input",{type:"text",placeholder:"Account SID (ACxxxxxxxx...)",value:f,onChange:K=>o(K.target.value)}),s.jsx(Mh,{onClick:()=>I("TWILIO_ACCOUNT_SID",f.trim())})]}),s.jsxs("div",{className:"setup-paste-row",children:[s.jsx("input",{type:"text",placeholder:"Auth Token",value:r,onChange:K=>v(K.target.value)}),s.jsx(Mh,{onClick:()=>I("TWILIO_AUTH_TOKEN",r.trim())})]})]}),s.jsxs("div",{className:"setup-step",children:[s.jsxs("div",{className:"setup-step-title",children:[s.jsx("span",{className:"setup-step-number",children:"2"}),"Get a phone number"]}),s.jsxs("div",{className:"setup-step-desc",children:["In the Twilio console, go to ",s.jsx("strong",{children:"Phone Numbers"})," → ",s.jsx("strong",{children:"Buy a Number"}),". Pick any number with voice capability."]})]}),s.jsx("hr",{className:"setup-divider"}),s.jsxs("div",{className:"setup-step",children:[s.jsxs("div",{className:"setup-step-title",children:[s.jsx("span",{className:"setup-step-number",children:"3"}),X?"Server running":"Enable integration"]}),s.jsxs("div",{className:"setup-step-desc",children:[X?s.jsxs(s.Fragment,{children:["Server is running.",p?.tunnelUrl&&s.jsxs(s.Fragment,{children:[" Tunnel URL: ",s.jsx("code",{children:p.tunnelUrl})]})]}):"Enable to start the Twilio server and auto-start on boot.",d&&s.jsx("div",{style:{color:"#d73a49",marginTop:4,fontSize:12},children:d})]}),s.jsx("div",{className:"setup-paste-row",children:s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8,cursor:R?"wait":"pointer"},children:[s.jsx("input",{type:"checkbox",checked:g,disabled:R,onChange:$,style:{width:16,height:16,cursor:R?"wait":"pointer"}}),s.jsx("span",{style:{fontSize:14,fontWeight:500,color:"var(--text-primary)"},children:R?g?"Stopping...":"Starting...":"Enabled"})]})})]}),s.jsxs("div",{className:"setup-step",children:[s.jsxs("div",{className:"setup-step-title",children:[s.jsx("span",{className:"setup-step-number",children:"4"}),"Configure the Twilio webhook"]}),s.jsx("div",{className:"setup-step-desc",children:J?s.jsxs(s.Fragment,{children:["In the Twilio console, go to your phone number's configuration.",s.jsx("br",{}),"Under ",s.jsx("strong",{children:"Voice & Fax"})," → ",s.jsx("strong",{children:"A Call Comes In"}),", set:",s.jsx("br",{}),s.jsx("code",{style:{userSelect:"all",cursor:"text"},children:J}),s.jsx("br",{}),"Method: ",s.jsx("strong",{children:"HTTP POST"})]}):"Start the server first, then the webhook URL will appear here."})]}),s.jsx("hr",{className:"setup-divider"}),s.jsxs("div",{className:"setup-step",children:[s.jsxs("div",{className:"setup-step-title",children:[s.jsx("span",{className:"setup-step-number",children:"5"}),"Your phone number"]}),s.jsx("div",{className:"setup-step-desc",children:C.length>0?s.jsxs(s.Fragment,{children:["Call this number to talk to Claude:",s.jsx("br",{}),C.map(K=>s.jsx("strong",{style:{color:"#d4d4d4",fontSize:16,fontFamily:"SF Mono, Fira Code, monospace",display:"inline-block",marginTop:4},children:K.phoneNumber},K.phoneNumber))]}):f&&r?"Fetching phone number...":"Set your Account SID and Auth Token to fetch your phone number."})]}),s.jsx("hr",{className:"setup-divider"}),s.jsxs("div",{className:"setup-step",children:[s.jsxs("div",{className:"setup-step-title",children:[s.jsx("span",{className:"setup-step-number",children:"6"}),"Test your setup"]}),s.jsxs("div",{className:"setup-step-desc",children:["Enter your phone number and we'll call you with a test message.",q&&s.jsx("div",{style:{color:q.startsWith("Error")?"#d73a49":"#2ea043",marginTop:4,fontSize:12},children:q})]}),s.jsxs("div",{className:"setup-paste-row",children:[s.jsx("input",{type:"tel",placeholder:"+1234567890",value:U,onChange:K=>w(K.target.value)}),s.jsx("button",{disabled:!U.trim()||!f||!r||q==="Calling...",onClick:async()=>{G("Calling...");try{await xt("/api/twilio/test-call",{to:U.trim()}),G("Call initiated! Check your phone.")}catch(K){const le=K instanceof Error?K.message:K?.message||"Failed";G(`Error: ${le}`)}setTimeout(()=>G(""),6e3)},children:"Test Call"})]})]})]})})}function Mh({onClick:u}){const[f,o]=S.useState("Apply"),[r,v]=S.useState(!1),p=async()=>{o("Saving...");const b=await u();o(b?"Saved":"Error"),v(b),setTimeout(()=>{o("Apply"),v(!1)},1500)};return s.jsx("button",{className:r?"applied":"",onClick:p,children:f})}const u0=5e3;function c0({onClose:u}){const[f,o]=S.useState(null),[r,v]=S.useState(""),[p,b]=S.useState(!1),[C,h]=S.useState(!1);S.useEffect(()=>{xe("/api/integrations").then(U=>b(U.browserCall.enabled)).catch(()=>{}),d();const z=setInterval(d,u0);return()=>clearInterval(z)},[]);const d=()=>{xe("/api/browser-call/status").then(o).catch(()=>{})},y=S.useCallback(async()=>{const z=!p;h(!0);try{await xt("/api/integrations/browser-call",{enabled:z}),b(z),d()}catch(U){const w=U instanceof Error?U.message:U?.message||"Failed";v(w),setTimeout(()=>v(""),4e3)}finally{h(!1)}},[p]),g=z=>{z.target===z.currentTarget&&u()},x=f?.running??!1,R=f?.tunnelUrl?`${f.tunnelUrl}/call`:null;return s.jsx("div",{className:"modal-overlay visible",onClick:g,children:s.jsxs("div",{className:"modal",children:[s.jsx("button",{className:"modal-close",onClick:u,children:"×"}),s.jsx("h2",{children:"Browser Call from Anywhere"}),s.jsxs("div",{className:"setup-step",children:[s.jsxs("div",{className:"setup-step-title",children:[s.jsx("span",{className:"setup-step-number",children:"1"}),x?"Server running":"Enable integration"]}),s.jsxs("div",{className:"setup-step-desc",children:[x?s.jsxs(s.Fragment,{children:["Server is running.",f?.tunnelUrl&&s.jsxs(s.Fragment,{children:[" Tunnel URL: ",s.jsx("code",{children:f.tunnelUrl})]})]}):"Enable to start the browser call server and auto-start on boot.",r&&s.jsx("div",{style:{color:"#d73a49",marginTop:4,fontSize:12},children:r})]}),s.jsx("div",{className:"setup-paste-row",children:s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8,cursor:C?"wait":"pointer"},children:[s.jsx("input",{type:"checkbox",checked:p,disabled:C,onChange:y,style:{width:16,height:16,cursor:C?"wait":"pointer"}}),s.jsx("span",{style:{fontSize:14,fontWeight:500,color:"var(--text-primary)"},children:C?p?"Stopping...":"Starting...":"Enabled"})]})})]}),s.jsx("hr",{className:"setup-divider"}),s.jsxs("div",{className:"setup-step",children:[s.jsxs("div",{className:"setup-step-title",children:[s.jsx("span",{className:"setup-step-number",children:"2"}),"Call from any device"]}),s.jsx("div",{className:"setup-step-desc",children:R?s.jsxs(s.Fragment,{children:["Open this URL on any device to start a voice call:",s.jsx("br",{}),s.jsx("a",{href:R,target:"_blank",rel:"noreferrer",style:{wordBreak:"break-all"},children:R}),s.jsx("br",{}),"Or use the ",s.jsx("strong",{children:"Call via Browser"})," button in the sidebar to get a QR code."]}):"Start the server first (step 2), then the call page URL will appear here."})]})]})})}const s0=[{name:"notion",description:"Connect to Notion workspaces, pages, and databases.",url:"https://mcp.notion.com/mcp",transport:"http"},{name:"figma",description:"Read Figma designs, components, and design tokens.",url:"https://mcp.figma.com/mcp",transport:"http"},{name:"sentry",description:"Access Sentry issues, events, and project data.",url:"https://mcp.sentry.dev/mcp",transport:"http"},{name:"context7",description:"Fetch up-to-date library docs and code examples.",url:"https://mcp.context7.com/mcp",transport:"http"},{name:"langfuse",description:"Search Langfuse documentation and API references.",url:"https://langfuse.com/api/mcp",transport:"http"},{name:"slack",description:"Send messages, create canvases, and fetch Slack data.",url:"https://mcp.slack.com/mcp",transport:"http"},{name:"atlassian",description:"Access Jira & Confluence from Claude.",url:"https://mcp.atlassian.com/v1/mcp",transport:"http"},{name:"linear",description:"Manage issues, projects & team workflows in Linear.",url:"https://mcp.linear.app/mcp",transport:"http"},{name:"gamma",description:"Create presentations, docs, socials, and sites with AI.",url:"https://mcp.gamma.app/mcp",transport:"http"},{name:"granola",description:"The AI notepad for meetings.",url:"https://mcp.granola.ai/mcp",transport:"http"}];function Sm({message:u,onDismiss:f,timeout:o=4e3}){return S.useEffect(()=>{if(!u)return;const r=setTimeout(f,o);return()=>clearTimeout(r)},[u,f,o]),u?s.jsxs("div",{className:"toast",children:[s.jsx("span",{children:u}),s.jsx("button",{className:"toast-close",onClick:f,children:"×"})]}):null}function r0({servers:u,onClose:f,onAdded:o}){const[r,v]=S.useState(null),[p,b]=S.useState(null),C=u===null,h=g=>u?.find(x=>x.url===g),d=g=>{g.target===g.currentTarget&&f()},y=async g=>{v(g.name);try{await xt("/api/mcp-servers/add",{name:g.name,url:g.url,transport:g.transport,scope:"user"}),await o()}catch(x){const R=x?.message||"Failed to add server";b(R)}v(null)};return s.jsxs("div",{className:"modal-overlay visible",onClick:d,children:[s.jsxs("div",{className:"modal",style:{width:620},children:[s.jsx("button",{className:"modal-close",onClick:f,children:"×"}),s.jsx("h2",{children:"Add MCP Server"}),s.jsx("p",{style:{fontSize:12,color:"var(--text-secondary)",marginBottom:16},children:"Select a server to add. Authentication is handled automatically via your browser."}),s.jsx("div",{className:"mcp-add-grid",children:s0.map(g=>{const x=h(g.url),R=x?.status==="needs_auth",z=x?.status==="connected",U=r===g.name;return s.jsxs("div",{className:`mcp-add-card${z?" installed":""}`,children:[s.jsxs("div",{className:"mcp-add-card-header",children:[s.jsx("span",{className:"mcp-add-card-name",children:g.name}),z&&s.jsx("span",{className:"mcp-add-card-badge",children:"Installed"}),R&&s.jsx("span",{className:"mcp-add-card-badge needs-auth",children:"Needs authentication"})]}),s.jsx("p",{className:"mcp-add-card-desc",children:g.description}),s.jsxs("div",{className:"mcp-add-card-footer",children:[s.jsx("span",{className:"mcp-add-card-url",children:g.url}),C?s.jsx("span",{style:{fontSize:11,color:"var(--text-secondary)"},children:"Loading..."}):!x&&s.jsx("button",{className:"mcp-add-card-btn",disabled:U,onClick:()=>y(g),children:U?"Adding...":"Add"})]})]},g.url)})})]}),s.jsx(Sm,{message:p,onDismiss:()=>b(null)})]})}function o0({twilioRunning:u,browserCallRunning:f}){const[o,r]=S.useState(null),[v,p]=S.useState(!1),[b,C]=S.useState(!1),[h,d]=S.useState(!1),[y,g]=S.useState(!1),[x,R]=S.useState(null),z=S.useCallback(async()=>{try{const q=await xe("/api/mcp-servers");r(q.servers)}catch{p(!0)}},[]);S.useEffect(()=>{z()},[z]);const U=q=>q==="connected"?"connected":q==="needs_auth"?"needs-auth":"failed",w=q=>q==="connected"?"Connected":q==="needs_auth"?"Needs auth":"Failed";return s.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[s.jsx("div",{className:"page-header",style:{borderBottom:"none",padding:0,marginBottom:24},children:s.jsxs("div",{children:[s.jsx("h1",{children:"Integrations & MCP"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginTop:4},children:"Connect external services and configure MCP servers."})]})}),s.jsxs("div",{className:"integrations-panel",children:[s.jsx("h2",{style:{fontSize:16,fontWeight:600,color:"var(--text-primary)",marginBottom:4},children:"Integrations"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginBottom:20},children:"Connect external services to enable voice calling capabilities."}),s.jsxs("div",{style:{display:"flex",gap:12},children:[s.jsxs("button",{className:"btn-integration",onClick:()=>C(!0),children:[s.jsx("span",{className:`integration-dot${u?" running":""}`}),"Twilio"]}),s.jsxs("button",{className:"btn-integration",onClick:()=>d(!0),children:[s.jsx("span",{className:`integration-dot${f?" running":""}`}),"Browser Call from Anywhere"]})]})]}),s.jsxs("div",{className:"mcp-panel",children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:4},children:[s.jsxs("div",{children:[s.jsx("h2",{style:{fontSize:16,fontWeight:600,color:"var(--text-primary)",marginBottom:4},children:"MCP Servers"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginBottom:20},children:"Configure Model Context Protocol servers to provide external tools to Claude."})]}),s.jsx("button",{className:"mcp-add-btn",onClick:()=>g(!0),children:"+ Add MCP Server"})]}),s.jsxs("div",{className:"mcp-server-list",children:[!o&&!v&&s.jsx("div",{className:"mcp-loading",children:"Loading..."}),v&&s.jsx("div",{className:"mcp-error",children:"Failed to load MCP servers."}),o&&o.length===0&&s.jsx("div",{className:"mcp-loading",style:{color:"var(--text-secondary)",fontSize:13},children:"No MCP servers configured."}),o?.map(q=>{const G=q.scope==="user";return s.jsxs("div",{className:"mcp-server-row",children:[s.jsx("span",{className:`mcp-dot ${U(q.status)}`}),s.jsx("span",{className:"mcp-server-name",children:q.name}),s.jsx("span",{className:"mcp-server-url",title:q.url,children:q.url}),s.jsx("span",{className:"mcp-server-badge",children:q.type.toUpperCase()}),s.jsx("span",{className:`mcp-server-status ${U(q.status)}`,children:w(q.status)}),s.jsxs("span",{className:"mcp-delete-wrap",children:[s.jsx("button",{className:`mcp-delete-btn${G?" disabled":""}`,onClick:()=>{G||em(`/api/mcp-servers/${q.name}`).then(z).catch(Q=>{R(Q?.message||"Failed to remove server")})},children:"×"}),s.jsx("span",{className:"mcp-delete-tooltip",children:G?"Globally installed, please delete through Claude Code":`Remove ${q.name}`})]})]},q.name)})]})]}),b&&s.jsx(i0,{onClose:()=>C(!1)}),h&&s.jsx(c0,{onClose:()=>d(!1)}),y&&s.jsx(r0,{servers:o,onClose:()=>g(!1),onAdded:z}),s.jsx(Sm,{message:x,onDismiss:()=>R(null)})]})}function f0(){const[u,f]=S.useState(""),[o,r]=S.useState(!1),[v,p]=S.useState(""),[b,C]=S.useState(null),h=S.useRef(null);S.useEffect(()=>{xe("/api/claude-md").then(x=>f(x.content)).catch(()=>p("Error loading file")),xe("/api/status").then(x=>{x.userClaudeMdExists&&C(`A user-level ${x.userClaudeMdPath} was detected. Its instructions will also apply and may interfere with this project config.`)}).catch(()=>{})},[]);const d=S.useCallback(async()=>{p("Saving...");try{await xt("/api/claude-md",{content:u}),r(!1),p("Saved"),setTimeout(()=>p(x=>x==="Saved"?"":x),2e3)}catch{p("Error saving")}},[u]);S.useEffect(()=>{const x=R=>{(R.metaKey||R.ctrlKey)&&R.key==="s"&&(R.preventDefault(),o&&d())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[o,d]);const y=x=>{f(x.target.value),r(!0),p("Modified")},g=x=>{if(x.key==="Tab"){x.preventDefault();const R=h.current;if(!R)return;const z=R.selectionStart,U=R.selectionEnd,w=u.substring(0,z)+" "+u.substring(U);f(w),r(!0),p("Modified"),requestAnimationFrame(()=>{R.selectionStart=R.selectionEnd=z+2})}};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"page-header",style:{borderBottom:"none",padding:0,marginBottom:24},children:s.jsxs("div",{children:[s.jsx("h1",{children:"System Prompt"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)",marginTop:4},children:"Configure global system instructions for Claude."})]})}),s.jsxs("div",{className:"settings-panel",style:{flex:1,display:"flex",flexDirection:"column",marginBottom:32},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:16},children:[s.jsxs("div",{children:[s.jsx("h2",{style:{fontSize:16,fontWeight:600,color:"var(--text-primary)",marginBottom:4},children:"Global Instructions"}),s.jsx("p",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Edit the CLAUDE.md file to provide custom instructions."})]}),s.jsxs("div",{className:"toolbar",children:[s.jsx("span",{id:"status",style:{fontSize:12,color:"var(--text-secondary)",marginRight:8},children:v}),s.jsx("button",{disabled:!o,onClick:d,style:{background:"var(--btn-primary-bg)",color:"var(--btn-primary-text)",border:"none",padding:"6px 14px",borderRadius:"6px",fontSize:"13px",fontWeight:500,cursor:o?"pointer":"not-allowed",opacity:o?1:.5},children:"Save"})]})]}),b&&s.jsx("div",{className:"warning visible",style:{borderRadius:0,marginBottom:16,border:"1px solid #665500",background:"#fff8c5"},children:b}),s.jsx("textarea",{ref:h,id:"editor",spellCheck:!1,placeholder:"Loading...",value:u,onChange:y,onKeyDown:g,style:{flex:1,minHeight:"300px",border:"1px solid var(--border-color)",borderRadius:"8px",background:"var(--bg-main)",padding:"16px",color:"var(--text-primary)"}})]})]})}function d0(){const[u]=Mg(),f=u.get("tab"),[o,r]=S.useState(f==="voice"||f==="integrations"||f==="system"?f:"general"),[v,p]=S.useState({running:!1,url:null}),[b,C]=S.useState({running:!1,tunnelUrl:null}),[h,d]=S.useState({running:!1,tunnelUrl:null});S.useEffect(()=>{const g=()=>{xe("/api/tunnel/status").then(p).catch(()=>{}),xe("/api/twilio/status").then(C).catch(()=>{}),xe("/api/browser-call/status").then(d).catch(()=>{})};g();const x=setInterval(g,5e3);return()=>clearInterval(x)},[]);const y=g=>({padding:"6px 14px",background:o===g?"var(--btn-primary-bg)":"var(--bg-main)",border:"1px solid "+(o===g?"transparent":"var(--border-color)"),borderRadius:"0",color:o===g?"var(--btn-primary-text)":"var(--text-primary)",fontWeight:500,cursor:"pointer",fontSize:"13px",transition:"all 0.1s ease"});return s.jsxs("div",{className:"page active",style:{display:"flex",flexDirection:"column",padding:0},children:[s.jsxs("div",{style:{display:"flex",gap:"8px",padding:"24px 32px 16px",borderBottom:"1px solid var(--border-color)",flexShrink:0},children:[s.jsx("button",{style:y("general"),onClick:()=>r("general"),children:"General"}),s.jsx("button",{style:y("voice"),onClick:()=>r("voice"),children:"Voice"}),s.jsx("button",{style:y("integrations"),onClick:()=>r("integrations"),children:"Integrations & MCP"}),s.jsx("button",{style:y("system"),onClick:()=>r("system"),children:"System Prompt"})]}),s.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"48px 64px"},children:[o==="general"&&s.jsx(Fg,{twilioRunning:b.running}),o==="voice"&&s.jsx(n0,{}),o==="integrations"&&s.jsx(o0,{twilioRunning:b.running,browserCallRunning:h.running}),o==="system"&&s.jsx(f0,{})]})]})}const Ws={id:""};function h0(){const u=xu(),[f,o]=S.useState([]),[r,v]=S.useState(!1),[p,b]=S.useState(Ws),[C,h]=S.useState(!1),[d,y]=S.useState(null);S.useEffect(()=>{xe("/api/agents").then(o).catch(()=>{})},[]);const g=async()=>{y(null),h(!0);try{await xt("/api/agents",{id:p.id});const R=await xe("/api/agents");o(R),b(Ws),v(!1)}catch(R){const z=R?.message||"Failed to create agent";y(z)}finally{h(!1)}},x=()=>{b(Ws),v(!1),y(null)};return s.jsxs("div",{className:"page active",style:{display:"flex",flexDirection:"column",padding:0},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"24px 32px 16px",borderBottom:"1px solid var(--border-color)",flexShrink:0},children:[s.jsx("h2",{style:{margin:0,fontSize:18,fontWeight:600,color:"var(--text-primary)"},children:"Agents"}),!r&&s.jsx("button",{onClick:()=>v(!0),style:{padding:"6px 14px",background:"var(--btn-primary-bg)",color:"var(--btn-primary-text)",border:"none",borderRadius:0,fontWeight:500,fontSize:13,cursor:"pointer"},children:"Create Agent"})]}),s.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"48px 64px"},children:[r&&s.jsxs("div",{className:"settings-panel",style:{marginBottom:24,padding:20},children:[s.jsx("h3",{style:{margin:"0 0 16px",fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"New Agent"}),d&&s.jsx("div",{style:{marginBottom:12,padding:"8px 10px",fontSize:12,color:"#d73a49",background:"var(--bg-tertiary)",borderRadius:6,border:"1px solid #d73a49"},children:d}),s.jsxs("div",{style:{marginBottom:16},children:[s.jsx("label",{style:{display:"block",marginBottom:4,fontSize:13,fontWeight:500,color:"var(--text-primary)"},children:"ID"}),s.jsx("input",{type:"text",value:p.id,onChange:R=>b({...p,id:R.target.value}),placeholder:"my-agent",style:{width:"100%",padding:"6px 10px",fontSize:13,background:"var(--bg-main)",color:"var(--text-primary)",border:"1px solid var(--border-color)",borderRadius:0,boxSizing:"border-box"}})]}),s.jsxs("div",{style:{display:"flex",gap:8},children:[s.jsx("button",{onClick:g,disabled:C||!p.id.trim(),style:{padding:"6px 14px",background:"var(--btn-primary-bg)",color:"var(--btn-primary-text)",border:"none",borderRadius:0,fontWeight:500,fontSize:13,cursor:C?"not-allowed":"pointer",opacity:C||!p.id.trim()?.6:1},children:C?"Creating...":"Create"}),s.jsx("button",{onClick:x,style:{padding:"6px 14px",background:"var(--bg-main)",color:"var(--text-primary)",border:"1px solid var(--border-color)",borderRadius:0,fontWeight:500,fontSize:13,cursor:"pointer"},children:"Cancel"})]})]}),s.jsxs("div",{className:"settings-panel",style:{padding:0},children:[f.length===0&&!r&&s.jsx("div",{style:{padding:20,fontSize:13,color:"var(--text-secondary)"},children:'No agents yet. Click "Create Agent" to get started.'}),f.map(R=>s.jsxs("div",{onClick:()=>u(`/agents/${R.id}`),style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 20px",borderBottom:"1px solid var(--border-color)",cursor:"pointer",transition:"background 0.1s ease"},onMouseEnter:z=>z.currentTarget.style.background="var(--bg-tertiary)",onMouseLeave:z=>z.currentTarget.style.background="transparent",children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[s.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:R.enabled?"#2ea043":"#8b949e",flexShrink:0}}),s.jsx("span",{style:{fontSize:14,fontWeight:500,color:"var(--text-primary)"},children:R.id})]}),s.jsxs("div",{style:{fontSize:13,color:"var(--text-secondary)"},children:["every ",R.heartbeatIntervalMinutes,"m"]})]},R.id))]})]})]})}const yu={margin:0,padding:12,fontSize:13,fontFamily:"monospace",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"var(--bg-main)",color:"var(--text-primary)",border:"1px solid var(--border-color)",borderRadius:0},Qn={margin:"0 0 8px",fontSize:14,fontWeight:600,color:"var(--text-primary)"};function m0(){const{id:u}=Kh(),f=xu(),[o,r]=S.useState(null),[v,p]=S.useState(!1),[b,C]=S.useState(null),[h,d]=S.useState(!1),[y,g]=S.useState(null),[x,R]=S.useState([]),[z,U]=S.useState(null),[w,q]=S.useState(!1);S.useEffect(()=>{u&&xe(`/api/agents/${u}`).then(r).catch(()=>{})},[u]),S.useEffect(()=>{xe("/api/providers/tts").then($=>(g($.active),xe(`/api/providers/tts/${$.active}/voices`))).then($=>R($.voices)).catch($=>U($?.message||"Failed to load voices"))},[]);const G=async $=>{if(!(!u||!o||!y)){q(!0);try{const V=y,J={...o.config.voice??{},[V]:{id:$,name:x.find(K=>K.id===$)?.name??""}};await Bg(`/api/agents/${u}`,{config:{voice:J}}),r({...o,config:{...o.config,voice:J}})}finally{q(!1)}}},Q=async()=>{if(u){p(!0),C(null);try{await xt(`/api/agents/${u}/call`)}catch($){const V=$?.message||"Failed to initiate call";C(V)}finally{p(!1)}}},I=async()=>{if(u&&window.confirm(`Delete agent "${u}"? This cannot be undone.`)){d(!0);try{await em(`/api/agents/${u}`),f("/agents")}catch{d(!1)}}};return o?s.jsxs("div",{className:"page active",style:{display:"flex",flexDirection:"column",padding:0},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"24px 32px 16px",borderBottom:"1px solid var(--border-color)",flexShrink:0},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[s.jsx(Vt,{to:"/agents",style:{fontSize:13,color:"var(--text-secondary)",textDecoration:"none"},children:"Agents"}),s.jsx("span",{style:{color:"var(--text-secondary)",fontSize:13},children:"/"}),s.jsx("h2",{style:{margin:0,fontSize:18,fontWeight:600,color:"var(--text-primary)"},children:o.id})]}),s.jsxs("div",{style:{display:"flex",gap:8},children:[s.jsx("button",{onClick:Q,disabled:v,style:{padding:"6px 14px",background:"var(--btn-primary-bg)",color:"var(--btn-primary-text)",border:"none",borderRadius:0,fontWeight:500,fontSize:13,cursor:v?"not-allowed":"pointer",opacity:v?.6:1},children:v?"Calling...":"Call Me"}),s.jsx("button",{onClick:I,disabled:h,style:{padding:"6px 14px",background:"transparent",color:"#d73a49",border:"1px solid #d73a49",borderRadius:0,fontWeight:500,fontSize:13,cursor:h?"not-allowed":"pointer",opacity:h?.6:1},children:h?"Deleting...":"Delete"})]})]}),b&&s.jsx("div",{style:{margin:"16px 32px 0",padding:"8px 10px",fontSize:12,color:"#d73a49",background:"var(--bg-tertiary)",borderRadius:6,border:"1px solid #d73a49"},children:b}),s.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"48px 64px"},children:[s.jsxs("div",{className:"settings-panel",style:{marginBottom:24,padding:20},children:[s.jsx("h3",{style:Qn,children:"SOUL.md"}),s.jsx("pre",{style:yu,children:o.soulMd||"(empty)"})]}),s.jsxs("div",{className:"settings-panel",style:{marginBottom:24,padding:20},children:[s.jsx("h3",{style:Qn,children:"MEMORY.md"}),s.jsx("pre",{style:yu,children:o.memoryMd||"(empty)"})]}),s.jsxs("div",{className:"settings-panel",style:{marginBottom:24,padding:20},children:[s.jsx("h3",{style:Qn,children:"HEARTBEAT.md"}),s.jsx("pre",{style:yu,children:o.heartbeatMd||"(empty)"})]}),s.jsxs("div",{className:"settings-panel",style:{marginBottom:24,padding:20},children:[s.jsx("h3",{style:Qn,children:"Voice"}),y&&x.length>0?s.jsxs("div",{children:[s.jsx("label",{style:{display:"block",fontSize:13,color:"var(--text-secondary)",marginBottom:6},children:"ElevenLabs voice"}),s.jsx("select",{value:o.config.voice?.[y]?.id??"",onChange:$=>G($.target.value),disabled:w,style:{padding:"6px 10px",fontSize:13,background:"var(--bg-main)",color:"var(--text-primary)",border:"1px solid var(--border-color)",borderRadius:0,cursor:w?"not-allowed":"pointer",opacity:w?.6:1,minWidth:200},children:x.map($=>s.jsx("option",{value:$.id,children:$.name},$.id))})]}):z?s.jsx("p",{style:{margin:0,fontSize:13,color:"#d73a49"},children:z}):s.jsx("p",{style:{margin:0,fontSize:13,color:"var(--text-secondary)"},children:"Loading voices..."})]}),s.jsxs("div",{className:"settings-panel",style:{marginBottom:24,padding:20},children:[s.jsx("h3",{style:Qn,children:"Config"}),s.jsx("pre",{style:yu,children:JSON.stringify(o.config,null,2)})]})]})]}):s.jsx("div",{className:"page active",style:{display:"flex",flexDirection:"column",padding:0},children:s.jsx("div",{style:{padding:"24px 32px",color:"var(--text-secondary)",fontSize:14},children:"Loading..."})})}function y0({sessionId:u}){const[f,o]=S.useState([]),[r,v]=S.useState("Loading..."),[p,b]=S.useState(null),C=S.useRef(null);return S.useEffect(()=>{v("Loading..."),b(null),o([]),xe(`/api/conversations/${u}`).then(h=>{o(h),v(`Conversation (${h.length} messages)`)}).catch(()=>{b("Error loading conversation."),v("Conversation")})},[u]),S.useEffect(()=>{C.current&&(C.current.scrollTop=C.current.scrollHeight)},[f]),s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"page-header",style:{padding:"48px 64px 24px"},children:s.jsx("div",{children:s.jsx("h1",{children:r})})}),s.jsxs("div",{className:"conversation-messages",ref:C,style:{padding:"0 64px 48px"},children:[p&&s.jsx("div",{className:"conversation-empty",children:p}),!p&&f.length===0&&!r.includes("Loading")&&s.jsx("div",{className:"conversation-empty",children:"No messages in this session."}),f.map((h,d)=>s.jsxs("div",{className:`msg msg-${h.role}`,children:[s.jsxs("div",{className:"msg-header",children:[s.jsx("span",{className:"msg-role",children:h.role==="user"?"User":"VoiceCC"}),s.jsx("span",{className:"msg-time",children:new Date(h.timestamp).toLocaleTimeString()})]}),s.jsx("div",{className:"msg-content",children:h.content})]},d))]})]})}function v0(){const{id:u}=Kh();return u?s.jsx("div",{className:"page active",children:s.jsx(y0,{sessionId:u})}):s.jsxs("div",{className:"page active",style:{display:"flex",flexDirection:"column"},children:[s.jsx("div",{className:"page-header",style:{padding:"48px 64px 24px"},children:s.jsx("div",{children:s.jsx("h1",{children:"Error"})})}),s.jsx("div",{className:"conversation-messages",style:{padding:"0 64px 48px"},children:s.jsx("div",{className:"conversation-empty",children:"No conversation ID provided."})})]})}const sl=6,Fs="claude-voice-device-token",p0=16e3,_h=24e3;function g0(u,f,o){const r=f/o,v=Math.floor(u.length/r),p=new Float32Array(v);for(let b=0;b<v;b++){const C=Math.floor(b*r),h=u[C]??0,d=u[C+1]??0,y=C>0?u[C-1]??0:h;p[b]=(h+d+y)/3}return p}function Oh(u,f,o){const r=o/f,v=Math.round(u.length*r),p=new Float32Array(v);for(let b=0;b<v;b++){const C=b/r,h=Math.floor(C),d=C-h,y=u[h]??0,g=u[Math.min(h+1,u.length-1)]??0;p[b]=y+d*(g-y)}return p}function S0(){const[u,f]=S.useState("pairing"),[o,r]=S.useState(""),[v,p]=S.useState(""),[b,C]=S.useState(Array(sl).fill("")),h=S.useRef([]),d=S.useRef(localStorage.getItem(Fs)||""),y=S.useRef(null),g=S.useRef(null),x=S.useRef(null),R=S.useRef(null),z=S.useCallback(()=>b.join(""),[b]),U=()=>{C(Array(sl).fill("")),h.current[0]?.focus()},w=S.useCallback(async X=>{const J=X||z();if(console.log("[Call] submitPairing called, code length:",J.length),J.length!==sl){r("Enter all 6 digits");return}r("");try{console.log("[Call] POST /api/webrtc/pair ...");const K=await xt("/api/webrtc/pair",{code:J});console.log("[Call] Pairing success, got token"),d.current=K.token,localStorage.setItem(Fs,K.token),f("ready")}catch(K){const le=K?.message||"Pairing failed";console.error("[Call] Pairing failed:",le),r(le),U()}},[z]);S.useEffect(()=>{const X=d.current,J=new URLSearchParams(window.location.search).get("code");if(console.log("[Call] mount: token=%s, urlCode=%s",X?"present":"none",J??"none"),J&&J.length===sl&&!X){console.log("[Call] auto-pairing from URL code"),w(J);return}if(!X){console.log("[Call] no token, showing PIN input"),h.current[0]?.focus();return}console.log("[Call] validating existing token..."),fetch("/api/webrtc/validate",{headers:{Authorization:`Bearer ${X}`}}).then(K=>(console.log("[Call] validate response status:",K.status),K.json())).then(K=>{console.log("[Call] validate result:",K),K.valid?f("ready"):(localStorage.removeItem(Fs),d.current="",J&&J.length===sl?w(J):h.current[0]?.focus())}).catch(K=>{console.error("[Call] validate error:",K),h.current[0]?.focus()})},[]);const q=(X,J)=>{const K=J.replace(/\D/g,"").slice(0,1),le=[...b];le[X]=K,C(le),K&&X<sl-1&&h.current[X+1]?.focus(),K&&le.every(ze=>ze!=="")&&w(le.join(""))},G=(X,J)=>{J.key==="Backspace"&&!b[X]&&X>0&&h.current[X-1]?.focus()},Q=X=>{X.preventDefault();const J=(X.clipboardData.getData("text")||"").replace(/\D/g,"").slice(0,sl),K=[...b];for(let le=0;le<J.length;le++)K[le]=J[le];C(K),J.length===sl?w(J):J.length>0&&h.current[Math.min(J.length,sl-1)]?.focus()},I=S.useCallback(()=>{y.current&&(y.current.onopen=null,y.current.onclose=null,y.current.onerror=null,y.current.onmessage=null,(y.current.readyState===WebSocket.OPEN||y.current.readyState===WebSocket.CONNECTING)&&y.current.close(),y.current=null),x.current&&(x.current.getTracks().forEach(X=>X.stop()),x.current=null),R.current&&(R.current.disconnect(),R.current=null),g.current&&(g.current.close().catch(()=>{}),g.current=null)},[]),$=S.useCallback(async()=>{p(""),f("connecting");let X=null;try{let J;try{J=await navigator.mediaDevices.getUserMedia({audio:!0})}catch{p("Microphone access denied. Please allow microphone access and try again."),f("ready");return}x.current=J,X=new AudioContext,g.current=X,await X.resume();const K=X.sampleRate;await X.audioWorklet.addModule("/audio-processor.js");const le=new AudioWorkletNode(X,"audio-processor");R.current=le,X.createMediaStreamSource(J).connect(le),le.connect(X.destination);const Et=`${window.location.protocol==="http:"?"ws:":"wss:"}//${window.location.host}/audio?token=${d.current}`,Me=new WebSocket(Et);y.current=Me,le.port.onmessage=he=>{if(he.data.type!=="audio"||Me.readyState!==WebSocket.OPEN)return;const D=he.data.samples,Z=g0(D,K,p0);Me.send(Z.buffer)},Me.onmessage=async he=>{if(he.data instanceof Blob){const D=await he.data.arrayBuffer(),Z=new Int16Array(D),ee=new Float32Array(Z.length);for(let ve=0;ve<Z.length;ve++)ee[ve]=Z[ve]/32768;const se=Oh(ee,_h,K);le.port.postMessage({type:"playback",samples:se});return}if(he.data instanceof ArrayBuffer){const D=new Int16Array(he.data),Z=new Float32Array(D.length);for(let se=0;se<D.length;se++)Z[se]=D[se]/32768;const ee=Oh(Z,_h,K);le.port.postMessage({type:"playback",samples:ee});return}if(typeof he.data=="string")try{JSON.parse(he.data).type==="clear"&&le.port.postMessage({type:"clear"})}catch{}},Me.onopen=()=>{console.log("[Call] WebSocket connected"),f("active")},Me.onclose=he=>{console.log("[Call] WebSocket closed, code:",he.code,"reason:",he.reason),I(),f("ready")},Me.onerror=he=>{console.error("[Call] WebSocket error:",he),p("WebSocket connection failed"),I(),f("ready")}}catch(J){const K=J instanceof Error?J.message:"Connection failed";p(`Connection failed: ${K}`),I(),f("ready")}},[I]),V=S.useCallback(()=>{I(),f("ready")},[I]);return s.jsxs("div",{className:"call-container",children:[s.jsx("h1",{children:"Claude Voice"}),s.jsx("p",{className:"subtitle",children:"Enter the pairing code shown on the dashboard"}),u==="pairing"&&s.jsxs("div",{className:"call-state",children:[s.jsx("div",{className:"pin-inputs",children:b.map((X,J)=>s.jsx("input",{ref:K=>{h.current[J]=K},type:"text",inputMode:"numeric",maxLength:1,value:X,onChange:K=>q(J,K.target.value),onKeyDown:K=>G(J,K),onPaste:J===0?Q:void 0},J))}),s.jsx("button",{className:"btn btn-pair",onClick:()=>w(),children:"Pair Device"}),s.jsx("div",{className:"error-msg",children:o})]}),u==="ready"&&s.jsxs("div",{className:"call-state",children:[s.jsx("p",{className:"status-msg",style:{marginBottom:24},children:"Device paired. Ready to call."}),s.jsx("button",{className:"btn btn-call",onClick:$,children:"Start Call"}),s.jsx("div",{className:"error-msg",children:v})]}),u==="connecting"&&s.jsx("div",{className:"call-state",children:s.jsx("p",{className:"status-msg",children:"Connecting..."})}),u==="active"&&s.jsxs("div",{className:"call-state",children:[s.jsx("div",{className:"pulse-ring"}),s.jsx("div",{className:"call-label",children:"Call in progress"}),s.jsx("button",{className:"btn btn-hangup",onClick:V,children:"Hang Up"})]})]})}function b0(){return s.jsx(jg,{children:s.jsxs(eg,{children:[s.jsxs(Ll,{element:s.jsx(Jg,{}),children:[s.jsx(Ll,{path:"/",element:s.jsx(Wg,{})}),s.jsx(Ll,{path:"/settings",element:s.jsx(d0,{})}),s.jsx(Ll,{path:"/agents",element:s.jsx(h0,{})}),s.jsx(Ll,{path:"/agents/:id",element:s.jsx(m0,{})}),s.jsx(Ll,{path:"/c/:id",element:s.jsx(v0,{})})]}),s.jsx(Ll,{path:"/call",element:s.jsx(S0,{})})]})})}const bm=document.getElementById("root");if(!bm)throw new Error("Root element #root not found");ep.createRoot(bm).render(s.jsx(S.StrictMode,{children:s.jsx(b0,{})}));
|