@feltdb/feltkit 0.0.0-stage → 0.2.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 +21 -0
- package/README.md +22 -2
- package/bin/feltkit.js +3 -0
- package/dist/app.d.ts +247 -0
- package/dist/app.js +181 -0
- package/dist/app.js.map +1 -0
- package/dist/cli/deploy.d.ts +8 -0
- package/dist/cli/deploy.js +125 -0
- package/dist/cli/deploy.js.map +1 -0
- package/dist/cli/main.d.ts +9 -0
- package/dist/cli/main.js +581 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/output.d.ts +18 -0
- package/dist/cli/output.js +87 -0
- package/dist/cli/output.js.map +1 -0
- package/dist/cli/skills.d.ts +39 -0
- package/dist/cli/skills.js +125 -0
- package/dist/cli/skills.js.map +1 -0
- package/dist/client/index.d.ts +125 -0
- package/dist/client/index.js +306 -0
- package/dist/client/index.js.map +1 -0
- package/dist/dashboard/assets/index--1Tqbv_A.css +1 -0
- package/dist/dashboard/assets/index-Bm4qCYpv.js +15 -0
- package/dist/dashboard/index.html +16 -0
- package/dist/errors.d.ts +33 -0
- package/dist/errors.js +56 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/react/index.d.ts +40 -0
- package/dist/react/index.js +85 -0
- package/dist/react/index.js.map +1 -0
- package/dist/runtime/activity.d.ts +110 -0
- package/dist/runtime/activity.js +113 -0
- package/dist/runtime/activity.js.map +1 -0
- package/dist/runtime/agent.d.ts +353 -0
- package/dist/runtime/agent.js +1345 -0
- package/dist/runtime/agent.js.map +1 -0
- package/dist/runtime/authority.d.ts +98 -0
- package/dist/runtime/authority.js +240 -0
- package/dist/runtime/authority.js.map +1 -0
- package/dist/runtime/changes.d.ts +42 -0
- package/dist/runtime/changes.js +85 -0
- package/dist/runtime/changes.js.map +1 -0
- package/dist/runtime/content.d.ts +33 -0
- package/dist/runtime/content.js +46 -0
- package/dist/runtime/content.js.map +1 -0
- package/dist/runtime/context.d.ts +76 -0
- package/dist/runtime/context.js +2 -0
- package/dist/runtime/context.js.map +1 -0
- package/dist/runtime/credentials.d.ts +42 -0
- package/dist/runtime/credentials.js +32 -0
- package/dist/runtime/credentials.js.map +1 -0
- package/dist/runtime/data.d.ts +145 -0
- package/dist/runtime/data.js +439 -0
- package/dist/runtime/data.js.map +1 -0
- package/dist/runtime/decisions.d.ts +131 -0
- package/dist/runtime/decisions.js +301 -0
- package/dist/runtime/decisions.js.map +1 -0
- package/dist/runtime/environment.d.ts +36 -0
- package/dist/runtime/environment.js +73 -0
- package/dist/runtime/environment.js.map +1 -0
- package/dist/runtime/idempotency.d.ts +37 -0
- package/dist/runtime/idempotency.js +88 -0
- package/dist/runtime/idempotency.js.map +1 -0
- package/dist/runtime/instance.d.ts +82 -0
- package/dist/runtime/instance.js +253 -0
- package/dist/runtime/instance.js.map +1 -0
- package/dist/runtime/integrations.d.ts +120 -0
- package/dist/runtime/integrations.js +412 -0
- package/dist/runtime/integrations.js.map +1 -0
- package/dist/runtime/loader.d.ts +15 -0
- package/dist/runtime/loader.js +121 -0
- package/dist/runtime/loader.js.map +1 -0
- package/dist/runtime/projects.d.ts +52 -0
- package/dist/runtime/projects.js +141 -0
- package/dist/runtime/projects.js.map +1 -0
- package/dist/runtime/readiness.d.ts +29 -0
- package/dist/runtime/readiness.js +154 -0
- package/dist/runtime/readiness.js.map +1 -0
- package/dist/runtime/runtime.d.ts +227 -0
- package/dist/runtime/runtime.js +664 -0
- package/dist/runtime/runtime.js.map +1 -0
- package/dist/runtime/services.d.ts +327 -0
- package/dist/runtime/services.js +686 -0
- package/dist/runtime/services.js.map +1 -0
- package/dist/runtime/sessions.d.ts +44 -0
- package/dist/runtime/sessions.js +109 -0
- package/dist/runtime/sessions.js.map +1 -0
- package/dist/schema.d.ts +56 -0
- package/dist/schema.js +44 -0
- package/dist/schema.js.map +1 -0
- package/dist/server/admin.d.ts +141 -0
- package/dist/server/admin.js +828 -0
- package/dist/server/admin.js.map +1 -0
- package/dist/server/http.d.ts +19 -0
- package/dist/server/http.js +99 -0
- package/dist/server/http.js.map +1 -0
- package/dist/server/index.d.ts +54 -0
- package/dist/server/index.js +305 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/management.d.ts +12 -0
- package/dist/server/management.js +177 -0
- package/dist/server/management.js.map +1 -0
- package/dist/server/mcp.d.ts +214 -0
- package/dist/server/mcp.js +135 -0
- package/dist/server/mcp.js.map +1 -0
- package/dist/server/operators.d.ts +77 -0
- package/dist/server/operators.js +162 -0
- package/dist/server/operators.js.map +1 -0
- package/dist/server/project.d.ts +60 -0
- package/dist/server/project.js +344 -0
- package/dist/server/project.js.map +1 -0
- package/dist/server/public.d.ts +14 -0
- package/dist/server/public.js +15 -0
- package/dist/server/public.js.map +1 -0
- package/dist/testing/index.d.ts +20 -0
- package/dist/testing/index.js +65 -0
- package/dist/testing/index.js.map +1 -0
- package/package.json +91 -4
- package/skills/.claude-plugin/marketplace.json +16 -0
- package/skills/.claude-plugin/plugin.json +24 -0
- package/skills/README.md +44 -0
- package/skills/feltkit-agent/SKILL.md +84 -0
- package/skills/feltkit-build/SKILL.md +143 -0
- package/skills/feltkit-data/SKILL.md +79 -0
- package/skills/feltkit-operations/SKILL.md +72 -0
- package/skills/feltkit-services/SKILL.md +102 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
(function(){const d=document.createElement("link").relList;if(d&&d.supports&&d.supports("modulepreload"))return;for(const j of document.querySelectorAll('link[rel="modulepreload"]'))r(j);new MutationObserver(j=>{for(const g of j)if(g.type==="childList")for(const _ of g.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&r(_)}).observe(document,{childList:!0,subtree:!0});function h(j){const g={};return j.integrity&&(g.integrity=j.integrity),j.referrerPolicy&&(g.referrerPolicy=j.referrerPolicy),j.crossOrigin==="use-credentials"?g.credentials="include":j.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function r(j){if(j.ep)return;j.ep=!0;const g=h(j);fetch(j.href,g)}})();var Ns={exports:{}},Cn={};var Qf;function Gv(){if(Qf)return Cn;Qf=1;var s=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function h(r,j,g){var _=null;if(g!==void 0&&(_=""+g),j.key!==void 0&&(_=""+j.key),"key"in j){g={};for(var U in j)U!=="key"&&(g[U]=j[U])}else g=j;return j=g.ref,{$$typeof:s,type:r,key:_,ref:j!==void 0?j:null,props:g}}return Cn.Fragment=d,Cn.jsx=h,Cn.jsxs=h,Cn}var Xf;function Qv(){return Xf||(Xf=1,Ns.exports=Gv()),Ns.exports}var n=Qv(),Es={exports:{}},P={};var Lf;function Xv(){if(Lf)return P;Lf=1;var s=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),_=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),Y=Symbol.iterator;function $(v){return v===null||typeof v!="object"?null:(v=Y&&v[Y]||v["@@iterator"],typeof v=="function"?v:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,q={};function N(v,R,X){this.props=v,this.context=R,this.refs=q,this.updater=X||I}N.prototype.isReactComponent={},N.prototype.setState=function(v,R){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,R,"setState")},N.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function G(){}G.prototype=N.prototype;function w(v,R,X){this.props=v,this.context=R,this.refs=q,this.updater=X||I}var ie=w.prototype=new G;ie.constructor=w,L(ie,N.prototype),ie.isPureReactComponent=!0;var ze=Array.isArray;function De(){}var H={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function Me(v,R,X){var V=X.ref;return{$$typeof:s,type:v,key:R,ref:V!==void 0?V:null,props:X}}function Il(v,R){return Me(v.type,R,v.props)}function Bt(v){return typeof v=="object"&&v!==null&&v.$$typeof===s}function tt(v){var R={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(X){return R[X]})}var Cl=/\/+/g;function Xt(v,R){return typeof v=="object"&&v!==null&&v.key!=null?tt(""+v.key):R.toString(36)}function Mt(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(De,De):(v.status="pending",v.then(function(R){v.status==="pending"&&(v.status="fulfilled",v.value=R)},function(R){v.status==="pending"&&(v.status="rejected",v.reason=R)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function O(v,R,X,V,ee){var ue=typeof v;(ue==="undefined"||ue==="boolean")&&(v=null);var ye=!1;if(v===null)ye=!0;else switch(ue){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(v.$$typeof){case s:case d:ye=!0;break;case M:return ye=v._init,O(ye(v._payload),R,X,V,ee)}}if(ye)return ee=ee(v),ye=V===""?"."+Xt(v,0):V,ze(ee)?(X="",ye!=null&&(X=ye.replace(Cl,"$&/")+"/"),O(ee,R,X,"",function(wa){return wa})):ee!=null&&(Bt(ee)&&(ee=Il(ee,X+(ee.key==null||v&&v.key===ee.key?"":(""+ee.key).replace(Cl,"$&/")+"/")+ye)),R.push(ee)),1;ye=0;var Pe=V===""?".":V+":";if(ze(v))for(var Re=0;Re<v.length;Re++)V=v[Re],ue=Pe+Xt(V,Re),ye+=O(V,R,X,ue,ee);else if(Re=$(v),typeof Re=="function")for(v=Re.call(v),Re=0;!(V=v.next()).done;)V=V.value,ue=Pe+Xt(V,Re++),ye+=O(V,R,X,ue,ee);else if(ue==="object"){if(typeof v.then=="function")return O(Mt(v),R,X,V,ee);throw R=String(v),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return ye}function Q(v,R,X){if(v==null)return v;var V=[],ee=0;return O(v,V,"","",function(ue){return R.call(X,ue,ee++)}),V}function F(v){if(v._status===-1){var R=v._result;R=R(),R.then(function(X){(v._status===0||v._status===-1)&&(v._status=1,v._result=X)},function(X){(v._status===0||v._status===-1)&&(v._status=2,v._result=X)}),v._status===-1&&(v._status=0,v._result=R)}if(v._status===1)return v._result.default;throw v._result}var xe=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},Ne={map:Q,forEach:function(v,R,X){Q(v,function(){R.apply(this,arguments)},X)},count:function(v){var R=0;return Q(v,function(){R++}),R},toArray:function(v){return Q(v,function(R){return R})||[]},only:function(v){if(!Bt(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return P.Activity=A,P.Children=Ne,P.Component=N,P.Fragment=h,P.Profiler=j,P.PureComponent=w,P.StrictMode=r,P.Suspense=p,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,P.__COMPILER_RUNTIME={__proto__:null,c:function(v){return H.H.useMemoCache(v)}},P.cache=function(v){return function(){return v.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(v,R,X){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var V=L({},v.props),ee=v.key;if(R!=null)for(ue in R.key!==void 0&&(ee=""+R.key),R)!fe.call(R,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&R.ref===void 0||(V[ue]=R[ue]);var ue=arguments.length-2;if(ue===1)V.children=X;else if(1<ue){for(var ye=Array(ue),Pe=0;Pe<ue;Pe++)ye[Pe]=arguments[Pe+2];V.children=ye}return Me(v.type,ee,V)},P.createContext=function(v){return v={$$typeof:_,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:g,_context:v},v},P.createElement=function(v,R,X){var V,ee={},ue=null;if(R!=null)for(V in R.key!==void 0&&(ue=""+R.key),R)fe.call(R,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(ee[V]=R[V]);var ye=arguments.length-2;if(ye===1)ee.children=X;else if(1<ye){for(var Pe=Array(ye),Re=0;Re<ye;Re++)Pe[Re]=arguments[Re+2];ee.children=Pe}if(v&&v.defaultProps)for(V in ye=v.defaultProps,ye)ee[V]===void 0&&(ee[V]=ye[V]);return Me(v,ue,ee)},P.createRef=function(){return{current:null}},P.forwardRef=function(v){return{$$typeof:U,render:v}},P.isValidElement=Bt,P.lazy=function(v){return{$$typeof:M,_payload:{_status:-1,_result:v},_init:F}},P.memo=function(v,R){return{$$typeof:y,type:v,compare:R===void 0?null:R}},P.startTransition=function(v){var R=H.T,X={};H.T=X;try{var V=v(),ee=H.S;ee!==null&&ee(X,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(De,xe)}catch(ue){xe(ue)}finally{R!==null&&X.types!==null&&(R.types=X.types),H.T=R}},P.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},P.use=function(v){return H.H.use(v)},P.useActionState=function(v,R,X){return H.H.useActionState(v,R,X)},P.useCallback=function(v,R){return H.H.useCallback(v,R)},P.useContext=function(v){return H.H.useContext(v)},P.useDebugValue=function(){},P.useDeferredValue=function(v,R){return H.H.useDeferredValue(v,R)},P.useEffect=function(v,R){return H.H.useEffect(v,R)},P.useEffectEvent=function(v){return H.H.useEffectEvent(v)},P.useId=function(){return H.H.useId()},P.useImperativeHandle=function(v,R,X){return H.H.useImperativeHandle(v,R,X)},P.useInsertionEffect=function(v,R){return H.H.useInsertionEffect(v,R)},P.useLayoutEffect=function(v,R){return H.H.useLayoutEffect(v,R)},P.useMemo=function(v,R){return H.H.useMemo(v,R)},P.useOptimistic=function(v,R){return H.H.useOptimistic(v,R)},P.useReducer=function(v,R,X){return H.H.useReducer(v,R,X)},P.useRef=function(v){return H.H.useRef(v)},P.useState=function(v){return H.H.useState(v)},P.useSyncExternalStore=function(v,R,X){return H.H.useSyncExternalStore(v,R,X)},P.useTransition=function(){return H.H.useTransition()},P.version="19.2.0",P}var Zf;function qs(){return Zf||(Zf=1,Es.exports=Xv()),Es.exports}var B=qs(),As={exports:{}},Un={},Ts={exports:{}},zs={};var Vf;function Lv(){return Vf||(Vf=1,(function(s){function d(O,Q){var F=O.length;O.push(Q);e:for(;0<F;){var xe=F-1>>>1,Ne=O[xe];if(0<j(Ne,Q))O[xe]=Q,O[F]=Ne,F=xe;else break e}}function h(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var Q=O[0],F=O.pop();if(F!==Q){O[0]=F;e:for(var xe=0,Ne=O.length,v=Ne>>>1;xe<v;){var R=2*(xe+1)-1,X=O[R],V=R+1,ee=O[V];if(0>j(X,F))V<Ne&&0>j(ee,X)?(O[xe]=ee,O[V]=F,xe=V):(O[xe]=X,O[R]=F,xe=R);else if(V<Ne&&0>j(ee,F))O[xe]=ee,O[V]=F,xe=V;else break e}}return Q}function j(O,Q){var F=O.sortIndex-Q.sortIndex;return F!==0?F:O.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;s.unstable_now=function(){return g.now()}}else{var _=Date,U=_.now();s.unstable_now=function(){return _.now()-U}}var p=[],y=[],M=1,A=null,Y=3,$=!1,I=!1,L=!1,q=!1,N=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function ie(O){for(var Q=h(y);Q!==null;){if(Q.callback===null)r(y);else if(Q.startTime<=O)r(y),Q.sortIndex=Q.expirationTime,d(p,Q);else break;Q=h(y)}}function ze(O){if(L=!1,ie(O),!I)if(h(p)!==null)I=!0,De||(De=!0,tt());else{var Q=h(y);Q!==null&&Mt(ze,Q.startTime-O)}}var De=!1,H=-1,fe=5,Me=-1;function Il(){return q?!0:!(s.unstable_now()-Me<fe)}function Bt(){if(q=!1,De){var O=s.unstable_now();Me=O;var Q=!0;try{e:{I=!1,L&&(L=!1,G(H),H=-1),$=!0;var F=Y;try{t:{for(ie(O),A=h(p);A!==null&&!(A.expirationTime>O&&Il());){var xe=A.callback;if(typeof xe=="function"){A.callback=null,Y=A.priorityLevel;var Ne=xe(A.expirationTime<=O);if(O=s.unstable_now(),typeof Ne=="function"){A.callback=Ne,ie(O),Q=!0;break t}A===h(p)&&r(p),ie(O)}else r(p);A=h(p)}if(A!==null)Q=!0;else{var v=h(y);v!==null&&Mt(ze,v.startTime-O),Q=!1}}break e}finally{A=null,Y=F,$=!1}Q=void 0}}finally{Q?tt():De=!1}}}var tt;if(typeof w=="function")tt=function(){w(Bt)};else if(typeof MessageChannel<"u"){var Cl=new MessageChannel,Xt=Cl.port2;Cl.port1.onmessage=Bt,tt=function(){Xt.postMessage(null)}}else tt=function(){N(Bt,0)};function Mt(O,Q){H=N(function(){O(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<O?Math.floor(1e3/O):5},s.unstable_getCurrentPriorityLevel=function(){return Y},s.unstable_next=function(O){switch(Y){case 1:case 2:case 3:var Q=3;break;default:Q=Y}var F=Y;Y=Q;try{return O()}finally{Y=F}},s.unstable_requestPaint=function(){q=!0},s.unstable_runWithPriority=function(O,Q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var F=Y;Y=O;try{return Q()}finally{Y=F}},s.unstable_scheduleCallback=function(O,Q,F){var xe=s.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?xe+F:xe):F=xe,O){case 1:var Ne=-1;break;case 2:Ne=250;break;case 5:Ne=1073741823;break;case 4:Ne=1e4;break;default:Ne=5e3}return Ne=F+Ne,O={id:M++,callback:Q,priorityLevel:O,startTime:F,expirationTime:Ne,sortIndex:-1},F>xe?(O.sortIndex=F,d(y,O),h(p)===null&&O===h(y)&&(L?(G(H),H=-1):L=!0,Mt(ze,F-xe))):(O.sortIndex=Ne,d(p,O),I||$||(I=!0,De||(De=!0,tt()))),O},s.unstable_shouldYield=Il,s.unstable_wrapCallback=function(O){var Q=Y;return function(){var F=Y;Y=Q;try{return O.apply(this,arguments)}finally{Y=F}}}})(zs)),zs}var kf;function Zv(){return kf||(kf=1,Ts.exports=Lv()),Ts.exports}var Os={exports:{}},Ie={};var Kf;function Vv(){if(Kf)return Ie;Kf=1;var s=qs();function d(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)y+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(){}var r={d:{f:h,r:function(){throw Error(d(522))},D:h,C:h,L:h,m:h,X:h,S:h,M:h},p:0,findDOMNode:null},j=Symbol.for("react.portal");function g(p,y,M){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:A==null?null:""+A,children:p,containerInfo:y,implementation:M}}var _=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function U(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ie.createPortal=function(p,y){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(d(299));return g(p,y,null,M)},Ie.flushSync=function(p){var y=_.T,M=r.p;try{if(_.T=null,r.p=2,p)return p()}finally{_.T=y,r.p=M,r.d.f()}},Ie.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(p,y))},Ie.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Ie.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var M=y.as,A=U(M,y.crossOrigin),Y=typeof y.integrity=="string"?y.integrity:void 0,$=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;M==="style"?r.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:A,integrity:Y,fetchPriority:$}):M==="script"&&r.d.X(p,{crossOrigin:A,integrity:Y,fetchPriority:$,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Ie.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var M=U(y.as,y.crossOrigin);r.d.M(p,{crossOrigin:M,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(p)},Ie.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var M=y.as,A=U(M,y.crossOrigin);r.d.L(p,M,{crossOrigin:A,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Ie.preloadModule=function(p,y){if(typeof p=="string")if(y){var M=U(y.as,y.crossOrigin);r.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:M,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(p)},Ie.requestFormReset=function(p){r.d.r(p)},Ie.unstable_batchedUpdates=function(p,y){return p(y)},Ie.useFormState=function(p,y,M){return _.H.useFormState(p,y,M)},Ie.useFormStatus=function(){return _.H.useHostTransitionStatus()},Ie.version="19.2.0",Ie}var Jf;function kv(){if(Jf)return Os.exports;Jf=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(d){console.error(d)}}return s(),Os.exports=Vv(),Os.exports}var $f;function Kv(){if($f)return Un;$f=1;var s=Zv(),d=qs(),h=kv();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function j(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function _(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 U(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 p(e){if(g(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=g(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var i=l.return;if(i===null)break;var u=i.alternate;if(u===null){if(a=i.return,a!==null){l=a;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===l)return p(i),e;if(u===a)return p(i),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=i,a=u;else{for(var c=!1,o=i.child;o;){if(o===l){c=!0,l=i,a=u;break}if(o===a){c=!0,a=i,l=u;break}o=o.sibling}if(!c){for(o=u.child;o;){if(o===l){c=!0,l=u,a=i;break}if(o===a){c=!0,a=u,l=i;break}o=o.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function M(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=M(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,Y=Symbol.for("react.element"),$=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),w=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ze=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),Me=Symbol.for("react.activity"),Il=Symbol.for("react.memo_cache_sentinel"),Bt=Symbol.iterator;function tt(e){return e===null||typeof e!="object"?null:(e=Bt&&e[Bt]||e["@@iterator"],typeof e=="function"?e:null)}var Cl=Symbol.for("react.client.reference");function Xt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Cl?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case N:return"Profiler";case q:return"StrictMode";case ze:return"Suspense";case De:return"SuspenseList";case Me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case I:return"Portal";case w:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return t=e.displayName||null,t!==null?t:Xt(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return Xt(e(t))}catch{}}return null}var Mt=Array.isArray,O=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=h.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},xe=[],Ne=-1;function v(e){return{current:e}}function R(e){0>Ne||(e.current=xe[Ne],xe[Ne]=null,Ne--)}function X(e,t){Ne++,xe[Ne]=e.current,e.current=t}var V=v(null),ee=v(null),ue=v(null),ye=v(null);function Pe(e,t){switch(X(ue,t),X(ee,e),X(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?of(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=of(t),e=df(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}R(V),X(V,e)}function Re(){R(V),R(ee),R(ue)}function wa(e){e.memoizedState!==null&&X(ye,e);var t=V.current,l=df(t,e.type);t!==l&&(X(ee,e),X(V,l))}function qn(e){ee.current===e&&(R(V),R(ee)),ye.current===e&&(R(ye),On._currentValue=F)}var iu,ws;function Ul(e){if(iu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);iu=t&&t[1]||"",ws=-1<l.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+iu+e+ws}var uu=!1;function cu(e,t){if(!e||uu)return"";uu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(T){var E=T}Reflect.construct(e,[],C)}else{try{C.call()}catch(T){E=T}e.call(C.prototype)}}else{try{throw Error()}catch(T){E=T}(C=e())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(T){if(T&&E&&typeof T.stack=="string")return[T.stack,E.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 u=a.DetermineComponentFrameRoot(),c=u[0],o=u[1];if(c&&o){var f=c.split(`
|
|
4
|
+
`),S=o.split(`
|
|
5
|
+
`);for(i=a=0;a<f.length&&!f[a].includes("DetermineComponentFrameRoot");)a++;for(;i<S.length&&!S[i].includes("DetermineComponentFrameRoot");)i++;if(a===f.length||i===S.length)for(a=f.length-1,i=S.length-1;1<=a&&0<=i&&f[a]!==S[i];)i--;for(;1<=a&&0<=i;a--,i--)if(f[a]!==S[i]){if(a!==1||i!==1)do if(a--,i--,0>i||f[a]!==S[i]){var z=`
|
|
6
|
+
`+f[a].replace(" at new "," at ");return e.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",e.displayName)),z}while(1<=a&&0<=i);break}}}finally{uu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ul(l):""}function ph(e,t){switch(e.tag){case 26:case 27:case 5:return Ul(e.type);case 16:return Ul("Lazy");case 13:return e.child!==t&&t!==null?Ul("Suspense Fallback"):Ul("Suspense");case 19:return Ul("SuspenseList");case 0:case 15:return cu(e.type,!1);case 11:return cu(e.type.render,!1);case 1:return cu(e.type,!0);case 31:return Ul("Activity");default:return""}}function Ys(e){try{var t="",l=null;do t+=ph(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
+
Error generating stack: `+a.message+`
|
|
8
|
+
`+a.stack}}var su=Object.prototype.hasOwnProperty,ru=s.unstable_scheduleCallback,ou=s.unstable_cancelCallback,jh=s.unstable_shouldYield,xh=s.unstable_requestPaint,rt=s.unstable_now,gh=s.unstable_getCurrentPriorityLevel,Gs=s.unstable_ImmediatePriority,Qs=s.unstable_UserBlockingPriority,Bn=s.unstable_NormalPriority,bh=s.unstable_LowPriority,Xs=s.unstable_IdlePriority,Sh=s.log,Nh=s.unstable_setDisableYieldValue,Ya=null,ot=null;function cl(e){if(typeof Sh=="function"&&Nh(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Ya,e)}catch{}}var dt=Math.clz32?Math.clz32:Th,Eh=Math.log,Ah=Math.LN2;function Th(e){return e>>>=0,e===0?32:31-(Eh(e)/Ah|0)|0}var wn=256,Yn=262144,Gn=4194304;function Rl(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 Qn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~u,a!==0?i=Rl(a):(c&=o,c!==0?i=Rl(c):l||(l=o&~e,l!==0&&(i=Rl(l))))):(o=a&~u,o!==0?i=Rl(o):c!==0?i=Rl(c):l||(l=a&~e,l!==0&&(i=Rl(l)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:i}function Ga(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zh(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 Ls(){var e=Gn;return Gn<<=1,(Gn&62914560)===0&&(Gn=4194304),e}function du(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oh(e,t,l,a,i,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var o=e.entanglements,f=e.expirationTimes,S=e.hiddenUpdates;for(l=c&~l;0<l;){var z=31-dt(l),C=1<<z;o[z]=0,f[z]=-1;var E=S[z];if(E!==null)for(S[z]=null,z=0;z<E.length;z++){var T=E[z];T!==null&&(T.lane&=-536870913)}l&=~C}a!==0&&Zs(e,a,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function Zs(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Vs(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-dt(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function ks(e,t){var l=t&-t;return l=(l&42)!==0?1:fu(l),(l&(e.suspendedLanes|t))!==0?0:l}function fu(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 hu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ks(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Rf(e.type))}function Js(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var sl=Math.random().toString(36).slice(2),ke="__reactFiber$"+sl,lt="__reactProps$"+sl,Pl="__reactContainer$"+sl,mu="__reactEvents$"+sl,_h="__reactListeners$"+sl,Dh="__reactHandles$"+sl,$s="__reactResources$"+sl,Xa="__reactMarker$"+sl;function vu(e){delete e[ke],delete e[lt],delete e[mu],delete e[_h],delete e[Dh]}function ea(e){var t=e[ke];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Pl]||l[ke]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=jf(e);e!==null;){if(l=e[ke])return l;e=jf(e)}return t}e=l,l=e.parentNode}return null}function ta(e){if(e=e[ke]||e[Pl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function La(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function la(e){var t=e[$s];return t||(t=e[$s]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Le(e){e[Xa]=!0}var Ws=new Set,Fs={};function Hl(e,t){aa(e,t),aa(e+"Capture",t)}function aa(e,t){for(Fs[e]=t,e=0;e<t.length;e++)Ws.add(t[e])}var Mh=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]*$"),Is={},Ps={};function Ch(e){return su.call(Ps,e)?!0:su.call(Is,e)?!1:Mh.test(e)?Ps[e]=!0:(Is[e]=!0,!1)}function Xn(e,t,l){if(Ch(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ln(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Lt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function er(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uh(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yu(e){if(!e._valueTracker){var t=er(e)?"checked":"value";e._valueTracker=Uh(e,t,""+e[t])}}function tr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=er(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Zn(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 Rh=/[\n"\\]/g;function gt(e){return e.replace(Rh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function pu(e,t,l,a,i,u,c,o){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xt(t)):e.value!==""+xt(t)&&(e.value=""+xt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?ju(e,c,xt(t)):l!=null?ju(e,c,xt(l)):a!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+xt(o):e.removeAttribute("name")}function lr(e,t,l,a,i,u,c,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){yu(e);return}l=l!=null?""+xt(l):"",t=t!=null?""+xt(t):l,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),yu(e)}function ju(e,t,l){t==="number"&&Zn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function na(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&a&&(e[l].defaultSelected=!0)}else{for(l=""+xt(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ar(e,t,l){if(t!=null&&(t=""+xt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+xt(l):""}function nr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(Mt(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=xt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),yu(e)}function ia(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Hh=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 ir(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Hh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ur(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&ir(e,i,a)}else for(var u in t)t.hasOwnProperty(u)&&ir(e,u,t[u])}function xu(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 qh=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"]]),Bh=/^[\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 Vn(e){return Bh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var gu=null;function bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ua=null,ca=null;function cr(e){var t=ta(e);if(t&&(e=t.stateNode)){var l=e[lt]||null;e:switch(e=t.stateNode,t.type){case"input":if(pu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+gt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var i=a[lt]||null;if(!i)throw Error(r(90));pu(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&tr(a)}break e;case"textarea":ar(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&na(e,!!l.multiple,t,!1)}}}var Su=!1;function sr(e,t,l){if(Su)return e(t,l);Su=!0;try{var a=e(t);return a}finally{if(Su=!1,(ua!==null||ca!==null)&&(Ci(),ua&&(t=ua,e=ca,ca=ua=null,cr(t),e)))for(t=0;t<e.length;t++)cr(e[t])}}function Za(e,t){var l=e.stateNode;if(l===null)return null;var a=l[lt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Vt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nu=!1;if(Vt)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){Nu=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{Nu=!1}var rl=null,Eu=null,kn=null;function rr(){if(kn)return kn;var e,t=Eu,l=t.length,a,i="value"in rl?rl.value:rl.textContent,u=i.length;for(e=0;e<l&&t[e]===i[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===i[u-a];a++);return kn=i.slice(e,1<a?1-a:void 0)}function Kn(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 Jn(){return!0}function or(){return!1}function at(e){function t(l,a,i,u,c){this._reactName=l,this._targetInst=i,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(l=e[o],this[o]=l?l(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Jn:or,this.isPropagationStopped=or,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Jn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Jn)},persist:function(){},isPersistent:Jn}),t}var ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$n=at(ql),ka=A({},ql,{view:0,detail:0}),wh=at(ka),Au,Tu,Ka,Wn=A({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ou,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!==Ka&&(Ka&&e.type==="mousemove"?(Au=e.screenX-Ka.screenX,Tu=e.screenY-Ka.screenY):Tu=Au=0,Ka=e),Au)},movementY:function(e){return"movementY"in e?e.movementY:Tu}}),dr=at(Wn),Yh=A({},Wn,{dataTransfer:0}),Gh=at(Yh),Qh=A({},ka,{relatedTarget:0}),zu=at(Qh),Xh=A({},ql,{animationName:0,elapsedTime:0,pseudoElement:0}),Lh=at(Xh),Zh=A({},ql,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vh=at(Zh),kh=A({},ql,{data:0}),fr=at(kh),Kh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jh={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"},$h={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$h[e])?!!t[e]:!1}function Ou(){return Wh}var Fh=A({},ka,{key:function(e){if(e.key){var t=Kh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Kn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ou,charCode:function(e){return e.type==="keypress"?Kn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Kn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ih=at(Fh),Ph=A({},Wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hr=at(Ph),em=A({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),tm=at(em),lm=A({},ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),am=at(lm),nm=A({},Wn,{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}),im=at(nm),um=A({},ql,{newState:0,oldState:0}),cm=at(um),sm=[9,13,27,32],_u=Vt&&"CompositionEvent"in window,Ja=null;Vt&&"documentMode"in document&&(Ja=document.documentMode);var rm=Vt&&"TextEvent"in window&&!Ja,mr=Vt&&(!_u||Ja&&8<Ja&&11>=Ja),vr=" ",yr=!1;function pr(e,t){switch(e){case"keyup":return sm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function om(e,t){switch(e){case"compositionend":return jr(t);case"keypress":return t.which!==32?null:(yr=!0,vr);case"textInput":return e=t.data,e===vr&&yr?null:e;default:return null}}function dm(e,t){if(sa)return e==="compositionend"||!_u&&pr(e,t)?(e=rr(),kn=Eu=rl=null,sa=!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 mr&&t.locale!=="ko"?null:t.data;default:return null}}var fm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fm[e.type]:t==="textarea"}function gr(e,t,l,a){ua?ca?ca.push(a):ca=[a]:ua=a,t=Yi(t,"onChange"),0<t.length&&(l=new $n("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var $a=null,Wa=null;function hm(e){af(e,0)}function Fn(e){var t=La(e);if(tr(t))return e}function br(e,t){if(e==="change")return t}var Sr=!1;if(Vt){var Du;if(Vt){var Mu="oninput"in document;if(!Mu){var Nr=document.createElement("div");Nr.setAttribute("oninput","return;"),Mu=typeof Nr.oninput=="function"}Du=Mu}else Du=!1;Sr=Du&&(!document.documentMode||9<document.documentMode)}function Er(){$a&&($a.detachEvent("onpropertychange",Ar),Wa=$a=null)}function Ar(e){if(e.propertyName==="value"&&Fn(Wa)){var t=[];gr(t,Wa,e,bu(e)),sr(hm,t)}}function mm(e,t,l){e==="focusin"?(Er(),$a=t,Wa=l,$a.attachEvent("onpropertychange",Ar)):e==="focusout"&&Er()}function vm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fn(Wa)}function ym(e,t){if(e==="click")return Fn(t)}function pm(e,t){if(e==="input"||e==="change")return Fn(t)}function jm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ft=typeof Object.is=="function"?Object.is:jm;function Fa(e,t){if(ft(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var i=l[a];if(!su.call(t,i)||!ft(e[i],t[i]))return!1}return!0}function Tr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zr(e,t){var l=Tr(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Tr(l)}}function Or(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Or(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _r(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Zn(e.document)}return t}function Cu(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 xm=Vt&&"documentMode"in document&&11>=document.documentMode,ra=null,Uu=null,Ia=null,Ru=!1;function Dr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ru||ra==null||ra!==Zn(a)||(a=ra,"selectionStart"in a&&Cu(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}),Ia&&Fa(Ia,a)||(Ia=a,a=Yi(Uu,"onSelect"),0<a.length&&(t=new $n("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ra)))}function Bl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var oa={animationend:Bl("Animation","AnimationEnd"),animationiteration:Bl("Animation","AnimationIteration"),animationstart:Bl("Animation","AnimationStart"),transitionrun:Bl("Transition","TransitionRun"),transitionstart:Bl("Transition","TransitionStart"),transitioncancel:Bl("Transition","TransitionCancel"),transitionend:Bl("Transition","TransitionEnd")},Hu={},Mr={};Vt&&(Mr=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function wl(e){if(Hu[e])return Hu[e];if(!oa[e])return e;var t=oa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Mr)return Hu[e]=t[l];return e}var Cr=wl("animationend"),Ur=wl("animationiteration"),Rr=wl("animationstart"),gm=wl("transitionrun"),bm=wl("transitionstart"),Sm=wl("transitioncancel"),Hr=wl("transitionend"),qr=new Map,qu="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(" ");qu.push("scrollEnd");function Ct(e,t){qr.set(e,t),Hl(t,[e])}var In=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)},bt=[],da=0,Bu=0;function Pn(){for(var e=da,t=Bu=da=0;t<e;){var l=bt[t];bt[t++]=null;var a=bt[t];bt[t++]=null;var i=bt[t];bt[t++]=null;var u=bt[t];if(bt[t++]=null,a!==null&&i!==null){var c=a.pending;c===null?i.next=i:(i.next=c.next,c.next=i),a.pending=i}u!==0&&Br(l,i,u)}}function ei(e,t,l,a){bt[da++]=e,bt[da++]=t,bt[da++]=l,bt[da++]=a,Bu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function wu(e,t,l,a){return ei(e,t,l,a),ti(e)}function Yl(e,t){return ei(e,null,null,t),ti(e)}function Br(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var i=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-dt(l),e=u.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),u):null}function ti(e){if(50<bn)throw bn=0,Kc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fa={};function Nm(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,l,a){return new Nm(e,t,l,a)}function Yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kt(e,t){var l=e.alternate;return l===null?(l=ht(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function wr(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function li(e,t,l,a,i,u){var c=0;if(a=e,typeof e=="function")Yu(e)&&(c=1);else if(typeof e=="string")c=Ov(e,l,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Me:return e=ht(31,l,t,i),e.elementType=Me,e.lanes=u,e;case L:return Gl(l.children,i,u,t);case q:c=8,i|=24;break;case N:return e=ht(12,l,t,i|2),e.elementType=N,e.lanes=u,e;case ze:return e=ht(13,l,t,i),e.elementType=ze,e.lanes=u,e;case De:return e=ht(19,l,t,i),e.elementType=De,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case w:c=10;break e;case G:c=9;break e;case ie:c=11;break e;case H:c=14;break e;case fe:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=ht(c,l,t,i),t.elementType=e,t.type=a,t.lanes=u,t}function Gl(e,t,l,a){return e=ht(7,e,a,t),e.lanes=l,e}function Gu(e,t,l){return e=ht(6,e,null,t),e.lanes=l,e}function Yr(e){var t=ht(18,null,null,0);return t.stateNode=e,t}function Qu(e,t,l){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gr=new WeakMap;function St(e,t){if(typeof e=="object"&&e!==null){var l=Gr.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ys(t)},Gr.set(e,t),t)}return{value:e,source:t,stack:Ys(t)}}var ha=[],ma=0,ai=null,Pa=0,Nt=[],Et=0,ol=null,wt=1,Yt="";function Kt(e,t){ha[ma++]=Pa,ha[ma++]=ai,ai=e,Pa=t}function Qr(e,t,l){Nt[Et++]=wt,Nt[Et++]=Yt,Nt[Et++]=ol,ol=e;var a=wt;e=Yt;var i=32-dt(a)-1;a&=~(1<<i),l+=1;var u=32-dt(t)+i;if(30<u){var c=i-i%5;u=(a&(1<<c)-1).toString(32),a>>=c,i-=c,wt=1<<32-dt(t)+i|l<<i|a,Yt=u+e}else wt=1<<u|l<<i|a,Yt=e}function Xu(e){e.return!==null&&(Kt(e,1),Qr(e,1,0))}function Lu(e){for(;e===ai;)ai=ha[--ma],ha[ma]=null,Pa=ha[--ma],ha[ma]=null;for(;e===ol;)ol=Nt[--Et],Nt[Et]=null,Yt=Nt[--Et],Nt[Et]=null,wt=Nt[--Et],Nt[Et]=null}function Xr(e,t){Nt[Et++]=wt,Nt[Et++]=Yt,Nt[Et++]=ol,wt=t.id,Yt=t.overflow,ol=e}var Ke=null,Ae=null,de=!1,dl=null,At=!1,Zu=Error(r(519));function fl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw en(St(t,e)),Zu}function Lr(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[ke]=e,t[lt]=a,l){case"dialog":se("cancel",t),se("close",t);break;case"iframe":case"object":case"embed":se("load",t);break;case"video":case"audio":for(l=0;l<Nn.length;l++)se(Nn[l],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),lr(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),nr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||sf(t.textContent,l)?(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=Zt),t=!0):t=!1,t||fl(e,!0)}function Zr(e){for(Ke=e.return;Ke;)switch(Ke.tag){case 5:case 31:case 13:At=!1;return;case 27:case 3:At=!0;return;default:Ke=Ke.return}}function va(e){if(e!==Ke)return!1;if(!de)return Zr(e),de=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ss(e.type,e.memoizedProps)),l=!l),l&&Ae&&fl(e),Zr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ae=pf(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ae=pf(e)}else t===27?(t=Ae,Tl(e.type)?(e=hs,hs=null,Ae=e):Ae=t):Ae=Ke?zt(e.stateNode.nextSibling):null;return!0}function Ql(){Ae=Ke=null,de=!1}function Vu(){var e=dl;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),dl=null),e}function en(e){dl===null?dl=[e]:dl.push(e)}var ku=v(null),Xl=null,Jt=null;function hl(e,t,l){X(ku,t._currentValue),t._currentValue=l}function $t(e){e._currentValue=ku.current,R(ku)}function Ku(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Ju(e,t,l,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var c=i.child;u=u.firstContext;e:for(;u!==null;){var o=u;u=i;for(var f=0;f<t.length;f++)if(o.context===t[f]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),Ku(u.return,l,e),a||(c=null);break e}u=o.next}}else if(i.tag===18){if(c=i.return,c===null)throw Error(r(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),Ku(c,l,e),c=null}else c=i.child;if(c!==null)c.return=i;else for(c=i;c!==null;){if(c===e){c=null;break}if(i=c.sibling,i!==null){i.return=c.return,c=i;break}c=c.return}i=c}}function ya(e,t,l,a){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var c=i.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var o=i.type;ft(i.pendingProps.value,c.value)||(e!==null?e.push(o):e=[o])}}else if(i===ye.current){if(c=i.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(On):e=[On])}i=i.return}e!==null&&Ju(t,e,l,a),t.flags|=262144}function ni(e){for(e=e.firstContext;e!==null;){if(!ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ll(e){Xl=e,Jt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Je(e){return Vr(Xl,e)}function ii(e,t){return Xl===null&&Ll(e),Vr(e,t)}function Vr(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Jt===null){if(e===null)throw Error(r(308));Jt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Jt=Jt.next=t;return l}var Em=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Am=s.unstable_scheduleCallback,Tm=s.unstable_NormalPriority,Be={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $u(){return{controller:new Em,data:new Map,refCount:0}}function tn(e){e.refCount--,e.refCount===0&&Am(Tm,function(){e.controller.abort()})}var ln=null,Wu=0,pa=0,ja=null;function zm(e,t){if(ln===null){var l=ln=[];Wu=0,pa=Pc(),ja={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Wu++,t.then(kr,kr),t}function kr(){if(--Wu===0&&ln!==null){ja!==null&&(ja.status="fulfilled");var e=ln;ln=null,pa=0,ja=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Om(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<l.length;i++)(0,l[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),a}var Kr=O.S;O.S=function(e,t){Md=rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&zm(e,t),Kr!==null&&Kr(e,t)};var Zl=v(null);function Fu(){var e=Zl.current;return e!==null?e:Ee.pooledCache}function ui(e,t){t===null?X(Zl,Zl.current):X(Zl,t.pool)}function Jr(){var e=Fu();return e===null?null:{parent:Be._currentValue,pool:e}}var xa=Error(r(460)),Iu=Error(r(474)),ci=Error(r(542)),si={then:function(){}};function $r(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wr(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Zt,Zt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ir(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=Ee,e!==null&&100<e.shellSuspendCounter)throw Error(r(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,Ir(e),e}throw kl=t,xa}}function Vl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(kl=l,xa):l}}var kl=null;function Fr(){if(kl===null)throw Error(r(459));var e=kl;return kl=null,e}function Ir(e){if(e===xa||e===ci)throw Error(r(483))}var ga=null,an=0;function ri(e){var t=an;return an+=1,ga===null&&(ga=[]),Wr(ga,e,t)}function nn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function oi(e,t){throw t.$$typeof===Y?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Pr(e){function t(x,m){if(e){var b=x.deletions;b===null?(x.deletions=[m],x.flags|=16):b.push(m)}}function l(x,m){if(!e)return null;for(;m!==null;)t(x,m),m=m.sibling;return null}function a(x){for(var m=new Map;x!==null;)x.key!==null?m.set(x.key,x):m.set(x.index,x),x=x.sibling;return m}function i(x,m){return x=kt(x,m),x.index=0,x.sibling=null,x}function u(x,m,b){return x.index=b,e?(b=x.alternate,b!==null?(b=b.index,b<m?(x.flags|=67108866,m):b):(x.flags|=67108866,m)):(x.flags|=1048576,m)}function c(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function o(x,m,b,D){return m===null||m.tag!==6?(m=Gu(b,x.mode,D),m.return=x,m):(m=i(m,b),m.return=x,m)}function f(x,m,b,D){var J=b.type;return J===L?z(x,m,b.props.children,D,b.key):m!==null&&(m.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===fe&&Vl(J)===m.type)?(m=i(m,b.props),nn(m,b),m.return=x,m):(m=li(b.type,b.key,b.props,null,x.mode,D),nn(m,b),m.return=x,m)}function S(x,m,b,D){return m===null||m.tag!==4||m.stateNode.containerInfo!==b.containerInfo||m.stateNode.implementation!==b.implementation?(m=Qu(b,x.mode,D),m.return=x,m):(m=i(m,b.children||[]),m.return=x,m)}function z(x,m,b,D,J){return m===null||m.tag!==7?(m=Gl(b,x.mode,D,J),m.return=x,m):(m=i(m,b),m.return=x,m)}function C(x,m,b){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Gu(""+m,x.mode,b),m.return=x,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case $:return b=li(m.type,m.key,m.props,null,x.mode,b),nn(b,m),b.return=x,b;case I:return m=Qu(m,x.mode,b),m.return=x,m;case fe:return m=Vl(m),C(x,m,b)}if(Mt(m)||tt(m))return m=Gl(m,x.mode,b,null),m.return=x,m;if(typeof m.then=="function")return C(x,ri(m),b);if(m.$$typeof===w)return C(x,ii(x,m),b);oi(x,m)}return null}function E(x,m,b,D){var J=m!==null?m.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return J!==null?null:o(x,m,""+b,D);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case $:return b.key===J?f(x,m,b,D):null;case I:return b.key===J?S(x,m,b,D):null;case fe:return b=Vl(b),E(x,m,b,D)}if(Mt(b)||tt(b))return J!==null?null:z(x,m,b,D,null);if(typeof b.then=="function")return E(x,m,ri(b),D);if(b.$$typeof===w)return E(x,m,ii(x,b),D);oi(x,b)}return null}function T(x,m,b,D,J){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return x=x.get(b)||null,o(m,x,""+D,J);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case $:return x=x.get(D.key===null?b:D.key)||null,f(m,x,D,J);case I:return x=x.get(D.key===null?b:D.key)||null,S(m,x,D,J);case fe:return D=Vl(D),T(x,m,b,D,J)}if(Mt(D)||tt(D))return x=x.get(b)||null,z(m,x,D,J,null);if(typeof D.then=="function")return T(x,m,b,ri(D),J);if(D.$$typeof===w)return T(x,m,b,ii(m,D),J);oi(m,D)}return null}function Z(x,m,b,D){for(var J=null,he=null,k=m,ae=m=0,oe=null;k!==null&&ae<b.length;ae++){k.index>ae?(oe=k,k=null):oe=k.sibling;var me=E(x,k,b[ae],D);if(me===null){k===null&&(k=oe);break}e&&k&&me.alternate===null&&t(x,k),m=u(me,m,ae),he===null?J=me:he.sibling=me,he=me,k=oe}if(ae===b.length)return l(x,k),de&&Kt(x,ae),J;if(k===null){for(;ae<b.length;ae++)k=C(x,b[ae],D),k!==null&&(m=u(k,m,ae),he===null?J=k:he.sibling=k,he=k);return de&&Kt(x,ae),J}for(k=a(k);ae<b.length;ae++)oe=T(k,x,ae,b[ae],D),oe!==null&&(e&&oe.alternate!==null&&k.delete(oe.key===null?ae:oe.key),m=u(oe,m,ae),he===null?J=oe:he.sibling=oe,he=oe);return e&&k.forEach(function(Ml){return t(x,Ml)}),de&&Kt(x,ae),J}function W(x,m,b,D){if(b==null)throw Error(r(151));for(var J=null,he=null,k=m,ae=m=0,oe=null,me=b.next();k!==null&&!me.done;ae++,me=b.next()){k.index>ae?(oe=k,k=null):oe=k.sibling;var Ml=E(x,k,me.value,D);if(Ml===null){k===null&&(k=oe);break}e&&k&&Ml.alternate===null&&t(x,k),m=u(Ml,m,ae),he===null?J=Ml:he.sibling=Ml,he=Ml,k=oe}if(me.done)return l(x,k),de&&Kt(x,ae),J;if(k===null){for(;!me.done;ae++,me=b.next())me=C(x,me.value,D),me!==null&&(m=u(me,m,ae),he===null?J=me:he.sibling=me,he=me);return de&&Kt(x,ae),J}for(k=a(k);!me.done;ae++,me=b.next())me=T(k,x,ae,me.value,D),me!==null&&(e&&me.alternate!==null&&k.delete(me.key===null?ae:me.key),m=u(me,m,ae),he===null?J=me:he.sibling=me,he=me);return e&&k.forEach(function(Yv){return t(x,Yv)}),de&&Kt(x,ae),J}function Se(x,m,b,D){if(typeof b=="object"&&b!==null&&b.type===L&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case $:e:{for(var J=b.key;m!==null;){if(m.key===J){if(J=b.type,J===L){if(m.tag===7){l(x,m.sibling),D=i(m,b.props.children),D.return=x,x=D;break e}}else if(m.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===fe&&Vl(J)===m.type){l(x,m.sibling),D=i(m,b.props),nn(D,b),D.return=x,x=D;break e}l(x,m);break}else t(x,m);m=m.sibling}b.type===L?(D=Gl(b.props.children,x.mode,D,b.key),D.return=x,x=D):(D=li(b.type,b.key,b.props,null,x.mode,D),nn(D,b),D.return=x,x=D)}return c(x);case I:e:{for(J=b.key;m!==null;){if(m.key===J)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){l(x,m.sibling),D=i(m,b.children||[]),D.return=x,x=D;break e}else{l(x,m);break}else t(x,m);m=m.sibling}D=Qu(b,x.mode,D),D.return=x,x=D}return c(x);case fe:return b=Vl(b),Se(x,m,b,D)}if(Mt(b))return Z(x,m,b,D);if(tt(b)){if(J=tt(b),typeof J!="function")throw Error(r(150));return b=J.call(b),W(x,m,b,D)}if(typeof b.then=="function")return Se(x,m,ri(b),D);if(b.$$typeof===w)return Se(x,m,ii(x,b),D);oi(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,m!==null&&m.tag===6?(l(x,m.sibling),D=i(m,b),D.return=x,x=D):(l(x,m),D=Gu(b,x.mode,D),D.return=x,x=D),c(x)):l(x,m)}return function(x,m,b,D){try{an=0;var J=Se(x,m,b,D);return ga=null,J}catch(k){if(k===xa||k===ci)throw k;var he=ht(29,k,null,x.mode);return he.lanes=D,he.return=x,he}}}var Kl=Pr(!0),eo=Pr(!1),ml=!1;function Pu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ec(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 vl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function yl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ve&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=ti(e),Br(e,null,l),t}return ei(e,a,t,l),ti(e)}function un(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Vs(e,l)}}function tc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?i=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?i=u=t:u=u.next=t}else i=u=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var lc=!1;function cn(){if(lc){var e=ja;if(e!==null)throw e}}function sn(e,t,l,a){lc=!1;var i=e.updateQueue;ml=!1;var u=i.firstBaseUpdate,c=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var f=o,S=f.next;f.next=null,c===null?u=S:c.next=S,c=f;var z=e.alternate;z!==null&&(z=z.updateQueue,o=z.lastBaseUpdate,o!==c&&(o===null?z.firstBaseUpdate=S:o.next=S,z.lastBaseUpdate=f))}if(u!==null){var C=i.baseState;c=0,z=S=f=null,o=u;do{var E=o.lane&-536870913,T=E!==o.lane;if(T?(re&E)===E:(a&E)===E){E!==0&&E===pa&&(lc=!0),z!==null&&(z=z.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var Z=e,W=o;E=t;var Se=l;switch(W.tag){case 1:if(Z=W.payload,typeof Z=="function"){C=Z.call(Se,C,E);break e}C=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=W.payload,E=typeof Z=="function"?Z.call(Se,C,E):Z,E==null)break e;C=A({},C,E);break e;case 2:ml=!0}}E=o.callback,E!==null&&(e.flags|=64,T&&(e.flags|=8192),T=i.callbacks,T===null?i.callbacks=[E]:T.push(E))}else T={lane:E,tag:o.tag,payload:o.payload,callback:o.callback,next:null},z===null?(S=z=T,f=C):z=z.next=T,c|=E;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;T=o,o=T.next,T.next=null,i.lastBaseUpdate=T,i.shared.pending=null}}while(!0);z===null&&(f=C),i.baseState=f,i.firstBaseUpdate=S,i.lastBaseUpdate=z,u===null&&(i.shared.lanes=0),bl|=c,e.lanes=c,e.memoizedState=C}}function to(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function lo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)to(l[e],t)}var ba=v(null),di=v(0);function ao(e,t){e=nl,X(di,e),X(ba,t),nl=e|t.baseLanes}function ac(){X(di,nl),X(ba,ba.current)}function nc(){nl=di.current,R(ba),R(di)}var mt=v(null),Tt=null;function pl(e){var t=e.alternate;X(He,He.current&1),X(mt,e),Tt===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(Tt=e)}function ic(e){X(He,He.current),X(mt,e),Tt===null&&(Tt=e)}function no(e){e.tag===22?(X(He,He.current),X(mt,e),Tt===null&&(Tt=e)):jl()}function jl(){X(He,He.current),X(mt,mt.current)}function vt(e){R(mt),Tt===e&&(Tt=null),R(He)}var He=v(0);function fi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||ds(l)||fs(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wt=0,te=null,ge=null,we=null,hi=!1,Sa=!1,Jl=!1,mi=0,rn=0,Na=null,_m=0;function Ce(){throw Error(r(321))}function uc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ft(e[l],t[l]))return!1;return!0}function cc(e,t,l,a,i,u){return Wt=u,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Xo:Sc,Jl=!1,u=l(a,i),Jl=!1,Sa&&(u=uo(t,l,a,i)),io(e),u}function io(e){O.H=fn;var t=ge!==null&&ge.next!==null;if(Wt=0,we=ge=te=null,hi=!1,rn=0,Na=null,t)throw Error(r(300));e===null||Ye||(e=e.dependencies,e!==null&&ni(e)&&(Ye=!0))}function uo(e,t,l,a){te=e;var i=0;do{if(Sa&&(Na=null),rn=0,Sa=!1,25<=i)throw Error(r(301));if(i+=1,we=ge=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}O.H=Lo,u=t(l,a)}while(Sa);return u}function Dm(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?on(t):t,e=e.useState()[0],(ge!==null?ge.memoizedState:null)!==e&&(te.flags|=1024),t}function sc(){var e=mi!==0;return mi=0,e}function rc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function oc(e){if(hi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hi=!1}Wt=0,we=ge=te=null,Sa=!1,rn=mi=0,Na=null}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return we===null?te.memoizedState=we=e:we=we.next=e,we}function qe(){if(ge===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=we===null?te.memoizedState:we.next;if(t!==null)we=t,ge=e;else{if(e===null)throw te.alternate===null?Error(r(467)):Error(r(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},we===null?te.memoizedState=we=e:we=we.next=e}return we}function vi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function on(e){var t=rn;return rn+=1,Na===null&&(Na=[]),e=Wr(Na,e,t),t=te,(we===null?t.memoizedState:we.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Xo:Sc),e}function yi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return on(e);if(e.$$typeof===w)return Je(e)}throw Error(r(438,String(e)))}function dc(e){var t=null,l=te.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=te.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}),l===null&&(l=vi(),te.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Il;return t.index++,l}function Ft(e,t){return typeof t=="function"?t(e):t}function pi(e){var t=qe();return fc(t,ge,e)}function fc(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var i=e.baseQueue,u=a.pending;if(u!==null){if(i!==null){var c=i.next;i.next=u.next,u.next=c}t.baseQueue=i=u,a.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var o=c=null,f=null,S=t,z=!1;do{var C=S.lane&-536870913;if(C!==S.lane?(re&C)===C:(Wt&C)===C){var E=S.revertLane;if(E===0)f!==null&&(f=f.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),C===pa&&(z=!0);else if((Wt&E)===E){S=S.next,E===pa&&(z=!0);continue}else C={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},f===null?(o=f=C,c=u):f=f.next=C,te.lanes|=E,bl|=E;C=S.action,Jl&&l(u,C),u=S.hasEagerState?S.eagerState:l(u,C)}else E={lane:C,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},f===null?(o=f=E,c=u):f=f.next=E,te.lanes|=C,bl|=C;S=S.next}while(S!==null&&S!==t);if(f===null?c=u:f.next=o,!ft(u,e.memoizedState)&&(Ye=!0,z&&(l=ja,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=f,a.lastRenderedState=u}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function hc(e){var t=qe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,i=l.pending,u=t.memoizedState;if(i!==null){l.pending=null;var c=i=i.next;do u=e(u,c.action),c=c.next;while(c!==i);ft(u,t.memoizedState)||(Ye=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function co(e,t,l){var a=te,i=qe(),u=de;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!ft((ge||i).memoizedState,l);if(c&&(i.memoizedState=l,Ye=!0),i=i.queue,yc(oo.bind(null,a,i,e),[e]),i.getSnapshot!==t||c||we!==null&&we.memoizedState.tag&1){if(a.flags|=2048,Ea(9,{destroy:void 0},ro.bind(null,a,i,l,t),null),Ee===null)throw Error(r(349));u||(Wt&127)!==0||so(a,t,l)}return l}function so(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=te.updateQueue,t===null?(t=vi(),te.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function ro(e,t,l,a){t.value=l,t.getSnapshot=a,fo(t)&&ho(e)}function oo(e,t,l){return l(function(){fo(t)&&ho(e)})}function fo(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ft(e,l)}catch{return!0}}function ho(e){var t=Yl(e,2);t!==null&&st(t,e,2)}function mc(e){var t=et();if(typeof e=="function"){var l=e;if(e=l(),Jl){cl(!0);try{l()}finally{cl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ft,lastRenderedState:e},t}function mo(e,t,l,a){return e.baseState=l,fc(e,ge,typeof a=="function"?a:Ft)}function Mm(e,t,l,a,i){if(gi(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};O.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,vo(t,u)):(u.next=l.next,t.pending=l.next=u)}}function vo(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var u=O.T,c={};O.T=c;try{var o=l(i,a),f=O.S;f!==null&&f(c,o),yo(e,t,o)}catch(S){vc(e,t,S)}finally{u!==null&&c.types!==null&&(u.types=c.types),O.T=u}}else try{u=l(i,a),yo(e,t,u)}catch(S){vc(e,t,S)}}function yo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){po(e,t,a)},function(a){return vc(e,t,a)}):po(e,t,l)}function po(e,t,l){t.status="fulfilled",t.value=l,jo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,vo(e,l)))}function vc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,jo(t),t=t.next;while(t!==a)}e.action=null}function jo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function xo(e,t){return t}function go(e,t){if(de){var l=Ee.formState;if(l!==null){e:{var a=te;if(de){if(Ae){t:{for(var i=Ae,u=At;i.nodeType!==8;){if(!u){i=null;break t}if(i=zt(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Ae=zt(i.nextSibling),a=i.data==="F!";break e}}fl(a)}a=!1}a&&(t=l[0])}}return l=et(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xo,lastRenderedState:t},l.queue=a,l=Yo.bind(null,te,a),a.dispatch=l,a=mc(!1),u=bc.bind(null,te,!1,a.queue),a=et(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=Mm.bind(null,te,i,u,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function bo(e){var t=qe();return So(t,ge,e)}function So(e,t,l){if(t=fc(e,t,xo)[0],e=pi(Ft)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=on(t)}catch(c){throw c===xa?ci:c}else a=t;t=qe();var i=t.queue,u=i.dispatch;return l!==t.memoizedState&&(te.flags|=2048,Ea(9,{destroy:void 0},Cm.bind(null,i,l),null)),[a,u,e]}function Cm(e,t){e.action=t}function No(e){var t=qe(),l=ge;if(l!==null)return So(t,l,e);qe(),t=t.memoizedState,l=qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ea(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=te.updateQueue,t===null&&(t=vi(),te.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Eo(){return qe().memoizedState}function ji(e,t,l,a){var i=et();te.flags|=e,i.memoizedState=Ea(1|t,{destroy:void 0},l,a===void 0?null:a)}function xi(e,t,l,a){var i=qe();a=a===void 0?null:a;var u=i.memoizedState.inst;ge!==null&&a!==null&&uc(a,ge.memoizedState.deps)?i.memoizedState=Ea(t,u,l,a):(te.flags|=e,i.memoizedState=Ea(1|t,u,l,a))}function Ao(e,t){ji(8390656,8,e,t)}function yc(e,t){xi(2048,8,e,t)}function Um(e){te.flags|=4;var t=te.updateQueue;if(t===null)t=vi(),te.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function To(e){var t=qe().memoizedState;return Um({ref:t,nextImpl:e}),function(){if((ve&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function zo(e,t){return xi(4,2,e,t)}function Oo(e,t){return xi(4,4,e,t)}function _o(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Do(e,t,l){l=l!=null?l.concat([e]):null,xi(4,4,_o.bind(null,t,e),l)}function pc(){}function Mo(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&uc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Co(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&uc(t,a[1]))return a[0];if(a=e(),Jl){cl(!0);try{e()}finally{cl(!1)}}return l.memoizedState=[a,t],a}function jc(e,t,l){return l===void 0||(Wt&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ud(),te.lanes|=e,bl|=e,l)}function Uo(e,t,l,a){return ft(l,t)?l:ba.current!==null?(e=jc(e,l,a),ft(e,t)||(Ye=!0),e):(Wt&42)===0||(Wt&1073741824)!==0&&(re&261930)===0?(Ye=!0,e.memoizedState=l):(e=Ud(),te.lanes|=e,bl|=e,t)}function Ro(e,t,l,a,i){var u=Q.p;Q.p=u!==0&&8>u?u:8;var c=O.T,o={};O.T=o,bc(e,!1,t,l);try{var f=i(),S=O.S;if(S!==null&&S(o,f),f!==null&&typeof f=="object"&&typeof f.then=="function"){var z=Om(f,a);dn(e,t,z,jt(e))}else dn(e,t,a,jt(e))}catch(C){dn(e,t,{then:function(){},status:"rejected",reason:C},jt())}finally{Q.p=u,c!==null&&o.types!==null&&(c.types=o.types),O.T=c}}function Rm(){}function xc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var i=Ho(e).queue;Ro(e,i,t,F,l===null?Rm:function(){return qo(e),l(a)})}function Ho(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ft,lastRenderedState:F},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ft,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qo(e){var t=Ho(e);t.next===null&&(t=e.alternate.memoizedState),dn(e,t.next.queue,{},jt())}function gc(){return Je(On)}function Bo(){return qe().memoizedState}function wo(){return qe().memoizedState}function Hm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=jt();e=vl(l);var a=yl(t,e,l);a!==null&&(st(a,t,l),un(a,t,l)),t={cache:$u()},e.payload=t;return}t=t.return}}function qm(e,t,l){var a=jt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},gi(e)?Go(t,l):(l=wu(e,t,l,a),l!==null&&(st(l,e,a),Qo(l,t,a)))}function Yo(e,t,l){var a=jt();dn(e,t,l,a)}function dn(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(gi(e))Go(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,o=u(c,l);if(i.hasEagerState=!0,i.eagerState=o,ft(o,c))return ei(e,t,i,0),Ee===null&&Pn(),!1}catch{}if(l=wu(e,t,i,a),l!==null)return st(l,e,a),Qo(l,t,a),!0}return!1}function bc(e,t,l,a){if(a={lane:2,revertLane:Pc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},gi(e)){if(t)throw Error(r(479))}else t=wu(e,l,a,2),t!==null&&st(t,e,2)}function gi(e){var t=e.alternate;return e===te||t!==null&&t===te}function Go(e,t){Sa=hi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Qo(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Vs(e,l)}}var fn={readContext:Je,use:yi,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useLayoutEffect:Ce,useInsertionEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useSyncExternalStore:Ce,useId:Ce,useHostTransitionStatus:Ce,useFormState:Ce,useActionState:Ce,useOptimistic:Ce,useMemoCache:Ce,useCacheRefresh:Ce};fn.useEffectEvent=Ce;var Xo={readContext:Je,use:yi,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:Ao,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ji(4194308,4,_o.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ji(4194308,4,e,t)},useInsertionEffect:function(e,t){ji(4,2,e,t)},useMemo:function(e,t){var l=et();t=t===void 0?null:t;var a=e();if(Jl){cl(!0);try{e()}finally{cl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=et();if(l!==void 0){var i=l(t);if(Jl){cl(!0);try{l(t)}finally{cl(!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=qm.bind(null,te,e),[a.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:function(e){e=mc(e);var t=e.queue,l=Yo.bind(null,te,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:pc,useDeferredValue:function(e,t){var l=et();return jc(l,e,t)},useTransition:function(){var e=mc(!1);return e=Ro.bind(null,te,e.queue,!0,!1),et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=te,i=et();if(de){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ee===null)throw Error(r(349));(re&127)!==0||so(a,t,l)}i.memoizedState=l;var u={value:l,getSnapshot:t};return i.queue=u,Ao(oo.bind(null,a,u,e),[e]),a.flags|=2048,Ea(9,{destroy:void 0},ro.bind(null,a,u,l,t),null),l},useId:function(){var e=et(),t=Ee.identifierPrefix;if(de){var l=Yt,a=wt;l=(a&~(1<<32-dt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=mi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=_m++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:gc,useFormState:go,useActionState:go,useOptimistic:function(e){var t=et();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=bc.bind(null,te,!0,l),l.dispatch=t,[e,t]},useMemoCache:dc,useCacheRefresh:function(){return et().memoizedState=Hm.bind(null,te)},useEffectEvent:function(e){var t=et(),l={impl:e};return t.memoizedState=l,function(){if((ve&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Sc={readContext:Je,use:yi,useCallback:Mo,useContext:Je,useEffect:yc,useImperativeHandle:Do,useInsertionEffect:zo,useLayoutEffect:Oo,useMemo:Co,useReducer:pi,useRef:Eo,useState:function(){return pi(Ft)},useDebugValue:pc,useDeferredValue:function(e,t){var l=qe();return Uo(l,ge.memoizedState,e,t)},useTransition:function(){var e=pi(Ft)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:co,useId:Bo,useHostTransitionStatus:gc,useFormState:bo,useActionState:bo,useOptimistic:function(e,t){var l=qe();return mo(l,ge,e,t)},useMemoCache:dc,useCacheRefresh:wo};Sc.useEffectEvent=To;var Lo={readContext:Je,use:yi,useCallback:Mo,useContext:Je,useEffect:yc,useImperativeHandle:Do,useInsertionEffect:zo,useLayoutEffect:Oo,useMemo:Co,useReducer:hc,useRef:Eo,useState:function(){return hc(Ft)},useDebugValue:pc,useDeferredValue:function(e,t){var l=qe();return ge===null?jc(l,e,t):Uo(l,ge.memoizedState,e,t)},useTransition:function(){var e=hc(Ft)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:co,useId:Bo,useHostTransitionStatus:gc,useFormState:No,useActionState:No,useOptimistic:function(e,t){var l=qe();return ge!==null?mo(l,ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:dc,useCacheRefresh:wo};Lo.useEffectEvent=To;function Nc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:A({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ec={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=jt(),i=vl(a);i.payload=t,l!=null&&(i.callback=l),t=yl(e,i,a),t!==null&&(st(t,e,a),un(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=jt(),i=vl(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=yl(e,i,a),t!==null&&(st(t,e,a),un(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=jt(),a=vl(l);a.tag=2,t!=null&&(a.callback=t),t=yl(e,a,l),t!==null&&(st(t,e,l),un(t,e,l))}};function Zo(e,t,l,a,i,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!Fa(l,a)||!Fa(i,u):!0}function Vo(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Ec.enqueueReplaceState(t,t.state,null)}function $l(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=A({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function ko(e){In(e)}function Ko(e){console.error(e)}function Jo(e){In(e)}function bi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function $o(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ac(e,t,l){return l=vl(l),l.tag=3,l.payload={element:null},l.callback=function(){bi(e,t)},l}function Wo(e){return e=vl(e),e.tag=3,e}function Fo(e,t,l,a){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var u=a.value;e.payload=function(){return i(u)},e.callback=function(){$o(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){$o(t,l,a),typeof i!="function"&&(Sl===null?Sl=new Set([this]):Sl.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function Bm(e,t,l,a,i){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ya(t,l,i,!0),l=mt.current,l!==null){switch(l.tag){case 31:case 13:return Tt===null?Ui():l.alternate===null&&Ue===0&&(Ue=3),l.flags&=-257,l.flags|=65536,l.lanes=i,a===si?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Wc(e,a,i)),!1;case 22:return l.flags|=65536,a===si?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Wc(e,a,i)),!1}throw Error(r(435,l.tag))}return Wc(e,a,i),Ui(),!1}if(de)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==Zu&&(e=Error(r(422),{cause:a}),en(St(e,l)))):(a!==Zu&&(t=Error(r(423),{cause:a}),en(St(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=St(a,l),i=Ac(e.stateNode,a,i),tc(e,i),Ue!==4&&(Ue=2)),!1;var u=Error(r(520),{cause:a});if(u=St(u,l),gn===null?gn=[u]:gn.push(u),Ue!==4&&(Ue=2),t===null)return!0;a=St(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=Ac(l.stateNode,a,e),tc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Sl===null||!Sl.has(u))))return l.flags|=65536,i&=-i,l.lanes|=i,i=Wo(i),Fo(i,e,l,a),tc(l,i),!1}l=l.return}while(l!==null);return!1}var Tc=Error(r(461)),Ye=!1;function $e(e,t,l,a){t.child=e===null?eo(t,null,l,a):Kl(t,e.child,l,a)}function Io(e,t,l,a,i){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var o in a)o!=="ref"&&(c[o]=a[o])}else c=a;return Ll(t),a=cc(e,t,l,c,u,i),o=sc(),e!==null&&!Ye?(rc(e,t,i),It(e,t,i)):(de&&o&&Xu(t),t.flags|=1,$e(e,t,a,i),t.child)}function Po(e,t,l,a,i){if(e===null){var u=l.type;return typeof u=="function"&&!Yu(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,ed(e,t,u,a,i)):(e=li(l.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Rc(e,i)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:Fa,l(c,a)&&e.ref===t.ref)return It(e,t,i)}return t.flags|=1,e=kt(u,a),e.ref=t.ref,e.return=t,t.child=e}function ed(e,t,l,a,i){if(e!==null){var u=e.memoizedProps;if(Fa(u,a)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=a=u,Rc(e,i))(e.flags&131072)!==0&&(Ye=!0);else return t.lanes=e.lanes,It(e,t,i)}return zc(e,t,l,a,i)}function td(e,t,l,a){var i=a.children,u=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(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~u}else a=0,t.child=null;return ld(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ui(t,u!==null?u.cachePool:null),u!==null?ao(t,u):ac(),no(t);else return a=t.lanes=536870912,ld(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(ui(t,u.cachePool),ao(t,u),jl(),t.memoizedState=null):(e!==null&&ui(t,null),ac(),jl());return $e(e,t,i,l),t.child}function hn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ld(e,t,l,a,i){var u=Fu();return u=u===null?null:{parent:Be._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&ui(t,null),ac(),no(t),e!==null&&ya(e,t,a,!0),t.childLanes=i,null}function Si(e,t){return t=Ei({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ad(e,t,l){return Kl(t,e.child,null,l),e=Si(t,t.pendingProps),e.flags|=2,vt(t),t.memoizedState=null,e}function wm(e,t,l){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(de){if(a.mode==="hidden")return e=Si(t,a),t.lanes=536870912,hn(null,e);if(ic(t),(e=Ae)?(e=yf(e,At),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ol!==null?{id:wt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=Yr(e),l.return=t,t.child=l,Ke=t,Ae=null)):e=null,e===null)throw fl(t);return t.lanes=536870912,null}return Si(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(ic(t),i)if(t.flags&256)t.flags&=-257,t=ad(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ye||ya(e,t,l,!1),i=(l&e.childLanes)!==0,Ye||i){if(a=Ee,a!==null&&(c=ks(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Yl(e,c),st(a,e,c),Tc;Ui(),t=ad(e,t,l)}else e=u.treeContext,Ae=zt(c.nextSibling),Ke=t,de=!0,dl=null,At=!1,e!==null&&Xr(t,e),t=Si(t,a),t.flags|=4096;return t}return e=kt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ni(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function zc(e,t,l,a,i){return Ll(t),l=cc(e,t,l,a,void 0,i),a=sc(),e!==null&&!Ye?(rc(e,t,i),It(e,t,i)):(de&&a&&Xu(t),t.flags|=1,$e(e,t,l,i),t.child)}function nd(e,t,l,a,i,u){return Ll(t),t.updateQueue=null,l=uo(t,a,l,i),io(e),a=sc(),e!==null&&!Ye?(rc(e,t,u),It(e,t,u)):(de&&a&&Xu(t),t.flags|=1,$e(e,t,l,u),t.child)}function id(e,t,l,a,i){if(Ll(t),t.stateNode===null){var u=fa,c=l.contextType;typeof c=="object"&&c!==null&&(u=Je(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ec,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Pu(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?Je(c):fa,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Nc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Ec.enqueueReplaceState(u,u.state,null),sn(t,a,u,i),cn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var o=t.memoizedProps,f=$l(l,o);u.props=f;var S=u.context,z=l.contextType;c=fa,typeof z=="object"&&z!==null&&(c=Je(z));var C=l.getDerivedStateFromProps;z=typeof C=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,z||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||S!==c)&&Vo(t,u,a,c),ml=!1;var E=t.memoizedState;u.state=E,sn(t,a,u,i),cn(),S=t.memoizedState,o||E!==S||ml?(typeof C=="function"&&(Nc(t,l,C,a),S=t.memoizedState),(f=ml||Zo(t,l,f,a,E,S,c))?(z||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=S),u.props=a,u.state=S,u.context=c,a=f):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,ec(e,t),c=t.memoizedProps,z=$l(l,c),u.props=z,C=t.pendingProps,E=u.context,S=l.contextType,f=fa,typeof S=="object"&&S!==null&&(f=Je(S)),o=l.getDerivedStateFromProps,(S=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==C||E!==f)&&Vo(t,u,a,f),ml=!1,E=t.memoizedState,u.state=E,sn(t,a,u,i),cn();var T=t.memoizedState;c!==C||E!==T||ml||e!==null&&e.dependencies!==null&&ni(e.dependencies)?(typeof o=="function"&&(Nc(t,l,o,a),T=t.memoizedState),(z=ml||Zo(t,l,z,a,E,T,f)||e!==null&&e.dependencies!==null&&ni(e.dependencies))?(S||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,T,f),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,T,f)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=T),u.props=a,u.state=T,u.context=f,a=z):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Ni(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Kl(t,e.child,null,i),t.child=Kl(t,null,l,i)):$e(e,t,l,i),t.memoizedState=u.state,e=t.child):e=It(e,t,i),e}function ud(e,t,l,a){return Ql(),t.flags|=256,$e(e,t,l,a),t.child}var Oc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _c(e){return{baseLanes:e,cachePool:Jr()}}function Dc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=pt),e}function cd(e,t,l){var a=t.pendingProps,i=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(He.current&2)!==0),c&&(i=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(de){if(i?pl(t):jl(),(e=Ae)?(e=yf(e,At),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ol!==null?{id:wt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=Yr(e),l.return=t,t.child=l,Ke=t,Ae=null)):e=null,e===null)throw fl(t);return fs(e)?t.lanes=32:t.lanes=536870912,null}var o=a.children;return a=a.fallback,i?(jl(),i=t.mode,o=Ei({mode:"hidden",children:o},i),a=Gl(a,i,l,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=_c(l),a.childLanes=Dc(e,c,l),t.memoizedState=Oc,hn(null,a)):(pl(t),Mc(t,o))}var f=e.memoizedState;if(f!==null&&(o=f.dehydrated,o!==null)){if(u)t.flags&256?(pl(t),t.flags&=-257,t=Cc(e,t,l)):t.memoizedState!==null?(jl(),t.child=e.child,t.flags|=128,t=null):(jl(),o=a.fallback,i=t.mode,a=Ei({mode:"visible",children:a.children},i),o=Gl(o,i,l,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Kl(t,e.child,null,l),a=t.child,a.memoizedState=_c(l),a.childLanes=Dc(e,c,l),t.memoizedState=Oc,t=hn(null,a));else if(pl(t),fs(o)){if(c=o.nextSibling&&o.nextSibling.dataset,c)var S=c.dgst;c=S,a=Error(r(419)),a.stack="",a.digest=c,en({value:a,source:null,stack:null}),t=Cc(e,t,l)}else if(Ye||ya(e,t,l,!1),c=(l&e.childLanes)!==0,Ye||c){if(c=Ee,c!==null&&(a=ks(c,l),a!==0&&a!==f.retryLane))throw f.retryLane=a,Yl(e,a),st(c,e,a),Tc;ds(o)||Ui(),t=Cc(e,t,l)}else ds(o)?(t.flags|=192,t.child=e.child,t=null):(e=f.treeContext,Ae=zt(o.nextSibling),Ke=t,de=!0,dl=null,At=!1,e!==null&&Xr(t,e),t=Mc(t,a.children),t.flags|=4096);return t}return i?(jl(),o=a.fallback,i=t.mode,f=e.child,S=f.sibling,a=kt(f,{mode:"hidden",children:a.children}),a.subtreeFlags=f.subtreeFlags&65011712,S!==null?o=kt(S,o):(o=Gl(o,i,l,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,hn(null,a),a=t.child,o=e.child.memoizedState,o===null?o=_c(l):(i=o.cachePool,i!==null?(f=Be._currentValue,i=i.parent!==f?{parent:f,pool:f}:i):i=Jr(),o={baseLanes:o.baseLanes|l,cachePool:i}),a.memoizedState=o,a.childLanes=Dc(e,c,l),t.memoizedState=Oc,hn(e.child,a)):(pl(t),l=e.child,e=l.sibling,l=kt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Mc(e,t){return t=Ei({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ei(e,t){return e=ht(22,e,null,t),e.lanes=0,e}function Cc(e,t,l){return Kl(t,e.child,null,l),e=Mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ku(e.return,t,l)}function Uc(e,t,l,a,i,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:i,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=i,c.treeForkCount=u)}function rd(e,t,l){var a=t.pendingProps,i=a.revealOrder,u=a.tail;a=a.children;var c=He.current,o=(c&2)!==0;if(o?(c=c&1|2,t.flags|=128):c&=1,X(He,c),$e(e,t,a,l),a=de?Pa:0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sd(e,l,t);else if(e.tag===19)sd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(l=t.child,i=null;l!==null;)e=l.alternate,e!==null&&fi(e)===null&&(i=l),l=l.sibling;l=i,l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),Uc(t,!1,i,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fi(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}Uc(t,!0,l,null,u,a);break;case"together":Uc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function It(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),bl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ya(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=kt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=kt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Rc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ni(e)))}function Ym(e,t,l){switch(t.tag){case 3:Pe(t,t.stateNode.containerInfo),hl(t,Be,e.memoizedState.cache),Ql();break;case 27:case 5:wa(t);break;case 4:Pe(t,t.stateNode.containerInfo);break;case 10:hl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ic(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(pl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?cd(e,t,l):(pl(t),e=It(e,t,l),e!==null?e.sibling:null);pl(t);break;case 19:var i=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ya(e,t,l,!1),a=(l&t.childLanes)!==0),i){if(a)return rd(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),X(He,He.current),a)break;return null;case 22:return t.lanes=0,td(e,t,l,t.pendingProps);case 24:hl(t,Be,e.memoizedState.cache)}return It(e,t,l)}function od(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ye=!0;else{if(!Rc(e,l)&&(t.flags&128)===0)return Ye=!1,Ym(e,t,l);Ye=(e.flags&131072)!==0}else Ye=!1,de&&(t.flags&1048576)!==0&&Qr(t,Pa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Vl(t.elementType),t.type=e,typeof e=="function")Yu(e)?(a=$l(e,a),t.tag=1,t=id(null,t,e,a,l)):(t.tag=0,t=zc(null,t,e,a,l));else{if(e!=null){var i=e.$$typeof;if(i===ie){t.tag=11,t=Io(null,t,e,a,l);break e}else if(i===H){t.tag=14,t=Po(null,t,e,a,l);break e}}throw t=Xt(e)||e,Error(r(306,t,""))}}return t;case 0:return zc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=$l(a,t.pendingProps),id(e,t,a,i,l);case 3:e:{if(Pe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;i=u.element,ec(e,t),sn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,hl(t,Be,a),a!==u.cache&&Ju(t,[Be],l,!0),cn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=ud(e,t,a,l);break e}else if(a!==i){i=St(Error(r(424)),t),en(i),t=ud(e,t,a,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ae=zt(e.firstChild),Ke=t,de=!0,dl=null,At=!0,l=eo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ql(),a===i){t=It(e,t,l);break e}$e(e,t,a,l)}t=t.child}return t;case 26:return Ni(e,t),e===null?(l=Sf(t.type,null,t.pendingProps,null))?t.memoizedState=l:de||(l=t.type,e=t.pendingProps,a=Gi(ue.current).createElement(l),a[ke]=t,a[lt]=e,We(a,l,e),Le(a),t.stateNode=a):t.memoizedState=Sf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return wa(t),e===null&&de&&(a=t.stateNode=xf(t.type,t.pendingProps,ue.current),Ke=t,At=!0,i=Ae,Tl(t.type)?(hs=i,Ae=zt(a.firstChild)):Ae=i),$e(e,t,t.pendingProps.children,l),Ni(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((i=a=Ae)&&(a=vv(a,t.type,t.pendingProps,At),a!==null?(t.stateNode=a,Ke=t,Ae=zt(a.firstChild),At=!1,i=!0):i=!1),i||fl(t)),wa(t),i=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,ss(i,u)?a=null:c!==null&&ss(i,c)&&(t.flags|=32),t.memoizedState!==null&&(i=cc(e,t,Dm,null,null,l),On._currentValue=i),Ni(e,t),$e(e,t,a,l),t.child;case 6:return e===null&&de&&((e=l=Ae)&&(l=yv(l,t.pendingProps,At),l!==null?(t.stateNode=l,Ke=t,Ae=null,e=!0):e=!1),e||fl(t)),null;case 13:return cd(e,t,l);case 4:return Pe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Kl(t,null,a,l):$e(e,t,a,l),t.child;case 11:return Io(e,t,t.type,t.pendingProps,l);case 7:return $e(e,t,t.pendingProps,l),t.child;case 8:return $e(e,t,t.pendingProps.children,l),t.child;case 12:return $e(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,hl(t,t.type,a.value),$e(e,t,a.children,l),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,Ll(t),i=Je(i),a=a(i),t.flags|=1,$e(e,t,a,l),t.child;case 14:return Po(e,t,t.type,t.pendingProps,l);case 15:return ed(e,t,t.type,t.pendingProps,l);case 19:return rd(e,t,l);case 31:return wm(e,t,l);case 22:return td(e,t,l,t.pendingProps);case 24:return Ll(t),a=Je(Be),e===null?(i=Fu(),i===null&&(i=Ee,u=$u(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=l),i=u),t.memoizedState={parent:a,cache:i},Pu(t),hl(t,Be,i)):((e.lanes&l)!==0&&(ec(e,t),sn(t,null,null,l),cn()),i=e.memoizedState,u=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),hl(t,Be,a)):(a=u.cache,hl(t,Be,a),a!==i.cache&&Ju(t,[Be],l,!0))),$e(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Pt(e){e.flags|=4}function Hc(e,t,l,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(Bd())e.flags|=8192;else throw kl=si,Iu}else e.flags&=-16777217}function dd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zf(t))if(Bd())e.flags|=8192;else throw kl=si,Iu}function Ai(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ls():536870912,e.lanes|=t,Oa|=t)}function mn(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Te(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var i=e.child;i!==null;)l|=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;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Gm(e,t,l){var a=t.pendingProps;switch(Lu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(t),null;case 1:return Te(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),$t(Be),Re(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(va(t)?Pt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Vu())),Te(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(Pt(t),u!==null?(Te(t),dd(t,u)):(Te(t),Hc(t,i,null,a,l))):u?u!==e.memoizedState?(Pt(t),Te(t),dd(t,u)):(Te(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Pt(t),Te(t),Hc(t,i,e,a,l)),null;case 27:if(qn(t),l=ue.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Pt(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Te(t),null}e=V.current,va(t)?Lr(t):(e=xf(i,a,l),t.stateNode=e,Pt(t))}return Te(t),null;case 5:if(qn(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Pt(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Te(t),null}if(u=V.current,va(t))Lr(t);else{var c=Gi(ue.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(i,{is:a.is}):c.createElement(i)}}u[ke]=t,u[lt]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(We(u,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&&Pt(t)}}return Te(t),Hc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Pt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,va(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=Ke,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ke]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||sf(e.nodeValue,l)),e||fl(t,!0)}else e=Gi(e).createTextNode(a),e[ke]=t,t.stateNode=e}return Te(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=va(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ke]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Te(t),e=!1}else l=Vu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(vt(t),t):(vt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Te(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=va(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(r(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));i[ke]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Te(t),i=!1}else i=Vu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(vt(t),t):(vt(t),null)}return vt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ai(t,t.updateQueue),Te(t),null);case 4:return Re(),e===null&&as(t.stateNode.containerInfo),Te(t),null;case 10:return $t(t.type),Te(t),null;case 19:if(R(He),a=t.memoizedState,a===null)return Te(t),null;if(i=(t.flags&128)!==0,u=a.rendering,u===null)if(i)mn(a,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=fi(e),u!==null){for(t.flags|=128,mn(a,!1),e=u.updateQueue,t.updateQueue=e,Ai(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)wr(l,e),l=l.sibling;return X(He,He.current&1|2),de&&Kt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&rt()>Di&&(t.flags|=128,i=!0,mn(a,!1),t.lanes=4194304)}else{if(!i)if(e=fi(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ai(t,e),mn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!de)return Te(t),null}else 2*rt()-a.renderingStartTime>Di&&l!==536870912&&(t.flags|=128,i=!0,mn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=rt(),e.sibling=null,l=He.current,X(He,i?l&1|2:l&1),de&&Kt(t,a.treeForkCount),e):(Te(t),null);case 22:case 23:return vt(t),nc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),l=t.updateQueue,l!==null&&Ai(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&R(Zl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),$t(Be),Te(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Qm(e,t){switch(Lu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $t(Be),Re(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qn(t),null;case 31:if(t.memoizedState!==null){if(vt(t),t.alternate===null)throw Error(r(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(He),null;case 4:return Re(),null;case 10:return $t(t.type),null;case 22:case 23:return vt(t),nc(),e!==null&&R(Zl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $t(Be),null;case 25:return null;default:return null}}function fd(e,t){switch(Lu(t),t.tag){case 3:$t(Be),Re();break;case 26:case 27:case 5:qn(t);break;case 4:Re();break;case 31:t.memoizedState!==null&&vt(t);break;case 13:vt(t);break;case 19:R(He);break;case 10:$t(t.type);break;case 22:case 23:vt(t),nc(),e!==null&&R(Zl);break;case 24:$t(Be)}}function vn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==i)}}catch(o){je(t,t.return,o)}}function xl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){var c=a.inst,o=c.destroy;if(o!==void 0){c.destroy=void 0,i=t;var f=l,S=o;try{S()}catch(z){je(i,f,z)}}}a=a.next}while(a!==u)}}catch(z){je(t,t.return,z)}}function hd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{lo(t,l)}catch(a){je(e,e.return,a)}}}function md(e,t,l){l.props=$l(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){je(e,t,a)}}function yn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){je(e,t,i)}}function Gt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){je(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){je(e,t,i)}else l.current=null}function vd(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){je(e,e.return,i)}}function qc(e,t,l){try{var a=e.stateNode;rv(a,e.type,l,t),a[lt]=t}catch(i){je(e,e.return,i)}}function yd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tl(e.type)||e.tag===4}function Bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yd(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&&Tl(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 wc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Zt));else if(a!==4&&(a===27&&Tl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(wc(e,t,l),e=e.sibling;e!==null;)wc(e,t,l),e=e.sibling}function Ti(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Tl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ti(e,t,l),e=e.sibling;e!==null;)Ti(e,t,l),e=e.sibling}function pd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);We(t,a,l),t[ke]=e,t[lt]=l}catch(u){je(e,e.return,u)}}var el=!1,Ge=!1,Yc=!1,jd=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function Xm(e,t){if(e=e.containerInfo,us=Ki,e=_r(e),Cu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,o=-1,f=-1,S=0,z=0,C=e,E=null;t:for(;;){for(var T;C!==l||i!==0&&C.nodeType!==3||(o=c+i),C!==u||a!==0&&C.nodeType!==3||(f=c+a),C.nodeType===3&&(c+=C.nodeValue.length),(T=C.firstChild)!==null;)E=C,C=T;for(;;){if(C===e)break t;if(E===l&&++S===i&&(o=c),E===u&&++z===a&&(f=c),(T=C.nextSibling)!==null)break;C=E,E=C.parentNode}C=T}l=o===-1||f===-1?null:{start:o,end:f}}else l=null}l=l||{start:0,end:0}}else l=null;for(cs={focusedElem:e,selectionRange:l},Ki=!1,Ze=t;Ze!==null;)if(t=Ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ze=e;else for(;Ze!==null;){switch(t=Ze,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)i=e[l],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,i=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var Z=$l(l.type,i);e=a.getSnapshotBeforeUpdate(Z,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(W){je(l,l.return,W)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)os(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":os(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ze=e;break}Ze=t.return}}function xd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:ll(e,l),a&4&&vn(5,l);break;case 1:if(ll(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){je(l,l.return,c)}else{var i=$l(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){je(l,l.return,c)}}a&64&&hd(l),a&512&&yn(l,l.return);break;case 3:if(ll(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{lo(e,t)}catch(c){je(l,l.return,c)}}break;case 27:t===null&&a&4&&pd(l);case 26:case 5:ll(e,l),t===null&&a&4&&vd(l),a&512&&yn(l,l.return);break;case 12:ll(e,l);break;case 31:ll(e,l),a&4&&Sd(e,l);break;case 13:ll(e,l),a&4&&Nd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Fm.bind(null,l),pv(e,l))));break;case 22:if(a=l.memoizedState!==null||el,!a){t=t!==null&&t.memoizedState!==null||Ge,i=el;var u=Ge;el=a,(Ge=t)&&!u?al(e,l,(l.subtreeFlags&8772)!==0):ll(e,l),el=i,Ge=u}break;case 30:break;default:ll(e,l)}}function gd(e){var t=e.alternate;t!==null&&(e.alternate=null,gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vu(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 Oe=null,nt=!1;function tl(e,t,l){for(l=l.child;l!==null;)bd(e,t,l),l=l.sibling}function bd(e,t,l){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Ya,l)}catch{}switch(l.tag){case 26:Ge||Gt(l,t),tl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ge||Gt(l,t);var a=Oe,i=nt;Tl(l.type)&&(Oe=l.stateNode,nt=!1),tl(e,t,l),An(l.stateNode),Oe=a,nt=i;break;case 5:Ge||Gt(l,t);case 6:if(a=Oe,i=nt,Oe=null,tl(e,t,l),Oe=a,nt=i,Oe!==null)if(nt)try{(Oe.nodeType===9?Oe.body:Oe.nodeName==="HTML"?Oe.ownerDocument.body:Oe).removeChild(l.stateNode)}catch(u){je(l,t,u)}else try{Oe.removeChild(l.stateNode)}catch(u){je(l,t,u)}break;case 18:Oe!==null&&(nt?(e=Oe,mf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),qa(e)):mf(Oe,l.stateNode));break;case 4:a=Oe,i=nt,Oe=l.stateNode.containerInfo,nt=!0,tl(e,t,l),Oe=a,nt=i;break;case 0:case 11:case 14:case 15:xl(2,l,t),Ge||xl(4,l,t),tl(e,t,l);break;case 1:Ge||(Gt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&md(l,t,a)),tl(e,t,l);break;case 21:tl(e,t,l);break;case 22:Ge=(a=Ge)||l.memoizedState!==null,tl(e,t,l),Ge=a;break;default:tl(e,t,l)}}function Sd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qa(e)}catch(l){je(t,t.return,l)}}}function Nd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qa(e)}catch(l){je(t,t.return,l)}}function Lm(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new jd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new jd),t;default:throw Error(r(435,e.tag))}}function zi(e,t){var l=Lm(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var i=Im.bind(null,e,a);a.then(i,i)}})}function it(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a],u=e,c=t,o=c;e:for(;o!==null;){switch(o.tag){case 27:if(Tl(o.type)){Oe=o.stateNode,nt=!1;break e}break;case 5:Oe=o.stateNode,nt=!1;break e;case 3:case 4:Oe=o.stateNode.containerInfo,nt=!0;break e}o=o.return}if(Oe===null)throw Error(r(160));bd(u,c,i),Oe=null,nt=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ed(t,e),t=t.sibling}var Ut=null;function Ed(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:it(t,e),ut(e),a&4&&(xl(3,e,e.return),vn(3,e),xl(5,e,e.return));break;case 1:it(t,e),ut(e),a&512&&(Ge||l===null||Gt(l,l.return)),a&64&&el&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var i=Ut;if(it(t,e),ut(e),a&512&&(Ge||l===null||Gt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":u=i.getElementsByTagName("title")[0],(!u||u[Xa]||u[ke]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(a),i.head.insertBefore(u,i.querySelector("head > title"))),We(u,a,l),u[ke]=e,Le(u),a=u;break e;case"link":var c=Af("link","href",i).get(a+(l.href||""));if(c){for(var o=0;o<c.length;o++)if(u=c[o],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(o,1);break t}}u=i.createElement(a),We(u,a,l),i.head.appendChild(u);break;case"meta":if(c=Af("meta","content",i).get(a+(l.content||""))){for(o=0;o<c.length;o++)if(u=c[o],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(o,1);break t}}u=i.createElement(a),We(u,a,l),i.head.appendChild(u);break;default:throw Error(r(468,a))}u[ke]=e,Le(u),a=u}e.stateNode=a}else Tf(i,e.type,e.stateNode);else e.stateNode=Ef(i,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Tf(i,e.type,e.stateNode):Ef(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&qc(e,e.memoizedProps,l.memoizedProps)}break;case 27:it(t,e),ut(e),a&512&&(Ge||l===null||Gt(l,l.return)),l!==null&&a&4&&qc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(it(t,e),ut(e),a&512&&(Ge||l===null||Gt(l,l.return)),e.flags&32){i=e.stateNode;try{ia(i,"")}catch(Z){je(e,e.return,Z)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,qc(e,i,l!==null?l.memoizedProps:i)),a&1024&&(Yc=!0);break;case 6:if(it(t,e),ut(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(Z){je(e,e.return,Z)}}break;case 3:if(Li=null,i=Ut,Ut=Qi(t.containerInfo),it(t,e),Ut=i,ut(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{qa(t.containerInfo)}catch(Z){je(e,e.return,Z)}Yc&&(Yc=!1,Ad(e));break;case 4:a=Ut,Ut=Qi(e.stateNode.containerInfo),it(t,e),ut(e),Ut=a;break;case 12:it(t,e),ut(e);break;case 31:it(t,e),ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,zi(e,a)));break;case 13:it(t,e),ut(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(_i=rt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,zi(e,a)));break;case 22:i=e.memoizedState!==null;var f=l!==null&&l.memoizedState!==null,S=el,z=Ge;if(el=S||i,Ge=z||f,it(t,e),Ge=z,el=S,ut(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(l===null||f||el||Ge||Wl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){f=l=t;try{if(u=f.stateNode,i)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{o=f.stateNode;var C=f.memoizedProps.style,E=C!=null&&C.hasOwnProperty("display")?C.display:null;o.style.display=E==null||typeof E=="boolean"?"":(""+E).trim()}}catch(Z){je(f,f.return,Z)}}}else if(t.tag===6){if(l===null){f=t;try{f.stateNode.nodeValue=i?"":f.memoizedProps}catch(Z){je(f,f.return,Z)}}}else if(t.tag===18){if(l===null){f=t;try{var T=f.stateNode;i?vf(T,!0):vf(f.stateNode,!1)}catch(Z){je(f,f.return,Z)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,zi(e,l))));break;case 19:it(t,e),ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,zi(e,a)));break;case 30:break;case 21:break;default:it(t,e),ut(e)}}function ut(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(yd(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var i=l.stateNode,u=Bc(e);Ti(e,u,i);break;case 5:var c=l.stateNode;l.flags&32&&(ia(c,""),l.flags&=-33);var o=Bc(e);Ti(e,o,c);break;case 3:case 4:var f=l.stateNode.containerInfo,S=Bc(e);wc(e,S,f);break;default:throw Error(r(161))}}catch(z){je(e,e.return,z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ad(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ad(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ll(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xd(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xl(4,t,t.return),Wl(t);break;case 1:Gt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&md(t,t.return,l),Wl(t);break;case 27:An(t.stateNode);case 26:case 5:Gt(t,t.return),Wl(t);break;case 22:t.memoizedState===null&&Wl(t);break;case 30:Wl(t);break;default:Wl(t)}e=e.sibling}}function al(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:al(i,u,l),vn(4,u);break;case 1:if(al(i,u,l),a=u,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(S){je(a,a.return,S)}if(a=u,i=a.updateQueue,i!==null){var o=a.stateNode;try{var f=i.shared.hiddenCallbacks;if(f!==null)for(i.shared.hiddenCallbacks=null,i=0;i<f.length;i++)to(f[i],o)}catch(S){je(a,a.return,S)}}l&&c&64&&hd(u),yn(u,u.return);break;case 27:pd(u);case 26:case 5:al(i,u,l),l&&a===null&&c&4&&vd(u),yn(u,u.return);break;case 12:al(i,u,l);break;case 31:al(i,u,l),l&&c&4&&Sd(i,u);break;case 13:al(i,u,l),l&&c&4&&Nd(i,u);break;case 22:u.memoizedState===null&&al(i,u,l),yn(u,u.return);break;case 30:break;default:al(i,u,l)}t=t.sibling}}function Gc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&tn(l))}function Qc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&tn(e))}function Rt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Td(e,t,l,a),t=t.sibling}function Td(e,t,l,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Rt(e,t,l,a),i&2048&&vn(9,t);break;case 1:Rt(e,t,l,a);break;case 3:Rt(e,t,l,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&tn(e)));break;case 12:if(i&2048){Rt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,o=u.onPostCommit;typeof o=="function"&&o(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(f){je(t,t.return,f)}}else Rt(e,t,l,a);break;case 31:Rt(e,t,l,a);break;case 13:Rt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Rt(e,t,l,a):pn(e,t):u._visibility&2?Rt(e,t,l,a):(u._visibility|=2,Aa(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Gc(c,t);break;case 24:Rt(e,t,l,a),i&2048&&Qc(t.alternate,t);break;default:Rt(e,t,l,a)}}function Aa(e,t,l,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,o=l,f=a,S=c.flags;switch(c.tag){case 0:case 11:case 15:Aa(u,c,o,f,i),vn(8,c);break;case 23:break;case 22:var z=c.stateNode;c.memoizedState!==null?z._visibility&2?Aa(u,c,o,f,i):pn(u,c):(z._visibility|=2,Aa(u,c,o,f,i)),i&&S&2048&&Gc(c.alternate,c);break;case 24:Aa(u,c,o,f,i),i&&S&2048&&Qc(c.alternate,c);break;default:Aa(u,c,o,f,i)}t=t.sibling}}function pn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,i=a.flags;switch(a.tag){case 22:pn(l,a),i&2048&&Gc(a.alternate,a);break;case 24:pn(l,a),i&2048&&Qc(a.alternate,a);break;default:pn(l,a)}t=t.sibling}}var jn=8192;function Ta(e,t,l){if(e.subtreeFlags&jn)for(e=e.child;e!==null;)zd(e,t,l),e=e.sibling}function zd(e,t,l){switch(e.tag){case 26:Ta(e,t,l),e.flags&jn&&e.memoizedState!==null&&_v(l,Ut,e.memoizedState,e.memoizedProps);break;case 5:Ta(e,t,l);break;case 3:case 4:var a=Ut;Ut=Qi(e.stateNode.containerInfo),Ta(e,t,l),Ut=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=jn,jn=16777216,Ta(e,t,l),jn=a):Ta(e,t,l));break;default:Ta(e,t,l)}}function Od(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 xn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ze=a,Dd(a,e)}Od(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_d(e),e=e.sibling}function _d(e){switch(e.tag){case 0:case 11:case 15:xn(e),e.flags&2048&&xl(9,e,e.return);break;case 3:xn(e);break;case 12:xn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Oi(e)):xn(e);break;default:xn(e)}}function Oi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ze=a,Dd(a,e)}Od(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xl(8,t,t.return),Oi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Oi(t));break;default:Oi(t)}e=e.sibling}}function Dd(e,t){for(;Ze!==null;){var l=Ze;switch(l.tag){case 0:case 11:case 15:xl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:tn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ze=a;else e:for(l=e;Ze!==null;){a=Ze;var i=a.sibling,u=a.return;if(gd(a),a===l){Ze=null;break e}if(i!==null){i.return=u,Ze=i;break e}Ze=u}}}var Zm={getCacheForType:function(e){var t=Je(Be),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Je(Be).controller.signal}},Vm=typeof WeakMap=="function"?WeakMap:Map,ve=0,Ee=null,ce=null,re=0,pe=0,yt=null,gl=!1,za=!1,Xc=!1,nl=0,Ue=0,bl=0,Fl=0,Lc=0,pt=0,Oa=0,gn=null,ct=null,Zc=!1,_i=0,Md=0,Di=1/0,Mi=null,Sl=null,Xe=0,Nl=null,_a=null,il=0,Vc=0,kc=null,Cd=null,bn=0,Kc=null;function jt(){return(ve&2)!==0&&re!==0?re&-re:O.T!==null?Pc():Ks()}function Ud(){if(pt===0)if((re&536870912)===0||de){var e=Yn;Yn<<=1,(Yn&3932160)===0&&(Yn=262144),pt=e}else pt=536870912;return e=mt.current,e!==null&&(e.flags|=32),pt}function st(e,t,l){(e===Ee&&(pe===2||pe===9)||e.cancelPendingCommit!==null)&&(Da(e,0),El(e,re,pt,!1)),Qa(e,l),((ve&2)===0||e!==Ee)&&(e===Ee&&((ve&2)===0&&(Fl|=l),Ue===4&&El(e,re,pt,!1)),Qt(e))}function Rd(e,t,l){if((ve&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ga(e,t),i=a?Jm(e,t):$c(e,t,!0),u=a;do{if(i===0){za&&!a&&El(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!km(l)){i=$c(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var o=e;i=gn;var f=o.current.memoizedState.isDehydrated;if(f&&(Da(o,c).flags|=256),c=$c(o,c,!1),c!==2){if(Xc&&!f){o.errorRecoveryDisabledLanes|=u,Fl|=u,i=4;break e}u=ct,ct=i,u!==null&&(ct===null?ct=u:ct.push.apply(ct,u))}i=c}if(u=!1,i!==2)continue}}if(i===1){Da(e,0),El(e,t,0,!0);break}e:{switch(a=e,u=i,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:El(a,t,pt,!gl);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(i=_i+300-rt(),10<i)){if(El(a,t,pt,!gl),Qn(a,0,!0)!==0)break e;il=t,a.timeoutHandle=ff(Hd.bind(null,a,l,ct,Mi,Zc,t,pt,Fl,Oa,gl,u,"Throttled",-0,0),i);break e}Hd(a,l,ct,Mi,Zc,t,pt,Fl,Oa,gl,u,null,-0,0)}}break}while(!0);Qt(e)}function Hd(e,t,l,a,i,u,c,o,f,S,z,C,E,T){if(e.timeoutHandle=-1,C=t.subtreeFlags,C&8192||(C&16785408)===16785408){C={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},zd(t,u,C);var Z=(u&62914560)===u?_i-rt():(u&4194048)===u?Md-rt():0;if(Z=Dv(C,Z),Z!==null){il=u,e.cancelPendingCommit=Z(Ld.bind(null,e,t,u,l,a,i,c,o,f,z,C,null,E,T)),El(e,u,c,!S);return}}Ld(e,t,u,l,a,i,c,o,f)}function km(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var i=l[a],u=i.getSnapshot;i=i.value;try{if(!ft(u(),i))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function El(e,t,l,a){t&=~Lc,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var u=31-dt(i),c=1<<u;a[u]=-1,i&=~c}l!==0&&Zs(e,l,t)}function Ci(){return(ve&6)===0?(Sn(0),!1):!0}function Jc(){if(ce!==null){if(pe===0)var e=ce.return;else e=ce,Jt=Xl=null,oc(e),ga=null,an=0,e=ce;for(;e!==null;)fd(e.alternate,e),e=e.return;ce=null}}function Da(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,fv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),il=0,Jc(),Ee=e,ce=l=kt(e.current,null),re=t,pe=0,yt=null,gl=!1,za=Ga(e,t),Xc=!1,Oa=pt=Lc=Fl=bl=Ue=0,ct=gn=null,Zc=!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-dt(a),u=1<<i;t|=e[i],a&=~u}return nl=t,Pn(),l}function qd(e,t){te=null,O.H=fn,t===xa||t===ci?(t=Fr(),pe=3):t===Iu?(t=Fr(),pe=4):pe=t===Tc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,yt=t,ce===null&&(Ue=1,bi(e,St(t,e.current)))}function Bd(){var e=mt.current;return e===null?!0:(re&4194048)===re?Tt===null:(re&62914560)===re||(re&536870912)!==0?e===Tt:!1}function wd(){var e=O.H;return O.H=fn,e===null?fn:e}function Yd(){var e=O.A;return O.A=Zm,e}function Ui(){Ue=4,gl||(re&4194048)!==re&&mt.current!==null||(za=!0),(bl&134217727)===0&&(Fl&134217727)===0||Ee===null||El(Ee,re,pt,!1)}function $c(e,t,l){var a=ve;ve|=2;var i=wd(),u=Yd();(Ee!==e||re!==t)&&(Mi=null,Da(e,t)),t=!1;var c=Ue;e:do try{if(pe!==0&&ce!==null){var o=ce,f=yt;switch(pe){case 8:Jc(),c=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var S=pe;if(pe=0,yt=null,Ma(e,o,f,S),l&&za){c=0;break e}break;default:S=pe,pe=0,yt=null,Ma(e,o,f,S)}}Km(),c=Ue;break}catch(z){qd(e,z)}while(!0);return t&&e.shellSuspendCounter++,Jt=Xl=null,ve=a,O.H=i,O.A=u,ce===null&&(Ee=null,re=0,Pn()),c}function Km(){for(;ce!==null;)Gd(ce)}function Jm(e,t){var l=ve;ve|=2;var a=wd(),i=Yd();Ee!==e||re!==t?(Mi=null,Di=rt()+500,Da(e,t)):za=Ga(e,t);e:do try{if(pe!==0&&ce!==null){t=ce;var u=yt;t:switch(pe){case 1:pe=0,yt=null,Ma(e,t,u,1);break;case 2:case 9:if($r(u)){pe=0,yt=null,Qd(t);break}t=function(){pe!==2&&pe!==9||Ee!==e||(pe=7),Qt(e)},u.then(t,t);break e;case 3:pe=7;break e;case 4:pe=5;break e;case 7:$r(u)?(pe=0,yt=null,Qd(t)):(pe=0,yt=null,Ma(e,t,u,7));break;case 5:var c=null;switch(ce.tag){case 26:c=ce.memoizedState;case 5:case 27:var o=ce;if(c?zf(c):o.stateNode.complete){pe=0,yt=null;var f=o.sibling;if(f!==null)ce=f;else{var S=o.return;S!==null?(ce=S,Ri(S)):ce=null}break t}}pe=0,yt=null,Ma(e,t,u,5);break;case 6:pe=0,yt=null,Ma(e,t,u,6);break;case 8:Jc(),Ue=6;break e;default:throw Error(r(462))}}$m();break}catch(z){qd(e,z)}while(!0);return Jt=Xl=null,O.H=a,O.A=i,ve=l,ce!==null?0:(Ee=null,re=0,Pn(),Ue)}function $m(){for(;ce!==null&&!jh();)Gd(ce)}function Gd(e){var t=od(e.alternate,e,nl);e.memoizedProps=e.pendingProps,t===null?Ri(e):ce=t}function Qd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=nd(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=nd(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:oc(t);default:fd(l,t),t=ce=wr(t,nl),t=od(l,t,nl)}e.memoizedProps=e.pendingProps,t===null?Ri(e):ce=t}function Ma(e,t,l,a){Jt=Xl=null,oc(t),ga=null,an=0;var i=t.return;try{if(Bm(e,i,t,l,re)){Ue=1,bi(e,St(l,e.current)),ce=null;return}}catch(u){if(i!==null)throw ce=i,u;Ue=1,bi(e,St(l,e.current)),ce=null;return}t.flags&32768?(de||a===1?e=!0:za||(re&536870912)!==0?e=!1:(gl=e=!0,(a===2||a===9||a===3||a===6)&&(a=mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Xd(t,e)):Ri(t)}function Ri(e){var t=e;do{if((t.flags&32768)!==0){Xd(t,gl);return}e=t.return;var l=Gm(t.alternate,t,nl);if(l!==null){ce=l;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);Ue===0&&(Ue=5)}function Xd(e,t){do{var l=Qm(e.alternate,e);if(l!==null){l.flags&=32767,ce=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=l}while(e!==null);Ue=6,ce=null}function Ld(e,t,l,a,i,u,c,o,f){e.cancelPendingCommit=null;do Hi();while(Xe!==0);if((ve&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Bu,Oh(e,l,u,c,o,f),e===Ee&&(ce=Ee=null,re=0),_a=t,Nl=e,il=l,Vc=u,kc=i,Cd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Pm(Bn,function(){return Jd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,i=Q.p,Q.p=2,c=ve,ve|=4;try{Xm(e,t,l)}finally{ve=c,Q.p=i,O.T=a}}Xe=1,Zd(),Vd(),kd()}}function Zd(){if(Xe===1){Xe=0;var e=Nl,t=_a,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var i=ve;ve|=4;try{Ed(t,e);var u=cs,c=_r(e.containerInfo),o=u.focusedElem,f=u.selectionRange;if(c!==o&&o&&o.ownerDocument&&Or(o.ownerDocument.documentElement,o)){if(f!==null&&Cu(o)){var S=f.start,z=f.end;if(z===void 0&&(z=S),"selectionStart"in o)o.selectionStart=S,o.selectionEnd=Math.min(z,o.value.length);else{var C=o.ownerDocument||document,E=C&&C.defaultView||window;if(E.getSelection){var T=E.getSelection(),Z=o.textContent.length,W=Math.min(f.start,Z),Se=f.end===void 0?W:Math.min(f.end,Z);!T.extend&&W>Se&&(c=Se,Se=W,W=c);var x=zr(o,W),m=zr(o,Se);if(x&&m&&(T.rangeCount!==1||T.anchorNode!==x.node||T.anchorOffset!==x.offset||T.focusNode!==m.node||T.focusOffset!==m.offset)){var b=C.createRange();b.setStart(x.node,x.offset),T.removeAllRanges(),W>Se?(T.addRange(b),T.extend(m.node,m.offset)):(b.setEnd(m.node,m.offset),T.addRange(b))}}}}for(C=[],T=o;T=T.parentNode;)T.nodeType===1&&C.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<C.length;o++){var D=C[o];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Ki=!!us,cs=us=null}finally{ve=i,Q.p=a,O.T=l}}e.current=t,Xe=2}}function Vd(){if(Xe===2){Xe=0;var e=Nl,t=_a,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var i=ve;ve|=4;try{xd(e,t.alternate,t)}finally{ve=i,Q.p=a,O.T=l}}Xe=3}}function kd(){if(Xe===4||Xe===3){Xe=0,xh();var e=Nl,t=_a,l=il,a=Cd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Xe=5:(Xe=0,_a=Nl=null,Kd(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Sl=null),hu(l),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Ya,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,i=Q.p,Q.p=2,O.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var o=a[c];u(o.value,{componentStack:o.stack})}}finally{O.T=t,Q.p=i}}(il&3)!==0&&Hi(),Qt(e),i=e.pendingLanes,(l&261930)!==0&&(i&42)!==0?e===Kc?bn++:(bn=0,Kc=e):bn=0,Sn(0)}}function Kd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,tn(t)))}function Hi(){return Zd(),Vd(),kd(),Jd()}function Jd(){if(Xe!==5)return!1;var e=Nl,t=Vc;Vc=0;var l=hu(il),a=O.T,i=Q.p;try{Q.p=32>l?32:l,O.T=null,l=kc,kc=null;var u=Nl,c=il;if(Xe=0,_a=Nl=null,il=0,(ve&6)!==0)throw Error(r(331));var o=ve;if(ve|=4,_d(u.current),Td(u,u.current,c,l),ve=o,Sn(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Ya,u)}catch{}return!0}finally{Q.p=i,O.T=a,Kd(e,t)}}function $d(e,t,l){t=St(l,t),t=Ac(e.stateNode,t,2),e=yl(e,t,2),e!==null&&(Qa(e,2),Qt(e))}function je(e,t,l){if(e.tag===3)$d(e,e,l);else for(;t!==null;){if(t.tag===3){$d(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Sl===null||!Sl.has(a))){e=St(l,e),l=Wo(2),a=yl(t,l,2),a!==null&&(Fo(l,a,t,e),Qa(a,2),Qt(a));break}}t=t.return}}function Wc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Vm;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(l)||(Xc=!0,i.add(l),e=Wm.bind(null,e,t,l),t.then(e,e))}function Wm(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ee===e&&(re&l)===l&&(Ue===4||Ue===3&&(re&62914560)===re&&300>rt()-_i?(ve&2)===0&&Da(e,0):Lc|=l,Oa===re&&(Oa=0)),Qt(e)}function Wd(e,t){t===0&&(t=Ls()),e=Yl(e,t),e!==null&&(Qa(e,t),Qt(e))}function Fm(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Wd(e,l)}function Im(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Wd(e,l)}function Pm(e,t){return ru(e,t)}var qi=null,Ca=null,Fc=!1,Bi=!1,Ic=!1,Al=0;function Qt(e){e!==Ca&&e.next===null&&(Ca===null?qi=Ca=e:Ca=Ca.next=e),Bi=!0,Fc||(Fc=!0,tv())}function Sn(e,t){if(!Ic&&Bi){Ic=!0;do for(var l=!1,a=qi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var u=0;else{var c=a.suspendedLanes,o=a.pingedLanes;u=(1<<31-dt(42|e)+1)-1,u&=i&~(c&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,ef(a,u))}else u=re,u=Qn(a,a===Ee?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ga(a,u)||(l=!0,ef(a,u));a=a.next}while(l);Ic=!1}}function ev(){Fd()}function Fd(){Bi=Fc=!1;var e=0;Al!==0&&dv()&&(e=Al);for(var t=rt(),l=null,a=qi;a!==null;){var i=a.next,u=Id(a,t);u===0?(a.next=null,l===null?qi=i:l.next=i,i===null&&(Ca=l)):(l=a,(e!==0||(u&3)!==0)&&(Bi=!0)),a=i}Xe!==0&&Xe!==5||Sn(e),Al!==0&&(Al=0)}function Id(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-dt(u),o=1<<c,f=i[c];f===-1?((o&l)===0||(o&a)!==0)&&(i[c]=zh(o,t)):f<=t&&(e.expiredLanes|=o),u&=~o}if(t=Ee,l=re,l=Qn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(pe===2||pe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ou(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ga(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&ou(a),hu(l)){case 2:case 8:l=Qs;break;case 32:l=Bn;break;case 268435456:l=Xs;break;default:l=Bn}return a=Pd.bind(null,e),l=ru(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&ou(a),e.callbackPriority=2,e.callbackNode=null,2}function Pd(e,t){if(Xe!==0&&Xe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Hi()&&e.callbackNode!==l)return null;var a=re;return a=Qn(e,e===Ee?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Rd(e,a,t),Id(e,rt()),e.callbackNode!=null&&e.callbackNode===l?Pd.bind(null,e):null)}function ef(e,t){if(Hi())return null;Rd(e,t,!0)}function tv(){hv(function(){(ve&6)!==0?ru(Gs,ev):Fd()})}function Pc(){if(Al===0){var e=pa;e===0&&(e=wn,wn<<=1,(wn&261888)===0&&(wn=256)),Al=e}return Al}function tf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Vn(""+e)}function lf(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function lv(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var u=tf((i[lt]||null).action),c=a.submitter;c&&(t=(t=c[lt]||null)?tf(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var o=new $n("action","action",null,a,i);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Al!==0){var f=c?lf(i,c):new FormData(i);xc(l,{pending:!0,data:f,method:i.method,action:u},null,f)}}else typeof u=="function"&&(o.preventDefault(),f=c?lf(i,c):new FormData(i),xc(l,{pending:!0,data:f,method:i.method,action:u},u,f))},currentTarget:i}]})}}for(var es=0;es<qu.length;es++){var ts=qu[es],av=ts.toLowerCase(),nv=ts[0].toUpperCase()+ts.slice(1);Ct(av,"on"+nv)}Ct(Cr,"onAnimationEnd"),Ct(Ur,"onAnimationIteration"),Ct(Rr,"onAnimationStart"),Ct("dblclick","onDoubleClick"),Ct("focusin","onFocus"),Ct("focusout","onBlur"),Ct(gm,"onTransitionRun"),Ct(bm,"onTransitionStart"),Ct(Sm,"onTransitionCancel"),Ct(Hr,"onTransitionEnd"),aa("onMouseEnter",["mouseout","mouseover"]),aa("onMouseLeave",["mouseout","mouseover"]),aa("onPointerEnter",["pointerout","pointerover"]),aa("onPointerLeave",["pointerout","pointerover"]),Hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nn="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(" "),iv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nn));function af(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],i=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var o=a[c],f=o.instance,S=o.currentTarget;if(o=o.listener,f!==u&&i.isPropagationStopped())break e;u=o,i.currentTarget=S;try{u(i)}catch(z){In(z)}i.currentTarget=null,u=f}else for(c=0;c<a.length;c++){if(o=a[c],f=o.instance,S=o.currentTarget,o=o.listener,f!==u&&i.isPropagationStopped())break e;u=o,i.currentTarget=S;try{u(i)}catch(z){In(z)}i.currentTarget=null,u=f}}}}function se(e,t){var l=t[mu];l===void 0&&(l=t[mu]=new Set);var a=e+"__bubble";l.has(a)||(nf(t,e,2,!1),l.add(a))}function ls(e,t,l){var a=0;t&&(a|=4),nf(l,e,a,t)}var wi="_reactListening"+Math.random().toString(36).slice(2);function as(e){if(!e[wi]){e[wi]=!0,Ws.forEach(function(l){l!=="selectionchange"&&(iv.has(l)||ls(l,!1,e),ls(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wi]||(t[wi]=!0,ls("selectionchange",!1,t))}}function nf(e,t,l,a){switch(Rf(t)){case 2:var i=Uv;break;case 8:i=Rv;break;default:i=js}l=i.bind(null,t,l,e),i=void 0,!Nu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,l,{capture:!0,passive:i}):e.addEventListener(t,l,!0):i!==void 0?e.addEventListener(t,l,{passive:i}):e.addEventListener(t,l,!1)}function ns(e,t,l,a,i){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var o=a.stateNode.containerInfo;if(o===i)break;if(c===4)for(c=a.return;c!==null;){var f=c.tag;if((f===3||f===4)&&c.stateNode.containerInfo===i)return;c=c.return}for(;o!==null;){if(c=ea(o),c===null)return;if(f=c.tag,f===5||f===6||f===26||f===27){a=u=c;continue e}o=o.parentNode}}a=a.return}sr(function(){var S=u,z=bu(l),C=[];e:{var E=qr.get(e);if(E!==void 0){var T=$n,Z=e;switch(e){case"keypress":if(Kn(l)===0)break e;case"keydown":case"keyup":T=Ih;break;case"focusin":Z="focus",T=zu;break;case"focusout":Z="blur",T=zu;break;case"beforeblur":case"afterblur":T=zu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=dr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=Gh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=tm;break;case Cr:case Ur:case Rr:T=Lh;break;case Hr:T=am;break;case"scroll":case"scrollend":T=wh;break;case"wheel":T=im;break;case"copy":case"cut":case"paste":T=Vh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=hr;break;case"toggle":case"beforetoggle":T=cm}var W=(t&4)!==0,Se=!W&&(e==="scroll"||e==="scrollend"),x=W?E!==null?E+"Capture":null:E;W=[];for(var m=S,b;m!==null;){var D=m;if(b=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||b===null||x===null||(D=Za(m,x),D!=null&&W.push(En(m,D,b))),Se)break;m=m.return}0<W.length&&(E=new T(E,Z,null,l,z),C.push({event:E,listeners:W}))}}if((t&7)===0){e:{if(E=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",E&&l!==gu&&(Z=l.relatedTarget||l.fromElement)&&(ea(Z)||Z[Pl]))break e;if((T||E)&&(E=z.window===z?z:(E=z.ownerDocument)?E.defaultView||E.parentWindow:window,T?(Z=l.relatedTarget||l.toElement,T=S,Z=Z?ea(Z):null,Z!==null&&(Se=g(Z),W=Z.tag,Z!==Se||W!==5&&W!==27&&W!==6)&&(Z=null)):(T=null,Z=S),T!==Z)){if(W=dr,D="onMouseLeave",x="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(W=hr,D="onPointerLeave",x="onPointerEnter",m="pointer"),Se=T==null?E:La(T),b=Z==null?E:La(Z),E=new W(D,m+"leave",T,l,z),E.target=Se,E.relatedTarget=b,D=null,ea(z)===S&&(W=new W(x,m+"enter",Z,l,z),W.target=b,W.relatedTarget=Se,D=W),Se=D,T&&Z)t:{for(W=uv,x=T,m=Z,b=0,D=x;D;D=W(D))b++;D=0;for(var J=m;J;J=W(J))D++;for(;0<b-D;)x=W(x),b--;for(;0<D-b;)m=W(m),D--;for(;b--;){if(x===m||m!==null&&x===m.alternate){W=x;break t}x=W(x),m=W(m)}W=null}else W=null;T!==null&&uf(C,E,T,W,!1),Z!==null&&Se!==null&&uf(C,Se,Z,W,!0)}}e:{if(E=S?La(S):window,T=E.nodeName&&E.nodeName.toLowerCase(),T==="select"||T==="input"&&E.type==="file")var he=br;else if(xr(E))if(Sr)he=pm;else{he=vm;var k=mm}else T=E.nodeName,!T||T.toLowerCase()!=="input"||E.type!=="checkbox"&&E.type!=="radio"?S&&xu(S.elementType)&&(he=br):he=ym;if(he&&(he=he(e,S))){gr(C,he,l,z);break e}k&&k(e,E,S),e==="focusout"&&S&&E.type==="number"&&S.memoizedProps.value!=null&&ju(E,"number",E.value)}switch(k=S?La(S):window,e){case"focusin":(xr(k)||k.contentEditable==="true")&&(ra=k,Uu=S,Ia=null);break;case"focusout":Ia=Uu=ra=null;break;case"mousedown":Ru=!0;break;case"contextmenu":case"mouseup":case"dragend":Ru=!1,Dr(C,l,z);break;case"selectionchange":if(xm)break;case"keydown":case"keyup":Dr(C,l,z)}var ae;if(_u)e:{switch(e){case"compositionstart":var oe="onCompositionStart";break e;case"compositionend":oe="onCompositionEnd";break e;case"compositionupdate":oe="onCompositionUpdate";break e}oe=void 0}else sa?pr(e,l)&&(oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(oe="onCompositionStart");oe&&(mr&&l.locale!=="ko"&&(sa||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&sa&&(ae=rr()):(rl=z,Eu="value"in rl?rl.value:rl.textContent,sa=!0)),k=Yi(S,oe),0<k.length&&(oe=new fr(oe,e,null,l,z),C.push({event:oe,listeners:k}),ae?oe.data=ae:(ae=jr(l),ae!==null&&(oe.data=ae)))),(ae=rm?om(e,l):dm(e,l))&&(oe=Yi(S,"onBeforeInput"),0<oe.length&&(k=new fr("onBeforeInput","beforeinput",null,l,z),C.push({event:k,listeners:oe}),k.data=ae)),lv(C,e,S,l,z)}af(C,t)})}function En(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Yi(e,t){for(var l=t+"Capture",a=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=Za(e,l),i!=null&&a.unshift(En(e,i,u)),i=Za(e,t),i!=null&&a.push(En(e,i,u))),e.tag===3)return a;e=e.return}return[]}function uv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function uf(e,t,l,a,i){for(var u=t._reactName,c=[];l!==null&&l!==a;){var o=l,f=o.alternate,S=o.stateNode;if(o=o.tag,f!==null&&f===a)break;o!==5&&o!==26&&o!==27||S===null||(f=S,i?(S=Za(l,u),S!=null&&c.unshift(En(l,S,f))):i||(S=Za(l,u),S!=null&&c.push(En(l,S,f)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var cv=/\r\n?/g,sv=/\u0000|\uFFFD/g;function cf(e){return(typeof e=="string"?e:""+e).replace(cv,`
|
|
9
|
+
`).replace(sv,"")}function sf(e,t){return t=cf(t),cf(e)===t}function be(e,t,l,a,i,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ia(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ia(e,""+a);break;case"className":Ln(e,"class",a);break;case"tabIndex":Ln(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ln(e,l,a);break;case"style":ur(e,a,u);break;case"data":if(t!=="object"){Ln(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Vn(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&be(e,t,"name",i.name,i,null),be(e,t,"formEncType",i.formEncType,i,null),be(e,t,"formMethod",i.formMethod,i,null),be(e,t,"formTarget",i.formTarget,i,null)):(be(e,t,"encType",i.encType,i,null),be(e,t,"method",i.method,i,null),be(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Vn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Zt);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(r(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Vn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":se("beforetoggle",e),se("toggle",e),Xn(e,"popover",a);break;case"xlinkActuate":Lt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Lt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Lt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Lt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Lt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Lt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Lt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Lt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Lt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Xn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=qh.get(l)||l,Xn(e,l,a))}}function is(e,t,l,a,i,u){switch(l){case"style":ur(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ia(e,a):(typeof a=="number"||typeof a=="bigint")&&ia(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=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fs.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),t=l.slice(2,i?l.length-7:void 0),u=e[lt]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,i),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,i);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Xn(e,l,a)}}}function We(e,t,l){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,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:be(e,t,u,c,l,null)}}i&&be(e,t,"srcSet",l.srcSet,l,null),a&&be(e,t,"src",l.src,l,null);return;case"input":se("invalid",e);var o=u=c=i=null,f=null,S=null;for(a in l)if(l.hasOwnProperty(a)){var z=l[a];if(z!=null)switch(a){case"name":i=z;break;case"type":c=z;break;case"checked":f=z;break;case"defaultChecked":S=z;break;case"value":u=z;break;case"defaultValue":o=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:be(e,t,a,z,l,null)}}lr(e,u,o,f,S,c,i,!1);return;case"select":se("invalid",e),a=c=u=null;for(i in l)if(l.hasOwnProperty(i)&&(o=l[i],o!=null))switch(i){case"value":u=o;break;case"defaultValue":c=o;break;case"multiple":a=o;default:be(e,t,i,o,l,null)}t=u,l=c,e.multiple=!!a,t!=null?na(e,!!a,t,!1):l!=null&&na(e,!!a,l,!0);return;case"textarea":se("invalid",e),u=i=a=null;for(c in l)if(l.hasOwnProperty(c)&&(o=l[c],o!=null))switch(c){case"value":a=o;break;case"defaultValue":i=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:be(e,t,c,o,l,null)}nr(e,a,i,u);return;case"option":for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null)&&(f==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":be(e,t,f,a,l,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<Nn.length;a++)se(Nn[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(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:be(e,t,S,a,l,null)}return;default:if(xu(t)){for(z in l)l.hasOwnProperty(z)&&(a=l[z],a!==void 0&&is(e,t,z,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&be(e,t,o,a,l,null))}function rv(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,c=null,o=null,f=null,S=null,z=null;for(T in l){var C=l[T];if(l.hasOwnProperty(T)&&C!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":f=C;default:a.hasOwnProperty(T)||be(e,t,T,null,a,C)}}for(var E in a){var T=a[E];if(C=l[E],a.hasOwnProperty(E)&&(T!=null||C!=null))switch(E){case"type":u=T;break;case"name":i=T;break;case"checked":S=T;break;case"defaultChecked":z=T;break;case"value":c=T;break;case"defaultValue":o=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(137,t));break;default:T!==C&&be(e,t,E,T,a,C)}}pu(e,c,o,f,S,z,u,i);return;case"select":T=c=o=E=null;for(u in l)if(f=l[u],l.hasOwnProperty(u)&&f!=null)switch(u){case"value":break;case"multiple":T=f;default:a.hasOwnProperty(u)||be(e,t,u,null,a,f)}for(i in a)if(u=a[i],f=l[i],a.hasOwnProperty(i)&&(u!=null||f!=null))switch(i){case"value":E=u;break;case"defaultValue":o=u;break;case"multiple":c=u;default:u!==f&&be(e,t,i,u,a,f)}t=o,l=c,a=T,E!=null?na(e,!!l,E,!1):!!a!=!!l&&(t!=null?na(e,!!l,t,!0):na(e,!!l,l?[]:"",!1));return;case"textarea":T=E=null;for(o in l)if(i=l[o],l.hasOwnProperty(o)&&i!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:be(e,t,o,null,a,i)}for(c in a)if(i=a[c],u=l[c],a.hasOwnProperty(c)&&(i!=null||u!=null))switch(c){case"value":E=i;break;case"defaultValue":T=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(r(91));break;default:i!==u&&be(e,t,c,i,a,u)}ar(e,E,T);return;case"option":for(var Z in l)E=l[Z],l.hasOwnProperty(Z)&&E!=null&&!a.hasOwnProperty(Z)&&(Z==="selected"?e.selected=!1:be(e,t,Z,null,a,E));for(f in a)E=a[f],T=l[f],a.hasOwnProperty(f)&&E!==T&&(E!=null||T!=null)&&(f==="selected"?e.selected=E&&typeof E!="function"&&typeof E!="symbol":be(e,t,f,E,a,T));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 W in l)E=l[W],l.hasOwnProperty(W)&&E!=null&&!a.hasOwnProperty(W)&&be(e,t,W,null,a,E);for(S in a)if(E=a[S],T=l[S],a.hasOwnProperty(S)&&E!==T&&(E!=null||T!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(137,t));break;default:be(e,t,S,E,a,T)}return;default:if(xu(t)){for(var Se in l)E=l[Se],l.hasOwnProperty(Se)&&E!==void 0&&!a.hasOwnProperty(Se)&&is(e,t,Se,void 0,a,E);for(z in a)E=a[z],T=l[z],!a.hasOwnProperty(z)||E===T||E===void 0&&T===void 0||is(e,t,z,E,a,T);return}}for(var x in l)E=l[x],l.hasOwnProperty(x)&&E!=null&&!a.hasOwnProperty(x)&&be(e,t,x,null,a,E);for(C in a)E=a[C],T=l[C],!a.hasOwnProperty(C)||E===T||E==null&&T==null||be(e,t,C,E,a,T)}function rf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ov(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var i=l[a],u=i.transferSize,c=i.initiatorType,o=i.duration;if(u&&o&&rf(c)){for(c=0,o=i.responseEnd,a+=1;a<l.length;a++){var f=l[a],S=f.startTime;if(S>o)break;var z=f.transferSize,C=f.initiatorType;z&&rf(C)&&(f=f.responseEnd,c+=z*(f<o?1:(o-S)/(f-S)))}if(--a,t+=8*(u+c)/(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 us=null,cs=null;function Gi(e){return e.nodeType===9?e:e.ownerDocument}function of(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 df(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 ss(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var rs=null;function dv(){var e=window.event;return e&&e.type==="popstate"?e===rs?!1:(rs=e,!0):(rs=null,!1)}var ff=typeof setTimeout=="function"?setTimeout:void 0,fv=typeof clearTimeout=="function"?clearTimeout:void 0,hf=typeof Promise=="function"?Promise:void 0,hv=typeof queueMicrotask=="function"?queueMicrotask:typeof hf<"u"?function(e){return hf.resolve(null).then(e).catch(mv)}:ff;function mv(e){setTimeout(function(){throw e})}function Tl(e){return e==="head"}function mf(e,t){var l=t,a=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(i),qa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")An(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,An(l);for(var u=l.firstChild;u;){var c=u.nextSibling,o=u.nodeName;u[Xa]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&An(e.ownerDocument.body);l=i}while(l);qa(t)}function vf(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function os(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":os(l),vu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function vv(e,t,l,a){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Xa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==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(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=zt(e.nextSibling),e===null)break}return null}function yv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=zt(e.nextSibling),e===null))return null;return e}function yf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=zt(e.nextSibling),e===null))return null;return e}function ds(e){return e.data==="$?"||e.data==="$~"}function fs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function pv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function zt(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 hs=null;function pf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return zt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function jf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function xf(e,t,l){switch(t=Gi(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function An(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vu(e)}var Ot=new Map,gf=new Set;function Qi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ul=Q.d;Q.d={f:jv,r:xv,D:gv,C:bv,L:Sv,m:Nv,X:Av,S:Ev,M:Tv};function jv(){var e=ul.f(),t=Ci();return e||t}function xv(e){var t=ta(e);t!==null&&t.tag===5&&t.type==="form"?qo(t):ul.r(e)}var Ua=typeof document>"u"?null:document;function bf(e,t,l){var a=Ua;if(a&&typeof t=="string"&&t){var i=gt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),We(t,"link",e),Le(t),a.head.appendChild(t)))}}function gv(e){ul.D(e),bf("dns-prefetch",e,null)}function bv(e,t){ul.C(e,t),bf("preconnect",e,t)}function Sv(e,t,l){ul.L(e,t,l);var a=Ua;if(a&&e&&t){var i='link[rel="preload"][as="'+gt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+gt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+gt(l.imageSizes)+'"]')):i+='[href="'+gt(e)+'"]';var u=i;switch(t){case"style":u=Ra(e);break;case"script":u=Ha(e)}Ot.has(u)||(e=A({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ot.set(u,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Tn(u))||t==="script"&&a.querySelector(zn(u))||(t=a.createElement("link"),We(t,"link",e),Le(t),a.head.appendChild(t)))}}function Nv(e,t){ul.m(e,t);var l=Ua;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+gt(a)+'"][href="'+gt(e)+'"]',u=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ha(e)}if(!Ot.has(u)&&(e=A({rel:"modulepreload",href:e},t),Ot.set(u,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(zn(u)))return}a=l.createElement("link"),We(a,"link",e),Le(a),l.head.appendChild(a)}}}function Ev(e,t,l){ul.S(e,t,l);var a=Ua;if(a&&e){var i=la(a).hoistableStyles,u=Ra(e);t=t||"default";var c=i.get(u);if(!c){var o={loading:0,preload:null};if(c=a.querySelector(Tn(u)))o.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ot.get(u))&&ms(e,l);var f=c=a.createElement("link");Le(f),We(f,"link",e),f._p=new Promise(function(S,z){f.onload=S,f.onerror=z}),f.addEventListener("load",function(){o.loading|=1}),f.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Xi(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:o},i.set(u,c)}}}function Av(e,t){ul.X(e,t);var l=Ua;if(l&&e){var a=la(l).hoistableScripts,i=Ha(e),u=a.get(i);u||(u=l.querySelector(zn(i)),u||(e=A({src:e,async:!0},t),(t=Ot.get(i))&&vs(e,t),u=l.createElement("script"),Le(u),We(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function Tv(e,t){ul.M(e,t);var l=Ua;if(l&&e){var a=la(l).hoistableScripts,i=Ha(e),u=a.get(i);u||(u=l.querySelector(zn(i)),u||(e=A({src:e,async:!0,type:"module"},t),(t=Ot.get(i))&&vs(e,t),u=l.createElement("script"),Le(u),We(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function Sf(e,t,l,a){var i=(i=ue.current)?Qi(i):null;if(!i)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ra(l.href),l=la(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ra(l.href);var u=la(i).hoistableStyles,c=u.get(e);if(c||(i=i.ownerDocument||i,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=i.querySelector(Tn(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Ot.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ot.set(e,l),u||zv(i,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ha(l),l=la(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ra(e){return'href="'+gt(e)+'"'}function Tn(e){return'link[rel="stylesheet"]['+e+"]"}function Nf(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function zv(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),We(t,"link",l),Le(t),e.head.appendChild(t))}function Ha(e){return'[src="'+gt(e)+'"]'}function zn(e){return"script[async]"+e}function Ef(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+gt(l.href)+'"]');if(a)return t.instance=a,Le(a),a;var i=A({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Le(a),We(a,"style",i),Xi(a,l.precedence,e),t.instance=a;case"stylesheet":i=Ra(l.href);var u=e.querySelector(Tn(i));if(u)return t.state.loading|=4,t.instance=u,Le(u),u;a=Nf(l),(i=Ot.get(i))&&ms(a,i),u=(e.ownerDocument||e).createElement("link"),Le(u);var c=u;return c._p=new Promise(function(o,f){c.onload=o,c.onerror=f}),We(u,"link",a),t.state.loading|=4,Xi(u,l.precedence,e),t.instance=u;case"script":return u=Ha(l.src),(i=e.querySelector(zn(u)))?(t.instance=i,Le(i),i):(a=l,(i=Ot.get(u))&&(a=A({},l),vs(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Le(i),We(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Xi(a,l.precedence,e));return t.instance}function Xi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,u=i,c=0;c<a.length;c++){var o=a[c];if(o.dataset.precedence===t)u=o;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function ms(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Li=null;function Af(e,t,l){if(Li===null){var a=new Map,i=Li=new Map;i.set(l,a)}else i=Li,a=i.get(l),a||(a=new Map,i.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),i=0;i<l.length;i++){var u=l[i];if(!(u[Xa]||u[ke]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var o=a.get(c);o?o.push(u):a.set(c,[u])}}return a}function Tf(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Ov(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function zf(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function _v(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Ra(a.href),u=t.querySelector(Tn(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Zi.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Le(u);return}u=t.ownerDocument||t,a=Nf(a),(i=Ot.get(i))&&ms(a,i),u=u.createElement("link"),Le(u);var c=u;c._p=new Promise(function(o,f){c.onload=o,c.onerror=f}),We(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Zi.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ys=0;function Dv(e,t){return e.stylesheets&&e.count===0&&ki(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ki(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&ys===0&&(ys=62500*ov());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ki(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>ys?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Zi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ki(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Vi=null;function ki(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vi=new Map,t.forEach(Mv,e),Vi=null,Zi.call(e))}function Mv(e,t){if(!(t.state.loading&4)){var l=Vi.get(e);if(l)var a=l.get(null);else{l=new Map,Vi.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var c=i[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}i=t.instance,c=i.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,i),l.set(c,i),this.count++,a=Zi.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var On={$$typeof:w,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function Cv(e,t,l,a,i,u,c,o,f){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=du(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=du(0),this.hiddenUpdates=du(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map}function Of(e,t,l,a,i,u,c,o,f,S,z,C){return e=new Cv(e,t,l,c,f,S,z,C,o),t=1,u===!0&&(t|=24),u=ht(3,null,null,t),e.current=u,u.stateNode=e,t=$u(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Pu(u),e}function _f(e){return e?(e=fa,e):fa}function Df(e,t,l,a,i,u){i=_f(i),a.context===null?a.context=i:a.pendingContext=i,a=vl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=yl(e,a,t),l!==null&&(st(l,e,t),un(l,e,t))}function Mf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ps(e,t){Mf(e,t),(e=e.alternate)&&Mf(e,t)}function Cf(e){if(e.tag===13||e.tag===31){var t=Yl(e,67108864);t!==null&&st(t,e,67108864),ps(e,67108864)}}function Uf(e){if(e.tag===13||e.tag===31){var t=jt();t=fu(t);var l=Yl(e,t);l!==null&&st(l,e,t),ps(e,t)}}var Ki=!0;function Uv(e,t,l,a){var i=O.T;O.T=null;var u=Q.p;try{Q.p=2,js(e,t,l,a)}finally{Q.p=u,O.T=i}}function Rv(e,t,l,a){var i=O.T;O.T=null;var u=Q.p;try{Q.p=8,js(e,t,l,a)}finally{Q.p=u,O.T=i}}function js(e,t,l,a){if(Ki){var i=xs(a);if(i===null)ns(e,t,a,Ji,l),Hf(e,a);else if(qv(i,e,t,l,a))a.stopPropagation();else if(Hf(e,a),t&4&&-1<Hv.indexOf(e)){for(;i!==null;){var u=ta(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Rl(u.pendingLanes);if(c!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;c;){var f=1<<31-dt(c);o.entanglements[1]|=f,c&=~f}Qt(u),(ve&6)===0&&(Di=rt()+500,Sn(0))}}break;case 31:case 13:o=Yl(u,2),o!==null&&st(o,u,2),Ci(),ps(u,2)}if(u=xs(a),u===null&&ns(e,t,a,Ji,l),u===i)break;i=u}i!==null&&a.stopPropagation()}else ns(e,t,a,null,l)}}function xs(e){return e=bu(e),gs(e)}var Ji=null;function gs(e){if(Ji=null,e=ea(e),e!==null){var t=g(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=_(t),e!==null)return e;e=null}else if(l===31){if(e=U(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ji=e,null}function Rf(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(gh()){case Gs:return 2;case Qs:return 8;case Bn:case bh:return 32;case Xs:return 268435456;default:return 32}default:return 32}}var bs=!1,zl=null,Ol=null,_l=null,_n=new Map,Dn=new Map,Dl=[],Hv="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 Hf(e,t){switch(e){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":Ol=null;break;case"mouseover":case"mouseout":_l=null;break;case"pointerover":case"pointerout":_n.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dn.delete(t.pointerId)}}function Mn(e,t,l,a,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[i]},t!==null&&(t=ta(t),t!==null&&Cf(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function qv(e,t,l,a,i){switch(t){case"focusin":return zl=Mn(zl,e,t,l,a,i),!0;case"dragenter":return Ol=Mn(Ol,e,t,l,a,i),!0;case"mouseover":return _l=Mn(_l,e,t,l,a,i),!0;case"pointerover":var u=i.pointerId;return _n.set(u,Mn(_n.get(u)||null,e,t,l,a,i)),!0;case"gotpointercapture":return u=i.pointerId,Dn.set(u,Mn(Dn.get(u)||null,e,t,l,a,i)),!0}return!1}function qf(e){var t=ea(e.target);if(t!==null){var l=g(t);if(l!==null){if(t=l.tag,t===13){if(t=_(l),t!==null){e.blockedOn=t,Js(e.priority,function(){Uf(l)});return}}else if(t===31){if(t=U(l),t!==null){e.blockedOn=t,Js(e.priority,function(){Uf(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $i(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=xs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);gu=a,l.target.dispatchEvent(a),gu=null}else return t=ta(l),t!==null&&Cf(t),e.blockedOn=l,!1;t.shift()}return!0}function Bf(e,t,l){$i(e)&&l.delete(t)}function Bv(){bs=!1,zl!==null&&$i(zl)&&(zl=null),Ol!==null&&$i(Ol)&&(Ol=null),_l!==null&&$i(_l)&&(_l=null),_n.forEach(Bf),Dn.forEach(Bf)}function Wi(e,t){e.blockedOn===t&&(e.blockedOn=null,bs||(bs=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Bv)))}var Fi=null;function wf(e){Fi!==e&&(Fi=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Fi===e&&(Fi=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(gs(a||l)===null)continue;break}var u=ta(l);u!==null&&(e.splice(t,3),t-=3,xc(u,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function qa(e){function t(f){return Wi(f,e)}zl!==null&&Wi(zl,e),Ol!==null&&Wi(Ol,e),_l!==null&&Wi(_l,e),_n.forEach(t),Dn.forEach(t);for(var l=0;l<Dl.length;l++){var a=Dl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Dl.length&&(l=Dl[0],l.blockedOn===null);)qf(l),l.blockedOn===null&&Dl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var i=l[a],u=l[a+1],c=i[lt]||null;if(typeof u=="function")c||wf(l);else if(c){var o=null;if(u&&u.hasAttribute("formAction")){if(i=u,c=u[lt]||null)o=c.formAction;else if(gs(i)!==null)continue}else o=c.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),wf(l)}}}function Yf(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return i=c})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.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(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Ss(e){this._internalRoot=e}Ii.prototype.render=Ss.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=jt();Df(l,a,e,t,null,null)},Ii.prototype.unmount=Ss.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Df(e.current,2,null,e,null,null),Ci(),t[Pl]=null}};function Ii(e){this._internalRoot=e}Ii.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ks();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Dl.length&&t!==0&&t<Dl[l].priority;l++);Dl.splice(l,0,e),l===0&&qf(e)}};var Gf=d.version;if(Gf!=="19.2.0")throw Error(r(527,Gf,"19.2.0"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?M(e):null,e=e===null?null:e.stateNode,e};var wv={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pi.isDisabled&&Pi.supportsFiber)try{Ya=Pi.inject(wv),ot=Pi}catch{}}return Un.createRoot=function(e,t){if(!j(e))throw Error(r(299));var l=!1,a="",i=ko,u=Ko,c=Jo;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Of(e,1,!1,null,null,l,a,null,i,u,c,Yf),e[Pl]=t.current,as(e),new Ss(t)},Un.hydrateRoot=function(e,t,l){if(!j(e))throw Error(r(299));var a=!1,i="",u=ko,c=Ko,o=Jo,f=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(f=l.formState)),t=Of(e,1,!0,t,l??null,a,i,f,u,c,o,Yf),t.context=_f(null),l=t.current,a=jt(),a=fu(a),i=vl(a),i.callback=null,yl(l,i,a),l=a,t.current.lanes=l,Qa(t,l),Qt(t),e[Pl]=t.current,as(e),new Ii(t)},Un.version="19.2.0",Un}var Wf;function Jv(){if(Wf)return As.exports;Wf=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(d){console.error(d)}}return s(),As.exports=Kv(),As.exports}var $v=Jv();const lu="feltkit.admin-token";function Wv(){const s=/(?:^|[#&])token=([^&]+)/.exec(location.hash);if(s){try{sessionStorage.setItem(lu,decodeURIComponent(s[1]))}catch{}return history.replaceState(null,"",`${location.pathname}#/overview`),decodeURIComponent(s[1])}try{return sessionStorage.getItem(lu)}catch{return null}}function Ff(s){try{s?sessionStorage.setItem(lu,s):sessionStorage.removeItem(lu)}catch{}}class If extends Error{constructor(d,h,r){super(h),this.code=d,this.status=r}code;status}let ih=null;const _s=s=>ih=s;let tu=null;const Ds=s=>tu=s;function uh(s){return tu?s?{"x-feltkit-csrf":tu.csrf,"x-feltkit-environment":tu.environment}:{}:{"x-feltkit-admin":ih??""}}async function ne(s,d={}){const h=await fetch(`/_feltkit/api${s}`,{...d,credentials:"same-origin",headers:{...uh(!!(d.method&&d.method!=="GET")),...d.body?{"Content-Type":"application/json"}:{},...d.headers??{}}});let r;try{r=await h.json()}catch{throw new If("UNAVAILABLE",`The server answered ${h.status}.`,h.status)}if(!h.ok)throw new If(r?.error?.code??"INTERNAL",r?.error?.message??`Request failed (${h.status})`,h.status);return r}function Fv(s,d){const h=new AbortController;return(async()=>{let r=500;for(;!h.signal.aborted;){try{const j=await fetch("/_feltkit/api/events",{credentials:"same-origin",headers:uh(!1),signal:h.signal});if(!j.ok||!j.body)throw new Error(String(j.status));d(!0),r=500;const g=j.body.getReader(),_=new TextDecoder;let U="";for(;;){const{value:p,done:y}=await g.read();if(y)break;U+=_.decode(p,{stream:!0});let M;for(;(M=U.indexOf(`
|
|
10
|
+
|
|
11
|
+
`))>=0;){const A=U.slice(0,M);U=U.slice(M+2);const Y=/^event: (.+)$/m.exec(A)?.[1],$=/^data: (.+)$/m.exec(A)?.[1];Y&&$&&s(Y,JSON.parse($))}}}catch{}if(d(!1),h.signal.aborted)break;await new Promise(j=>setTimeout(j,r)),r=Math.min(r*2,8e3)}})(),()=>h.abort()}function nu(s){const d=!!s?.environment?.development,r=(s?.operator?.permissions??[]).some(j=>j==="*"||j==="feltkit.*"||j==="feltkit.operations.*"||j==="feltkit.operations.write");return{development:d,canAct:d||r,actor:s?.operator?.principal?.id??null}}function Fe(s){if(!s)return"—";const d=Math.max(0,Math.round((Date.now()-Date.parse(s))/1e3));return d<5?"just now":d<60?`${d}s ago`:d<3600?`${Math.floor(d/60)}m ago`:d<86400?`${Math.floor(d/3600)}h ago`:new Date(s).toLocaleDateString()}function ch(s=15e3){const[,d]=B.useState(0);B.useEffect(()=>{const h=setInterval(()=>d(r=>r+1),s);return()=>clearInterval(h)},[s])}function K({tone:s="neutral",children:d,title:h}){return n.jsx("span",{className:`badge badge-${s}`,title:h,children:d})}function Ba({outcome:s}){return s==="success"?n.jsx(K,{tone:"ok",children:"success"}):s==="denied"?n.jsx(K,{tone:"warn",children:"denied"}):n.jsx(K,{tone:"bad",children:s})}function le({title:s,action:d,children:h,className:r=""}){return n.jsxs("section",{className:`card ${r}`,children:[(s||d)&&n.jsxs("header",{className:"card-header",children:[s&&n.jsx("h2",{children:s}),d]}),h]})}function _t({title:s,children:d}){return n.jsxs("div",{className:"empty",children:[n.jsx("div",{className:"empty-title",children:s}),d&&n.jsx("div",{className:"empty-body",children:d})]})}function Ve({label:s="Loading"}){return n.jsxs("div",{className:"loading",role:"status",children:[n.jsx("span",{className:"spinner","aria-hidden":!0})," ",s,"…"]})}function _e({error:s,retry:d}){const h=s;return n.jsxs("div",{className:"error-box",role:"alert",children:[n.jsx("strong",{children:h?.code??"Error"})," ",h?.message??String(s),d&&n.jsx("button",{className:"btn btn-small",onClick:d,children:"Retry"})]})}function Hn({value:s,max:d=4e3}){let h=JSON.stringify(s,null,2)??"undefined";return h.length>d&&(h=`${h.slice(0,d)}
|
|
12
|
+
… (${h.length-d} more characters)`),n.jsx("pre",{className:"json",children:h})}function Iv({text:s,label:d="Copy"}){const[h,r]=B.useState(!1);return n.jsx("button",{className:"btn btn-small btn-ghost",onClick:()=>{navigator.clipboard?.writeText(s).then(()=>{r(!0),setTimeout(()=>r(!1),1200)})},children:h?"Copied":d})}function Cs({rows:s}){return n.jsx("dl",{className:"kv",children:s.map(([d,h],r)=>n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:d}),n.jsx("dd",{children:h})]},r))})}function Rn({schema:s}){if(!s)return n.jsx("span",{className:"muted",children:"—"});if(s.type!=="object"||!s.properties)return n.jsx("code",{className:"type",children:au(s)});const d=new Set(s.required??[]),h=Object.entries(s.properties);return h.length?n.jsx("table",{className:"fields",children:n.jsx("tbody",{children:h.map(([r,j])=>n.jsxs("tr",{children:[n.jsxs("td",{className:"mono",children:[r,!d.has(r)&&n.jsx("span",{className:"muted",children:"?"})]}),n.jsxs("td",{children:[n.jsx("code",{className:"type",children:au(j)}),Pf(j)&&n.jsxs("span",{className:"muted small",children:[" ",Pf(j)]})]})]},r))})}):n.jsx("span",{className:"muted",children:"no fields"})}function au(s){return s?s.enum?s.enum.map(d=>JSON.stringify(d)).join(" | "):s.anyOf?s.anyOf.map(au).join(" | "):s.type==="array"?`${au(s.items)}[]`:s.type==="object"?s.properties?`{ ${Object.keys(s.properties).join(", ")} }`:"object":Array.isArray(s.type)?s.type.join(" | "):s.type??"unknown":"unknown"}function Pf(s){const d=[];return s.minLength!==void 0&&d.push(`min ${s.minLength}`),s.maxLength!==void 0&&d.push(`max ${s.maxLength}`),s.minimum!==void 0&&d.push(`≥ ${s.minimum}`),s.maximum!==void 0&&d.push(`≤ ${s.maximum}`),d.join(", ")}function sh({title:s,onClose:d,children:h}){return B.useEffect(()=>{const r=j=>j.key==="Escape"&&d();return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[d]),n.jsx("div",{className:"drawer-backdrop",onClick:d,children:n.jsxs("aside",{className:"drawer",role:"dialog","aria-modal":"true","aria-label":typeof s=="string"?s:"Details",onClick:r=>r.stopPropagation(),children:[n.jsxs("header",{className:"drawer-header",children:[n.jsx("h2",{children:s}),n.jsx("button",{className:"btn btn-ghost",onClick:d,"aria-label":"Close",children:"Esc"})]}),n.jsx("div",{className:"drawer-body",children:h})]})})}function Qe(s,d){const[h,r]=B.useState({loading:!0}),[j,g]=B.useState(0);return B.useEffect(()=>{let _=!0;return r(U=>({...U,loading:!0})),s().then(U=>_&&r({data:U,loading:!1}),U=>_&&r(p=>({data:p.data,error:U,loading:!1}))),()=>{_=!1}},[...d,j]),{...h,reload:()=>g(_=>_+1)}}const eh={configured:{tone:"ok",help:"Enabled, set up, and its records read cleanly."},unconfigured:{tone:"warn",help:"Enabled, but nothing is set up yet."},unhealthy:{tone:"bad",help:"Enabled, but its store failed a check or recent work failed."},available:{tone:"neutral",help:"Can run here; not enabled in feltkit({ services })."},unavailable:{tone:"bad",help:"Cannot run in this installation."}};function Us({service:s}){const d=eh[s.state]??eh.unavailable;return n.jsx(K,{tone:d.tone,title:d.help,children:s.state})}function Pv(s){const[d,h]=B.useState(s[0]?.id??"");B.useEffect(()=>{!d&&s[0]&&h(s[0].id)},[s,d]);const r=n.jsxs("label",{className:"row small",children:[n.jsx("span",{className:"muted",children:"Act as"}),n.jsx("select",{value:d,onChange:j=>h(j.target.value),"aria-label":"Identity for service operations",children:s.map(j=>n.jsxs("option",{value:j.id,children:[j.name??j.id," (",j.roles.join(", "),")"]},j.id))})]});return{as:d,picker:r}}function ey(){const{version:s}=Ht(),d=Qe(()=>ne("/services"),[s]),h=Qe(()=>ne("/overview"),[s]),r=h.data?.devUsers??[],j=!!h.data?.environment?.development,{canAct:g}=nu(h.data),{as:_,picker:U}=Pv(r),[p,y]=B.useState(null),[M,A]=B.useState(null),Y=d.data?.services??[],$=Y.filter(N=>N.state!=="available"&&N.state!=="unavailable"),I=Y.filter(N=>N.state==="available"||N.state==="unavailable"),L=d.data?.console?.url??null,q=async N=>{A(null),y(N);try{const{url:G}=await ne("/services/console",{method:"POST",body:JSON.stringify({as:_,page:N})});window.open(G,"feltkit-services")}catch(G){A(G)}finally{y(null)}};return n.jsxs(n.Fragment,{children:[n.jsx(qt,{title:"Services",subtitle:j?"AppPort Services on this environment’s FeltDB instance. Configuration opens the package’s own pages; every operation there is authorized by your roles, as the identity you choose.":"AppPort Services on this environment’s FeltDB instance. Retries are authorized as you and recorded as yours; the work still runs as its owner.",actions:L&&r.length?U:null}),M?n.jsx(_e,{error:M}):null,d.error&&!d.data?n.jsx(_e,{error:d.error,retry:d.reload}):d.data?n.jsxs(n.Fragment,{children:[!L&&n.jsx(le,{children:n.jsxs("p",{className:"muted small",children:[d.data.console?.reason??"The services console is not running."," Service state below is read-only."]})}),L&&r.length===0&&n.jsx(le,{children:n.jsxs("p",{className:"muted small",children:["Declare a development identity in ",n.jsxs("code",{children:["feltkit(","{"," dev: ","{"," users ","}"," ","}",")"]})," to open the services console: its operations are authorized as that identity."]})}),$.length===0&&n.jsxs(_t,{title:"No services enabled",children:["Enable services with feltkit(","{"," services: ","{"," … ","}"," ","}","). Each one gets its management page here."]}),$.map(N=>n.jsxs(le,{title:n.jsxs("span",{className:"row",children:[N.name," ",n.jsx(Us,{service:N})]}),action:N.page&&L&&r.length?n.jsx("button",{className:"btn",onClick:()=>q(N.page),disabled:p!==null,children:p===N.page?"Opening…":"Manage"}):n.jsxs("span",{className:"muted small",children:[N.package,"@",N.version]}),children:[n.jsx("p",{children:N.description}),n.jsxs("dl",{className:"kv",children:[n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Status"}),n.jsxs("dd",{children:[N.detail," ",N.lastCheckedAt&&n.jsxs("span",{className:"muted",children:["· checked ",Fe(N.lastCheckedAt)]})]})]}),N.summary&&n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Records"}),n.jsx("dd",{children:Object.entries(N.summary).map(([G,w])=>n.jsxs("span",{className:"chip",children:[G," ",n.jsx("strong",{children:String(w)})]},G))})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Permissions"}),n.jsx("dd",{children:N.capabilities.map(G=>n.jsx("code",{className:"chip",children:G},G))})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"State"}),n.jsx("dd",{children:N.collections.map(G=>n.jsx("a",{href:`#/data/${G}`,className:"chip mono",children:G},G))})]}),N.lastError&&n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Last error"}),n.jsxs("dd",{className:"error-text",children:[N.lastError.message," ",n.jsxs("span",{className:"muted",children:["· ",Fe(N.lastError.at)]})]})]})]})]},N.id)),d.data.credentials?.length>0&&n.jsx(ty,{items:d.data.credentials}),Y.find(N=>N.id==="jobs"&&N.state!=="available"&&N.state!=="unavailable")&&n.jsx(ly,{as:_,development:j,canAct:g,version:s}),Y.find(N=>N.id==="webhooks"&&N.state!=="available"&&N.state!=="unavailable")&&n.jsx(ay,{as:_,development:j,canAct:j,version:s}),I.length>0&&n.jsx(le,{title:"Not enabled",children:n.jsx("ul",{className:"list",children:I.map(N=>n.jsxs("li",{className:"list-row",children:[n.jsxs("span",{children:[n.jsx("strong",{children:N.name})," ",n.jsx("span",{className:"muted small",children:N.state==="unavailable"?N.detail:N.description})]}),n.jsx(Us,{service:N})]},N.id))})})]}):n.jsx(Ve,{})]})}function ty({items:s}){return n.jsxs(le,{title:"Credentials",children:[n.jsx("p",{className:"muted small",children:"Services store credential references only. FeltKit resolves each one from an environment variable inside the effect that needs it; values are never stored, logged, or shown."}),n.jsx("div",{className:"table-wrap",children:n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Reference"}),n.jsx("th",{children:"Variable"}),n.jsx("th",{children:"Used by"}),n.jsx("th",{children:"Set"})]})}),n.jsx("tbody",{children:s.map(d=>n.jsxs("tr",{children:[n.jsx("td",{className:"mono",children:d.ref}),n.jsx("td",{className:"mono",children:d.variable??"invalid reference"}),n.jsx("td",{className:"small",children:d.usedBy.join(", ")}),n.jsx("td",{children:d.present?n.jsx(K,{tone:"ok",children:"set"}):n.jsx(K,{tone:"bad",children:"missing"})})]},d.ref))})]})})]})}function rh({title:s,path:d,as:h,development:r,canAct:j,version:g,retry:_,columns:U}){const[p,y]=B.useState(0),M=Qe(()=>ne(`/services/${d}`),[g,p]),[A,Y]=B.useState(null),$=async q=>{Y(null);try{await ne(`/services/${d}/${encodeURIComponent(q)}/${_.action}`,{method:"POST",body:JSON.stringify(r?{as:h}:{})}),y(N=>N+1)}catch(N){Y(N)}},I=async()=>{Y(null);try{await ne("/services/run",{method:"POST",body:"{}"}),y(q=>q+1)}catch(q){Y(q)}},L=M.data?.items??[];return n.jsxs(le,{title:s,action:r?n.jsx("button",{className:"btn",onClick:I,children:"Run due work now"}):null,children:[A?n.jsx(_e,{error:A}):null,M.data?.replay&&!M.data.replay.enabled?n.jsx("p",{className:"muted small",children:M.data.replay.reason}):null,M.error?n.jsx(_e,{error:M.error,retry:M.reload}):M.data?L.length===0?n.jsx("p",{className:"muted small",children:"Nothing yet."}):n.jsx("div",{className:"table-wrap",children:n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[U.map(([q])=>n.jsx("th",{children:q},q)),n.jsx("th",{})]})}),n.jsx("tbody",{children:L.slice(0,50).map(q=>n.jsxs("tr",{children:[U.map(([N,G])=>n.jsx("td",{children:G(q)},N)),n.jsxs("td",{className:"row",children:[r&&q.status==="failed"&&n.jsx("button",{className:"btn btn-small",onClick:()=>Dt(`agent/new/${d==="jobs"?"diagnose-job":"diagnose-delivery"}/${encodeURIComponent(q.id)}`),children:"Diagnose"}),j&&_.when(q)&&(q.retryable??!0)&&n.jsx("button",{className:"btn btn-small",onClick:()=>$(q.id),disabled:r&&!h,children:_.label})]})]},q.id))})]})}):n.jsx(Ve,{})]})}const oh=s=>s==="completed"||s==="delivered"?"ok":s==="failed"?"bad":"warn";function ly(s){return n.jsx(rh,{...s,title:"Job runs",path:"jobs",retry:{label:"Retry",action:"retry",when:d=>d.status==="failed"},columns:[["Type",d=>n.jsx("code",{children:d.type})],["Status",d=>n.jsx(K,{tone:oh(d.status),children:d.status})],["Attempts",d=>`${d.attemptCount}/${d.maxAttempts}`],["As",d=>n.jsx("span",{className:"mono small",children:d.principal??"—"})],["Last error",d=>n.jsx("span",{className:"error-text small",children:d.lastError??""})],["Created",d=>n.jsx("span",{className:"muted small",children:Fe(d.createdAt)})]]})}function ay(s){return n.jsx(rh,{...s,title:"Webhook deliveries",path:"deliveries",retry:{label:"Replay",action:"replay",when:d=>d.status==="failed"},columns:[["Event",d=>n.jsx("code",{children:d.eventType})],["To",d=>n.jsx("span",{className:"mono small",children:d.destination??d.endpointId})],["Status",d=>n.jsx(K,{tone:oh(d.status),children:d.status})],["Attempts",d=>d.attemptCount],["HTTP",d=>d.lastStatusCode??""],["Last error",d=>n.jsx("span",{className:"error-text small",children:d.lastError??""})],["Created",d=>n.jsx("span",{className:"muted small",children:Fe(d.createdAt)})]]})}function ny(){ch();const{overview:s,activity:d}=Ht();if(!s)return null;const h=s.capabilities??[],r=dh(d,s.recentActivity??[]).slice(0,8),j=[...s.recentErrors??[],...s.recentDenials??[]].sort((p,y)=>y.at.localeCompare(p.at)).slice(0,6),g=Object.values(s.counts??{}).reduce((p,y)=>p+Number(y),0),_=(s.services??[]).filter(p=>p.state!=="available"&&p.state!=="unavailable"),U=s.agent??{tasks:[],waiting:0,handoffs:0};return n.jsxs(n.Fragment,{children:[n.jsx(qt,{title:s.application.name,subtitle:s.application.description??"Your application at a glance: where its state lives, what it can do, and what it has done.",actions:n.jsxs(n.Fragment,{children:[n.jsx(K,{tone:s.state==="ready"?"ok":"warn",children:s.state}),s.url&&n.jsx("a",{className:"btn",href:s.url,target:"_blank",rel:"noreferrer",children:"Open app ↗"})]})}),n.jsxs("div",{className:"grid grid-4 stats",children:[n.jsx(eu,{label:"Records",value:g,detail:`${s.collections.length} collection${s.collections.length===1?"":"s"}`,onClick:()=>Dt("data")}),n.jsx(eu,{label:"Functions",value:s.functions.length,detail:`${s.functions.filter(p=>p.kind==="query").length} queries · ${s.functions.filter(p=>p.kind==="mutation").length} mutations`,onClick:()=>Dt("capabilities")}),n.jsx(eu,{label:"Capabilities",value:h.length,detail:"published through AppPort",onClick:()=>Dt("capabilities")}),n.jsx(eu,{label:"Errors",value:(s.recentErrors??[]).length,detail:`${(s.recentDenials??[]).length} recent denials`,tone:(s.recentErrors??[]).length?"bad":void 0,onClick:()=>Dt("activity")})]}),n.jsxs("div",{className:"grid grid-2",children:[n.jsxs(le,{title:"Where state lives",children:[n.jsx("p",{className:"lede",children:"One FeltDB instance serves this environment. Application functions, AppPort capabilities, AppPort Services, sessions, and this activity log all read and write it."}),n.jsxs("dl",{className:"kv",children:[n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Environment"}),n.jsxs("dd",{children:[s.environment.name," ",s.environment.production&&n.jsx(K,{tone:"warn",children:"production"})]})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Storage"}),n.jsxs("dd",{children:["FeltDB ",s.instance.feltdbVersion," · ",s.instance.mode," · ",s.instance.durable?"durable":"ephemeral"]})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Location"}),n.jsx("dd",{children:n.jsx("code",{className:"path",children:s.instance.location})})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Journal"}),n.jsxs("dd",{children:["position ",s.instance.sequence]})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Opened"}),n.jsxs("dd",{children:[Fe(s.instance.openedAt)," by pid ",s.instance.pid]})]})]}),n.jsxs("div",{className:"components",children:[n.jsx("div",{className:"components-title",children:"Components using this instance"}),Object.entries(s.components??{}).map(([p,y])=>n.jsxs("div",{className:"component",children:[n.jsx("span",{className:"mono",children:p}),n.jsx("span",{className:"muted small",children:y.join(", ")})]},p))]})]}),n.jsx(le,{title:"Recent activity",action:n.jsx("a",{href:"#/activity",className:"link",children:"All activity →"}),children:r.length===0?n.jsx(_t,{title:"Nothing has happened yet",children:"Open the app and make a change. Every query, mutation, capability call, and sign-in appears here."}):n.jsx("ul",{className:"feed",children:r.map(p=>n.jsx("li",{children:n.jsxs("a",{href:`#/activity/${p.id}`,className:"feed-row",children:[n.jsx(Ba,{outcome:p.outcome}),n.jsx("span",{className:"mono feed-name",children:p.name}),n.jsx("span",{className:"muted small",children:p.principal?.id??(p.kind==="system"?"system":"anonymous")}),n.jsxs("span",{className:"muted small",children:["via ",p.via]}),p.writes?.length?n.jsxs(K,{tone:"accent",children:[p.writes.length," write",p.writes.length===1?"":"s"]}):null,n.jsx("span",{className:"muted small right",children:Fe(p.at)})]})},p.id))})})]}),s.path&&n.jsx(le,{title:"Path to production",children:n.jsx("ol",{className:"journey",children:s.path.map(p=>n.jsxs("li",{children:[n.jsx(K,{tone:p.state==="done"?"ok":p.state==="todo"?"warn":"neutral",children:p.state==="done"?"done":p.state==="todo"?"to do":p.state==="not-tracked"?"not tracked":"review"}),n.jsx("strong",{children:p.step}),n.jsx("span",{className:"small",children:p.detail}),p.link&&n.jsx("a",{className:"link small",href:`#/${p.link}`,"aria-label":`Open ${p.step}`,children:"Open →"})]},p.step))})}),n.jsxs("div",{className:"grid grid-3",children:[n.jsx(le,{title:"Data",action:s.environment.production?null:n.jsx("a",{href:"#/data",className:"link",children:"Explore →"}),children:s.collections.length===0?n.jsxs(_t,{title:"No collections",children:['Declare one with app.collection("name", ',"{ … }",")."]}):n.jsx("ul",{className:"list",children:s.collections.map(p=>n.jsx("li",{children:n.jsxs("a",{href:`#/data/${p.name}`,className:"list-row",children:[n.jsx("span",{className:"mono",children:p.name}),n.jsx("span",{className:"muted",children:s.counts?.[p.name]??0})]})},p.name))})}),n.jsx(le,{title:"Capabilities",action:n.jsx("a",{href:"#/capabilities",className:"link",children:"Inspect →"}),children:h.length===0?n.jsx(_t,{title:"No capabilities published",children:'Add capability: "name.verb" to a query or mutation to publish it through AppPort.'}):n.jsx("ul",{className:"list",children:h.map(p=>n.jsx("li",{children:n.jsxs("a",{href:`#/capabilities/${p.name}`,className:"list-row",children:[n.jsx("span",{className:"mono",children:p.name}),n.jsx(K,{tone:p.effect==="consequential"?"accent":"neutral",children:p.effect})]})},p.name))})}),n.jsx(le,{title:"Services",action:n.jsx("a",{href:"#/services",className:"link",children:"Manage →"}),children:_.length===0?n.jsxs(_t,{title:"No services enabled",children:["Enable AppPort Services with feltkit(","{"," services: ","{"," files: true, jobs: … ","}"," ","}",")."]}):n.jsx("ul",{className:"list",children:_.map(p=>n.jsxs("li",{className:"list-row",children:[n.jsx("span",{children:p.name}),n.jsx(Us,{service:p,compact:!0})]},p.id))})})]}),n.jsxs(le,{title:"Agent",action:n.jsx("a",{href:"#/agent",className:"link",children:"Open →"}),children:[U.waiting>0&&n.jsxs("p",{children:[n.jsxs(K,{tone:"warn",children:[U.waiting," waiting for approval"]})," ",n.jsx("a",{href:"#/agent",children:"Review"})]}),U.handoffs>0&&n.jsxs("p",{className:"muted small",children:[U.handoffs," task(s) waiting for a coding agent to claim over MCP."]}),U.tasks.length===0?n.jsx("p",{className:"muted small",children:"No agent tasks yet. Diagnose a failed job from Services, or start one on the Agent screen."}):n.jsx("ul",{className:"list",children:U.tasks.map(p=>n.jsx("li",{children:n.jsxs("a",{href:`#/agent/${p.id}`,className:"list-row",children:[n.jsx("span",{children:p.objective}),n.jsx(K,{tone:p.status==="completed"?"ok":p.status==="blocked"?"warn":"neutral",children:p.status})]})},p.id))})]}),j.length>0&&n.jsx(le,{title:"Recent errors and denials",action:n.jsx("a",{href:"#/activity",className:"link",children:"Investigate →"}),children:n.jsx("ul",{className:"feed",children:j.map(p=>n.jsx("li",{children:n.jsxs("a",{href:`#/activity/${p.id}`,className:"feed-row",children:[n.jsx(Ba,{outcome:p.outcome}),n.jsx("span",{className:"mono feed-name",children:p.name}),n.jsx("span",{className:"error-text small",children:p.error?.code}),n.jsx("span",{className:"small ellipsis",children:p.error?.message}),n.jsx("span",{className:"muted small right",children:Fe(p.at)})]})},p.id))})}),!s.environment.production&&n.jsx(le,{title:"Development",children:n.jsxs("dl",{className:"kv",children:[n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Runtime"}),n.jsxs("dd",{children:["started ",Fe(s.startedAt)," · functions loaded ",Fe(s.loadedAt)," · generation ",s.generation]})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Project"}),n.jsx("dd",{children:n.jsx("code",{className:"path",children:s.projectDir})})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Endpoints"}),n.jsxs("dd",{className:"mono small",children:[s.url,"/api · ",s.url,"/appport · ",s.url,"/mcp"]})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Deploy"}),n.jsxs("dd",{children:[n.jsx("code",{children:"npx feltkit deploy"})," ",n.jsx("span",{className:"muted",children:"builds, verifies the production build boots, and writes a Node/Docker artifact."})]})]})]})})]})}function eu({label:s,value:d,detail:h,tone:r,onClick:j}){return n.jsxs("button",{className:`stat ${r==="bad"&&d>0?"stat-bad":""}`,onClick:j,children:[n.jsx("span",{className:"stat-label",children:s}),n.jsx("span",{className:"stat-value",children:d}),n.jsx("span",{className:"stat-detail",children:h})]})}function dh(s,d){const h=new Set;return[...s,...d].filter(r=>h.has(r.id)?!1:(h.add(r.id),!0)).sort((r,j)=>j.id.localeCompare(r.id))}function iy({collection:s}){const{version:d,overview:h}=Ht(),r=Qe(()=>ne("/collections"),[d]),j=r.data?.collections??[],g=j.find(U=>U.name===s)??j.find(U=>U.owner==="application")??j[0],_=!!g?.editable&&!h?.environment?.production;return n.jsxs(n.Fragment,{children:[n.jsx(qt,{title:"Data",subtitle:n.jsx(n.Fragment,{children:"Records in this environment’s FeltDB instance. Application collections are validated by their schemas; platform collections belong to FeltKit and AppPort Services and are read-only here."})}),r.error&&!r.data?n.jsx(_e,{error:r.error,retry:r.reload}):r.data?n.jsxs("div",{className:"split",children:[n.jsx("aside",{className:"split-nav","aria-label":"Collections",children:["application","platform"].map(U=>{const p=j.filter(y=>U==="application"?y.owner==="application":y.owner!=="application");return p.length?n.jsxs("div",{className:"split-group",children:[n.jsx("div",{className:"split-title",children:U==="application"?"Application":"Platform"}),p.map(y=>n.jsxs("a",{href:`#/data/${y.name}`,className:`split-item ${g?.name===y.name?"active":""}`,children:[n.jsx("span",{className:"mono ellipsis",children:y.name}),n.jsx("span",{className:"muted small",children:y.count})]},y.name))]},U):null})}),n.jsx("section",{className:"split-main",children:g?n.jsx(uy,{collection:g,editable:_},g.name):n.jsx(_t,{title:"No collections"})})]}):n.jsx(Ve,{})]})}function uy({collection:s,editable:d}){const{version:h}=Ht(),[r,j]=B.useState(""),[g,_]=B.useState(""),[U,p]=B.useState(null),[y,M]=B.useState([]),[A,Y]=B.useState(null),[$,I]=B.useState(null),L=U?`&field=${encodeURIComponent(U.field)}&eq=${encodeURIComponent(U.value)}`:"",q=Qe(()=>ne(`/collections/${encodeURIComponent(s.name)}?limit=50${L}`),[s.name,L,h]);B.useEffect(()=>{q.data&&(M(q.data.records),Y(q.data.nextCursor))},[q.data]);const N=B.useMemo(()=>{const w=s.schema?.properties?Object.keys(s.schema.properties):[],ie=[...new Set(y.flatMap(ze=>Object.keys(ze)))].filter(ze=>ze!=="id"&&ze!=="__version");return["id",...(w.length?w:ie).slice(0,6),"__version"]},[s.schema,y]),G=async()=>{if(!A)return;const w=await ne(`/collections/${encodeURIComponent(s.name)}?limit=50&cursor=${encodeURIComponent(A)}${L}`);M(ie=>[...ie,...w.records]),Y(w.nextCursor)};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"collection-head",children:[n.jsxs("div",{children:[n.jsx("h2",{className:"mono",children:s.name}),n.jsxs("div",{className:"muted small",children:[s.owner==="application"?"Application collection":`Owned by ${s.owner}`," · ",s.count," record",s.count===1?"":"s",s.description?` · ${s.description}`:""]})]}),n.jsxs("div",{className:"row",children:[!s.editable&&n.jsx(K,{children:"read-only"}),d&&n.jsx("button",{className:"btn btn-primary",onClick:()=>I("new"),children:"New record"})]})]}),s.schema&&n.jsxs("details",{className:"schema",children:[n.jsx("summary",{children:"Schema"}),n.jsx(Rn,{schema:s.schema}),n.jsx("p",{className:"muted small",children:"Enforced by FeltKit on every write through ctx.db. FeltDB stores JSON documents and adds id and __version."})]}),n.jsxs("form",{className:"filter",onSubmit:w=>{w.preventDefault(),p(r&&g!==""?{field:r,value:g}:null)},children:[n.jsxs("select",{className:"input",value:r,onChange:w=>j(w.target.value),"aria-label":"Filter field",children:[n.jsx("option",{value:"",children:"Filter by field…"}),N.map(w=>n.jsx("option",{value:w,children:w},w))]}),n.jsx("input",{className:"input",value:g,onChange:w=>_(w.target.value),placeholder:"equals…","aria-label":"Filter value"}),n.jsx("button",{className:"btn",type:"submit",children:"Apply"}),U&&n.jsx("button",{className:"btn btn-ghost",type:"button",onClick:()=>{p(null),j(""),_("")},children:"Clear"})]}),q.error?n.jsx(_e,{error:q.error,retry:q.reload}):q.loading&&!q.data?n.jsx(Ve,{}):y.length===0?n.jsx(_t,{title:U?"No records match":"No records yet",children:U?"Try another value.":s.owner==="application"?"Records appear here as soon as a mutation writes them.":""}):n.jsxs("div",{className:"table-wrap",children:[n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsx("tr",{children:N.map(w=>n.jsx("th",{children:w},w))})}),n.jsx("tbody",{children:y.map(w=>n.jsx("tr",{onClick:()=>I(w),tabIndex:0,onKeyDown:ie=>ie.key==="Enter"&&I(w),children:N.map(ie=>n.jsx("td",{className:ie==="id"||ie==="__version"?"mono muted":"",children:n.jsx(cy,{value:w[ie]})},ie))},w.id))})]}),A&&n.jsx("button",{className:"btn more",onClick:G,children:"Load more"})]}),$&&n.jsx(ry,{collection:s,record:$==="new"?null:$,editable:d,onClose:()=>I(null),onSaved:()=>(I(null),q.reload())})]})}function cy({value:s}){if(s===void 0)return n.jsx("span",{className:"muted",children:"—"});if(typeof s=="boolean")return n.jsx(K,{tone:s?"ok":"neutral",children:String(s)});if(typeof s=="number"&&s>1e12&&s<1e13)return n.jsx("span",{title:String(s),children:new Date(s).toLocaleString()});if(typeof s=="object")return n.jsx("span",{className:"mono small",children:JSON.stringify(s).slice(0,80)});const d=String(s);return n.jsx("span",{title:d.length>60?d:void 0,children:d.length>60?`${d.slice(0,60)}…`:d})}function sy(s){const d={};for(const[h,r]of Object.entries(s?.properties??{}))(s.required??[]).includes(h)&&(d[h]=r.type==="number"||r.type==="integer"?/At$/.test(h)?Date.now():0:r.type==="boolean"?!1:"");return d}function ry({collection:s,record:d,editable:h,onClose:r,onSaved:j}){const g=d?Object.fromEntries(Object.entries(d).filter(([q])=>q!=="id"&&q!=="__version")):sy(s.schema),[_,U]=B.useState(JSON.stringify(g,null,2)),[p,y]=B.useState(null),[M,A]=B.useState(!1),[Y,$]=B.useState(!1),I=async()=>{y(null);let q;try{q=JSON.parse(_)}catch{y({code:"INVALID_JSON",message:"That is not valid JSON."});return}A(!0);try{await ne(d?`/collections/${s.name}/${encodeURIComponent(d.id)}`:`/collections/${s.name}`,{method:d?"PATCH":"POST",body:JSON.stringify({record:q})}),j()}catch(N){y(N)}finally{A(!1)}},L=async()=>{A(!0);try{await ne(`/collections/${s.name}/${encodeURIComponent(d.id)}`,{method:"DELETE"}),j()}catch(q){y(q),A(!1)}};return n.jsxs(sh,{title:d?`${s.name} / ${d.id}`:`New ${s.name} record`,onClose:r,children:[d&&n.jsxs("p",{className:"muted small",children:["Version ",d.__version,". Find what wrote it in ",n.jsx("a",{href:"#/activity",children:"Activity"}),"."]}),h?n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"callout",children:["Development edit: validated against the schema and committed atomically, recorded in Activity as ",n.jsx("code",{children:"admin"})," by ",n.jsx("code",{children:"dashboard"}),". Function access rules do not apply to these edits; this tool is not available in production."]}),n.jsx("textarea",{className:"code-input",value:_,onChange:q=>U(q.target.value),rows:14,spellCheck:!1,"aria-label":"Record JSON"}),p?n.jsx(_e,{error:p}):null,n.jsxs("div",{className:"row between",children:[d?Y?n.jsxs("span",{className:"row",children:[n.jsx("button",{className:"btn btn-danger",onClick:L,disabled:M,children:"Delete permanently"}),n.jsx("button",{className:"btn btn-ghost",onClick:()=>$(!1),children:"Cancel"})]}):n.jsx("button",{className:"btn btn-ghost danger",onClick:()=>$(!0),children:"Delete…"}):n.jsx("span",{}),n.jsx("button",{className:"btn btn-primary",onClick:I,disabled:M,children:d?"Save changes":"Create record"})]})]}):n.jsx(Hn,{value:d,max:2e4}),d&&s.owner!=="application"&&n.jsxs("p",{className:"muted small",children:[s.owner," owns this collection. Change it through its service or capability, so its authorization and audit trail apply."," ",n.jsx("a",{href:"#/services",onClick:()=>Dt("services"),children:"Services →"})]})]})}const oy=(s,d)=>s==="*"||s===d||s.endsWith(".*")&&d.startsWith(s.slice(0,-1));function dy(s,d){return Object.entries(s??{}).filter(([,h])=>h.some(r=>oy(r,d))).map(([h])=>h)}function fh(s){if(!s||s.type!=="object")return{};const d={};for(const h of s.required??[]){const r=s.properties?.[h]??{};d[h]=r.type==="boolean"?!0:r.type==="number"||r.type==="integer"?0:""}return d}function fy({selected:s}){const{version:d,overview:h}=Ht(),r=Qe(()=>ne("/capabilities"),[d]),[j,g]=B.useState(s?.includes(":")?"functions":"capabilities"),_=r.data?.capabilities??[],U=h?.functions??[],p=j==="capabilities"?_.find(y=>y.name===s)??_[0]:U.find(y=>y.name===s)??U[0];return n.jsxs(n.Fragment,{children:[n.jsx(qt,{title:"Capabilities",subtitle:"What this application can do. Capabilities are published through AppPort — discoverable by other applications and agents (MCP) — and every invocation passes the same authorization as any other caller."}),n.jsxs("div",{className:"tabs",role:"tablist",children:[n.jsxs("button",{role:"tab","aria-selected":j==="capabilities",className:j==="capabilities"?"active":"",onClick:()=>g("capabilities"),children:["AppPort capabilities ",n.jsx("span",{className:"muted",children:_.length})]}),n.jsxs("button",{role:"tab","aria-selected":j==="functions",className:j==="functions"?"active":"",onClick:()=>g("functions"),children:["All functions ",n.jsx("span",{className:"muted",children:U.length})]})]}),r.error&&!r.data?n.jsx(_e,{error:r.error,retry:r.reload}):r.data?n.jsxs("div",{className:"split",children:[n.jsxs("aside",{className:"split-nav",children:[(j==="capabilities"?_:U).map(y=>n.jsxs("a",{href:`#/capabilities/${y.name}`,className:`split-item ${p?.name===y.name?"active":""}`,children:[n.jsx("span",{className:"mono ellipsis",children:y.name}),j==="functions"?n.jsx(K,{tone:y.kind==="query"?"info":"accent",children:y.kind}):n.jsxs("span",{className:"muted small",children:["v",y.version]})]},y.name)),j==="capabilities"&&_.length===0&&n.jsx("p",{className:"muted small pad",children:"None published yet."})]}),n.jsx("section",{className:"split-main",children:p?j==="capabilities"?n.jsx(hy,{capability:p,roles:h?.roles??{},mcpTools:r.data.mcp?.tools??[],devUsers:h?.devUsers??[],development:h?.environment?.development},p.name):n.jsx(my,{fn:p,roles:h?.roles??{},devUsers:h?.devUsers??[],development:h?.environment?.development},p.name):n.jsx(_t,{title:j==="capabilities"?"No capabilities":"No functions",children:j==="capabilities"?'Publish a query or mutation with capability: { name: "tasks.complete", description: "…" } and a returns schema.':"Export app.query() or app.mutation() from a module in feltkit/."})})]}):n.jsx(Ve,{})]})}function hh({required:s,roles:d}){return s.length?n.jsx("span",{children:s.map(h=>n.jsxs("span",{children:[n.jsx("code",{children:h})," ",n.jsxs("span",{className:"muted",children:["— granted to ",dy(d,h).join(", ")||"no role"]})]},h))}):n.jsx("span",{children:"any signed-in principal"})}function hy({capability:s,roles:d,mcpTools:h,devUsers:r,development:j}){const g=h.find(_=>_.replace(/_/g,".").includes(s.name))??null;return n.jsxs("div",{className:"stack-lg",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"row",children:[n.jsx("h2",{className:"mono",children:s.name}),n.jsxs(K,{children:["v",s.version]}),n.jsx(K,{tone:s.effect==="consequential"?"accent":"info",children:s.effect})]}),n.jsx("p",{children:s.description??n.jsx("span",{className:"muted",children:"No description. Add one so agents and other applications know what this does."})})]}),n.jsxs(le,{title:"Contract",children:[n.jsxs("dl",{className:"kv",children:[n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Requires"}),n.jsx("dd",{children:n.jsx(hh,{required:s.authorization,roles:d})})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Implemented by"}),n.jsx("dd",{children:s.function?n.jsx("a",{href:`#/capabilities/${s.function.name}`,className:"mono",children:s.function.name}):"—"})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Services used"}),n.jsx("dd",{children:s.services?.length?s.services.map(_=>n.jsx(K,{children:_},_)):n.jsx("span",{className:"muted",children:"none observed"})})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Idempotency"}),n.jsx("dd",{children:s.idempotency??"—"})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Reachable at"}),n.jsxs("dd",{className:"small",children:[n.jsx("code",{children:"POST /appport"}),g&&n.jsxs(n.Fragment,{children:[" ","· MCP tool ",n.jsx("code",{children:g})]})]})]})]}),n.jsxs("div",{className:"grid grid-2",children:[n.jsxs("div",{children:[n.jsx("div",{className:"label",children:"Input"}),n.jsx(Rn,{schema:s.input})]}),n.jsxs("div",{children:[n.jsx("div",{className:"label",children:"Output"}),n.jsx(Rn,{schema:s.output})]})]})]}),n.jsx(le,{title:"Recent invocations",children:s.recent?.length?n.jsx("ul",{className:"feed",children:s.recent.map(_=>n.jsx("li",{children:n.jsxs("a",{href:`#/activity/${_.id}`,className:"feed-row",children:[n.jsx(Ba,{outcome:_.outcome}),n.jsx("span",{className:"small",children:_.principal??"anonymous"}),n.jsxs("span",{className:"muted small",children:["via ",_.via]}),_.error&&n.jsx("span",{className:"error-text small",children:_.error.code}),n.jsxs("span",{className:"muted small right",children:[_.durationMs,"ms · ",Fe(_.at)]})]})},_.id))}):n.jsx("p",{className:"muted",children:"Not invoked through AppPort yet."})}),j&&n.jsx(mh,{title:"Invoke through AppPort",note:"Runs through AppPort’s dispatch pipeline with a short-lived session for the identity you choose. The same authorization applies as for any agent or application.",example:fh(s.input),devUsers:r,run:(_,U)=>ne("/capabilities/invoke",{method:"POST",body:JSON.stringify({capability:s.name,version:s.version,input:_,as:U})})})]})}function my({fn:s,roles:d,devUsers:h,development:r}){const j=s.access==="public"||s.access==="authenticated"?[]:[s.access];return n.jsxs("div",{className:"stack-lg",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"row",children:[n.jsx("h2",{className:"mono",children:s.name}),n.jsx(K,{tone:s.kind==="query"?"info":"accent",children:s.kind}),s.capability&&n.jsxs(K,{tone:"ok",children:["→ ",s.capability.name]})]}),n.jsx("p",{className:"muted",children:s.description??(s.kind==="query"?"Read-only: its database handle cannot write.":"All writes commit in one FeltDB transaction, or none do.")})]}),n.jsxs(le,{title:"Contract",children:[n.jsxs("dl",{className:"kv",children:[n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Access"}),n.jsx("dd",{children:s.access==="public"?"anyone, including anonymous callers":n.jsx(hh,{required:j,roles:d})})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Endpoint"}),n.jsx("dd",{children:n.jsxs("code",{children:["POST /api/",s.kind,"/",s.name]})})]})]}),n.jsxs("div",{className:"grid grid-2",children:[n.jsxs("div",{children:[n.jsx("div",{className:"label",children:"Arguments"}),n.jsx(Rn,{schema:s.args})]}),n.jsxs("div",{children:[n.jsx("div",{className:"label",children:"Returns"}),s.returns?n.jsx(Rn,{schema:s.returns}):n.jsx("span",{className:"muted",children:"not declared"})]})]})]}),r&&n.jsx(mh,{title:`Run ${s.kind}`,note:"Runs as the identity you choose, through the same validation and authorization as a request from the app.",example:fh(s.args),devUsers:h,run:(g,_)=>ne("/functions/run",{method:"POST",body:JSON.stringify({name:s.name,args:g,as:_})})})]})}function mh({title:s,note:d,example:h,devUsers:r,run:j}){const[g,_]=B.useState(JSON.stringify(h,null,2)),[U,p]=B.useState(r[0]?.id??"anonymous"),[y,M]=B.useState(null),[A,Y]=B.useState(null),[$,I]=B.useState(!1),L=B.useMemo(()=>y&&y.ok===!0,[y]);return n.jsxs(le,{title:s,children:[n.jsx("p",{className:"muted small",children:d}),n.jsx("div",{className:"row",children:n.jsxs("label",{className:"field-inline",children:[n.jsx("span",{children:"Act as"}),n.jsxs("select",{className:"input",value:U,onChange:q=>p(q.target.value),children:[r.map(q=>n.jsxs("option",{value:q.id,children:[q.name??q.id," · ",q.roles.join(", ")]},q.id)),n.jsx("option",{value:"anonymous",children:"anonymous"})]})]})}),n.jsx("textarea",{className:"code-input",rows:6,value:g,onChange:q=>_(q.target.value),spellCheck:!1,"aria-label":"Input JSON"}),n.jsxs("div",{className:"row between",children:[n.jsx("span",{className:"muted small",children:"Input is validated against the contract before authorization runs."}),n.jsx("button",{className:"btn btn-primary",disabled:$,onClick:async()=>{Y(null),M(null);let q;try{q=JSON.parse(g||"{}")}catch{Y({code:"INVALID_JSON",message:"That is not valid JSON."});return}I(!0);try{M(await j(q,U))}catch(N){Y(N)}finally{I(!1)}},children:$?"Running…":"Run"})]}),A?n.jsx(_e,{error:A}):null,y&&n.jsxs("div",{className:`result ${L?"result-ok":"result-bad"}`,children:[n.jsxs("div",{className:"row",children:[n.jsx(Ba,{outcome:L?"success":y.error?.code==="FORBIDDEN"||y.error?.code==="UNAUTHORIZED"?"denied":"error"}),y.requestId&&n.jsx("span",{className:"muted small mono",children:y.requestId})]}),n.jsx(Hn,{value:L?y.output??y.value:y.error})]})]})}const vy=["","query","mutation","capability","integration","agent","service","auth","admin","system"],yy=["","success","error","denied"];function py({selected:s}){ch(1e4);const{activity:d}=Ht(),[h,r]=B.useState(""),[j,g]=B.useState(""),[_,U]=B.useState(!1),p=Qe(()=>ne(`/activity?limit=200${h?`&kind=${h}`:""}${j?`&outcome=${j}`:""}`),[h,j]),y=B.useMemo(()=>{const M=dh(d.filter(A=>(!h||A.kind===h)&&(!j||A.outcome===j)),p.data?.entries??[]);return _?M.filter(A=>A.kind!=="query"):M},[d,p.data,h,j,_]);return n.jsxs(n.Fragment,{children:[n.jsx(qt,{title:"Activity",subtitle:"What actually happened, from the runtime’s own records: who called what, through which interface, the authority decision, and the writes FeltDB committed."}),n.jsxs("div",{className:"filter",children:[n.jsx("select",{className:"input",value:h,onChange:M=>r(M.target.value),"aria-label":"Kind",children:vy.map(M=>n.jsx("option",{value:M,children:M||"All kinds"},M))}),n.jsx("select",{className:"input",value:j,onChange:M=>g(M.target.value),"aria-label":"Outcome",children:yy.map(M=>n.jsx("option",{value:M,children:M||"All outcomes"},M))}),n.jsxs("label",{className:"check",children:[n.jsx("input",{type:"checkbox",checked:_,onChange:M=>U(M.target.checked)})," Hide queries"]}),n.jsx("span",{className:"muted small right",children:"Live · newest first"})]}),p.error&&!p.data?n.jsx(_e,{error:p.error,retry:p.reload}):p.data?y.length===0?n.jsx(_t,{title:"No activity matches",children:"Use the app, invoke a capability, or run a function from Capabilities."}):n.jsx("div",{className:"table-wrap",children:n.jsxs("table",{className:"table activity",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"When"}),n.jsx("th",{children:"Outcome"}),n.jsx("th",{children:"Kind"}),n.jsx("th",{children:"Name"}),n.jsx("th",{children:"Principal"}),n.jsx("th",{children:"Via"}),n.jsx("th",{children:"Writes"}),n.jsx("th",{className:"num",children:"ms"})]})}),n.jsx("tbody",{children:y.map(M=>n.jsxs("tr",{onClick:()=>Dt(`activity/${M.id}`),tabIndex:0,onKeyDown:A=>A.key==="Enter"&&Dt(`activity/${M.id}`),className:s===M.id?"selected":"",children:[n.jsx("td",{className:"muted small nowrap",title:M.at,children:Fe(M.at)}),n.jsx("td",{children:n.jsx(Ba,{outcome:M.outcome})}),n.jsx("td",{className:"small",children:M.kind}),n.jsxs("td",{className:"mono",children:[M.name,M.error&&n.jsxs("span",{className:"error-text small",children:[" ",M.error.code]})]}),n.jsx("td",{className:"small",children:M.principal?`${M.principal.id}`:n.jsx("span",{className:"muted",children:M.kind==="system"?"—":"anonymous"})}),n.jsx("td",{className:"small",children:M.via}),n.jsx("td",{className:"small",children:M.writes?.length?M.writes.length:n.jsx("span",{className:"muted",children:"—"})}),n.jsx("td",{className:"num small muted",children:M.durationMs})]},M.id))})]})}):n.jsx(Ve,{}),s&&n.jsx(jy,{id:s,onClose:()=>Dt("activity")})]})}function jy({id:s,onClose:d}){const h=Qe(()=>ne(`/activity/${encodeURIComponent(s)}`),[s]),r=h.data?.entry,j=h.data?.serviceEvidence??[];return n.jsx(sh,{title:r?r.name:"Activity",onClose:d,children:h.error?n.jsx(_e,{error:h.error}):r?n.jsxs("div",{className:"stack-lg",children:[n.jsx(Cs,{rows:[["Outcome",n.jsx(Ba,{outcome:r.outcome},"o")],["When",`${new Date(r.at).toLocaleString()} (${Fe(r.at)})`],["Kind",r.kind],["Via",r.via],["Principal",r.principal?`${r.principal.id} (${r.principal.type}; roles: ${r.principal.roles.join(", ")||"none"})`:"anonymous"],...r.capability?[["AppPort capability",`${r.capability.name}@${r.capability.version}`]]:[],["Request",n.jsx("code",{children:r.requestId},"r")],["Duration",`${r.durationMs} ms`],...r.argKeys?[["Arguments",r.argKeys.length?r.argKeys.join(", "):"none"]]:[]]}),r.error&&n.jsxs("section",{children:[n.jsx("h3",{children:"Error"}),n.jsxs("div",{className:"error-box",children:[n.jsx("strong",{children:r.error.code})," ",r.error.message]})]}),r.authority&&n.jsxs("section",{children:[n.jsx("h3",{children:"Authority"}),n.jsx(Cs,{rows:[["Decision",r.authority.allowed?n.jsx(K,{tone:"ok",children:"allowed"},"a"):n.jsx(K,{tone:"warn",children:"denied"},"d")],["Required",r.authority.required?n.jsx("code",{children:r.authority.required},"q"):"an authenticated principal"],...r.authority.reason?[["Reason",r.authority.reason]]:[],["Decision id",n.jsx("code",{children:r.authority.decisionId},"i")],...r.authority.appportDecisionId?[["AppPort decision",n.jsx("code",{children:r.authority.appportDecisionId},"ap")]]:[],["Policy version",n.jsx("code",{children:r.authority.policyVersion},"p")]]})]}),n.jsxs("section",{children:[n.jsx("h3",{children:"State changes"}),r.writes?.length?n.jsxs(n.Fragment,{children:[n.jsxs("p",{className:"muted small",children:["Committed by FeltDB in one transaction ",n.jsx("code",{children:r.transactionId}),r.commitRevision!==void 0?` at revision ${r.commitRevision}`:"","."]}),n.jsxs("table",{className:"table compact",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Op"}),n.jsx("th",{children:"Collection"}),n.jsx("th",{children:"Record"}),n.jsx("th",{children:"Expected version"})]})}),n.jsx("tbody",{children:r.writes.map((g,_)=>n.jsxs("tr",{children:[n.jsx("td",{children:n.jsx(K,{tone:g.op==="delete"?"bad":g.op==="insert"?"ok":"accent",children:g.op})}),n.jsx("td",{className:"mono",children:g.collection}),n.jsx("td",{className:"mono small",children:g.op==="delete"?g.id:n.jsx("a",{href:`#/data/${g.collection}`,children:g.id})}),n.jsx("td",{className:"small",children:g.expectedVersion??"— (create)"})]},_))})]})]}):n.jsx("p",{className:"muted",children:r.kind==="query"?"Queries cannot write.":r.outcome!=="success"?"Nothing was written through ctx.db: a failed mutation commits nothing.":r.services?.length?"No application records changed through ctx.db. Service effects commit separately; see the evidence below.":"No application records changed."}),r.reads?.length?n.jsxs("p",{className:"muted small",children:["Read: ",r.reads.join(", ")]}):null]}),(j.length>0||r.services?.length)&&n.jsxs("section",{children:[n.jsx("h3",{children:"Service evidence"}),n.jsxs("p",{className:"muted small",children:["Recorded by AppPort Services’ gateway in the same FeltDB instance.",h.data?.serviceEvidenceState==="started"?" An effect has no recorded completion: its outcome is unknown, not failed.":"",h.data?.serviceEvidenceTruncated?" More records exist than are shown.":""]}),j.map(g=>n.jsxs("div",{className:"evidence",children:[n.jsxs("div",{className:"row",children:[n.jsx(K,{tone:g.outcome==="succeeded"?"ok":g.outcome==="denied"?"warn":g.outcome==="started"?"neutral":"bad",children:g.outcome}),n.jsx("span",{className:"mono",children:g.capability}),n.jsx("span",{className:"muted small",children:g.service})]}),n.jsxs("div",{className:"muted small",children:["decision ",g.decision,g.decisionId?` · ${g.decisionId}`:""," · ",g.resource]})]},g.id))]}),r.detail&&n.jsxs("section",{children:[n.jsx("h3",{children:"Detail"}),n.jsx(Hn,{value:r.detail})]})]}):n.jsx(Ve,{})})}function xy(){const{version:s,overview:d}=Ht(),h=Qe(()=>ne("/environments"),[]),r=Qe(()=>ne("/sessions"),[s]),j=d?.environment?.development;return n.jsxs(n.Fragment,{children:[n.jsx(qt,{title:"Settings",subtitle:"Environments, access policy, and sessions. Configuration lives in feltkit/app.ts; this page shows what the runtime is actually using."}),n.jsxs(le,{title:"Environments",children:[n.jsx("p",{className:"muted small",children:"Each environment has its own FeltDB instance. They never share state; FeltKit refuses to open two environments on the same location."}),h.error?n.jsx(_e,{error:h.error}):h.data?n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Environment"}),n.jsx("th",{children:"Storage"}),n.jsx("th",{children:"Location"}),n.jsx("th",{children:"Instance"})]})}),n.jsx("tbody",{children:h.data.environments.map(g=>n.jsxs("tr",{className:g.active?"selected":"",children:[n.jsxs("td",{children:[n.jsx("strong",{children:g.name})," ",g.active&&n.jsx(K,{tone:"ok",children:"active"})]}),n.jsx("td",{children:g.storage}),n.jsx("td",{className:"mono small",children:g.location}),n.jsx("td",{className:"mono small muted",children:g.instanceId??"not open here"})]},g.name))})]}):n.jsx(Ve,{}),n.jsxs("p",{className:"muted small",children:["Production uses ",n.jsx("code",{children:"FELTDB_URL"})," + ",n.jsx("code",{children:"FELTDB_TOKEN"})," when set (a FeltDB server), otherwise ",n.jsx("code",{children:"FELTKIT_STATE_DIR"})," or ",n.jsx("code",{children:".feltkit/production/state"}),"."]})]}),n.jsxs("div",{className:"grid grid-2",children:[n.jsxs(le,{title:"Access policy",action:n.jsxs("code",{className:"muted small",children:["policy ",d?.policyVersion]}),children:[n.jsxs("table",{className:"table compact",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Role"}),n.jsx("th",{children:"Permissions"})]})}),n.jsx("tbody",{children:Object.entries(d?.roles??{}).map(([g,_])=>n.jsxs("tr",{children:[n.jsx("td",{children:n.jsx("strong",{children:g})}),n.jsx("td",{children:_.map(U=>n.jsx("code",{className:"chip",children:U},U))})]},g))})]}),n.jsx("p",{className:"muted small",children:"Enforced through AppPort’s authorizer on functions, capabilities, and services alike. Edit roles in feltkit/app.ts."})]}),n.jsx(le,{title:"Development identities",children:j?(d?.devUsers??[]).length?n.jsx("ul",{className:"list",children:d.devUsers.map(g=>n.jsxs("li",{className:"list-row",children:[n.jsxs("span",{children:[n.jsx("strong",{children:g.name??g.id})," ",n.jsx("span",{className:"muted mono small",children:g.id})]}),n.jsx("span",{children:g.roles.map(_=>n.jsx(K,{children:_},_))})]},g.id))}):n.jsxs("p",{className:"muted",children:["None declared. Add dev: ","{ users: [...] }"," to feltkit(","{ … }",")."]}):n.jsx("p",{className:"muted",children:"Development sign-in is disabled in this environment."})})]}),n.jsxs(le,{title:"Sessions",action:n.jsx("span",{className:"muted small",children:"tokens are stored only as SHA-256 digests"}),children:[j&&n.jsx(gy,{roles:Object.keys(d?.roles??{}),onIssued:r.reload}),r.error?n.jsx(_e,{error:r.error}):r.data?r.data.sessions.length===0?n.jsx("p",{className:"muted",children:"No active sessions."}):n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Ref"}),n.jsx("th",{children:"Principal"}),n.jsx("th",{children:"Roles"}),n.jsx("th",{children:"Kind"}),n.jsx("th",{children:"Created"}),n.jsx("th",{children:"Expires"}),n.jsx("th",{})]})}),n.jsx("tbody",{children:r.data.sessions.map(g=>n.jsxs("tr",{children:[n.jsx("td",{className:"mono small muted",children:g.ref}),n.jsxs("td",{children:[g.principal?.id," ",n.jsx("span",{className:"muted small",children:g.principal?.type})]}),n.jsx("td",{className:"small",children:g.principal?.roles?.join(", ")}),n.jsx("td",{className:"small",children:g.kind}),n.jsx("td",{className:"small muted",children:Fe(g.createdAt)}),n.jsx("td",{className:"small muted",children:g.expiresAt?new Date(g.expiresAt).toLocaleString():"never"}),n.jsx("td",{children:n.jsx("button",{className:"btn btn-small btn-ghost danger",onClick:()=>ne(`/sessions/${g.ref}`,{method:"DELETE"}).then(r.reload,r.reload),children:"Revoke"})})]},g.ref))})]}):n.jsx(Ve,{})]})]})}function gy({roles:s,onIssued:d}){const[h,r]=B.useState("triage-agent"),[j,g]=B.useState(s.includes("agent")?"agent":s[0]??""),[_,U]=B.useState("agent"),[p,y]=B.useState(null),[M,A]=B.useState(null);return n.jsxs("div",{className:"issue",children:[n.jsxs("form",{className:"row wrap",onSubmit:async Y=>{Y.preventDefault(),A(null);try{const $=await ne("/sessions",{method:"POST",body:JSON.stringify({principal:{id:h,type:_,roles:[j]},label:"issued from the dashboard",ttlMs:864e5})});y($.token),d()}catch($){A($)}},children:[n.jsx("input",{className:"input",value:h,onChange:Y=>r(Y.target.value),"aria-label":"Principal id",placeholder:"principal id"}),n.jsxs("select",{className:"input",value:_,onChange:Y=>U(Y.target.value),"aria-label":"Principal type",children:[n.jsx("option",{value:"agent",children:"agent"}),n.jsx("option",{value:"service",children:"service"}),n.jsx("option",{value:"user",children:"user"})]}),n.jsx("select",{className:"input",value:j,onChange:Y=>g(Y.target.value),"aria-label":"Role",children:s.map(Y=>n.jsx("option",{value:Y,children:Y},Y))}),n.jsx("button",{className:"btn btn-primary",type:"submit",disabled:!h||!j,children:"Issue 24-hour session"})]}),M?n.jsx(_e,{error:M}):null,p&&n.jsxs("div",{className:"callout",children:[n.jsxs("div",{className:"row between",children:[n.jsx("strong",{children:"Shown once."})," ",n.jsx(Iv,{text:p})]}),n.jsx("code",{className:"token",children:p}),n.jsxs("div",{className:"muted small",children:["Agents: connect an MCP client to ",n.jsxs("code",{children:[location.origin,"/mcp"]})," with ",n.jsx("code",{children:"Authorization: Bearer <token>"}),". It sees only what this role allows."]})]})]})}function by(){const s=Qe(()=>ne("/projects"),[]),d=s.data?.projects??[];return n.jsxs(n.Fragment,{children:[n.jsx(qt,{title:"Projects",subtitle:"FeltKit applications this machine has run. Each has its own environments and FeltDB instances."}),s.error?n.jsx(_e,{error:s.error,retry:s.reload}):s.data?d.length===0?n.jsx(le,{children:n.jsxs(_t,{title:"Only this project so far",children:["Create another with ",n.jsx("code",{children:"npm create feltkit@latest my-app"}),"."]})}):n.jsx("div",{className:"grid grid-2",children:d.map(h=>n.jsxs(le,{className:h.path===s.data.current?"card-current":"",children:[n.jsxs("div",{className:"row between",children:[n.jsx("h2",{children:h.name}),h.path===s.data.current?n.jsx(K,{tone:"ok",children:"this dashboard"}):h.running?n.jsx(K,{tone:"ok",children:"running"}):h.exists?n.jsx(K,{children:"stopped"}):n.jsx(K,{tone:"bad",children:"missing"})]}),n.jsx("code",{className:"path",children:h.path}),n.jsxs("div",{className:"muted small",children:["last run ",Fe(h.lastRunAt)," · ",h.lastEnvironment]}),n.jsxs("div",{className:"row",children:[h.running&&h.url&&h.path!==s.data.current&&n.jsx("a",{className:"btn btn-small",href:h.url,target:"_blank",rel:"noreferrer",children:"Open app ↗"}),!h.running&&h.exists&&n.jsxs("span",{className:"muted small",children:["Start it with ",n.jsx("code",{children:"npm run dev"})," in its directory."]})]})]},h.path))}):n.jsx(Ve,{}),n.jsx(le,{title:"Start a new application",children:n.jsx("pre",{className:"json",children:`npm create feltkit@latest my-app
|
|
13
|
+
cd my-app
|
|
14
|
+
npm install
|
|
15
|
+
npm run dev`})})]})}const Ms=[{id:"inspect-app",label:"Inspect the application",help:"Capabilities you may use, unhealthy services, recent errors and denials."},{id:"diagnose-job",label:"Diagnose a job",help:"Read the job, its runs and error; propose a retry when it can help.",target:"Job id"},{id:"diagnose-delivery",label:"Diagnose a webhook delivery",help:"Read the delivery, endpoint, and signing credential; propose a replay when it can help.",target:"Delivery id"},{id:"invoke",label:"Run a capability",help:"One capability: observations run now, consequential ones wait for approval."},{id:"handoff",label:"Hand off to a coding agent",help:"Open-ended work. A coding agent claims it over MCP (feltkit_agent_claim) and proposes actions; you approve them here."}],Rs=s=>s==="completed"?"ok":s==="cancelled"?"neutral":s==="blocked"?"warn":"info";function Sy({rest:s}){const{version:d}=Ht(),h=Qe(()=>ne("/overview"),[d]),r=h.data?.devUsers??[],j=!!h.data?.environment?.development,{canAct:g,actor:_}=nu(h.data),[U,p]=B.useState("");B.useEffect(()=>{!U&&r[0]&&p(r[0].id)},[r,U]);const y=Qe(()=>ne(`/agent${U?`?as=${encodeURIComponent(U)}`:""}`),[d,U]),M=s[0]&&s[0]!=="new"?s[0]:null;return n.jsxs(n.Fragment,{children:[n.jsx(qt,{title:"Agent",subtitle:"FeltDB’s agent runtime operating this application through its AppPort capabilities and AppPort Services. Every action runs as the task owner; consequential ones wait for a person who may perform them.",actions:r.length?n.jsxs("label",{className:"row small",children:[n.jsx("span",{className:"muted",children:"Act as"}),n.jsx("select",{value:U,onChange:A=>p(A.target.value),"aria-label":"Identity for agent actions",children:r.map(A=>n.jsxs("option",{value:A.id,children:[A.name??A.id," (",A.roles.join(", "),")"]},A.id))})]}):null}),y.error&&!y.data?n.jsx(_e,{error:y.error,retry:y.reload}):y.data?M?n.jsx(Ay,{taskId:M,as:U,development:j,canAct:g,actor:j?U:_??"",version:d}):n.jsxs(n.Fragment,{children:[j&&r.length>0&&n.jsx(Ny,{as:U,tools:y.data.tools,initial:s[0]==="new"?{playbook:s[1],target:s[2]}:void 0}),!j&&n.jsx(le,{children:n.jsxs("p",{className:"muted small",children:["Production: tasks come from agents (over MCP) and playbooks. ",g?"You can approve, reject, retry, and settle their actions; each runs as the task owner and is recorded as yours.":"You can inspect them; acting needs feltkit.operations.write."]})}),y.data.handoffs.length>0&&n.jsxs(le,{title:"Waiting for a coding agent",children:[n.jsx("ul",{className:"list",children:y.data.handoffs.map(A=>n.jsxs("li",{className:"list-row",children:[n.jsx("a",{href:`#/agent/${A.taskId}`,children:A.objective}),n.jsxs("span",{className:"muted small mono",children:[A.handoffId," · from ",A.from]})]},A.handoffId))}),n.jsxs("p",{className:"muted small",children:["A coding agent with an agent session claims these with the MCP tool ",n.jsx("code",{children:"feltkit_agent_claim"}),"."]})]}),n.jsx(le,{title:"Tasks",children:y.data.tasks.length===0?n.jsx(_t,{title:"No tasks yet",children:"Start one above, or from a failed job or delivery on the Services screen."}):n.jsx("div",{className:"table-wrap",children:n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Objective"}),n.jsx("th",{children:"Status"}),n.jsx("th",{children:"FeltDB execution"}),n.jsx("th",{children:"Owner"}),n.jsx("th",{children:"Waiting"}),n.jsx("th",{children:"Updated"})]})}),n.jsx("tbody",{children:y.data.tasks.map(A=>n.jsxs("tr",{onClick:()=>Dt(`agent/${A.task.task_id}`),children:[n.jsx("td",{children:A.task.objective}),n.jsx("td",{children:n.jsx(K,{tone:Rs(A.task.status),children:A.task.status})}),n.jsx("td",{className:"mono small",children:A.execution?.status??"—"}),n.jsx("td",{className:"mono small",children:A.task.owner}),n.jsx("td",{children:A.pending?n.jsxs(K,{tone:"warn",children:[A.pending," approval",A.pending>1?"s":""]}):""}),n.jsx("td",{className:"muted small",children:Fe(A.task.updated_at)})]},A.task.task_id))})]})})})]}):n.jsx(Ve,{})]})}function Ny({as:s,tools:d,initial:h}){const[r,j]=B.useState(h?.playbook&&Ms.some(w=>w.id===h.playbook)?h.playbook:"inspect-app"),[g,_]=B.useState(h?.target??""),[U,p]=B.useState(""),[y,M]=B.useState(""),[A,Y]=B.useState("{}"),[$,I]=B.useState(!1),[L,q]=B.useState(null),N=Ms.find(w=>w.id===r),G=async()=>{q(null),I(!0);try{let w={};if(r==="invoke")try{w=JSON.parse(A||"{}")}catch{throw new Error("Input is not valid JSON.")}const ie=await ne("/agent/tasks",{method:"POST",body:JSON.stringify({as:s,playbook:r,objective:U||(N.target?`${N.label}: ${g}`:r==="invoke"?`Run ${y}`:N.label),...N.target?{target:g}:{},...r==="invoke"?{capability:y,args:w}:{}})});Dt(`agent/${ie.task.task_id}`)}catch(w){q(w)}finally{I(!1)}};return n.jsxs(le,{title:"New task",children:[L?n.jsx(_e,{error:L}):null,n.jsxs("div",{className:"form",children:[n.jsxs("label",{children:[n.jsx("span",{children:"What"}),n.jsx("select",{value:r,onChange:w=>j(w.target.value),children:Ms.map(w=>n.jsx("option",{value:w.id,children:w.label},w.id))})]}),n.jsx("p",{className:"muted small",children:N.help}),N.target&&n.jsxs("label",{children:[n.jsx("span",{children:N.target}),n.jsx("input",{className:"input mono",value:g,onChange:w=>_(w.target.value)})]}),r==="invoke"&&n.jsxs(n.Fragment,{children:[n.jsxs("label",{children:[n.jsx("span",{children:"Capability"}),n.jsxs("select",{value:y,onChange:w=>M(w.target.value),children:[n.jsx("option",{value:"",children:"Choose…"}),d.map(w=>n.jsxs("option",{value:w.name,disabled:!w.allowed,children:[w.name," — ",w.effect==="consequential"?"needs approval":"observation",w.allowed?"":" (not permitted for this identity)"]},w.name))]})]}),n.jsxs("label",{children:[n.jsx("span",{children:"Input (JSON)"}),n.jsx("textarea",{className:"input mono",rows:3,value:A,onChange:w=>Y(w.target.value)})]})]}),n.jsxs("label",{children:[n.jsx("span",{children:"Objective"}),n.jsx("input",{className:"input",value:U,placeholder:r==="handoff"?"Describe the work for the coding agent":"Optional",onChange:w=>p(w.target.value)})]}),n.jsx("div",{children:n.jsx("button",{className:"btn btn-primary",onClick:G,disabled:$||!s||!!N.target&&!g||r==="invoke"&&!y||r==="handoff"&&!U,children:$?"Working…":"Start"})})]})]})}const Ey=s=>({failed:"Failed",interrupted:"Outcome unknown",executing:"Running",approved:"Approved, starting"})[s]??s;function Ay({taskId:s,as:d,development:h,canAct:r,actor:j,version:g}){const[_,U]=B.useState({}),[p,y]=B.useState(0),M=Qe(()=>ne(`/agent/tasks/${encodeURIComponent(s)}`),[s,g,p]),[A,Y]=B.useState(null),[$,I]=B.useState(""),L=async(H,fe={})=>{Y(null);try{await ne(`/agent/tasks/${encodeURIComponent(s)}/${H}`,{method:"POST",body:JSON.stringify(h?{as:d,...fe}:fe)}),y(Me=>Me+1)}catch(Me){Y(Me)}};if(M.error)return n.jsx(_e,{error:M.error,retry:M.reload});if(!M.data)return n.jsx(Ve,{});const{task:q,checkpoints:N,execution:G,pending:w,actions:ie=[]}=M.data,ze=ie.filter(H=>H.state==="failed"||H.state==="interrupted"||H.state==="executing"||H.state==="approved"),De=q.status!=="completed"&&q.status!=="cancelled";return n.jsxs(n.Fragment,{children:[n.jsx("p",{children:n.jsx("a",{href:"#/agent",children:"← Tasks"})}),A?n.jsx(_e,{error:A}):null,n.jsxs(le,{title:n.jsxs("span",{className:"row",children:[q.objective," ",n.jsx(K,{tone:Rs(q.status),children:q.status})]}),action:n.jsx("span",{className:"muted small mono",children:q.owner}),children:[n.jsxs("dl",{className:"kv",children:[n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"FeltDB execution"}),n.jsx("dd",{className:"mono small",children:G?`${G.agentRef} · ${G.status}${G.error?` · ${G.error}`:""}`:"—"})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Task"}),n.jsxs("dd",{className:"mono small",children:[q.task_id," · checkpoint v",q.checkpoint_version]})]})]}),r&&De&&M.data.playbook==="decide"&&ie.every(H=>!["proposed","approved","executing","interrupted"].includes(H.state))&&n.jsxs("div",{className:"row",children:[n.jsx("button",{className:"btn",onClick:()=>L("decide"),children:"Ask the model again"}),n.jsx("span",{className:"muted small",children:"Uses this environment’s model (Models). The answer is a new proposal."})]}),h&&De&&n.jsxs("div",{className:"row",children:[n.jsx("input",{className:"input grow",placeholder:"Summary of what was done",value:$,onChange:H=>I(H.target.value)}),n.jsx("button",{className:"btn",onClick:()=>L("complete",{summary:$}),disabled:w.length>0,children:"Complete"}),n.jsx("button",{className:"btn btn-ghost",onClick:()=>L("cancel",{reason:"cancelled from Studio"}),children:"Cancel"})]})]}),w.map(H=>n.jsxs(le,{title:n.jsxs("span",{className:"row",children:["Waiting for approval ",n.jsx(K,{tone:"warn",children:H.capability})]}),action:n.jsxs("span",{className:"muted small",children:["proposed by ",H.proposedBy]}),children:[n.jsx("p",{children:H.reason}),H.decision&&n.jsxs("p",{className:"small",children:["Chosen by the model ",n.jsxs("span",{className:"mono",children:[H.decision.provider,H.decision.model?` / ${H.decision.model}`:""]})," (",H.decision.runtime,") among the options the owner may take. A choice is a proposal, not evidence."]}),n.jsx(Hn,{value:H.input}),n.jsxs("p",{className:"muted small",children:["Runs as ",n.jsx("span",{className:"mono",children:q.owner}),", through ",H.source==="application"?"the application’s AppPort dispatch":"AppPort Services",". You must be permitted to perform it yourself to approve it."]}),r&&n.jsxs("div",{className:"row",children:[n.jsxs("button",{className:"btn btn-primary",onClick:()=>L("approve",{actionId:H.actionId}),children:["Approve as ",j]}),n.jsx("button",{className:"btn",onClick:()=>L("reject",{actionId:H.actionId,reason:"rejected in Studio"}),children:"Reject"})]})]},H.actionId)),ze.map(H=>n.jsxs(le,{title:n.jsxs("span",{className:"row",children:[Ey(H.state)," ",n.jsx(K,{tone:H.state==="failed"?"bad":"warn",children:H.capability})]}),action:n.jsxs("span",{className:"muted small",children:["attempt ",H.attempt," · approved by ",H.decidedBy??"—"]}),children:[n.jsx("p",{children:H.reason}),H.outcome?.error?n.jsxs("p",{className:"small mono",children:[H.outcome.error.code,": ",H.outcome.error.message]}):null,H.interruption?n.jsxs("p",{className:"small",children:[String(H.interruption).replace(/\.?$/,".")," Check the effect before settling it; it is never replayed automatically."]}):null,r&&H.state==="failed"&&De&&n.jsx("div",{className:"row",children:n.jsx("button",{className:"btn",onClick:()=>L("retry",{actionId:H.actionId}),children:"Retry (needs approval again)"})}),r&&H.state==="interrupted"&&n.jsxs("div",{className:"row",children:[n.jsx("input",{className:"input grow",placeholder:"What you checked (recorded with your name)","aria-label":`What you checked for ${H.actionId}`,value:_[H.actionId]??"",onChange:fe=>U(Me=>({...Me,[H.actionId]:fe.target.value}))}),n.jsx("button",{className:"btn",disabled:(_[H.actionId]??"").trim().length<3,onClick:()=>L("resolve",{actionId:H.actionId,outcome:"succeeded",note:_[H.actionId]}),children:"It succeeded"}),n.jsx("button",{className:"btn",disabled:(_[H.actionId]??"").trim().length<3,onClick:()=>L("resolve",{actionId:H.actionId,outcome:"failed",note:_[H.actionId]}),children:"It did not take effect"})]})]},H.actionId)),n.jsx(le,{title:"Checkpoints",children:n.jsx("ol",{className:"timeline",children:N.slice().reverse().map(H=>n.jsxs("li",{className:"timeline-item",children:[n.jsxs("div",{className:"row",children:[n.jsxs("strong",{children:["v",H.version]})," ",n.jsx(K,{tone:Rs(H.status),children:H.status})," ",n.jsxs("span",{className:"muted small",children:[H.actor," · ",Fe(H.created_at)]})]}),n.jsx("p",{children:H.summary}),H.completed.length>0&&n.jsx("ul",{className:"small",children:H.completed.map((fe,Me)=>n.jsx("li",{className:"mono",children:fe},Me))}),H.decisions.length>0&&H.version===N.length&&n.jsxs("details",{children:[n.jsxs("summary",{className:"small",children:["Decisions (",H.decisions.length,")"]}),n.jsx("ul",{className:"small",children:H.decisions.map((fe,Me)=>n.jsx("li",{children:fe},Me))})]}),H.evidence.filter(fe=>fe.checkpoint_version===H.version).map((fe,Me)=>n.jsxs("div",{className:"small",children:["Evidence: ",fe.kind==="record"?n.jsxs("a",{href:`#/activity/${fe.id}`,className:"mono",children:[fe.collection,"/",fe.id]}):n.jsx("span",{className:"mono",children:fe.uri})," ",fe.verified?n.jsx(K,{tone:"ok",children:"verified at commit"}):n.jsx(K,{tone:"neutral",children:"unverified"})]},Me))]},H.version))})})]})}function Ty(){const{version:s}=Ht(),[d,h]=B.useState(0),r=Qe(()=>ne("/models"),[s,d]),j=Qe(()=>ne("/overview"),[s]),{development:g,canAct:_}=nu(j.data),[U,p]=B.useState(null),[y,M]=B.useState(!1);if(r.error)return n.jsx(_e,{error:r.error,retry:r.reload});if(!r.data)return n.jsx(Ve,{});const{status:A,catalog:Y,intelligence:$}=r.data,I=async()=>{M(!0),p(null);try{p(await ne("/models/test",{method:"POST",body:"{}"}))}catch(L){p({ok:!1,error:{message:L.message}})}finally{M(!1)}};return n.jsxs(n.Fragment,{children:[n.jsx(qt,{title:"Models",subtitle:"The model that makes agent decisions in this environment. It chooses among the options your application offers and the task owner may take; its choice becomes a proposal, never an execution."}),n.jsxs(le,{title:n.jsxs("span",{className:"row",children:["Decision model ",A.ready?n.jsx(K,{tone:"ok",children:"ready"}):n.jsx(K,{tone:"bad",children:"not ready"})]}),action:_?n.jsx("button",{className:"btn",onClick:I,disabled:y||!A.ready,children:y?"Calling…":"Test"}):null,children:[n.jsx(Cs,{rows:[["Source",A.source==="application"?"Application code (agent.decisions)":A.source==="intelligence"?"AppPort Services Intelligence (this environment)":"None"],["Provider",A.provider?n.jsxs("span",{className:"mono",children:[A.provider,A.protocol?` · ${A.protocol}`:""]}):"—"],["Model",A.model?n.jsx("span",{className:"mono",children:A.model}):"—"],["Endpoint",A.endpoint?n.jsx("span",{className:"mono",children:A.endpoint}):"—"],["Credential",A.credential.ref?n.jsxs("span",{className:"mono",children:[A.credential.ref," → ",A.credential.variable," ",A.credential.present?n.jsx(K,{tone:"ok",children:"set"}):n.jsx(K,{tone:"bad",children:"missing"})]}):A.credential.required?n.jsx(K,{tone:"bad",children:"required, none attached"}):"none needed"],["Runtime",A.runtime?n.jsxs("span",{className:"mono",children:[A.runtime.metadata.runtime," (",A.runtime.metadata.execution_method,")"]}):"—"],["Can decide",A.runtime?["binary","choice","score","batch","probability_distribution"].map(L=>n.jsxs(K,{tone:A.runtime.capabilities[L]?"ok":"neutral",children:[L.replace("_"," "),A.runtime.capabilities[L]?"":": no"]},L)):"—"]]}),A.problems.map(L=>n.jsxs("div",{className:"error-box",children:[n.jsx("strong",{children:L.message}),n.jsx("div",{className:"small",children:L.fix})]},L.problem)),U&&n.jsx("div",{className:U.ok?"ok-box":"error-box",children:U.ok?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:"The model answered"})," in ",U.durationMs," ms (",U.provider,", ",U.runtime.runtime,"): ",n.jsx(Hn,{value:U.result})]}):n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:U.error.message}),U.error.hint&&n.jsx("div",{className:"small",children:U.error.hint})]})})]}),g&&$&&n.jsx(zy,{catalog:Y,current:A,onSaved:()=>h(L=>L+1)}),!g&&n.jsx(le,{children:n.jsxs("p",{className:"muted small",children:["Production: the model is selected on the host with ",n.jsx("code",{children:"feltkit model set --env production"}),"; keys live in the host’s environment as ",n.jsx("code",{children:"FELTKIT_CREDENTIAL_<ID>"}),"."]})}),!$&&n.jsx(le,{children:n.jsxs("p",{className:"muted small",children:["The Intelligence service is not enabled. Add ",n.jsxs("code",{children:["services: ","{"," intelligence: true ","}"]})," to ",n.jsxs("code",{children:["feltkit(","{ … }",")"]})," to select a provider here, or pass ",n.jsx("code",{children:"agent.decisions"}),"."]})})]})}function zy({catalog:s,current:d,onSaved:h}){const[r,j]=B.useState(d.provider??s[0]?.id??""),g=s.find(N=>N.id===r),[_,U]=B.useState(d.model??""),[p,y]=B.useState(d.endpoint??""),[M,A]=B.useState(d.credential?.ref??""),[Y,$]=B.useState(null),[I,L]=B.useState(!1);B.useEffect(()=>{g&&g.modelSelection==="catalog"&&!g.models.includes(_)&&U(g.models[0]??"")},[r]);const q=async()=>{$(null),L(!1);try{await ne("/models",{method:"POST",body:JSON.stringify({provider:r,model:_,...g?.customEndpoint&&p?{endpoint:p}:{},...M?{credentialRef:M}:{}})}),L(!0),h()}catch(N){$(N)}};return n.jsxs(le,{title:"Select a provider (development)",children:[Y?n.jsx(_e,{error:Y}):null,n.jsxs("div",{className:"form-grid",children:[n.jsxs("label",{children:["Provider",n.jsx("select",{className:"input",value:r,onChange:N=>j(N.target.value),"aria-label":"Provider",children:s.map(N=>n.jsxs("option",{value:N.id,children:[N.displayName," (",N.protocol,", credential ",N.credential,")"]},N.id))})]}),n.jsxs("label",{children:["Model",g?.modelSelection==="catalog"?n.jsx("select",{className:"input",value:_,onChange:N=>U(N.target.value),"aria-label":"Model",children:g.models.map(N=>n.jsx("option",{children:N},N))}):n.jsx("input",{className:"input",value:_,onChange:N=>U(N.target.value),placeholder:g?.models[0]??"model id","aria-label":"Model"})]}),g?.customEndpoint&&n.jsxs("label",{children:["Endpoint",n.jsx("input",{className:"input",value:p,onChange:N=>y(N.target.value),placeholder:g.endpoints[0]??"http://localhost:11434/v1","aria-label":"Endpoint"})]}),n.jsxs("label",{children:["Credential reference",n.jsx("input",{className:"input",value:M,onChange:N=>A(N.target.value),placeholder:"credential-ref:openai","aria-label":"Credential reference"})]})]}),n.jsxs("p",{className:"muted small",children:["Never paste a key here. A reference such as ",n.jsx("code",{children:"credential-ref:openai"})," resolves on the server from ",n.jsx("code",{children:"FELTKIT_CREDENTIAL_OPENAI"}),"."]}),n.jsxs("div",{className:"row",children:[n.jsx("button",{className:"btn btn-primary",onClick:q,disabled:!r||!_,children:"Save for this environment"}),I&&n.jsx("span",{className:"muted small",children:"Saved."})]})]})}const Oy=s=>s==="succeeded"?"ok":s==="failed"?"bad":"warn";function _y(){const{version:s}=Ht(),[d,h]=B.useState(0),r=Qe(()=>ne("/integrations"),[s,d]),j=Qe(()=>ne("/overview"),[s]),{development:g,canAct:_}=nu(j.data),p=(j.data?.devUsers??[])[0]?.id??"",[y,M]=B.useState({}),[A,Y]=B.useState(null);if(r.error)return n.jsx(_e,{error:r.error,retry:r.reload});if(!r.data)return n.jsx(Ve,{});const{integrations:$,calls:I}=r.data,L=async N=>{Y(null);try{const G=await ne(`/integrations/${encodeURIComponent(N)}/check`,{method:"POST",body:"{}"});M(w=>({...w,[N]:G}))}catch(G){Y(G)}},q=async N=>{Y(null);try{await ne(`/integrations/calls/${encodeURIComponent(N)}/verify`,{method:"POST",body:JSON.stringify(g?{as:p}:{})}),h(G=>G+1)}catch(G){Y(G)}};return n.jsxs(n.Fragment,{children:[n.jsx(qt,{title:"Integrations",subtitle:"Existing APIs, published as AppPort capabilities: what each operation does, who may invoke it, whether repeating it is safe, and how its outcome is verified. Seeing an operation grants nothing."}),A?n.jsx(_e,{error:A}):null,$.length===0?n.jsxs(_t,{title:"No integrations yet",children:["Connect an API with ",n.jsxs("code",{children:['app.integration("payments", ',"{"," baseUrl, credential, operations ","}",")"]})," in ",n.jsx("code",{children:"feltkit/"}),"."]}):$.map(N=>n.jsxs(le,{title:n.jsxs("span",{className:"row",children:[N.name," ",N.problems.length?n.jsx(K,{tone:"bad",children:"not configured"}):n.jsx(K,{tone:"ok",children:"configured"})]}),action:_&&N.health?n.jsx("button",{className:"btn",onClick:()=>L(N.name),children:"Check"}):null,children:[N.description&&n.jsx("p",{children:N.description}),n.jsxs("p",{className:"small",children:[n.jsx("span",{className:"mono",children:N.baseUrl.value??"—"})," ",n.jsxs("span",{className:"muted",children:["(",N.baseUrl.source,N.baseUrl.variable?` ${N.baseUrl.variable}`:"",")"]}),N.credential&&n.jsxs(n.Fragment,{children:[" · ",n.jsx("span",{className:"mono",children:N.credential.ref})," ",N.credential.present?n.jsx(K,{tone:"ok",children:"resolves"}):n.jsxs(K,{tone:"bad",children:[N.credential.variable," missing"]})]})]}),N.problems.map((G,w)=>n.jsxs("div",{className:"error-box",children:[n.jsx("strong",{children:G.message}),n.jsx("div",{className:"small",children:G.fix})]},w)),y[N.name]&&n.jsx("div",{className:y[N.name].ok?"ok-box":"error-box",children:y[N.name].message}),n.jsx("div",{className:"table-wrap",children:n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Capability"}),n.jsx("th",{children:"Request"}),n.jsx("th",{children:"Effect"}),n.jsx("th",{children:"Who may invoke"}),n.jsx("th",{children:"Repeat"}),n.jsx("th",{children:"Outcome unknown →"})]})}),n.jsx("tbody",{children:N.operations.map(G=>n.jsxs("tr",{children:[n.jsx("td",{className:"mono",children:G.capability}),n.jsxs("td",{className:"mono small",children:[G.method," ",G.path]}),n.jsx("td",{children:G.effect==="consequential"?n.jsx(K,{tone:"warn",children:"consequential"}):n.jsx(K,{children:"observation"})}),n.jsx("td",{className:"mono small",children:G.access}),n.jsx("td",{className:"small",children:G.effect==="observation"?"safe":G.idempotent?"deduplicated by the API":"may duplicate"}),n.jsx("td",{className:"small",children:G.effect==="observation"?"—":G.verifiable?"verify, never re-send":"a person settles it"})]},G.capability))})]})})]},N.name)),n.jsxs(le,{title:"Calls",children:[I.length===0?n.jsx("p",{className:"muted small",children:"No calls yet."}):n.jsx("div",{className:"table-wrap",children:n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Capability"}),n.jsx("th",{children:"State"}),n.jsx("th",{children:"How known"}),n.jsx("th",{children:"As"}),n.jsx("th",{children:"HTTP"}),n.jsx("th",{children:"Detail"}),n.jsx("th",{children:"When"}),n.jsx("th",{})]})}),n.jsx("tbody",{children:I.map(N=>n.jsxs("tr",{children:[n.jsx("td",{className:"mono small",children:N.capability}),n.jsx("td",{children:n.jsx(K,{tone:Oy(N.state),children:N.state==="started"?"unknown (no outcome recorded)":N.state})}),n.jsxs("td",{className:"small",children:[N.determinedBy??"—",N.verification?` (${N.verification.outcome})`:""]}),n.jsx("td",{className:"mono small",children:N.principal.id}),n.jsx("td",{children:N.status??""}),n.jsx("td",{className:"small error-text",children:N.error?.message??""}),n.jsx("td",{className:"muted small",children:Fe(N.startedAt)}),n.jsx("td",{children:_&&(N.state==="unknown"||N.state==="started")&&n.jsx("button",{className:"btn btn-small",onClick:()=>q(N.id),disabled:g&&!p,children:"Verify"})})]},N.id))})]})}),n.jsx("p",{className:"muted small",children:"A call is recorded before it is sent. “Verify” reads the API’s own state through the declared probe; it never sends the request again."})]})]})}const th={pass:"ok",fail:"bad",warn:"warn",external:"neutral"},lh={pass:"verified",fail:"fails",warn:"review",external:"outside FeltKit"};function Dy(){const{version:s}=Ht(),d=Qe(()=>ne("/readiness"),[s]);if(d.error)return n.jsx(_e,{error:d.error,retry:d.reload});if(!d.data)return n.jsx(Ve,{label:"Checking this environment"});const h=d.data,r=[...new Set(h.checks.map(j=>j.area))];return n.jsxs(n.Fragment,{children:[n.jsx(qt,{title:"Readiness",subtitle:"Real checks of this environment, not a status anyone sets. Passing checks mean the checked things are in place; the operational requirements at the end are yours to meet.",actions:n.jsx("button",{className:"btn",onClick:d.reload,children:"Check again"})}),n.jsxs(le,{children:[n.jsx("p",{children:n.jsx("strong",{children:h.summary})}),n.jsx("div",{className:"row",children:["fail","warn","pass","external"].map(j=>n.jsxs(K,{tone:th[j],children:[h.counts[j]," ",lh[j]]},j))}),n.jsxs("p",{className:"muted small",children:["The same report: ",n.jsxs("code",{children:["npx feltkit readiness --env ",h.environment.name]}),"."]})]}),r.map(j=>n.jsx(le,{title:j,children:n.jsx("ul",{className:"checks",children:h.checks.filter(g=>g.area===j).map(g=>n.jsxs("li",{className:"check",children:[n.jsx(K,{tone:th[g.status],children:lh[g.status]})," ",n.jsx("strong",{children:g.title}),n.jsx("div",{className:"small",children:g.detail}),g.fix&&g.status!=="pass"&&n.jsxs("div",{className:"small muted",children:["→ ",g.fix]})]},g.id))})},j))]})}const vh=B.createContext({live:!1,version:0,changed:{},activity:[],overview:void 0,reloadOverview(){}}),Ht=()=>B.useContext(vh),Hs=[{id:"overview",label:"Overview",key:"1"},{id:"data",label:"Data",key:"2"},{id:"capabilities",label:"Capabilities",key:"3"},{id:"services",label:"Services",key:"4"},{id:"agent",label:"Agent",key:"5"},{id:"models",label:"Models",key:"m"},{id:"integrations",label:"Integrations",key:"i"},{id:"readiness",label:"Readiness",key:"r"},{id:"activity",label:"Activity",key:"6"},{id:"settings",label:"Settings",key:"7"},{id:"projects",label:"Projects",key:"8"}],ah=["data","settings","projects"];function nh(){const s=location.hash.replace(/^#\/?/,"").split("/").filter(Boolean).map(decodeURIComponent);return{route:Hs.find(h=>h.id===s[0])?.id??"overview",rest:s.slice(1)}}function Dt(s){location.hash=`#/${s}`}const My={overview:n.jsx("path",{d:"M3 10.5 10 4l7 6.5V17a1 1 0 0 1-1 1h-4v-5H8v5H4a1 1 0 0 1-1-1z"}),data:n.jsxs(n.Fragment,{children:[n.jsx("ellipse",{cx:"10",cy:"5",rx:"6.5",ry:"2.5"}),n.jsx("path",{d:"M3.5 5v10c0 1.4 2.9 2.5 6.5 2.5s6.5-1.1 6.5-2.5V5M3.5 10c0 1.4 2.9 2.5 6.5 2.5s6.5-1.1 6.5-2.5"})]}),capabilities:n.jsx("path",{d:"M7 3h6v4l3 3-3 3v4H7v-4l-3-3 3-3z"}),models:n.jsx("path",{d:"M10 3a4 4 0 0 1 4 4v1a3 3 0 0 1 0 6v1a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-1a3 3 0 0 1 0-6V7a4 4 0 0 1 4-4zM8 10h.01M12 10h.01"}),integrations:n.jsx("path",{d:"M7 7h-2a3 3 0 0 0 0 6h2M13 7h2a3 3 0 0 1 0 6h-2M7 10h6"}),readiness:n.jsx("path",{d:"M4 10.5 8 14.5 16 5.5"}),services:n.jsxs(n.Fragment,{children:[n.jsx("rect",{x:"3",y:"3",width:"6",height:"6",rx:"1.5"}),n.jsx("rect",{x:"11",y:"3",width:"6",height:"6",rx:"1.5"}),n.jsx("rect",{x:"3",y:"11",width:"6",height:"6",rx:"1.5"}),n.jsx("rect",{x:"11",y:"11",width:"6",height:"6",rx:"1.5"})]}),agent:n.jsx("path",{d:"M10 3a3 3 0 0 1 3 3v1h1.5A1.5 1.5 0 0 1 16 8.5v6a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 4 14.5v-6A1.5 1.5 0 0 1 5.5 7H7V6a3 3 0 0 1 3-3zM8 11h.01M12 11h.01M8 14h4"}),activity:n.jsx("path",{d:"M2 10h4l2-5 4 10 2-5h4"}),settings:n.jsxs(n.Fragment,{children:[n.jsx("circle",{cx:"10",cy:"10",r:"2.5"}),n.jsx("path",{d:"M10 2.5v2M10 15.5v2M2.5 10h2M15.5 10h2M4.7 4.7l1.4 1.4M13.9 13.9l1.4 1.4M4.7 15.3l1.4-1.4M13.9 6.1l1.4-1.4"})]}),projects:n.jsx(n.Fragment,{children:n.jsx("path",{d:"M3 6.5A1.5 1.5 0 0 1 4.5 5H8l1.5 2h6A1.5 1.5 0 0 1 17 8.5v6A1.5 1.5 0 0 1 15.5 16h-11A1.5 1.5 0 0 1 3 14.5z"})})};function Cy({route:s}){return n.jsx("svg",{viewBox:"0 0 20 20",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:My[s]})}function Uy(){const[s,d]=B.useState("loading"),[h,r]=B.useState("");return B.useEffect(()=>{fetch("/api/session",{credentials:"same-origin"}).then(j=>j.json()).then(j=>{r(j?.environment?.name??""),d(j?.environment?.production?"production":"development")}).catch(()=>d("development"))},[]),s==="loading"?n.jsx(Ve,{label:"Connecting"}):s==="production"?n.jsx(Ry,{environment:h}):n.jsx(qy,{})}function Ry({environment:s}){const[d,h]=B.useState("checking"),[r,j]=B.useState(null),g=_=>{_?.operator&&_?.csrf?(Ds({csrf:_.csrf,environment:s}),h("signed-in")):(Ds(null),h("signed-out"))};return B.useEffect(()=>{ne("/operator/session").then(g,()=>h("signed-out"))},[]),d==="checking"?n.jsx(Ve,{label:"Checking your operator session"}):d==="signed-in"?n.jsx(yh,{onSignOut:()=>{ne("/operator/signout",{method:"POST",body:"{}"}).catch(()=>{}).finally(()=>(Ds(null),h("signed-out")))}}):n.jsx(Hy,{environment:s,...r?{error:r}:{},onGrant:async _=>{j(null);try{const U=await fetch("/_feltkit/api/operator/signin",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","x-feltkit-environment":s},body:JSON.stringify({grant:_})}),p=await U.json();if(!U.ok)throw new Error(p?.error?.message??`Sign-in failed (${U.status})`);g(p)}catch(U){j(U.message)}}})}function Hy({environment:s,onGrant:d,error:h}){const[r,j]=B.useState("");return n.jsx("div",{className:"gate",children:n.jsxs("div",{className:"gate-card",children:[n.jsx(Bs,{}),n.jsxs("h1",{children:["Sign in to ",s," Studio"]}),n.jsxs("p",{className:"muted",children:["Production Studio is for operators. On the host, run ",n.jsx("code",{children:"feltkit operator grant --id <you> --role <role>"})," and paste the one-time grant here. Everything you do is authorized and recorded as you."]}),h&&n.jsx("p",{className:"error-text",children:h}),n.jsxs("form",{onSubmit:g=>{g.preventDefault(),r.trim()&&d(r.trim())},className:"row",children:[n.jsx("input",{className:"input grow",value:r,onChange:g=>j(g.target.value),placeholder:"fkg1.…","aria-label":"Operator grant",autoFocus:!0}),n.jsx("button",{className:"btn btn-primary",type:"submit",children:"Sign in"})]})]})})}function qy(){const[s,d]=B.useState(()=>{const j=Wv();return _s(j),j}),[h,r]=B.useState(!1);return s?n.jsx(yh,{onSignOut:j=>(_s(null),Ff(null),r(!!j),d(null))}):n.jsx(By,{...h?{error:"That admin token was not accepted. A new one is generated if .feltkit/<env>/admin-token is deleted."}:{},onToken:j=>(_s(j),Ff(j),r(!1),d(j))})}function By({onToken:s,error:d}){const[h,r]=B.useState("");return n.jsx("div",{className:"gate",children:n.jsxs("div",{className:"gate-card",children:[n.jsx(Bs,{}),n.jsx("h1",{children:"Open the FeltKit dashboard"}),n.jsxs("p",{className:"muted",children:["The dashboard needs this environment’s admin token. Use the ",n.jsx("strong",{children:"Dashboard"})," link that ",n.jsx("code",{children:"feltkit dev"})," prints — it contains the token — or paste the token from ",n.jsx("code",{children:".feltkit/development/admin-token"}),"."]}),d&&n.jsx("p",{className:"error-text",children:d}),n.jsxs("form",{onSubmit:j=>{j.preventDefault(),h.trim()&&s(h.trim())},className:"row",children:[n.jsx("input",{className:"input grow",value:h,onChange:j=>r(j.target.value),placeholder:"fka_…","aria-label":"Admin token",autoFocus:!0}),n.jsx("button",{className:"btn btn-primary",type:"submit",children:"Continue"})]})]})})}function Bs(){return n.jsx("span",{className:"logo","aria-label":"FeltKit",children:n.jsxs("svg",{viewBox:"0 0 32 32",width:"26",height:"26","aria-hidden":!0,children:[n.jsx("rect",{width:"32",height:"32",rx:"8",fill:"var(--logo-bg)"}),n.jsx("path",{d:"M11 7c-4 5-4 13 0 18M21 7c4 5 4 13 0 18",stroke:"var(--logo-fg)",strokeWidth:"3",fill:"none",strokeLinecap:"round"})]})})}function yh({onSignOut:s}){const[{route:d,rest:h},r]=B.useState(nh),[j,g]=B.useState(!1),[_,U]=B.useState(0),[p,y]=B.useState({}),[M,A]=B.useState([]),Y=Qe(()=>ne("/overview"),[_]),$=B.useRef(null);B.useEffect(()=>{const G=()=>r(nh());return window.addEventListener("hashchange",G),()=>window.removeEventListener("hashchange",G)},[]),B.useEffect(()=>Fv((G,w)=>{G==="activity"&&A(ie=>[w,...ie].slice(0,200)),G==="change"&&y(ie=>{const ze={...ie};for(const De of w.collections)ze[De]=(ze[De]??0)+1;return ze}),$.current===null&&($.current=window.setTimeout(()=>{$.current=null,U(ie=>ie+1)},250))},g),[]),B.useEffect(()=>{const G=w=>{const ie=w.target;if(w.metaKey||w.ctrlKey||w.altKey||["INPUT","TEXTAREA","SELECT"].includes(ie.tagName)||ie.isContentEditable)return;const ze=Hs.find(De=>De.key===w.key);ze&&Dt(ze.id)};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[]);const I=B.useMemo(()=>({live:j,version:_,changed:p,activity:M,overview:Y.data,reloadOverview:Y.reload}),[j,_,p,M,Y.data,Y.reload]),L=Y.error?.status===401;B.useEffect(()=>{L&&s(!0)},[L,s]);const q=Y.data,N=q?.environment?.production;return n.jsx(vh.Provider,{value:I,children:n.jsxs("div",{className:"app",children:[n.jsxs("nav",{className:"nav","aria-label":"Dashboard",children:[n.jsxs("div",{className:"nav-brand",children:[n.jsx(Bs,{}),n.jsxs("div",{children:[n.jsx("div",{className:"nav-app",children:q?.application?.name??"…"}),n.jsx("div",{className:"nav-sub",children:"FeltKit"})]})]}),n.jsx("ul",{children:Hs.filter(G=>!N||!ah.includes(G.id)).map(G=>n.jsx("li",{children:n.jsxs("a",{href:`#/${G.id}`,className:d===G.id?"active":"","aria-current":d===G.id?"page":void 0,children:[n.jsx(Cy,{route:G.id}),n.jsx("span",{children:G.label}),n.jsx("kbd",{children:G.key})]})},G.id))}),n.jsxs("div",{className:"nav-foot",children:[n.jsxs("div",{className:`live ${j?"on":""}`,children:[n.jsx("span",{className:"dot"})," ",j?"Live":"Reconnecting"]}),n.jsx("button",{className:"btn btn-ghost btn-small",onClick:()=>s(),title:q?.operator?"Sign out of production Studio":"Forget the admin token in this tab",children:q?.operator?"Sign out":"Lock"})]})]}),n.jsxs("div",{className:"content",children:[q&&n.jsxs("div",{className:`envbar ${N?"envbar-prod":""}`,children:[n.jsx("span",{className:"envname",children:q.environment.name}),n.jsxs("span",{className:"muted",children:["FeltDB ",q.instance.feltdbVersion," · ",q.instance.mode," · "]}),n.jsx("code",{className:"path",title:q.instance.location,children:q.instance.location}),N?n.jsxs("span",{className:"envwarn",children:["Production · signed in as ",n.jsx("strong",{children:q.operator?.principal?.id})," (",(q.operator?.principal?.roles??[]).join(", "),") · actions run on this environment only"]}):n.jsx("span",{className:"muted",children:"Development tools enabled"})]}),n.jsx("main",{className:"page",children:Y.loading&&!q?n.jsx(Ve,{label:"Connecting to the runtime"}):q?n.jsx(wy,{route:N&&ah.includes(d)?"overview":d,rest:h}):n.jsxs("div",{className:"error-box",children:["The runtime did not answer: ",Y.error?.message]})})]})]})})}function wy({route:s,rest:d}){switch(s){case"data":return n.jsx(iy,{collection:d[0]});case"capabilities":return n.jsx(fy,{selected:d[0]});case"services":return n.jsx(ey,{});case"agent":return n.jsx(Sy,{rest:d});case"models":return n.jsx(Ty,{});case"integrations":return n.jsx(_y,{});case"readiness":return n.jsx(Dy,{});case"activity":return n.jsx(py,{selected:d[0]});case"settings":return n.jsx(xy,{});case"projects":return n.jsx(by,{});default:return n.jsx(ny,{})}}function qt({title:s,subtitle:d,actions:h}){return n.jsxs("header",{className:"page-header",children:[n.jsxs("div",{children:[n.jsx("h1",{children:s}),d&&n.jsx("p",{className:"muted",children:d})]}),h&&n.jsx("div",{className:"actions",children:h})]})}$v.createRoot(document.getElementById("root")).render(n.jsx(B.StrictMode,{children:n.jsx(Uy,{})}));
|