@ainyc/canonry 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/assets/assets/index-CkNSldWM.css +1 -0
- package/assets/assets/index-DHoyZdlF.js +63 -0
- package/assets/index.html +17 -0
- package/bin/canonry.mjs +2 -0
- package/dist/chunk-ONZDY6Q4.js +3706 -0
- package/dist/cli.js +1101 -0
- package/dist/index.js +8 -0
- package/package.json +58 -0
- package/src/cli.ts +470 -0
- package/src/client.ts +152 -0
- package/src/commands/apply.ts +25 -0
- package/src/commands/competitor.ts +36 -0
- package/src/commands/evidence.ts +41 -0
- package/src/commands/export-cmd.ts +40 -0
- package/src/commands/history.ts +41 -0
- package/src/commands/init.ts +122 -0
- package/src/commands/keyword.ts +54 -0
- package/src/commands/notify.ts +70 -0
- package/src/commands/project.ts +89 -0
- package/src/commands/run.ts +54 -0
- package/src/commands/schedule.ts +90 -0
- package/src/commands/serve.ts +24 -0
- package/src/commands/settings.ts +45 -0
- package/src/commands/status.ts +52 -0
- package/src/config.ts +90 -0
- package/src/index.ts +2 -0
- package/src/job-runner.ts +368 -0
- package/src/notifier.ts +227 -0
- package/src/provider-registry.ts +55 -0
- package/src/scheduler.ts +161 -0
- package/src/server.ts +249 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
function xy(l,r){for(var u=0;u<r.length;u++){const o=r[u];if(typeof o!="string"&&!Array.isArray(o)){for(const f in o)if(f!=="default"&&!(f in l)){const m=Object.getOwnPropertyDescriptor(o,f);m&&Object.defineProperty(l,f,m.get?m:{enumerable:!0,get:()=>o[f]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function u(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(f){if(f.ep)return;f.ep=!0;const m=u(f);fetch(f.href,m)}})();function zh(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var oo={exports:{}},ii={};var Vm;function Sy(){if(Vm)return ii;Vm=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function u(o,f,m){var p=null;if(m!==void 0&&(p=""+m),f.key!==void 0&&(p=""+f.key),"key"in f){m={};for(var v in f)v!=="key"&&(m[v]=f[v])}else m=f;return f=m.ref,{$$typeof:l,type:o,key:p,ref:f!==void 0?f:null,props:m}}return ii.Fragment=r,ii.jsx=u,ii.jsxs=u,ii}var Xm;function jy(){return Xm||(Xm=1,oo.exports=Sy()),oo.exports}var c=jy(),uo={exports:{}},he={};var Zm;function Ny(){if(Zm)return he;Zm=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),R=Symbol.iterator;function Y(S){return S===null||typeof S!="object"?null:(S=R&&S[R]||S["@@iterator"],typeof S=="function"?S:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,B={};function $(S,k,J){this.props=S,this.context=k,this.refs=B,this.updater=J||K}$.prototype.isReactComponent={},$.prototype.setState=function(S,k){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,k,"setState")},$.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function ne(){}ne.prototype=$.prototype;function H(S,k,J){this.props=S,this.context=k,this.refs=B,this.updater=J||K}var Q=H.prototype=new ne;Q.constructor=H,O(Q,$.prototype),Q.isPureReactComponent=!0;var ie=Array.isArray;function ae(){}var G={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function fe(S,k,J){var z=J.ref;return{$$typeof:l,type:S,key:k,ref:z!==void 0?z:null,props:J}}function Le(S,k){return fe(S.type,k,S.props)}function W(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}function pe(S){var k={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(J){return k[J]})}var Xe=/\/+/g;function Be(S,k){return typeof S=="object"&&S!==null&&S.key!=null?pe(""+S.key):k.toString(36)}function F(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ae,ae):(S.status="pending",S.then(function(k){S.status==="pending"&&(S.status="fulfilled",S.value=k)},function(k){S.status==="pending"&&(S.status="rejected",S.reason=k)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function _(S,k,J,z,X){var I=typeof S;(I==="undefined"||I==="boolean")&&(S=null);var de=!1;if(S===null)de=!0;else switch(I){case"bigint":case"string":case"number":de=!0;break;case"object":switch(S.$$typeof){case l:case r:de=!0;break;case A:return de=S._init,_(de(S._payload),k,J,z,X)}}if(de)return X=X(S),de=z===""?"."+Be(S,0):z,ie(X)?(J="",de!=null&&(J=de.replace(Xe,"$&/")+"/"),_(X,k,J,"",function(nt){return nt})):X!=null&&(W(X)&&(X=Le(X,J+(X.key==null||S&&S.key===X.key?"":(""+X.key).replace(Xe,"$&/")+"/")+de)),k.push(X)),1;de=0;var Me=z===""?".":z+":";if(ie(S))for(var ue=0;ue<S.length;ue++)z=S[ue],I=Me+Be(z,ue),de+=_(z,k,J,I,X);else if(ue=Y(S),typeof ue=="function")for(S=ue.call(S),ue=0;!(z=S.next()).done;)z=z.value,I=Me+Be(z,ue++),de+=_(z,k,J,I,X);else if(I==="object"){if(typeof S.then=="function")return _(F(S),k,J,z,X);throw k=String(S),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return de}function Z(S,k,J){if(S==null)return S;var z=[],X=0;return _(S,z,"","",function(I){return k.call(J,I,X++)}),z}function se(S){if(S._status===-1){var k=S._result;k=k(),k.then(function(J){(S._status===0||S._status===-1)&&(S._status=1,S._result=J)},function(J){(S._status===0||S._status===-1)&&(S._status=2,S._result=J)}),S._status===-1&&(S._status=0,S._result=k)}if(S._status===1)return S._result.default;throw S._result}var ve=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},V={map:Z,forEach:function(S,k,J){Z(S,function(){k.apply(this,arguments)},J)},count:function(S){var k=0;return Z(S,function(){k++}),k},toArray:function(S){return Z(S,function(k){return k})||[]},only:function(S){if(!W(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return he.Activity=N,he.Children=V,he.Component=$,he.Fragment=u,he.Profiler=f,he.PureComponent=H,he.StrictMode=o,he.Suspense=b,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,he.__COMPILER_RUNTIME={__proto__:null,c:function(S){return G.H.useMemoCache(S)}},he.cache=function(S){return function(){return S.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(S,k,J){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var z=O({},S.props),X=S.key;if(k!=null)for(I in k.key!==void 0&&(X=""+k.key),k)!q.call(k,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&k.ref===void 0||(z[I]=k[I]);var I=arguments.length-2;if(I===1)z.children=J;else if(1<I){for(var de=Array(I),Me=0;Me<I;Me++)de[Me]=arguments[Me+2];z.children=de}return fe(S.type,X,z)},he.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},he.createElement=function(S,k,J){var z,X={},I=null;if(k!=null)for(z in k.key!==void 0&&(I=""+k.key),k)q.call(k,z)&&z!=="key"&&z!=="__self"&&z!=="__source"&&(X[z]=k[z]);var de=arguments.length-2;if(de===1)X.children=J;else if(1<de){for(var Me=Array(de),ue=0;ue<de;ue++)Me[ue]=arguments[ue+2];X.children=Me}if(S&&S.defaultProps)for(z in de=S.defaultProps,de)X[z]===void 0&&(X[z]=de[z]);return fe(S,I,X)},he.createRef=function(){return{current:null}},he.forwardRef=function(S){return{$$typeof:v,render:S}},he.isValidElement=W,he.lazy=function(S){return{$$typeof:A,_payload:{_status:-1,_result:S},_init:se}},he.memo=function(S,k){return{$$typeof:g,type:S,compare:k===void 0?null:k}},he.startTransition=function(S){var k=G.T,J={};G.T=J;try{var z=S(),X=G.S;X!==null&&X(J,z),typeof z=="object"&&z!==null&&typeof z.then=="function"&&z.then(ae,ve)}catch(I){ve(I)}finally{k!==null&&J.types!==null&&(k.types=J.types),G.T=k}},he.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},he.use=function(S){return G.H.use(S)},he.useActionState=function(S,k,J){return G.H.useActionState(S,k,J)},he.useCallback=function(S,k){return G.H.useCallback(S,k)},he.useContext=function(S){return G.H.useContext(S)},he.useDebugValue=function(){},he.useDeferredValue=function(S,k){return G.H.useDeferredValue(S,k)},he.useEffect=function(S,k){return G.H.useEffect(S,k)},he.useEffectEvent=function(S){return G.H.useEffectEvent(S)},he.useId=function(){return G.H.useId()},he.useImperativeHandle=function(S,k,J){return G.H.useImperativeHandle(S,k,J)},he.useInsertionEffect=function(S,k){return G.H.useInsertionEffect(S,k)},he.useLayoutEffect=function(S,k){return G.H.useLayoutEffect(S,k)},he.useMemo=function(S,k){return G.H.useMemo(S,k)},he.useOptimistic=function(S,k){return G.H.useOptimistic(S,k)},he.useReducer=function(S,k,J){return G.H.useReducer(S,k,J)},he.useRef=function(S){return G.H.useRef(S)},he.useState=function(S){return G.H.useState(S)},he.useSyncExternalStore=function(S,k,J){return G.H.useSyncExternalStore(S,k,J)},he.useTransition=function(){return G.H.useTransition()},he.version="19.2.4",he}var Km;function Do(){return Km||(Km=1,uo.exports=Ny()),uo.exports}var y=Do();const wy=zh(y),Ro=xy({__proto__:null,default:wy},[y]);var fo={exports:{}},si={},mo={exports:{}},ho={};var Jm;function Ey(){return Jm||(Jm=1,(function(l){function r(_,Z){var se=_.length;_.push(Z);e:for(;0<se;){var ve=se-1>>>1,V=_[ve];if(0<f(V,Z))_[ve]=Z,_[se]=V,se=ve;else break e}}function u(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var Z=_[0],se=_.pop();if(se!==Z){_[0]=se;e:for(var ve=0,V=_.length,S=V>>>1;ve<S;){var k=2*(ve+1)-1,J=_[k],z=k+1,X=_[z];if(0>f(J,se))z<V&&0>f(X,J)?(_[ve]=X,_[z]=se,ve=z):(_[ve]=J,_[k]=se,ve=k);else if(z<V&&0>f(X,se))_[ve]=X,_[z]=se,ve=z;else break e}}return Z}function f(_,Z){var se=_.sortIndex-Z.sortIndex;return se!==0?se:_.id-Z.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;l.unstable_now=function(){return m.now()}}else{var p=Date,v=p.now();l.unstable_now=function(){return p.now()-v}}var b=[],g=[],A=1,N=null,R=3,Y=!1,K=!1,O=!1,B=!1,$=typeof setTimeout=="function"?setTimeout:null,ne=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function Q(_){for(var Z=u(g);Z!==null;){if(Z.callback===null)o(g);else if(Z.startTime<=_)o(g),Z.sortIndex=Z.expirationTime,r(b,Z);else break;Z=u(g)}}function ie(_){if(O=!1,Q(_),!K)if(u(b)!==null)K=!0,ae||(ae=!0,pe());else{var Z=u(g);Z!==null&&F(ie,Z.startTime-_)}}var ae=!1,G=-1,q=5,fe=-1;function Le(){return B?!0:!(l.unstable_now()-fe<q)}function W(){if(B=!1,ae){var _=l.unstable_now();fe=_;var Z=!0;try{e:{K=!1,O&&(O=!1,ne(G),G=-1),Y=!0;var se=R;try{t:{for(Q(_),N=u(b);N!==null&&!(N.expirationTime>_&&Le());){var ve=N.callback;if(typeof ve=="function"){N.callback=null,R=N.priorityLevel;var V=ve(N.expirationTime<=_);if(_=l.unstable_now(),typeof V=="function"){N.callback=V,Q(_),Z=!0;break t}N===u(b)&&o(b),Q(_)}else o(b);N=u(b)}if(N!==null)Z=!0;else{var S=u(g);S!==null&&F(ie,S.startTime-_),Z=!1}}break e}finally{N=null,R=se,Y=!1}Z=void 0}}finally{Z?pe():ae=!1}}}var pe;if(typeof H=="function")pe=function(){H(W)};else if(typeof MessageChannel<"u"){var Xe=new MessageChannel,Be=Xe.port2;Xe.port1.onmessage=W,pe=function(){Be.postMessage(null)}}else pe=function(){$(W,0)};function F(_,Z){G=$(function(){_(l.unstable_now())},Z)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(_){_.callback=null},l.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<_?Math.floor(1e3/_):5},l.unstable_getCurrentPriorityLevel=function(){return R},l.unstable_next=function(_){switch(R){case 1:case 2:case 3:var Z=3;break;default:Z=R}var se=R;R=Z;try{return _()}finally{R=se}},l.unstable_requestPaint=function(){B=!0},l.unstable_runWithPriority=function(_,Z){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var se=R;R=_;try{return Z()}finally{R=se}},l.unstable_scheduleCallback=function(_,Z,se){var ve=l.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?ve+se:ve):se=ve,_){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=se+V,_={id:A++,callback:Z,priorityLevel:_,startTime:se,expirationTime:V,sortIndex:-1},se>ve?(_.sortIndex=se,r(g,_),u(b)===null&&_===u(g)&&(O?(ne(G),G=-1):O=!0,F(ie,se-ve))):(_.sortIndex=V,r(b,_),K||Y||(K=!0,ae||(ae=!0,pe()))),_},l.unstable_shouldYield=Le,l.unstable_wrapCallback=function(_){var Z=R;return function(){var se=R;R=Z;try{return _.apply(this,arguments)}finally{R=se}}}})(ho)),ho}var $m;function Cy(){return $m||($m=1,mo.exports=Ey()),mo.exports}var po={exports:{}},rt={};var Wm;function zy(){if(Wm)return rt;Wm=1;var l=Do();function r(b){var g="https://react.dev/errors/"+b;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)g+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+b+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(r(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(b,g,A){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:N==null?null:""+N,children:b,containerInfo:g,implementation:A}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(b,g){if(b==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,rt.createPortal=function(b,g){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return m(b,g,null,A)},rt.flushSync=function(b){var g=p.T,A=o.p;try{if(p.T=null,o.p=2,b)return b()}finally{p.T=g,o.p=A,o.d.f()}},rt.preconnect=function(b,g){typeof b=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(b,g))},rt.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},rt.preinit=function(b,g){if(typeof b=="string"&&g&&typeof g.as=="string"){var A=g.as,N=v(A,g.crossOrigin),R=typeof g.integrity=="string"?g.integrity:void 0,Y=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;A==="style"?o.d.S(b,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:N,integrity:R,fetchPriority:Y}):A==="script"&&o.d.X(b,{crossOrigin:N,integrity:R,fetchPriority:Y,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},rt.preinitModule=function(b,g){if(typeof b=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var A=v(g.as,g.crossOrigin);o.d.M(b,{crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(b)},rt.preload=function(b,g){if(typeof b=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var A=g.as,N=v(A,g.crossOrigin);o.d.L(b,A,{crossOrigin:N,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},rt.preloadModule=function(b,g){if(typeof b=="string")if(g){var A=v(g.as,g.crossOrigin);o.d.m(b,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(b)},rt.requestFormReset=function(b){o.d.r(b)},rt.unstable_batchedUpdates=function(b,g){return b(g)},rt.useFormState=function(b,g,A){return p.H.useFormState(b,g,A)},rt.useFormStatus=function(){return p.H.useHostTransitionStatus()},rt.version="19.2.4",rt}var Fm;function Ah(){if(Fm)return po.exports;Fm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),po.exports=zy(),po.exports}var Im;function Ay(){if(Im)return si;Im=1;var l=Cy(),r=Do(),u=Ah();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(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 v(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 b(e){if(m(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return b(i),e;if(s===a)return b(i),t;s=s.sibling}throw Error(o(188))}if(n.return!==a.return)n=i,a=s;else{for(var d=!1,h=i.child;h;){if(h===n){d=!0,n=i,a=s;break}if(h===a){d=!0,a=i,n=s;break}h=h.sibling}if(!d){for(h=s.child;h;){if(h===n){d=!0,n=s,a=i;break}if(h===a){d=!0,a=s,n=i;break}h=h.sibling}if(!d)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function A(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=A(e),t!==null)return t;e=e.sibling}return null}var N=Object.assign,R=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),H=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),Le=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function pe(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var Xe=Symbol.for("react.client.reference");function Be(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case $:return"Profiler";case B:return"StrictMode";case ie:return"Suspense";case ae:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case K:return"Portal";case H:return e.displayName||"Context";case ne:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return t=e.displayName||null,t!==null?t:Be(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return Be(e(t))}catch{}}return null}var F=Array.isArray,_=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ve=[],V=-1;function S(e){return{current:e}}function k(e){0>V||(e.current=ve[V],ve[V]=null,V--)}function J(e,t){V++,ve[V]=e.current,e.current=t}var z=S(null),X=S(null),I=S(null),de=S(null);function Me(e,t){switch(J(I,t),J(X,e),J(z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mm(t),e=hm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}k(z),J(z,e)}function ue(){k(z),k(X),k(I)}function nt(e){e.memoizedState!==null&&J(de,e);var t=z.current,n=hm(t,e.type);t!==n&&(J(X,e),J(z,n))}function ot(e){X.current===e&&(k(z),k(X)),de.current===e&&(k(de),ti._currentValue=se)}var Xt,Sn;function dt(e){if(Xt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xt=t&&t[1]||"",Sn=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Xt+e+Sn}var dl=!1;function fl(e,t){if(!e||dl)return"";dl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(D){var T=D}Reflect.construct(e,[],L)}else{try{L.call()}catch(D){T=D}e.call(L.prototype)}}else{try{throw Error()}catch(D){T=D}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(D){if(D&&T&&typeof D.stack=="string")return[D.stack,T.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),d=s[0],h=s[1];if(d&&h){var x=d.split(`
|
|
4
|
+
`),C=h.split(`
|
|
5
|
+
`);for(i=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;if(a===x.length||i===C.length)for(a=x.length-1,i=C.length-1;1<=a&&0<=i&&x[a]!==C[i];)i--;for(;1<=a&&0<=i;a--,i--)if(x[a]!==C[i]){if(a!==1||i!==1)do if(a--,i--,0>i||x[a]!==C[i]){var M=`
|
|
6
|
+
`+x[a].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=a&&0<=i);break}}}finally{dl=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?dt(n):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return dt(e.type);case 16:return dt("Lazy");case 13:return e.child!==t&&t!==null?dt("Suspense Fallback"):dt("Suspense");case 19:return dt("SuspenseList");case 0:case 15:return fl(e.type,!1);case 11:return fl(e.type.render,!1);case 1:return fl(e.type,!0);case 31:return dt("Activity");default:return""}}function mi(e){try{var t="",n=null;do t+=It(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
+
Error generating stack: `+a.message+`
|
|
8
|
+
`+a.stack}}var re=Object.prototype.hasOwnProperty,Pt=l.unstable_scheduleCallback,Ws=l.unstable_cancelCallback,Ip=l.unstable_shouldYield,Pp=l.unstable_requestPaint,bt=l.unstable_now,eg=l.unstable_getCurrentPriorityLevel,Vo=l.unstable_ImmediatePriority,Xo=l.unstable_UserBlockingPriority,hi=l.unstable_NormalPriority,tg=l.unstable_LowPriority,Zo=l.unstable_IdlePriority,ng=l.log,ag=l.unstable_setDisableYieldValue,ml=null,xt=null;function jn(e){if(typeof ng=="function"&&ag(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(ml,e)}catch{}}var St=Math.clz32?Math.clz32:sg,lg=Math.log,ig=Math.LN2;function sg(e){return e>>>=0,e===0?32:31-(lg(e)/ig|0)|0}var pi=256,gi=262144,vi=4194304;function In(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 yi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,s=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var h=a&134217727;return h!==0?(a=h&~s,a!==0?i=In(a):(d&=h,d!==0?i=In(d):n||(n=h&~e,n!==0&&(i=In(n))))):(h=a&~s,h!==0?i=In(h):d!==0?i=In(d):n||(n=a&~e,n!==0&&(i=In(n)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:i}function hl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function cg(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 Ko(){var e=vi;return vi<<=1,(vi&62914560)===0&&(vi=4194304),e}function Fs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rg(e,t,n,a,i,s){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var h=e.entanglements,x=e.expirationTimes,C=e.hiddenUpdates;for(n=d&~n;0<n;){var M=31-St(n),L=1<<M;h[M]=0,x[M]=-1;var T=C[M];if(T!==null)for(C[M]=null,M=0;M<T.length;M++){var D=T[M];D!==null&&(D.lane&=-536870913)}n&=~L}a!==0&&Jo(e,a,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(d&~t))}function Jo(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-St(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function $o(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-St(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function Wo(e,t){var n=t&-t;return n=(n&42)!==0?1:Is(n),(n&(e.suspendedLanes|t))!==0?0:n}function Is(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 Ps(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Fo(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Lm(e.type))}function Io(e,t){var n=Z.p;try{return Z.p=e,t()}finally{Z.p=n}}var Nn=Math.random().toString(36).slice(2),at="__reactFiber$"+Nn,ft="__reactProps$"+Nn,xa="__reactContainer$"+Nn,ec="__reactEvents$"+Nn,og="__reactListeners$"+Nn,ug="__reactHandles$"+Nn,Po="__reactResources$"+Nn,gl="__reactMarker$"+Nn;function tc(e){delete e[at],delete e[ft],delete e[ec],delete e[og],delete e[ug]}function Sa(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xa]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sm(e);e!==null;){if(n=e[at])return n;e=Sm(e)}return t}e=n,n=e.parentNode}return null}function ja(e){if(e=e[at]||e[xa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function vl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Na(e){var t=e[Po];return t||(t=e[Po]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[gl]=!0}var eu=new Set,tu={};function Pn(e,t){wa(e,t),wa(e+"Capture",t)}function wa(e,t){for(tu[e]=t,e=0;e<t.length;e++)eu.add(t[e])}var dg=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]*$"),nu={},au={};function fg(e){return re.call(au,e)?!0:re.call(nu,e)?!1:dg.test(e)?au[e]=!0:(nu[e]=!0,!1)}function bi(e,t,n){if(fg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function xi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function en(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mg(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(d){n=""+d,s.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nc(e){if(!e._valueTracker){var t=lu(e)?"checked":"value";e._valueTracker=mg(e,t,""+e[t])}}function iu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=lu(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Si(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 hg=/[\n"\\]/g;function _t(e){return e.replace(hg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ac(e,t,n,a,i,s,d,h){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?lc(e,d,Tt(t)):n!=null?lc(e,d,Tt(n)):a!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Tt(h):e.removeAttribute("name")}function su(e,t,n,a,i,s,d,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){nc(e);return}n=n!=null?""+Tt(n):"",t=t!=null?""+Tt(t):n,h||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=h?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),nc(e)}function lc(e,t,n){t==="number"&&Si(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ea(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Tt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function cu(e,t,n){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Tt(n):""}function ru(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(o(92));if(F(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Tt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),nc(e)}function Ca(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pg=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 ou(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||pg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function uu(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&ou(e,i,a)}else for(var s in t)t.hasOwnProperty(s)&&ou(e,s,t[s])}function ic(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 gg=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"]]),vg=/^[\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 ji(e){return vg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function tn(){}var sc=null;function cc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var za=null,Aa=null;function du(e){var t=ja(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(ac(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+_t(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[ft]||null;if(!i)throw Error(o(90));ac(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&iu(a)}break e;case"textarea":cu(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ea(e,!!n.multiple,t,!1)}}}var rc=!1;function fu(e,t,n){if(rc)return e(t,n);rc=!0;try{var a=e(t);return a}finally{if(rc=!1,(za!==null||Aa!==null)&&(os(),za&&(t=za,e=Aa,Aa=za=null,du(t),e)))for(t=0;t<e.length;t++)du(e[t])}}function yl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[ft]||null;if(a===null)return null;n=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(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oc=!1;if(nn)try{var bl={};Object.defineProperty(bl,"passive",{get:function(){oc=!0}}),window.addEventListener("test",bl,bl),window.removeEventListener("test",bl,bl)}catch{oc=!1}var wn=null,uc=null,Ni=null;function mu(){if(Ni)return Ni;var e,t=uc,n=t.length,a,i="value"in wn?wn.value:wn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===i[s-a];a++);return Ni=i.slice(e,1<a?1-a:void 0)}function wi(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 Ei(){return!0}function hu(){return!1}function mt(e){function t(n,a,i,s,d){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=s,this.target=d,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(n=e[h],this[h]=n?n(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ei:hu,this.isPropagationStopped=hu,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ei)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ei)},persist:function(){},isPersistent:Ei}),t}var ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ci=mt(ea),xl=N({},ea,{view:0,detail:0}),yg=mt(xl),dc,fc,Sl,zi=N({},xl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hc,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!==Sl&&(Sl&&e.type==="mousemove"?(dc=e.screenX-Sl.screenX,fc=e.screenY-Sl.screenY):fc=dc=0,Sl=e),dc)},movementY:function(e){return"movementY"in e?e.movementY:fc}}),pu=mt(zi),bg=N({},zi,{dataTransfer:0}),xg=mt(bg),Sg=N({},xl,{relatedTarget:0}),mc=mt(Sg),jg=N({},ea,{animationName:0,elapsedTime:0,pseudoElement:0}),Ng=mt(jg),wg=N({},ea,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Eg=mt(wg),Cg=N({},ea,{data:0}),gu=mt(Cg),zg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ag={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"},Tg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _g(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Tg[e])?!!t[e]:!1}function hc(){return _g}var Dg=N({},xl,{key:function(e){if(e.key){var t=zg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ag[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hc,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rg=mt(Dg),Og=N({},zi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vu=mt(Og),Mg=N({},xl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hc}),kg=mt(Mg),Ug=N({},ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lg=mt(Ug),Hg=N({},zi,{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}),Bg=mt(Hg),qg=N({},ea,{newState:0,oldState:0}),Yg=mt(qg),Gg=[9,13,27,32],pc=nn&&"CompositionEvent"in window,jl=null;nn&&"documentMode"in document&&(jl=document.documentMode);var Qg=nn&&"TextEvent"in window&&!jl,yu=nn&&(!pc||jl&&8<jl&&11>=jl),bu=" ",xu=!1;function Su(e,t){switch(e){case"keyup":return Gg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ju(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ta=!1;function Vg(e,t){switch(e){case"compositionend":return ju(t);case"keypress":return t.which!==32?null:(xu=!0,bu);case"textInput":return e=t.data,e===bu&&xu?null:e;default:return null}}function Xg(e,t){if(Ta)return e==="compositionend"||!pc&&Su(e,t)?(e=mu(),Ni=uc=wn=null,Ta=!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 yu&&t.locale!=="ko"?null:t.data;default:return null}}var Zg={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 Nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zg[e.type]:t==="textarea"}function wu(e,t,n,a){za?Aa?Aa.push(a):Aa=[a]:za=a,t=gs(t,"onChange"),0<t.length&&(n=new Ci("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Nl=null,wl=null;function Kg(e){cm(e,0)}function Ai(e){var t=vl(e);if(iu(t))return e}function Eu(e,t){if(e==="change")return t}var Cu=!1;if(nn){var gc;if(nn){var vc="oninput"in document;if(!vc){var zu=document.createElement("div");zu.setAttribute("oninput","return;"),vc=typeof zu.oninput=="function"}gc=vc}else gc=!1;Cu=gc&&(!document.documentMode||9<document.documentMode)}function Au(){Nl&&(Nl.detachEvent("onpropertychange",Tu),wl=Nl=null)}function Tu(e){if(e.propertyName==="value"&&Ai(wl)){var t=[];wu(t,wl,e,cc(e)),fu(Kg,t)}}function Jg(e,t,n){e==="focusin"?(Au(),Nl=t,wl=n,Nl.attachEvent("onpropertychange",Tu)):e==="focusout"&&Au()}function $g(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ai(wl)}function Wg(e,t){if(e==="click")return Ai(t)}function Fg(e,t){if(e==="input"||e==="change")return Ai(t)}function Ig(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:Ig;function El(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!re.call(t,i)||!jt(e[i],t[i]))return!1}return!0}function _u(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Du(e,t){var n=_u(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_u(n)}}function Ru(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ru(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ou(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Si(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Si(e.document)}return t}function yc(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 Pg=nn&&"documentMode"in document&&11>=document.documentMode,_a=null,bc=null,Cl=null,xc=!1;function Mu(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xc||_a==null||_a!==Si(a)||(a=_a,"selectionStart"in a&&yc(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}),Cl&&El(Cl,a)||(Cl=a,a=gs(bc,"onSelect"),0<a.length&&(t=new Ci("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=_a)))}function ta(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Da={animationend:ta("Animation","AnimationEnd"),animationiteration:ta("Animation","AnimationIteration"),animationstart:ta("Animation","AnimationStart"),transitionrun:ta("Transition","TransitionRun"),transitionstart:ta("Transition","TransitionStart"),transitioncancel:ta("Transition","TransitionCancel"),transitionend:ta("Transition","TransitionEnd")},Sc={},ku={};nn&&(ku=document.createElement("div").style,"AnimationEvent"in window||(delete Da.animationend.animation,delete Da.animationiteration.animation,delete Da.animationstart.animation),"TransitionEvent"in window||delete Da.transitionend.transition);function na(e){if(Sc[e])return Sc[e];if(!Da[e])return e;var t=Da[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ku)return Sc[e]=t[n];return e}var Uu=na("animationend"),Lu=na("animationiteration"),Hu=na("animationstart"),ev=na("transitionrun"),tv=na("transitionstart"),nv=na("transitioncancel"),Bu=na("transitionend"),qu=new Map,jc="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(" ");jc.push("scrollEnd");function Yt(e,t){qu.set(e,t),Pn(t,[e])}var Ti=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)},Dt=[],Ra=0,Nc=0;function _i(){for(var e=Ra,t=Nc=Ra=0;t<e;){var n=Dt[t];Dt[t++]=null;var a=Dt[t];Dt[t++]=null;var i=Dt[t];Dt[t++]=null;var s=Dt[t];if(Dt[t++]=null,a!==null&&i!==null){var d=a.pending;d===null?i.next=i:(i.next=d.next,d.next=i),a.pending=i}s!==0&&Yu(n,i,s)}}function Di(e,t,n,a){Dt[Ra++]=e,Dt[Ra++]=t,Dt[Ra++]=n,Dt[Ra++]=a,Nc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function wc(e,t,n,a){return Di(e,t,n,a),Ri(e)}function aa(e,t){return Di(e,null,null,t),Ri(e)}function Yu(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,s=e.return;s!==null;)s.childLanes|=n,a=s.alternate,a!==null&&(a.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-St(n),e=s.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),s):null}function Ri(e){if(50<Jl)throw Jl=0,Or=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Oa={};function av(e,t,n,a){this.tag=e,this.key=n,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 Nt(e,t,n,a){return new av(e,t,n,a)}function Ec(e){return e=e.prototype,!(!e||!e.isReactComponent)}function an(e,t){var n=e.alternate;return n===null?(n=Nt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Gu(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Oi(e,t,n,a,i,s){var d=0;if(a=e,typeof e=="function")Ec(e)&&(d=1);else if(typeof e=="string")d=ry(e,n,z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=Nt(31,n,t,i),e.elementType=fe,e.lanes=s,e;case O:return la(n.children,i,s,t);case B:d=8,i|=24;break;case $:return e=Nt(12,n,t,i|2),e.elementType=$,e.lanes=s,e;case ie:return e=Nt(13,n,t,i),e.elementType=ie,e.lanes=s,e;case ae:return e=Nt(19,n,t,i),e.elementType=ae,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:d=10;break e;case ne:d=9;break e;case Q:d=11;break e;case G:d=14;break e;case q:d=16,a=null;break e}d=29,n=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=Nt(d,n,t,i),t.elementType=e,t.type=a,t.lanes=s,t}function la(e,t,n,a){return e=Nt(7,e,a,t),e.lanes=n,e}function Cc(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function Qu(e){var t=Nt(18,null,null,0);return t.stateNode=e,t}function zc(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vu=new WeakMap;function Rt(e,t){if(typeof e=="object"&&e!==null){var n=Vu.get(e);return n!==void 0?n:(t={value:e,source:t,stack:mi(t)},Vu.set(e,t),t)}return{value:e,source:t,stack:mi(t)}}var Ma=[],ka=0,Mi=null,zl=0,Ot=[],Mt=0,En=null,Zt=1,Kt="";function ln(e,t){Ma[ka++]=zl,Ma[ka++]=Mi,Mi=e,zl=t}function Xu(e,t,n){Ot[Mt++]=Zt,Ot[Mt++]=Kt,Ot[Mt++]=En,En=e;var a=Zt;e=Kt;var i=32-St(a)-1;a&=~(1<<i),n+=1;var s=32-St(t)+i;if(30<s){var d=i-i%5;s=(a&(1<<d)-1).toString(32),a>>=d,i-=d,Zt=1<<32-St(t)+i|n<<i|a,Kt=s+e}else Zt=1<<s|n<<i|a,Kt=e}function Ac(e){e.return!==null&&(ln(e,1),Xu(e,1,0))}function Tc(e){for(;e===Mi;)Mi=Ma[--ka],Ma[ka]=null,zl=Ma[--ka],Ma[ka]=null;for(;e===En;)En=Ot[--Mt],Ot[Mt]=null,Kt=Ot[--Mt],Ot[Mt]=null,Zt=Ot[--Mt],Ot[Mt]=null}function Zu(e,t){Ot[Mt++]=Zt,Ot[Mt++]=Kt,Ot[Mt++]=En,Zt=t.id,Kt=t.overflow,En=e}var lt=null,ke=null,we=!1,Cn=null,kt=!1,_c=Error(o(519));function zn(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Al(Rt(t,e)),_c}function Ku(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[at]=e,t[ft]=a,n){case"dialog":Se("cancel",t),Se("close",t);break;case"iframe":case"object":case"embed":Se("load",t);break;case"video":case"audio":for(n=0;n<Wl.length;n++)Se(Wl[n],t);break;case"source":Se("error",t);break;case"img":case"image":case"link":Se("error",t),Se("load",t);break;case"details":Se("toggle",t);break;case"input":Se("invalid",t),su(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Se("invalid",t);break;case"textarea":Se("invalid",t),ru(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||dm(t.textContent,n)?(a.popover!=null&&(Se("beforetoggle",t),Se("toggle",t)),a.onScroll!=null&&Se("scroll",t),a.onScrollEnd!=null&&Se("scrollend",t),a.onClick!=null&&(t.onclick=tn),t=!0):t=!1,t||zn(e,!0)}function Ju(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:kt=!1;return;case 27:case 3:kt=!0;return;default:lt=lt.return}}function Ua(e){if(e!==lt)return!1;if(!we)return Ju(e),we=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Jr(e.type,e.memoizedProps)),n=!n),n&&ke&&zn(e),Ju(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ke=xm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ke=xm(e)}else t===27?(t=ke,Yn(e.type)?(e=Pr,Pr=null,ke=e):ke=t):ke=lt?Lt(e.stateNode.nextSibling):null;return!0}function ia(){ke=lt=null,we=!1}function Dc(){var e=Cn;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),Cn=null),e}function Al(e){Cn===null?Cn=[e]:Cn.push(e)}var Rc=S(null),sa=null,sn=null;function An(e,t,n){J(Rc,t._currentValue),t._currentValue=n}function cn(e){e._currentValue=Rc.current,k(Rc)}function Oc(e,t,n){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===n)break;e=e.return}}function Mc(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var d=i.child;s=s.firstContext;e:for(;s!==null;){var h=s;s=i;for(var x=0;x<t.length;x++)if(h.context===t[x]){s.lanes|=n,h=s.alternate,h!==null&&(h.lanes|=n),Oc(s.return,n,e),a||(d=null);break e}s=h.next}}else if(i.tag===18){if(d=i.return,d===null)throw Error(o(341));d.lanes|=n,s=d.alternate,s!==null&&(s.lanes|=n),Oc(d,n,e),d=null}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===e){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}}function La(e,t,n,a){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var d=i.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var h=i.type;jt(i.pendingProps.value,d.value)||(e!==null?e.push(h):e=[h])}}else if(i===de.current){if(d=i.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ti):e=[ti])}i=i.return}e!==null&&Mc(t,e,n,a),t.flags|=262144}function ki(e){for(e=e.firstContext;e!==null;){if(!jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ca(e){sa=e,sn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function it(e){return $u(sa,e)}function Ui(e,t){return sa===null&&ca(e),$u(e,t)}function $u(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},sn===null){if(e===null)throw Error(o(308));sn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else sn=sn.next=t;return n}var lv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},iv=l.unstable_scheduleCallback,sv=l.unstable_NormalPriority,Ze={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kc(){return{controller:new lv,data:new Map,refCount:0}}function Tl(e){e.refCount--,e.refCount===0&&iv(sv,function(){e.controller.abort()})}var _l=null,Uc=0,Ha=0,Ba=null;function cv(e,t){if(_l===null){var n=_l=[];Uc=0,Ha=Br(),Ba={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Uc++,t.then(Wu,Wu),t}function Wu(){if(--Uc===0&&_l!==null){Ba!==null&&(Ba.status="fulfilled");var e=_l;_l=null,Ha=0,Ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var Fu=_.S;_.S=function(e,t){kf=bt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&cv(e,t),Fu!==null&&Fu(e,t)};var ra=S(null);function Lc(){var e=ra.current;return e!==null?e:Oe.pooledCache}function Li(e,t){t===null?J(ra,ra.current):J(ra,t.pool)}function Iu(){var e=Lc();return e===null?null:{parent:Ze._currentValue,pool:e}}var qa=Error(o(460)),Hc=Error(o(474)),Hi=Error(o(542)),Bi={then:function(){}};function Pu(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ed(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(tn,tn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nd(e),e;default:if(typeof t.status=="string")t.then(tn,tn);else{if(e=Oe,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nd(e),e}throw ua=t,qa}}function oa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ua=n,qa):n}}var ua=null;function td(){if(ua===null)throw Error(o(459));var e=ua;return ua=null,e}function nd(e){if(e===qa||e===Hi)throw Error(o(483))}var Ya=null,Dl=0;function qi(e){var t=Dl;return Dl+=1,Ya===null&&(Ya=[]),ed(Ya,e,t)}function Rl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yi(e,t){throw t.$$typeof===R?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ad(e){function t(w,j){if(e){var E=w.deletions;E===null?(w.deletions=[j],w.flags|=16):E.push(j)}}function n(w,j){if(!e)return null;for(;j!==null;)t(w,j),j=j.sibling;return null}function a(w){for(var j=new Map;w!==null;)w.key!==null?j.set(w.key,w):j.set(w.index,w),w=w.sibling;return j}function i(w,j){return w=an(w,j),w.index=0,w.sibling=null,w}function s(w,j,E){return w.index=E,e?(E=w.alternate,E!==null?(E=E.index,E<j?(w.flags|=67108866,j):E):(w.flags|=67108866,j)):(w.flags|=1048576,j)}function d(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function h(w,j,E,U){return j===null||j.tag!==6?(j=Cc(E,w.mode,U),j.return=w,j):(j=i(j,E),j.return=w,j)}function x(w,j,E,U){var ce=E.type;return ce===O?M(w,j,E.props.children,U,E.key):j!==null&&(j.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===q&&oa(ce)===j.type)?(j=i(j,E.props),Rl(j,E),j.return=w,j):(j=Oi(E.type,E.key,E.props,null,w.mode,U),Rl(j,E),j.return=w,j)}function C(w,j,E,U){return j===null||j.tag!==4||j.stateNode.containerInfo!==E.containerInfo||j.stateNode.implementation!==E.implementation?(j=zc(E,w.mode,U),j.return=w,j):(j=i(j,E.children||[]),j.return=w,j)}function M(w,j,E,U,ce){return j===null||j.tag!==7?(j=la(E,w.mode,U,ce),j.return=w,j):(j=i(j,E),j.return=w,j)}function L(w,j,E){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Cc(""+j,w.mode,E),j.return=w,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Y:return E=Oi(j.type,j.key,j.props,null,w.mode,E),Rl(E,j),E.return=w,E;case K:return j=zc(j,w.mode,E),j.return=w,j;case q:return j=oa(j),L(w,j,E)}if(F(j)||pe(j))return j=la(j,w.mode,E,null),j.return=w,j;if(typeof j.then=="function")return L(w,qi(j),E);if(j.$$typeof===H)return L(w,Ui(w,j),E);Yi(w,j)}return null}function T(w,j,E,U){var ce=j!==null?j.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return ce!==null?null:h(w,j,""+E,U);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:return E.key===ce?x(w,j,E,U):null;case K:return E.key===ce?C(w,j,E,U):null;case q:return E=oa(E),T(w,j,E,U)}if(F(E)||pe(E))return ce!==null?null:M(w,j,E,U,null);if(typeof E.then=="function")return T(w,j,qi(E),U);if(E.$$typeof===H)return T(w,j,Ui(w,E),U);Yi(w,E)}return null}function D(w,j,E,U,ce){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return w=w.get(E)||null,h(j,w,""+U,ce);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case Y:return w=w.get(U.key===null?E:U.key)||null,x(j,w,U,ce);case K:return w=w.get(U.key===null?E:U.key)||null,C(j,w,U,ce);case q:return U=oa(U),D(w,j,E,U,ce)}if(F(U)||pe(U))return w=w.get(E)||null,M(j,w,U,ce,null);if(typeof U.then=="function")return D(w,j,E,qi(U),ce);if(U.$$typeof===H)return D(w,j,E,Ui(j,U),ce);Yi(j,U)}return null}function P(w,j,E,U){for(var ce=null,Ee=null,le=j,ye=j=0,Ne=null;le!==null&&ye<E.length;ye++){le.index>ye?(Ne=le,le=null):Ne=le.sibling;var Ce=T(w,le,E[ye],U);if(Ce===null){le===null&&(le=Ne);break}e&&le&&Ce.alternate===null&&t(w,le),j=s(Ce,j,ye),Ee===null?ce=Ce:Ee.sibling=Ce,Ee=Ce,le=Ne}if(ye===E.length)return n(w,le),we&&ln(w,ye),ce;if(le===null){for(;ye<E.length;ye++)le=L(w,E[ye],U),le!==null&&(j=s(le,j,ye),Ee===null?ce=le:Ee.sibling=le,Ee=le);return we&&ln(w,ye),ce}for(le=a(le);ye<E.length;ye++)Ne=D(le,w,ye,E[ye],U),Ne!==null&&(e&&Ne.alternate!==null&&le.delete(Ne.key===null?ye:Ne.key),j=s(Ne,j,ye),Ee===null?ce=Ne:Ee.sibling=Ne,Ee=Ne);return e&&le.forEach(function(Zn){return t(w,Zn)}),we&&ln(w,ye),ce}function oe(w,j,E,U){if(E==null)throw Error(o(151));for(var ce=null,Ee=null,le=j,ye=j=0,Ne=null,Ce=E.next();le!==null&&!Ce.done;ye++,Ce=E.next()){le.index>ye?(Ne=le,le=null):Ne=le.sibling;var Zn=T(w,le,Ce.value,U);if(Zn===null){le===null&&(le=Ne);break}e&&le&&Zn.alternate===null&&t(w,le),j=s(Zn,j,ye),Ee===null?ce=Zn:Ee.sibling=Zn,Ee=Zn,le=Ne}if(Ce.done)return n(w,le),we&&ln(w,ye),ce;if(le===null){for(;!Ce.done;ye++,Ce=E.next())Ce=L(w,Ce.value,U),Ce!==null&&(j=s(Ce,j,ye),Ee===null?ce=Ce:Ee.sibling=Ce,Ee=Ce);return we&&ln(w,ye),ce}for(le=a(le);!Ce.done;ye++,Ce=E.next())Ce=D(le,w,ye,Ce.value,U),Ce!==null&&(e&&Ce.alternate!==null&&le.delete(Ce.key===null?ye:Ce.key),j=s(Ce,j,ye),Ee===null?ce=Ce:Ee.sibling=Ce,Ee=Ce);return e&&le.forEach(function(by){return t(w,by)}),we&&ln(w,ye),ce}function Re(w,j,E,U){if(typeof E=="object"&&E!==null&&E.type===O&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:e:{for(var ce=E.key;j!==null;){if(j.key===ce){if(ce=E.type,ce===O){if(j.tag===7){n(w,j.sibling),U=i(j,E.props.children),U.return=w,w=U;break e}}else if(j.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===q&&oa(ce)===j.type){n(w,j.sibling),U=i(j,E.props),Rl(U,E),U.return=w,w=U;break e}n(w,j);break}else t(w,j);j=j.sibling}E.type===O?(U=la(E.props.children,w.mode,U,E.key),U.return=w,w=U):(U=Oi(E.type,E.key,E.props,null,w.mode,U),Rl(U,E),U.return=w,w=U)}return d(w);case K:e:{for(ce=E.key;j!==null;){if(j.key===ce)if(j.tag===4&&j.stateNode.containerInfo===E.containerInfo&&j.stateNode.implementation===E.implementation){n(w,j.sibling),U=i(j,E.children||[]),U.return=w,w=U;break e}else{n(w,j);break}else t(w,j);j=j.sibling}U=zc(E,w.mode,U),U.return=w,w=U}return d(w);case q:return E=oa(E),Re(w,j,E,U)}if(F(E))return P(w,j,E,U);if(pe(E)){if(ce=pe(E),typeof ce!="function")throw Error(o(150));return E=ce.call(E),oe(w,j,E,U)}if(typeof E.then=="function")return Re(w,j,qi(E),U);if(E.$$typeof===H)return Re(w,j,Ui(w,E),U);Yi(w,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,j!==null&&j.tag===6?(n(w,j.sibling),U=i(j,E),U.return=w,w=U):(n(w,j),U=Cc(E,w.mode,U),U.return=w,w=U),d(w)):n(w,j)}return function(w,j,E,U){try{Dl=0;var ce=Re(w,j,E,U);return Ya=null,ce}catch(le){if(le===qa||le===Hi)throw le;var Ee=Nt(29,le,null,w.mode);return Ee.lanes=U,Ee.return=w,Ee}}}var da=ad(!0),ld=ad(!1),Tn=!1;function Bc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qc(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 _n(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Dn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ze&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=Ri(e),Yu(e,null,n),t}return Di(e,a,t,n),Ri(e)}function Ol(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,$o(e,n)}}function Yc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?i=s=d:s=s.next=d,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Gc=!1;function Ml(){if(Gc){var e=Ba;if(e!==null)throw e}}function kl(e,t,n,a){Gc=!1;var i=e.updateQueue;Tn=!1;var s=i.firstBaseUpdate,d=i.lastBaseUpdate,h=i.shared.pending;if(h!==null){i.shared.pending=null;var x=h,C=x.next;x.next=null,d===null?s=C:d.next=C,d=x;var M=e.alternate;M!==null&&(M=M.updateQueue,h=M.lastBaseUpdate,h!==d&&(h===null?M.firstBaseUpdate=C:h.next=C,M.lastBaseUpdate=x))}if(s!==null){var L=i.baseState;d=0,M=C=x=null,h=s;do{var T=h.lane&-536870913,D=T!==h.lane;if(D?(je&T)===T:(a&T)===T){T!==0&&T===Ha&&(Gc=!0),M!==null&&(M=M.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var P=e,oe=h;T=t;var Re=n;switch(oe.tag){case 1:if(P=oe.payload,typeof P=="function"){L=P.call(Re,L,T);break e}L=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=oe.payload,T=typeof P=="function"?P.call(Re,L,T):P,T==null)break e;L=N({},L,T);break e;case 2:Tn=!0}}T=h.callback,T!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[T]:D.push(T))}else D={lane:T,tag:h.tag,payload:h.payload,callback:h.callback,next:null},M===null?(C=M=D,x=L):M=M.next=D,d|=T;if(h=h.next,h===null){if(h=i.shared.pending,h===null)break;D=h,h=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);M===null&&(x=L),i.baseState=x,i.firstBaseUpdate=C,i.lastBaseUpdate=M,s===null&&(i.shared.lanes=0),Un|=d,e.lanes=d,e.memoizedState=L}}function id(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function sd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)id(n[e],t)}var Ga=S(null),Gi=S(0);function cd(e,t){e=gn,J(Gi,e),J(Ga,t),gn=e|t.baseLanes}function Qc(){J(Gi,gn),J(Ga,Ga.current)}function Vc(){gn=Gi.current,k(Ga),k(Gi)}var wt=S(null),Ut=null;function Rn(e){var t=e.alternate;J(Qe,Qe.current&1),J(wt,e),Ut===null&&(t===null||Ga.current!==null||t.memoizedState!==null)&&(Ut=e)}function Xc(e){J(Qe,Qe.current),J(wt,e),Ut===null&&(Ut=e)}function rd(e){e.tag===22?(J(Qe,Qe.current),J(wt,e),Ut===null&&(Ut=e)):On()}function On(){J(Qe,Qe.current),J(wt,wt.current)}function Et(e){k(wt),Ut===e&&(Ut=null),k(Qe)}var Qe=S(0);function Qi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Fr(n)||Ir(n)))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 rn=0,ge=null,_e=null,Ke=null,Vi=!1,Qa=!1,fa=!1,Xi=0,Ul=0,Va=null,ov=0;function qe(){throw Error(o(321))}function Zc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Kc(e,t,n,a,i,s){return rn=s,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Xd:rr,fa=!1,s=n(a,i),fa=!1,Qa&&(s=ud(t,n,a,i)),od(e),s}function od(e){_.H=Bl;var t=_e!==null&&_e.next!==null;if(rn=0,Ke=_e=ge=null,Vi=!1,Ul=0,Va=null,t)throw Error(o(300));e===null||Je||(e=e.dependencies,e!==null&&ki(e)&&(Je=!0))}function ud(e,t,n,a){ge=e;var i=0;do{if(Qa&&(Va=null),Ul=0,Qa=!1,25<=i)throw Error(o(301));if(i+=1,Ke=_e=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}_.H=Zd,s=t(n,a)}while(Qa);return s}function uv(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?Ll(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(ge.flags|=1024),t}function Jc(){var e=Xi!==0;return Xi=0,e}function $c(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Wc(e){if(Vi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vi=!1}rn=0,Ke=_e=ge=null,Qa=!1,Ul=Xi=0,Va=null}function ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ge.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ve(){if(_e===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Ke===null?ge.memoizedState:Ke.next;if(t!==null)Ke=t,_e=e;else{if(e===null)throw ge.alternate===null?Error(o(467)):Error(o(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Ke===null?ge.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function Zi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ll(e){var t=Ul;return Ul+=1,Va===null&&(Va=[]),e=ed(Va,e,t),t=ge,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Xd:rr),e}function Ki(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ll(e);if(e.$$typeof===H)return it(e)}throw Error(o(438,String(e)))}function Fc(e){var t=null,n=ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ge.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Zi(),ge.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Le;return t.index++,n}function on(e,t){return typeof t=="function"?t(e):t}function Ji(e){var t=Ve();return Ic(t,_e,e)}function Ic(e,t,n){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var i=e.baseQueue,s=a.pending;if(s!==null){if(i!==null){var d=i.next;i.next=s.next,s.next=d}t.baseQueue=i=s,a.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var h=d=null,x=null,C=t,M=!1;do{var L=C.lane&-536870913;if(L!==C.lane?(je&L)===L:(rn&L)===L){var T=C.revertLane;if(T===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),L===Ha&&(M=!0);else if((rn&T)===T){C=C.next,T===Ha&&(M=!0);continue}else L={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},x===null?(h=x=L,d=s):x=x.next=L,ge.lanes|=T,Un|=T;L=C.action,fa&&n(s,L),s=C.hasEagerState?C.eagerState:n(s,L)}else T={lane:L,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},x===null?(h=x=T,d=s):x=x.next=T,ge.lanes|=L,Un|=L;C=C.next}while(C!==null&&C!==t);if(x===null?d=s:x.next=h,!jt(s,e.memoizedState)&&(Je=!0,M&&(n=Ba,n!==null)))throw n;e.memoizedState=s,e.baseState=d,e.baseQueue=x,a.lastRenderedState=s}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Pc(e){var t=Ve(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var d=i=i.next;do s=e(s,d.action),d=d.next;while(d!==i);jt(s,t.memoizedState)||(Je=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,a]}function dd(e,t,n){var a=ge,i=Ve(),s=we;if(s){if(n===void 0)throw Error(o(407));n=n()}else n=t();var d=!jt((_e||i).memoizedState,n);if(d&&(i.memoizedState=n,Je=!0),i=i.queue,nr(hd.bind(null,a,i,e),[e]),i.getSnapshot!==t||d||Ke!==null&&Ke.memoizedState.tag&1){if(a.flags|=2048,Xa(9,{destroy:void 0},md.bind(null,a,i,n,t),null),Oe===null)throw Error(o(349));s||(rn&127)!==0||fd(a,t,n)}return n}function fd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t=Zi(),ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function md(e,t,n,a){t.value=n,t.getSnapshot=a,pd(t)&&gd(e)}function hd(e,t,n){return n(function(){pd(t)&&gd(e)})}function pd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch{return!0}}function gd(e){var t=aa(e,2);t!==null&&yt(t,e,2)}function er(e){var t=ut();if(typeof e=="function"){var n=e;if(e=n(),fa){jn(!0);try{n()}finally{jn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:e},t}function vd(e,t,n,a){return e.baseState=n,Ic(e,_e,typeof a=="function"?a:on)}function dv(e,t,n,a,i){if(Fi(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){s.listeners.push(d)}};_.T!==null?n(!0):s.isTransition=!1,a(s),n=t.pending,n===null?(s.next=t.pending=s,yd(t,s)):(s.next=n.next,t.pending=n.next=s)}}function yd(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var s=_.T,d={};_.T=d;try{var h=n(i,a),x=_.S;x!==null&&x(d,h),bd(e,t,h)}catch(C){tr(e,t,C)}finally{s!==null&&d.types!==null&&(s.types=d.types),_.T=s}}else try{s=n(i,a),bd(e,t,s)}catch(C){tr(e,t,C)}}function bd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){xd(e,t,a)},function(a){return tr(e,t,a)}):xd(e,t,n)}function xd(e,t,n){t.status="fulfilled",t.value=n,Sd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,yd(e,n)))}function tr(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Sd(t),t=t.next;while(t!==a)}e.action=null}function Sd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jd(e,t){return t}function Nd(e,t){if(we){var n=Oe.formState;if(n!==null){e:{var a=ge;if(we){if(ke){t:{for(var i=ke,s=kt;i.nodeType!==8;){if(!s){i=null;break t}if(i=Lt(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){ke=Lt(i.nextSibling),a=i.data==="F!";break e}}zn(a)}a=!1}a&&(t=n[0])}}return n=ut(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jd,lastRenderedState:t},n.queue=a,n=Gd.bind(null,ge,a),a.dispatch=n,a=er(!1),s=cr.bind(null,ge,!1,a.queue),a=ut(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=dv.bind(null,ge,i,s,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function wd(e){var t=Ve();return Ed(t,_e,e)}function Ed(e,t,n){if(t=Ic(e,t,jd)[0],e=Ji(on)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ll(t)}catch(d){throw d===qa?Hi:d}else a=t;t=Ve();var i=t.queue,s=i.dispatch;return n!==t.memoizedState&&(ge.flags|=2048,Xa(9,{destroy:void 0},fv.bind(null,i,n),null)),[a,s,e]}function fv(e,t){e.action=t}function Cd(e){var t=Ve(),n=_e;if(n!==null)return Ed(t,n,e);Ve(),t=t.memoizedState,n=Ve();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Xa(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Zi(),ge.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function zd(){return Ve().memoizedState}function $i(e,t,n,a){var i=ut();ge.flags|=e,i.memoizedState=Xa(1|t,{destroy:void 0},n,a===void 0?null:a)}function Wi(e,t,n,a){var i=Ve();a=a===void 0?null:a;var s=i.memoizedState.inst;_e!==null&&a!==null&&Zc(a,_e.memoizedState.deps)?i.memoizedState=Xa(t,s,n,a):(ge.flags|=e,i.memoizedState=Xa(1|t,s,n,a))}function Ad(e,t){$i(8390656,8,e,t)}function nr(e,t){Wi(2048,8,e,t)}function mv(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=Zi(),ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Td(e){var t=Ve().memoizedState;return mv({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function _d(e,t){return Wi(4,2,e,t)}function Dd(e,t){return Wi(4,4,e,t)}function Rd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Od(e,t,n){n=n!=null?n.concat([e]):null,Wi(4,4,Rd.bind(null,t,e),n)}function ar(){}function Md(e,t){var n=Ve();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Zc(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function kd(e,t){var n=Ve();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Zc(t,a[1]))return a[0];if(a=e(),fa){jn(!0);try{e()}finally{jn(!1)}}return n.memoizedState=[a,t],a}function lr(e,t,n){return n===void 0||(rn&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Lf(),ge.lanes|=e,Un|=e,n)}function Ud(e,t,n,a){return jt(n,t)?n:Ga.current!==null?(e=lr(e,n,a),jt(e,t)||(Je=!0),e):(rn&42)===0||(rn&1073741824)!==0&&(je&261930)===0?(Je=!0,e.memoizedState=n):(e=Lf(),ge.lanes|=e,Un|=e,t)}function Ld(e,t,n,a,i){var s=Z.p;Z.p=s!==0&&8>s?s:8;var d=_.T,h={};_.T=h,cr(e,!1,t,n);try{var x=i(),C=_.S;if(C!==null&&C(h,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var M=rv(x,a);Hl(e,t,M,At(e))}else Hl(e,t,a,At(e))}catch(L){Hl(e,t,{then:function(){},status:"rejected",reason:L},At())}finally{Z.p=s,d!==null&&h.types!==null&&(d.types=h.types),_.T=d}}function hv(){}function ir(e,t,n,a){if(e.tag!==5)throw Error(o(476));var i=Hd(e).queue;Ld(e,i,t,se,n===null?hv:function(){return Bd(e),n(a)})}function Hd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Bd(e){var t=Hd(e);t.next===null&&(t=e.alternate.memoizedState),Hl(e,t.next.queue,{},At())}function sr(){return it(ti)}function qd(){return Ve().memoizedState}function Yd(){return Ve().memoizedState}function pv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=At();e=_n(n);var a=Dn(t,e,n);a!==null&&(yt(a,t,n),Ol(a,t,n)),t={cache:kc()},e.payload=t;return}t=t.return}}function gv(e,t,n){var a=At();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fi(e)?Qd(t,n):(n=wc(e,t,n,a),n!==null&&(yt(n,e,a),Vd(n,t,a)))}function Gd(e,t,n){var a=At();Hl(e,t,n,a)}function Hl(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fi(e))Qd(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var d=t.lastRenderedState,h=s(d,n);if(i.hasEagerState=!0,i.eagerState=h,jt(h,d))return Di(e,t,i,0),Oe===null&&_i(),!1}catch{}if(n=wc(e,t,i,a),n!==null)return yt(n,e,a),Vd(n,t,a),!0}return!1}function cr(e,t,n,a){if(a={lane:2,revertLane:Br(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Fi(e)){if(t)throw Error(o(479))}else t=wc(e,n,a,2),t!==null&&yt(t,e,2)}function Fi(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Qd(e,t){Qa=Vi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vd(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,$o(e,n)}}var Bl={readContext:it,use:Ki,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};Bl.useEffectEvent=qe;var Xd={readContext:it,use:Ki,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:Ad,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,$i(4194308,4,Rd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){$i(4,2,e,t)},useMemo:function(e,t){var n=ut();t=t===void 0?null:t;var a=e();if(fa){jn(!0);try{e()}finally{jn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ut();if(n!==void 0){var i=n(t);if(fa){jn(!0);try{n(t)}finally{jn(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=gv.bind(null,ge,e),[a.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:function(e){e=er(e);var t=e.queue,n=Gd.bind(null,ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ar,useDeferredValue:function(e,t){var n=ut();return lr(n,e,t)},useTransition:function(){var e=er(!1);return e=Ld.bind(null,ge,e.queue,!0,!1),ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ge,i=ut();if(we){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Oe===null)throw Error(o(349));(je&127)!==0||fd(a,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Ad(hd.bind(null,a,s,e),[e]),a.flags|=2048,Xa(9,{destroy:void 0},md.bind(null,a,s,n,t),null),n},useId:function(){var e=ut(),t=Oe.identifierPrefix;if(we){var n=Kt,a=Zt;n=(a&~(1<<32-St(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Xi++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=ov++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:sr,useFormState:Nd,useActionState:Nd,useOptimistic:function(e){var t=ut();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cr.bind(null,ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fc,useCacheRefresh:function(){return ut().memoizedState=pv.bind(null,ge)},useEffectEvent:function(e){var t=ut(),n={impl:e};return t.memoizedState=n,function(){if((ze&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},rr={readContext:it,use:Ki,useCallback:Md,useContext:it,useEffect:nr,useImperativeHandle:Od,useInsertionEffect:_d,useLayoutEffect:Dd,useMemo:kd,useReducer:Ji,useRef:zd,useState:function(){return Ji(on)},useDebugValue:ar,useDeferredValue:function(e,t){var n=Ve();return Ud(n,_e.memoizedState,e,t)},useTransition:function(){var e=Ji(on)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Ll(e),t]},useSyncExternalStore:dd,useId:qd,useHostTransitionStatus:sr,useFormState:wd,useActionState:wd,useOptimistic:function(e,t){var n=Ve();return vd(n,_e,e,t)},useMemoCache:Fc,useCacheRefresh:Yd};rr.useEffectEvent=Td;var Zd={readContext:it,use:Ki,useCallback:Md,useContext:it,useEffect:nr,useImperativeHandle:Od,useInsertionEffect:_d,useLayoutEffect:Dd,useMemo:kd,useReducer:Pc,useRef:zd,useState:function(){return Pc(on)},useDebugValue:ar,useDeferredValue:function(e,t){var n=Ve();return _e===null?lr(n,e,t):Ud(n,_e.memoizedState,e,t)},useTransition:function(){var e=Pc(on)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Ll(e),t]},useSyncExternalStore:dd,useId:qd,useHostTransitionStatus:sr,useFormState:Cd,useActionState:Cd,useOptimistic:function(e,t){var n=Ve();return _e!==null?vd(n,_e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Fc,useCacheRefresh:Yd};Zd.useEffectEvent=Td;function or(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:N({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ur={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=At(),i=_n(a);i.payload=t,n!=null&&(i.callback=n),t=Dn(e,i,a),t!==null&&(yt(t,e,a),Ol(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=At(),i=_n(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Dn(e,i,a),t!==null&&(yt(t,e,a),Ol(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=At(),a=_n(n);a.tag=2,t!=null&&(a.callback=t),t=Dn(e,a,n),t!==null&&(yt(t,e,n),Ol(t,e,n))}};function Kd(e,t,n,a,i,s,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,d):t.prototype&&t.prototype.isPureReactComponent?!El(n,a)||!El(i,s):!0}function Jd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&ur.enqueueReplaceState(t,t.state,null)}function ma(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=N({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function $d(e){Ti(e)}function Wd(e){console.error(e)}function Fd(e){Ti(e)}function Ii(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Id(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function dr(e,t,n){return n=_n(n),n.tag=3,n.payload={element:null},n.callback=function(){Ii(e,t)},n}function Pd(e){return e=_n(e),e.tag=3,e}function ef(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var s=a.value;e.payload=function(){return i(s)},e.callback=function(){Id(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Id(t,n,a),typeof i!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function vv(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&La(t,n,i,!0),n=wt.current,n!==null){switch(n.tag){case 31:case 13:return Ut===null?us():n.alternate===null&&Ye===0&&(Ye=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===Bi?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Ur(e,a,i)),!1;case 22:return n.flags|=65536,a===Bi?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Ur(e,a,i)),!1}throw Error(o(435,n.tag))}return Ur(e,a,i),us(),!1}if(we)return t=wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==_c&&(e=Error(o(422),{cause:a}),Al(Rt(e,n)))):(a!==_c&&(t=Error(o(423),{cause:a}),Al(Rt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Rt(a,n),i=dr(e.stateNode,a,i),Yc(e,i),Ye!==4&&(Ye=2)),!1;var s=Error(o(520),{cause:a});if(s=Rt(s,n),Kl===null?Kl=[s]:Kl.push(s),Ye!==4&&(Ye=2),t===null)return!0;a=Rt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=dr(n.stateNode,a,e),Yc(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Ln===null||!Ln.has(s))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Pd(i),ef(i,e,n,a),Yc(n,i),!1}n=n.return}while(n!==null);return!1}var fr=Error(o(461)),Je=!1;function st(e,t,n,a){t.child=e===null?ld(t,null,n,a):da(t,e.child,n,a)}function tf(e,t,n,a,i){n=n.render;var s=t.ref;if("ref"in a){var d={};for(var h in a)h!=="ref"&&(d[h]=a[h])}else d=a;return ca(t),a=Kc(e,t,n,d,s,i),h=Jc(),e!==null&&!Je?($c(e,t,i),un(e,t,i)):(we&&h&&Ac(t),t.flags|=1,st(e,t,a,i),t.child)}function nf(e,t,n,a,i){if(e===null){var s=n.type;return typeof s=="function"&&!Ec(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,af(e,t,s,a,i)):(e=Oi(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!xr(e,i)){var d=s.memoizedProps;if(n=n.compare,n=n!==null?n:El,n(d,a)&&e.ref===t.ref)return un(e,t,i)}return t.flags|=1,e=an(s,a),e.ref=t.ref,e.return=t,t.child=e}function af(e,t,n,a,i){if(e!==null){var s=e.memoizedProps;if(El(s,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=s,xr(e,i))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,un(e,t,i)}return mr(e,t,n,a,i)}function lf(e,t,n,a){var i=a.children,s=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(s=s!==null?s.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~s}else a=0,t.child=null;return sf(e,t,s,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Li(t,s!==null?s.cachePool:null),s!==null?cd(t,s):Qc(),rd(t);else return a=t.lanes=536870912,sf(e,t,s!==null?s.baseLanes|n:n,n,a)}else s!==null?(Li(t,s.cachePool),cd(t,s),On(),t.memoizedState=null):(e!==null&&Li(t,null),Qc(),On());return st(e,t,i,n),t.child}function ql(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sf(e,t,n,a,i){var s=Lc();return s=s===null?null:{parent:Ze._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&Li(t,null),Qc(),rd(t),e!==null&&La(e,t,a,!0),t.childLanes=i,null}function Pi(e,t){return t=ts({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cf(e,t,n){return da(t,e.child,null,n),e=Pi(t,t.pendingProps),e.flags|=2,Et(t),t.memoizedState=null,e}function yv(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(a.mode==="hidden")return e=Pi(t,a),t.lanes=536870912,ql(null,e);if(Xc(t),(e=ke)?(e=bm(e,kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:En!==null?{id:Zt,overflow:Kt}:null,retryLane:536870912,hydrationErrors:null},n=Qu(e),n.return=t,t.child=n,lt=t,ke=null)):e=null,e===null)throw zn(t);return t.lanes=536870912,null}return Pi(t,a)}var s=e.memoizedState;if(s!==null){var d=s.dehydrated;if(Xc(t),i)if(t.flags&256)t.flags&=-257,t=cf(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Je||La(e,t,n,!1),i=(n&e.childLanes)!==0,Je||i){if(a=Oe,a!==null&&(d=Wo(a,n),d!==0&&d!==s.retryLane))throw s.retryLane=d,aa(e,d),yt(a,e,d),fr;us(),t=cf(e,t,n)}else e=s.treeContext,ke=Lt(d.nextSibling),lt=t,we=!0,Cn=null,kt=!1,e!==null&&Zu(t,e),t=Pi(t,a),t.flags|=4096;return t}return e=an(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function es(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function mr(e,t,n,a,i){return ca(t),n=Kc(e,t,n,a,void 0,i),a=Jc(),e!==null&&!Je?($c(e,t,i),un(e,t,i)):(we&&a&&Ac(t),t.flags|=1,st(e,t,n,i),t.child)}function rf(e,t,n,a,i,s){return ca(t),t.updateQueue=null,n=ud(t,a,n,i),od(e),a=Jc(),e!==null&&!Je?($c(e,t,s),un(e,t,s)):(we&&a&&Ac(t),t.flags|=1,st(e,t,n,s),t.child)}function of(e,t,n,a,i){if(ca(t),t.stateNode===null){var s=Oa,d=n.contextType;typeof d=="object"&&d!==null&&(s=it(d)),s=new n(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ur,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},Bc(t),d=n.contextType,s.context=typeof d=="object"&&d!==null?it(d):Oa,s.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(or(t,n,d,a),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(d=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),d!==s.state&&ur.enqueueReplaceState(s,s.state,null),kl(t,a,s,i),Ml(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var h=t.memoizedProps,x=ma(n,h);s.props=x;var C=s.context,M=n.contextType;d=Oa,typeof M=="object"&&M!==null&&(d=it(M));var L=n.getDerivedStateFromProps;M=typeof L=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,M||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||C!==d)&&Jd(t,s,a,d),Tn=!1;var T=t.memoizedState;s.state=T,kl(t,a,s,i),Ml(),C=t.memoizedState,h||T!==C||Tn?(typeof L=="function"&&(or(t,n,L,a),C=t.memoizedState),(x=Tn||Kd(t,n,x,a,T,C,d))?(M||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),s.props=a,s.state=C,s.context=d,a=x):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,qc(e,t),d=t.memoizedProps,M=ma(n,d),s.props=M,L=t.pendingProps,T=s.context,C=n.contextType,x=Oa,typeof C=="object"&&C!==null&&(x=it(C)),h=n.getDerivedStateFromProps,(C=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d!==L||T!==x)&&Jd(t,s,a,x),Tn=!1,T=t.memoizedState,s.state=T,kl(t,a,s,i),Ml();var D=t.memoizedState;d!==L||T!==D||Tn||e!==null&&e.dependencies!==null&&ki(e.dependencies)?(typeof h=="function"&&(or(t,n,h,a),D=t.memoizedState),(M=Tn||Kd(t,n,M,a,T,D,x)||e!==null&&e.dependencies!==null&&ki(e.dependencies))?(C||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,D,x),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,D,x)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),s.props=a,s.state=D,s.context=x,a=M):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,es(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=da(t,e.child,null,i),t.child=da(t,null,n,i)):st(e,t,n,i),t.memoizedState=s.state,e=t.child):e=un(e,t,i),e}function uf(e,t,n,a){return ia(),t.flags|=256,st(e,t,n,a),t.child}var hr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pr(e){return{baseLanes:e,cachePool:Iu()}}function gr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function df(e,t,n){var a=t.pendingProps,i=!1,s=(t.flags&128)!==0,d;if((d=s)||(d=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),d&&(i=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(i?Rn(t):On(),(e=ke)?(e=bm(e,kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:En!==null?{id:Zt,overflow:Kt}:null,retryLane:536870912,hydrationErrors:null},n=Qu(e),n.return=t,t.child=n,lt=t,ke=null)):e=null,e===null)throw zn(t);return Ir(e)?t.lanes=32:t.lanes=536870912,null}var h=a.children;return a=a.fallback,i?(On(),i=t.mode,h=ts({mode:"hidden",children:h},i),a=la(a,i,n,null),h.return=t,a.return=t,h.sibling=a,t.child=h,a=t.child,a.memoizedState=pr(n),a.childLanes=gr(e,d,n),t.memoizedState=hr,ql(null,a)):(Rn(t),vr(t,h))}var x=e.memoizedState;if(x!==null&&(h=x.dehydrated,h!==null)){if(s)t.flags&256?(Rn(t),t.flags&=-257,t=yr(e,t,n)):t.memoizedState!==null?(On(),t.child=e.child,t.flags|=128,t=null):(On(),h=a.fallback,i=t.mode,a=ts({mode:"visible",children:a.children},i),h=la(h,i,n,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,da(t,e.child,null,n),a=t.child,a.memoizedState=pr(n),a.childLanes=gr(e,d,n),t.memoizedState=hr,t=ql(null,a));else if(Rn(t),Ir(h)){if(d=h.nextSibling&&h.nextSibling.dataset,d)var C=d.dgst;d=C,a=Error(o(419)),a.stack="",a.digest=d,Al({value:a,source:null,stack:null}),t=yr(e,t,n)}else if(Je||La(e,t,n,!1),d=(n&e.childLanes)!==0,Je||d){if(d=Oe,d!==null&&(a=Wo(d,n),a!==0&&a!==x.retryLane))throw x.retryLane=a,aa(e,a),yt(d,e,a),fr;Fr(h)||us(),t=yr(e,t,n)}else Fr(h)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,ke=Lt(h.nextSibling),lt=t,we=!0,Cn=null,kt=!1,e!==null&&Zu(t,e),t=vr(t,a.children),t.flags|=4096);return t}return i?(On(),h=a.fallback,i=t.mode,x=e.child,C=x.sibling,a=an(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,C!==null?h=an(C,h):(h=la(h,i,n,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,ql(null,a),a=t.child,h=e.child.memoizedState,h===null?h=pr(n):(i=h.cachePool,i!==null?(x=Ze._currentValue,i=i.parent!==x?{parent:x,pool:x}:i):i=Iu(),h={baseLanes:h.baseLanes|n,cachePool:i}),a.memoizedState=h,a.childLanes=gr(e,d,n),t.memoizedState=hr,ql(e.child,a)):(Rn(t),n=e.child,e=n.sibling,n=an(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function vr(e,t){return t=ts({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ts(e,t){return e=Nt(22,e,null,t),e.lanes=0,e}function yr(e,t,n){return da(t,e.child,null,n),e=vr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ff(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Oc(e.return,t,n)}function br(e,t,n,a,i,s){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:s}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=n,d.tailMode=i,d.treeForkCount=s)}function mf(e,t,n){var a=t.pendingProps,i=a.revealOrder,s=a.tail;a=a.children;var d=Qe.current,h=(d&2)!==0;if(h?(d=d&1|2,t.flags|=128):d&=1,J(Qe,d),st(e,t,a,n),a=we?zl:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ff(e,n,t);else if(e.tag===19)ff(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Qi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),br(t,!1,i,n,s,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Qi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}br(t,!0,n,null,s,a);break;case"together":br(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function un(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Un|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(La(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=an(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=an(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ki(e)))}function bv(e,t,n){switch(t.tag){case 3:Me(t,t.stateNode.containerInfo),An(t,Ze,e.memoizedState.cache),ia();break;case 27:case 5:nt(t);break;case 4:Me(t,t.stateNode.containerInfo);break;case 10:An(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Rn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?df(e,t,n):(Rn(t),e=un(e,t,n),e!==null?e.sibling:null);Rn(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(La(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return mf(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),J(Qe,Qe.current),a)break;return null;case 22:return t.lanes=0,lf(e,t,n,t.pendingProps);case 24:An(t,Ze,e.memoizedState.cache)}return un(e,t,n)}function hf(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!xr(e,n)&&(t.flags&128)===0)return Je=!1,bv(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,we&&(t.flags&1048576)!==0&&Xu(t,zl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=oa(t.elementType),t.type=e,typeof e=="function")Ec(e)?(a=ma(e,a),t.tag=1,t=of(null,t,e,a,n)):(t.tag=0,t=mr(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===Q){t.tag=11,t=tf(null,t,e,a,n);break e}else if(i===G){t.tag=14,t=nf(null,t,e,a,n);break e}}throw t=Be(e)||e,Error(o(306,t,""))}}return t;case 0:return mr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=ma(a,t.pendingProps),of(e,t,a,i,n);case 3:e:{if(Me(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var s=t.memoizedState;i=s.element,qc(e,t),kl(t,a,null,n);var d=t.memoizedState;if(a=d.cache,An(t,Ze,a),a!==s.cache&&Mc(t,[Ze],n,!0),Ml(),a=d.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=uf(e,t,a,n);break e}else if(a!==i){i=Rt(Error(o(424)),t),Al(i),t=uf(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ke=Lt(e.firstChild),lt=t,we=!0,Cn=null,kt=!0,n=ld(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ia(),a===i){t=un(e,t,n);break e}st(e,t,a,n)}t=t.child}return t;case 26:return es(e,t),e===null?(n=Em(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(n=t.type,e=t.pendingProps,a=vs(I.current).createElement(n),a[at]=t,a[ft]=e,ct(a,n,e),et(a),t.stateNode=a):t.memoizedState=Em(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return nt(t),e===null&&we&&(a=t.stateNode=jm(t.type,t.pendingProps,I.current),lt=t,kt=!0,i=ke,Yn(t.type)?(Pr=i,ke=Lt(a.firstChild)):ke=i),st(e,t,t.pendingProps.children,n),es(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((i=a=ke)&&(a=$v(a,t.type,t.pendingProps,kt),a!==null?(t.stateNode=a,lt=t,ke=Lt(a.firstChild),kt=!1,i=!0):i=!1),i||zn(t)),nt(t),i=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,a=s.children,Jr(i,s)?a=null:d!==null&&Jr(i,d)&&(t.flags|=32),t.memoizedState!==null&&(i=Kc(e,t,uv,null,null,n),ti._currentValue=i),es(e,t),st(e,t,a,n),t.child;case 6:return e===null&&we&&((e=n=ke)&&(n=Wv(n,t.pendingProps,kt),n!==null?(t.stateNode=n,lt=t,ke=null,e=!0):e=!1),e||zn(t)),null;case 13:return df(e,t,n);case 4:return Me(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=da(t,null,a,n):st(e,t,a,n),t.child;case 11:return tf(e,t,t.type,t.pendingProps,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,An(t,t.type,a.value),st(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,ca(t),i=it(i),a=a(i),t.flags|=1,st(e,t,a,n),t.child;case 14:return nf(e,t,t.type,t.pendingProps,n);case 15:return af(e,t,t.type,t.pendingProps,n);case 19:return mf(e,t,n);case 31:return yv(e,t,n);case 22:return lf(e,t,n,t.pendingProps);case 24:return ca(t),a=it(Ze),e===null?(i=Lc(),i===null&&(i=Oe,s=kc(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=n),i=s),t.memoizedState={parent:a,cache:i},Bc(t),An(t,Ze,i)):((e.lanes&n)!==0&&(qc(e,t),kl(t,null,null,n),Ml()),i=e.memoizedState,s=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),An(t,Ze,a)):(a=s.cache,An(t,Ze,a),a!==i.cache&&Mc(t,[Ze],n,!0))),st(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function dn(e){e.flags|=4}function Sr(e,t,n,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Yf())e.flags|=8192;else throw ua=Bi,Hc}else e.flags&=-16777217}function pf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!_m(t))if(Yf())e.flags|=8192;else throw ua=Bi,Hc}function ns(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ko():536870912,e.lanes|=t,$a|=t)}function Yl(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function xv(e,t,n){var a=t.pendingProps;switch(Tc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),cn(Ze),ue(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ua(t)?dn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Dc())),Ue(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(dn(t),s!==null?(Ue(t),pf(t,s)):(Ue(t),Sr(t,i,null,a,n))):s?s!==e.memoizedState?(dn(t),Ue(t),pf(t,s)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&dn(t),Ue(t),Sr(t,i,e,a,n)),null;case 27:if(ot(t),n=I.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&dn(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ue(t),null}e=z.current,Ua(t)?Ku(t):(e=jm(i,a,n),t.stateNode=e,dn(t))}return Ue(t),null;case 5:if(ot(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&dn(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ue(t),null}if(s=z.current,Ua(t))Ku(t);else{var d=vs(I.current);switch(s){case 1:s=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=d.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?d.createElement(i,{is:a.is}):d.createElement(i)}}s[at]=t,s[ft]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)s.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=s;e:switch(ct(s,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&dn(t)}}return Ue(t),Sr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&dn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=I.current,Ua(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=lt,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||dm(e.nodeValue,n)),e||zn(t,!0)}else e=vs(e).createTextNode(a),e[at]=t,t.stateNode=e}return Ue(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ua(t),n!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[at]=t}else ia(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else n=Dc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Et(t),t):(Et(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ue(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ua(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[at]=t}else ia(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),i=!1}else i=Dc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Et(t),t):(Et(t),null)}return Et(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ns(t,t.updateQueue),Ue(t),null);case 4:return ue(),e===null&&Qr(t.stateNode.containerInfo),Ue(t),null;case 10:return cn(t.type),Ue(t),null;case 19:if(k(Qe),a=t.memoizedState,a===null)return Ue(t),null;if(i=(t.flags&128)!==0,s=a.rendering,s===null)if(i)Yl(a,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Qi(e),s!==null){for(t.flags|=128,Yl(a,!1),e=s.updateQueue,t.updateQueue=e,ns(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Gu(n,e),n=n.sibling;return J(Qe,Qe.current&1|2),we&&ln(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&bt()>cs&&(t.flags|=128,i=!0,Yl(a,!1),t.lanes=4194304)}else{if(!i)if(e=Qi(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ns(t,e),Yl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!we)return Ue(t),null}else 2*bt()-a.renderingStartTime>cs&&n!==536870912&&(t.flags|=128,i=!0,Yl(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=bt(),e.sibling=null,n=Qe.current,J(Qe,i?n&1|2:n&1),we&&ln(t,a.treeForkCount),e):(Ue(t),null);case 22:case 23:return Et(t),Vc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),n=t.updateQueue,n!==null&&ns(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&k(ra),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),cn(Ze),Ue(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Sv(e,t){switch(Tc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(Ze),ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ot(t),null;case 31:if(t.memoizedState!==null){if(Et(t),t.alternate===null)throw Error(o(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Et(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(Qe),null;case 4:return ue(),null;case 10:return cn(t.type),null;case 22:case 23:return Et(t),Vc(),e!==null&&k(ra),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return cn(Ze),null;case 25:return null;default:return null}}function gf(e,t){switch(Tc(t),t.tag){case 3:cn(Ze),ue();break;case 26:case 27:case 5:ot(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&Et(t);break;case 13:Et(t);break;case 19:k(Qe);break;case 10:cn(t.type);break;case 22:case 23:Et(t),Vc(),e!==null&&k(ra);break;case 24:cn(Ze)}}function Gl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var s=n.create,d=n.inst;a=s(),d.destroy=a}n=n.next}while(n!==i)}}catch(h){Te(t,t.return,h)}}function Mn(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var s=i.next;a=s;do{if((a.tag&e)===e){var d=a.inst,h=d.destroy;if(h!==void 0){d.destroy=void 0,i=t;var x=n,C=h;try{C()}catch(M){Te(i,x,M)}}}a=a.next}while(a!==s)}}catch(M){Te(t,t.return,M)}}function vf(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{sd(t,n)}catch(a){Te(e,e.return,a)}}}function yf(e,t,n){n.props=ma(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Te(e,t,a)}}function Ql(e,t){try{var n=e.ref;if(n!==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 n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){Te(e,t,i)}}function Jt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Te(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Te(e,t,i)}else n.current=null}function bf(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Te(e,e.return,i)}}function jr(e,t,n){try{var a=e.stateNode;Qv(a,e.type,n,t),a[ft]=t}catch(i){Te(e,e.return,i)}}function xf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Yn(e.type)||e.tag===4}function Nr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xf(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&&Yn(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 wr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tn));else if(a!==4&&(a===27&&Yn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(wr(e,t,n),e=e.sibling;e!==null;)wr(e,t,n),e=e.sibling}function as(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Yn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(as(e,t,n),e=e.sibling;e!==null;)as(e,t,n),e=e.sibling}function Sf(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ct(t,a,n),t[at]=e,t[ft]=n}catch(s){Te(e,e.return,s)}}var fn=!1,$e=!1,Er=!1,jf=typeof WeakSet=="function"?WeakSet:Set,tt=null;function jv(e,t){if(e=e.containerInfo,Zr=ws,e=Ou(e),yc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var d=0,h=-1,x=-1,C=0,M=0,L=e,T=null;t:for(;;){for(var D;L!==n||i!==0&&L.nodeType!==3||(h=d+i),L!==s||a!==0&&L.nodeType!==3||(x=d+a),L.nodeType===3&&(d+=L.nodeValue.length),(D=L.firstChild)!==null;)T=L,L=D;for(;;){if(L===e)break t;if(T===n&&++C===i&&(h=d),T===s&&++M===a&&(x=d),(D=L.nextSibling)!==null)break;L=T,T=L.parentNode}L=D}n=h===-1||x===-1?null:{start:h,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kr={focusedElem:e,selectionRange:n},ws=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,s=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(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,n=t,i=s.memoizedProps,s=s.memoizedState,a=n.stateNode;try{var P=ma(n.type,i);e=a.getSnapshotBeforeUpdate(P,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(oe){Te(n,n.return,oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Wr(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Wr(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}}function Nf(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:hn(e,n),a&4&&Gl(5,n);break;case 1:if(hn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Te(n,n.return,d)}else{var i=ma(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Te(n,n.return,d)}}a&64&&vf(n),a&512&&Ql(n,n.return);break;case 3:if(hn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{sd(e,t)}catch(d){Te(n,n.return,d)}}break;case 27:t===null&&a&4&&Sf(n);case 26:case 5:hn(e,n),t===null&&a&4&&bf(n),a&512&&Ql(n,n.return);break;case 12:hn(e,n);break;case 31:hn(e,n),a&4&&Cf(e,n);break;case 13:hn(e,n),a&4&&zf(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Dv.bind(null,n),Fv(e,n))));break;case 22:if(a=n.memoizedState!==null||fn,!a){t=t!==null&&t.memoizedState!==null||$e,i=fn;var s=$e;fn=a,($e=t)&&!s?pn(e,n,(n.subtreeFlags&8772)!==0):hn(e,n),fn=i,$e=s}break;case 30:break;default:hn(e,n)}}function wf(e){var t=e.alternate;t!==null&&(e.alternate=null,wf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&tc(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 He=null,ht=!1;function mn(e,t,n){for(n=n.child;n!==null;)Ef(e,t,n),n=n.sibling}function Ef(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(ml,n)}catch{}switch(n.tag){case 26:$e||Jt(n,t),mn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:$e||Jt(n,t);var a=He,i=ht;Yn(n.type)&&(He=n.stateNode,ht=!1),mn(e,t,n),Il(n.stateNode),He=a,ht=i;break;case 5:$e||Jt(n,t);case 6:if(a=He,i=ht,He=null,mn(e,t,n),He=a,ht=i,He!==null)if(ht)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(n.stateNode)}catch(s){Te(n,t,s)}else try{He.removeChild(n.stateNode)}catch(s){Te(n,t,s)}break;case 18:He!==null&&(ht?(e=He,vm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),al(e)):vm(He,n.stateNode));break;case 4:a=He,i=ht,He=n.stateNode.containerInfo,ht=!0,mn(e,t,n),He=a,ht=i;break;case 0:case 11:case 14:case 15:Mn(2,n,t),$e||Mn(4,n,t),mn(e,t,n);break;case 1:$e||(Jt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&yf(n,t,a)),mn(e,t,n);break;case 21:mn(e,t,n);break;case 22:$e=(a=$e)||n.memoizedState!==null,mn(e,t,n),$e=a;break;default:mn(e,t,n)}}function Cf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{al(e)}catch(n){Te(t,t.return,n)}}}function zf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{al(e)}catch(n){Te(t,t.return,n)}}function Nv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new jf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new jf),t;default:throw Error(o(435,e.tag))}}function ls(e,t){var n=Nv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=Rv.bind(null,e,a);a.then(i,i)}})}function pt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],s=e,d=t,h=d;e:for(;h!==null;){switch(h.tag){case 27:if(Yn(h.type)){He=h.stateNode,ht=!1;break e}break;case 5:He=h.stateNode,ht=!1;break e;case 3:case 4:He=h.stateNode.containerInfo,ht=!0;break e}h=h.return}if(He===null)throw Error(o(160));Ef(s,d,i),He=null,ht=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Af(t,e),t=t.sibling}var Gt=null;function Af(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:pt(t,e),gt(e),a&4&&(Mn(3,e,e.return),Gl(3,e),Mn(5,e,e.return));break;case 1:pt(t,e),gt(e),a&512&&($e||n===null||Jt(n,n.return)),a&64&&fn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Gt;if(pt(t,e),gt(e),a&512&&($e||n===null||Jt(n,n.return)),a&4){var s=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":s=i.getElementsByTagName("title")[0],(!s||s[gl]||s[at]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(a),i.head.insertBefore(s,i.querySelector("head > title"))),ct(s,a,n),s[at]=e,et(s),a=s;break e;case"link":var d=Am("link","href",i).get(a+(n.href||""));if(d){for(var h=0;h<d.length;h++)if(s=d[h],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(h,1);break t}}s=i.createElement(a),ct(s,a,n),i.head.appendChild(s);break;case"meta":if(d=Am("meta","content",i).get(a+(n.content||""))){for(h=0;h<d.length;h++)if(s=d[h],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(h,1);break t}}s=i.createElement(a),ct(s,a,n),i.head.appendChild(s);break;default:throw Error(o(468,a))}s[at]=e,et(s),a=s}e.stateNode=a}else Tm(i,e.type,e.stateNode);else e.stateNode=zm(i,a,e.memoizedProps);else s!==a?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,a===null?Tm(i,e.type,e.stateNode):zm(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&jr(e,e.memoizedProps,n.memoizedProps)}break;case 27:pt(t,e),gt(e),a&512&&($e||n===null||Jt(n,n.return)),n!==null&&a&4&&jr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(pt(t,e),gt(e),a&512&&($e||n===null||Jt(n,n.return)),e.flags&32){i=e.stateNode;try{Ca(i,"")}catch(P){Te(e,e.return,P)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,jr(e,i,n!==null?n.memoizedProps:i)),a&1024&&(Er=!0);break;case 6:if(pt(t,e),gt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(P){Te(e,e.return,P)}}break;case 3:if(xs=null,i=Gt,Gt=ys(t.containerInfo),pt(t,e),Gt=i,gt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{al(t.containerInfo)}catch(P){Te(e,e.return,P)}Er&&(Er=!1,Tf(e));break;case 4:a=Gt,Gt=ys(e.stateNode.containerInfo),pt(t,e),gt(e),Gt=a;break;case 12:pt(t,e),gt(e);break;case 31:pt(t,e),gt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ls(e,a)));break;case 13:pt(t,e),gt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ss=bt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ls(e,a)));break;case 22:i=e.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,C=fn,M=$e;if(fn=C||i,$e=M||x,pt(t,e),$e=M,fn=C,gt(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||x||fn||$e||ha(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){x=n=t;try{if(s=x.stateNode,i)d=s.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{h=x.stateNode;var L=x.memoizedProps.style,T=L!=null&&L.hasOwnProperty("display")?L.display:null;h.style.display=T==null||typeof T=="boolean"?"":(""+T).trim()}}catch(P){Te(x,x.return,P)}}}else if(t.tag===6){if(n===null){x=t;try{x.stateNode.nodeValue=i?"":x.memoizedProps}catch(P){Te(x,x.return,P)}}}else if(t.tag===18){if(n===null){x=t;try{var D=x.stateNode;i?ym(D,!0):ym(x.stateNode,!1)}catch(P){Te(x,x.return,P)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,ls(e,n))));break;case 19:pt(t,e),gt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ls(e,a)));break;case 30:break;case 21:break;default:pt(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(xf(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode,s=Nr(e);as(e,s,i);break;case 5:var d=n.stateNode;n.flags&32&&(Ca(d,""),n.flags&=-33);var h=Nr(e);as(e,h,d);break;case 3:case 4:var x=n.stateNode.containerInfo,C=Nr(e);wr(e,C,x);break;default:throw Error(o(161))}}catch(M){Te(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Tf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Tf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function hn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Nf(e,t.alternate,t),t=t.sibling}function ha(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Mn(4,t,t.return),ha(t);break;case 1:Jt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&yf(t,t.return,n),ha(t);break;case 27:Il(t.stateNode);case 26:case 5:Jt(t,t.return),ha(t);break;case 22:t.memoizedState===null&&ha(t);break;case 30:ha(t);break;default:ha(t)}e=e.sibling}}function pn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,s=t,d=s.flags;switch(s.tag){case 0:case 11:case 15:pn(i,s,n),Gl(4,s);break;case 1:if(pn(i,s,n),a=s,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(C){Te(a,a.return,C)}if(a=s,i=a.updateQueue,i!==null){var h=a.stateNode;try{var x=i.shared.hiddenCallbacks;if(x!==null)for(i.shared.hiddenCallbacks=null,i=0;i<x.length;i++)id(x[i],h)}catch(C){Te(a,a.return,C)}}n&&d&64&&vf(s),Ql(s,s.return);break;case 27:Sf(s);case 26:case 5:pn(i,s,n),n&&a===null&&d&4&&bf(s),Ql(s,s.return);break;case 12:pn(i,s,n);break;case 31:pn(i,s,n),n&&d&4&&Cf(i,s);break;case 13:pn(i,s,n),n&&d&4&&zf(i,s);break;case 22:s.memoizedState===null&&pn(i,s,n),Ql(s,s.return);break;case 30:break;default:pn(i,s,n)}t=t.sibling}}function Cr(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Tl(n))}function zr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tl(e))}function Qt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_f(e,t,n,a),t=t.sibling}function _f(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,n,a),i&2048&&Gl(9,t);break;case 1:Qt(e,t,n,a);break;case 3:Qt(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tl(e)));break;case 12:if(i&2048){Qt(e,t,n,a),e=t.stateNode;try{var s=t.memoizedProps,d=s.id,h=s.onPostCommit;typeof h=="function"&&h(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Te(t,t.return,x)}}else Qt(e,t,n,a);break;case 31:Qt(e,t,n,a);break;case 13:Qt(e,t,n,a);break;case 23:break;case 22:s=t.stateNode,d=t.alternate,t.memoizedState!==null?s._visibility&2?Qt(e,t,n,a):Vl(e,t):s._visibility&2?Qt(e,t,n,a):(s._visibility|=2,Za(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Cr(d,t);break;case 24:Qt(e,t,n,a),i&2048&&zr(t.alternate,t);break;default:Qt(e,t,n,a)}}function Za(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,d=t,h=n,x=a,C=d.flags;switch(d.tag){case 0:case 11:case 15:Za(s,d,h,x,i),Gl(8,d);break;case 23:break;case 22:var M=d.stateNode;d.memoizedState!==null?M._visibility&2?Za(s,d,h,x,i):Vl(s,d):(M._visibility|=2,Za(s,d,h,x,i)),i&&C&2048&&Cr(d.alternate,d);break;case 24:Za(s,d,h,x,i),i&&C&2048&&zr(d.alternate,d);break;default:Za(s,d,h,x,i)}t=t.sibling}}function Vl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:Vl(n,a),i&2048&&Cr(a.alternate,a);break;case 24:Vl(n,a),i&2048&&zr(a.alternate,a);break;default:Vl(n,a)}t=t.sibling}}var Xl=8192;function Ka(e,t,n){if(e.subtreeFlags&Xl)for(e=e.child;e!==null;)Df(e,t,n),e=e.sibling}function Df(e,t,n){switch(e.tag){case 26:Ka(e,t,n),e.flags&Xl&&e.memoizedState!==null&&oy(n,Gt,e.memoizedState,e.memoizedProps);break;case 5:Ka(e,t,n);break;case 3:case 4:var a=Gt;Gt=ys(e.stateNode.containerInfo),Ka(e,t,n),Gt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Xl,Xl=16777216,Ka(e,t,n),Xl=a):Ka(e,t,n));break;default:Ka(e,t,n)}}function Rf(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 Zl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];tt=a,Mf(a,e)}Rf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Of(e),e=e.sibling}function Of(e){switch(e.tag){case 0:case 11:case 15:Zl(e),e.flags&2048&&Mn(9,e,e.return);break;case 3:Zl(e);break;case 12:Zl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,is(e)):Zl(e);break;default:Zl(e)}}function is(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];tt=a,Mf(a,e)}Rf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Mn(8,t,t.return),is(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,is(t));break;default:is(t)}e=e.sibling}}function Mf(e,t){for(;tt!==null;){var n=tt;switch(n.tag){case 0:case 11:case 15:Mn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Tl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,tt=a;else e:for(n=e;tt!==null;){a=tt;var i=a.sibling,s=a.return;if(wf(a),a===n){tt=null;break e}if(i!==null){i.return=s,tt=i;break e}tt=s}}}var wv={getCacheForType:function(e){var t=it(Ze),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return it(Ze).controller.signal}},Ev=typeof WeakMap=="function"?WeakMap:Map,ze=0,Oe=null,xe=null,je=0,Ae=0,Ct=null,kn=!1,Ja=!1,Ar=!1,gn=0,Ye=0,Un=0,pa=0,Tr=0,zt=0,$a=0,Kl=null,vt=null,_r=!1,ss=0,kf=0,cs=1/0,rs=null,Ln=null,Fe=0,Hn=null,Wa=null,vn=0,Dr=0,Rr=null,Uf=null,Jl=0,Or=null;function At(){return(ze&2)!==0&&je!==0?je&-je:_.T!==null?Br():Fo()}function Lf(){if(zt===0)if((je&536870912)===0||we){var e=gi;gi<<=1,(gi&3932160)===0&&(gi=262144),zt=e}else zt=536870912;return e=wt.current,e!==null&&(e.flags|=32),zt}function yt(e,t,n){(e===Oe&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)&&(Fa(e,0),Bn(e,je,zt,!1)),pl(e,n),((ze&2)===0||e!==Oe)&&(e===Oe&&((ze&2)===0&&(pa|=n),Ye===4&&Bn(e,je,zt,!1)),$t(e))}function Hf(e,t,n){if((ze&6)!==0)throw Error(o(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||hl(e,t),i=a?Av(e,t):kr(e,t,!0),s=a;do{if(i===0){Ja&&!a&&Bn(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!Cv(n)){i=kr(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var h=e;i=Kl;var x=h.current.memoizedState.isDehydrated;if(x&&(Fa(h,d).flags|=256),d=kr(h,d,!1),d!==2){if(Ar&&!x){h.errorRecoveryDisabledLanes|=s,pa|=s,i=4;break e}s=vt,vt=i,s!==null&&(vt===null?vt=s:vt.push.apply(vt,s))}i=d}if(s=!1,i!==2)continue}}if(i===1){Fa(e,0),Bn(e,t,0,!0);break}e:{switch(a=e,s=i,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Bn(a,t,zt,!kn);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=ss+300-bt(),10<i)){if(Bn(a,t,zt,!kn),yi(a,0,!0)!==0)break e;vn=t,a.timeoutHandle=pm(Bf.bind(null,a,n,vt,rs,_r,t,zt,pa,$a,kn,s,"Throttled",-0,0),i);break e}Bf(a,n,vt,rs,_r,t,zt,pa,$a,kn,s,null,-0,0)}}break}while(!0);$t(e)}function Bf(e,t,n,a,i,s,d,h,x,C,M,L,T,D){if(e.timeoutHandle=-1,L=t.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tn},Df(t,s,L);var P=(s&62914560)===s?ss-bt():(s&4194048)===s?kf-bt():0;if(P=uy(L,P),P!==null){vn=s,e.cancelPendingCommit=P(Kf.bind(null,e,t,s,n,a,i,d,h,x,M,L,null,T,D)),Bn(e,s,d,!C);return}}Kf(e,t,s,n,a,i,d,h,x)}function Cv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],s=i.getSnapshot;i=i.value;try{if(!jt(s(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bn(e,t,n,a){t&=~Tr,t&=~pa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var s=31-St(i),d=1<<s;a[s]=-1,i&=~d}n!==0&&Jo(e,n,t)}function os(){return(ze&6)===0?($l(0),!1):!0}function Mr(){if(xe!==null){if(Ae===0)var e=xe.return;else e=xe,sn=sa=null,Wc(e),Ya=null,Dl=0,e=xe;for(;e!==null;)gf(e.alternate,e),e=e.return;xe=null}}function Fa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Zv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),vn=0,Mr(),Oe=e,xe=n=an(e.current,null),je=t,Ae=0,Ct=null,kn=!1,Ja=hl(e,t),Ar=!1,$a=zt=Tr=pa=Un=Ye=0,vt=Kl=null,_r=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-St(a),s=1<<i;t|=e[i],a&=~s}return gn=t,_i(),n}function qf(e,t){ge=null,_.H=Bl,t===qa||t===Hi?(t=td(),Ae=3):t===Hc?(t=td(),Ae=4):Ae=t===fr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ct=t,xe===null&&(Ye=1,Ii(e,Rt(t,e.current)))}function Yf(){var e=wt.current;return e===null?!0:(je&4194048)===je?Ut===null:(je&62914560)===je||(je&536870912)!==0?e===Ut:!1}function Gf(){var e=_.H;return _.H=Bl,e===null?Bl:e}function Qf(){var e=_.A;return _.A=wv,e}function us(){Ye=4,kn||(je&4194048)!==je&&wt.current!==null||(Ja=!0),(Un&134217727)===0&&(pa&134217727)===0||Oe===null||Bn(Oe,je,zt,!1)}function kr(e,t,n){var a=ze;ze|=2;var i=Gf(),s=Qf();(Oe!==e||je!==t)&&(rs=null,Fa(e,t)),t=!1;var d=Ye;e:do try{if(Ae!==0&&xe!==null){var h=xe,x=Ct;switch(Ae){case 8:Mr(),d=6;break e;case 3:case 2:case 9:case 6:wt.current===null&&(t=!0);var C=Ae;if(Ae=0,Ct=null,Ia(e,h,x,C),n&&Ja){d=0;break e}break;default:C=Ae,Ae=0,Ct=null,Ia(e,h,x,C)}}zv(),d=Ye;break}catch(M){qf(e,M)}while(!0);return t&&e.shellSuspendCounter++,sn=sa=null,ze=a,_.H=i,_.A=s,xe===null&&(Oe=null,je=0,_i()),d}function zv(){for(;xe!==null;)Vf(xe)}function Av(e,t){var n=ze;ze|=2;var a=Gf(),i=Qf();Oe!==e||je!==t?(rs=null,cs=bt()+500,Fa(e,t)):Ja=hl(e,t);e:do try{if(Ae!==0&&xe!==null){t=xe;var s=Ct;t:switch(Ae){case 1:Ae=0,Ct=null,Ia(e,t,s,1);break;case 2:case 9:if(Pu(s)){Ae=0,Ct=null,Xf(t);break}t=function(){Ae!==2&&Ae!==9||Oe!==e||(Ae=7),$t(e)},s.then(t,t);break e;case 3:Ae=7;break e;case 4:Ae=5;break e;case 7:Pu(s)?(Ae=0,Ct=null,Xf(t)):(Ae=0,Ct=null,Ia(e,t,s,7));break;case 5:var d=null;switch(xe.tag){case 26:d=xe.memoizedState;case 5:case 27:var h=xe;if(d?_m(d):h.stateNode.complete){Ae=0,Ct=null;var x=h.sibling;if(x!==null)xe=x;else{var C=h.return;C!==null?(xe=C,ds(C)):xe=null}break t}}Ae=0,Ct=null,Ia(e,t,s,5);break;case 6:Ae=0,Ct=null,Ia(e,t,s,6);break;case 8:Mr(),Ye=6;break e;default:throw Error(o(462))}}Tv();break}catch(M){qf(e,M)}while(!0);return sn=sa=null,_.H=a,_.A=i,ze=n,xe!==null?0:(Oe=null,je=0,_i(),Ye)}function Tv(){for(;xe!==null&&!Ip();)Vf(xe)}function Vf(e){var t=hf(e.alternate,e,gn);e.memoizedProps=e.pendingProps,t===null?ds(e):xe=t}function Xf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=rf(n,t,t.pendingProps,t.type,void 0,je);break;case 11:t=rf(n,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:Wc(t);default:gf(n,t),t=xe=Gu(t,gn),t=hf(n,t,gn)}e.memoizedProps=e.pendingProps,t===null?ds(e):xe=t}function Ia(e,t,n,a){sn=sa=null,Wc(t),Ya=null,Dl=0;var i=t.return;try{if(vv(e,i,t,n,je)){Ye=1,Ii(e,Rt(n,e.current)),xe=null;return}}catch(s){if(i!==null)throw xe=i,s;Ye=1,Ii(e,Rt(n,e.current)),xe=null;return}t.flags&32768?(we||a===1?e=!0:Ja||(je&536870912)!==0?e=!1:(kn=e=!0,(a===2||a===9||a===3||a===6)&&(a=wt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Zf(t,e)):ds(t)}function ds(e){var t=e;do{if((t.flags&32768)!==0){Zf(t,kn);return}e=t.return;var n=xv(t.alternate,t,gn);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Ye===0&&(Ye=5)}function Zf(e,t){do{var n=Sv(e.alternate,e);if(n!==null){n.flags&=32767,xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=n}while(e!==null);Ye=6,xe=null}function Kf(e,t,n,a,i,s,d,h,x){e.cancelPendingCommit=null;do fs();while(Fe!==0);if((ze&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=Nc,rg(e,n,s,d,h,x),e===Oe&&(xe=Oe=null,je=0),Wa=t,Hn=e,vn=n,Dr=s,Rr=i,Uf=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ov(hi,function(){return If(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,i=Z.p,Z.p=2,d=ze,ze|=4;try{jv(e,t,n)}finally{ze=d,Z.p=i,_.T=a}}Fe=1,Jf(),$f(),Wf()}}function Jf(){if(Fe===1){Fe=0;var e=Hn,t=Wa,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var a=Z.p;Z.p=2;var i=ze;ze|=4;try{Af(t,e);var s=Kr,d=Ou(e.containerInfo),h=s.focusedElem,x=s.selectionRange;if(d!==h&&h&&h.ownerDocument&&Ru(h.ownerDocument.documentElement,h)){if(x!==null&&yc(h)){var C=x.start,M=x.end;if(M===void 0&&(M=C),"selectionStart"in h)h.selectionStart=C,h.selectionEnd=Math.min(M,h.value.length);else{var L=h.ownerDocument||document,T=L&&L.defaultView||window;if(T.getSelection){var D=T.getSelection(),P=h.textContent.length,oe=Math.min(x.start,P),Re=x.end===void 0?oe:Math.min(x.end,P);!D.extend&&oe>Re&&(d=Re,Re=oe,oe=d);var w=Du(h,oe),j=Du(h,Re);if(w&&j&&(D.rangeCount!==1||D.anchorNode!==w.node||D.anchorOffset!==w.offset||D.focusNode!==j.node||D.focusOffset!==j.offset)){var E=L.createRange();E.setStart(w.node,w.offset),D.removeAllRanges(),oe>Re?(D.addRange(E),D.extend(j.node,j.offset)):(E.setEnd(j.node,j.offset),D.addRange(E))}}}}for(L=[],D=h;D=D.parentNode;)D.nodeType===1&&L.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<L.length;h++){var U=L[h];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}ws=!!Zr,Kr=Zr=null}finally{ze=i,Z.p=a,_.T=n}}e.current=t,Fe=2}}function $f(){if(Fe===2){Fe=0;var e=Hn,t=Wa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var a=Z.p;Z.p=2;var i=ze;ze|=4;try{Nf(e,t.alternate,t)}finally{ze=i,Z.p=a,_.T=n}}Fe=3}}function Wf(){if(Fe===4||Fe===3){Fe=0,Pp();var e=Hn,t=Wa,n=vn,a=Uf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,Wa=Hn=null,Ff(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ln=null),Ps(n),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(ml,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=_.T,i=Z.p,Z.p=2,_.T=null;try{for(var s=e.onRecoverableError,d=0;d<a.length;d++){var h=a[d];s(h.value,{componentStack:h.stack})}}finally{_.T=t,Z.p=i}}(vn&3)!==0&&fs(),$t(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===Or?Jl++:(Jl=0,Or=e):Jl=0,$l(0)}}function Ff(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Tl(t)))}function fs(){return Jf(),$f(),Wf(),If()}function If(){if(Fe!==5)return!1;var e=Hn,t=Dr;Dr=0;var n=Ps(vn),a=_.T,i=Z.p;try{Z.p=32>n?32:n,_.T=null,n=Rr,Rr=null;var s=Hn,d=vn;if(Fe=0,Wa=Hn=null,vn=0,(ze&6)!==0)throw Error(o(331));var h=ze;if(ze|=4,Of(s.current),_f(s,s.current,d,n),ze=h,$l(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(ml,s)}catch{}return!0}finally{Z.p=i,_.T=a,Ff(e,t)}}function Pf(e,t,n){t=Rt(n,t),t=dr(e.stateNode,t,2),e=Dn(e,t,2),e!==null&&(pl(e,2),$t(e))}function Te(e,t,n){if(e.tag===3)Pf(e,e,n);else for(;t!==null;){if(t.tag===3){Pf(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ln===null||!Ln.has(a))){e=Rt(n,e),n=Pd(2),a=Dn(t,n,2),a!==null&&(ef(n,a,t,e),pl(a,2),$t(a));break}}t=t.return}}function Ur(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Ev;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(Ar=!0,i.add(n),e=_v.bind(null,e,t,n),t.then(e,e))}function _v(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Oe===e&&(je&n)===n&&(Ye===4||Ye===3&&(je&62914560)===je&&300>bt()-ss?(ze&2)===0&&Fa(e,0):Tr|=n,$a===je&&($a=0)),$t(e)}function em(e,t){t===0&&(t=Ko()),e=aa(e,t),e!==null&&(pl(e,t),$t(e))}function Dv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),em(e,n)}function Rv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),em(e,n)}function Ov(e,t){return Pt(e,t)}var ms=null,Pa=null,Lr=!1,hs=!1,Hr=!1,qn=0;function $t(e){e!==Pa&&e.next===null&&(Pa===null?ms=Pa=e:Pa=Pa.next=e),hs=!0,Lr||(Lr=!0,kv())}function $l(e,t){if(!Hr&&hs){Hr=!0;do for(var n=!1,a=ms;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var s=0;else{var d=a.suspendedLanes,h=a.pingedLanes;s=(1<<31-St(42|e)+1)-1,s&=i&~(d&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,lm(a,s))}else s=je,s=yi(a,a===Oe?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||hl(a,s)||(n=!0,lm(a,s));a=a.next}while(n);Hr=!1}}function Mv(){tm()}function tm(){hs=Lr=!1;var e=0;qn!==0&&Xv()&&(e=qn);for(var t=bt(),n=null,a=ms;a!==null;){var i=a.next,s=nm(a,t);s===0?(a.next=null,n===null?ms=i:n.next=i,i===null&&(Pa=n)):(n=a,(e!==0||(s&3)!==0)&&(hs=!0)),a=i}Fe!==0&&Fe!==5||$l(e),qn!==0&&(qn=0)}function nm(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var d=31-St(s),h=1<<d,x=i[d];x===-1?((h&n)===0||(h&a)!==0)&&(i[d]=cg(h,t)):x<=t&&(e.expiredLanes|=h),s&=~h}if(t=Oe,n=je,n=yi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ws(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||hl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Ws(a),Ps(n)){case 2:case 8:n=Xo;break;case 32:n=hi;break;case 268435456:n=Zo;break;default:n=hi}return a=am.bind(null,e),n=Pt(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Ws(a),e.callbackPriority=2,e.callbackNode=null,2}function am(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(fs()&&e.callbackNode!==n)return null;var a=je;return a=yi(e,e===Oe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Hf(e,a,t),nm(e,bt()),e.callbackNode!=null&&e.callbackNode===n?am.bind(null,e):null)}function lm(e,t){if(fs())return null;Hf(e,t,!0)}function kv(){Kv(function(){(ze&6)!==0?Pt(Vo,Mv):tm()})}function Br(){if(qn===0){var e=Ha;e===0&&(e=pi,pi<<=1,(pi&261888)===0&&(pi=256)),qn=e}return qn}function im(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ji(""+e)}function sm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Uv(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var s=im((i[ft]||null).action),d=a.submitter;d&&(t=(t=d[ft]||null)?im(t.formAction):d.getAttribute("formAction"),t!==null&&(s=t,d=null));var h=new Ci("action","action",null,a,i);e.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(qn!==0){var x=d?sm(i,d):new FormData(i);ir(n,{pending:!0,data:x,method:i.method,action:s},null,x)}}else typeof s=="function"&&(h.preventDefault(),x=d?sm(i,d):new FormData(i),ir(n,{pending:!0,data:x,method:i.method,action:s},s,x))},currentTarget:i}]})}}for(var qr=0;qr<jc.length;qr++){var Yr=jc[qr],Lv=Yr.toLowerCase(),Hv=Yr[0].toUpperCase()+Yr.slice(1);Yt(Lv,"on"+Hv)}Yt(Uu,"onAnimationEnd"),Yt(Lu,"onAnimationIteration"),Yt(Hu,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(ev,"onTransitionRun"),Yt(tv,"onTransitionStart"),Yt(nv,"onTransitionCancel"),Yt(Bu,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),Pn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wl="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(" "),Bv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wl));function cm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var d=a.length-1;0<=d;d--){var h=a[d],x=h.instance,C=h.currentTarget;if(h=h.listener,x!==s&&i.isPropagationStopped())break e;s=h,i.currentTarget=C;try{s(i)}catch(M){Ti(M)}i.currentTarget=null,s=x}else for(d=0;d<a.length;d++){if(h=a[d],x=h.instance,C=h.currentTarget,h=h.listener,x!==s&&i.isPropagationStopped())break e;s=h,i.currentTarget=C;try{s(i)}catch(M){Ti(M)}i.currentTarget=null,s=x}}}}function Se(e,t){var n=t[ec];n===void 0&&(n=t[ec]=new Set);var a=e+"__bubble";n.has(a)||(rm(t,e,2,!1),n.add(a))}function Gr(e,t,n){var a=0;t&&(a|=4),rm(n,e,a,t)}var ps="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[ps]){e[ps]=!0,eu.forEach(function(n){n!=="selectionchange"&&(Bv.has(n)||Gr(n,!1,e),Gr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ps]||(t[ps]=!0,Gr("selectionchange",!1,t))}}function rm(e,t,n,a){switch(Lm(t)){case 2:var i=my;break;case 8:i=hy;break;default:i=lo}n=i.bind(null,t,n,e),i=void 0,!oc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Vr(e,t,n,a,i){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var h=a.stateNode.containerInfo;if(h===i)break;if(d===4)for(d=a.return;d!==null;){var x=d.tag;if((x===3||x===4)&&d.stateNode.containerInfo===i)return;d=d.return}for(;h!==null;){if(d=Sa(h),d===null)return;if(x=d.tag,x===5||x===6||x===26||x===27){a=s=d;continue e}h=h.parentNode}}a=a.return}fu(function(){var C=s,M=cc(n),L=[];e:{var T=qu.get(e);if(T!==void 0){var D=Ci,P=e;switch(e){case"keypress":if(wi(n)===0)break e;case"keydown":case"keyup":D=Rg;break;case"focusin":P="focus",D=mc;break;case"focusout":P="blur",D=mc;break;case"beforeblur":case"afterblur":D=mc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=pu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=xg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=kg;break;case Uu:case Lu:case Hu:D=Ng;break;case Bu:D=Lg;break;case"scroll":case"scrollend":D=yg;break;case"wheel":D=Bg;break;case"copy":case"cut":case"paste":D=Eg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=vu;break;case"toggle":case"beforetoggle":D=Yg}var oe=(t&4)!==0,Re=!oe&&(e==="scroll"||e==="scrollend"),w=oe?T!==null?T+"Capture":null:T;oe=[];for(var j=C,E;j!==null;){var U=j;if(E=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||E===null||w===null||(U=yl(j,w),U!=null&&oe.push(Fl(j,U,E))),Re)break;j=j.return}0<oe.length&&(T=new D(T,P,null,n,M),L.push({event:T,listeners:oe}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",T&&n!==sc&&(P=n.relatedTarget||n.fromElement)&&(Sa(P)||P[xa]))break e;if((D||T)&&(T=M.window===M?M:(T=M.ownerDocument)?T.defaultView||T.parentWindow:window,D?(P=n.relatedTarget||n.toElement,D=C,P=P?Sa(P):null,P!==null&&(Re=m(P),oe=P.tag,P!==Re||oe!==5&&oe!==27&&oe!==6)&&(P=null)):(D=null,P=C),D!==P)){if(oe=pu,U="onMouseLeave",w="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(oe=vu,U="onPointerLeave",w="onPointerEnter",j="pointer"),Re=D==null?T:vl(D),E=P==null?T:vl(P),T=new oe(U,j+"leave",D,n,M),T.target=Re,T.relatedTarget=E,U=null,Sa(M)===C&&(oe=new oe(w,j+"enter",P,n,M),oe.target=E,oe.relatedTarget=Re,U=oe),Re=U,D&&P)t:{for(oe=qv,w=D,j=P,E=0,U=w;U;U=oe(U))E++;U=0;for(var ce=j;ce;ce=oe(ce))U++;for(;0<E-U;)w=oe(w),E--;for(;0<U-E;)j=oe(j),U--;for(;E--;){if(w===j||j!==null&&w===j.alternate){oe=w;break t}w=oe(w),j=oe(j)}oe=null}else oe=null;D!==null&&om(L,T,D,oe,!1),P!==null&&Re!==null&&om(L,Re,P,oe,!0)}}e:{if(T=C?vl(C):window,D=T.nodeName&&T.nodeName.toLowerCase(),D==="select"||D==="input"&&T.type==="file")var Ee=Eu;else if(Nu(T))if(Cu)Ee=Fg;else{Ee=$g;var le=Jg}else D=T.nodeName,!D||D.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?C&&ic(C.elementType)&&(Ee=Eu):Ee=Wg;if(Ee&&(Ee=Ee(e,C))){wu(L,Ee,n,M);break e}le&&le(e,T,C),e==="focusout"&&C&&T.type==="number"&&C.memoizedProps.value!=null&&lc(T,"number",T.value)}switch(le=C?vl(C):window,e){case"focusin":(Nu(le)||le.contentEditable==="true")&&(_a=le,bc=C,Cl=null);break;case"focusout":Cl=bc=_a=null;break;case"mousedown":xc=!0;break;case"contextmenu":case"mouseup":case"dragend":xc=!1,Mu(L,n,M);break;case"selectionchange":if(Pg)break;case"keydown":case"keyup":Mu(L,n,M)}var ye;if(pc)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else Ta?Su(e,n)&&(Ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ne="onCompositionStart");Ne&&(yu&&n.locale!=="ko"&&(Ta||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Ta&&(ye=mu()):(wn=M,uc="value"in wn?wn.value:wn.textContent,Ta=!0)),le=gs(C,Ne),0<le.length&&(Ne=new gu(Ne,e,null,n,M),L.push({event:Ne,listeners:le}),ye?Ne.data=ye:(ye=ju(n),ye!==null&&(Ne.data=ye)))),(ye=Qg?Vg(e,n):Xg(e,n))&&(Ne=gs(C,"onBeforeInput"),0<Ne.length&&(le=new gu("onBeforeInput","beforeinput",null,n,M),L.push({event:le,listeners:Ne}),le.data=ye)),Uv(L,e,C,n,M)}cm(L,t)})}function Fl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function gs(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=yl(e,n),i!=null&&a.unshift(Fl(e,i,s)),i=yl(e,t),i!=null&&a.push(Fl(e,i,s))),e.tag===3)return a;e=e.return}return[]}function qv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function om(e,t,n,a,i){for(var s=t._reactName,d=[];n!==null&&n!==a;){var h=n,x=h.alternate,C=h.stateNode;if(h=h.tag,x!==null&&x===a)break;h!==5&&h!==26&&h!==27||C===null||(x=C,i?(C=yl(n,s),C!=null&&d.unshift(Fl(n,C,x))):i||(C=yl(n,s),C!=null&&d.push(Fl(n,C,x)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var Yv=/\r\n?/g,Gv=/\u0000|\uFFFD/g;function um(e){return(typeof e=="string"?e:""+e).replace(Yv,`
|
|
9
|
+
`).replace(Gv,"")}function dm(e,t){return t=um(t),um(e)===t}function De(e,t,n,a,i,s){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ca(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ca(e,""+a);break;case"className":xi(e,"class",a);break;case"tabIndex":xi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":xi(e,n,a);break;case"style":uu(e,a,s);break;case"data":if(t!=="object"){xi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ji(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 s=="function"&&(n==="formAction"?(t!=="input"&&De(e,t,"name",i.name,i,null),De(e,t,"formEncType",i.formEncType,i,null),De(e,t,"formMethod",i.formMethod,i,null),De(e,t,"formTarget",i.formTarget,i,null)):(De(e,t,"encType",i.encType,i,null),De(e,t,"method",i.method,i,null),De(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ji(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=tn);break;case"onScroll":a!=null&&Se("scroll",e);break;case"onScrollEnd":a!=null&&Se("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}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}n=ji(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);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(n,""+a):e.removeAttribute(n);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(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Se("beforetoggle",e),Se("toggle",e),bi(e,"popover",a);break;case"xlinkActuate":en(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":en(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":en(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":en(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":en(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":en(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":en(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":en(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":en(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":bi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=gg.get(n)||n,bi(e,n,a))}}function Xr(e,t,n,a,i,s){switch(n){case"style":uu(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Ca(e,a):(typeof a=="number"||typeof a=="bigint")&&Ca(e,""+a);break;case"onScroll":a!=null&&Se("scroll",e);break;case"onScrollEnd":a!=null&&Se("scrollend",e);break;case"onClick":a!=null&&(e.onclick=tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!tu.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),s=e[ft]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof a=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):bi(e,n,a)}}}function ct(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",e),Se("load",e);var a=!1,i=!1,s;for(s in n)if(n.hasOwnProperty(s)){var d=n[s];if(d!=null)switch(s){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,s,d,n,null)}}i&&De(e,t,"srcSet",n.srcSet,n,null),a&&De(e,t,"src",n.src,n,null);return;case"input":Se("invalid",e);var h=s=d=i=null,x=null,C=null;for(a in n)if(n.hasOwnProperty(a)){var M=n[a];if(M!=null)switch(a){case"name":i=M;break;case"type":d=M;break;case"checked":x=M;break;case"defaultChecked":C=M;break;case"value":s=M;break;case"defaultValue":h=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:De(e,t,a,M,n,null)}}su(e,s,h,x,C,d,i,!1);return;case"select":Se("invalid",e),a=d=s=null;for(i in n)if(n.hasOwnProperty(i)&&(h=n[i],h!=null))switch(i){case"value":s=h;break;case"defaultValue":d=h;break;case"multiple":a=h;default:De(e,t,i,h,n,null)}t=s,n=d,e.multiple=!!a,t!=null?Ea(e,!!a,t,!1):n!=null&&Ea(e,!!a,n,!0);return;case"textarea":Se("invalid",e),s=i=a=null;for(d in n)if(n.hasOwnProperty(d)&&(h=n[d],h!=null))switch(d){case"value":a=h;break;case"defaultValue":i=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(o(91));break;default:De(e,t,d,h,n,null)}ru(e,a,i,s);return;case"option":for(x in n)n.hasOwnProperty(x)&&(a=n[x],a!=null)&&(x==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":De(e,t,x,a,n,null));return;case"dialog":Se("beforetoggle",e),Se("toggle",e),Se("cancel",e),Se("close",e);break;case"iframe":case"object":Se("load",e);break;case"video":case"audio":for(a=0;a<Wl.length;a++)Se(Wl[a],e);break;case"image":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"embed":case"source":case"link":Se("error",e),Se("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(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,C,a,n,null)}return;default:if(ic(t)){for(M in n)n.hasOwnProperty(M)&&(a=n[M],a!==void 0&&Xr(e,t,M,a,n,void 0));return}}for(h in n)n.hasOwnProperty(h)&&(a=n[h],a!=null&&De(e,t,h,a,n,null))}function Qv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,d=null,h=null,x=null,C=null,M=null;for(D in n){var L=n[D];if(n.hasOwnProperty(D)&&L!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":x=L;default:a.hasOwnProperty(D)||De(e,t,D,null,a,L)}}for(var T in a){var D=a[T];if(L=n[T],a.hasOwnProperty(T)&&(D!=null||L!=null))switch(T){case"type":s=D;break;case"name":i=D;break;case"checked":C=D;break;case"defaultChecked":M=D;break;case"value":d=D;break;case"defaultValue":h=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,t));break;default:D!==L&&De(e,t,T,D,a,L)}}ac(e,d,h,x,C,M,s,i);return;case"select":D=d=h=T=null;for(s in n)if(x=n[s],n.hasOwnProperty(s)&&x!=null)switch(s){case"value":break;case"multiple":D=x;default:a.hasOwnProperty(s)||De(e,t,s,null,a,x)}for(i in a)if(s=a[i],x=n[i],a.hasOwnProperty(i)&&(s!=null||x!=null))switch(i){case"value":T=s;break;case"defaultValue":h=s;break;case"multiple":d=s;default:s!==x&&De(e,t,i,s,a,x)}t=h,n=d,a=D,T!=null?Ea(e,!!n,T,!1):!!a!=!!n&&(t!=null?Ea(e,!!n,t,!0):Ea(e,!!n,n?[]:"",!1));return;case"textarea":D=T=null;for(h in n)if(i=n[h],n.hasOwnProperty(h)&&i!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:De(e,t,h,null,a,i)}for(d in a)if(i=a[d],s=n[d],a.hasOwnProperty(d)&&(i!=null||s!=null))switch(d){case"value":T=i;break;case"defaultValue":D=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==s&&De(e,t,d,i,a,s)}cu(e,T,D);return;case"option":for(var P in n)T=n[P],n.hasOwnProperty(P)&&T!=null&&!a.hasOwnProperty(P)&&(P==="selected"?e.selected=!1:De(e,t,P,null,a,T));for(x in a)T=a[x],D=n[x],a.hasOwnProperty(x)&&T!==D&&(T!=null||D!=null)&&(x==="selected"?e.selected=T&&typeof T!="function"&&typeof T!="symbol":De(e,t,x,T,a,D));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 oe in n)T=n[oe],n.hasOwnProperty(oe)&&T!=null&&!a.hasOwnProperty(oe)&&De(e,t,oe,null,a,T);for(C in a)if(T=a[C],D=n[C],a.hasOwnProperty(C)&&T!==D&&(T!=null||D!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(137,t));break;default:De(e,t,C,T,a,D)}return;default:if(ic(t)){for(var Re in n)T=n[Re],n.hasOwnProperty(Re)&&T!==void 0&&!a.hasOwnProperty(Re)&&Xr(e,t,Re,void 0,a,T);for(M in a)T=a[M],D=n[M],!a.hasOwnProperty(M)||T===D||T===void 0&&D===void 0||Xr(e,t,M,T,a,D);return}}for(var w in n)T=n[w],n.hasOwnProperty(w)&&T!=null&&!a.hasOwnProperty(w)&&De(e,t,w,null,a,T);for(L in a)T=a[L],D=n[L],!a.hasOwnProperty(L)||T===D||T==null&&D==null||De(e,t,L,T,a,D)}function fm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Vv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],s=i.transferSize,d=i.initiatorType,h=i.duration;if(s&&h&&fm(d)){for(d=0,h=i.responseEnd,a+=1;a<n.length;a++){var x=n[a],C=x.startTime;if(C>h)break;var M=x.transferSize,L=x.initiatorType;M&&fm(L)&&(x=x.responseEnd,d+=M*(x<h?1:(h-C)/(x-C)))}if(--a,t+=8*(s+d)/(i.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 Zr=null,Kr=null;function vs(e){return e.nodeType===9?e:e.ownerDocument}function mm(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 hm(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 Jr(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 $r=null;function Xv(){var e=window.event;return e&&e.type==="popstate"?e===$r?!1:($r=e,!0):($r=null,!1)}var pm=typeof setTimeout=="function"?setTimeout:void 0,Zv=typeof clearTimeout=="function"?clearTimeout:void 0,gm=typeof Promise=="function"?Promise:void 0,Kv=typeof queueMicrotask=="function"?queueMicrotask:typeof gm<"u"?function(e){return gm.resolve(null).then(e).catch(Jv)}:pm;function Jv(e){setTimeout(function(){throw e})}function Yn(e){return e==="head"}function vm(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),al(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Il(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Il(n);for(var s=n.firstChild;s;){var d=s.nextSibling,h=s.nodeName;s[gl]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=d}}else n==="body"&&Il(e.ownerDocument.body);n=i}while(n);al(t)}function ym(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Wr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Wr(n),tc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function $v(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[gl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Lt(e.nextSibling),e===null)break}return null}function Wv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Lt(e.nextSibling),e===null))return null;return e}function bm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Lt(e.nextSibling),e===null))return null;return e}function Fr(e){return e.data==="$?"||e.data==="$~"}function Ir(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Fv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Lt(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 Pr=null;function xm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Lt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Sm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function jm(e,t,n){switch(t=vs(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Il(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);tc(e)}var Ht=new Map,Nm=new Set;function ys(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var yn=Z.d;Z.d={f:Iv,r:Pv,D:ey,C:ty,L:ny,m:ay,X:iy,S:ly,M:sy};function Iv(){var e=yn.f(),t=os();return e||t}function Pv(e){var t=ja(e);t!==null&&t.tag===5&&t.type==="form"?Bd(t):yn.r(e)}var el=typeof document>"u"?null:document;function wm(e,t,n){var a=el;if(a&&typeof t=="string"&&t){var i=_t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Nm.has(i)||(Nm.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),ct(t,"link",e),et(t),a.head.appendChild(t)))}}function ey(e){yn.D(e),wm("dns-prefetch",e,null)}function ty(e,t){yn.C(e,t),wm("preconnect",e,t)}function ny(e,t,n){yn.L(e,t,n);var a=el;if(a&&e&&t){var i='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+_t(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+_t(n.imageSizes)+'"]')):i+='[href="'+_t(e)+'"]';var s=i;switch(t){case"style":s=tl(e);break;case"script":s=nl(e)}Ht.has(s)||(e=N({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ht.set(s,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Pl(s))||t==="script"&&a.querySelector(ei(s))||(t=a.createElement("link"),ct(t,"link",e),et(t),a.head.appendChild(t)))}}function ay(e,t){yn.m(e,t);var n=el;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+_t(a)+'"][href="'+_t(e)+'"]',s=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=nl(e)}if(!Ht.has(s)&&(e=N({rel:"modulepreload",href:e},t),Ht.set(s,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ei(s)))return}a=n.createElement("link"),ct(a,"link",e),et(a),n.head.appendChild(a)}}}function ly(e,t,n){yn.S(e,t,n);var a=el;if(a&&e){var i=Na(a).hoistableStyles,s=tl(e);t=t||"default";var d=i.get(s);if(!d){var h={loading:0,preload:null};if(d=a.querySelector(Pl(s)))h.loading=5;else{e=N({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ht.get(s))&&eo(e,n);var x=d=a.createElement("link");et(x),ct(x,"link",e),x._p=new Promise(function(C,M){x.onload=C,x.onerror=M}),x.addEventListener("load",function(){h.loading|=1}),x.addEventListener("error",function(){h.loading|=2}),h.loading|=4,bs(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:h},i.set(s,d)}}}function iy(e,t){yn.X(e,t);var n=el;if(n&&e){var a=Na(n).hoistableScripts,i=nl(e),s=a.get(i);s||(s=n.querySelector(ei(i)),s||(e=N({src:e,async:!0},t),(t=Ht.get(i))&&to(e,t),s=n.createElement("script"),et(s),ct(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function sy(e,t){yn.M(e,t);var n=el;if(n&&e){var a=Na(n).hoistableScripts,i=nl(e),s=a.get(i);s||(s=n.querySelector(ei(i)),s||(e=N({src:e,async:!0,type:"module"},t),(t=Ht.get(i))&&to(e,t),s=n.createElement("script"),et(s),ct(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function Em(e,t,n,a){var i=(i=I.current)?ys(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=tl(n.href),n=Na(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=tl(n.href);var s=Na(i).hoistableStyles,d=s.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,d),(s=i.querySelector(Pl(e)))&&!s._p&&(d.instance=s,d.state.loading=5),Ht.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ht.set(e,n),s||cy(i,e,n,d.state))),t&&a===null)throw Error(o(528,""));return d}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=nl(n),n=Na(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function tl(e){return'href="'+_t(e)+'"'}function Pl(e){return'link[rel="stylesheet"]['+e+"]"}function Cm(e){return N({},e,{"data-precedence":e.precedence,precedence:null})}function cy(e,t,n,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}),ct(t,"link",n),et(t),e.head.appendChild(t))}function nl(e){return'[src="'+_t(e)+'"]'}function ei(e){return"script[async]"+e}function zm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+_t(n.href)+'"]');if(a)return t.instance=a,et(a),a;var i=N({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),et(a),ct(a,"style",i),bs(a,n.precedence,e),t.instance=a;case"stylesheet":i=tl(n.href);var s=e.querySelector(Pl(i));if(s)return t.state.loading|=4,t.instance=s,et(s),s;a=Cm(n),(i=Ht.get(i))&&eo(a,i),s=(e.ownerDocument||e).createElement("link"),et(s);var d=s;return d._p=new Promise(function(h,x){d.onload=h,d.onerror=x}),ct(s,"link",a),t.state.loading|=4,bs(s,n.precedence,e),t.instance=s;case"script":return s=nl(n.src),(i=e.querySelector(ei(s)))?(t.instance=i,et(i),i):(a=n,(i=Ht.get(s))&&(a=N({},n),to(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),et(i),ct(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,bs(a,n.precedence,e));return t.instance}function bs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,s=i,d=0;d<a.length;d++){var h=a[d];if(h.dataset.precedence===t)s=h;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function eo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function to(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var xs=null;function Am(e,t,n){if(xs===null){var a=new Map,i=xs=new Map;i.set(n,a)}else i=xs,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var s=n[i];if(!(s[gl]||s[at]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var d=s.getAttribute(t)||"";d=e+d;var h=a.get(d);h?h.push(s):a.set(d,[s])}}return a}function Tm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ry(e,t,n){if(n===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 _m(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function oy(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=tl(a.href),s=t.querySelector(Pl(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ss.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,et(s);return}s=t.ownerDocument||t,a=Cm(a),(i=Ht.get(i))&&eo(a,i),s=s.createElement("link"),et(s);var d=s;d._p=new Promise(function(h,x){d.onload=h,d.onerror=x}),ct(s,"link",a),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ss.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var no=0;function uy(e,t){return e.stylesheets&&e.count===0&&Ns(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Ns(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&no===0&&(no=62500*Vv());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ns(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>no?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Ss(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ns(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var js=null;function Ns(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,js=new Map,t.forEach(dy,e),js=null,Ss.call(e))}function dy(e,t){if(!(t.state.loading&4)){var n=js.get(e);if(n)var a=n.get(null);else{n=new Map,js.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var d=i[s];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}i=t.instance,d=i.getAttribute("data-precedence"),s=n.get(d)||a,s===a&&n.set(null,i),n.set(d,i),this.count++,a=Ss.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ti={$$typeof:H,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function fy(e,t,n,a,i,s,d,h,x){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=Fs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fs(0),this.hiddenUpdates=Fs(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Dm(e,t,n,a,i,s,d,h,x,C,M,L){return e=new fy(e,t,n,d,x,C,M,L,h),t=1,s===!0&&(t|=24),s=Nt(3,null,null,t),e.current=s,s.stateNode=e,t=kc(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:n,cache:t},Bc(s),e}function Rm(e){return e?(e=Oa,e):Oa}function Om(e,t,n,a,i,s){i=Rm(i),a.context===null?a.context=i:a.pendingContext=i,a=_n(t),a.payload={element:n},s=s===void 0?null:s,s!==null&&(a.callback=s),n=Dn(e,a,t),n!==null&&(yt(n,e,t),Ol(n,e,t))}function Mm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ao(e,t){Mm(e,t),(e=e.alternate)&&Mm(e,t)}function km(e){if(e.tag===13||e.tag===31){var t=aa(e,67108864);t!==null&&yt(t,e,67108864),ao(e,67108864)}}function Um(e){if(e.tag===13||e.tag===31){var t=At();t=Is(t);var n=aa(e,t);n!==null&&yt(n,e,t),ao(e,t)}}var ws=!0;function my(e,t,n,a){var i=_.T;_.T=null;var s=Z.p;try{Z.p=2,lo(e,t,n,a)}finally{Z.p=s,_.T=i}}function hy(e,t,n,a){var i=_.T;_.T=null;var s=Z.p;try{Z.p=8,lo(e,t,n,a)}finally{Z.p=s,_.T=i}}function lo(e,t,n,a){if(ws){var i=io(a);if(i===null)Vr(e,t,a,Es,n),Hm(e,a);else if(gy(i,e,t,n,a))a.stopPropagation();else if(Hm(e,a),t&4&&-1<py.indexOf(e)){for(;i!==null;){var s=ja(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var d=In(s.pendingLanes);if(d!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;d;){var x=1<<31-St(d);h.entanglements[1]|=x,d&=~x}$t(s),(ze&6)===0&&(cs=bt()+500,$l(0))}}break;case 31:case 13:h=aa(s,2),h!==null&&yt(h,s,2),os(),ao(s,2)}if(s=io(a),s===null&&Vr(e,t,a,Es,n),s===i)break;i=s}i!==null&&a.stopPropagation()}else Vr(e,t,a,null,n)}}function io(e){return e=cc(e),so(e)}var Es=null;function so(e){if(Es=null,e=Sa(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=v(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Es=e,null}function Lm(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(eg()){case Vo:return 2;case Xo:return 8;case hi:case tg:return 32;case Zo:return 268435456;default:return 32}default:return 32}}var co=!1,Gn=null,Qn=null,Vn=null,ni=new Map,ai=new Map,Xn=[],py="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 Hm(e,t){switch(e){case"focusin":case"focusout":Gn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(t.pointerId)}}function li(e,t,n,a,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:s,targetContainers:[i]},t!==null&&(t=ja(t),t!==null&&km(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function gy(e,t,n,a,i){switch(t){case"focusin":return Gn=li(Gn,e,t,n,a,i),!0;case"dragenter":return Qn=li(Qn,e,t,n,a,i),!0;case"mouseover":return Vn=li(Vn,e,t,n,a,i),!0;case"pointerover":var s=i.pointerId;return ni.set(s,li(ni.get(s)||null,e,t,n,a,i)),!0;case"gotpointercapture":return s=i.pointerId,ai.set(s,li(ai.get(s)||null,e,t,n,a,i)),!0}return!1}function Bm(e){var t=Sa(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,Io(e.priority,function(){Um(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,Io(e.priority,function(){Um(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Cs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=io(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);sc=a,n.target.dispatchEvent(a),sc=null}else return t=ja(n),t!==null&&km(t),e.blockedOn=n,!1;t.shift()}return!0}function qm(e,t,n){Cs(e)&&n.delete(t)}function vy(){co=!1,Gn!==null&&Cs(Gn)&&(Gn=null),Qn!==null&&Cs(Qn)&&(Qn=null),Vn!==null&&Cs(Vn)&&(Vn=null),ni.forEach(qm),ai.forEach(qm)}function zs(e,t){e.blockedOn===t&&(e.blockedOn=null,co||(co=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,vy)))}var As=null;function Ym(e){As!==e&&(As=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){As===e&&(As=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(so(a||n)===null)continue;break}var s=ja(n);s!==null&&(e.splice(t,3),t-=3,ir(s,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function al(e){function t(x){return zs(x,e)}Gn!==null&&zs(Gn,e),Qn!==null&&zs(Qn,e),Vn!==null&&zs(Vn,e),ni.forEach(t),ai.forEach(t);for(var n=0;n<Xn.length;n++){var a=Xn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Xn.length&&(n=Xn[0],n.blockedOn===null);)Bm(n),n.blockedOn===null&&Xn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],s=n[a+1],d=i[ft]||null;if(typeof s=="function")d||Ym(n);else if(d){var h=null;if(s&&s.hasAttribute("formAction")){if(i=s,d=s[ft]||null)h=d.formAction;else if(so(i)!==null)continue}else h=d.action;typeof h=="function"?n[a+1]=h:(n.splice(a,3),a-=3),Ym(n)}}}function Gm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(d){return i=d})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function ro(e){this._internalRoot=e}Ts.prototype.render=ro.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,a=At();Om(n,a,e,t,null,null)},Ts.prototype.unmount=ro.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Om(e.current,2,null,e,null,null),os(),t[xa]=null}};function Ts(e){this._internalRoot=e}Ts.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fo();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xn.length&&t!==0&&t<Xn[n].priority;n++);Xn.splice(n,0,e),n===0&&Bm(e)}};var Qm=r.version;if(Qm!=="19.2.4")throw Error(o(527,Qm,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?A(e):null,e=e===null?null:e.stateNode,e};var yy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_s.isDisabled&&_s.supportsFiber)try{ml=_s.inject(yy),xt=_s}catch{}}return si.createRoot=function(e,t){if(!f(e))throw Error(o(299));var n=!1,a="",i=$d,s=Wd,d=Fd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Dm(e,1,!1,null,null,n,a,null,i,s,d,Gm),e[xa]=t.current,Qr(e),new ro(t)},si.hydrateRoot=function(e,t,n){if(!f(e))throw Error(o(299));var a=!1,i="",s=$d,d=Wd,h=Fd,x=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(h=n.onRecoverableError),n.formState!==void 0&&(x=n.formState)),t=Dm(e,1,!0,t,n??null,a,i,x,s,d,h,Gm),t.context=Rm(null),n=t.current,a=At(),a=Is(a),i=_n(a),i.callback=null,Dn(n,i,a),n=a,t.current.lanes=n,pl(t,n),$t(t),e[xa]=t.current,Qr(e),new Ts(t)},si.version="19.2.4",si}var Pm;function Ty(){if(Pm)return fo.exports;Pm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),fo.exports=Ay(),fo.exports}var _y=Ty();const Dy=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ry=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,u,o)=>o?o.toUpperCase():u.toLowerCase()),eh=l=>{const r=Ry(l);return r.charAt(0).toUpperCase()+r.slice(1)},Th=(...l)=>l.filter((r,u,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===u).join(" ").trim(),Oy=l=>{for(const r in l)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};var My={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ky=y.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:u=2,absoluteStrokeWidth:o,className:f="",children:m,iconNode:p,...v},b)=>y.createElement("svg",{ref:b,...My,width:r,height:r,stroke:l,strokeWidth:o?Number(u)*24/Number(r):u,className:Th("lucide",f),...!m&&!Oy(v)&&{"aria-hidden":"true"},...v},[...p.map(([g,A])=>y.createElement(g,A)),...Array.isArray(m)?m:[m]]));const Ft=(l,r)=>{const u=y.forwardRef(({className:o,...f},m)=>y.createElement(ky,{ref:m,iconNode:r,className:Th(`lucide-${Dy(eh(l))}`,`lucide-${l}`,o),...f}));return u.displayName=eh(l),u};const Uy=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Oo=Ft("chevron-right",Uy);const Ly=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Hy=Ft("download",Ly);const By=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],qy=Ft("globe",By);const Yy=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Gy=Ft("layout-dashboard",Yy);const Qy=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],Vy=Ft("menu",Qy);const Xy=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Zy=Ft("play",Xy);const Ky=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],Jy=Ft("rocket",Ky);const $y=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Wy=Ft("settings",$y);const Fy=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Iy=Ft("trash-2",Fy);const Py=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_h=Ft("x",Py);function Dh(l){var r,u,o="";if(typeof l=="string"||typeof l=="number")o+=l;else if(typeof l=="object")if(Array.isArray(l)){var f=l.length;for(r=0;r<f;r++)l[r]&&(u=Dh(l[r]))&&(o&&(o+=" "),o+=u)}else for(u in l)l[u]&&(o&&(o+=" "),o+=u);return o}function Rh(){for(var l,r,u=0,o="",f=arguments.length;u<f;u++)(l=arguments[u])&&(r=Dh(l))&&(o&&(o+=" "),o+=r);return o}const th=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,nh=Rh,Oh=(l,r)=>u=>{var o;if(r?.variants==null)return nh(l,u?.class,u?.className);const{variants:f,defaultVariants:m}=r,p=Object.keys(f).map(g=>{const A=u?.[g],N=m?.[g];if(A===null)return null;const R=th(A)||th(N);return f[g][R]}),v=u&&Object.entries(u).reduce((g,A)=>{let[N,R]=A;return R===void 0||(g[N]=R),g},{}),b=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((g,A)=>{let{class:N,className:R,...Y}=A;return Object.entries(Y).every(K=>{let[O,B]=K;return Array.isArray(B)?B.includes({...m,...v}[O]):{...m,...v}[O]===B})?[...g,N,R]:g},[]);return nh(l,p,b,u?.class,u?.className)},e0=(l,r)=>{const u=new Array(l.length+r.length);for(let o=0;o<l.length;o++)u[o]=l[o];for(let o=0;o<r.length;o++)u[l.length+o]=r[o];return u},t0=(l,r)=>({classGroupId:l,validator:r}),Mh=(l=new Map,r=null,u)=>({nextPart:l,validators:r,classGroupId:u}),Ys="-",ah=[],n0="arbitrary..",a0=l=>{const r=i0(l),{conflictingClassGroups:u,conflictingClassGroupModifiers:o}=l;return{getClassGroupId:p=>{if(p.startsWith("[")&&p.endsWith("]"))return l0(p);const v=p.split(Ys),b=v[0]===""&&v.length>1?1:0;return kh(v,b,r)},getConflictingClassGroupIds:(p,v)=>{if(v){const b=o[p],g=u[p];return b?g?e0(g,b):b:g||ah}return u[p]||ah}}},kh=(l,r,u)=>{if(l.length-r===0)return u.classGroupId;const f=l[r],m=u.nextPart.get(f);if(m){const g=kh(l,r+1,m);if(g)return g}const p=u.validators;if(p===null)return;const v=r===0?l.join(Ys):l.slice(r).join(Ys),b=p.length;for(let g=0;g<b;g++){const A=p[g];if(A.validator(v))return A.classGroupId}},l0=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=l.slice(1,-1),u=r.indexOf(":"),o=r.slice(0,u);return o?n0+o:void 0})(),i0=l=>{const{theme:r,classGroups:u}=l;return s0(u,r)},s0=(l,r)=>{const u=Mh();for(const o in l){const f=l[o];Mo(f,u,o,r)}return u},Mo=(l,r,u,o)=>{const f=l.length;for(let m=0;m<f;m++){const p=l[m];c0(p,r,u,o)}},c0=(l,r,u,o)=>{if(typeof l=="string"){r0(l,r,u);return}if(typeof l=="function"){o0(l,r,u,o);return}u0(l,r,u,o)},r0=(l,r,u)=>{const o=l===""?r:Uh(r,l);o.classGroupId=u},o0=(l,r,u,o)=>{if(d0(l)){Mo(l(o),r,u,o);return}r.validators===null&&(r.validators=[]),r.validators.push(t0(u,l))},u0=(l,r,u,o)=>{const f=Object.entries(l),m=f.length;for(let p=0;p<m;p++){const[v,b]=f[p];Mo(b,Uh(r,v),u,o)}},Uh=(l,r)=>{let u=l;const o=r.split(Ys),f=o.length;for(let m=0;m<f;m++){const p=o[m];let v=u.nextPart.get(p);v||(v=Mh(),u.nextPart.set(p,v)),u=v}return u},d0=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,f0=l=>{if(l<1)return{get:()=>{},set:()=>{}};let r=0,u=Object.create(null),o=Object.create(null);const f=(m,p)=>{u[m]=p,r++,r>l&&(r=0,o=u,u=Object.create(null))};return{get(m){let p=u[m];if(p!==void 0)return p;if((p=o[m])!==void 0)return f(m,p),p},set(m,p){m in u?u[m]=p:f(m,p)}}},Eo="!",lh=":",m0=[],ih=(l,r,u,o,f)=>({modifiers:l,hasImportantModifier:r,baseClassName:u,maybePostfixModifierPosition:o,isExternal:f}),h0=l=>{const{prefix:r,experimentalParseClassName:u}=l;let o=f=>{const m=[];let p=0,v=0,b=0,g;const A=f.length;for(let O=0;O<A;O++){const B=f[O];if(p===0&&v===0){if(B===lh){m.push(f.slice(b,O)),b=O+1;continue}if(B==="/"){g=O;continue}}B==="["?p++:B==="]"?p--:B==="("?v++:B===")"&&v--}const N=m.length===0?f:f.slice(b);let R=N,Y=!1;N.endsWith(Eo)?(R=N.slice(0,-1),Y=!0):N.startsWith(Eo)&&(R=N.slice(1),Y=!0);const K=g&&g>b?g-b:void 0;return ih(m,Y,R,K)};if(r){const f=r+lh,m=o;o=p=>p.startsWith(f)?m(p.slice(f.length)):ih(m0,!1,p,void 0,!0)}if(u){const f=o;o=m=>u({className:m,parseClassName:f})}return o},p0=l=>{const r=new Map;return l.orderSensitiveModifiers.forEach((u,o)=>{r.set(u,1e6+o)}),u=>{const o=[];let f=[];for(let m=0;m<u.length;m++){const p=u[m],v=p[0]==="[",b=r.has(p);v||b?(f.length>0&&(f.sort(),o.push(...f),f=[]),o.push(p)):f.push(p)}return f.length>0&&(f.sort(),o.push(...f)),o}},g0=l=>({cache:f0(l.cacheSize),parseClassName:h0(l),sortModifiers:p0(l),...a0(l)}),v0=/\s+/,y0=(l,r)=>{const{parseClassName:u,getClassGroupId:o,getConflictingClassGroupIds:f,sortModifiers:m}=r,p=[],v=l.trim().split(v0);let b="";for(let g=v.length-1;g>=0;g-=1){const A=v[g],{isExternal:N,modifiers:R,hasImportantModifier:Y,baseClassName:K,maybePostfixModifierPosition:O}=u(A);if(N){b=A+(b.length>0?" "+b:b);continue}let B=!!O,$=o(B?K.substring(0,O):K);if(!$){if(!B){b=A+(b.length>0?" "+b:b);continue}if($=o(K),!$){b=A+(b.length>0?" "+b:b);continue}B=!1}const ne=R.length===0?"":R.length===1?R[0]:m(R).join(":"),H=Y?ne+Eo:ne,Q=H+$;if(p.indexOf(Q)>-1)continue;p.push(Q);const ie=f($,B);for(let ae=0;ae<ie.length;++ae){const G=ie[ae];p.push(H+G)}b=A+(b.length>0?" "+b:b)}return b},b0=(...l)=>{let r=0,u,o,f="";for(;r<l.length;)(u=l[r++])&&(o=Lh(u))&&(f&&(f+=" "),f+=o);return f},Lh=l=>{if(typeof l=="string")return l;let r,u="";for(let o=0;o<l.length;o++)l[o]&&(r=Lh(l[o]))&&(u&&(u+=" "),u+=r);return u},x0=(l,...r)=>{let u,o,f,m;const p=b=>{const g=r.reduce((A,N)=>N(A),l());return u=g0(g),o=u.cache.get,f=u.cache.set,m=v,v(b)},v=b=>{const g=o(b);if(g)return g;const A=y0(b,u);return f(b,A),A};return m=p,(...b)=>m(b0(...b))},S0=[],Ie=l=>{const r=u=>u[l]||S0;return r.isThemeGetter=!0,r},Hh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Bh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,j0=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,N0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,w0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,E0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,C0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,z0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kn=l=>j0.test(l),be=l=>!!l&&!Number.isNaN(Number(l)),Jn=l=>!!l&&Number.isInteger(Number(l)),go=l=>l.endsWith("%")&&be(l.slice(0,-1)),bn=l=>N0.test(l),qh=()=>!0,A0=l=>w0.test(l)&&!E0.test(l),ko=()=>!1,T0=l=>C0.test(l),_0=l=>z0.test(l),D0=l=>!ee(l)&&!te(l),R0=l=>Fn(l,Qh,ko),ee=l=>Hh.test(l),ga=l=>Fn(l,Vh,A0),sh=l=>Fn(l,q0,be),O0=l=>Fn(l,Zh,qh),M0=l=>Fn(l,Xh,ko),ch=l=>Fn(l,Yh,ko),k0=l=>Fn(l,Gh,_0),Ds=l=>Fn(l,Kh,T0),te=l=>Bh.test(l),ci=l=>ya(l,Vh),U0=l=>ya(l,Xh),rh=l=>ya(l,Yh),L0=l=>ya(l,Qh),H0=l=>ya(l,Gh),Rs=l=>ya(l,Kh,!0),B0=l=>ya(l,Zh,!0),Fn=(l,r,u)=>{const o=Hh.exec(l);return o?o[1]?r(o[1]):u(o[2]):!1},ya=(l,r,u=!1)=>{const o=Bh.exec(l);return o?o[1]?r(o[1]):u:!1},Yh=l=>l==="position"||l==="percentage",Gh=l=>l==="image"||l==="url",Qh=l=>l==="length"||l==="size"||l==="bg-size",Vh=l=>l==="length",q0=l=>l==="number",Xh=l=>l==="family-name",Zh=l=>l==="number"||l==="weight",Kh=l=>l==="shadow",Y0=()=>{const l=Ie("color"),r=Ie("font"),u=Ie("text"),o=Ie("font-weight"),f=Ie("tracking"),m=Ie("leading"),p=Ie("breakpoint"),v=Ie("container"),b=Ie("spacing"),g=Ie("radius"),A=Ie("shadow"),N=Ie("inset-shadow"),R=Ie("text-shadow"),Y=Ie("drop-shadow"),K=Ie("blur"),O=Ie("perspective"),B=Ie("aspect"),$=Ie("ease"),ne=Ie("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ie=()=>[...Q(),te,ee],ae=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],q=()=>[te,ee,b],fe=()=>[Kn,"full","auto",...q()],Le=()=>[Jn,"none","subgrid",te,ee],W=()=>["auto",{span:["full",Jn,te,ee]},Jn,te,ee],pe=()=>[Jn,"auto",te,ee],Xe=()=>["auto","min","max","fr",te,ee],Be=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...q()],Z=()=>[Kn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],se=()=>[Kn,"screen","full","dvw","lvw","svw","min","max","fit",...q()],ve=()=>[Kn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...q()],V=()=>[l,te,ee],S=()=>[...Q(),rh,ch,{position:[te,ee]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",L0,R0,{size:[te,ee]}],z=()=>[go,ci,ga],X=()=>["","none","full",g,te,ee],I=()=>["",be,ci,ga],de=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[be,go,rh,ch],nt=()=>["","none",K,te,ee],ot=()=>["none",be,te,ee],Xt=()=>["none",be,te,ee],Sn=()=>[be,te,ee],dt=()=>[Kn,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[bn],breakpoint:[bn],color:[qh],container:[bn],"drop-shadow":[bn],ease:["in","out","in-out"],font:[D0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[bn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[bn],shadow:[bn],spacing:["px",be],text:[bn],"text-shadow":[bn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Kn,ee,te,B]}],container:["container"],columns:[{columns:[be,ee,te,v]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ie()}],overflow:[{overflow:ae()}],"overflow-x":[{"overflow-x":ae()}],"overflow-y":[{"overflow-y":ae()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:fe()}],"inset-x":[{"inset-x":fe()}],"inset-y":[{"inset-y":fe()}],start:[{"inset-s":fe(),start:fe()}],end:[{"inset-e":fe(),end:fe()}],"inset-bs":[{"inset-bs":fe()}],"inset-be":[{"inset-be":fe()}],top:[{top:fe()}],right:[{right:fe()}],bottom:[{bottom:fe()}],left:[{left:fe()}],visibility:["visible","invisible","collapse"],z:[{z:[Jn,"auto",te,ee]}],basis:[{basis:[Kn,"full","auto",v,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[be,Kn,"auto","initial","none",ee]}],grow:[{grow:["",be,te,ee]}],shrink:[{shrink:["",be,te,ee]}],order:[{order:[Jn,"first","last","none",te,ee]}],"grid-cols":[{"grid-cols":Le()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":Le()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Xe()}],"auto-rows":[{"auto-rows":Xe()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...Be(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...Be()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":Be()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pbs:[{pbs:q()}],pbe:[{pbe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...se()]}],"min-inline-size":[{"min-inline":["auto",...se()]}],"max-inline-size":[{"max-inline":["none",...se()]}],"block-size":[{block:["auto",...ve()]}],"min-block-size":[{"min-block":["auto",...ve()]}],"max-block-size":[{"max-block":["none",...ve()]}],w:[{w:[v,"screen",...Z()]}],"min-w":[{"min-w":[v,"screen","none",...Z()]}],"max-w":[{"max-w":[v,"screen","none","prose",{screen:[p]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",u,ci,ga]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,B0,O0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",go,ee]}],"font-family":[{font:[U0,M0,r]}],"font-features":[{"font-features":[ee]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[f,te,ee]}],"line-clamp":[{"line-clamp":[be,"none",te,sh]}],leading:[{leading:[m,...q()]}],"list-image":[{"list-image":["none",te,ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",te,ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[be,"from-font","auto",te,ga]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[be,"auto",te,ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te,ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te,ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:S()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Jn,te,ee],radial:["",te,ee],conic:[Jn,te,ee]},H0,k0]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-bs":[{"border-bs":I()}],"border-w-be":[{"border-be":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[be,te,ee]}],"outline-w":[{outline:["",be,ci,ga]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",A,Rs,Ds]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",N,Rs,Ds]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[be,ga]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",R,Rs,Ds]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[be,te,ee]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[be]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[te,ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Q()}],"mask-image-conic-pos":[{"mask-conic":[be]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:S()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",te,ee]}],filter:[{filter:["","none",te,ee]}],blur:[{blur:nt()}],brightness:[{brightness:[be,te,ee]}],contrast:[{contrast:[be,te,ee]}],"drop-shadow":[{"drop-shadow":["","none",Y,Rs,Ds]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",be,te,ee]}],"hue-rotate":[{"hue-rotate":[be,te,ee]}],invert:[{invert:["",be,te,ee]}],saturate:[{saturate:[be,te,ee]}],sepia:[{sepia:["",be,te,ee]}],"backdrop-filter":[{"backdrop-filter":["","none",te,ee]}],"backdrop-blur":[{"backdrop-blur":nt()}],"backdrop-brightness":[{"backdrop-brightness":[be,te,ee]}],"backdrop-contrast":[{"backdrop-contrast":[be,te,ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",be,te,ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[be,te,ee]}],"backdrop-invert":[{"backdrop-invert":["",be,te,ee]}],"backdrop-opacity":[{"backdrop-opacity":[be,te,ee]}],"backdrop-saturate":[{"backdrop-saturate":[be,te,ee]}],"backdrop-sepia":[{"backdrop-sepia":["",be,te,ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",te,ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[be,"initial",te,ee]}],ease:[{ease:["linear","initial",$,te,ee]}],delay:[{delay:[be,te,ee]}],animate:[{animate:["none",ne,te,ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O,te,ee]}],"perspective-origin":[{"perspective-origin":ie()}],rotate:[{rotate:ot()}],"rotate-x":[{"rotate-x":ot()}],"rotate-y":[{"rotate-y":ot()}],"rotate-z":[{"rotate-z":ot()}],scale:[{scale:Xt()}],"scale-x":[{"scale-x":Xt()}],"scale-y":[{"scale-y":Xt()}],"scale-z":[{"scale-z":Xt()}],"scale-3d":["scale-3d"],skew:[{skew:Sn()}],"skew-x":[{"skew-x":Sn()}],"skew-y":[{"skew-y":Sn()}],transform:[{transform:[te,ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:ie()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:dt()}],"translate-x":[{"translate-x":dt()}],"translate-y":[{"translate-y":dt()}],"translate-z":[{"translate-z":dt()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te,ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mbs":[{"scroll-mbs":q()}],"scroll-mbe":[{"scroll-mbe":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pbs":[{"scroll-pbs":q()}],"scroll-pbe":[{"scroll-pbe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te,ee]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[be,ci,ga,sh]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},G0=x0(Y0);function qt(...l){return G0(Rh(l))}const Q0=Oh("inline-flex items-center rounded-md border px-2 py-0.5 text-[11px] font-medium tracking-wide",{variants:{variant:{neutral:"border-zinc-800 bg-zinc-950 text-zinc-300",success:"border-emerald-500/25 bg-emerald-500/10 text-emerald-300",warning:"border-amber-500/25 bg-amber-500/10 text-amber-300",destructive:"border-rose-500/25 bg-rose-500/10 text-rose-300"}},defaultVariants:{variant:"neutral"}});function Jh({className:l,variant:r,...u}){return c.jsx("div",{className:qt(Q0({variant:r}),l),...u})}function oh(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}function Uo(...l){return r=>{let u=!1;const o=l.map(f=>{const m=oh(f,r);return!u&&typeof m=="function"&&(u=!0),m});if(u)return()=>{for(let f=0;f<o.length;f++){const m=o[f];typeof m=="function"?m():oh(l[f],null)}}}}function ba(...l){return y.useCallback(Uo(...l),l)}var V0=Symbol.for("react.lazy"),Gs=Ro[" use ".trim().toString()];function X0(l){return typeof l=="object"&&l!==null&&"then"in l}function $h(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===V0&&"_payload"in l&&X0(l._payload)}function Z0(l){const r=J0(l),u=y.forwardRef((o,f)=>{let{children:m,...p}=o;$h(m)&&typeof Gs=="function"&&(m=Gs(m._payload));const v=y.Children.toArray(m),b=v.find(W0);if(b){const g=b.props.children,A=v.map(N=>N===b?y.Children.count(g)>1?y.Children.only(null):y.isValidElement(g)?g.props.children:null:N);return c.jsx(r,{...p,ref:f,children:y.isValidElement(g)?y.cloneElement(g,void 0,A):null})}return c.jsx(r,{...p,ref:f,children:m})});return u.displayName=`${l}.Slot`,u}var K0=Z0("Slot");function J0(l){const r=y.forwardRef((u,o)=>{let{children:f,...m}=u;if($h(f)&&typeof Gs=="function"&&(f=Gs(f._payload)),y.isValidElement(f)){const p=I0(f),v=F0(m,f.props);return f.type!==y.Fragment&&(v.ref=o?Uo(o,p):p),y.cloneElement(f,v)}return y.Children.count(f)>1?y.Children.only(null):null});return r.displayName=`${l}.SlotClone`,r}var $0=Symbol("radix.slottable");function W0(l){return y.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===$0}function F0(l,r){const u={...r};for(const o in r){const f=l[o],m=r[o];/^on[A-Z]/.test(o)?f&&m?u[o]=(...v)=>{const b=m(...v);return f(...v),b}:f&&(u[o]=f):o==="style"?u[o]={...f,...m}:o==="className"&&(u[o]=[f,m].filter(Boolean).join(" "))}return{...l,...u}}function I0(l){let r=Object.getOwnPropertyDescriptor(l.props,"ref")?.get,u=r&&"isReactWarning"in r&&r.isReactWarning;return u?l.ref:(r=Object.getOwnPropertyDescriptor(l,"ref")?.get,u=r&&"isReactWarning"in r&&r.isReactWarning,u?l.props.ref:l.props.ref||l.ref)}const P0=Oh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2 focus-visible:ring-offset-black disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-zinc-50 text-black hover:bg-zinc-200",secondary:"border border-zinc-800 bg-zinc-950 text-zinc-100 hover:bg-zinc-900",ghost:"text-zinc-400 hover:bg-zinc-900 hover:text-zinc-50",outline:"border border-zinc-800 bg-transparent text-zinc-100 hover:bg-zinc-900",destructive:"bg-rose-600 text-white hover:bg-rose-700"},size:{default:"h-9 px-4",sm:"h-8 px-3 text-xs",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),me=y.forwardRef(({className:l,variant:r,size:u,asChild:o=!1,...f},m)=>{const p=o?K0:"button";return c.jsx(p,{ref:m,className:qt(P0({variant:r,size:u,className:l})),...f})});me.displayName="Button";const We=y.forwardRef(({className:l,...r},u)=>c.jsx("div",{ref:u,className:qt("rounded-xl border border-zinc-800 bg-zinc-950/75 shadow-[0_0_0_1px_rgba(255,255,255,0.01)] backdrop-blur",l),...r}));We.displayName="Card";const eb=y.forwardRef(({className:l,...r},u)=>c.jsx("div",{ref:u,className:qt("flex flex-col gap-1.5 p-5",l),...r}));eb.displayName="CardHeader";const tb=y.forwardRef(({className:l,...r},u)=>c.jsx("h3",{ref:u,className:qt("font-medium tracking-tight text-zinc-50",l),...r}));tb.displayName="CardTitle";const nb=y.forwardRef(({className:l,...r},u)=>c.jsx("p",{ref:u,className:qt("text-sm text-zinc-500",l),...r}));nb.displayName="CardDescription";const ab=y.forwardRef(({className:l,...r},u)=>c.jsx("div",{ref:u,className:qt("p-5 pt-0",l),...r}));ab.displayName="CardContent";function Wn(l,r,{checkForDefaultPrevented:u=!0}={}){return function(f){if(l?.(f),u===!1||!f.defaultPrevented)return r?.(f)}}function lb(l,r){const u=y.createContext(r),o=m=>{const{children:p,...v}=m,b=y.useMemo(()=>v,Object.values(v));return c.jsx(u.Provider,{value:b,children:p})};o.displayName=l+"Provider";function f(m){const p=y.useContext(u);if(p)return p;if(r!==void 0)return r;throw new Error(`\`${m}\` must be used within \`${l}\``)}return[o,f]}function ib(l,r=[]){let u=[];function o(m,p){const v=y.createContext(p),b=u.length;u=[...u,p];const g=N=>{const{scope:R,children:Y,...K}=N,O=R?.[l]?.[b]||v,B=y.useMemo(()=>K,Object.values(K));return c.jsx(O.Provider,{value:B,children:Y})};g.displayName=m+"Provider";function A(N,R){const Y=R?.[l]?.[b]||v,K=y.useContext(Y);if(K)return K;if(p!==void 0)return p;throw new Error(`\`${N}\` must be used within \`${m}\``)}return[g,A]}const f=()=>{const m=u.map(p=>y.createContext(p));return function(v){const b=v?.[l]||m;return y.useMemo(()=>({[`__scope${l}`]:{...v,[l]:b}}),[v,b])}};return f.scopeName=l,[o,sb(f,...r)]}function sb(...l){const r=l[0];if(l.length===1)return r;const u=()=>{const o=l.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(m){const p=o.reduce((v,{useScope:b,scopeName:g})=>{const N=b(m)[`__scope${g}`];return{...v,...N}},{});return y.useMemo(()=>({[`__scope${r.scopeName}`]:p}),[p])}};return u.scopeName=r.scopeName,u}var oi=globalThis?.document?y.useLayoutEffect:()=>{},cb=Ro[" useId ".trim().toString()]||(()=>{}),rb=0;function vo(l){const[r,u]=y.useState(cb());return oi(()=>{u(o=>o??String(rb++))},[l]),l||(r?`radix-${r}`:"")}var ob=Ro[" useInsertionEffect ".trim().toString()]||oi;function ub({prop:l,defaultProp:r,onChange:u=()=>{},caller:o}){const[f,m,p]=db({defaultProp:r,onChange:u}),v=l!==void 0,b=v?l:f;{const A=y.useRef(l!==void 0);y.useEffect(()=>{const N=A.current;N!==v&&console.warn(`${o} is changing from ${N?"controlled":"uncontrolled"} to ${v?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),A.current=v},[v,o])}const g=y.useCallback(A=>{if(v){const N=fb(A)?A(l):A;N!==l&&p.current?.(N)}else m(A)},[v,l,m,p]);return[b,g]}function db({defaultProp:l,onChange:r}){const[u,o]=y.useState(l),f=y.useRef(u),m=y.useRef(r);return ob(()=>{m.current=r},[r]),y.useEffect(()=>{f.current!==u&&(m.current?.(u),f.current=u)},[u,f]),[u,o,m]}function fb(l){return typeof l=="function"}var Wh=Ah();const mb=zh(Wh);function Fh(l){const r=hb(l),u=y.forwardRef((o,f)=>{const{children:m,...p}=o,v=y.Children.toArray(m),b=v.find(gb);if(b){const g=b.props.children,A=v.map(N=>N===b?y.Children.count(g)>1?y.Children.only(null):y.isValidElement(g)?g.props.children:null:N);return c.jsx(r,{...p,ref:f,children:y.isValidElement(g)?y.cloneElement(g,void 0,A):null})}return c.jsx(r,{...p,ref:f,children:m})});return u.displayName=`${l}.Slot`,u}function hb(l){const r=y.forwardRef((u,o)=>{const{children:f,...m}=u;if(y.isValidElement(f)){const p=yb(f),v=vb(m,f.props);return f.type!==y.Fragment&&(v.ref=o?Uo(o,p):p),y.cloneElement(f,v)}return y.Children.count(f)>1?y.Children.only(null):null});return r.displayName=`${l}.SlotClone`,r}var pb=Symbol("radix.slottable");function gb(l){return y.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===pb}function vb(l,r){const u={...r};for(const o in r){const f=l[o],m=r[o];/^on[A-Z]/.test(o)?f&&m?u[o]=(...v)=>{const b=m(...v);return f(...v),b}:f&&(u[o]=f):o==="style"?u[o]={...f,...m}:o==="className"&&(u[o]=[f,m].filter(Boolean).join(" "))}return{...l,...u}}function yb(l){let r=Object.getOwnPropertyDescriptor(l.props,"ref")?.get,u=r&&"isReactWarning"in r&&r.isReactWarning;return u?l.ref:(r=Object.getOwnPropertyDescriptor(l,"ref")?.get,u=r&&"isReactWarning"in r&&r.isReactWarning,u?l.props.ref:l.props.ref||l.ref)}var bb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xn=bb.reduce((l,r)=>{const u=Fh(`Primitive.${r}`),o=y.forwardRef((f,m)=>{const{asChild:p,...v}=f,b=p?u:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(b,{...v,ref:m})});return o.displayName=`Primitive.${r}`,{...l,[r]:o}},{});function xb(l,r){l&&Wh.flushSync(()=>l.dispatchEvent(r))}function ui(l){const r=y.useRef(l);return y.useEffect(()=>{r.current=l}),y.useMemo(()=>(...u)=>r.current?.(...u),[])}function Sb(l,r=globalThis?.document){const u=ui(l);y.useEffect(()=>{const o=f=>{f.key==="Escape"&&u(f)};return r.addEventListener("keydown",o,{capture:!0}),()=>r.removeEventListener("keydown",o,{capture:!0})},[u,r])}var jb="DismissableLayer",Co="dismissableLayer.update",Nb="dismissableLayer.pointerDownOutside",wb="dismissableLayer.focusOutside",uh,Ih=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ph=y.forwardRef((l,r)=>{const{disableOutsidePointerEvents:u=!1,onEscapeKeyDown:o,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:p,onDismiss:v,...b}=l,g=y.useContext(Ih),[A,N]=y.useState(null),R=A?.ownerDocument??globalThis?.document,[,Y]=y.useState({}),K=ba(r,G=>N(G)),O=Array.from(g.layers),[B]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),$=O.indexOf(B),ne=A?O.indexOf(A):-1,H=g.layersWithOutsidePointerEventsDisabled.size>0,Q=ne>=$,ie=zb(G=>{const q=G.target,fe=[...g.branches].some(Le=>Le.contains(q));!Q||fe||(f?.(G),p?.(G),G.defaultPrevented||v?.())},R),ae=Ab(G=>{const q=G.target;[...g.branches].some(Le=>Le.contains(q))||(m?.(G),p?.(G),G.defaultPrevented||v?.())},R);return Sb(G=>{ne===g.layers.size-1&&(o?.(G),!G.defaultPrevented&&v&&(G.preventDefault(),v()))},R),y.useEffect(()=>{if(A)return u&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(uh=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(A)),g.layers.add(A),dh(),()=>{u&&g.layersWithOutsidePointerEventsDisabled.size===1&&(R.body.style.pointerEvents=uh)}},[A,R,u,g]),y.useEffect(()=>()=>{A&&(g.layers.delete(A),g.layersWithOutsidePointerEventsDisabled.delete(A),dh())},[A,g]),y.useEffect(()=>{const G=()=>Y({});return document.addEventListener(Co,G),()=>document.removeEventListener(Co,G)},[]),c.jsx(xn.div,{...b,ref:K,style:{pointerEvents:H?Q?"auto":"none":void 0,...l.style},onFocusCapture:Wn(l.onFocusCapture,ae.onFocusCapture),onBlurCapture:Wn(l.onBlurCapture,ae.onBlurCapture),onPointerDownCapture:Wn(l.onPointerDownCapture,ie.onPointerDownCapture)})});Ph.displayName=jb;var Eb="DismissableLayerBranch",Cb=y.forwardRef((l,r)=>{const u=y.useContext(Ih),o=y.useRef(null),f=ba(r,o);return y.useEffect(()=>{const m=o.current;if(m)return u.branches.add(m),()=>{u.branches.delete(m)}},[u.branches]),c.jsx(xn.div,{...l,ref:f})});Cb.displayName=Eb;function zb(l,r=globalThis?.document){const u=ui(l),o=y.useRef(!1),f=y.useRef(()=>{});return y.useEffect(()=>{const m=v=>{if(v.target&&!o.current){let b=function(){ep(Nb,u,g,{discrete:!0})};const g={originalEvent:v};v.pointerType==="touch"?(r.removeEventListener("click",f.current),f.current=b,r.addEventListener("click",f.current,{once:!0})):b()}else r.removeEventListener("click",f.current);o.current=!1},p=window.setTimeout(()=>{r.addEventListener("pointerdown",m)},0);return()=>{window.clearTimeout(p),r.removeEventListener("pointerdown",m),r.removeEventListener("click",f.current)}},[r,u]),{onPointerDownCapture:()=>o.current=!0}}function Ab(l,r=globalThis?.document){const u=ui(l),o=y.useRef(!1);return y.useEffect(()=>{const f=m=>{m.target&&!o.current&&ep(wb,u,{originalEvent:m},{discrete:!1})};return r.addEventListener("focusin",f),()=>r.removeEventListener("focusin",f)},[r,u]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function dh(){const l=new CustomEvent(Co);document.dispatchEvent(l)}function ep(l,r,u,{discrete:o}){const f=u.originalEvent.target,m=new CustomEvent(l,{bubbles:!1,cancelable:!0,detail:u});r&&f.addEventListener(l,r,{once:!0}),o?xb(f,m):f.dispatchEvent(m)}var yo="focusScope.autoFocusOnMount",bo="focusScope.autoFocusOnUnmount",fh={bubbles:!1,cancelable:!0},Tb="FocusScope",tp=y.forwardRef((l,r)=>{const{loop:u=!1,trapped:o=!1,onMountAutoFocus:f,onUnmountAutoFocus:m,...p}=l,[v,b]=y.useState(null),g=ui(f),A=ui(m),N=y.useRef(null),R=ba(r,O=>b(O)),Y=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(o){let O=function(H){if(Y.paused||!v)return;const Q=H.target;v.contains(Q)?N.current=Q:$n(N.current,{select:!0})},B=function(H){if(Y.paused||!v)return;const Q=H.relatedTarget;Q!==null&&(v.contains(Q)||$n(N.current,{select:!0}))},$=function(H){if(document.activeElement===document.body)for(const ie of H)ie.removedNodes.length>0&&$n(v)};document.addEventListener("focusin",O),document.addEventListener("focusout",B);const ne=new MutationObserver($);return v&&ne.observe(v,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",O),document.removeEventListener("focusout",B),ne.disconnect()}}},[o,v,Y.paused]),y.useEffect(()=>{if(v){hh.add(Y);const O=document.activeElement;if(!v.contains(O)){const $=new CustomEvent(yo,fh);v.addEventListener(yo,g),v.dispatchEvent($),$.defaultPrevented||(_b(kb(np(v)),{select:!0}),document.activeElement===O&&$n(v))}return()=>{v.removeEventListener(yo,g),setTimeout(()=>{const $=new CustomEvent(bo,fh);v.addEventListener(bo,A),v.dispatchEvent($),$.defaultPrevented||$n(O??document.body,{select:!0}),v.removeEventListener(bo,A),hh.remove(Y)},0)}}},[v,g,A,Y]);const K=y.useCallback(O=>{if(!u&&!o||Y.paused)return;const B=O.key==="Tab"&&!O.altKey&&!O.ctrlKey&&!O.metaKey,$=document.activeElement;if(B&&$){const ne=O.currentTarget,[H,Q]=Db(ne);H&&Q?!O.shiftKey&&$===Q?(O.preventDefault(),u&&$n(H,{select:!0})):O.shiftKey&&$===H&&(O.preventDefault(),u&&$n(Q,{select:!0})):$===ne&&O.preventDefault()}},[u,o,Y.paused]);return c.jsx(xn.div,{tabIndex:-1,...p,ref:R,onKeyDown:K})});tp.displayName=Tb;function _b(l,{select:r=!1}={}){const u=document.activeElement;for(const o of l)if($n(o,{select:r}),document.activeElement!==u)return}function Db(l){const r=np(l),u=mh(r,l),o=mh(r.reverse(),l);return[u,o]}function np(l){const r=[],u=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const f=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||f?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;u.nextNode();)r.push(u.currentNode);return r}function mh(l,r){for(const u of l)if(!Rb(u,{upTo:r}))return u}function Rb(l,{upTo:r}){if(getComputedStyle(l).visibility==="hidden")return!0;for(;l;){if(r!==void 0&&l===r)return!1;if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function Ob(l){return l instanceof HTMLInputElement&&"select"in l}function $n(l,{select:r=!1}={}){if(l&&l.focus){const u=document.activeElement;l.focus({preventScroll:!0}),l!==u&&Ob(l)&&r&&l.select()}}var hh=Mb();function Mb(){let l=[];return{add(r){const u=l[0];r!==u&&u?.pause(),l=ph(l,r),l.unshift(r)},remove(r){l=ph(l,r),l[0]?.resume()}}}function ph(l,r){const u=[...l],o=u.indexOf(r);return o!==-1&&u.splice(o,1),u}function kb(l){return l.filter(r=>r.tagName!=="A")}var Ub="Portal",ap=y.forwardRef((l,r)=>{const{container:u,...o}=l,[f,m]=y.useState(!1);oi(()=>m(!0),[]);const p=u||f&&globalThis?.document?.body;return p?mb.createPortal(c.jsx(xn.div,{...o,ref:r}),p):null});ap.displayName=Ub;function Lb(l,r){return y.useReducer((u,o)=>r[u][o]??u,l)}var Ks=l=>{const{present:r,children:u}=l,o=Hb(r),f=typeof u=="function"?u({present:o.isPresent}):y.Children.only(u),m=ba(o.ref,Bb(f));return typeof u=="function"||o.isPresent?y.cloneElement(f,{ref:m}):null};Ks.displayName="Presence";function Hb(l){const[r,u]=y.useState(),o=y.useRef(null),f=y.useRef(l),m=y.useRef("none"),p=l?"mounted":"unmounted",[v,b]=Lb(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const g=Os(o.current);m.current=v==="mounted"?g:"none"},[v]),oi(()=>{const g=o.current,A=f.current;if(A!==l){const R=m.current,Y=Os(g);l?b("MOUNT"):Y==="none"||g?.display==="none"?b("UNMOUNT"):b(A&&R!==Y?"ANIMATION_OUT":"UNMOUNT"),f.current=l}},[l,b]),oi(()=>{if(r){let g;const A=r.ownerDocument.defaultView??window,N=Y=>{const O=Os(o.current).includes(CSS.escape(Y.animationName));if(Y.target===r&&O&&(b("ANIMATION_END"),!f.current)){const B=r.style.animationFillMode;r.style.animationFillMode="forwards",g=A.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=B)})}},R=Y=>{Y.target===r&&(m.current=Os(o.current))};return r.addEventListener("animationstart",R),r.addEventListener("animationcancel",N),r.addEventListener("animationend",N),()=>{A.clearTimeout(g),r.removeEventListener("animationstart",R),r.removeEventListener("animationcancel",N),r.removeEventListener("animationend",N)}}else b("ANIMATION_END")},[r,b]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:y.useCallback(g=>{o.current=g?getComputedStyle(g):null,u(g)},[])}}function Os(l){return l?.animationName||"none"}function Bb(l){let r=Object.getOwnPropertyDescriptor(l.props,"ref")?.get,u=r&&"isReactWarning"in r&&r.isReactWarning;return u?l.ref:(r=Object.getOwnPropertyDescriptor(l,"ref")?.get,u=r&&"isReactWarning"in r&&r.isReactWarning,u?l.props.ref:l.props.ref||l.ref)}var xo=0;function qb(){y.useEffect(()=>{const l=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",l[0]??gh()),document.body.insertAdjacentElement("beforeend",l[1]??gh()),xo++,()=>{xo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),xo--}},[])}function gh(){const l=document.createElement("span");return l.setAttribute("data-radix-focus-guard",""),l.tabIndex=0,l.style.outline="none",l.style.opacity="0",l.style.position="fixed",l.style.pointerEvents="none",l}var Wt=function(){return Wt=Object.assign||function(r){for(var u,o=1,f=arguments.length;o<f;o++){u=arguments[o];for(var m in u)Object.prototype.hasOwnProperty.call(u,m)&&(r[m]=u[m])}return r},Wt.apply(this,arguments)};function lp(l,r){var u={};for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&r.indexOf(o)<0&&(u[o]=l[o]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,o=Object.getOwnPropertySymbols(l);f<o.length;f++)r.indexOf(o[f])<0&&Object.prototype.propertyIsEnumerable.call(l,o[f])&&(u[o[f]]=l[o[f]]);return u}function Yb(l,r,u){if(u||arguments.length===2)for(var o=0,f=r.length,m;o<f;o++)(m||!(o in r))&&(m||(m=Array.prototype.slice.call(r,0,o)),m[o]=r[o]);return l.concat(m||Array.prototype.slice.call(r))}var Bs="right-scroll-bar-position",qs="width-before-scroll-bar",Gb="with-scroll-bars-hidden",Qb="--removed-body-scroll-bar-size";function So(l,r){return typeof l=="function"?l(r):l&&(l.current=r),l}function Vb(l,r){var u=y.useState(function(){return{value:l,callback:r,facade:{get current(){return u.value},set current(o){var f=u.value;f!==o&&(u.value=o,u.callback(o,f))}}}})[0];return u.callback=r,u.facade}var Xb=typeof window<"u"?y.useLayoutEffect:y.useEffect,vh=new WeakMap;function Zb(l,r){var u=Vb(null,function(o){return l.forEach(function(f){return So(f,o)})});return Xb(function(){var o=vh.get(u);if(o){var f=new Set(o),m=new Set(l),p=u.current;f.forEach(function(v){m.has(v)||So(v,null)}),m.forEach(function(v){f.has(v)||So(v,p)})}vh.set(u,l)},[l]),u}function Kb(l){return l}function Jb(l,r){r===void 0&&(r=Kb);var u=[],o=!1,f={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return u.length?u[u.length-1]:l},useMedium:function(m){var p=r(m,o);return u.push(p),function(){u=u.filter(function(v){return v!==p})}},assignSyncMedium:function(m){for(o=!0;u.length;){var p=u;u=[],p.forEach(m)}u={push:function(v){return m(v)},filter:function(){return u}}},assignMedium:function(m){o=!0;var p=[];if(u.length){var v=u;u=[],v.forEach(m),p=u}var b=function(){var A=p;p=[],A.forEach(m)},g=function(){return Promise.resolve().then(b)};g(),u={push:function(A){p.push(A),g()},filter:function(A){return p=p.filter(A),u}}}};return f}function $b(l){l===void 0&&(l={});var r=Jb(null);return r.options=Wt({async:!0,ssr:!1},l),r}var ip=function(l){var r=l.sideCar,u=lp(l,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return y.createElement(o,Wt({},u))};ip.isSideCarExport=!0;function Wb(l,r){return l.useMedium(r),ip}var sp=$b(),jo=function(){},Js=y.forwardRef(function(l,r){var u=y.useRef(null),o=y.useState({onScrollCapture:jo,onWheelCapture:jo,onTouchMoveCapture:jo}),f=o[0],m=o[1],p=l.forwardProps,v=l.children,b=l.className,g=l.removeScrollBar,A=l.enabled,N=l.shards,R=l.sideCar,Y=l.noRelative,K=l.noIsolation,O=l.inert,B=l.allowPinchZoom,$=l.as,ne=$===void 0?"div":$,H=l.gapMode,Q=lp(l,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),ie=R,ae=Zb([u,r]),G=Wt(Wt({},Q),f);return y.createElement(y.Fragment,null,A&&y.createElement(ie,{sideCar:sp,removeScrollBar:g,shards:N,noRelative:Y,noIsolation:K,inert:O,setCallbacks:m,allowPinchZoom:!!B,lockRef:u,gapMode:H}),p?y.cloneElement(y.Children.only(v),Wt(Wt({},G),{ref:ae})):y.createElement(ne,Wt({},G,{className:b,ref:ae}),v))});Js.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Js.classNames={fullWidth:qs,zeroRight:Bs};var Fb=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ib(){if(!document)return null;var l=document.createElement("style");l.type="text/css";var r=Fb();return r&&l.setAttribute("nonce",r),l}function Pb(l,r){l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}function ex(l){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(l)}var tx=function(){var l=0,r=null;return{add:function(u){l==0&&(r=Ib())&&(Pb(r,u),ex(r)),l++},remove:function(){l--,!l&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},nx=function(){var l=tx();return function(r,u){y.useEffect(function(){return l.add(r),function(){l.remove()}},[r&&u])}},cp=function(){var l=nx(),r=function(u){var o=u.styles,f=u.dynamic;return l(o,f),null};return r},ax={left:0,top:0,right:0,gap:0},No=function(l){return parseInt(l||"",10)||0},lx=function(l){var r=window.getComputedStyle(document.body),u=r[l==="padding"?"paddingLeft":"marginLeft"],o=r[l==="padding"?"paddingTop":"marginTop"],f=r[l==="padding"?"paddingRight":"marginRight"];return[No(u),No(o),No(f)]},ix=function(l){if(l===void 0&&(l="margin"),typeof window>"u")return ax;var r=lx(l),u=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-u+r[2]-r[0])}},sx=cp(),cl="data-scroll-locked",cx=function(l,r,u,o){var f=l.left,m=l.top,p=l.right,v=l.gap;return u===void 0&&(u="margin"),`
|
|
10
|
+
.`.concat(Gb,` {
|
|
11
|
+
overflow: hidden `).concat(o,`;
|
|
12
|
+
padding-right: `).concat(v,"px ").concat(o,`;
|
|
13
|
+
}
|
|
14
|
+
body[`).concat(cl,`] {
|
|
15
|
+
overflow: hidden `).concat(o,`;
|
|
16
|
+
overscroll-behavior: contain;
|
|
17
|
+
`).concat([r&&"position: relative ".concat(o,";"),u==="margin"&&`
|
|
18
|
+
padding-left: `.concat(f,`px;
|
|
19
|
+
padding-top: `).concat(m,`px;
|
|
20
|
+
padding-right: `).concat(p,`px;
|
|
21
|
+
margin-left:0;
|
|
22
|
+
margin-top:0;
|
|
23
|
+
margin-right: `).concat(v,"px ").concat(o,`;
|
|
24
|
+
`),u==="padding"&&"padding-right: ".concat(v,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(Bs,` {
|
|
28
|
+
right: `).concat(v,"px ").concat(o,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(qs,` {
|
|
32
|
+
margin-right: `).concat(v,"px ").concat(o,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.`).concat(Bs," .").concat(Bs,` {
|
|
36
|
+
right: 0 `).concat(o,`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.`).concat(qs," .").concat(qs,` {
|
|
40
|
+
margin-right: 0 `).concat(o,`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body[`).concat(cl,`] {
|
|
44
|
+
`).concat(Qb,": ").concat(v,`px;
|
|
45
|
+
}
|
|
46
|
+
`)},yh=function(){var l=parseInt(document.body.getAttribute(cl)||"0",10);return isFinite(l)?l:0},rx=function(){y.useEffect(function(){return document.body.setAttribute(cl,(yh()+1).toString()),function(){var l=yh()-1;l<=0?document.body.removeAttribute(cl):document.body.setAttribute(cl,l.toString())}},[])},ox=function(l){var r=l.noRelative,u=l.noImportant,o=l.gapMode,f=o===void 0?"margin":o;rx();var m=y.useMemo(function(){return ix(f)},[f]);return y.createElement(sx,{styles:cx(m,!r,f,u?"":"!important")})},zo=!1;if(typeof window<"u")try{var Ms=Object.defineProperty({},"passive",{get:function(){return zo=!0,!0}});window.addEventListener("test",Ms,Ms),window.removeEventListener("test",Ms,Ms)}catch{zo=!1}var ll=zo?{passive:!1}:!1,ux=function(l){return l.tagName==="TEXTAREA"},rp=function(l,r){if(!(l instanceof Element))return!1;var u=window.getComputedStyle(l);return u[r]!=="hidden"&&!(u.overflowY===u.overflowX&&!ux(l)&&u[r]==="visible")},dx=function(l){return rp(l,"overflowY")},fx=function(l){return rp(l,"overflowX")},bh=function(l,r){var u=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var f=op(l,o);if(f){var m=up(l,o),p=m[1],v=m[2];if(p>v)return!0}o=o.parentNode}while(o&&o!==u.body);return!1},mx=function(l){var r=l.scrollTop,u=l.scrollHeight,o=l.clientHeight;return[r,u,o]},hx=function(l){var r=l.scrollLeft,u=l.scrollWidth,o=l.clientWidth;return[r,u,o]},op=function(l,r){return l==="v"?dx(r):fx(r)},up=function(l,r){return l==="v"?mx(r):hx(r)},px=function(l,r){return l==="h"&&r==="rtl"?-1:1},gx=function(l,r,u,o,f){var m=px(l,window.getComputedStyle(r).direction),p=m*o,v=u.target,b=r.contains(v),g=!1,A=p>0,N=0,R=0;do{if(!v)break;var Y=up(l,v),K=Y[0],O=Y[1],B=Y[2],$=O-B-m*K;(K||$)&&op(l,v)&&(N+=$,R+=K);var ne=v.parentNode;v=ne&&ne.nodeType===Node.DOCUMENT_FRAGMENT_NODE?ne.host:ne}while(!b&&v!==document.body||b&&(r.contains(v)||r===v));return(A&&Math.abs(N)<1||!A&&Math.abs(R)<1)&&(g=!0),g},ks=function(l){return"changedTouches"in l?[l.changedTouches[0].clientX,l.changedTouches[0].clientY]:[0,0]},xh=function(l){return[l.deltaX,l.deltaY]},Sh=function(l){return l&&"current"in l?l.current:l},vx=function(l,r){return l[0]===r[0]&&l[1]===r[1]},yx=function(l){return`
|
|
47
|
+
.block-interactivity-`.concat(l,` {pointer-events: none;}
|
|
48
|
+
.allow-interactivity-`).concat(l,` {pointer-events: all;}
|
|
49
|
+
`)},bx=0,il=[];function xx(l){var r=y.useRef([]),u=y.useRef([0,0]),o=y.useRef(),f=y.useState(bx++)[0],m=y.useState(cp)[0],p=y.useRef(l);y.useEffect(function(){p.current=l},[l]),y.useEffect(function(){if(l.inert){document.body.classList.add("block-interactivity-".concat(f));var O=Yb([l.lockRef.current],(l.shards||[]).map(Sh),!0).filter(Boolean);return O.forEach(function(B){return B.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),O.forEach(function(B){return B.classList.remove("allow-interactivity-".concat(f))})}}},[l.inert,l.lockRef.current,l.shards]);var v=y.useCallback(function(O,B){if("touches"in O&&O.touches.length===2||O.type==="wheel"&&O.ctrlKey)return!p.current.allowPinchZoom;var $=ks(O),ne=u.current,H="deltaX"in O?O.deltaX:ne[0]-$[0],Q="deltaY"in O?O.deltaY:ne[1]-$[1],ie,ae=O.target,G=Math.abs(H)>Math.abs(Q)?"h":"v";if("touches"in O&&G==="h"&&ae.type==="range")return!1;var q=window.getSelection(),fe=q&&q.anchorNode,Le=fe?fe===ae||fe.contains(ae):!1;if(Le)return!1;var W=bh(G,ae);if(!W)return!0;if(W?ie=G:(ie=G==="v"?"h":"v",W=bh(G,ae)),!W)return!1;if(!o.current&&"changedTouches"in O&&(H||Q)&&(o.current=ie),!ie)return!0;var pe=o.current||ie;return gx(pe,B,O,pe==="h"?H:Q)},[]),b=y.useCallback(function(O){var B=O;if(!(!il.length||il[il.length-1]!==m)){var $="deltaY"in B?xh(B):ks(B),ne=r.current.filter(function(ie){return ie.name===B.type&&(ie.target===B.target||B.target===ie.shadowParent)&&vx(ie.delta,$)})[0];if(ne&&ne.should){B.cancelable&&B.preventDefault();return}if(!ne){var H=(p.current.shards||[]).map(Sh).filter(Boolean).filter(function(ie){return ie.contains(B.target)}),Q=H.length>0?v(B,H[0]):!p.current.noIsolation;Q&&B.cancelable&&B.preventDefault()}}},[]),g=y.useCallback(function(O,B,$,ne){var H={name:O,delta:B,target:$,should:ne,shadowParent:Sx($)};r.current.push(H),setTimeout(function(){r.current=r.current.filter(function(Q){return Q!==H})},1)},[]),A=y.useCallback(function(O){u.current=ks(O),o.current=void 0},[]),N=y.useCallback(function(O){g(O.type,xh(O),O.target,v(O,l.lockRef.current))},[]),R=y.useCallback(function(O){g(O.type,ks(O),O.target,v(O,l.lockRef.current))},[]);y.useEffect(function(){return il.push(m),l.setCallbacks({onScrollCapture:N,onWheelCapture:N,onTouchMoveCapture:R}),document.addEventListener("wheel",b,ll),document.addEventListener("touchmove",b,ll),document.addEventListener("touchstart",A,ll),function(){il=il.filter(function(O){return O!==m}),document.removeEventListener("wheel",b,ll),document.removeEventListener("touchmove",b,ll),document.removeEventListener("touchstart",A,ll)}},[]);var Y=l.removeScrollBar,K=l.inert;return y.createElement(y.Fragment,null,K?y.createElement(m,{styles:yx(f)}):null,Y?y.createElement(ox,{noRelative:l.noRelative,gapMode:l.gapMode}):null)}function Sx(l){for(var r=null;l!==null;)l instanceof ShadowRoot&&(r=l.host,l=l.host),l=l.parentNode;return r}const jx=Wb(sp,xx);var dp=y.forwardRef(function(l,r){return y.createElement(Js,Wt({},l,{ref:r,sideCar:jx}))});dp.classNames=Js.classNames;var Nx=function(l){if(typeof document>"u")return null;var r=Array.isArray(l)?l[0]:l;return r.ownerDocument.body},sl=new WeakMap,Us=new WeakMap,Ls={},wo=0,fp=function(l){return l&&(l.host||fp(l.parentNode))},wx=function(l,r){return r.map(function(u){if(l.contains(u))return u;var o=fp(u);return o&&l.contains(o)?o:(console.error("aria-hidden",u,"in not contained inside",l,". Doing nothing"),null)}).filter(function(u){return!!u})},Ex=function(l,r,u,o){var f=wx(r,Array.isArray(l)?l:[l]);Ls[u]||(Ls[u]=new WeakMap);var m=Ls[u],p=[],v=new Set,b=new Set(f),g=function(N){!N||v.has(N)||(v.add(N),g(N.parentNode))};f.forEach(g);var A=function(N){!N||b.has(N)||Array.prototype.forEach.call(N.children,function(R){if(v.has(R))A(R);else try{var Y=R.getAttribute(o),K=Y!==null&&Y!=="false",O=(sl.get(R)||0)+1,B=(m.get(R)||0)+1;sl.set(R,O),m.set(R,B),p.push(R),O===1&&K&&Us.set(R,!0),B===1&&R.setAttribute(u,"true"),K||R.setAttribute(o,"true")}catch($){console.error("aria-hidden: cannot operate on ",R,$)}})};return A(r),v.clear(),wo++,function(){p.forEach(function(N){var R=sl.get(N)-1,Y=m.get(N)-1;sl.set(N,R),m.set(N,Y),R||(Us.has(N)||N.removeAttribute(o),Us.delete(N)),Y||N.removeAttribute(u)}),wo--,wo||(sl=new WeakMap,sl=new WeakMap,Us=new WeakMap,Ls={})}},Cx=function(l,r,u){u===void 0&&(u="data-aria-hidden");var o=Array.from(Array.isArray(l)?l:[l]),f=Nx(l);return f?(o.push.apply(o,Array.from(f.querySelectorAll("[aria-live], script"))),Ex(o,f,u,"aria-hidden")):function(){return null}},$s="Dialog",[mp]=ib($s),[zx,Vt]=mp($s),hp=l=>{const{__scopeDialog:r,children:u,open:o,defaultOpen:f,onOpenChange:m,modal:p=!0}=l,v=y.useRef(null),b=y.useRef(null),[g,A]=ub({prop:o,defaultProp:f??!1,onChange:m,caller:$s});return c.jsx(zx,{scope:r,triggerRef:v,contentRef:b,contentId:vo(),titleId:vo(),descriptionId:vo(),open:g,onOpenChange:A,onOpenToggle:y.useCallback(()=>A(N=>!N),[A]),modal:p,children:u})};hp.displayName=$s;var pp="DialogTrigger",Ax=y.forwardRef((l,r)=>{const{__scopeDialog:u,...o}=l,f=Vt(pp,u),m=ba(r,f.triggerRef);return c.jsx(xn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":f.open,"aria-controls":f.contentId,"data-state":Bo(f.open),...o,ref:m,onClick:Wn(l.onClick,f.onOpenToggle)})});Ax.displayName=pp;var Lo="DialogPortal",[Tx,gp]=mp(Lo,{forceMount:void 0}),vp=l=>{const{__scopeDialog:r,forceMount:u,children:o,container:f}=l,m=Vt(Lo,r);return c.jsx(Tx,{scope:r,forceMount:u,children:y.Children.map(o,p=>c.jsx(Ks,{present:u||m.open,children:c.jsx(ap,{asChild:!0,container:f,children:p})}))})};vp.displayName=Lo;var Qs="DialogOverlay",yp=y.forwardRef((l,r)=>{const u=gp(Qs,l.__scopeDialog),{forceMount:o=u.forceMount,...f}=l,m=Vt(Qs,l.__scopeDialog);return m.modal?c.jsx(Ks,{present:o||m.open,children:c.jsx(Dx,{...f,ref:r})}):null});yp.displayName=Qs;var _x=Fh("DialogOverlay.RemoveScroll"),Dx=y.forwardRef((l,r)=>{const{__scopeDialog:u,...o}=l,f=Vt(Qs,u);return c.jsx(dp,{as:_x,allowPinchZoom:!0,shards:[f.contentRef],children:c.jsx(xn.div,{"data-state":Bo(f.open),...o,ref:r,style:{pointerEvents:"auto",...o.style}})})}),va="DialogContent",bp=y.forwardRef((l,r)=>{const u=gp(va,l.__scopeDialog),{forceMount:o=u.forceMount,...f}=l,m=Vt(va,l.__scopeDialog);return c.jsx(Ks,{present:o||m.open,children:m.modal?c.jsx(Rx,{...f,ref:r}):c.jsx(Ox,{...f,ref:r})})});bp.displayName=va;var Rx=y.forwardRef((l,r)=>{const u=Vt(va,l.__scopeDialog),o=y.useRef(null),f=ba(r,u.contentRef,o);return y.useEffect(()=>{const m=o.current;if(m)return Cx(m)},[]),c.jsx(xp,{...l,ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wn(l.onCloseAutoFocus,m=>{m.preventDefault(),u.triggerRef.current?.focus()}),onPointerDownOutside:Wn(l.onPointerDownOutside,m=>{const p=m.detail.originalEvent,v=p.button===0&&p.ctrlKey===!0;(p.button===2||v)&&m.preventDefault()}),onFocusOutside:Wn(l.onFocusOutside,m=>m.preventDefault())})}),Ox=y.forwardRef((l,r)=>{const u=Vt(va,l.__scopeDialog),o=y.useRef(!1),f=y.useRef(!1);return c.jsx(xp,{...l,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:m=>{l.onCloseAutoFocus?.(m),m.defaultPrevented||(o.current||u.triggerRef.current?.focus(),m.preventDefault()),o.current=!1,f.current=!1},onInteractOutside:m=>{l.onInteractOutside?.(m),m.defaultPrevented||(o.current=!0,m.detail.originalEvent.type==="pointerdown"&&(f.current=!0));const p=m.target;u.triggerRef.current?.contains(p)&&m.preventDefault(),m.detail.originalEvent.type==="focusin"&&f.current&&m.preventDefault()}})}),xp=y.forwardRef((l,r)=>{const{__scopeDialog:u,trapFocus:o,onOpenAutoFocus:f,onCloseAutoFocus:m,...p}=l,v=Vt(va,u),b=y.useRef(null),g=ba(r,b);return qb(),c.jsxs(c.Fragment,{children:[c.jsx(tp,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:f,onUnmountAutoFocus:m,children:c.jsx(Ph,{role:"dialog",id:v.contentId,"aria-describedby":v.descriptionId,"aria-labelledby":v.titleId,"data-state":Bo(v.open),...p,ref:g,onDismiss:()=>v.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Mx,{titleId:v.titleId}),c.jsx(Ux,{contentRef:b,descriptionId:v.descriptionId})]})]})}),Ho="DialogTitle",Sp=y.forwardRef((l,r)=>{const{__scopeDialog:u,...o}=l,f=Vt(Ho,u);return c.jsx(xn.h2,{id:f.titleId,...o,ref:r})});Sp.displayName=Ho;var jp="DialogDescription",Np=y.forwardRef((l,r)=>{const{__scopeDialog:u,...o}=l,f=Vt(jp,u);return c.jsx(xn.p,{id:f.descriptionId,...o,ref:r})});Np.displayName=jp;var wp="DialogClose",Ep=y.forwardRef((l,r)=>{const{__scopeDialog:u,...o}=l,f=Vt(wp,u);return c.jsx(xn.button,{type:"button",...o,ref:r,onClick:Wn(l.onClick,()=>f.onOpenChange(!1))})});Ep.displayName=wp;function Bo(l){return l?"open":"closed"}var Cp="DialogTitleWarning",[xj,zp]=lb(Cp,{contentName:va,titleName:Ho,docsSlug:"dialog"}),Mx=({titleId:l})=>{const r=zp(Cp),u=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
50
|
+
|
|
51
|
+
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
52
|
+
|
|
53
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return y.useEffect(()=>{l&&(document.getElementById(l)||console.error(u))},[u,l]),null},kx="DialogDescriptionWarning",Ux=({contentRef:l,descriptionId:r})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zp(kx).contentName}}.`;return y.useEffect(()=>{const f=l.current?.getAttribute("aria-describedby");r&&f&&(document.getElementById(r)||console.warn(o))},[o,l,r]),null},Lx=hp,Hx=vp,Ap=yp,Tp=bp,_p=Sp,Dp=Np,Bx=Ep;const qx=Lx,Yx=Hx,Rp=y.forwardRef(({className:l,...r},u)=>c.jsx(Ap,{ref:u,className:qt("fixed inset-0 z-50 bg-black/70 backdrop-blur-sm",l),...r}));Rp.displayName=Ap.displayName;const Gx=400,Qx=1200,Vx=720,Op=y.forwardRef(({className:l,children:r,...u},o)=>{const[f,m]=y.useState(Vx),p=y.useRef(!1),v=y.useRef(0),b=y.useRef(0),g=y.useCallback(R=>{p.current=!0,v.current=R.clientX,b.current=f,R.target.setPointerCapture(R.pointerId),R.preventDefault()},[f]),A=y.useCallback(R=>{if(!p.current)return;const Y=v.current-R.clientX,K=Math.min(Qx,Math.max(Gx,b.current+Y));m(K)},[]),N=y.useCallback(()=>{p.current=!1},[]);return c.jsxs(Yx,{children:[c.jsx(Rp,{}),c.jsxs(Tp,{ref:o,className:qt("fixed z-50 flex flex-col bg-zinc-950 px-5 py-4 shadow-2xl overflow-hidden","max-md:inset-x-0 max-md:bottom-0 max-md:top-auto max-md:max-h-[88vh] max-md:rounded-t-2xl max-md:border-t","md:inset-y-0 md:right-0 md:h-full md:border-l","border-zinc-800",l),style:{width:`min(${f}px, 100vw)`},...u,children:[c.jsx("div",{className:"absolute inset-y-0 left-0 w-1.5 cursor-col-resize hover:bg-zinc-700/50 active:bg-zinc-600/50 transition-colors max-md:hidden",onPointerDown:g,onPointerMove:A,onPointerUp:N}),r,c.jsxs(Bx,{className:"absolute right-4 top-4 inline-flex size-8 items-center justify-center rounded-md text-zinc-500 transition hover:bg-zinc-900 hover:text-zinc-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-400",children:[c.jsx(_h,{className:"size-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});Op.displayName=Tp.displayName;const Xx=({className:l,...r})=>c.jsx("div",{className:qt("flex flex-col gap-1.5 pr-10",l),...r}),Mp=y.forwardRef(({className:l,...r},u)=>c.jsx(_p,{ref:u,className:qt("text-lg font-medium text-zinc-50",l),...r}));Mp.displayName=_p.displayName;const kp=y.forwardRef(({className:l,...r},u)=>c.jsx(Dp,{ref:u,className:qt("text-sm text-zinc-500",l),...r}));kp.displayName=Dp.displayName;const rl=[{id:"project_citypoint",name:"Citypoint Dental NYC",canonicalDomain:"citypointdental.com",country:"US",language:"en",tags:["local intent","priority"],labels:{},configSource:"cli",configRevision:1},{id:"project_harbor",name:"Harbor Legal Group",canonicalDomain:"harborlegal.com",country:"US",language:"en",tags:["lead gen"],labels:{},configSource:"cli",configRevision:1},{id:"project_northstar",name:"Northstar Orthopedics",canonicalDomain:"northstarortho.com",country:"US",language:"en",tags:["multi-location"],labels:{},configSource:"cli",configRevision:1}];function ul(l){return{id:l.id,projectId:l.projectId,projectName:l.projectName,kind:l.kind,kindLabel:l.kindLabel,status:l.status,trigger:l.trigger??"manual",createdAt:l.createdAt,startedAt:l.startedAt,duration:l.duration,statusDetail:l.statusDetail,summary:l.summary,triggerLabel:l.triggerLabel}}const Up=ul({id:"run_citypoint_visibility_20260308",projectId:"project_citypoint",projectName:"Citypoint Dental NYC",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"completed",createdAt:"2026-03-08T12:15:00.000Z",startedAt:"Mar 8, 12:15 PM",duration:"6m 12s",statusDetail:"18 tracked queries checked; 3 citation losses detected on emergency-intent prompts.",summary:"Citation losses on emergency-intent prompts",triggerLabel:"Scheduled"}),Vs=ul({id:"run_citypoint_audit_20260308",projectId:"project_citypoint",projectName:"Citypoint Dental NYC",kind:"site-audit",kindLabel:"Technical readiness audit",status:"partial",createdAt:"2026-03-08T09:20:00.000Z",startedAt:"Mar 8, 9:20 AM",duration:"14m 41s",statusDetail:"Sitemap fallback engaged; 461 of 500 pages analyzed and llms.txt was not found.",summary:"Fallback crawl completed with missing llms.txt",triggerLabel:"Manual"}),qo=ul({id:"run_citypoint_queued_20260309",projectId:"project_citypoint",projectName:"Citypoint Dental NYC",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"queued",createdAt:"2026-03-09T08:05:00.000Z",startedAt:"Mar 9, 8:05 AM",duration:"Waiting for slot",statusDetail:"Ready to enqueue after the next provider rate window clears.",summary:"Queued follow-up after local ranking movement",triggerLabel:"Manual"}),Yo=ul({id:"run_harbor_visibility_20260308",projectId:"project_harbor",projectName:"Harbor Legal Group",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"completed",createdAt:"2026-03-08T11:05:00.000Z",startedAt:"Mar 8, 11:05 AM",duration:"5m 07s",statusDetail:"12 tracked queries checked; local-intent visibility held steady across branded prompts.",summary:"Branded prompts remain stable",triggerLabel:"Scheduled"}),Lp=ul({id:"run_harbor_audit_20260307",projectId:"project_harbor",projectName:"Harbor Legal Group",kind:"site-audit",kindLabel:"Technical readiness audit",status:"completed",createdAt:"2026-03-07T15:40:00.000Z",startedAt:"Mar 7, 3:40 PM",duration:"11m 33s",statusDetail:"Sitemap-first crawl completed with 99% success and no blocking readiness regressions.",summary:"Audit clean after service-page consolidation",triggerLabel:"Scheduled"}),Xs=ul({id:"run_northstar_visibility_20260308",projectId:"project_northstar",projectName:"Northstar Orthopedics",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"running",createdAt:"2026-03-08T13:40:00.000Z",startedAt:"Mar 8, 1:40 PM",duration:"3m 10s",statusDetail:"Provider responses still in flight for 9 multi-location prompts.",summary:"Mid-run on treatment-location prompts",triggerLabel:"Manual"}),Zx=[qo,Up,Vs,Yo,Lp,Xs],Kx=[{id:"evidence_citypoint_emergency_gemini",keyword:"emergency dentist brooklyn",provider:"gemini",citationState:"lost",changeLabel:"Lost since Mar 5",answerSnippet:"For urgent dental care in Brooklyn, Downtown Smiles and Harbor Dental are now cited first for emergency availability and same-day booking.",citedDomains:["downtownsmiles.com","harbordental.com"],evidenceUrls:["https://downtownsmiles.com/emergency-dentist-brooklyn","https://harbordental.com/same-day-emergency-care"],competitorDomains:["downtownsmiles.com","harbordental.com"],groundingSources:[],relatedTechnicalSignals:["FAQ schema missing on the emergency service page","llms.txt not found during latest site audit","Location pages link weakly into the emergency care hub"],summary:"AI answers now cite two competitors while your emergency page is no longer grounded."},{id:"evidence_citypoint_emergency_openai",keyword:"emergency dentist brooklyn",provider:"openai",citationState:"cited",changeLabel:"Cited for 6 runs",answerSnippet:"Citypoint Dental is listed as a top emergency dentist in Brooklyn for same-day appointments and walk-in availability.",citedDomains:["citypointdental.com","downtownsmiles.com"],evidenceUrls:["https://citypointdental.com/emergency-dentist-brooklyn"],competitorDomains:["downtownsmiles.com"],groundingSources:[],relatedTechnicalSignals:["Emergency page indexed with structured data"],summary:"OpenAI cites your emergency page consistently alongside one competitor."},{id:"evidence_citypoint_emergency_claude",keyword:"emergency dentist brooklyn",provider:"claude",citationState:"not-cited",changeLabel:"No citation across 12 runs",answerSnippet:"Based on the search results, top-rated emergency dental practices in Brooklyn include Downtown Smiles and Harbor Dental.",citedDomains:["downtownsmiles.com","harbordental.com"],evidenceUrls:[],competitorDomains:["downtownsmiles.com","harbordental.com"],groundingSources:[],relatedTechnicalSignals:["FAQ schema missing","llms.txt not found"],summary:"Claude does not cite your domain for this emergency query."},{id:"evidence_citypoint_invisalign_openai",keyword:"best invisalign dentist downtown brooklyn",provider:"openai",citationState:"emerging",changeLabel:"First citation in 7 days",answerSnippet:"Citypoint Dental appears as an emerging recommendation for Invisalign in Downtown Brooklyn, supported by recent before-and-after case pages.",citedDomains:["citypointdental.com","clearlineortho.com"],evidenceUrls:["https://citypointdental.com/invisalign-downtown-brooklyn","https://citypointdental.com/case-studies/invisalign-open-bite"],competitorDomains:["clearlineortho.com"],groundingSources:[],relatedTechnicalSignals:["Structured data now present on two case-study pages","Internal links from service pages to case studies improved crawl depth"],summary:"Fresh case-study content is starting to earn citations on Invisalign prompts."},{id:"evidence_citypoint_invisalign_gemini",keyword:"best invisalign dentist downtown brooklyn",provider:"gemini",citationState:"cited",changeLabel:"Cited for 8 runs",answerSnippet:"Citypoint Dental in Downtown Brooklyn is highlighted for its Invisalign expertise and patient outcomes.",citedDomains:["citypointdental.com"],evidenceUrls:["https://citypointdental.com/invisalign-downtown-brooklyn"],competitorDomains:[],groundingSources:[],relatedTechnicalSignals:["Case study pages well-indexed"],summary:"Gemini consistently cites your Invisalign page with no competitor overlap."},{id:"evidence_citypoint_invisalign_claude",keyword:"best invisalign dentist downtown brooklyn",provider:"claude",citationState:"not-cited",changeLabel:"No citation across 12 runs",answerSnippet:"For Invisalign in Downtown Brooklyn, Clear Line Ortho and Brooklyn Smiles are frequently recommended for their experienced orthodontists.",citedDomains:["clearlineortho.com","brooklynsmiles.com"],evidenceUrls:[],competitorDomains:["clearlineortho.com"],groundingSources:[],relatedTechnicalSignals:["No before/after schema on case study pages"],summary:"Claude does not surface your Invisalign content despite strong page quality."},{id:"evidence_citypoint_children_claude",keyword:"pediatric dentist brooklyn heights",provider:"claude",citationState:"not-cited",changeLabel:"No citation across 4 runs",answerSnippet:"Answers cite neighborhood-specific pediatric practices with stronger family-focused FAQ content and clearer insurance details.",citedDomains:["brightkidsdental.com","parkpediatricdental.com"],evidenceUrls:["https://brightkidsdental.com/pediatric-dentist-brooklyn-heights","https://parkpediatricdental.com/insurance"],competitorDomains:["brightkidsdental.com","parkpediatricdental.com"],groundingSources:[],relatedTechnicalSignals:["No dedicated pediatric service page exists for Brooklyn Heights","Insurance content is buried three clicks deep"],summary:"Coverage gap is content-driven, not purely technical."},{id:"evidence_citypoint_children_gemini",keyword:"pediatric dentist brooklyn heights",provider:"gemini",citationState:"not-cited",changeLabel:"No citation across 12 runs",answerSnippet:"For pediatric dentistry in Brooklyn Heights, Bright Kids Dental and Park Pediatric Dental are cited for family-friendly care.",citedDomains:["brightkidsdental.com","parkpediatricdental.com"],evidenceUrls:[],competitorDomains:["brightkidsdental.com","parkpediatricdental.com"],groundingSources:[],relatedTechnicalSignals:["No dedicated pediatric page for Brooklyn Heights"],summary:"Gemini does not surface your domain for pediatric queries in this area."},{id:"evidence_citypoint_children_openai",keyword:"pediatric dentist brooklyn heights",provider:"openai",citationState:"cited",changeLabel:"First citation this month",answerSnippet:"Citypoint Dental is mentioned as offering pediatric services in Brooklyn, though specialized pediatric-only practices are also highlighted.",citedDomains:["citypointdental.com","brightkidsdental.com"],evidenceUrls:["https://citypointdental.com/family-dentistry"],competitorDomains:["brightkidsdental.com"],groundingSources:[],relatedTechnicalSignals:["Family dentistry page recently updated"],summary:"OpenAI recently started citing your family dentistry page for this query."}],Jx=[{project:rl[0],dateRangeLabel:"Last 7 days",contextLabel:"US / English / Local-intent monitoring",visibilitySummary:{label:"Answer Visibility",value:"61 / 100",delta:"-8 this week",tone:"caution",description:"Lost citation share on emergency-intent prompts while Invisalign visibility improved.",trend:[73,71,69,66,61]},providerScores:[{provider:"gemini",score:55,cited:5,total:9},{provider:"openai",score:67,cited:6,total:9},{provider:"claude",score:44,cited:4,total:9}],readinessSummary:{label:"Technical Readiness",value:"78 / 100",delta:"+4 after schema fixes",tone:"positive",description:"Schema fixes landed, but sitemap fallback and missing llms.txt still reduce confidence.",trend:[71,72,73,76,78]},competitorPressure:{label:"Competitor Pressure",value:"High",delta:"2 rivals moved up",tone:"negative",description:"Downtown Smiles and Harbor Dental now own the highest-intent local prompts.",trend:[54,58,61,65,69]},runStatus:{label:"Run Status",value:"Partial",delta:"1 queued follow-up",tone:"caution",description:"Latest technical audit completed in fallback mode; next visibility sweep is queued.",trend:[76,74,72,68,67]},insights:[{id:"insight_citypoint_lost_citations",tone:"negative",title:"Lost citation on 3 money queries",detail:"Emergency-intent prompts stopped grounding Citypoint after competitors refreshed availability pages.",actionLabel:"Open evidence",evidenceId:"evidence_citypoint_emergency"},{id:"insight_citypoint_emerging",tone:"positive",title:"Fresh case studies are starting to work",detail:"Invisalign prompts now cite Citypoint when case-study pages are mentioned in the answer rationale.",actionLabel:"Review example",evidenceId:"evidence_citypoint_invisalign"},{id:"insight_citypoint_content_gap",tone:"caution",title:"Coverage gap is still content-led",detail:"Pediatric prompts remain uncited because there is no dedicated neighborhood page to support them.",actionLabel:"Inspect gap",evidenceId:"evidence_citypoint_children"}],visibilityEvidence:Kx,technicalFindings:[{id:"finding_citypoint_schema",severity:"high",title:"Emergency service page lost FAQ schema",detail:"The page most closely tied to high-intent emergency prompts is no longer exposing FAQPage markup.",impact:"Removes a strong grounding signal from the page that previously earned citations."},{id:"finding_citypoint_llms",severity:"medium",title:"llms.txt is still missing",detail:"The latest site audit could not fetch llms.txt or llms-full.txt.",impact:"Lowers crawler clarity and weakens the story when visibility drops."},{id:"finding_citypoint_internal_links",severity:"low",title:"Insurance and pediatric content sit too deep",detail:"Supporting pages needed for family and insurance prompts sit three clicks from the homepage.",impact:"Limits discovery for lower-volume but high-trust prompt variants."}],competitors:[{id:"competitor_citypoint_downtown",domain:"downtownsmiles.com",citationCount:4,totalKeywords:8,pressureLabel:"High",citedKeywords:["emergency dentist","same-day dental","walk-in dentist","tooth pain"],movement:"Up on emergency and availability prompts",notes:"Recently added same-day booking proof and FAQ content."},{id:"competitor_citypoint_harbor",domain:"harbordental.com",citationCount:2,totalKeywords:8,pressureLabel:"Moderate",citedKeywords:["family dentist","emergency dentist"],movement:"Holding citations on family and emergency intents",notes:"Strong appointment and insurance content keeps answers grounded."},{id:"competitor_citypoint_clearline",domain:"clearlineortho.com",citationCount:1,totalKeywords:8,pressureLabel:"Low",citedKeywords:["invisalign near me"],movement:"Softening on Invisalign prompts",notes:"Case-study content is aging, opening room for Citypoint."}],recentRuns:[qo,Up,Vs]},{project:rl[1],dateRangeLabel:"Last 14 days",contextLabel:"US / English / Service-area legal prompts",visibilitySummary:{label:"Answer Visibility",value:"74 / 100",delta:"+2 this week",tone:"positive",description:"Branded prompts are stable and informational queries are gradually improving.",trend:[68,70,71,73,74]},providerScores:[{provider:"gemini",score:75,cited:3,total:4},{provider:"openai",score:50,cited:2,total:4}],readinessSummary:{label:"Technical Readiness",value:"83 / 100",delta:"+1 this week",tone:"positive",description:"Service pages consolidated cleanly and structured data remains intact.",trend:[80,80,81,82,83]},competitorPressure:{label:"Competitor Pressure",value:"Moderate",delta:"Steady",tone:"neutral",description:"Competitors are stable; no new citation displacement was detected.",trend:[44,46,45,46,46]},runStatus:{label:"Run Status",value:"Healthy",delta:"No failures in 14 days",tone:"positive",description:"Latest visibility and audit runs completed without fallback.",trend:[88,89,90,90,91]},insights:[{id:"insight_harbor_cluster",tone:"positive",title:"Practice-area clustering is paying off",detail:"Merged legal service pages now ground broader informational prompts without hurting conversion intent.",actionLabel:"Review evidence"},{id:"insight_harbor_local",tone:"neutral",title:"Local pack competitors are steady",detail:"No new displacement on borough-specific injury prompts this week.",actionLabel:"Keep monitoring"}],visibilityEvidence:[{id:"evidence_harbor_personal_injury",keyword:"brooklyn personal injury lawyer",provider:"gemini",citationState:"cited",changeLabel:"Held for 5 runs",answerSnippet:"Harbor Legal Group remains cited for borough-specific personal injury queries due to clear practice-area and case-result content.",citedDomains:["harborlegal.com"],evidenceUrls:["https://harborlegal.com/personal-injury/brooklyn"],competitorDomains:["shorelineinjury.com"],groundingSources:[],relatedTechnicalSignals:["Practice-area schema intact","Case results link directly from service pages"],summary:"Grounding remains durable after the service-page consolidation."}],technicalFindings:[{id:"finding_harbor_faq",severity:"low",title:"FAQ answers could be more concise",detail:"Some FAQ answers are still long enough to reduce snippet clarity.",impact:"This is optimization, not a blocker."}],competitors:[{id:"competitor_harbor_shoreline",domain:"shorelineinjury.com",citationCount:2,totalKeywords:6,pressureLabel:"Moderate",citedKeywords:["personal injury lawyer","car accident attorney"],movement:"Stable",notes:"Strong case-result pages keep it in rotation."}],recentRuns:[Yo,Lp]},{project:rl[2],dateRangeLabel:"Last 7 days",contextLabel:"US / English / Multi-location treatment prompts",visibilitySummary:{label:"Answer Visibility",value:"58 / 100",delta:"Run in progress",tone:"neutral",description:"The current run is measuring whether treatment-location pages improved citation breadth.",trend:[52,54,55,57,58]},providerScores:[{provider:"openai",score:58,cited:4,total:7}],readinessSummary:{label:"Technical Readiness",value:"76 / 100",delta:"+3 after template cleanup",tone:"positive",description:"Location templates are cleaner, but location-specific proof still needs depth.",trend:[69,71,72,74,76]},competitorPressure:{label:"Competitor Pressure",value:"Moderate",delta:"Watching 1 chain",tone:"caution",description:"Regional chain competitors are winning on broad treatment questions.",trend:[49,51,52,54,56]},runStatus:{label:"Run Status",value:"Running",delta:"9 prompts remaining",tone:"neutral",description:"Current answer-visibility sweep is still collecting provider responses.",trend:[63,64,65,67,68]},insights:[{id:"insight_northstar_location_depth",tone:"caution",title:"Location pages need stronger proof",detail:"The templates are clean, but answers still prefer competitors with physician-specific evidence.",actionLabel:"Track current run"}],visibilityEvidence:[{id:"evidence_northstar_knee",keyword:"knee replacement surgeon westchester",provider:"openai",citationState:"emerging",changeLabel:"Improving",answerSnippet:"Northstar Orthopedics is beginning to appear on location-sensitive treatment prompts when physician bios and treatment pages are tightly linked.",citedDomains:["northstarortho.com","regionaljointcare.com"],evidenceUrls:["https://northstarortho.com/locations/westchester/knee-replacement"],competitorDomains:["regionaljointcare.com"],groundingSources:[],relatedTechnicalSignals:["Physician bios now linked from treatment pages"],summary:"Template cleanup is helping, but proof depth still matters."}],technicalFindings:[{id:"finding_northstar_proof",severity:"medium",title:"Location pages lack physician-specific proof",detail:"Treatment pages are structurally sound but still too generic for highly specific prompts.",impact:"Limits how often the provider is cited for local treatment questions."}],competitors:[{id:"competitor_northstar_regional",domain:"regionaljointcare.com",citationCount:5,totalKeywords:7,pressureLabel:"High",citedKeywords:["knee replacement","hip surgery","joint pain treatment","orthopedic surgeon","sports medicine"],movement:"Winning broad treatment prompts",notes:"Heavy physician proof and patient-story content."}],recentRuns:[Xs]}],$x={portfolioOverview:{projects:[{project:rl[0],visibilityScore:61,visibilityDelta:"-8 this week",readinessScore:78,readinessDelta:"+4 after schema fixes",lastRun:Vs,insight:"Lost emergency-intent citations after competitors refreshed availability pages.",trend:[73,71,69,66,61],competitorPressureLabel:"High"},{project:rl[1],visibilityScore:74,visibilityDelta:"+2 this week",readinessScore:83,readinessDelta:"+1 this week",lastRun:Yo,insight:"Practice-area consolidation is stabilizing branded and informational prompts.",trend:[68,70,71,73,74],competitorPressureLabel:"Moderate"},{project:rl[2],visibilityScore:58,visibilityDelta:"Run in progress",readinessScore:76,readinessDelta:"+3 after template cleanup",lastRun:Xs,insight:"Location pages are improving, but local treatment proof still trails competitors.",trend:[52,54,55,57,58],competitorPressureLabel:"Moderate"}],attentionItems:[{id:"attention_citypoint",tone:"negative",title:"Citypoint Dental lost emergency-intent citations",detail:"Three high-intent prompts now cite competitors first.",actionLabel:"Open project",href:"/projects/project_citypoint"},{id:"attention_worker",tone:"neutral",title:"One follow-up run is queued",detail:"Citypoint has a queued visibility sweep waiting on provider quota.",actionLabel:"Open runs",href:"/runs"},{id:"attention_northstar",tone:"caution",title:"Northstar run still in progress",detail:"Nine prompts remain before the current treatment-location sweep finishes.",actionLabel:"View timeline",href:"/runs"}],recentRuns:[qo,Xs,Vs],systemHealth:[{id:"api",label:"API",tone:"positive",detail:"Healthy",meta:"phase-1 · database configured"},{id:"worker",label:"Worker",tone:"positive",detail:"Healthy",meta:"heartbeat moments ago"},{id:"providers",label:"Providers",tone:"positive",detail:"2 of 3 configured",meta:"Gemini · OpenAI"}],lastUpdatedAt:"Mar 9, 8:08 AM ET"},projects:Jx,runs:Zx,setup:{healthChecks:[{id:"api",label:"API reachable",detail:"Primary control plane is responding.",state:"ready",guidance:"Required for project creation and run history."},{id:"worker",label:"Worker heartbeats received",detail:"Background execution loop is alive.",state:"ready",guidance:"Required before any answer-visibility or site-audit run can start."},{id:"provider",label:"Provider configured",detail:"Gemini key and quota defaults are present.",state:"ready",guidance:"Required for answer-visibility sweeps."}],projectDraft:{name:"Citypoint Dental NYC",canonicalDomain:"citypointdental.com",country:"US",language:"en"},keywordImportState:{mode:"paste",keywordCount:18,preview:["emergency dentist brooklyn","best invisalign dentist downtown brooklyn","pediatric dentist brooklyn heights"]},competitorDraft:{domains:["downtownsmiles.com","harbordental.com","clearlineortho.com"],notes:"Start with the domains that already displace the project on money prompts."},launchState:{enabled:!0,ctaLabel:"Launch first run",summary:"Queue a visibility sweep first, then follow with a site audit to explain movement."}},settings:{providerStatuses:[{name:"Gemini",model:"gemini-2.5-flash",state:"ready",detail:"API key detected and conservative quota defaults are active.",quota:{maxConcurrency:2,maxRequestsPerMinute:10,maxRequestsPerDay:1e3}},{name:"OpenAI",model:"gpt-4o",state:"ready",detail:"API key configured.",quota:{maxConcurrency:2,maxRequestsPerMinute:10,maxRequestsPerDay:1e3}},{name:"Claude",model:"claude-sonnet-4-6",state:"needs-config",detail:"API key is missing."}],selfHostNotes:["Run behind a reverse proxy before exposing the dashboard outside a trusted network.","Keep bootstrap and provider secrets out of source control.","Use persistent Postgres storage before treating run history as durable."],bootstrapNote:"Bootstrap/admin secrets stay in the environment; they do not belong in the UI."}},Wx={apiStatus:{label:"API",state:"ok",detail:"phase-1 · database configured",version:"phase-1",databaseConfigured:!0},workerStatus:{label:"Worker",state:"ok",detail:"phase-1 · database configured · heartbeat 2026-03-09T08:07:00.000Z",version:"phase-1",databaseConfigured:!0,lastHeartbeatAt:"2026-03-09T08:07:00.000Z"}};function Fx(l={}){const r=structuredClone($x),u=structuredClone(Wx);if(l.emptyPortfolio&&(r.portfolioOverview.projects=[],r.portfolioOverview.attentionItems=[{id:"attention_setup",tone:"neutral",title:"No projects yet",detail:"Start the guided setup flow to add a domain, import keywords, and launch the first run.",actionLabel:"Open setup",href:"/setup"}],r.portfolioOverview.recentRuns=[],r.portfolioOverview.emptyState={title:"No projects yet",detail:"Canonry becomes useful after one project, a small keyword set, and one competitor list are in place.",ctaLabel:"Launch setup",ctaHref:"/setup"}),l.runScenario==="partial"&&(r.runs[0].status="partial",r.runs[0].duration="7m 24s",r.runs[0].statusDetail="Quota window closed mid-run; 14 of 18 prompts completed before the worker paused.",r.runs[0].summary="Partial visibility sweep after quota cap",r.portfolioOverview.recentRuns[0]=r.runs[0]),l.runScenario==="failed"&&(r.runs[0].status="failed",r.runs[0].duration="1m 43s",r.runs[0].statusDetail="Worker could not reach the provider after repeated retry exhaustion.",r.runs[0].summary="Provider retries exhausted before results were captured",r.portfolioOverview.recentRuns[0]=r.runs[0],r.portfolioOverview.attentionItems.unshift({id:"attention_failed_run",tone:"negative",title:"One queued follow-up failed to start cleanly",detail:"Worker retries exhausted before the provider returned a response.",actionLabel:"Open runs",href:"/runs"})),l.degradedWorker&&(u.workerStatus={label:"Worker",state:"error",detail:"heartbeat stale · last seen 12m ago",version:"phase-1",databaseConfigured:!0,lastHeartbeatAt:"2026-03-09T07:55:00.000Z"}),l.providerNeedsConfig&&(r.settings.providerStatuses=r.settings.providerStatuses.map(o=>({...o,state:"needs-config",detail:"API key is missing, so answer-visibility sweeps are blocked."}))),l.visibilityDropProjectId){const o=r.projects.find(m=>m.project.id===l.visibilityDropProjectId),f=r.portfolioOverview.projects.find(m=>m.project.id===l.visibilityDropProjectId);o&&(o.visibilitySummary.value="49 / 100",o.visibilitySummary.delta="-12 in 48h",o.visibilitySummary.tone="negative",o.visibilitySummary.description="A sharper drop than normal; citations slipped across both local and service-intent prompts.",o.insights.unshift({id:`${o.project.id}_drop`,tone:"negative",title:"Sharp citation drop detected",detail:"Answers that previously cited the domain now ground competitors on both local and service-intent prompts.",actionLabel:"Open evidence",evidenceId:o.visibilityEvidence[0]?.id}),o.technicalFindings?.unshift({id:`${o.project.id}_drop_finding`,severity:"high",title:"Primary supporting page fell out of crawl emphasis",detail:"The drop correlates with weaker internal links and missing FAQ markup on the main conversion page.",impact:"Both citation share and trust signals deteriorated at the same time."})),f&&(f.visibilityScore=49,f.visibilityDelta="-12 in 48h",f.insight="Sharp citation drop detected; grounding now prefers competitors on multiple high-intent prompts.")}return{dashboard:r,health:u}}function Hp(l,r){return l.projects.find(u=>u.project.id===r)}function Ix(l,r){return l.runs.find(u=>u.id===r)}function Px(l,r){for(const u of l.projects){const o=u.visibilityEvidence.find(f=>f.id===r);if(o)return{project:u,evidence:o}}}const eS="/api/v1";function tS(){return typeof window<"u"&&window.__CANONRY_CONFIG__?.apiKey?window.__CANONRY_CONFIG__.apiKey:""}async function Ge(l,r){const u=tS(),o=await fetch(`${eS}${l}`,{...r,headers:{"Content-Type":"application/json",...u?{Authorization:`Bearer ${u}`}:{},...r?.headers}});if(!o.ok)throw new Error(`API ${o.status}: ${o.statusText}`);if(o.status!==204)return o.json()}function nS(){return Ge("/projects")}function aS(){return Ge("/runs")}function Ao(l){return Ge(`/runs/${encodeURIComponent(l)}`)}function lS(l){return Ge(`/projects/${encodeURIComponent(l)}/keywords`)}function Bp(l){return Ge(`/projects/${encodeURIComponent(l)}/competitors`)}function iS(l){return Ge(`/projects/${encodeURIComponent(l)}/timeline`)}function sS(l,r){return Ge(`/projects/${encodeURIComponent(l)}`,{method:"PUT",body:JSON.stringify(r)})}function cS(l,r){return Ge(`/projects/${encodeURIComponent(l)}/keywords`,{method:"PUT",body:JSON.stringify({keywords:r})})}function rS(l,r){return Ge(`/projects/${encodeURIComponent(l)}/keywords`,{method:"POST",body:JSON.stringify({keywords:r})})}function qp(l,r){return Ge(`/projects/${encodeURIComponent(l)}/competitors`,{method:"PUT",body:JSON.stringify({competitors:r})})}function Yp(l){return Ge(`/projects/${encodeURIComponent(l)}/runs`,{method:"POST",body:"{}"})}async function oS(l){await Ge(`/projects/${encodeURIComponent(l)}`,{method:"DELETE",body:"{}"})}function uS(l){return Ge(`/projects/${encodeURIComponent(l)}/export`)}function dS(){return Ge("/settings")}function fS(l,r){return Ge(`/settings/providers/${encodeURIComponent(l)}`,{method:"PUT",body:JSON.stringify(r)})}async function mS(l){try{return await Ge(`/projects/${encodeURIComponent(l)}/schedule`)}catch(r){if(r instanceof Error&&r.message.includes("404"))return null;throw r}}function jh(l,r){return Ge(`/projects/${encodeURIComponent(l)}/schedule`,{method:"PUT",body:JSON.stringify(r)})}async function hS(l){await Ge(`/projects/${encodeURIComponent(l)}/schedule`,{method:"DELETE",body:"{}"})}function pS(l){return Ge(`/projects/${encodeURIComponent(l)}/notifications`)}function gS(l,r){return Ge(`/projects/${encodeURIComponent(l)}/notifications`,{method:"POST",body:JSON.stringify(r)})}async function vS(l,r){await Ge(`/projects/${encodeURIComponent(l)}/notifications/${encodeURIComponent(r)}`,{method:"DELETE",body:"{}"})}function yS(l,r){return Ge(`/projects/${encodeURIComponent(l)}/notifications/${encodeURIComponent(r)}/test`,{method:"POST",body:"{}"})}function Gp(l){return{id:l.id,name:l.name,displayName:l.displayName,canonicalDomain:l.canonicalDomain,country:l.country,language:l.language,tags:l.tags,labels:l.labels,configSource:l.configSource,configRevision:l.configRevision,createdAt:l.createdAt,updatedAt:l.updatedAt}}function Nh(l){try{return new Date(l).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}catch{return l}}function bS(l,r){if(!l)return"Waiting";if(!r)return"Running";const u=new Date(r).getTime()-new Date(l).getTime();if(u<1e3)return"<1s";const o=Math.floor(u/1e3);if(o<60)return`${o}s`;const f=Math.floor(o/60),m=o%60;return`${f}m ${m}s`}function Qp(l){return l==="answer-visibility"?"Answer visibility sweep":l}function xS(l){return l==="manual"?"Manual":l==="scheduled"?"Scheduled":l==="config-apply"?"Config apply":l}function Go(l,r){return{id:l.id,projectId:l.projectId,projectName:r,kind:l.kind,kindLabel:Qp(l.kind),status:l.status,trigger:l.trigger??"manual",createdAt:l.createdAt,startedAt:l.startedAt?Nh(l.startedAt):Nh(l.createdAt),duration:bS(l.startedAt,l.finishedAt),statusDetail:l.error?Vp(l.error):SS(l),summary:jS(l),triggerLabel:xS(l.trigger)}}function Vp(l){try{const u=JSON.parse(l);if(typeof u=="object"&&u!==null){const o=u.message??u.error?.message??u[0]?.error?.message;if(typeof o=="string"&&o.length>0)return o.length>200?o.slice(0,200)+"…":o}}catch{}const r=l.match(/\[.*?\]\s*(.+)/);if(r){const u=r[1];return u.length>200?u.slice(0,200)+"…":u}return l.length>200?l.slice(0,200)+"…":l}function SS(l){switch(l.status){case"queued":return"Waiting for execution slot.";case"running":return"Provider queries in progress.";case"completed":return"All key phrases checked.";case"partial":return"Run completed with some key phrases skipped.";case"failed":return l.error?Vp(l.error):"Run failed.";default:return""}}function jS(l){switch(l.status){case"queued":return"Queued for execution";case"running":return"In progress";case"completed":return"Visibility sweep completed";case"partial":return"Partial completion";case"failed":return"Run failed";default:return l.status}}function Xp(l){if(l.length===0)return{score:0,citedCount:0,totalCount:0};const r=new Map;for(const m of l){const p=m.keyword??m.id;r.has(p)||r.set(p,!1),m.citationState==="cited"&&r.set(p,!0)}const u=r.size,o=[...r.values()].filter(Boolean).length;return{score:u>0?Math.round(o/u*100):0,citedCount:o,totalCount:u}}function NS(l){return l>=70?"positive":l>=40?"caution":"negative"}function wS(l){return l==="High"?"negative":l==="Moderate"?"caution":"neutral"}function Zp(l,r){if(l.length===0||r.length===0)return{label:"None",count:0};const u=new Set(r);let o=0;for(const m of l)m.competitorOverlap.some(p=>u.has(p))&&o++;const f=o/l.length;return f>=.5?{label:"High",count:o}:f>=.2?{label:"Moderate",count:o}:{label:"Low",count:o}}function ES(l,r){if(!r)return[];const u=new Map;for(const p of r.snapshots)if(p.keyword){const v=`${p.keyword}::${p.provider}`;u.set(v,p)}const o=[...new Set(r.snapshots.map(p=>p.provider))].sort();o.length===0&&o.push("gemini");const f=[];let m=0;for(const p of l){const b=p.runs.at(-1)?.transition??"not-cited",g=b==="lost"?"lost":b==="emerging"?"emerging":b==="cited"?"cited":"not-cited";for(const A of o){const N=u.get(`${p.keyword}::${A}`);if(!N&&o.length>1)continue;const R=N?N.citationState==="cited"?"cited":"not-cited":g,Y=o.length>1?R==="cited"?"cited":"not-cited":b;f.push({id:`evidence_${m++}`,keyword:p.keyword,provider:N?.provider??A,citationState:R,changeLabel:CS(Y,p.runs.length),answerSnippet:N?.answerText??"",citedDomains:N?.citedDomains??[],evidenceUrls:[],competitorDomains:N?.competitorOverlap??[],relatedTechnicalSignals:[],groundingSources:N?.groundingSources??[],summary:zS(R,p.keyword)})}}return f}function CS(l,r){switch(l){case"new":return"First observation";case"cited":return`Cited for ${r} runs`;case"lost":return"Lost since last run";case"emerging":return"First citation";case"not-cited":return`Not cited across ${r} runs`;default:return l}}function zS(l,r){switch(l){case"cited":return`Your domain is cited in AI answers for "${r}".`;case"lost":return`Citation was lost for "${r}". Competitors may have gained ground.`;case"emerging":return`Your domain is starting to appear in answers for "${r}".`;case"not-cited":return`No citation detected for "${r}".`}}function AS(l){const r=l.map(u=>u.citationState);return r.includes("cited")?"cited":r.includes("emerging")?"emerging":r.includes("lost")?"lost":"not-cited"}function TS(l){const r=[],u=new Map;for(const p of l){const v=u.get(p.keyword)??[];u.set(p.keyword,[...v,p])}const o=[],f=[],m=[];for(const[p,v]of u){const b=AS(v),g=v[0].id;b==="lost"?o.push({phrase:p,id:v.find(A=>A.citationState==="lost")?.id??g}):b==="emerging"?f.push({phrase:p,id:v.find(A=>A.citationState==="emerging")?.id??g}):b==="not-cited"&&m.push({phrase:p,id:g})}return o.length>0&&r.push({id:"insight_lost",tone:"negative",title:`Lost citation on ${o.length} key phrase${o.length>1?"s":""}`,detail:`Key phrases: ${o.map(p=>p.phrase).join(", ")}`,actionLabel:"Open evidence",evidenceId:o[0].id}),f.length>0&&r.push({id:"insight_emerging",tone:"positive",title:`New citation on ${f.length} key phrase${f.length>1?"s":""}`,detail:`Key phrases: ${f.map(p=>p.phrase).join(", ")}`,actionLabel:"Review evidence",evidenceId:f[0].id}),m.length>0&&r.push({id:"insight_gap",tone:"caution",title:`${m.length} key phrase${m.length>1?"s":""} not cited by any provider`,detail:"These key phrases have not been cited in any AI answer across all providers.",actionLabel:"Inspect gap",evidenceId:m[0].id}),r.length===0&&r.push({id:"insight_stable",tone:"neutral",title:"No significant changes",detail:"Citation state is stable across all tracked key phrases.",actionLabel:"Monitor"}),r}function _S(l){const r=l[0];if(!r)return{label:"Run Status",value:"None",delta:"No runs yet",tone:"neutral",description:"Trigger a visibility sweep to start tracking.",tooltip:"Current execution state of visibility sweeps. Shows the status of the most recent run and total run count.",trend:[]};const u=r.status==="completed"?"Healthy":r.status==="running"?"Running":r.status==="queued"?"Queued":r.status==="partial"?"Partial":"Failed",o=r.status==="completed"?"positive":r.status==="failed"?"negative":r.status==="partial"?"caution":"neutral";return{label:"Run Status",value:u,delta:`${l.length} total runs`,tone:o,description:`Latest: ${Qp(r.kind)} — ${r.status}`,tooltip:"Current execution state of visibility sweeps. Shows the status of the most recent run and total run count.",trend:[]}}function DS(l){const r=Gp(l.project),u=ES(l.timeline,l.latestRunDetail),o=l.latestRunDetail?.snapshots??[],f=Xp(o),m=Zp(o,l.competitors.map(N=>N.domain)),p=TS(u),v=[...l.runs].sort((N,R)=>R.createdAt.localeCompare(N.createdAt)),b=v.map(N=>Go(N,l.project.displayName||l.project.name)),g=new Map;for(const N of o){const R=N.provider||"gemini",Y=g.get(R)??{cited:0,total:0};Y.total++,N.citationState==="cited"&&Y.cited++,g.set(R,Y)}const A=[...g.entries()].sort(([N],[R])=>N.localeCompare(R)).map(([N,{cited:R,total:Y}])=>({provider:N,score:Y>0?Math.round(R/Y*100):0,cited:R,total:Y}));return{project:r,dateRangeLabel:"All time",contextLabel:`${r.country} / ${r.language.toUpperCase()}`,visibilitySummary:{label:"Answer Visibility",value:o.length>0?`${f.score}`:"No data",delta:o.length>0?`${f.citedCount} of ${f.totalCount} key phrases visible`:"Run a sweep first",tone:o.length>0?NS(f.score):"neutral",description:o.length>0?`${f.citedCount} of ${f.totalCount} tracked key phrases found your domain in at least one AI answer engine.`:"No visibility data yet. Trigger a run to start tracking.",tooltip:'Percentage of tracked key phrases where your domain is cited by at least one AI answer engine. A key phrase is "visible" if any configured provider includes your site in its response.',trend:[]},providerScores:A,readinessSummary:void 0,competitorPressure:{label:"Competitor Pressure",value:m.label,delta:m.count>0?`${m.count} overlapping citations`:"No overlap detected",tone:wS(m.label),description:l.competitors.length>0?`${l.competitors.length} competitor${l.competitors.length>1?"s":""} tracked.`:"No competitors configured.",tooltip:"How often competitor domains appear alongside yours in AI answers. High pressure means competitors are frequently cited for the same key phrases.",trend:[]},runStatus:_S(v),insights:p,visibilityEvidence:u,technicalFindings:void 0,competitors:l.competitors.map((N,R)=>{const Y=new Set;for(const ne of o)(ne.competitorOverlap.includes(N.domain)||ne.citedDomains.includes(N.domain))&&ne.keyword&&Y.add(ne.keyword);const K=[...Y],O=new Set(o.map(ne=>ne.keyword).filter(Boolean)),B=O.size>0?K.length/O.size:0,$=B>=.5?"High":B>=.2?"Moderate":K.length>0?"Low":"None";return{id:N.id||`comp_${R}`,domain:N.domain,citationCount:K.length,totalKeywords:O.size,pressureLabel:$,citedKeywords:K,movement:"",notes:""}}),recentRuns:b.slice(0,5)}}function RS(l){const r=Gp(l.project),u=l.latestRunDetail?.snapshots??[],o=Xp(u),f=Zp(u,l.competitors.map(b=>b.domain)),p=[...l.runs].sort((b,g)=>g.createdAt.localeCompare(b.createdAt))[0],v=p?Go(p,l.project.displayName||l.project.name):{id:"none",projectId:l.project.id,projectName:l.project.displayName||l.project.name,kind:"answer-visibility",kindLabel:"No runs yet",status:"queued",trigger:"manual",createdAt:"",startedAt:"",duration:"",statusDetail:"",summary:"No runs yet",triggerLabel:""};return{project:r,visibilityScore:o.score,visibilityDelta:u.length>0?`${o.citedCount} of ${o.totalCount} key phrases`:"No data",readinessScore:void 0,readinessDelta:void 0,lastRun:v,insight:u.length>0?`${o.citedCount} of ${o.totalCount} key phrases visible across ${new Set(u.map(b=>b.provider)).size} provider${new Set(u.map(b=>b.provider)).size>1?"s":""}.`:"No runs completed yet.",trend:[],competitorPressureLabel:f.label}}function OS(l,r){const u=[],o=[],f=[];for(const p of l){o.push(DS(p)),f.push(RS(p));const v=[...p.runs].sort((b,g)=>g.createdAt.localeCompare(b.createdAt));for(const b of v)u.push(Go(b,p.project.displayName||p.project.name))}u.sort((p,v)=>v.createdAt.localeCompare(p.createdAt));const m=l.length>0;return{portfolioOverview:{projects:f,attentionItems:m?MS(o):[{id:"attention_setup",tone:"neutral",title:"No projects yet",detail:"Create your first project using the setup wizard, CLI, or API.",actionLabel:"Open setup",href:"/setup"}],recentRuns:u.slice(0,5),systemHealth:[{id:"api",label:"API",tone:"positive",detail:"Connected",meta:"Real-time data"},{id:"provider",label:"Gemini",tone:"positive",detail:"Configured",meta:"Provider active"}],lastUpdatedAt:new Date().toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),...m?{}:{emptyState:{title:"No projects yet",detail:"Canonry becomes useful after one project, a small key phrase set, and one competitor list are in place.",ctaLabel:"Launch setup",ctaHref:"/setup"}}},projects:o,runs:u,setup:{healthChecks:[{id:"api",label:"API reachable",detail:"API is responding.",state:"ready",guidance:"Required for project creation and run history."},{id:"provider",label:"Provider configured",detail:"Gemini key is configured.",state:"ready",guidance:"Required for answer-visibility sweeps."}],projectDraft:{name:"",canonicalDomain:"",country:"US",language:"en"},keywordImportState:{mode:"paste",keywordCount:0,preview:[]},competitorDraft:{domains:[],notes:"Use the CLI to add competitors."},launchState:{enabled:m,ctaLabel:m?"Trigger run":"Create a project first",summary:m?"Ready to run.":"Create a project first to launch a run."}},settings:{providerStatuses:(r?.providers??[]).map(p=>({name:p.name.charAt(0).toUpperCase()+p.name.slice(1),model:p.model??"(default)",state:p.configured?"ready":"needs-config",detail:p.configured?"Provider is configured.":"API key is missing.",quota:p.quota})),selfHostNotes:["Configuration is stored in ~/.canonry/config.yaml.","Database is SQLite at ~/.canonry/data.db.","API key was auto-generated during canonry init."],bootstrapNote:"Manage settings via ~/.canonry/config.yaml and restart the server."}}}function MS(l){const r=[];for(const u of l){const o=u.visibilityEvidence.filter(m=>m.citationState==="lost");o.length>0&&r.push({id:`attention_${u.project.id}_lost`,tone:"negative",title:`${u.project.displayName||u.project.name} lost citations`,detail:`${o.length} key phrase${o.length>1?"s":""} lost citation.`,actionLabel:"Open project",href:`/projects/${u.project.id}`});const f=u.recentRuns.filter(m=>m.status==="running"||m.status==="queued");f.length>0&&r.push({id:`attention_${u.project.id}_active`,tone:"neutral",title:`${u.project.displayName||u.project.name} has active runs`,detail:`${f.length} run${f.length>1?"s":""} in progress.`,actionLabel:"View runs",href:"/runs"})}return r.length===0&&r.push({id:"attention_stable",tone:"positive",title:"All projects stable",detail:"No citation losses or active runs to flag.",actionLabel:"View portfolio",href:"/"}),r}const wh=[{label:"Architecture",href:"https://github.com/AINYC/canonry/blob/main/docs/architecture.md"},{label:"Testing Guide",href:"https://github.com/AINYC/canonry/blob/main/docs/testing.md"}],kS=Fx(),Eh=l=>({label:l,state:"checking",detail:"Checking service health"}),US={apiStatus:Eh("API"),workerStatus:Eh("Worker")};async function LS(l,r){try{const u=await fetch(l);if(!u.ok)return{label:r,state:"error",detail:`HTTP ${u.status}`};const o=await u.json(),f=typeof o.version=="string"?o.version:"unknown",m=typeof o.databaseUrlConfigured=="boolean"?o.databaseUrlConfigured:void 0,p=typeof o.lastHeartbeatAt=="string"?o.lastHeartbeatAt:void 0,v=[f,m===!1?"database not configured":"database configured",p?`heartbeat ${p}`:void 0].filter(Boolean).join(" · ");return{label:r,state:"ok",detail:v,version:f,databaseConfigured:m,lastHeartbeatAt:p}}catch(u){return{label:r,state:"error",detail:u instanceof Error?u.message:"unreachable"}}}function ol(l){if(!l)return"/";const r=l.split("?")[0]??"/";return r===""?"/":r.length>1&&r.endsWith("/")?r.slice(0,-1):r}function HS(l,r){const u=ol(l);if(u==="/")return{kind:"overview",path:"/"};if(u==="/runs")return{kind:"runs",path:"/runs"};if(u==="/settings")return{kind:"settings",path:"/settings"};if(u==="/setup")return{kind:"setup",path:"/setup"};if(u==="/projects"){const o=r.projects[0];return o?{kind:"project",path:`/projects/${o.project.id}`,projectId:o.project.id}:{kind:"setup",path:"/setup"}}if(u.startsWith("/projects/")){const o=u.slice(10);return Hp(r,o)?{kind:"project",path:u,projectId:o}:{kind:"not-found",path:u}}return{kind:"not-found",path:u}}function BS(l){return l?ol(l):typeof window<"u"?ol(window.location.pathname):"/"}function Zs(l){return l.state==="ok"?"positive":l.state==="checking"?"neutral":"negative"}function Kp(l){switch(l){case"completed":return"positive";case"partial":return"caution";case"failed":return"negative";case"queued":case"running":return"neutral"}}function qS(l){switch(l){case"cited":return"positive";case"emerging":return"positive";case"not-cited":return"caution";case"lost":return"negative"}}function YS(l){switch(l){case"high":return"negative";case"medium":return"caution";case"low":return"neutral"}}function GS(l){const r=l.match(/^(\[.*?\])\s*(.+)/);if(r){const u=r[1],o=r[2],f=o.indexOf("{");if(f>=0){const m=o.slice(0,f).trim(),p=o.slice(f);try{const v=JSON.parse(p);return`${u} ${m}
|
|
54
|
+
|
|
55
|
+
${JSON.stringify(v,null,2)}`}catch{}}return`${u}
|
|
56
|
+
${o}`}try{const u=JSON.parse(l);return JSON.stringify(u,null,2)}catch{return l}}function fi(l){return l.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}function QS(l,r,u){return l.map(o=>{if(o.id==="api")return{...o,tone:Zs(r.apiStatus),detail:r.apiStatus.state==="ok"?"Healthy":"Needs attention",meta:r.apiStatus.detail};if(o.id==="worker")return{...o,tone:Zs(r.workerStatus),detail:r.workerStatus.state==="ok"?"Healthy":"Needs attention",meta:r.workerStatus.detail};const f=u.providerStatuses.filter(b=>b.state==="ready").length,m=u.providerStatuses.length,p=f>0,v=u.providerStatuses.filter(b=>b.state==="ready").map(b=>b.name).join(" · ");return{...o,label:"Providers",tone:p?"positive":"caution",detail:`${f} of ${m} configured`,meta:v||"None configured"}})}function VS(l,r){if(l.apiStatus.state!=="ok")return"Launch is blocked until the API responds cleanly.";if(l.apiStatus.databaseConfigured===!1)return"Launch is blocked until the API has a database connection configured.";if(l.workerStatus.state!=="ok")return"Launch is blocked until the worker is healthy and heartbeats are current.";if(!r.providerStatuses.some(u=>u.state==="ready"))return"Launch is blocked until at least one provider is configured."}function XS(l,r,u){const o=VS(r,u),f=structuredClone(l);return f.healthChecks=f.healthChecks.map(m=>{if(m.id==="api")return{...m,detail:r.apiStatus.detail,state:r.apiStatus.state==="ok"?"ready":"attention"};if(m.id==="worker")return{...m,detail:r.workerStatus.detail,state:r.workerStatus.state==="ok"?"ready":"attention"};const p=u.providerStatuses.some(v=>v.state==="ready");return{...m,detail:p?"At least one provider configured.":"No providers configured.",state:p?"ready":"attention"}}),f.launchState.enabled=o===void 0,f.launchState.blockedReason=o,f.launchState.summary=o??"Queue a visibility sweep first, then follow with a site audit to explain movement.",f}function Bt(l,r){return u=>{u.preventDefault(),l(r)}}function Hs(l,r){return r==="project"?l.kind==="project":l.kind===r}function ZS({points:l,tone:r}){const u=y.useId();if(l.length===0)return null;const o=42,f=132,m=5,p=Math.min(...l),b=Math.max(...l)-p||1,g=f-m*2,A=o-m*2,N=l.map((R,Y)=>{const K=m+Y/Math.max(l.length-1,1)*g,O=m+(1-(R-p)/b)*A;return`${K},${O}`}).join(" ");return c.jsxs("svg",{className:`sparkline sparkline-${r}`,viewBox:`0 0 ${f} ${o}`,"aria-hidden":"true",children:[c.jsx("defs",{children:c.jsx("clipPath",{id:u,children:c.jsx("rect",{x:m,y:m,width:g,height:A,rx:"8"})})}),c.jsx("line",{className:"sparkline-guide",x1:m,x2:f-m,y1:o-m,y2:o-m}),c.jsx("polyline",{clipPath:`url(#${u})`,points:N,vectorEffect:"non-scaling-stroke"})]})}function Jp({text:l}){return c.jsxs("span",{className:"info-tooltip-wrapper",children:[c.jsxs("svg",{className:"info-tooltip-icon",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[c.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),c.jsx("path",{d:"M8 7v4M8 5.5v0",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),c.jsx("span",{className:"info-tooltip-bubble",role:"tooltip",children:l})]})}function ri({value:l,label:r,delta:u,tone:o,description:f,tooltip:m,isNumeric:p=!0}){const g=2*Math.PI*48,A=Number.parseInt(l,10),N=p&&!Number.isNaN(A)?Math.min(A/100,1):.5,R=g*(1-N);return c.jsxs("div",{className:"score-gauge",children:[c.jsxs("div",{className:"gauge-ring-wrapper",children:[c.jsxs("svg",{className:"gauge-ring",viewBox:"0 0 120 120","aria-hidden":"true",children:[c.jsx("circle",{className:"gauge-bg",cx:"60",cy:"60",r:48,strokeWidth:6}),c.jsx("circle",{className:`gauge-fill gauge-fill-${o}`,cx:"60",cy:"60",r:48,strokeWidth:6,strokeDasharray:g,strokeDashoffset:R,transform:"rotate(-90 60 60)"})]}),c.jsx("div",{className:"gauge-center",children:c.jsx("span",{className:p?"gauge-value":"gauge-value-text",children:l.split(" / ")[0]})})]}),c.jsxs("p",{className:"gauge-label",children:[r,m&&c.jsx(Jp,{text:m})]}),c.jsx("p",{className:"gauge-delta",children:u}),c.jsx("p",{className:"gauge-description",children:f})]})}function Pe({tone:l,children:r}){const u=l==="positive"?"success":l==="caution"?"warning":l==="negative"?"destructive":"neutral";return c.jsx(Jh,{variant:u,children:r})}function Qo({status:l}){return c.jsx(Pe,{tone:Kp(l),children:fi(l)})}function To({state:l}){return c.jsx(Pe,{tone:qS(l),children:fi(l)})}function $p({run:l,onOpen:r}){return c.jsxs("article",{className:"run-row",children:[c.jsxs("div",{className:"run-row-main",children:[c.jsxs("div",{className:"run-row-head",children:[c.jsxs("div",{children:[c.jsx("p",{className:"run-row-title",children:l.summary}),c.jsxs("p",{className:"run-row-subtitle",children:[l.projectName," · ",l.kindLabel]})]}),c.jsx(Qo,{status:l.status})]}),c.jsx("p",{className:"run-row-detail",children:l.statusDetail})]}),c.jsxs("dl",{className:"run-row-meta",children:[c.jsxs("div",{children:[c.jsx("dt",{children:"Started"}),c.jsx("dd",{children:l.startedAt})]}),c.jsxs("div",{children:[c.jsx("dt",{children:"Duration"}),c.jsx("dd",{children:l.duration})]}),c.jsxs("div",{children:[c.jsx("dt",{children:"Trigger"}),c.jsx("dd",{children:l.triggerLabel})]})]}),c.jsx(me,{variant:"outline",size:"sm",type:"button",onClick:()=>r(l.id),children:"View run"})]})}function di({provider:l}){const r={gemini:"border-blue-800/50 bg-blue-950/40 text-blue-300",openai:"border-green-800/50 bg-green-950/40 text-green-300",claude:"border-amber-800/50 bg-amber-950/40 text-amber-300",local:"border-purple-800/50 bg-purple-950/40 text-purple-300"};return c.jsx("span",{className:`inline-flex items-center rounded-full border px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide ${r[l]??"border-zinc-700 bg-zinc-800 text-zinc-300"}`,children:l})}function KS({evidence:l,onOpenEvidence:r}){const[u,o]=y.useState(new Set),f=y.useMemo(()=>{const p=new Map;for(const v of l){const b=p.get(v.keyword)??[];p.set(v.keyword,[...b,v])}return[...p.entries()].map(([v,b])=>({phrase:v,items:b}))},[l]),m=p=>{o(v=>{const b=new Set(v);return b.has(p)?b.delete(p):b.add(p),b})};return c.jsx("div",{className:"evidence-table-wrap",children:c.jsxs("table",{className:"evidence-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{style:{width:"2rem"}}),c.jsx("th",{children:"Key Phrase"}),c.jsx("th",{children:"Status"}),c.jsx("th",{children:"Change"}),c.jsx("th",{children:"Summary"}),c.jsx("th",{children:"Snippet"}),c.jsx("th",{})]})}),c.jsx("tbody",{children:f.map(({phrase:p,items:v})=>{const b=u.has(p),g=v.map(N=>N.citationState),A=g.includes("cited")?"cited":g.includes("emerging")?"emerging":g.includes("lost")?"lost":"not-cited";return c.jsxs(y.Fragment,{children:[c.jsxs("tr",{className:"evidence-phrase-row cursor-pointer hover:bg-zinc-800/40",onClick:()=>m(p),"aria-expanded":b,children:[c.jsx("td",{children:c.jsx(Oo,{size:14,className:`transition-transform duration-150 text-zinc-500 ${b?"rotate-90":""}`})}),c.jsx("td",{className:"evidence-keyword-cell",children:c.jsxs("div",{children:[c.jsx("span",{className:"font-medium text-zinc-100",children:p}),c.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:v.map(N=>c.jsx(di,{provider:N.provider},N.id))})]})}),c.jsx("td",{children:c.jsx(To,{state:A})}),c.jsx("td",{colSpan:4})]}),b&&v.map(N=>c.jsxs("tr",{className:"bg-zinc-900/30",children:[c.jsx("td",{}),c.jsx("td",{className:"evidence-keyword-cell pl-5",children:c.jsx(di,{provider:N.provider})}),c.jsx("td",{children:c.jsx(To,{state:N.citationState})}),c.jsx("td",{className:"evidence-change-cell",children:N.changeLabel}),c.jsx("td",{className:"evidence-summary-cell",children:N.summary}),c.jsx("td",{className:"evidence-snippet-cell",title:N.answerSnippet,children:N.answerSnippet}),c.jsx("td",{children:c.jsx(me,{variant:"ghost",size:"sm",type:"button",onClick:R=>{R.stopPropagation(),r(N.id)},children:"View"})})]},N.id))]},p)})})]})})}function JS({findings:l}){return c.jsx("div",{className:"findings-table-wrap",children:c.jsxs("table",{className:"findings-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Severity"}),c.jsx("th",{children:"Finding"}),c.jsx("th",{children:"Detail"}),c.jsx("th",{children:"Impact"})]})}),c.jsx("tbody",{children:l.map(r=>c.jsxs("tr",{children:[c.jsx("td",{children:c.jsx(Pe,{tone:YS(r.severity),children:fi(r.severity)})}),c.jsx("td",{className:"font-medium text-zinc-100",children:r.title}),c.jsx("td",{className:"text-zinc-400",children:r.detail}),c.jsx("td",{className:"text-zinc-500",children:r.impact})]},r.id))})]})})}function $S(l){return l==="High"?"negative":l==="Moderate"?"caution":"neutral"}function WS({competitors:l}){return l.length===0?c.jsx("p",{className:"text-sm text-zinc-500",children:"No competitors configured. Add competitors to track overlap."}):c.jsx("div",{className:"competitor-table-wrap",children:c.jsxs("table",{className:"competitor-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Domain"}),c.jsx("th",{children:"Pressure"}),c.jsx("th",{children:"Citations"}),c.jsx("th",{children:"Keywords"})]})}),c.jsx("tbody",{children:l.map(r=>c.jsxs("tr",{children:[c.jsx("td",{className:"font-medium text-zinc-100",children:r.domain}),c.jsx("td",{children:c.jsx(Pe,{tone:$S(r.pressureLabel),children:r.pressureLabel})}),c.jsx("td",{className:"text-zinc-300 tabular-nums",children:r.totalKeywords>0?`${r.citationCount} / ${r.totalKeywords}`:"—"}),c.jsx("td",{className:"text-zinc-500 text-xs",children:r.citedKeywords.length>0?r.citedKeywords.join(", "):"Not cited"})]},r.id))})]})})}function FS({project:l,onNavigate:r}){const u=`/projects/${l.project.id}`;return c.jsxs("a",{className:"project-row cursor-pointer",href:u,onClick:Bt(r,u),children:[c.jsxs("div",{className:"project-row-primary",children:[c.jsxs("div",{children:[c.jsx("p",{className:"project-name",children:l.project.name}),c.jsx("p",{className:"project-domain",children:l.project.canonicalDomain})]}),c.jsx("p",{className:"project-insight",children:l.insight})]}),c.jsx("div",{className:"project-row-stat",children:c.jsxs("div",{className:"metric-inline-block",children:[c.jsx("p",{className:"metric-inline-label",children:"Answer Visibility"}),c.jsx("p",{className:"metric-inline-value",children:l.visibilityScore}),c.jsx("p",{className:"metric-inline-delta",children:l.visibilityDelta})]})}),c.jsx("div",{className:"project-row-stat",children:c.jsxs("div",{className:"metric-inline-block",children:[c.jsx("p",{className:"metric-inline-label",children:"Technical Readiness"}),c.jsx("p",{className:"metric-inline-value text-zinc-500",children:l.readinessScore??"—"}),c.jsx("p",{className:"metric-inline-delta",children:l.readinessDelta??"Coming soon"})]})}),c.jsx("div",{className:"project-row-stat",children:c.jsxs("div",{className:"metric-inline-block",children:[c.jsx("p",{className:"metric-inline-label",children:"Competitor Pressure"}),c.jsx("p",{className:"metric-inline-value",children:l.competitorPressureLabel}),c.jsxs("p",{className:"metric-inline-delta",children:[l.lastRun.kindLabel," · ",fi(l.lastRun.status)]})]})}),c.jsx("div",{className:"project-row-chart",children:c.jsx(ZS,{points:l.trend,tone:Kp(l.lastRun.status)})}),c.jsx("span",{className:"project-row-link",children:c.jsx(Oo,{className:"h-4 w-4 text-zinc-500"})})]})}function IS({model:l,systemHealth:r,onNavigate:u,onOpenRun:o}){return c.jsxs("div",{className:"page-container",children:[c.jsxs("div",{className:"page-header",children:[c.jsxs("div",{className:"page-header-left",children:[c.jsx("h1",{className:"page-title",children:"Portfolio"}),c.jsx("p",{className:"page-subtitle",children:"Visibility and execution state across all projects"})]}),c.jsx("div",{className:"page-header-right",children:c.jsx("p",{className:"text-[11px] text-zinc-600",children:l.lastUpdatedAt})})]}),l.projects.length>0?c.jsx("div",{className:"project-list project-list-scrollable",children:l.projects.map(f=>c.jsx(FS,{project:f,onNavigate:u},f.project.id))}):c.jsxs(We,{className:"surface-card empty-card",children:[c.jsx("h3",{children:l.emptyState?.title??"No projects yet"}),c.jsx("p",{children:l.emptyState?.detail}),c.jsx(me,{asChild:!0,children:c.jsx("a",{href:l.emptyState?.ctaHref??"/setup",onClick:Bt(u,l.emptyState?.ctaHref??"/setup"),children:l.emptyState?.ctaLabel??"Launch setup"})})]}),c.jsxs("div",{className:"overview-secondary-grid",children:[l.attentionItems.length>0&&c.jsxs("section",{className:"overview-secondary-section",children:[c.jsx("div",{className:"section-head section-head-inline",children:c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Needs attention"}),c.jsx("h2",{className:"section-title-sm",children:"What changed"})]})}),c.jsx("div",{className:"attention-list attention-list-scrollable",children:l.attentionItems.map(f=>c.jsxs("a",{className:`attention-item attention-item-${f.tone}`,href:f.href,onClick:Bt(u,f.href),children:[c.jsxs("div",{children:[c.jsx("p",{className:"attention-title",children:f.title}),c.jsx("p",{className:"attention-detail",children:f.detail})]}),c.jsx("span",{className:"attention-action",children:f.actionLabel})]},f.id))})]}),c.jsxs("section",{className:"overview-secondary-section",children:[c.jsx("div",{className:"section-head section-head-inline",children:c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Recent runs"}),c.jsx("h2",{className:"section-title-sm",children:"Activity"})]})}),c.jsx("div",{className:"compact-stack compact-stack-scrollable",children:l.recentRuns.length>0?l.recentRuns.map(f=>c.jsxs("button",{className:"compact-run",type:"button",onClick:()=>o(f.id),children:[c.jsxs("div",{children:[c.jsx("p",{className:"compact-run-title",children:f.projectName}),c.jsx("p",{className:"compact-run-detail",children:f.summary})]}),c.jsx(Qo,{status:f.status})]},f.id)):c.jsx("p",{className:"supporting-copy",children:"Run history appears here after the first launch."})})]})]}),c.jsxs("section",{className:"page-section",children:[c.jsx("div",{className:"section-head section-head-inline",children:c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"System health"}),c.jsx("h2",{className:"section-title-sm",children:"Infrastructure"})]})}),c.jsx("div",{className:"health-grid",children:r.map(f=>c.jsxs(We,{className:"surface-card compact-card",children:[c.jsxs("div",{className:"section-head",children:[c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:f.label}),c.jsx("h3",{children:f.detail})]}),c.jsx(Pe,{tone:f.tone,children:f.label})]}),c.jsx("p",{className:"supporting-copy",children:f.meta})]},f.id))})]})]})}function PS({model:l,onOpenEvidence:r,onOpenRun:u,onTriggerRun:o,onDeleteProject:f,onAddKeywords:m,onAddCompetitors:p}){const[v,b]=y.useState(!1),[g,A]=y.useState(!1),[N,R]=y.useState(!1),[Y,K]=y.useState(null),[O,B]=y.useState(!1),[$,ne]=y.useState(""),[H,Q]=y.useState(!1),[ie,ae]=y.useState(!1),[G,q]=y.useState(""),[fe,Le]=y.useState(!1);async function W(){const F=await uS(l.project.name),_=typeof F=="string"?F:JSON.stringify(F,null,2),Z=new Blob([_],{type:"text/yaml"}),se=URL.createObjectURL(Z),ve=document.createElement("a");ve.href=se,ve.download=`${l.project.name}.yaml`,ve.click(),URL.revokeObjectURL(se)}async function pe(){const F=$.split(`
|
|
57
|
+
`).map(_=>_.trim()).filter(Boolean);if(F.length!==0){Q(!0);try{await m(l.project.name,F),ne(""),B(!1)}finally{Q(!1)}}}async function Xe(){const F=G.trim();if(F){Le(!0);try{await p(l.project.name,[F]),q(""),ae(!1)}finally{Le(!1)}}}const Be=F=>!Number.isNaN(Number.parseInt(F,10));return c.jsxs("div",{className:"page-container",children:[v?c.jsxs(We,{className:"surface-card p-6 mb-6 border-rose-800/60",children:[c.jsx("h3",{className:"text-base font-semibold text-rose-400 mb-2",children:"Delete project?"}),c.jsxs("p",{className:"text-sm text-zinc-400 mb-4",children:["This will permanently delete ",c.jsx("strong",{className:"text-zinc-200",children:l.project.displayName||l.project.name})," and all its key phrases, competitors, runs, and snapshots. This cannot be undone."]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(me,{type:"button",variant:"destructive",disabled:g,onClick:async()=>{A(!0),f(l.project.name)},children:g?"Deleting...":"Yes, delete project"}),c.jsx(me,{type:"button",variant:"outline",disabled:g,onClick:()=>b(!1),children:"Cancel"})]})]}):null,c.jsxs("div",{className:"page-header",children:[c.jsxs("div",{className:"page-header-left",children:[c.jsx("h1",{className:"page-title",children:l.project.displayName||l.project.name}),c.jsxs("p",{className:"page-subtitle",children:[l.project.canonicalDomain," · ",l.contextLabel]}),c.jsxs("div",{className:"tag-row",children:[c.jsx("span",{className:"tag",children:l.project.country}),c.jsx("span",{className:"tag",children:l.project.language.toUpperCase()}),l.project.tags.map(F=>c.jsx("span",{className:"tag",children:F},F))]})]}),c.jsxs("div",{className:"page-header-right",children:[c.jsx("p",{className:"text-sm text-zinc-500",children:l.dateRangeLabel}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(me,{type:"button",variant:"outline",size:"icon",onClick:W,"aria-label":"Export project as YAML",children:c.jsx(Hy,{className:"h-4 w-4 text-zinc-400"})}),c.jsx(me,{type:"button",variant:"outline",size:"icon",onClick:()=>b(!0),"aria-label":"Delete project",children:c.jsx(Iy,{className:"h-4 w-4 text-zinc-400"})}),c.jsx(me,{type:"button",disabled:N,onClick:async()=>{R(!0),K(null);try{await o(l.project.name)}catch(F){K(F instanceof Error?F.message:"Failed to trigger run")}finally{R(!1)}},children:N?"Starting...":"Run now"})]})]})]}),Y&&c.jsxs("div",{className:"mb-3 rounded-lg border border-rose-800/40 bg-rose-950/20 px-3 py-2 text-sm text-rose-300",children:[Y,c.jsx("button",{type:"button",className:"ml-2 text-rose-400 hover:text-rose-200",onClick:()=>K(null),children:"×"})]}),c.jsxs("section",{className:"gauge-row",children:[c.jsx(ri,{value:l.visibilitySummary.value,label:l.visibilitySummary.label,delta:l.visibilitySummary.delta,tone:l.visibilitySummary.tone,description:l.visibilitySummary.description,tooltip:l.visibilitySummary.tooltip,isNumeric:Be(l.visibilitySummary.value)}),l.readinessSummary?c.jsx(ri,{value:l.readinessSummary.value,label:l.readinessSummary.label,delta:l.readinessSummary.delta,tone:l.readinessSummary.tone,description:l.readinessSummary.description,tooltip:l.readinessSummary.tooltip,isNumeric:Be(l.readinessSummary.value)}):c.jsx(ri,{value:"N/A",label:"Technical Readiness",delta:"Coming soon",tone:"neutral",description:"Enable with site audits in a future release.",tooltip:"Site audit scores for technical SEO signals. Coming in a future release.",isNumeric:!1}),c.jsx(ri,{value:l.competitorPressure.value,label:l.competitorPressure.label,delta:l.competitorPressure.delta,tone:l.competitorPressure.tone,description:l.competitorPressure.description,tooltip:l.competitorPressure.tooltip,isNumeric:Be(l.competitorPressure.value)}),c.jsx(ri,{value:l.runStatus.value,label:l.runStatus.label,delta:l.runStatus.delta,tone:l.runStatus.tone,description:l.runStatus.description,tooltip:l.runStatus.tooltip,isNumeric:Be(l.runStatus.value)})]}),l.providerScores.length>1&&c.jsxs("section",{className:"page-section-divider",children:[c.jsx("div",{className:"section-head section-head-inline",children:c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Provider breakdown"}),c.jsxs("h2",{children:["Visibility by provider ",c.jsx(Jp,{text:"Per-provider citation rate. Shows how often each AI engine cites your domain across all tracked key phrases. Useful for identifying which engines favor your content."})]})]})}),c.jsx("div",{className:"grid grid-cols-3 gap-3",children:l.providerScores.map(F=>c.jsxs(We,{className:"surface-card compact-card",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(di,{provider:F.provider}),c.jsxs("span",{className:`text-lg font-semibold ${F.score>=70?"text-emerald-400":F.score>=40?"text-amber-400":"text-rose-400"}`,children:[F.score,"%"]})]}),c.jsxs("p",{className:"mt-1 text-xs text-zinc-500",children:[F.cited," of ",F.total," key phrases cited"]})]},F.provider))})]}),c.jsxs("section",{className:"page-section-divider",children:[c.jsx("div",{className:"section-head section-head-inline",children:c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"What changed"}),c.jsx("h2",{children:"Citation signals"})]})}),c.jsx("div",{className:"insight-grid",children:l.insights.map(F=>c.jsxs(We,{className:`surface-card insight-card insight-card-${F.tone}`,children:[c.jsx(Pe,{tone:F.tone,children:F.actionLabel}),c.jsx("h3",{children:F.title}),c.jsx("p",{children:F.detail}),F.evidenceId?c.jsx(me,{variant:"outline",size:"sm",type:"button",onClick:()=>r(F.evidenceId),children:"Open evidence"}):c.jsx("span",{className:"supporting-copy",children:"Monitor in the next run."})]},F.id))})]}),c.jsxs("section",{className:"page-section-divider",children:[c.jsxs("div",{className:"section-head section-head-inline",children:[c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Visibility evidence"}),c.jsx("h2",{children:"Key phrase citation tracking"})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("p",{className:"supporting-copy",children:[new Set(l.visibilityEvidence.map(F=>F.keyword)).size," key phrases tracked"]}),c.jsx(me,{type:"button",variant:"outline",size:"sm",onClick:()=>B(!O),children:O?"Cancel":"+ Add key phrases"})]})]}),O&&c.jsxs("div",{className:"mb-3 rounded-lg border border-zinc-800 bg-zinc-900/40 p-3",children:[c.jsx("textarea",{className:"w-full resize-none rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",rows:3,placeholder:"Enter key phrases, one per line",value:$,onChange:F=>ne(F.target.value)}),c.jsxs("div",{className:"mt-2 flex items-center justify-between",children:[c.jsxs("p",{className:"text-xs text-zinc-500",children:[$.split(`
|
|
58
|
+
`).filter(F=>F.trim()).length," key phrases"]}),c.jsx(me,{type:"button",size:"sm",disabled:!$.trim()||H,onClick:pe,children:H?"Adding...":"Add key phrases"})]})]}),c.jsx(KS,{evidence:l.visibilityEvidence,onOpenEvidence:r})]}),l.technicalFindings&&l.technicalFindings.length>0?c.jsxs("section",{className:"page-section-divider",children:[c.jsxs("div",{className:"section-head section-head-inline",children:[c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Technical findings"}),c.jsx("h2",{children:"Readiness signals"})]}),c.jsxs("p",{className:"supporting-copy",children:[l.technicalFindings.length," findings"]})]}),c.jsx(JS,{findings:l.technicalFindings})]}):c.jsx("section",{className:"page-section-divider",children:c.jsxs(We,{className:"surface-card compact-card",children:[c.jsxs("div",{className:"section-head",children:[c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Technical findings"}),c.jsx("h2",{className:"text-zinc-500",children:"Unavailable"})]}),c.jsx(Pe,{tone:"neutral",children:"Coming soon"})]}),c.jsx("p",{className:"supporting-copy",children:"Technical readiness findings require site audits, which are planned for a future release."})]})}),c.jsxs("section",{className:"page-section-divider",children:[c.jsxs("div",{className:"section-head section-head-inline",children:[c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Competitors"}),c.jsx("h2",{children:"Competitive landscape"})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("p",{className:"supporting-copy",children:[l.competitors.length," tracked"]}),c.jsx(me,{type:"button",variant:"outline",size:"sm",onClick:()=>ae(!ie),children:ie?"Cancel":"+ Add competitor"})]})]}),ie&&c.jsxs("div",{className:"mb-3 flex gap-2 rounded-lg border border-zinc-800 bg-zinc-900/40 p-3",children:[c.jsx("input",{className:"flex-1 rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",type:"text",placeholder:"competitor.com",value:G,onChange:F=>q(F.target.value),onKeyDown:F=>F.key==="Enter"&&Xe()}),c.jsx(me,{type:"button",size:"sm",disabled:!G.trim()||fe,onClick:Xe,children:fe?"Adding...":"Add"})]}),c.jsx(WS,{competitors:l.competitors})]}),c.jsxs("section",{className:"page-section-divider",children:[c.jsx("div",{className:"section-head section-head-inline",children:c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Run timeline"}),c.jsx("h2",{children:"Recent execution history"})]})}),c.jsx("div",{className:"run-list",children:l.recentRuns.map(F=>c.jsx($p,{run:F,onOpen:u},F.id))})]}),c.jsx(lj,{projectName:l.project.name}),c.jsx(sj,{projectName:l.project.name})]})}const ej=[{value:"daily",label:"Every day"},{value:"weekly@mon",label:"Every Monday"},{value:"weekly@wed",label:"Every Wednesday"},{value:"weekly@fri",label:"Every Friday"},{value:"twice-daily",label:"Twice a day (6am & 6pm)"},{value:"custom",label:"Custom cron expression"}],Ch=["UTC","America/New_York","America/Chicago","America/Denver","America/Los_Angeles","America/Toronto","America/Vancouver","Europe/London","Europe/Paris","Europe/Berlin","Asia/Tokyo","Asia/Shanghai","Asia/Singapore","Australia/Sydney"];function _o(l){return l===0?"12:00 AM":l<12?`${l}:00 AM`:l===12?"12:00 PM":`${l-12}:00 PM`}function tj(l,r){return l==="twice-daily"?"twice-daily":l.startsWith("weekly@")?`${l}@${r}`:`daily@${r}`}function nj(l,r){if(!l)return{freq:"custom",hour:6,customCron:r};if(l==="twice-daily")return{freq:"twice-daily",hour:6,customCron:""};const u=l.match(/^daily(?:@(\d+))?$/);if(u)return{freq:"daily",hour:u[1]?parseInt(u[1]):6,customCron:""};const o=l.match(/^(weekly@(?:mon|tue|wed|thu|fri|sat|sun))(?:@(\d+))?$/);return o?{freq:o[1],hour:o[2]?parseInt(o[2]):6,customCron:""}:{freq:"custom",hour:6,customCron:r}}function aj(l,r,u){const o=u==="UTC"?"UTC":u.split("/").pop()?.replace(/_/g," ")??u;if(!l)return`Custom: ${r} · ${o}`;if(l==="twice-daily")return`Twice a day (6am & 6pm) · ${o}`;const f=l.match(/^daily(?:@(\d+))?$/);if(f){const p=f[1]?parseInt(f[1]):6;return`Every day at ${_o(p)} · ${o}`}const m=l.match(/^weekly@(mon|tue|wed|thu|fri|sat|sun)(?:@(\d+))?$/);if(m){const p={mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday",sun:"Sunday"},v=m[2]?parseInt(m[2]):6;return`Every ${p[m[1]]} at ${_o(v)} · ${o}`}return`${l} · ${o}`}function lj({projectName:l}){const[r,u]=y.useState("loading"),[o,f]=y.useState(!1),[m,p]=y.useState("daily"),[v,b]=y.useState(6),[g,A]=y.useState(""),[N,R]=y.useState("UTC"),[Y,K]=y.useState(!1),[O,B]=y.useState(""),[$,ne]=y.useState(!1),[H,Q]=y.useState(!1),[ie,ae]=y.useState(null);y.useEffect(()=>{mS(l).then(u).catch(()=>u(null))},[l]);const G=()=>{if(r&&r!=="loading"){const W=nj(r.preset??null,r.cronExpr);p(W.freq),b(W.hour),A(W.customCron);const pe=Ch.includes(r.timezone);R(pe?r.timezone:"Other"),K(!pe),B(pe?"":r.timezone)}else p("daily"),b(6),A(""),R("UTC"),K(!1),B("");ae(null),f(!0)},q=async()=>{ne(!0),ae(null);try{const pe={timezone:Y?O.trim()||"UTC":N};m==="custom"?pe.cron=g.trim():pe.preset=tj(m,v);const Xe=await jh(l,pe);u(Xe),f(!1)}catch(W){ae(W instanceof Error?W.message:"Failed to save schedule")}finally{ne(!1)}},fe=async()=>{if(!(!r||r==="loading")){ne(!0),ae(null);try{const W={timezone:r.timezone,enabled:!r.enabled};r.preset?W.preset=r.preset:W.cron=r.cronExpr,u(await jh(l,W))}catch(W){ae(W instanceof Error?W.message:"Failed to update schedule")}finally{ne(!1)}}},Le=async()=>{Q(!0),ae(null);try{await hS(l),u(null),f(!1)}catch(W){ae(W instanceof Error?W.message:"Failed to remove schedule")}finally{Q(!1)}};return c.jsxs("section",{className:"page-section-divider",children:[c.jsxs("div",{className:"section-head section-head-inline",children:[c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Automation"}),c.jsx("h2",{children:"Scheduled runs"})]}),r!=="loading"&&!o&&c.jsx(me,{type:"button",variant:"outline",size:"sm",onClick:G,children:r?"Edit schedule":"+ Set schedule"})]}),r==="loading"&&c.jsx("p",{className:"supporting-copy",children:"Loading..."}),r!=="loading"&&!o&&r===null&&c.jsx(We,{className:"surface-card compact-card",children:c.jsx("p",{className:"supporting-copy",children:"No schedule configured. Set one to automatically trigger visibility sweeps."})}),r!=="loading"&&!o&&r!==null&&c.jsxs(We,{className:"surface-card compact-card",children:[c.jsxs("div",{className:"flex items-start justify-between gap-4",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsx("p",{className:"text-sm font-medium text-zinc-200",children:aj(r.preset??null,r.cronExpr,r.timezone)}),c.jsxs("p",{className:"text-xs text-zinc-500",children:["Cron: ",c.jsx("span",{className:"font-mono",children:r.cronExpr})]}),r.nextRunAt&&c.jsxs("p",{className:"text-xs text-zinc-500",children:["Next run: ",new Date(r.nextRunAt).toLocaleString()]}),r.lastRunAt&&c.jsxs("p",{className:"text-xs text-zinc-500",children:["Last run: ",new Date(r.lastRunAt).toLocaleString()]})]}),c.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[c.jsx(Pe,{tone:r.enabled?"positive":"neutral",children:r.enabled?"Active":"Paused"}),c.jsx(me,{type:"button",variant:"outline",size:"sm",disabled:$,onClick:fe,children:r.enabled?"Pause":"Resume"}),c.jsx(me,{type:"button",variant:"ghost",size:"sm",disabled:H,onClick:Le,children:H?"Removing...":"Remove"})]})]}),ie&&c.jsx("p",{className:"text-rose-400 text-sm mt-2",children:ie})]}),o&&c.jsxs("div",{className:"rounded-lg border border-zinc-800 bg-zinc-900/40 p-4 space-y-3",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Frequency"}),c.jsx("select",{className:"w-full rounded border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-200 focus:border-zinc-500 focus:outline-none",value:m,onChange:W=>p(W.target.value),children:ej.map(W=>c.jsx("option",{value:W.value,children:W.label},W.value))})]}),c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Time"}),c.jsx("select",{className:"w-full rounded border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-200 focus:border-zinc-500 focus:outline-none disabled:opacity-40",value:v,disabled:m==="twice-daily"||m==="custom",onChange:W=>b(parseInt(W.target.value)),children:Array.from({length:24},(W,pe)=>c.jsx("option",{value:pe,children:_o(pe)},pe))})]})]}),m==="custom"&&c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Cron expression"}),c.jsx("input",{className:"w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 font-mono focus:border-zinc-500 focus:outline-none",type:"text",placeholder:"0 9 * * 1-5",value:g,onChange:W=>A(W.target.value)})]}),c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Timezone"}),c.jsxs("select",{className:"w-full rounded border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-200 focus:border-zinc-500 focus:outline-none",value:Y?"Other":N,onChange:W=>{W.target.value==="Other"?(K(!0),R("Other")):(K(!1),R(W.target.value))},children:[Ch.map(W=>c.jsx("option",{value:W,children:W},W)),c.jsx("option",{value:"Other",children:"Other (enter manually)…"})]}),Y&&c.jsx("input",{className:"w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",type:"text",placeholder:"e.g. America/New_York",value:O,onChange:W=>B(W.target.value)})]}),ie&&c.jsx("p",{className:"text-rose-400 text-sm",children:ie}),c.jsxs("div",{className:"flex gap-2 justify-end",children:[c.jsx(me,{type:"button",variant:"outline",size:"sm",onClick:()=>{f(!1),ae(null)},children:"Cancel"}),c.jsx(me,{type:"button",size:"sm",disabled:$||m==="custom"&&!g.trim(),onClick:q,children:$?"Saving...":"Save schedule"})]})]})]})}const ij=[{value:"citation.lost",label:"Citation lost"},{value:"citation.gained",label:"Citation gained"},{value:"run.completed",label:"Run completed"},{value:"run.failed",label:"Run failed"}];function sj({projectName:l}){const[r,u]=y.useState("loading"),[o,f]=y.useState(!1),[m,p]=y.useState(""),[v,b]=y.useState(["citation.lost","citation.gained"]),[g,A]=y.useState(!1),[N,R]=y.useState(null),[Y,K]=y.useState({});y.useEffect(()=>{pS(l).then(u).catch(()=>u([]))},[l]);const O=H=>{b(Q=>Q.includes(H)?Q.filter(ie=>ie!==H):[...Q,H])},B=async()=>{if(!(!m.trim()||v.length===0)){A(!0),R(null);try{const H=await gS(l,{channel:"webhook",url:m.trim(),events:v});u(Q=>Q==="loading"?[H]:[...Q,H]),p(""),b(["citation.lost","citation.gained"]),f(!1)}catch(H){R(H instanceof Error?H.message:"Failed to add webhook")}finally{A(!1)}}},$=async H=>{try{await vS(l,H),u(Q=>Q==="loading"?Q:Q.filter(ie=>ie.id!==H))}catch(Q){R(Q instanceof Error?Q.message:"Failed to remove webhook")}},ne=async H=>{K(Q=>({...Q,[H]:{state:"testing"}}));try{const Q=await yS(l,H);K(ie=>({...ie,[H]:{state:Q.ok?"ok":"fail",status:Q.status}}))}catch{K(Q=>({...Q,[H]:{state:"fail"}}))}};return c.jsxs("section",{className:"page-section-divider",children:[c.jsxs("div",{className:"section-head section-head-inline",children:[c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Automation"}),c.jsx("h2",{children:"Notifications"})]}),r!=="loading"&&c.jsx(me,{type:"button",variant:"outline",size:"sm",onClick:()=>{f(!o),R(null)},children:o?"Cancel":"+ Add webhook"})]}),o&&c.jsxs("div",{className:"mb-3 rounded-lg border border-zinc-800 bg-zinc-900/40 p-4 space-y-3",children:[c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Webhook URL"}),c.jsx("input",{className:"w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",type:"url",placeholder:"https://hooks.example.com/canonry",value:m,onChange:H=>p(H.target.value)})]}),c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Trigger on"}),c.jsx("div",{className:"flex flex-wrap gap-3",children:ij.map(H=>c.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer select-none",children:[c.jsx("input",{type:"checkbox",className:"rounded border-zinc-600 bg-zinc-800",checked:v.includes(H.value),onChange:()=>O(H.value)}),c.jsx("span",{className:"text-sm text-zinc-300",children:H.label})]},H.value))})]}),N&&c.jsx("p",{className:"text-rose-400 text-sm",children:N}),c.jsxs("div",{className:"flex gap-2 justify-end",children:[c.jsx(me,{type:"button",variant:"outline",size:"sm",onClick:()=>{f(!1),R(null)},children:"Cancel"}),c.jsx(me,{type:"button",size:"sm",disabled:g||!m.trim()||v.length===0,onClick:B,children:g?"Adding...":"Add webhook"})]})]}),r==="loading"&&c.jsx("p",{className:"supporting-copy",children:"Loading..."}),r!=="loading"&&r.length===0&&!o&&c.jsx(We,{className:"surface-card compact-card",children:c.jsx("p",{className:"supporting-copy",children:"No webhooks configured. Add one to get alerted when citations change or runs complete."})}),r!=="loading"&&r.length>0&&c.jsxs("div",{className:"evidence-table-wrap",children:[c.jsxs("table",{className:"evidence-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"URL"}),c.jsx("th",{children:"Events"}),c.jsx("th",{children:"Status"}),c.jsx("th",{})]})}),c.jsx("tbody",{children:r.map(H=>c.jsxs("tr",{children:[c.jsx("td",{className:"evidence-keyword-cell",children:c.jsx("span",{className:"font-mono text-xs text-zinc-300 break-all",children:H.url})}),c.jsx("td",{children:c.jsx("div",{className:"flex flex-wrap gap-1",children:H.events.map(Q=>c.jsx("span",{className:"inline-flex items-center rounded-full border border-zinc-700 bg-zinc-800/60 px-2 py-0.5 text-[10px] font-medium text-zinc-400 uppercase tracking-wide",children:Q.replace("."," ")},Q))})}),c.jsx("td",{children:c.jsx(Pe,{tone:H.enabled?"positive":"neutral",children:H.enabled?"Active":"Paused"})}),c.jsx("td",{children:c.jsxs("div",{className:"flex items-center gap-1 justify-end",children:[Y[H.id]&&(()=>{const Q=Y[H.id],ie=Q.state==="testing"?"Sending…":Q.state==="ok"?`Delivered${Q.status?` (${Q.status})`:""}`:`Failed${Q.status?` (${Q.status})`:""}`;return c.jsx(Pe,{tone:Q.state==="ok"?"positive":Q.state==="fail"?"negative":"neutral",children:ie})})(),c.jsx(me,{variant:"ghost",size:"sm",type:"button",disabled:Y[H.id]?.state==="testing",onClick:()=>ne(H.id),children:"Test"}),c.jsx(me,{variant:"ghost",size:"sm",type:"button",onClick:()=>$(H.id),children:"Remove"})]})})]},H.id))})]}),N&&c.jsx("p",{className:"text-rose-400 text-sm mt-2",children:N})]})]})}function cj({runs:l,onOpenRun:r}){const[u,o]=y.useState("all"),f=u==="all"?l:l.filter(m=>m.status===u);return c.jsxs("div",{className:"page-container",children:[c.jsx("div",{className:"page-header",children:c.jsxs("div",{className:"page-header-left",children:[c.jsx("h1",{className:"page-title",children:"Runs"}),c.jsx("p",{className:"page-subtitle",children:"Status, type, project, duration, and the shortest explanation that makes the outcome trustworthy."})]})}),c.jsxs("section",{children:[c.jsx("div",{className:"filter-row",role:"toolbar","aria-label":"Run filters",children:["all","queued","running","completed","partial","failed"].map(m=>c.jsx("button",{className:`filter-chip ${u===m?"filter-chip-active":""}`,type:"button","aria-pressed":u===m,onClick:()=>o(m),children:m==="all"?"All runs":fi(m)},m))}),c.jsx("div",{className:"run-list",children:f.length>0?f.map(m=>c.jsx($p,{run:m,onOpen:r},m.id)):c.jsxs(We,{className:"surface-card empty-card",children:[c.jsx("h2",{children:"No runs match this filter"}),c.jsx("p",{children:"Try another status filter or queue a new run from a project command center."})]})})]})]})}const rj={openai:"https://platform.openai.com/api-keys",claude:"https://platform.claude.com/settings/keys"},oj={gemini:"e.g. gemini-2.5-flash",openai:"e.g. gpt-4o",claude:"e.g. claude-sonnet-4-6",local:"e.g. llama3, mistral"};function uj({providerName:l,onSaved:r}){const u=l.toLowerCase()==="local",[o,f]=y.useState(""),[m,p]=y.useState(""),[v,b]=y.useState(""),[g,A]=y.useState(!1),[N,R]=y.useState(null),[Y,K]=y.useState(!1),O=u?m.trim().length>0:o.trim().length>0;async function B(){if(O){A(!0),R(null),K(!1);try{await fS(l.toLowerCase(),{...o.trim()?{apiKey:o.trim()}:{},...m.trim()?{baseUrl:m.trim()}:{},...v.trim()?{model:v.trim()}:{}}),f(""),p(""),b(""),K(!0),r()}catch(H){R(H instanceof Error?H.message:"Failed to update provider")}finally{A(!1)}}}const $=rj[l.toLowerCase()],ne=oj[l.toLowerCase()]??"Use default model";return c.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-800 bg-zinc-900/40 p-3 space-y-2",children:[u&&c.jsxs("div",{children:[c.jsx("label",{className:"text-xs text-zinc-500",htmlFor:`base-url-${l}`,children:"Base URL"}),c.jsx("input",{id:`base-url-${l}`,type:"text",className:"mt-0.5 w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",placeholder:"http://localhost:11434/v1",value:m,onChange:H=>p(H.target.value)}),c.jsx("p",{className:"mt-0.5 text-[10px] text-zinc-600",children:"Any OpenAI-compatible endpoint — Ollama, LM Studio, llama.cpp, vLLM"})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("label",{className:"text-xs text-zinc-500",htmlFor:`api-key-${l}`,children:["API Key",u?" (optional)":""]}),$&&c.jsx("a",{href:$,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] text-zinc-500 hover:text-zinc-300 underline underline-offset-2",children:"Get API key ↗"})]}),c.jsx("input",{id:`api-key-${l}`,type:"password",className:"mt-0.5 w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",placeholder:u?"Optional — most local servers don't need one":`Enter ${l} API key`,value:o,onChange:H=>f(H.target.value)})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs text-zinc-500",htmlFor:`model-${l}`,children:"Model (optional)"}),c.jsx("input",{id:`model-${l}`,type:"text",className:"mt-0.5 w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",placeholder:ne,value:v,onChange:H=>b(H.target.value)})]}),N&&c.jsx("p",{className:"text-xs text-rose-400",children:N}),Y&&c.jsx("p",{className:"text-xs text-emerald-400",children:"Provider updated."}),c.jsx(me,{type:"button",size:"sm",disabled:!O||g,onClick:B,children:g?"Saving...":"Save"})]})}function dj({settings:l,healthSnapshot:r,onSettingsChanged:u}){const[o,f]=y.useState(null);return c.jsxs("div",{className:"page-container",children:[c.jsx("div",{className:"page-header",children:c.jsxs("div",{className:"page-header-left",children:[c.jsx("h1",{className:"page-title",children:"Settings"}),c.jsx("p",{className:"page-subtitle",children:"Provider state, quotas, and service health."})]})}),c.jsxs("section",{className:"settings-grid",children:[l.providerStatuses.map(m=>c.jsxs(We,{className:"surface-card",children:[c.jsxs("div",{className:"section-head",children:[c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Provider"}),c.jsx("h2",{children:m.name})]}),c.jsx(Pe,{tone:m.state==="ready"?"positive":"caution",children:m.state==="ready"?"Ready":"Needs config"})]}),c.jsxs("dl",{className:"definition-list mt-3",children:[c.jsxs("div",{children:[c.jsx("dt",{children:"Model"}),c.jsx("dd",{className:"font-mono text-xs",children:m.model})]}),m.quota&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{children:[c.jsx("dt",{children:"Concurrency"}),c.jsx("dd",{children:m.quota.maxConcurrency})]}),c.jsxs("div",{children:[c.jsx("dt",{children:"Rate limit"}),c.jsxs("dd",{children:[m.quota.maxRequestsPerMinute,"/min · ",m.quota.maxRequestsPerDay,"/day"]})]})]})]}),c.jsx("p",{className:"mt-2 text-sm text-zinc-500",children:m.detail}),c.jsx("div",{className:"mt-2",children:c.jsx(me,{type:"button",variant:"outline",size:"sm",onClick:()=>f(o===m.name?null:m.name),children:o===m.name?"Cancel":m.state==="ready"?m.name.toLowerCase()==="local"?"Update config":"Update key":"Configure"})}),o===m.name&&c.jsx(uj,{providerName:m.name,onSaved:()=>{f(null),u?.()}})]},m.name)),c.jsxs(We,{className:"surface-card",children:[c.jsx("div",{className:"section-head",children:c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Service health"}),c.jsx("h2",{children:"API and worker"})]})}),c.jsxs("div",{className:"compact-stack",children:[c.jsxs("div",{className:"health-row",children:[c.jsxs("div",{children:[c.jsx("p",{className:"run-row-title",children:"API"}),c.jsx("p",{className:"supporting-copy",children:r.apiStatus.detail})]}),c.jsx(Pe,{tone:Zs(r.apiStatus),children:r.apiStatus.state==="ok"?"Healthy":"Attention"})]}),c.jsxs("div",{className:"health-row",children:[c.jsxs("div",{children:[c.jsx("p",{className:"run-row-title",children:"Worker"}),c.jsx("p",{className:"supporting-copy",children:r.workerStatus.detail})]}),c.jsx(Pe,{tone:Zs(r.workerStatus),children:r.workerStatus.state==="ok"?"Healthy":"Attention"})]})]})]})]}),c.jsx("section",{className:"page-section",children:c.jsxs(We,{className:"surface-card",children:[c.jsx("div",{className:"section-head",children:c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Self-host notes"}),c.jsx("h2",{children:"Operational guidance"})]})}),c.jsx("ul",{className:"detail-list",children:l.selfHostNotes.map(m=>c.jsx("li",{children:m},m))}),c.jsx("p",{className:"supporting-copy",children:l.bootstrapNote})]})})]})}const fj=[{label:"System check",description:"Verify your instance is ready"},{label:"Create project",description:"Name, domain, and locale"},{label:"Key phrases",description:"Add key phrases to track"},{label:"Competitors",description:"Add competitor domains"},{label:"Launch",description:"Start your first visibility sweep"}];function mj({current:l,labels:r}){return c.jsx("div",{className:"setup-steps",role:"list","aria-label":"Setup progress",children:r.map((u,o)=>{const f=o<l,m=o===l;return c.jsxs("div",{className:`setup-step ${f?"setup-step-done":""} ${m?"setup-step-active":""}`,role:"listitem","aria-current":m?"step":void 0,children:[c.jsx("span",{className:"setup-step-number",children:f?"✓":o+1}),c.jsx("span",{className:"setup-step-label",children:u.label})]},u.label)})})}function hj({model:l,onProjectCreated:r,onNavigate:u}){const[o,f]=y.useState(0),[m,p]=y.useState(""),[v,b]=y.useState(""),[g,A]=y.useState(""),[N,R]=y.useState("US"),[Y,K]=y.useState("en"),[O,B]=y.useState(null),[$,ne]=y.useState(null),[H,Q]=y.useState(null),[ie,ae]=y.useState(!1),[G,q]=y.useState(""),[fe,Le]=y.useState(!1),[W,pe]=y.useState(null),[Xe,Be]=y.useState(!1),[F,_]=y.useState(""),[Z,se]=y.useState(!1),[ve,V]=y.useState(null),[S,k]=y.useState(!1),[J,z]=y.useState(!1),[X,I]=y.useState(null),[de,Me]=y.useState(!1),ue=m.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),nt=G.split(`
|
|
59
|
+
`).map(re=>re.trim()).filter(Boolean),ot=F.split(`
|
|
60
|
+
`).map(re=>re.trim()).filter(Boolean),Xt=l.healthChecks.every(re=>re.state==="ready"),Sn=async()=>{if(!(!ue||!g)){ae(!0),Q(null);try{const re=await sS(ue,{displayName:v||m,canonicalDomain:g,country:N,language:Y});B(ue),ne(re.id),r(),f(2)}catch(re){Q(re instanceof Error?re.message:"Failed to create project")}finally{ae(!1)}}},dt=async()=>{if(!O)return;const re=nt;if(re.length!==0){Be(!0),pe(null);try{await cS(O,re),Le(!0),r(),f(3)}catch(Pt){pe(Pt instanceof Error?Pt.message:"Failed to save key phrases")}finally{Be(!1)}}},dl=async()=>{if(!O)return;const re=ot;if(re.length!==0){k(!0),V(null);try{await qp(O,re),se(!0),r(),f(4)}catch(Pt){V(Pt instanceof Error?Pt.message:"Failed to save competitors")}finally{k(!1)}}},fl=async()=>{if(O){Me(!0),I(null);try{await Yp(O),z(!0),r()}catch(re){I(re instanceof Error?re.message:"Failed to trigger run")}finally{Me(!1)}}},It=()=>f(re=>Math.max(0,re-1)),mi=(()=>{switch(o){case 0:return c.jsxs(We,{className:"surface-card step-card",children:[c.jsx("div",{className:"section-head",children:c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 1 of 5"}),c.jsx("h2",{children:"System ready"})]})}),c.jsx("p",{className:"supporting-copy",children:"Checking that your Canonry instance is configured and reachable."}),c.jsx("div",{className:"compact-stack",children:l.healthChecks.map(re=>c.jsxs("div",{className:"health-check-row",children:[c.jsxs("div",{children:[c.jsx("p",{className:"run-row-title",children:re.label}),c.jsx("p",{className:"supporting-copy",children:re.detail})]}),c.jsx(Pe,{tone:re.state==="ready"?"positive":"caution",children:re.state==="ready"?"Ready":"Attention"})]},re.id))}),c.jsxs("div",{className:"setup-nav",children:[c.jsx("span",{}),c.jsx(me,{type:"button",disabled:!Xt,onClick:()=>f(1),children:"Continue"})]})]});case 1:return c.jsxs(We,{className:"surface-card step-card",children:[c.jsxs("div",{className:"section-head",children:[c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 2 of 5"}),c.jsx("h2",{children:"Create project"})]}),O?c.jsx(Pe,{tone:"positive",children:"Created"}):null]}),O?c.jsxs("div",{className:"compact-stack",children:[c.jsxs("p",{className:"text-zinc-300",children:["Project ",c.jsx("span",{className:"text-zinc-100 font-medium",children:O})," created successfully."]}),c.jsxs("div",{className:"setup-nav",children:[c.jsx(me,{type:"button",variant:"outline",onClick:It,children:"Back"}),c.jsx(me,{type:"button",onClick:()=>f(2),children:"Continue"})]})]}):c.jsxs("div",{className:"compact-stack",children:[c.jsxs("div",{className:"setup-field",children:[c.jsx("label",{className:"setup-label",htmlFor:"project-name",children:"Project name"}),c.jsx("input",{id:"project-name",className:"setup-input",type:"text",placeholder:"my-website",value:m,onChange:re=>p(re.target.value)}),ue&&ue!==m?c.jsxs("p",{className:"supporting-copy",children:["Slug: ",ue]}):null]}),c.jsxs("div",{className:"setup-field",children:[c.jsx("label",{className:"setup-label",htmlFor:"display-name",children:"Display name (optional)"}),c.jsx("input",{id:"display-name",className:"setup-input",type:"text",placeholder:"My Website",value:v,onChange:re=>b(re.target.value)})]}),c.jsxs("div",{className:"setup-field",children:[c.jsx("label",{className:"setup-label",htmlFor:"domain",children:"Canonical domain"}),c.jsx("input",{id:"domain",className:"setup-input",type:"text",placeholder:"example.com",value:g,onChange:re=>A(re.target.value)})]}),c.jsxs("div",{className:"setup-field-row",children:[c.jsxs("div",{className:"setup-field",children:[c.jsx("label",{className:"setup-label",htmlFor:"country",children:"Country"}),c.jsx("input",{id:"country",className:"setup-input",type:"text",placeholder:"US",maxLength:2,value:N,onChange:re=>R(re.target.value.toUpperCase())})]}),c.jsxs("div",{className:"setup-field",children:[c.jsx("label",{className:"setup-label",htmlFor:"language",children:"Language"}),c.jsx("input",{id:"language",className:"setup-input",type:"text",placeholder:"en",maxLength:5,value:Y,onChange:re=>K(re.target.value.toLowerCase())})]})]}),H?c.jsx("p",{className:"text-rose-400 text-sm",children:H}):null,c.jsxs("div",{className:"setup-nav",children:[c.jsx(me,{type:"button",variant:"outline",onClick:It,children:"Back"}),c.jsx(me,{type:"button",disabled:!ue||!g||ie,onClick:Sn,children:ie?"Creating...":"Create project"})]})]})]});case 2:return c.jsxs(We,{className:"surface-card step-card",children:[c.jsxs("div",{className:"section-head",children:[c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 3 of 5"}),c.jsx("h2",{children:"Add key phrases"})]}),fe?c.jsxs(Pe,{tone:"positive",children:[nt.length," saved"]}):c.jsxs(Pe,{tone:"neutral",children:[nt.length," key phrase",nt.length!==1?"s":""]})]}),c.jsx("p",{className:"supporting-copy",children:"Enter the search queries you want to track. One per line."}),fe?c.jsxs("div",{className:"compact-stack",children:[c.jsx("ul",{className:"detail-list",children:nt.map(re=>c.jsx("li",{children:re},re))}),c.jsxs("div",{className:"setup-nav",children:[c.jsx(me,{type:"button",variant:"outline",onClick:It,children:"Back"}),c.jsx(me,{type:"button",onClick:()=>f(3),children:"Continue"})]})]}):c.jsxs("div",{className:"compact-stack",children:[c.jsxs("div",{className:"setup-field",children:[c.jsx("label",{className:"setup-label",htmlFor:"keywords",children:"Key phrases (one per line)"}),c.jsx("textarea",{id:"keywords",className:"setup-textarea",rows:6,placeholder:`emergency dentist brooklyn
|
|
61
|
+
best invisalign downtown brooklyn
|
|
62
|
+
pediatric dentist brooklyn heights`,value:G,onChange:re=>q(re.target.value)})]}),W?c.jsx("p",{className:"text-rose-400 text-sm",children:W}):null,c.jsxs("div",{className:"setup-nav",children:[c.jsx(me,{type:"button",variant:"outline",onClick:It,children:"Back"}),c.jsx(me,{type:"button",disabled:nt.length===0||Xe,onClick:dt,children:Xe?"Saving...":`Save ${nt.length} key phrase${nt.length!==1?"s":""}`})]})]})]});case 3:return c.jsxs(We,{className:"surface-card step-card",children:[c.jsxs("div",{className:"section-head",children:[c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 4 of 5"}),c.jsx("h2",{children:"Add competitors"})]}),Z?c.jsx(Pe,{tone:"positive",children:"Saved"}):null]}),c.jsx("p",{className:"supporting-copy",children:"Domains that compete for the same key phrases. One per line."}),Z?c.jsxs("div",{className:"compact-stack",children:[c.jsx("ul",{className:"detail-list",children:ot.map(re=>c.jsx("li",{children:re},re))}),c.jsxs("div",{className:"setup-nav",children:[c.jsx(me,{type:"button",variant:"outline",onClick:It,children:"Back"}),c.jsx(me,{type:"button",onClick:()=>f(4),children:"Continue"})]})]}):c.jsxs("div",{className:"compact-stack",children:[c.jsxs("div",{className:"setup-field",children:[c.jsx("label",{className:"setup-label",htmlFor:"competitors",children:"Competitor domains (one per line)"}),c.jsx("textarea",{id:"competitors",className:"setup-textarea",rows:4,placeholder:`competitor1.com
|
|
63
|
+
competitor2.com`,value:F,onChange:re=>_(re.target.value)})]}),ve?c.jsx("p",{className:"text-rose-400 text-sm",children:ve}):null,c.jsxs("div",{className:"setup-nav",children:[c.jsx(me,{type:"button",variant:"outline",onClick:It,children:"Back"}),c.jsx(me,{type:"button",disabled:ot.length===0||S,onClick:dl,children:S?"Saving...":`Save ${ot.length} competitor${ot.length!==1?"s":""}`})]})]})]});case 4:return c.jsxs(We,{className:"surface-card step-card",children:[c.jsxs("div",{className:"section-head",children:[c.jsxs("div",{children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 5 of 5"}),c.jsx("h2",{children:"Launch first run"})]}),J?c.jsx(Pe,{tone:"positive",children:"Queued"}):null]}),J?c.jsxs("div",{className:"compact-stack",children:[c.jsx("p",{className:"text-zinc-300",children:"Visibility sweep has been queued. View progress on the project page."}),c.jsxs("div",{className:"setup-nav",children:[c.jsx("span",{}),c.jsx(me,{type:"button",onClick:()=>u($?`/projects/${$}`:"/"),children:"Open project"})]})]}):c.jsxs("div",{className:"compact-stack",children:[c.jsxs("p",{className:"supporting-copy",children:["Everything is configured. Launch an answer-visibility sweep to start tracking citations for ",c.jsx("span",{className:"text-zinc-100 font-medium",children:O}),"."]}),X?c.jsx("p",{className:"text-rose-400 text-sm",children:X}):null,c.jsxs("div",{className:"setup-nav",children:[c.jsx(me,{type:"button",variant:"outline",onClick:It,children:"Back"}),c.jsx(me,{type:"button",disabled:de,onClick:fl,children:de?"Launching...":"Launch visibility sweep"})]})]})]});default:return null}})();return c.jsxs("div",{className:"page-container",children:[c.jsx("div",{className:"page-header",children:c.jsxs("div",{className:"page-header-left",children:[c.jsx("h1",{className:"page-title",children:"Setup"}),c.jsx("p",{className:"page-subtitle",children:"Create a project, add key phrases, add competitors, and launch the first run."})]})}),c.jsx(mj,{current:o,labels:fj}),c.jsx("section",{className:"setup-wizard",children:mi})]})}function pj({onNavigate:l}){return c.jsx("div",{className:"page-container",children:c.jsx("section",{className:"page-section",children:c.jsxs(We,{className:"surface-card empty-card",children:[c.jsx("h1",{children:"Route not found"}),c.jsx("p",{children:"The current path does not map to a dashboard view."}),c.jsx(me,{asChild:!0,children:c.jsx("a",{href:"/",onClick:Bt(l,"/"),children:"Return to overview"})})]})})})}function Wp({title:l,subtitle:r,children:u,open:o,onClose:f}){return c.jsx(qx,{open:o,onOpenChange:m=>m?void 0:f(),children:c.jsxs(Op,{children:[c.jsxs(Xx,{className:"drawer-head",children:[c.jsx("p",{className:"eyebrow eyebrow-soft",children:r}),c.jsx(Mp,{id:"drawer-title",children:l}),c.jsx(kp,{className:"sr-only",children:r})]}),c.jsx("div",{className:"drawer-body",children:u})]})})}function gj(l){const r=l.split(/\n{2,}/),u=[];for(let o=0;o<r.length;o++){const f=r[o].trim();if(!f)continue;const p=f.split(/(\*\*[^*]+\*\*)/).map((v,b)=>v.startsWith("**")&&v.endsWith("**")?c.jsx("strong",{className:"text-zinc-200 font-semibold",children:v.slice(2,-2)},b):v);u.push(c.jsx("p",{className:o>0?"mt-2":"",children:p},o))}return u}function vj({evidence:l,project:r,onClose:u}){const[o,f]=y.useState(!1),m=r.recentRuns[0];return c.jsxs(Wp,{open:!0,title:l.keyword,subtitle:`${r.project.name} · visibility evidence`,onClose:u,children:[c.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(To,{state:l.citationState}),c.jsx(di,{provider:l.provider}),c.jsx("span",{className:"text-sm text-zinc-400",children:l.changeLabel})]}),m&&c.jsxs("span",{className:"shrink-0 text-[10px] uppercase tracking-wide text-zinc-600",children:["from latest run · ",new Date(m.createdAt).toLocaleDateString()]})]}),l.answerSnippet&&c.jsxs("div",{children:[c.jsx("p",{className:"detail-label",children:"AI answer"}),c.jsx("div",{className:`mt-1 rounded border border-zinc-800/60 bg-zinc-900/50 p-3 text-sm leading-relaxed text-zinc-400 ${o?"max-h-80 overflow-y-auto":"line-clamp-6"}`,children:gj(l.answerSnippet)}),l.answerSnippet.length>300&&c.jsx("button",{type:"button",className:"mt-1.5 text-xs text-zinc-500 hover:text-zinc-300",onClick:()=>f(!o),children:o?"Collapse":"Show full answer"})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("p",{className:"detail-label",children:"Cited domains"}),l.citedDomains.length>0?c.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:l.citedDomains.map(p=>c.jsx("span",{className:"inline-flex items-center rounded-full border border-zinc-700 bg-zinc-800 px-2 py-0.5 text-xs text-zinc-300",children:p},p))}):c.jsx("p",{className:"mt-1 text-sm text-zinc-500",children:"No domains cited"})]}),c.jsxs("div",{children:[c.jsx("p",{className:"detail-label",children:"Competitor overlap"}),l.competitorDomains.length>0?c.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:l.competitorDomains.map(p=>c.jsx("span",{className:"inline-flex items-center rounded-full border border-rose-800/50 bg-rose-950/40 px-2 py-0.5 text-xs text-rose-300",children:p},p))}):c.jsx("p",{className:"mt-1 text-sm text-zinc-500",children:"No competitors cited"})]})]}),l.groundingSources.length>0&&c.jsxs("div",{children:[c.jsxs("p",{className:"detail-label",children:["Grounding sources (",l.groundingSources.length,")"]}),c.jsx("ul",{className:"mt-1 space-y-0.5",children:l.groundingSources.map((p,v)=>c.jsx("li",{className:"truncate text-sm",children:c.jsx("a",{href:p.uri,target:"_blank",rel:"noreferrer",className:"text-zinc-400 hover:text-zinc-200",children:p.title||p.uri})},v))})]}),l.evidenceUrls.length>0&&c.jsxs("div",{children:[c.jsx("p",{className:"detail-label",children:"Evidence URLs"}),c.jsx("ul",{className:"detail-list",children:l.evidenceUrls.map(p=>c.jsx("li",{children:p},p))})]}),l.relatedTechnicalSignals.length>0&&c.jsxs("div",{children:[c.jsx("p",{className:"detail-label",children:"Related technical signals"}),c.jsx("ul",{className:"detail-list",children:l.relatedTechnicalSignals.map(p=>c.jsx("li",{children:p},p))})]}),c.jsx("p",{className:"text-xs text-zinc-600",children:l.summary})]})}async function yj(){try{const[l,r,u]=await Promise.all([nS(),aS(),dS().catch(()=>null)]),o=await Promise.all(l.map(async f=>{const m=r.filter(N=>N.projectId===f.id),p=m.filter(N=>N.status==="completed"||N.status==="partial").sort((N,R)=>R.createdAt.localeCompare(N.createdAt)),[v,b,g,A]=await Promise.all([lS(f.name).catch(()=>[]),Bp(f.name).catch(()=>[]),iS(f.name).catch(()=>[]),p[0]?Ao(p[0].id).catch(()=>null):Promise.resolve(null)]);return{project:f,runs:m,keywords:v,competitors:b,timeline:g,latestRunDetail:A}}));return OS(o,u)}catch{return null}}function bj({initialPathname:l,initialDashboard:r,initialHealthSnapshot:u,enableLiveStatus:o=!0}){const[f,m]=y.useState(r??null),[p,v]=y.useState(!r),[b,g]=y.useState(r?!0:null),[A,N]=y.useState(()=>BS(l)),[R,Y]=y.useState(!1),[K,O]=y.useState(null),[B,$]=y.useState(null),[ne,H]=y.useState(!1),[Q,ie]=y.useState(u??US),ae=y.useCallback(async()=>{const z=await yj();z?(m(z),g(!0)):g(!1),v(!1)},[]);if(y.useEffect(()=>{r||ae()},[r,ae]),y.useEffect(()=>{if(typeof window>"u")return;const z=()=>{N(ol(window.location.pathname))};return window.addEventListener("popstate",z),()=>{window.removeEventListener("popstate",z)}},[]),y.useEffect(()=>{Y(!1),O(null)},[A]),y.useEffect(()=>{if(typeof window>"u"||K===null)return;const z=X=>{X.key==="Escape"&&O(null)};return window.addEventListener("keydown",z),()=>{window.removeEventListener("keydown",z)}},[K]),y.useEffect(()=>{if(!o||typeof window>"u")return;let z=!0;const X=async()=>{const de=await LS("/health","API"),Me=de.state==="ok"?{label:"Runner",state:"ok",detail:"In-process job runner"}:{label:"Runner",state:de.state,detail:"Depends on API"};z&&ie({apiStatus:de,workerStatus:Me})};X();const I=window.setInterval(()=>{X()},15e3);return()=>{z=!1,window.clearInterval(I)}},[o]),!p&&!f&&b===!1)return c.jsx("div",{className:"app-shell",children:c.jsx("div",{className:"main-area",style:{gridColumn:"1 / -1"},children:c.jsx("main",{id:"content",className:"page-shell",children:c.jsxs("div",{className:"page-container",children:[c.jsx("div",{className:"page-header",children:c.jsxs("div",{className:"page-header-left",children:[c.jsx("h1",{className:"page-title",children:"Cannot connect to API"}),c.jsxs("p",{className:"page-subtitle",children:["The dashboard could not reach the Canonry API. Make sure ",c.jsx("code",{children:"canonry serve"})," is running and try refreshing the page."]})]})}),c.jsx(me,{type:"button",onClick:()=>{v(!0),ae()},children:"Retry connection"})]})})})});const G=f??kS.dashboard,q=HS(A,G),fe=q.kind==="project"?Hp(G,q.projectId):void 0,Le=fe?`/projects/${fe.project.id}`:G.projects[0]?`/projects/${G.projects[0].project.id}`:"/setup",W=z=>{const X=ol(z);if(typeof window>"u"){N(X);return}ol(window.location.pathname)!==X&&window.history.pushState({},"",X),N(X)},pe=z=>{if(!z)return;O({kind:"run",runId:z}),$(null),H(!0);const X=z;Ao(z).then(I=>{O(de=>(de?.kind==="run"&&de.runId===X&&$(I),de))}).catch(()=>{O(I=>(I?.kind==="run"&&I.runId===X&&$(null),I))}).finally(()=>H(!1))};y.useEffect(()=>{if(K?.kind!=="run"||!B||B.status!=="running"&&B.status!=="queued")return;const z=setInterval(()=>{Ao(K.runId).then(X=>{$(X),X.status!=="running"&&X.status!=="queued"&&ae()}).catch(()=>{})},3e3);return()=>clearInterval(z)},[K,B?.status,B?.snapshots.length,ae]);const Xe=z=>{O({kind:"evidence",evidenceId:z})},Be=async z=>{await Yp(z),ae()},F=async z=>{try{await oS(z),W("/"),ae()}catch(X){console.error("Failed to delete project:",X)}},_=async(z,X)=>{await rS(z,X),await ae()},Z=async(z,X)=>{const de=(await Bp(z)).map(ue=>ue.domain),Me=[...new Set([...de,...X])];await qp(z,Me),await ae()},se=QS(G.portfolioOverview.systemHealth,Q,G.settings),ve=XS(G.setup,Q,G.settings),V=K?.kind==="run"?Ix(G,K.runId):void 0,S=K?.kind==="evidence"?Px(G,K.evidenceId):void 0,k=[{label:"Overview",href:"/",icon:Gy,active:Hs(q,"overview")},{label:"Projects",href:Le,icon:qy,active:Hs(q,"project")},{label:"Runs",href:"/runs",icon:Zy,active:Hs(q,"runs")},{label:"Settings",href:"/settings",icon:Wy,active:Hs(q,"settings")}],J=q.kind==="overview"?"Portfolio":q.kind==="project"&&fe?fe.project.name:q.kind==="runs"?"Runs":q.kind==="settings"?"Settings":q.kind==="setup"?"Setup":"Not found";return c.jsxs("div",{className:"app-shell",children:[c.jsx("a",{className:"skip-link",href:"#content",children:"Skip to content"}),c.jsxs("aside",{className:"sidebar","aria-label":"Primary navigation",children:[c.jsx("div",{className:"sidebar-brand",children:c.jsxs("a",{href:"/",onClick:Bt(W,"/"),children:[c.jsx("span",{className:"brand-mark",children:"Canonry"}),c.jsx("p",{className:"brand-subtitle",children:"AEO Monitor"})]})}),c.jsxs("nav",{className:"sidebar-nav",children:[k.map(z=>c.jsxs("a",{className:`sidebar-link ${z.active?"sidebar-link-active":""}`,href:z.href,"aria-current":z.active?"page":void 0,onClick:Bt(W,z.href),children:[c.jsx(z.icon,{className:"sidebar-icon"}),c.jsx("span",{children:z.label})]},z.label)),G.projects.length>0?c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"sidebar-section-title",children:"Projects"}),G.projects.map(z=>{const X=q.kind==="project"&&fe?.project.id===z.project.id,I=z.visibilitySummary.tone;return c.jsxs("a",{className:`sidebar-project ${X?"sidebar-project-active":""}`,href:`/projects/${z.project.id}`,onClick:Bt(W,`/projects/${z.project.id}`),children:[c.jsx("span",{className:`sidebar-dot sidebar-dot-${I}`}),c.jsx("span",{children:z.project.name})]},z.project.id)})]}):null,c.jsx("p",{className:"sidebar-section-title",children:"Resources"}),c.jsxs("a",{className:"sidebar-link",href:"/setup","aria-current":q.kind==="setup"?"page":void 0,onClick:Bt(W,"/setup"),children:[c.jsx(Jy,{className:"sidebar-icon"}),c.jsx("span",{children:"Setup"})]})]}),c.jsx("div",{className:"sidebar-footer",children:wh.map(z=>c.jsx("a",{className:"sidebar-footer-link",href:z.href,target:"_blank",rel:"noreferrer",children:z.label},z.href))})]}),c.jsxs("div",{className:"main-area",children:[c.jsxs("header",{className:"topbar",children:[c.jsxs("div",{className:"topbar-left",children:[c.jsx("div",{className:"topbar-brand-mobile",children:c.jsx("a",{className:"brand-mark",href:"/",onClick:Bt(W,"/"),children:"Canonry"})}),c.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[c.jsx("a",{href:"/",onClick:Bt(W,"/"),children:"Home"}),c.jsx(Oo,{className:"breadcrumb-sep size-3"}),c.jsx("span",{className:"breadcrumb-current",children:J})]})]}),c.jsxs("div",{className:"topbar-actions",children:[c.jsxs("div",{className:"health-pill-row",children:[c.jsxs("span",{className:`health-pill health-pill-${Q.apiStatus.state}`,children:["API ",Q.apiStatus.state==="ok"?"ok":Q.apiStatus.state]}),c.jsxs("span",{className:`health-pill health-pill-${Q.workerStatus.state}`,children:["Worker ",Q.workerStatus.state==="ok"?"ok":Q.workerStatus.state]})]}),c.jsxs(me,{className:"nav-toggle",variant:"secondary",size:"icon",type:"button","aria-expanded":R,"aria-controls":"mobile-nav",onClick:()=>Y(z=>!z),children:[c.jsx(Vy,{className:"size-4"}),c.jsx("span",{className:"sr-only",children:"Open navigation"})]})]})]}),c.jsxs("div",{id:"mobile-nav",className:`mobile-nav ${R?"mobile-nav-open":""}`,children:[c.jsxs(me,{className:"mobile-nav-close",variant:"ghost",size:"icon",type:"button",onClick:()=>Y(!1),children:[c.jsx(_h,{className:"size-5"}),c.jsx("span",{className:"sr-only",children:"Close navigation"})]}),k.map(z=>c.jsx("a",{className:`mobile-nav-link ${z.active?"mobile-nav-link-active":""}`,href:z.href,"aria-current":z.active?"page":void 0,onClick:Bt(W,z.href),children:z.label},z.label)),G.projects.length>0?c.jsxs("div",{className:"mobile-nav-section",children:[c.jsx("p",{className:"mobile-nav-section-title",children:"Projects"}),G.projects.map(z=>c.jsx("a",{className:"mobile-nav-link",href:`/projects/${z.project.id}`,onClick:Bt(W,`/projects/${z.project.id}`),children:z.project.name},z.project.id))]}):null]}),c.jsx("main",{id:"content",className:"page-shell",children:p?c.jsx("div",{className:"page-container",children:c.jsx("div",{className:"page-header",children:c.jsxs("div",{className:"page-header-left",children:[c.jsx("h1",{className:"page-title",children:"Loading"}),c.jsx("p",{className:"page-subtitle",children:"Connecting to API and loading dashboard data..."})]})})}):c.jsxs(c.Fragment,{children:[q.kind==="overview"?c.jsx(IS,{model:G.portfolioOverview,systemHealth:se,onNavigate:W,onOpenRun:pe}):null,q.kind==="project"&&fe?c.jsx(PS,{model:fe,onOpenEvidence:Xe,onOpenRun:pe,onTriggerRun:Be,onDeleteProject:F,onAddKeywords:_,onAddCompetitors:Z}):null,q.kind==="runs"?c.jsx(cj,{runs:G.runs,onOpenRun:pe}):null,q.kind==="settings"?c.jsx(dj,{settings:G.settings,healthSnapshot:Q,onSettingsChanged:ae}):null,q.kind==="setup"?c.jsx(hj,{model:ve,onProjectCreated:ae,onNavigate:W}):null,q.kind==="not-found"?c.jsx(pj,{onNavigate:W}):null]})}),c.jsxs("footer",{className:"footer",children:[c.jsx("p",{className:"supporting-copy",children:"Technical readiness and answer visibility stay separate."}),c.jsx("div",{className:"footer-links",children:wh.map(z=>c.jsx("a",{href:z.href,target:"_blank",rel:"noreferrer",children:z.label},z.href))})]})]}),V?c.jsxs(Wp,{open:V!==void 0,title:V.summary,subtitle:`${V.projectName} · ${V.kindLabel}`,onClose:()=>O(null),children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-1 text-sm",children:[c.jsx(Qo,{status:V.status}),c.jsx("span",{className:"text-zinc-400",children:V.startedAt}),c.jsx("span",{className:"text-zinc-500",children:V.duration}),c.jsx("span",{className:"text-zinc-600",children:V.triggerLabel})]}),V.status==="failed"&&V.statusDetail&&c.jsx("p",{className:"text-sm text-rose-300/80 mt-2",children:V.statusDetail}),c.jsxs("div",{className:"mt-4",children:[c.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-zinc-500 mb-2",children:"Activity Log"}),ne?c.jsx("p",{className:"text-sm text-zinc-500",children:"Loading run details..."}):B&&B.snapshots.length>0?c.jsxs("div",{className:"space-y-2",children:[B.snapshots.map(z=>c.jsxs("div",{className:"rounded-lg border border-zinc-800/60 bg-zinc-900/30 p-3",children:[c.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1",children:[c.jsx("p",{className:"text-sm font-medium text-zinc-200 truncate",children:z.keyword??"Unknown key phrase"}),c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(di,{provider:z.provider}),c.jsx(Jh,{variant:z.citationState==="cited"?"success":"neutral",children:z.citationState})]})]}),z.citedDomains.length>0&&c.jsxs("p",{className:"text-xs text-zinc-500 mt-1",children:[c.jsx("span",{className:"text-zinc-400",children:"Sources:"})," ",z.citedDomains.join(", ")]}),z.competitorOverlap.length>0&&c.jsxs("p",{className:"text-xs text-rose-400/80 mt-0.5",children:["Competitor cited: ",z.competitorOverlap.join(", ")]}),z.groundingSources&&z.groundingSources.length>0&&c.jsxs("details",{className:"mt-2",children:[c.jsxs("summary",{className:"text-xs text-zinc-500 cursor-pointer hover:text-zinc-400",children:[z.groundingSources.length," grounding source",z.groundingSources.length!==1?"s":""]}),c.jsx("ul",{className:"mt-1 space-y-0.5",children:z.groundingSources.map((X,I)=>c.jsx("li",{className:"text-xs text-zinc-500 truncate",children:c.jsx("a",{href:X.uri,target:"_blank",rel:"noreferrer",className:"hover:text-zinc-300",children:X.title||X.uri})},I))})]}),z.answerText&&c.jsxs("details",{className:"mt-1",children:[c.jsx("summary",{className:"text-xs text-zinc-500 cursor-pointer hover:text-zinc-400",children:"Answer preview"}),c.jsx("p",{className:"mt-1 text-xs text-zinc-400 leading-relaxed whitespace-pre-wrap",children:z.answerText})]})]},z.id)),B.status==="running"&&c.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-zinc-500",children:[c.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-amber-500 animate-pulse"}),"Querying remaining key phrases..."]})]}):B&&B.status==="running"?c.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-zinc-500",children:[c.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-amber-500 animate-pulse"}),"Waiting for first key phrase result..."]}):B&&B.status==="queued"?c.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-zinc-500",children:[c.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-zinc-500 animate-pulse"}),"Run queued, waiting for execution slot..."]}):B&&B.error?c.jsxs("div",{className:"rounded-lg border border-rose-800/40 bg-rose-950/20 p-3",children:[c.jsx("p",{className:"text-sm font-medium text-rose-300 mb-2",children:"Run failed"}),c.jsx("pre",{className:"text-xs text-rose-300/80 whitespace-pre-wrap break-words max-h-48 overflow-y-auto font-mono leading-5",children:GS(B.error)})]}):c.jsx("p",{className:"text-sm text-zinc-500",children:"No snapshot data available."}),B?.snapshots?.[0]?.model&&c.jsxs("p",{className:"mt-3 text-[10px] text-zinc-600",children:["Model: ",B.snapshots[0].model]})]})]}):null,S?c.jsx(vj,{evidence:S.evidence,project:S.project,onClose:()=>O(null)}):null]})}const Fp=document.getElementById("root");if(!Fp)throw new Error("Expected #root element for web app bootstrap.");_y.createRoot(Fp).render(c.jsx(y.StrictMode,{children:c.jsx(bj,{})}));
|