@netnodeag/kraftwerk 0.13.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,80 +0,0 @@
1
- (function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&r(p)}).observe(document,{childList:!0,subtree:!0});function o(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(d){if(d.ep)return;d.ep=!0;const h=o(d);fetch(d.href,h)}})();var Vr={exports:{}},ci={};var tm;function av(){if(tm)return ci;tm=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function o(r,d,h){var p=null;if(h!==void 0&&(p=""+h),d.key!==void 0&&(p=""+d.key),"key"in d){h={};for(var y in d)y!=="key"&&(h[y]=d[y])}else h=d;return d=h.ref,{$$typeof:u,type:r,key:p,ref:d!==void 0?d:null,props:h}}return ci.Fragment=c,ci.jsx=o,ci.jsxs=o,ci}var lm;function nv(){return lm||(lm=1,Vr.exports=av()),Vr.exports}var s=nv(),Kr={exports:{}},ue={};var am;function sv(){if(am)return ue;am=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),k=Symbol.iterator;function ee(j){return j===null||typeof j!="object"?null:(j=k&&j[k]||j["@@iterator"],typeof j=="function"?j:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},J=Object.assign,W={};function R(j,L,Q){this.props=j,this.context=L,this.refs=W,this.updater=Q||$}R.prototype.isReactComponent={},R.prototype.setState=function(j,L){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,L,"setState")},R.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function we(){}we.prototype=R.prototype;function P(j,L,Q){this.props=j,this.context=L,this.refs=W,this.updater=Q||$}var ne=P.prototype=new we;ne.constructor=P,J(ne,R.prototype),ne.isPureReactComponent=!0;var ie=Array.isArray;function G(){}var F={H:null,A:null,T:null,S:null},He=Object.prototype.hasOwnProperty;function Be(j,L,Q){var Y=Q.ref;return{$$typeof:u,type:j,key:L,ref:Y!==void 0?Y:null,props:Q}}function At(j,L){return Be(j.type,L,j.props)}function _t(j){return typeof j=="object"&&j!==null&&j.$$typeof===u}function dt(j){var L={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Q){return L[Q]})}var Lt=/\/+/g;function Wt(j,L){return typeof j=="object"&&j!==null&&j.key!=null?dt(""+j.key):L.toString(36)}function ut(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(G,G):(j.status="pending",j.then(function(L){j.status==="pending"&&(j.status="fulfilled",j.value=L)},function(L){j.status==="pending"&&(j.status="rejected",j.reason=L)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function C(j,L,Q,Y,ce){var fe=typeof j;(fe==="undefined"||fe==="boolean")&&(j=null);var Se=!1;if(j===null)Se=!0;else switch(fe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(j.$$typeof){case u:case c:Se=!0;break;case z:return Se=j._init,C(Se(j._payload),L,Q,Y,ce)}}if(Se)return ce=ce(j),Se=Y===""?"."+Wt(j,0):Y,ie(ce)?(Q="",Se!=null&&(Q=Se.replace(Lt,"$&/")+"/"),C(ce,L,Q,"",function(La){return La})):ce!=null&&(_t(ce)&&(ce=At(ce,Q+(ce.key==null||j&&j.key===ce.key?"":(""+ce.key).replace(Lt,"$&/")+"/")+Se)),L.push(ce)),1;Se=0;var ht=Y===""?".":Y+":";if(ie(j))for(var $e=0;$e<j.length;$e++)Y=j[$e],fe=ht+Wt(Y,$e),Se+=C(Y,L,Q,fe,ce);else if($e=ee(j),typeof $e=="function")for(j=$e.call(j),$e=0;!(Y=j.next()).done;)Y=Y.value,fe=ht+Wt(Y,$e++),Se+=C(Y,L,Q,fe,ce);else if(fe==="object"){if(typeof j.then=="function")return C(ut(j),L,Q,Y,ce);throw L=String(j),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return Se}function X(j,L,Q){if(j==null)return j;var Y=[],ce=0;return C(j,Y,"","",function(fe){return L.call(Q,fe,ce++)}),Y}function ae(j){if(j._status===-1){var L=j._result;L=L(),L.then(function(Q){(j._status===0||j._status===-1)&&(j._status=1,j._result=Q)},function(Q){(j._status===0||j._status===-1)&&(j._status=2,j._result=Q)}),j._status===-1&&(j._status=0,j._result=L)}if(j._status===1)return j._result.default;throw j._result}var be=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},Ae={map:X,forEach:function(j,L,Q){X(j,function(){L.apply(this,arguments)},Q)},count:function(j){var L=0;return X(j,function(){L++}),L},toArray:function(j){return X(j,function(L){return L})||[]},only:function(j){if(!_t(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return ue.Activity=O,ue.Children=Ae,ue.Component=R,ue.Fragment=o,ue.Profiler=d,ue.PureComponent=P,ue.StrictMode=r,ue.Suspense=b,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ue.__COMPILER_RUNTIME={__proto__:null,c:function(j){return F.H.useMemoCache(j)}},ue.cache=function(j){return function(){return j.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(j,L,Q){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var Y=J({},j.props),ce=j.key;if(L!=null)for(fe in L.key!==void 0&&(ce=""+L.key),L)!He.call(L,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&L.ref===void 0||(Y[fe]=L[fe]);var fe=arguments.length-2;if(fe===1)Y.children=Q;else if(1<fe){for(var Se=Array(fe),ht=0;ht<fe;ht++)Se[ht]=arguments[ht+2];Y.children=Se}return Be(j.type,ce,Y)},ue.createContext=function(j){return j={$$typeof:p,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:h,_context:j},j},ue.createElement=function(j,L,Q){var Y,ce={},fe=null;if(L!=null)for(Y in L.key!==void 0&&(fe=""+L.key),L)He.call(L,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(ce[Y]=L[Y]);var Se=arguments.length-2;if(Se===1)ce.children=Q;else if(1<Se){for(var ht=Array(Se),$e=0;$e<Se;$e++)ht[$e]=arguments[$e+2];ce.children=ht}if(j&&j.defaultProps)for(Y in Se=j.defaultProps,Se)ce[Y]===void 0&&(ce[Y]=Se[Y]);return Be(j,fe,ce)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(j){return{$$typeof:y,render:j}},ue.isValidElement=_t,ue.lazy=function(j){return{$$typeof:z,_payload:{_status:-1,_result:j},_init:ae}},ue.memo=function(j,L){return{$$typeof:v,type:j,compare:L===void 0?null:L}},ue.startTransition=function(j){var L=F.T,Q={};F.T=Q;try{var Y=j(),ce=F.S;ce!==null&&ce(Q,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(G,be)}catch(fe){be(fe)}finally{L!==null&&Q.types!==null&&(L.types=Q.types),F.T=L}},ue.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ue.use=function(j){return F.H.use(j)},ue.useActionState=function(j,L,Q){return F.H.useActionState(j,L,Q)},ue.useCallback=function(j,L){return F.H.useCallback(j,L)},ue.useContext=function(j){return F.H.useContext(j)},ue.useDebugValue=function(){},ue.useDeferredValue=function(j,L){return F.H.useDeferredValue(j,L)},ue.useEffect=function(j,L){return F.H.useEffect(j,L)},ue.useEffectEvent=function(j){return F.H.useEffectEvent(j)},ue.useId=function(){return F.H.useId()},ue.useImperativeHandle=function(j,L,Q){return F.H.useImperativeHandle(j,L,Q)},ue.useInsertionEffect=function(j,L){return F.H.useInsertionEffect(j,L)},ue.useLayoutEffect=function(j,L){return F.H.useLayoutEffect(j,L)},ue.useMemo=function(j,L){return F.H.useMemo(j,L)},ue.useOptimistic=function(j,L){return F.H.useOptimistic(j,L)},ue.useReducer=function(j,L,Q){return F.H.useReducer(j,L,Q)},ue.useRef=function(j){return F.H.useRef(j)},ue.useState=function(j){return F.H.useState(j)},ue.useSyncExternalStore=function(j,L,Q){return F.H.useSyncExternalStore(j,L,Q)},ue.useTransition=function(){return F.H.useTransition()},ue.version="19.2.8",ue}var nm;function fo(){return nm||(nm=1,Kr.exports=sv()),Kr.exports}var B=fo(),Jr={exports:{}},ui={},Wr={exports:{}},Ir={};var sm;function iv(){return sm||(sm=1,(function(u){function c(C,X){var ae=C.length;C.push(X);e:for(;0<ae;){var be=ae-1>>>1,Ae=C[be];if(0<d(Ae,X))C[be]=X,C[ae]=Ae,ae=be;else break e}}function o(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var X=C[0],ae=C.pop();if(ae!==X){C[0]=ae;e:for(var be=0,Ae=C.length,j=Ae>>>1;be<j;){var L=2*(be+1)-1,Q=C[L],Y=L+1,ce=C[Y];if(0>d(Q,ae))Y<Ae&&0>d(ce,Q)?(C[be]=ce,C[Y]=ae,be=Y):(C[be]=Q,C[L]=ae,be=L);else if(Y<Ae&&0>d(ce,ae))C[be]=ce,C[Y]=ae,be=Y;else break e}}return X}function d(C,X){var ae=C.sortIndex-X.sortIndex;return ae!==0?ae:C.id-X.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;u.unstable_now=function(){return h.now()}}else{var p=Date,y=p.now();u.unstable_now=function(){return p.now()-y}}var b=[],v=[],z=1,O=null,k=3,ee=!1,$=!1,J=!1,W=!1,R=typeof setTimeout=="function"?setTimeout:null,we=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function ne(C){for(var X=o(v);X!==null;){if(X.callback===null)r(v);else if(X.startTime<=C)r(v),X.sortIndex=X.expirationTime,c(b,X);else break;X=o(v)}}function ie(C){if(J=!1,ne(C),!$)if(o(b)!==null)$=!0,G||(G=!0,dt());else{var X=o(v);X!==null&&ut(ie,X.startTime-C)}}var G=!1,F=-1,He=5,Be=-1;function At(){return W?!0:!(u.unstable_now()-Be<He)}function _t(){if(W=!1,G){var C=u.unstable_now();Be=C;var X=!0;try{e:{$=!1,J&&(J=!1,we(F),F=-1),ee=!0;var ae=k;try{t:{for(ne(C),O=o(b);O!==null&&!(O.expirationTime>C&&At());){var be=O.callback;if(typeof be=="function"){O.callback=null,k=O.priorityLevel;var Ae=be(O.expirationTime<=C);if(C=u.unstable_now(),typeof Ae=="function"){O.callback=Ae,ne(C),X=!0;break t}O===o(b)&&r(b),ne(C)}else r(b);O=o(b)}if(O!==null)X=!0;else{var j=o(v);j!==null&&ut(ie,j.startTime-C),X=!1}}break e}finally{O=null,k=ae,ee=!1}X=void 0}}finally{X?dt():G=!1}}}var dt;if(typeof P=="function")dt=function(){P(_t)};else if(typeof MessageChannel<"u"){var Lt=new MessageChannel,Wt=Lt.port2;Lt.port1.onmessage=_t,dt=function(){Wt.postMessage(null)}}else dt=function(){R(_t,0)};function ut(C,X){F=R(function(){C(u.unstable_now())},X)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(C){C.callback=null},u.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):He=0<C?Math.floor(1e3/C):5},u.unstable_getCurrentPriorityLevel=function(){return k},u.unstable_next=function(C){switch(k){case 1:case 2:case 3:var X=3;break;default:X=k}var ae=k;k=X;try{return C()}finally{k=ae}},u.unstable_requestPaint=function(){W=!0},u.unstable_runWithPriority=function(C,X){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var ae=k;k=C;try{return X()}finally{k=ae}},u.unstable_scheduleCallback=function(C,X,ae){var be=u.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?be+ae:be):ae=be,C){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=ae+Ae,C={id:z++,callback:X,priorityLevel:C,startTime:ae,expirationTime:Ae,sortIndex:-1},ae>be?(C.sortIndex=ae,c(v,C),o(b)===null&&C===o(v)&&(J?(we(F),F=-1):J=!0,ut(ie,ae-be))):(C.sortIndex=Ae,c(b,C),$||ee||($=!0,G||(G=!0,dt()))),C},u.unstable_shouldYield=At,u.unstable_wrapCallback=function(C){var X=k;return function(){var ae=k;k=X;try{return C.apply(this,arguments)}finally{k=ae}}}})(Ir)),Ir}var im;function cv(){return im||(im=1,Wr.exports=iv()),Wr.exports}var Fr={exports:{}},Nt={};var cm;function uv(){if(cm)return Nt;cm=1;var u=fo();function c(b){var v="https://react.dev/errors/"+b;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var z=2;z<arguments.length;z++)v+="&args[]="+encodeURIComponent(arguments[z])}return"Minified React error #"+b+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(c(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(b,v,z){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:O==null?null:""+O,children:b,containerInfo:v,implementation:z}}var p=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(b,v){if(b==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Nt.createPortal=function(b,v){var z=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(c(299));return h(b,v,null,z)},Nt.flushSync=function(b){var v=p.T,z=r.p;try{if(p.T=null,r.p=2,b)return b()}finally{p.T=v,r.p=z,r.d.f()}},Nt.preconnect=function(b,v){typeof b=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(b,v))},Nt.prefetchDNS=function(b){typeof b=="string"&&r.d.D(b)},Nt.preinit=function(b,v){if(typeof b=="string"&&v&&typeof v.as=="string"){var z=v.as,O=y(z,v.crossOrigin),k=typeof v.integrity=="string"?v.integrity:void 0,ee=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;z==="style"?r.d.S(b,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:O,integrity:k,fetchPriority:ee}):z==="script"&&r.d.X(b,{crossOrigin:O,integrity:k,fetchPriority:ee,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},Nt.preinitModule=function(b,v){if(typeof b=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var z=y(v.as,v.crossOrigin);r.d.M(b,{crossOrigin:z,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(b)},Nt.preload=function(b,v){if(typeof b=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var z=v.as,O=y(z,v.crossOrigin);r.d.L(b,z,{crossOrigin:O,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},Nt.preloadModule=function(b,v){if(typeof b=="string")if(v){var z=y(v.as,v.crossOrigin);r.d.m(b,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:z,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(b)},Nt.requestFormReset=function(b){r.d.r(b)},Nt.unstable_batchedUpdates=function(b,v){return b(v)},Nt.useFormState=function(b,v,z){return p.H.useFormState(b,v,z)},Nt.useFormStatus=function(){return p.H.useHostTransitionStatus()},Nt.version="19.2.8",Nt}var um;function rv(){if(um)return Fr.exports;um=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),Fr.exports=uv(),Fr.exports}var rm;function ov(){if(rm)return ui;rm=1;var u=cv(),c=fo(),o=rv();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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(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 p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(h(e)!==e)throw Error(r(188))}function v(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return b(n),e;if(i===a)return b(n),t;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=i;else{for(var f=!1,m=n.child;m;){if(m===l){f=!0,l=n,a=i;break}if(m===a){f=!0,a=n,l=i;break}m=m.sibling}if(!f){for(m=i.child;m;){if(m===l){f=!0,l=i,a=n;break}if(m===a){f=!0,a=i,l=n;break}m=m.sibling}if(!f)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 z(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=z(e),t!==null)return t;e=e.sibling}return null}var O=Object.assign,k=Symbol.for("react.element"),ee=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),we=Symbol.for("react.consumer"),P=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),He=Symbol.for("react.lazy"),Be=Symbol.for("react.activity"),At=Symbol.for("react.memo_cache_sentinel"),_t=Symbol.iterator;function dt(e){return e===null||typeof e!="object"?null:(e=_t&&e[_t]||e["@@iterator"],typeof e=="function"?e:null)}var Lt=Symbol.for("react.client.reference");function Wt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Lt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case J:return"Fragment";case R:return"Profiler";case W:return"StrictMode";case ie:return"Suspense";case G:return"SuspenseList";case Be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case $:return"Portal";case P:return e.displayName||"Context";case we:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:Wt(e.type)||"Memo";case He:t=e._payload,e=e._init;try{return Wt(e(t))}catch{}}return null}var ut=Array.isArray,C=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},be=[],Ae=-1;function j(e){return{current:e}}function L(e){0>Ae||(e.current=be[Ae],be[Ae]=null,Ae--)}function Q(e,t){Ae++,be[Ae]=e.current,e.current=t}var Y=j(null),ce=j(null),fe=j(null),Se=j(null);function ht(e,t){switch(Q(fe,t),Q(ce,e),Q(Y,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Th(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Th(t),e=kh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(Y),Q(Y,e)}function $e(){L(Y),L(ce),L(fe)}function La(e){e.memoizedState!==null&&Q(Se,e);var t=Y.current,l=kh(t,e.type);t!==l&&(Q(ce,e),Q(Y,l))}function Ha(e){ce.current===e&&(L(Y),L(ce)),Se.current===e&&(L(Se),ai._currentValue=ae)}var ss,is;function je(e){if(ss===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ss=t&&t[1]||"",is=-1<l.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+ss+e+is}var Ba=!1;function Oe(e,t){if(!e||Ba)return"";Ba=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(_){var A=_}Reflect.construct(e,[],U)}else{try{U.call()}catch(_){A=_}e.call(U.prototype)}}else{try{throw Error()}catch(_){A=_}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(_){if(_&&A&&typeof _.stack=="string")return[_.stack,A.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),f=i[0],m=i[1];if(f&&m){var x=f.split(`
4
- `),E=m.split(`
5
- `);for(n=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;n<E.length&&!E[n].includes("DetermineComponentFrameRoot");)n++;if(a===x.length||n===E.length)for(a=x.length-1,n=E.length-1;1<=a&&0<=n&&x[a]!==E[n];)n--;for(;1<=a&&0<=n;a--,n--)if(x[a]!==E[n]){if(a!==1||n!==1)do if(a--,n--,0>n||x[a]!==E[n]){var D=`
6
- `+x[a].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=a&&0<=n);break}}}finally{Ba=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?je(l):""}function cs(e,t){switch(e.tag){case 26:case 27:case 5:return je(e.type);case 16:return je("Lazy");case 13:return e.child!==t&&t!==null?je("Suspense Fallback"):je("Suspense");case 19:return je("SuspenseList");case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return je("Activity");default:return""}}function Ht(e){try{var t="",l=null;do t+=cs(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
7
- Error generating stack: `+a.message+`
8
- `+a.stack}}var Dl=Object.prototype.hasOwnProperty,pn=u.unstable_scheduleCallback,It=u.unstable_cancelCallback,xi=u.unstable_shouldYield,us=u.unstable_requestPaint,St=u.unstable_now,bi=u.unstable_getCurrentPriorityLevel,fl=u.unstable_ImmediatePriority,jl=u.unstable_UserBlockingPriority,Ft=u.unstable_NormalPriority,rs=u.unstable_LowPriority,qa=u.unstable_IdlePriority,gn=u.log,os=u.unstable_setDisableYieldValue,Pt=null,rt=null;function Bt(e){if(typeof gn=="function"&&os(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Pt,e)}catch{}}var jt=Math.clz32?Math.clz32:fs,Si=Math.log,ji=Math.LN2;function fs(e){return e>>>=0,e===0?32:31-(Si(e)/ji|0)|0}var la=256,dl=262144,hl=4194304;function Nl(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 Ya(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=a&134217727;return m!==0?(a=m&~i,a!==0?n=Nl(a):(f&=m,f!==0?n=Nl(f):l||(l=m&~e,l!==0&&(n=Nl(l))))):(m=a&~i,m!==0?n=Nl(m):f!==0?n=Nl(f):l||(l=a&~e,l!==0&&(n=Nl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function aa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ni(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 ds(){var e=hl;return hl<<=1,(hl&62914560)===0&&(hl=4194304),e}function na(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function el(e,t,l,a,n,i){var f=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var m=e.entanglements,x=e.expirationTimes,E=e.hiddenUpdates;for(l=f&~l;0<l;){var D=31-jt(l),U=1<<D;m[D]=0,x[D]=-1;var A=E[D];if(A!==null)for(E[D]=null,D=0;D<A.length;D++){var _=A[D];_!==null&&(_.lane&=-536870913)}l&=~U}a!==0&&Cl(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(f&~t))}function Cl(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-jt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function vn(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-jt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function yn(e,t){var l=t&-t;return l=(l&42)!==0?1:hs(l),(l&(e.suspendedLanes|t))!==0?0:l}function hs(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 xn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function bn(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Kh(e.type))}function ms(e,t){var l=X.p;try{return X.p=e,t()}finally{X.p=l}}var tl=Math.random().toString(36).slice(2),nt="__reactFiber$"+tl,We="__reactProps$"+tl,sa="__reactContainer$"+tl,ps="__reactEvents$"+tl,Qe="__reactListeners$"+tl,ia="__reactHandles$"+tl,Ti="__reactResources$"+tl,ca="__reactMarker$"+tl;function Ga(e){delete e[nt],delete e[We],delete e[ps],delete e[Qe],delete e[ia]}function Ml(e){var t=e[nt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[sa]||l[nt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Oh(e);e!==null;){if(l=e[nt])return l;e=Oh(e)}return t}e=l,l=e.parentNode}return null}function Ul(e){if(e=e[nt]||e[sa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ua(e){var t=e[Ti];return t||(t=e[Ti]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[ca]=!0}var ki=new Set,ml={};function kl(e,t){pl(e,t),pl(e+"Capture",t)}function pl(e,t){for(ml[e]=t,e=0;e<t.length;e++)ki.add(t[e])}var Ll=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]*$"),wi={},$a={};function Ei(e){return Dl.call($a,e)?!0:Dl.call(wi,e)?!1:Ll.test(e)?$a[e]=!0:(wi[e]=!0,!1)}function Sn(e,t,l){if(Ei(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 Qa(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 ll(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 mt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nn(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(f){l=""+f,i.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wl(e){if(!e._valueTracker){var t=jn(e)?"checked":"value";e._valueTracker=Nn(e,t,""+e[t])}}function ra(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=jn(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function wt(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 Zc=/[\n"\\]/g;function pt(e){return e.replace(Zc,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function gs(e,t,l,a,n,i,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+mt(t)):e.value!==""+mt(t)&&(e.value=""+mt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Tn(e,f,mt(t)):l!=null?Tn(e,f,mt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+mt(m):e.removeAttribute("name")}function vs(e,t,l,a,n,i,f,m){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){wl(e);return}l=l!=null?""+mt(l):"",t=t!=null?""+mt(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=m?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),wl(e)}function Tn(e,t,l){t==="number"&&wt(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Hl(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+mt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function ys(e,t,l){if(t!=null&&(t=""+mt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+mt(l):""}function Ai(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(ut(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=mt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),wl(e)}function Bl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Vc=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 _i(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||Vc.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function xs(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&_i(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&_i(e,i,t[i])}function oa(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 bs=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"]]),q=/^[\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 g(e){return q.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function N(){}var H=null;function Z(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var V=null,le=null;function _e(e){var t=Ul(e);if(t&&(e=t.stateNode)){var l=e[We]||null;e:switch(e=t.stateNode,t.type){case"input":if(gs(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="'+pt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[We]||null;if(!n)throw Error(r(90));gs(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&ra(a)}break e;case"textarea":ys(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Hl(e,!!l.multiple,t,!1)}}}var Ue=!1;function gt(e,t,l){if(Ue)return e(t,l);Ue=!0;try{var a=e(t);return a}finally{if(Ue=!1,(V!==null||le!==null)&&(gc(),V&&(t=V,e=le,le=V=null,_e(t),e)))for(t=0;t<e.length;t++)_e(e[t])}}function Fe(e,t){var l=e.stateNode;if(l===null)return null;var a=l[We]||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 qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),st=!1;if(qt)try{var Ss={};Object.defineProperty(Ss,"passive",{get:function(){st=!0}}),window.addEventListener("test",Ss,Ss),window.removeEventListener("test",Ss,Ss)}catch{st=!1}var fa=null,Kc=null,zi=null;function To(){if(zi)return zi;var e,t=Kc,l=t.length,a,n="value"in fa?fa.value:fa.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var f=l-e;for(a=1;a<=f&&t[l-a]===n[i-a];a++);return zi=n.slice(e,1<a?1-a:void 0)}function Ri(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 Oi(){return!0}function ko(){return!1}function zt(e){function t(l,a,n,i,f){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=f,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Oi:ko,this.isPropagationStopped=ko,this}return O(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=Oi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Oi)},persist:function(){},isPersistent:Oi}),t}var Za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=zt(Za),js=O({},Za,{view:0,detail:0}),tp=zt(js),Jc,Wc,Ns,Ci=O({},js,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fc,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!==Ns&&(Ns&&e.type==="mousemove"?(Jc=e.screenX-Ns.screenX,Wc=e.screenY-Ns.screenY):Wc=Jc=0,Ns=e),Jc)},movementY:function(e){return"movementY"in e?e.movementY:Wc}}),wo=zt(Ci),lp=O({},Ci,{dataTransfer:0}),ap=zt(lp),np=O({},js,{relatedTarget:0}),Ic=zt(np),sp=O({},Za,{animationName:0,elapsedTime:0,pseudoElement:0}),ip=zt(sp),cp=O({},Za,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),up=zt(cp),rp=O({},Za,{data:0}),Eo=zt(rp),op={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fp={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"},dp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dp[e])?!!t[e]:!1}function Fc(){return hp}var mp=O({},js,{key:function(e){if(e.key){var t=op[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fc,charCode:function(e){return e.type==="keypress"?Ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),pp=zt(mp),gp=O({},Ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ao=zt(gp),vp=O({},js,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fc}),yp=zt(vp),xp=O({},Za,{propertyName:0,elapsedTime:0,pseudoElement:0}),bp=zt(xp),Sp=O({},Ci,{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}),jp=zt(Sp),Np=O({},Za,{newState:0,oldState:0}),Tp=zt(Np),kp=[9,13,27,32],Pc=qt&&"CompositionEvent"in window,Ts=null;qt&&"documentMode"in document&&(Ts=document.documentMode);var wp=qt&&"TextEvent"in window&&!Ts,_o=qt&&(!Pc||Ts&&8<Ts&&11>=Ts),zo=" ",Ro=!1;function Oo(e,t){switch(e){case"keyup":return kp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Do(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function Ep(e,t){switch(e){case"compositionend":return Do(t);case"keypress":return t.which!==32?null:(Ro=!0,zo);case"textInput":return e=t.data,e===zo&&Ro?null:e;default:return null}}function Ap(e,t){if(kn)return e==="compositionend"||!Pc&&Oo(e,t)?(e=To(),zi=Kc=fa=null,kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _o&&t.locale!=="ko"?null:t.data;default:return null}}var _p={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 Co(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_p[e.type]:t==="textarea"}function Mo(e,t,l,a){V?le?le.push(a):le=[a]:V=a,t=Nc(t,"onChange"),0<t.length&&(l=new Di("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var ks=null,ws=null;function zp(e){yh(e,0)}function Mi(e){var t=Xa(e);if(ra(t))return e}function Uo(e,t){if(e==="change")return t}var Lo=!1;if(qt){var eu;if(qt){var tu="oninput"in document;if(!tu){var Ho=document.createElement("div");Ho.setAttribute("oninput","return;"),tu=typeof Ho.oninput=="function"}eu=tu}else eu=!1;Lo=eu&&(!document.documentMode||9<document.documentMode)}function Bo(){ks&&(ks.detachEvent("onpropertychange",qo),ws=ks=null)}function qo(e){if(e.propertyName==="value"&&Mi(ws)){var t=[];Mo(t,ws,e,Z(e)),gt(zp,t)}}function Rp(e,t,l){e==="focusin"?(Bo(),ks=t,ws=l,ks.attachEvent("onpropertychange",qo)):e==="focusout"&&Bo()}function Op(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mi(ws)}function Dp(e,t){if(e==="click")return Mi(t)}function Cp(e,t){if(e==="input"||e==="change")return Mi(t)}function Mp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yt=typeof Object.is=="function"?Object.is:Mp;function Es(e,t){if(Yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Dl.call(t,n)||!Yt(e[n],t[n]))return!1}return!0}function Yo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Go(e,t){var l=Yo(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=Yo(l)}}function Xo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $o(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wt(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=wt(e.document)}return t}function lu(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 Up=qt&&"documentMode"in document&&11>=document.documentMode,wn=null,au=null,As=null,nu=!1;function Qo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;nu||wn==null||wn!==wt(a)||(a=wn,"selectionStart"in a&&lu(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}),As&&Es(As,a)||(As=a,a=Nc(au,"onSelect"),0<a.length&&(t=new Di("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=wn)))}function Va(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var En={animationend:Va("Animation","AnimationEnd"),animationiteration:Va("Animation","AnimationIteration"),animationstart:Va("Animation","AnimationStart"),transitionrun:Va("Transition","TransitionRun"),transitionstart:Va("Transition","TransitionStart"),transitioncancel:Va("Transition","TransitionCancel"),transitionend:Va("Transition","TransitionEnd")},su={},Zo={};qt&&(Zo=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);function Ka(e){if(su[e])return su[e];if(!En[e])return e;var t=En[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Zo)return su[e]=t[l];return e}var Vo=Ka("animationend"),Ko=Ka("animationiteration"),Jo=Ka("animationstart"),Lp=Ka("transitionrun"),Hp=Ka("transitionstart"),Bp=Ka("transitioncancel"),Wo=Ka("transitionend"),Io=new Map,iu="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(" ");iu.push("scrollEnd");function gl(e,t){Io.set(e,t),kl(t,[e])}var Ui=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)},al=[],An=0,cu=0;function Li(){for(var e=An,t=cu=An=0;t<e;){var l=al[t];al[t++]=null;var a=al[t];al[t++]=null;var n=al[t];al[t++]=null;var i=al[t];if(al[t++]=null,a!==null&&n!==null){var f=a.pending;f===null?n.next=n:(n.next=f.next,f.next=n),a.pending=n}i!==0&&Fo(l,n,i)}}function Hi(e,t,l,a){al[An++]=e,al[An++]=t,al[An++]=l,al[An++]=a,cu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function uu(e,t,l,a){return Hi(e,t,l,a),Bi(e)}function Ja(e,t){return Hi(e,null,null,t),Bi(e)}function Fo(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-jt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function Bi(e){if(50<Ws)throw Ws=0,vr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _n={};function qp(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 Gt(e,t,l,a){return new qp(e,t,l,a)}function ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ql(e,t){var l=e.alternate;return l===null?(l=Gt(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 Po(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 qi(e,t,l,a,n,i){var f=0;if(a=e,typeof e=="function")ru(e)&&(f=1);else if(typeof e=="string")f=Qg(e,l,Y.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Be:return e=Gt(31,l,t,n),e.elementType=Be,e.lanes=i,e;case J:return Wa(l.children,n,i,t);case W:f=8,n|=24;break;case R:return e=Gt(12,l,t,n|2),e.elementType=R,e.lanes=i,e;case ie:return e=Gt(13,l,t,n),e.elementType=ie,e.lanes=i,e;case G:return e=Gt(19,l,t,n),e.elementType=G,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case P:f=10;break e;case we:f=9;break e;case ne:f=11;break e;case F:f=14;break e;case He:f=16,a=null;break e}f=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=Gt(f,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Wa(e,t,l,a){return e=Gt(7,e,a,t),e.lanes=l,e}function ou(e,t,l){return e=Gt(6,e,null,t),e.lanes=l,e}function ef(e){var t=Gt(18,null,null,0);return t.stateNode=e,t}function fu(e,t,l){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var tf=new WeakMap;function nl(e,t){if(typeof e=="object"&&e!==null){var l=tf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ht(t)},tf.set(e,t),t)}return{value:e,source:t,stack:Ht(t)}}var zn=[],Rn=0,Yi=null,_s=0,sl=[],il=0,da=null,El=1,Al="";function Yl(e,t){zn[Rn++]=_s,zn[Rn++]=Yi,Yi=e,_s=t}function lf(e,t,l){sl[il++]=El,sl[il++]=Al,sl[il++]=da,da=e;var a=El;e=Al;var n=32-jt(a)-1;a&=~(1<<n),l+=1;var i=32-jt(t)+n;if(30<i){var f=n-n%5;i=(a&(1<<f)-1).toString(32),a>>=f,n-=f,El=1<<32-jt(t)+n|l<<n|a,Al=i+e}else El=1<<i|l<<n|a,Al=e}function du(e){e.return!==null&&(Yl(e,1),lf(e,1,0))}function hu(e){for(;e===Yi;)Yi=zn[--Rn],zn[Rn]=null,_s=zn[--Rn],zn[Rn]=null;for(;e===da;)da=sl[--il],sl[il]=null,Al=sl[--il],sl[il]=null,El=sl[--il],sl[il]=null}function af(e,t){sl[il++]=El,sl[il++]=Al,sl[il++]=da,El=t.id,Al=t.overflow,da=e}var vt=null,qe=null,ve=!1,ha=null,cl=!1,mu=Error(r(519));function ma(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zs(nl(t,e)),mu}function nf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[nt]=e,t[We]=a,l){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(l=0;l<Fs.length;l++)he(Fs[l],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),vs(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Ai(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||jh(t.textContent,l)?(a.popover!=null&&(he("beforetoggle",t),he("toggle",t)),a.onScroll!=null&&he("scroll",t),a.onScrollEnd!=null&&he("scrollend",t),a.onClick!=null&&(t.onclick=N),t=!0):t=!1,t||ma(e,!0)}function sf(e){for(vt=e.return;vt;)switch(vt.tag){case 5:case 31:case 13:cl=!1;return;case 27:case 3:cl=!0;return;default:vt=vt.return}}function On(e){if(e!==vt)return!1;if(!ve)return sf(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Or(e.type,e.memoizedProps)),l=!l),l&&qe&&ma(e),sf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));qe=Rh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));qe=Rh(e)}else t===27?(t=qe,Aa(e.type)?(e=Lr,Lr=null,qe=e):qe=t):qe=vt?rl(e.stateNode.nextSibling):null;return!0}function Ia(){qe=vt=null,ve=!1}function pu(){var e=ha;return e!==null&&(Ct===null?Ct=e:Ct.push.apply(Ct,e),ha=null),e}function zs(e){ha===null?ha=[e]:ha.push(e)}var gu=j(null),Fa=null,Gl=null;function pa(e,t,l){Q(gu,t._currentValue),t._currentValue=l}function Xl(e){e._currentValue=gu.current,L(gu)}function vu(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 yu(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var f=n.child;i=i.firstContext;e:for(;i!==null;){var m=i;i=n;for(var x=0;x<t.length;x++)if(m.context===t[x]){i.lanes|=l,m=i.alternate,m!==null&&(m.lanes|=l),vu(i.return,l,e),a||(f=null);break e}i=m.next}}else if(n.tag===18){if(f=n.return,f===null)throw Error(r(341));f.lanes|=l,i=f.alternate,i!==null&&(i.lanes|=l),vu(f,l,e),f=null}else f=n.child;if(f!==null)f.return=n;else for(f=n;f!==null;){if(f===e){f=null;break}if(n=f.sibling,n!==null){n.return=f.return,f=n;break}f=f.return}n=f}}function Dn(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var f=n.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var m=n.type;Yt(n.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(n===Se.current){if(f=n.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(ai):e=[ai])}n=n.return}e!==null&&yu(t,e,l,a),t.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!Yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pa(e){Fa=e,Gl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return cf(Fa,e)}function Xi(e,t){return Fa===null&&Pa(e),cf(e,t)}function cf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Gl===null){if(e===null)throw Error(r(308));Gl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gl=Gl.next=t;return l}var Yp=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()})}},Gp=u.unstable_scheduleCallback,Xp=u.unstable_NormalPriority,Pe={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xu(){return{controller:new Yp,data:new Map,refCount:0}}function Rs(e){e.refCount--,e.refCount===0&&Gp(Xp,function(){e.controller.abort()})}var Os=null,bu=0,Cn=0,Mn=null;function $p(e,t){if(Os===null){var l=Os=[];bu=0,Cn=Nr(),Mn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return bu++,t.then(uf,uf),t}function uf(){if(--bu===0&&Os!==null){Mn!==null&&(Mn.status="fulfilled");var e=Os;Os=null,Cn=0,Mn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Qp(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var rf=C.S;C.S=function(e,t){Zd=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&$p(e,t),rf!==null&&rf(e,t)};var en=j(null);function Su(){var e=en.current;return e!==null?e:Le.pooledCache}function $i(e,t){t===null?Q(en,en.current):Q(en,t.pool)}function of(){var e=Su();return e===null?null:{parent:Pe._currentValue,pool:e}}var Un=Error(r(460)),ju=Error(r(474)),Qi=Error(r(542)),Zi={then:function(){}};function ff(e){return e=e.status,e==="fulfilled"||e==="rejected"}function df(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(N,N),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mf(e),e;default:if(typeof t.status=="string")t.then(N,N);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mf(e),e}throw ln=t,Un}}function tn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ln=l,Un):l}}var ln=null;function hf(){if(ln===null)throw Error(r(459));var e=ln;return ln=null,e}function mf(e){if(e===Un||e===Qi)throw Error(r(483))}var Ln=null,Ds=0;function Vi(e){var t=Ds;return Ds+=1,Ln===null&&(Ln=[]),df(Ln,e,t)}function Cs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ki(e,t){throw t.$$typeof===k?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function pf(e){function t(T,S){if(e){var w=T.deletions;w===null?(T.deletions=[S],T.flags|=16):w.push(S)}}function l(T,S){if(!e)return null;for(;S!==null;)t(T,S),S=S.sibling;return null}function a(T){for(var S=new Map;T!==null;)T.key!==null?S.set(T.key,T):S.set(T.index,T),T=T.sibling;return S}function n(T,S){return T=ql(T,S),T.index=0,T.sibling=null,T}function i(T,S,w){return T.index=w,e?(w=T.alternate,w!==null?(w=w.index,w<S?(T.flags|=67108866,S):w):(T.flags|=67108866,S)):(T.flags|=1048576,S)}function f(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function m(T,S,w,M){return S===null||S.tag!==6?(S=ou(w,T.mode,M),S.return=T,S):(S=n(S,w),S.return=T,S)}function x(T,S,w,M){var te=w.type;return te===J?D(T,S,w.props.children,M,w.key):S!==null&&(S.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===He&&tn(te)===S.type)?(S=n(S,w.props),Cs(S,w),S.return=T,S):(S=qi(w.type,w.key,w.props,null,T.mode,M),Cs(S,w),S.return=T,S)}function E(T,S,w,M){return S===null||S.tag!==4||S.stateNode.containerInfo!==w.containerInfo||S.stateNode.implementation!==w.implementation?(S=fu(w,T.mode,M),S.return=T,S):(S=n(S,w.children||[]),S.return=T,S)}function D(T,S,w,M,te){return S===null||S.tag!==7?(S=Wa(w,T.mode,M,te),S.return=T,S):(S=n(S,w),S.return=T,S)}function U(T,S,w){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=ou(""+S,T.mode,w),S.return=T,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ee:return w=qi(S.type,S.key,S.props,null,T.mode,w),Cs(w,S),w.return=T,w;case $:return S=fu(S,T.mode,w),S.return=T,S;case He:return S=tn(S),U(T,S,w)}if(ut(S)||dt(S))return S=Wa(S,T.mode,w,null),S.return=T,S;if(typeof S.then=="function")return U(T,Vi(S),w);if(S.$$typeof===P)return U(T,Xi(T,S),w);Ki(T,S)}return null}function A(T,S,w,M){var te=S!==null?S.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return te!==null?null:m(T,S,""+w,M);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ee:return w.key===te?x(T,S,w,M):null;case $:return w.key===te?E(T,S,w,M):null;case He:return w=tn(w),A(T,S,w,M)}if(ut(w)||dt(w))return te!==null?null:D(T,S,w,M,null);if(typeof w.then=="function")return A(T,S,Vi(w),M);if(w.$$typeof===P)return A(T,S,Xi(T,w),M);Ki(T,w)}return null}function _(T,S,w,M,te){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return T=T.get(w)||null,m(S,T,""+M,te);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case ee:return T=T.get(M.key===null?w:M.key)||null,x(S,T,M,te);case $:return T=T.get(M.key===null?w:M.key)||null,E(S,T,M,te);case He:return M=tn(M),_(T,S,w,M,te)}if(ut(M)||dt(M))return T=T.get(w)||null,D(S,T,M,te,null);if(typeof M.then=="function")return _(T,S,w,Vi(M),te);if(M.$$typeof===P)return _(T,S,w,Xi(S,M),te);Ki(S,M)}return null}function K(T,S,w,M){for(var te=null,Ne=null,I=S,oe=S=0,ge=null;I!==null&&oe<w.length;oe++){I.index>oe?(ge=I,I=null):ge=I.sibling;var Te=A(T,I,w[oe],M);if(Te===null){I===null&&(I=ge);break}e&&I&&Te.alternate===null&&t(T,I),S=i(Te,S,oe),Ne===null?te=Te:Ne.sibling=Te,Ne=Te,I=ge}if(oe===w.length)return l(T,I),ve&&Yl(T,oe),te;if(I===null){for(;oe<w.length;oe++)I=U(T,w[oe],M),I!==null&&(S=i(I,S,oe),Ne===null?te=I:Ne.sibling=I,Ne=I);return ve&&Yl(T,oe),te}for(I=a(I);oe<w.length;oe++)ge=_(I,T,oe,w[oe],M),ge!==null&&(e&&ge.alternate!==null&&I.delete(ge.key===null?oe:ge.key),S=i(ge,S,oe),Ne===null?te=ge:Ne.sibling=ge,Ne=ge);return e&&I.forEach(function(Da){return t(T,Da)}),ve&&Yl(T,oe),te}function se(T,S,w,M){if(w==null)throw Error(r(151));for(var te=null,Ne=null,I=S,oe=S=0,ge=null,Te=w.next();I!==null&&!Te.done;oe++,Te=w.next()){I.index>oe?(ge=I,I=null):ge=I.sibling;var Da=A(T,I,Te.value,M);if(Da===null){I===null&&(I=ge);break}e&&I&&Da.alternate===null&&t(T,I),S=i(Da,S,oe),Ne===null?te=Da:Ne.sibling=Da,Ne=Da,I=ge}if(Te.done)return l(T,I),ve&&Yl(T,oe),te;if(I===null){for(;!Te.done;oe++,Te=w.next())Te=U(T,Te.value,M),Te!==null&&(S=i(Te,S,oe),Ne===null?te=Te:Ne.sibling=Te,Ne=Te);return ve&&Yl(T,oe),te}for(I=a(I);!Te.done;oe++,Te=w.next())Te=_(I,T,oe,Te.value,M),Te!==null&&(e&&Te.alternate!==null&&I.delete(Te.key===null?oe:Te.key),S=i(Te,S,oe),Ne===null?te=Te:Ne.sibling=Te,Ne=Te);return e&&I.forEach(function(lv){return t(T,lv)}),ve&&Yl(T,oe),te}function Me(T,S,w,M){if(typeof w=="object"&&w!==null&&w.type===J&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ee:e:{for(var te=w.key;S!==null;){if(S.key===te){if(te=w.type,te===J){if(S.tag===7){l(T,S.sibling),M=n(S,w.props.children),M.return=T,T=M;break e}}else if(S.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===He&&tn(te)===S.type){l(T,S.sibling),M=n(S,w.props),Cs(M,w),M.return=T,T=M;break e}l(T,S);break}else t(T,S);S=S.sibling}w.type===J?(M=Wa(w.props.children,T.mode,M,w.key),M.return=T,T=M):(M=qi(w.type,w.key,w.props,null,T.mode,M),Cs(M,w),M.return=T,T=M)}return f(T);case $:e:{for(te=w.key;S!==null;){if(S.key===te)if(S.tag===4&&S.stateNode.containerInfo===w.containerInfo&&S.stateNode.implementation===w.implementation){l(T,S.sibling),M=n(S,w.children||[]),M.return=T,T=M;break e}else{l(T,S);break}else t(T,S);S=S.sibling}M=fu(w,T.mode,M),M.return=T,T=M}return f(T);case He:return w=tn(w),Me(T,S,w,M)}if(ut(w))return K(T,S,w,M);if(dt(w)){if(te=dt(w),typeof te!="function")throw Error(r(150));return w=te.call(w),se(T,S,w,M)}if(typeof w.then=="function")return Me(T,S,Vi(w),M);if(w.$$typeof===P)return Me(T,S,Xi(T,w),M);Ki(T,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,S!==null&&S.tag===6?(l(T,S.sibling),M=n(S,w),M.return=T,T=M):(l(T,S),M=ou(w,T.mode,M),M.return=T,T=M),f(T)):l(T,S)}return function(T,S,w,M){try{Ds=0;var te=Me(T,S,w,M);return Ln=null,te}catch(I){if(I===Un||I===Qi)throw I;var Ne=Gt(29,I,null,T.mode);return Ne.lanes=M,Ne.return=T,Ne}}}var an=pf(!0),gf=pf(!1),ga=!1;function Nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tu(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 va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ya(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ee&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Bi(e),Fo(e,null,l),t}return Hi(e,a,t,l),Bi(e)}function Ms(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,vn(e,l)}}function ku(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=f:i=i.next=f,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var wu=!1;function Us(){if(wu){var e=Mn;if(e!==null)throw e}}function Ls(e,t,l,a){wu=!1;var n=e.updateQueue;ga=!1;var i=n.firstBaseUpdate,f=n.lastBaseUpdate,m=n.shared.pending;if(m!==null){n.shared.pending=null;var x=m,E=x.next;x.next=null,f===null?i=E:f.next=E,f=x;var D=e.alternate;D!==null&&(D=D.updateQueue,m=D.lastBaseUpdate,m!==f&&(m===null?D.firstBaseUpdate=E:m.next=E,D.lastBaseUpdate=x))}if(i!==null){var U=n.baseState;f=0,D=E=x=null,m=i;do{var A=m.lane&-536870913,_=A!==m.lane;if(_?(pe&A)===A:(a&A)===A){A!==0&&A===Cn&&(wu=!0),D!==null&&(D=D.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var K=e,se=m;A=t;var Me=l;switch(se.tag){case 1:if(K=se.payload,typeof K=="function"){U=K.call(Me,U,A);break e}U=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=se.payload,A=typeof K=="function"?K.call(Me,U,A):K,A==null)break e;U=O({},U,A);break e;case 2:ga=!0}}A=m.callback,A!==null&&(e.flags|=64,_&&(e.flags|=8192),_=n.callbacks,_===null?n.callbacks=[A]:_.push(A))}else _={lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},D===null?(E=D=_,x=U):D=D.next=_,f|=A;if(m=m.next,m===null){if(m=n.shared.pending,m===null)break;_=m,m=_.next,_.next=null,n.lastBaseUpdate=_,n.shared.pending=null}}while(!0);D===null&&(x=U),n.baseState=x,n.firstBaseUpdate=E,n.lastBaseUpdate=D,i===null&&(n.shared.lanes=0),Na|=f,e.lanes=f,e.memoizedState=U}}function vf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function yf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)vf(l[e],t)}var Hn=j(null),Ji=j(0);function xf(e,t){e=Fl,Q(Ji,e),Q(Hn,t),Fl=e|t.baseLanes}function Eu(){Q(Ji,Fl),Q(Hn,Hn.current)}function Au(){Fl=Ji.current,L(Hn),L(Ji)}var Xt=j(null),ul=null;function xa(e){var t=e.alternate;Q(Ke,Ke.current&1),Q(Xt,e),ul===null&&(t===null||Hn.current!==null||t.memoizedState!==null)&&(ul=e)}function _u(e){Q(Ke,Ke.current),Q(Xt,e),ul===null&&(ul=e)}function bf(e){e.tag===22?(Q(Ke,Ke.current),Q(Xt,e),ul===null&&(ul=e)):ba()}function ba(){Q(Ke,Ke.current),Q(Xt,Xt.current)}function $t(e){L(Xt),ul===e&&(ul=null),L(Ke)}var Ke=j(0);function Wi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Mr(l)||Ur(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 $l=0,re=null,De=null,et=null,Ii=!1,Bn=!1,nn=!1,Fi=0,Hs=0,qn=null,Zp=0;function Ze(){throw Error(r(321))}function zu(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Yt(e[l],t[l]))return!1;return!0}function Ru(e,t,l,a,n,i){return $l=i,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,C.H=e===null||e.memoizedState===null?ad:Zu,nn=!1,i=l(a,n),nn=!1,Bn&&(i=jf(t,l,a,n)),Sf(e),i}function Sf(e){C.H=Ys;var t=De!==null&&De.next!==null;if($l=0,et=De=re=null,Ii=!1,Hs=0,qn=null,t)throw Error(r(300));e===null||tt||(e=e.dependencies,e!==null&&Gi(e)&&(tt=!0))}function jf(e,t,l,a){re=e;var n=0;do{if(Bn&&(qn=null),Hs=0,Bn=!1,25<=n)throw Error(r(301));if(n+=1,et=De=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}C.H=nd,i=t(l,a)}while(Bn);return i}function Vp(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?Bs(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(re.flags|=1024),t}function Ou(){var e=Fi!==0;return Fi=0,e}function Du(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Cu(e){if(Ii){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ii=!1}$l=0,et=De=re=null,Bn=!1,Hs=Fi=0,qn=null}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?re.memoizedState=et=e:et=et.next=e,et}function Je(){if(De===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=et===null?re.memoizedState:et.next;if(t!==null)et=t,De=e;else{if(e===null)throw re.alternate===null?Error(r(467)):Error(r(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},et===null?re.memoizedState=et=e:et=et.next=e}return et}function Pi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bs(e){var t=Hs;return Hs+=1,qn===null&&(qn=[]),e=df(qn,e,t),t=re,(et===null?t.memoizedState:et.next)===null&&(t=t.alternate,C.H=t===null||t.memoizedState===null?ad:Zu),e}function ec(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bs(e);if(e.$$typeof===P)return yt(e)}throw Error(r(438,String(e)))}function Mu(e){var t=null,l=re.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=re.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Pi(),re.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]=At;return t.index++,l}function Ql(e,t){return typeof t=="function"?t(e):t}function tc(e){var t=Je();return Uu(t,De,e)}function Uu(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var f=n.next;n.next=i.next,i.next=f}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var m=f=null,x=null,E=t,D=!1;do{var U=E.lane&-536870913;if(U!==E.lane?(pe&U)===U:($l&U)===U){var A=E.revertLane;if(A===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),U===Cn&&(D=!0);else if(($l&A)===A){E=E.next,A===Cn&&(D=!0);continue}else U={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},x===null?(m=x=U,f=i):x=x.next=U,re.lanes|=A,Na|=A;U=E.action,nn&&l(i,U),i=E.hasEagerState?E.eagerState:l(i,U)}else A={lane:U,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},x===null?(m=x=A,f=i):x=x.next=A,re.lanes|=U,Na|=U;E=E.next}while(E!==null&&E!==t);if(x===null?f=i:x.next=m,!Yt(i,e.memoizedState)&&(tt=!0,D&&(l=Mn,l!==null)))throw l;e.memoizedState=i,e.baseState=f,e.baseQueue=x,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Lu(e){var t=Je(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var f=n=n.next;do i=e(i,f.action),f=f.next;while(f!==n);Yt(i,t.memoizedState)||(tt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Nf(e,t,l){var a=re,n=Je(),i=ve;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var f=!Yt((De||n).memoizedState,l);if(f&&(n.memoizedState=l,tt=!0),n=n.queue,qu(wf.bind(null,a,n,e),[e]),n.getSnapshot!==t||f||et!==null&&et.memoizedState.tag&1){if(a.flags|=2048,Yn(9,{destroy:void 0},kf.bind(null,a,n,l,t),null),Le===null)throw Error(r(349));i||($l&127)!==0||Tf(a,t,l)}return l}function Tf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=re.updateQueue,t===null?(t=Pi(),re.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function kf(e,t,l,a){t.value=l,t.getSnapshot=a,Ef(t)&&Af(e)}function wf(e,t,l){return l(function(){Ef(t)&&Af(e)})}function Ef(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Yt(e,l)}catch{return!0}}function Af(e){var t=Ja(e,2);t!==null&&Mt(t,e,2)}function Hu(e){var t=Et();if(typeof e=="function"){var l=e;if(e=l(),nn){Bt(!0);try{l()}finally{Bt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:e},t}function _f(e,t,l,a){return e.baseState=l,Uu(e,De,typeof a=="function"?a:Ql)}function Kp(e,t,l,a,n){if(nc(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};C.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,zf(t,i)):(i.next=l.next,t.pending=l.next=i)}}function zf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=C.T,f={};C.T=f;try{var m=l(n,a),x=C.S;x!==null&&x(f,m),Rf(e,t,m)}catch(E){Bu(e,t,E)}finally{i!==null&&f.types!==null&&(i.types=f.types),C.T=i}}else try{i=l(n,a),Rf(e,t,i)}catch(E){Bu(e,t,E)}}function Rf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Of(e,t,a)},function(a){return Bu(e,t,a)}):Of(e,t,l)}function Of(e,t,l){t.status="fulfilled",t.value=l,Df(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,zf(e,l)))}function Bu(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Df(t),t=t.next;while(t!==a)}e.action=null}function Df(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Cf(e,t){return t}function Mf(e,t){if(ve){var l=Le.formState;if(l!==null){e:{var a=re;if(ve){if(qe){t:{for(var n=qe,i=cl;n.nodeType!==8;){if(!i){n=null;break t}if(n=rl(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){qe=rl(n.nextSibling),a=n.data==="F!";break e}}ma(a)}a=!1}a&&(t=l[0])}}return l=Et(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cf,lastRenderedState:t},l.queue=a,l=ed.bind(null,re,a),a.dispatch=l,a=Hu(!1),i=Qu.bind(null,re,!1,a.queue),a=Et(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Kp.bind(null,re,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Uf(e){var t=Je();return Lf(t,De,e)}function Lf(e,t,l){if(t=Uu(e,t,Cf)[0],e=tc(Ql)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Bs(t)}catch(f){throw f===Un?Qi:f}else a=t;t=Je();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(re.flags|=2048,Yn(9,{destroy:void 0},Jp.bind(null,n,l),null)),[a,i,e]}function Jp(e,t){e.action=t}function Hf(e){var t=Je(),l=De;if(l!==null)return Lf(t,l,e);Je(),t=t.memoizedState,l=Je();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Yn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=re.updateQueue,t===null&&(t=Pi(),re.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 Bf(){return Je().memoizedState}function lc(e,t,l,a){var n=Et();re.flags|=e,n.memoizedState=Yn(1|t,{destroy:void 0},l,a===void 0?null:a)}function ac(e,t,l,a){var n=Je();a=a===void 0?null:a;var i=n.memoizedState.inst;De!==null&&a!==null&&zu(a,De.memoizedState.deps)?n.memoizedState=Yn(t,i,l,a):(re.flags|=e,n.memoizedState=Yn(1|t,i,l,a))}function qf(e,t){lc(8390656,8,e,t)}function qu(e,t){ac(2048,8,e,t)}function Wp(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=Pi(),re.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Yf(e){var t=Je().memoizedState;return Wp({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Gf(e,t){return ac(4,2,e,t)}function Xf(e,t){return ac(4,4,e,t)}function $f(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 Qf(e,t,l){l=l!=null?l.concat([e]):null,ac(4,4,$f.bind(null,t,e),l)}function Yu(){}function Zf(e,t){var l=Je();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&zu(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Vf(e,t){var l=Je();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&zu(t,a[1]))return a[0];if(a=e(),nn){Bt(!0);try{e()}finally{Bt(!1)}}return l.memoizedState=[a,t],a}function Gu(e,t,l){return l===void 0||($l&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Kd(),re.lanes|=e,Na|=e,l)}function Kf(e,t,l,a){return Yt(l,t)?l:Hn.current!==null?(e=Gu(e,l,a),Yt(e,t)||(tt=!0),e):($l&42)===0||($l&1073741824)!==0&&(pe&261930)===0?(tt=!0,e.memoizedState=l):(e=Kd(),re.lanes|=e,Na|=e,t)}function Jf(e,t,l,a,n){var i=X.p;X.p=i!==0&&8>i?i:8;var f=C.T,m={};C.T=m,Qu(e,!1,t,l);try{var x=n(),E=C.S;if(E!==null&&E(m,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var D=Qp(x,a);qs(e,t,D,Vt(e))}else qs(e,t,a,Vt(e))}catch(U){qs(e,t,{then:function(){},status:"rejected",reason:U},Vt())}finally{X.p=i,f!==null&&m.types!==null&&(f.types=m.types),C.T=f}}function Ip(){}function Xu(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=Wf(e).queue;Jf(e,n,t,ae,l===null?Ip:function(){return If(e),l(a)})}function Wf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function If(e){var t=Wf(e);t.next===null&&(t=e.alternate.memoizedState),qs(e,t.next.queue,{},Vt())}function $u(){return yt(ai)}function Ff(){return Je().memoizedState}function Pf(){return Je().memoizedState}function Fp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Vt();e=va(l);var a=ya(t,e,l);a!==null&&(Mt(a,t,l),Ms(a,t,l)),t={cache:xu()},e.payload=t;return}t=t.return}}function Pp(e,t,l){var a=Vt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},nc(e)?td(t,l):(l=uu(e,t,l,a),l!==null&&(Mt(l,e,a),ld(l,t,a)))}function ed(e,t,l){var a=Vt();qs(e,t,l,a)}function qs(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(nc(e))td(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var f=t.lastRenderedState,m=i(f,l);if(n.hasEagerState=!0,n.eagerState=m,Yt(m,f))return Hi(e,t,n,0),Le===null&&Li(),!1}catch{}if(l=uu(e,t,n,a),l!==null)return Mt(l,e,a),ld(l,t,a),!0}return!1}function Qu(e,t,l,a){if(a={lane:2,revertLane:Nr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},nc(e)){if(t)throw Error(r(479))}else t=uu(e,l,a,2),t!==null&&Mt(t,e,2)}function nc(e){var t=e.alternate;return e===re||t!==null&&t===re}function td(e,t){Bn=Ii=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function ld(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,vn(e,l)}}var Ys={readContext:yt,use:ec,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze};Ys.useEffectEvent=Ze;var ad={readContext:yt,use:ec,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:qf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,lc(4194308,4,$f.bind(null,t,e),l)},useLayoutEffect:function(e,t){return lc(4194308,4,e,t)},useInsertionEffect:function(e,t){lc(4,2,e,t)},useMemo:function(e,t){var l=Et();t=t===void 0?null:t;var a=e();if(nn){Bt(!0);try{e()}finally{Bt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Et();if(l!==void 0){var n=l(t);if(nn){Bt(!0);try{l(t)}finally{Bt(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Pp.bind(null,re,e),[a.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=Hu(e);var t=e.queue,l=ed.bind(null,re,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Yu,useDeferredValue:function(e,t){var l=Et();return Gu(l,e,t)},useTransition:function(){var e=Hu(!1);return e=Jf.bind(null,re,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=re,n=Et();if(ve){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Le===null)throw Error(r(349));(pe&127)!==0||Tf(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,qf(wf.bind(null,a,i,e),[e]),a.flags|=2048,Yn(9,{destroy:void 0},kf.bind(null,a,i,l,t),null),l},useId:function(){var e=Et(),t=Le.identifierPrefix;if(ve){var l=Al,a=El;l=(a&~(1<<32-jt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Fi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Zp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:$u,useFormState:Mf,useActionState:Mf,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=Qu.bind(null,re,!0,l),l.dispatch=t,[e,t]},useMemoCache:Mu,useCacheRefresh:function(){return Et().memoizedState=Fp.bind(null,re)},useEffectEvent:function(e){var t=Et(),l={impl:e};return t.memoizedState=l,function(){if((Ee&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Zu={readContext:yt,use:ec,useCallback:Zf,useContext:yt,useEffect:qu,useImperativeHandle:Qf,useInsertionEffect:Gf,useLayoutEffect:Xf,useMemo:Vf,useReducer:tc,useRef:Bf,useState:function(){return tc(Ql)},useDebugValue:Yu,useDeferredValue:function(e,t){var l=Je();return Kf(l,De.memoizedState,e,t)},useTransition:function(){var e=tc(Ql)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Bs(e),t]},useSyncExternalStore:Nf,useId:Ff,useHostTransitionStatus:$u,useFormState:Uf,useActionState:Uf,useOptimistic:function(e,t){var l=Je();return _f(l,De,e,t)},useMemoCache:Mu,useCacheRefresh:Pf};Zu.useEffectEvent=Yf;var nd={readContext:yt,use:ec,useCallback:Zf,useContext:yt,useEffect:qu,useImperativeHandle:Qf,useInsertionEffect:Gf,useLayoutEffect:Xf,useMemo:Vf,useReducer:Lu,useRef:Bf,useState:function(){return Lu(Ql)},useDebugValue:Yu,useDeferredValue:function(e,t){var l=Je();return De===null?Gu(l,e,t):Kf(l,De.memoizedState,e,t)},useTransition:function(){var e=Lu(Ql)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Bs(e),t]},useSyncExternalStore:Nf,useId:Ff,useHostTransitionStatus:$u,useFormState:Hf,useActionState:Hf,useOptimistic:function(e,t){var l=Je();return De!==null?_f(l,De,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Mu,useCacheRefresh:Pf};nd.useEffectEvent=Yf;function Vu(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:O({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ku={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Vt(),n=va(a);n.payload=t,l!=null&&(n.callback=l),t=ya(e,n,a),t!==null&&(Mt(t,e,a),Ms(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Vt(),n=va(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=ya(e,n,a),t!==null&&(Mt(t,e,a),Ms(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Vt(),a=va(l);a.tag=2,t!=null&&(a.callback=t),t=ya(e,a,l),t!==null&&(Mt(t,e,l),Ms(t,e,l))}};function sd(e,t,l,a,n,i,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,f):t.prototype&&t.prototype.isPureReactComponent?!Es(l,a)||!Es(n,i):!0}function id(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&&Ku.enqueueReplaceState(t,t.state,null)}function sn(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=O({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function cd(e){Ui(e)}function ud(e){console.error(e)}function rd(e){Ui(e)}function sc(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function od(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Ju(e,t,l){return l=va(l),l.tag=3,l.payload={element:null},l.callback=function(){sc(e,t)},l}function fd(e){return e=va(e),e.tag=3,e}function dd(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){od(t,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){od(t,l,a),typeof n!="function"&&(Ta===null?Ta=new Set([this]):Ta.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function eg(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Dn(t,l,n,!0),l=Xt.current,l!==null){switch(l.tag){case 31:case 13:return ul===null?vc():l.alternate===null&&Ve===0&&(Ve=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Zi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),br(e,a,n)),!1;case 22:return l.flags|=65536,a===Zi?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)),br(e,a,n)),!1}throw Error(r(435,l.tag))}return br(e,a,n),vc(),!1}if(ve)return t=Xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==mu&&(e=Error(r(422),{cause:a}),zs(nl(e,l)))):(a!==mu&&(t=Error(r(423),{cause:a}),zs(nl(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=nl(a,l),n=Ju(e.stateNode,a,n),ku(e,n),Ve!==4&&(Ve=2)),!1;var i=Error(r(520),{cause:a});if(i=nl(i,l),Js===null?Js=[i]:Js.push(i),Ve!==4&&(Ve=2),t===null)return!0;a=nl(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Ju(l.stateNode,a,e),ku(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ta===null||!Ta.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=fd(n),dd(n,e,l,a),ku(l,n),!1}l=l.return}while(l!==null);return!1}var Wu=Error(r(461)),tt=!1;function xt(e,t,l,a){t.child=e===null?gf(t,null,l,a):an(t,e.child,l,a)}function hd(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var f={};for(var m in a)m!=="ref"&&(f[m]=a[m])}else f=a;return Pa(t),a=Ru(e,t,l,f,i,n),m=Ou(),e!==null&&!tt?(Du(e,t,n),Zl(e,t,n)):(ve&&m&&du(t),t.flags|=1,xt(e,t,a,n),t.child)}function md(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!ru(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,pd(e,t,i,a,n)):(e=qi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!nr(e,n)){var f=i.memoizedProps;if(l=l.compare,l=l!==null?l:Es,l(f,a)&&e.ref===t.ref)return Zl(e,t,n)}return t.flags|=1,e=ql(i,a),e.ref=t.ref,e.return=t,t.child=e}function pd(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(Es(i,a)&&e.ref===t.ref)if(tt=!1,t.pendingProps=a=i,nr(e,n))(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,Zl(e,t,n)}return Iu(e,t,l,a,n)}function gd(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return vd(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&$i(t,i!==null?i.cachePool:null),i!==null?xf(t,i):Eu(),bf(t);else return a=t.lanes=536870912,vd(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?($i(t,i.cachePool),xf(t,i),ba(),t.memoizedState=null):(e!==null&&$i(t,null),Eu(),ba());return xt(e,t,n,l),t.child}function Gs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function vd(e,t,l,a,n){var i=Su();return i=i===null?null:{parent:Pe._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&$i(t,null),Eu(),bf(t),e!==null&&Dn(e,t,a,!0),t.childLanes=n,null}function ic(e,t){return t=uc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yd(e,t,l){return an(t,e.child,null,l),e=ic(t,t.pendingProps),e.flags|=2,$t(t),t.memoizedState=null,e}function tg(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=ic(t,a),t.lanes=536870912,Gs(null,e);if(_u(t),(e=qe)?(e=zh(e,cl),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:da!==null?{id:El,overflow:Al}:null,retryLane:536870912,hydrationErrors:null},l=ef(e),l.return=t,t.child=l,vt=t,qe=null)):e=null,e===null)throw ma(t);return t.lanes=536870912,null}return ic(t,a)}var i=e.memoizedState;if(i!==null){var f=i.dehydrated;if(_u(t),n)if(t.flags&256)t.flags&=-257,t=yd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(tt||Dn(e,t,l,!1),n=(l&e.childLanes)!==0,tt||n){if(a=Le,a!==null&&(f=yn(a,l),f!==0&&f!==i.retryLane))throw i.retryLane=f,Ja(e,f),Mt(a,e,f),Wu;vc(),t=yd(e,t,l)}else e=i.treeContext,qe=rl(f.nextSibling),vt=t,ve=!0,ha=null,cl=!1,e!==null&&af(t,e),t=ic(t,a),t.flags|=4096;return t}return e=ql(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(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 Iu(e,t,l,a,n){return Pa(t),l=Ru(e,t,l,a,void 0,n),a=Ou(),e!==null&&!tt?(Du(e,t,n),Zl(e,t,n)):(ve&&a&&du(t),t.flags|=1,xt(e,t,l,n),t.child)}function xd(e,t,l,a,n,i){return Pa(t),t.updateQueue=null,l=jf(t,a,l,n),Sf(e),a=Ou(),e!==null&&!tt?(Du(e,t,i),Zl(e,t,i)):(ve&&a&&du(t),t.flags|=1,xt(e,t,l,i),t.child)}function bd(e,t,l,a,n){if(Pa(t),t.stateNode===null){var i=_n,f=l.contextType;typeof f=="object"&&f!==null&&(i=yt(f)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Ku,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Nu(t),f=l.contextType,i.context=typeof f=="object"&&f!==null?yt(f):_n,i.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Vu(t,l,f,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(f=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),f!==i.state&&Ku.enqueueReplaceState(i,i.state,null),Ls(t,a,i,n),Us(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var m=t.memoizedProps,x=sn(l,m);i.props=x;var E=i.context,D=l.contextType;f=_n,typeof D=="object"&&D!==null&&(f=yt(D));var U=l.getDerivedStateFromProps;D=typeof U=="function"||typeof i.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,D||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(m||E!==f)&&id(t,i,a,f),ga=!1;var A=t.memoizedState;i.state=A,Ls(t,a,i,n),Us(),E=t.memoizedState,m||A!==E||ga?(typeof U=="function"&&(Vu(t,l,U,a),E=t.memoizedState),(x=ga||sd(t,l,x,a,A,E,f))?(D||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=E),i.props=a,i.state=E,i.context=f,a=x):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Tu(e,t),f=t.memoizedProps,D=sn(l,f),i.props=D,U=t.pendingProps,A=i.context,E=l.contextType,x=_n,typeof E=="object"&&E!==null&&(x=yt(E)),m=l.getDerivedStateFromProps,(E=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==U||A!==x)&&id(t,i,a,x),ga=!1,A=t.memoizedState,i.state=A,Ls(t,a,i,n),Us();var _=t.memoizedState;f!==U||A!==_||ga||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof m=="function"&&(Vu(t,l,m,a),_=t.memoizedState),(D=ga||sd(t,l,D,a,A,_,x)||e!==null&&e.dependencies!==null&&Gi(e.dependencies))?(E||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,_,x),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,_,x)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),i.props=a,i.state=_,i.context=x,a=D):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,cc(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=an(t,e.child,null,n),t.child=an(t,null,l,n)):xt(e,t,l,n),t.memoizedState=i.state,e=t.child):e=Zl(e,t,n),e}function Sd(e,t,l,a){return Ia(),t.flags|=256,xt(e,t,l,a),t.child}var Fu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pu(e){return{baseLanes:e,cachePool:of()}}function er(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Zt),e}function jd(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,f;if((f=i)||(f=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),f&&(n=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?xa(t):ba(),(e=qe)?(e=zh(e,cl),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:da!==null?{id:El,overflow:Al}:null,retryLane:536870912,hydrationErrors:null},l=ef(e),l.return=t,t.child=l,vt=t,qe=null)):e=null,e===null)throw ma(t);return Ur(e)?t.lanes=32:t.lanes=536870912,null}var m=a.children;return a=a.fallback,n?(ba(),n=t.mode,m=uc({mode:"hidden",children:m},n),a=Wa(a,n,l,null),m.return=t,a.return=t,m.sibling=a,t.child=m,a=t.child,a.memoizedState=Pu(l),a.childLanes=er(e,f,l),t.memoizedState=Fu,Gs(null,a)):(xa(t),tr(t,m))}var x=e.memoizedState;if(x!==null&&(m=x.dehydrated,m!==null)){if(i)t.flags&256?(xa(t),t.flags&=-257,t=lr(e,t,l)):t.memoizedState!==null?(ba(),t.child=e.child,t.flags|=128,t=null):(ba(),m=a.fallback,n=t.mode,a=uc({mode:"visible",children:a.children},n),m=Wa(m,n,l,null),m.flags|=2,a.return=t,m.return=t,a.sibling=m,t.child=a,an(t,e.child,null,l),a=t.child,a.memoizedState=Pu(l),a.childLanes=er(e,f,l),t.memoizedState=Fu,t=Gs(null,a));else if(xa(t),Ur(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var E=f.dgst;f=E,a=Error(r(419)),a.stack="",a.digest=f,zs({value:a,source:null,stack:null}),t=lr(e,t,l)}else if(tt||Dn(e,t,l,!1),f=(l&e.childLanes)!==0,tt||f){if(f=Le,f!==null&&(a=yn(f,l),a!==0&&a!==x.retryLane))throw x.retryLane=a,Ja(e,a),Mt(f,e,a),Wu;Mr(m)||vc(),t=lr(e,t,l)}else Mr(m)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,qe=rl(m.nextSibling),vt=t,ve=!0,ha=null,cl=!1,e!==null&&af(t,e),t=tr(t,a.children),t.flags|=4096);return t}return n?(ba(),m=a.fallback,n=t.mode,x=e.child,E=x.sibling,a=ql(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,E!==null?m=ql(E,m):(m=Wa(m,n,l,null),m.flags|=2),m.return=t,a.return=t,a.sibling=m,t.child=a,Gs(null,a),a=t.child,m=e.child.memoizedState,m===null?m=Pu(l):(n=m.cachePool,n!==null?(x=Pe._currentValue,n=n.parent!==x?{parent:x,pool:x}:n):n=of(),m={baseLanes:m.baseLanes|l,cachePool:n}),a.memoizedState=m,a.childLanes=er(e,f,l),t.memoizedState=Fu,Gs(e.child,a)):(xa(t),l=e.child,e=l.sibling,l=ql(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function tr(e,t){return t=uc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function uc(e,t){return e=Gt(22,e,null,t),e.lanes=0,e}function lr(e,t,l){return an(t,e.child,null,l),e=tr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),vu(e.return,t,l)}function ar(e,t,l,a,n,i){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=n,f.treeForkCount=i)}function Td(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var f=Ke.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,Q(Ke,f),xt(e,t,a,l),a=ve?_s:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nd(e,l,t);else if(e.tag===19)Nd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Wi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),ar(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Wi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}ar(t,!0,l,null,i,a);break;case"together":ar(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Zl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Na|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Dn(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=ql(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ql(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function nr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Gi(e)))}function lg(e,t,l){switch(t.tag){case 3:ht(t,t.stateNode.containerInfo),pa(t,Pe,e.memoizedState.cache),Ia();break;case 27:case 5:La(t);break;case 4:ht(t,t.stateNode.containerInfo);break;case 10:pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,_u(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(xa(t),t.flags|=128,null):(l&t.child.childLanes)!==0?jd(e,t,l):(xa(t),e=Zl(e,t,l),e!==null?e.sibling:null);xa(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Dn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Td(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Q(Ke,Ke.current),a)break;return null;case 22:return t.lanes=0,gd(e,t,l,t.pendingProps);case 24:pa(t,Pe,e.memoizedState.cache)}return Zl(e,t,l)}function kd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)tt=!0;else{if(!nr(e,l)&&(t.flags&128)===0)return tt=!1,lg(e,t,l);tt=(e.flags&131072)!==0}else tt=!1,ve&&(t.flags&1048576)!==0&&lf(t,_s,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=tn(t.elementType),t.type=e,typeof e=="function")ru(e)?(a=sn(e,a),t.tag=1,t=bd(null,t,e,a,l)):(t.tag=0,t=Iu(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===ne){t.tag=11,t=hd(null,t,e,a,l);break e}else if(n===F){t.tag=14,t=md(null,t,e,a,l);break e}}throw t=Wt(e)||e,Error(r(306,t,""))}}return t;case 0:return Iu(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=sn(a,t.pendingProps),bd(e,t,a,n,l);case 3:e:{if(ht(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Tu(e,t),Ls(t,a,null,l);var f=t.memoizedState;if(a=f.cache,pa(t,Pe,a),a!==i.cache&&yu(t,[Pe],l,!0),Us(),a=f.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Sd(e,t,a,l);break e}else if(a!==n){n=nl(Error(r(424)),t),zs(n),t=Sd(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,qe=rl(e.firstChild),vt=t,ve=!0,ha=null,cl=!0,l=gf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ia(),a===n){t=Zl(e,t,l);break e}xt(e,t,a,l)}t=t.child}return t;case 26:return cc(e,t),e===null?(l=Uh(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=Tc(fe.current).createElement(l),a[nt]=t,a[We]=e,bt(a,l,e),Ie(a),t.stateNode=a):t.memoizedState=Uh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return La(t),e===null&&ve&&(a=t.stateNode=Dh(t.type,t.pendingProps,fe.current),vt=t,cl=!0,n=qe,Aa(t.type)?(Lr=n,qe=rl(a.firstChild)):qe=n),xt(e,t,t.pendingProps.children,l),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=a=qe)&&(a=Og(a,t.type,t.pendingProps,cl),a!==null?(t.stateNode=a,vt=t,qe=rl(a.firstChild),cl=!1,n=!0):n=!1),n||ma(t)),La(t),n=t.type,i=t.pendingProps,f=e!==null?e.memoizedProps:null,a=i.children,Or(n,i)?a=null:f!==null&&Or(n,f)&&(t.flags|=32),t.memoizedState!==null&&(n=Ru(e,t,Vp,null,null,l),ai._currentValue=n),cc(e,t),xt(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=qe)&&(l=Dg(l,t.pendingProps,cl),l!==null?(t.stateNode=l,vt=t,qe=null,e=!0):e=!1),e||ma(t)),null;case 13:return jd(e,t,l);case 4:return ht(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=an(t,null,a,l):xt(e,t,a,l),t.child;case 11:return hd(e,t,t.type,t.pendingProps,l);case 7:return xt(e,t,t.pendingProps,l),t.child;case 8:return xt(e,t,t.pendingProps.children,l),t.child;case 12:return xt(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,pa(t,t.type,a.value),xt(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Pa(t),n=yt(n),a=a(n),t.flags|=1,xt(e,t,a,l),t.child;case 14:return md(e,t,t.type,t.pendingProps,l);case 15:return pd(e,t,t.type,t.pendingProps,l);case 19:return Td(e,t,l);case 31:return tg(e,t,l);case 22:return gd(e,t,l,t.pendingProps);case 24:return Pa(t),a=yt(Pe),e===null?(n=Su(),n===null&&(n=Le,i=xu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Nu(t),pa(t,Pe,n)):((e.lanes&l)!==0&&(Tu(e,t),Ls(t,null,null,l),Us()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),pa(t,Pe,a)):(a=i.cache,pa(t,Pe,a),a!==n.cache&&yu(t,[Pe],l,!0))),xt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Vl(e){e.flags|=4}function sr(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Fd())e.flags|=8192;else throw ln=Zi,ju}else e.flags&=-16777217}function wd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Yh(t))if(Fd())e.flags|=8192;else throw ln=Zi,ju}function rc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ds():536870912,e.lanes|=t,Qn|=t)}function Xs(e,t){if(!ve)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 Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function ag(e,t,l){var a=t.pendingProps;switch(hu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Xl(Pe),$e(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(On(t)?Vl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,pu())),Ye(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(Vl(t),i!==null?(Ye(t),wd(t,i)):(Ye(t),sr(t,n,null,a,l))):i?i!==e.memoizedState?(Vl(t),Ye(t),wd(t,i)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Vl(t),Ye(t),sr(t,n,e,a,l)),null;case 27:if(Ha(t),l=fe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Vl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ye(t),null}e=Y.current,On(t)?nf(t):(e=Dh(n,a,l),t.stateNode=e,Vl(t))}return Ye(t),null;case 5:if(Ha(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Vl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ye(t),null}if(i=Y.current,On(t))nf(t);else{var f=Tc(fe.current);switch(i){case 1:i=f.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=f.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=f.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?f.createElement(n,{is:a.is}):f.createElement(n)}}i[nt]=t,i[We]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=i;e:switch(bt(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Vl(t)}}return Ye(t),sr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Vl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=fe.current,On(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=vt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[nt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||jh(e.nodeValue,l)),e||ma(t,!0)}else e=Tc(e).createTextNode(a),e[nt]=t,t.stateNode=e}return Ye(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=On(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[nt]=t}else Ia(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else l=pu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?($t(t),t):($t(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ye(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=On(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[nt]=t}else Ia(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),n=!1}else n=pu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?($t(t),t):($t(t),null)}return $t(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),rc(t,t.updateQueue),Ye(t),null);case 4:return $e(),e===null&&Er(t.stateNode.containerInfo),Ye(t),null;case 10:return Xl(t.type),Ye(t),null;case 19:if(L(Ke),a=t.memoizedState,a===null)return Ye(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)Xs(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Wi(e),i!==null){for(t.flags|=128,Xs(a,!1),e=i.updateQueue,t.updateQueue=e,rc(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Po(l,e),l=l.sibling;return Q(Ke,Ke.current&1|2),ve&&Yl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&St()>mc&&(t.flags|=128,n=!0,Xs(a,!1),t.lanes=4194304)}else{if(!n)if(e=Wi(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,rc(t,e),Xs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ve)return Ye(t),null}else 2*St()-a.renderingStartTime>mc&&l!==536870912&&(t.flags|=128,n=!0,Xs(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=St(),e.sibling=null,l=Ke.current,Q(Ke,n?l&1|2:l&1),ve&&Yl(t,a.treeForkCount),e):(Ye(t),null);case 22:case 23:return $t(t),Au(),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&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),l=t.updateQueue,l!==null&&rc(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&&L(en),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Xl(Pe),Ye(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function ng(e,t){switch(hu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xl(Pe),$e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ha(t),null;case 31:if(t.memoizedState!==null){if($t(t),t.alternate===null)throw Error(r(340));Ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Ke),null;case 4:return $e(),null;case 10:return Xl(t.type),null;case 22:case 23:return $t(t),Au(),e!==null&&L(en),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xl(Pe),null;case 25:return null;default:return null}}function Ed(e,t){switch(hu(t),t.tag){case 3:Xl(Pe),$e();break;case 26:case 27:case 5:Ha(t);break;case 4:$e();break;case 31:t.memoizedState!==null&&$t(t);break;case 13:$t(t);break;case 19:L(Ke);break;case 10:Xl(t.type);break;case 22:case 23:$t(t),Au(),e!==null&&L(en);break;case 24:Xl(Pe)}}function $s(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,f=l.inst;a=i(),f.destroy=a}l=l.next}while(l!==n)}}catch(m){Re(t,t.return,m)}}function Sa(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var f=a.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,n=t;var x=l,E=m;try{E()}catch(D){Re(n,x,D)}}}a=a.next}while(a!==i)}}catch(D){Re(t,t.return,D)}}function Ad(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{yf(t,l)}catch(a){Re(e,e.return,a)}}}function _d(e,t,l){l.props=sn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Re(e,t,a)}}function Qs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Re(e,t,n)}}function _l(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Re(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Re(e,t,n)}else l.current=null}function zd(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Re(e,e.return,n)}}function ir(e,t,l){try{var a=e.stateNode;wg(a,e.type,l,t),a[We]=t}catch(n){Re(e,e.return,n)}}function Rd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Aa(e.type)||e.tag===4}function cr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rd(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&&Aa(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 ur(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=N));else if(a!==4&&(a===27&&Aa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(ur(e,t,l),e=e.sibling;e!==null;)ur(e,t,l),e=e.sibling}function oc(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&&Aa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(oc(e,t,l),e=e.sibling;e!==null;)oc(e,t,l),e=e.sibling}function Od(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);bt(t,a,l),t[nt]=e,t[We]=l}catch(i){Re(e,e.return,i)}}var Kl=!1,lt=!1,rr=!1,Dd=typeof WeakSet=="function"?WeakSet:Set,ot=null;function sg(e,t){if(e=e.containerInfo,zr=Rc,e=$o(e),lu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var f=0,m=-1,x=-1,E=0,D=0,U=e,A=null;t:for(;;){for(var _;U!==l||n!==0&&U.nodeType!==3||(m=f+n),U!==i||a!==0&&U.nodeType!==3||(x=f+a),U.nodeType===3&&(f+=U.nodeValue.length),(_=U.firstChild)!==null;)A=U,U=_;for(;;){if(U===e)break t;if(A===l&&++E===n&&(m=f),A===i&&++D===a&&(x=f),(_=U.nextSibling)!==null)break;U=A,A=U.parentNode}U=_}l=m===-1||x===-1?null:{start:m,end:x}}else l=null}l=l||{start:0,end:0}}else l=null;for(Rr={focusedElem:e,selectionRange:l},Rc=!1,ot=t;ot!==null;)if(t=ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ot=e;else for(;ot!==null;){switch(t=ot,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var K=sn(l.type,n);e=a.getSnapshotBeforeUpdate(K,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(se){Re(l,l.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Cr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Cr(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,ot=e;break}ot=t.return}}function Cd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Wl(e,l),a&4&&$s(5,l);break;case 1:if(Wl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){Re(l,l.return,f)}else{var n=sn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Re(l,l.return,f)}}a&64&&Ad(l),a&512&&Qs(l,l.return);break;case 3:if(Wl(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{yf(e,t)}catch(f){Re(l,l.return,f)}}break;case 27:t===null&&a&4&&Od(l);case 26:case 5:Wl(e,l),t===null&&a&4&&zd(l),a&512&&Qs(l,l.return);break;case 12:Wl(e,l);break;case 31:Wl(e,l),a&4&&Ld(e,l);break;case 13:Wl(e,l),a&4&&Hd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=mg.bind(null,l),Cg(e,l))));break;case 22:if(a=l.memoizedState!==null||Kl,!a){t=t!==null&&t.memoizedState!==null||lt,n=Kl;var i=lt;Kl=a,(lt=t)&&!i?Il(e,l,(l.subtreeFlags&8772)!==0):Wl(e,l),Kl=n,lt=i}break;case 30:break;default:Wl(e,l)}}function Md(e){var t=e.alternate;t!==null&&(e.alternate=null,Md(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ga(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 Ge=null,Rt=!1;function Jl(e,t,l){for(l=l.child;l!==null;)Ud(e,t,l),l=l.sibling}function Ud(e,t,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Pt,l)}catch{}switch(l.tag){case 26:lt||_l(l,t),Jl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:lt||_l(l,t);var a=Ge,n=Rt;Aa(l.type)&&(Ge=l.stateNode,Rt=!1),Jl(e,t,l),ei(l.stateNode),Ge=a,Rt=n;break;case 5:lt||_l(l,t);case 6:if(a=Ge,n=Rt,Ge=null,Jl(e,t,l),Ge=a,Rt=n,Ge!==null)if(Rt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(l.stateNode)}catch(i){Re(l,t,i)}else try{Ge.removeChild(l.stateNode)}catch(i){Re(l,t,i)}break;case 18:Ge!==null&&(Rt?(e=Ge,Ah(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Pn(e)):Ah(Ge,l.stateNode));break;case 4:a=Ge,n=Rt,Ge=l.stateNode.containerInfo,Rt=!0,Jl(e,t,l),Ge=a,Rt=n;break;case 0:case 11:case 14:case 15:Sa(2,l,t),lt||Sa(4,l,t),Jl(e,t,l);break;case 1:lt||(_l(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&_d(l,t,a)),Jl(e,t,l);break;case 21:Jl(e,t,l);break;case 22:lt=(a=lt)||l.memoizedState!==null,Jl(e,t,l),lt=a;break;default:Jl(e,t,l)}}function Ld(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pn(e)}catch(l){Re(t,t.return,l)}}}function Hd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pn(e)}catch(l){Re(t,t.return,l)}}function ig(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dd),t;default:throw Error(r(435,e.tag))}}function fc(e,t){var l=ig(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=pg.bind(null,e,a);a.then(n,n)}})}function Ot(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,f=t,m=f;e:for(;m!==null;){switch(m.tag){case 27:if(Aa(m.type)){Ge=m.stateNode,Rt=!1;break e}break;case 5:Ge=m.stateNode,Rt=!1;break e;case 3:case 4:Ge=m.stateNode.containerInfo,Rt=!0;break e}m=m.return}if(Ge===null)throw Error(r(160));Ud(i,f,n),Ge=null,Rt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Bd(t,e),t=t.sibling}var vl=null;function Bd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(t,e),Dt(e),a&4&&(Sa(3,e,e.return),$s(3,e),Sa(5,e,e.return));break;case 1:Ot(t,e),Dt(e),a&512&&(lt||l===null||_l(l,l.return)),a&64&&Kl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=vl;if(Ot(t,e),Dt(e),a&512&&(lt||l===null||_l(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[ca]||i[nt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),bt(i,a,l),i[nt]=e,Ie(i),a=i;break e;case"link":var f=Bh("link","href",n).get(a+(l.href||""));if(f){for(var m=0;m<f.length;m++)if(i=f[m],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(m,1);break t}}i=n.createElement(a),bt(i,a,l),n.head.appendChild(i);break;case"meta":if(f=Bh("meta","content",n).get(a+(l.content||""))){for(m=0;m<f.length;m++)if(i=f[m],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(m,1);break t}}i=n.createElement(a),bt(i,a,l),n.head.appendChild(i);break;default:throw Error(r(468,a))}i[nt]=e,Ie(i),a=i}e.stateNode=a}else qh(n,e.type,e.stateNode);else e.stateNode=Hh(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?qh(n,e.type,e.stateNode):Hh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&ir(e,e.memoizedProps,l.memoizedProps)}break;case 27:Ot(t,e),Dt(e),a&512&&(lt||l===null||_l(l,l.return)),l!==null&&a&4&&ir(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Ot(t,e),Dt(e),a&512&&(lt||l===null||_l(l,l.return)),e.flags&32){n=e.stateNode;try{Bl(n,"")}catch(K){Re(e,e.return,K)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,ir(e,n,l!==null?l.memoizedProps:n)),a&1024&&(rr=!0);break;case 6:if(Ot(t,e),Dt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(K){Re(e,e.return,K)}}break;case 3:if(Ec=null,n=vl,vl=kc(t.containerInfo),Ot(t,e),vl=n,Dt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Pn(t.containerInfo)}catch(K){Re(e,e.return,K)}rr&&(rr=!1,qd(e));break;case 4:a=vl,vl=kc(e.stateNode.containerInfo),Ot(t,e),Dt(e),vl=a;break;case 12:Ot(t,e),Dt(e);break;case 31:Ot(t,e),Dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,fc(e,a)));break;case 13:Ot(t,e),Dt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(hc=St()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,fc(e,a)));break;case 22:n=e.memoizedState!==null;var x=l!==null&&l.memoizedState!==null,E=Kl,D=lt;if(Kl=E||n,lt=D||x,Ot(t,e),lt=D,Kl=E,Dt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||x||Kl||lt||cn(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){x=l=t;try{if(i=x.stateNode,n)f=i.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=x.stateNode;var U=x.memoizedProps.style,A=U!=null&&U.hasOwnProperty("display")?U.display:null;m.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(K){Re(x,x.return,K)}}}else if(t.tag===6){if(l===null){x=t;try{x.stateNode.nodeValue=n?"":x.memoizedProps}catch(K){Re(x,x.return,K)}}}else if(t.tag===18){if(l===null){x=t;try{var _=x.stateNode;n?_h(_,!0):_h(x.stateNode,!1)}catch(K){Re(x,x.return,K)}}}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,fc(e,l))));break;case 19:Ot(t,e),Dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,fc(e,a)));break;case 30:break;case 21:break;default:Ot(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Rd(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=cr(e);oc(e,i,n);break;case 5:var f=l.stateNode;l.flags&32&&(Bl(f,""),l.flags&=-33);var m=cr(e);oc(e,m,f);break;case 3:case 4:var x=l.stateNode.containerInfo,E=cr(e);ur(e,E,x);break;default:throw Error(r(161))}}catch(D){Re(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Wl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cd(e,t.alternate,t),t=t.sibling}function cn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Sa(4,t,t.return),cn(t);break;case 1:_l(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&_d(t,t.return,l),cn(t);break;case 27:ei(t.stateNode);case 26:case 5:_l(t,t.return),cn(t);break;case 22:t.memoizedState===null&&cn(t);break;case 30:cn(t);break;default:cn(t)}e=e.sibling}}function Il(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,f=i.flags;switch(i.tag){case 0:case 11:case 15:Il(n,i,l),$s(4,i);break;case 1:if(Il(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(E){Re(a,a.return,E)}if(a=i,n=a.updateQueue,n!==null){var m=a.stateNode;try{var x=n.shared.hiddenCallbacks;if(x!==null)for(n.shared.hiddenCallbacks=null,n=0;n<x.length;n++)vf(x[n],m)}catch(E){Re(a,a.return,E)}}l&&f&64&&Ad(i),Qs(i,i.return);break;case 27:Od(i);case 26:case 5:Il(n,i,l),l&&a===null&&f&4&&zd(i),Qs(i,i.return);break;case 12:Il(n,i,l);break;case 31:Il(n,i,l),l&&f&4&&Ld(n,i);break;case 13:Il(n,i,l),l&&f&4&&Hd(n,i);break;case 22:i.memoizedState===null&&Il(n,i,l),Qs(i,i.return);break;case 30:break;default:Il(n,i,l)}t=t.sibling}}function or(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&&Rs(l))}function fr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Rs(e))}function yl(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yd(e,t,l,a),t=t.sibling}function Yd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:yl(e,t,l,a),n&2048&&$s(9,t);break;case 1:yl(e,t,l,a);break;case 3:yl(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Rs(e)));break;case 12:if(n&2048){yl(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,f=i.id,m=i.onPostCommit;typeof m=="function"&&m(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Re(t,t.return,x)}}else yl(e,t,l,a);break;case 31:yl(e,t,l,a);break;case 13:yl(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,f=t.alternate,t.memoizedState!==null?i._visibility&2?yl(e,t,l,a):Zs(e,t):i._visibility&2?yl(e,t,l,a):(i._visibility|=2,Gn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&or(f,t);break;case 24:yl(e,t,l,a),n&2048&&fr(t.alternate,t);break;default:yl(e,t,l,a)}}function Gn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,f=t,m=l,x=a,E=f.flags;switch(f.tag){case 0:case 11:case 15:Gn(i,f,m,x,n),$s(8,f);break;case 23:break;case 22:var D=f.stateNode;f.memoizedState!==null?D._visibility&2?Gn(i,f,m,x,n):Zs(i,f):(D._visibility|=2,Gn(i,f,m,x,n)),n&&E&2048&&or(f.alternate,f);break;case 24:Gn(i,f,m,x,n),n&&E&2048&&fr(f.alternate,f);break;default:Gn(i,f,m,x,n)}t=t.sibling}}function Zs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Zs(l,a),n&2048&&or(a.alternate,a);break;case 24:Zs(l,a),n&2048&&fr(a.alternate,a);break;default:Zs(l,a)}t=t.sibling}}var Vs=8192;function Xn(e,t,l){if(e.subtreeFlags&Vs)for(e=e.child;e!==null;)Gd(e,t,l),e=e.sibling}function Gd(e,t,l){switch(e.tag){case 26:Xn(e,t,l),e.flags&Vs&&e.memoizedState!==null&&Zg(l,vl,e.memoizedState,e.memoizedProps);break;case 5:Xn(e,t,l);break;case 3:case 4:var a=vl;vl=kc(e.stateNode.containerInfo),Xn(e,t,l),vl=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Vs,Vs=16777216,Xn(e,t,l),Vs=a):Xn(e,t,l));break;default:Xn(e,t,l)}}function Xd(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 Ks(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];ot=a,Qd(a,e)}Xd(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:Ks(e),e.flags&2048&&Sa(9,e,e.return);break;case 3:Ks(e);break;case 12:Ks(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,dc(e)):Ks(e);break;default:Ks(e)}}function dc(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];ot=a,Qd(a,e)}Xd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sa(8,t,t.return),dc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function Qd(e,t){for(;ot!==null;){var l=ot;switch(l.tag){case 0:case 11:case 15:Sa(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:Rs(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ot=a;else e:for(l=e;ot!==null;){a=ot;var n=a.sibling,i=a.return;if(Md(a),a===l){ot=null;break e}if(n!==null){n.return=i,ot=n;break e}ot=i}}}var cg={getCacheForType:function(e){var t=yt(Pe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return yt(Pe).controller.signal}},ug=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Le=null,de=null,pe=0,ze=0,Qt=null,ja=!1,$n=!1,dr=!1,Fl=0,Ve=0,Na=0,un=0,hr=0,Zt=0,Qn=0,Js=null,Ct=null,mr=!1,hc=0,Zd=0,mc=1/0,pc=null,Ta=null,it=0,ka=null,Zn=null,Pl=0,pr=0,gr=null,Vd=null,Ws=0,vr=null;function Vt(){return(Ee&2)!==0&&pe!==0?pe&-pe:C.T!==null?Nr():bn()}function Kd(){if(Zt===0)if((pe&536870912)===0||ve){var e=dl;dl<<=1,(dl&3932160)===0&&(dl=262144),Zt=e}else Zt=536870912;return e=Xt.current,e!==null&&(e.flags|=32),Zt}function Mt(e,t,l){(e===Le&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(Vn(e,0),wa(e,pe,Zt,!1)),Tl(e,l),((Ee&2)===0||e!==Le)&&(e===Le&&((Ee&2)===0&&(un|=l),Ve===4&&wa(e,pe,Zt,!1)),zl(e))}function Jd(e,t,l){if((Ee&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||aa(e,t),n=a?fg(e,t):xr(e,t,!0),i=a;do{if(n===0){$n&&!a&&wa(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!rg(l)){n=xr(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;n=Js;var x=m.current.memoizedState.isDehydrated;if(x&&(Vn(m,f).flags|=256),f=xr(m,f,!1),f!==2){if(dr&&!x){m.errorRecoveryDisabledLanes|=i,un|=i,n=4;break e}i=Ct,Ct=n,i!==null&&(Ct===null?Ct=i:Ct.push.apply(Ct,i))}n=f}if(i=!1,n!==2)continue}}if(n===1){Vn(e,0),wa(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:wa(a,t,Zt,!ja);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=hc+300-St(),10<n)){if(wa(a,t,Zt,!ja),Ya(a,0,!0)!==0)break e;Pl=t,a.timeoutHandle=wh(Wd.bind(null,a,l,Ct,pc,mr,t,Zt,un,Qn,ja,i,"Throttled",-0,0),n);break e}Wd(a,l,Ct,pc,mr,t,Zt,un,Qn,ja,i,null,-0,0)}}break}while(!0);zl(e)}function Wd(e,t,l,a,n,i,f,m,x,E,D,U,A,_){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:N},Gd(t,i,U);var K=(i&62914560)===i?hc-St():(i&4194048)===i?Zd-St():0;if(K=Vg(U,K),K!==null){Pl=i,e.cancelPendingCommit=K(nh.bind(null,e,t,i,l,a,n,f,m,x,D,U,null,A,_)),wa(e,i,f,!E);return}}nh(e,t,i,l,a,n,f,m,x)}function rg(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!Yt(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function wa(e,t,l,a){t&=~hr,t&=~un,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-jt(n),f=1<<i;a[i]=-1,n&=~f}l!==0&&Cl(e,l,t)}function gc(){return(Ee&6)===0?(Is(0),!1):!0}function yr(){if(de!==null){if(ze===0)var e=de.return;else e=de,Gl=Fa=null,Cu(e),Ln=null,Ds=0,e=de;for(;e!==null;)Ed(e.alternate,e),e=e.return;de=null}}function Vn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,_g(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Pl=0,yr(),Le=e,de=l=ql(e.current,null),pe=t,ze=0,Qt=null,ja=!1,$n=aa(e,t),dr=!1,Qn=Zt=hr=un=Na=Ve=0,Ct=Js=null,mr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-jt(a),i=1<<n;t|=e[n],a&=~i}return Fl=t,Li(),l}function Id(e,t){re=null,C.H=Ys,t===Un||t===Qi?(t=hf(),ze=3):t===ju?(t=hf(),ze=4):ze=t===Wu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,de===null&&(Ve=1,sc(e,nl(t,e.current)))}function Fd(){var e=Xt.current;return e===null?!0:(pe&4194048)===pe?ul===null:(pe&62914560)===pe||(pe&536870912)!==0?e===ul:!1}function Pd(){var e=C.H;return C.H=Ys,e===null?Ys:e}function eh(){var e=C.A;return C.A=cg,e}function vc(){Ve=4,ja||(pe&4194048)!==pe&&Xt.current!==null||($n=!0),(Na&134217727)===0&&(un&134217727)===0||Le===null||wa(Le,pe,Zt,!1)}function xr(e,t,l){var a=Ee;Ee|=2;var n=Pd(),i=eh();(Le!==e||pe!==t)&&(pc=null,Vn(e,t)),t=!1;var f=Ve;e:do try{if(ze!==0&&de!==null){var m=de,x=Qt;switch(ze){case 8:yr(),f=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(t=!0);var E=ze;if(ze=0,Qt=null,Kn(e,m,x,E),l&&$n){f=0;break e}break;default:E=ze,ze=0,Qt=null,Kn(e,m,x,E)}}og(),f=Ve;break}catch(D){Id(e,D)}while(!0);return t&&e.shellSuspendCounter++,Gl=Fa=null,Ee=a,C.H=n,C.A=i,de===null&&(Le=null,pe=0,Li()),f}function og(){for(;de!==null;)th(de)}function fg(e,t){var l=Ee;Ee|=2;var a=Pd(),n=eh();Le!==e||pe!==t?(pc=null,mc=St()+500,Vn(e,t)):$n=aa(e,t);e:do try{if(ze!==0&&de!==null){t=de;var i=Qt;t:switch(ze){case 1:ze=0,Qt=null,Kn(e,t,i,1);break;case 2:case 9:if(ff(i)){ze=0,Qt=null,lh(t);break}t=function(){ze!==2&&ze!==9||Le!==e||(ze=7),zl(e)},i.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:ff(i)?(ze=0,Qt=null,lh(t)):(ze=0,Qt=null,Kn(e,t,i,7));break;case 5:var f=null;switch(de.tag){case 26:f=de.memoizedState;case 5:case 27:var m=de;if(f?Yh(f):m.stateNode.complete){ze=0,Qt=null;var x=m.sibling;if(x!==null)de=x;else{var E=m.return;E!==null?(de=E,yc(E)):de=null}break t}}ze=0,Qt=null,Kn(e,t,i,5);break;case 6:ze=0,Qt=null,Kn(e,t,i,6);break;case 8:yr(),Ve=6;break e;default:throw Error(r(462))}}dg();break}catch(D){Id(e,D)}while(!0);return Gl=Fa=null,C.H=a,C.A=n,Ee=l,de!==null?0:(Le=null,pe=0,Li(),Ve)}function dg(){for(;de!==null&&!xi();)th(de)}function th(e){var t=kd(e.alternate,e,Fl);e.memoizedProps=e.pendingProps,t===null?yc(e):de=t}function lh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=xd(l,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=xd(l,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:Cu(t);default:Ed(l,t),t=de=Po(t,Fl),t=kd(l,t,Fl)}e.memoizedProps=e.pendingProps,t===null?yc(e):de=t}function Kn(e,t,l,a){Gl=Fa=null,Cu(t),Ln=null,Ds=0;var n=t.return;try{if(eg(e,n,t,l,pe)){Ve=1,sc(e,nl(l,e.current)),de=null;return}}catch(i){if(n!==null)throw de=n,i;Ve=1,sc(e,nl(l,e.current)),de=null;return}t.flags&32768?(ve||a===1?e=!0:$n||(pe&536870912)!==0?e=!1:(ja=e=!0,(a===2||a===9||a===3||a===6)&&(a=Xt.current,a!==null&&a.tag===13&&(a.flags|=16384))),ah(t,e)):yc(t)}function yc(e){var t=e;do{if((t.flags&32768)!==0){ah(t,ja);return}e=t.return;var l=ag(t.alternate,t,Fl);if(l!==null){de=l;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Ve===0&&(Ve=5)}function ah(e,t){do{var l=ng(e.alternate,e);if(l!==null){l.flags&=32767,de=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=l}while(e!==null);Ve=6,de=null}function nh(e,t,l,a,n,i,f,m,x){e.cancelPendingCommit=null;do xc();while(it!==0);if((Ee&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=cu,el(e,l,i,f,m,x),e===Le&&(de=Le=null,pe=0),Zn=t,ka=e,Pl=l,pr=i,gr=n,Vd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,gg(Ft,function(){return rh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=C.T,C.T=null,n=X.p,X.p=2,f=Ee,Ee|=4;try{sg(e,t,l)}finally{Ee=f,X.p=n,C.T=a}}it=1,sh(),ih(),ch()}}function sh(){if(it===1){it=0;var e=ka,t=Zn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=C.T,C.T=null;var a=X.p;X.p=2;var n=Ee;Ee|=4;try{Bd(t,e);var i=Rr,f=$o(e.containerInfo),m=i.focusedElem,x=i.selectionRange;if(f!==m&&m&&m.ownerDocument&&Xo(m.ownerDocument.documentElement,m)){if(x!==null&&lu(m)){var E=x.start,D=x.end;if(D===void 0&&(D=E),"selectionStart"in m)m.selectionStart=E,m.selectionEnd=Math.min(D,m.value.length);else{var U=m.ownerDocument||document,A=U&&U.defaultView||window;if(A.getSelection){var _=A.getSelection(),K=m.textContent.length,se=Math.min(x.start,K),Me=x.end===void 0?se:Math.min(x.end,K);!_.extend&&se>Me&&(f=Me,Me=se,se=f);var T=Go(m,se),S=Go(m,Me);if(T&&S&&(_.rangeCount!==1||_.anchorNode!==T.node||_.anchorOffset!==T.offset||_.focusNode!==S.node||_.focusOffset!==S.offset)){var w=U.createRange();w.setStart(T.node,T.offset),_.removeAllRanges(),se>Me?(_.addRange(w),_.extend(S.node,S.offset)):(w.setEnd(S.node,S.offset),_.addRange(w))}}}}for(U=[],_=m;_=_.parentNode;)_.nodeType===1&&U.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<U.length;m++){var M=U[m];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}Rc=!!zr,Rr=zr=null}finally{Ee=n,X.p=a,C.T=l}}e.current=t,it=2}}function ih(){if(it===2){it=0;var e=ka,t=Zn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=C.T,C.T=null;var a=X.p;X.p=2;var n=Ee;Ee|=4;try{Cd(e,t.alternate,t)}finally{Ee=n,X.p=a,C.T=l}}it=3}}function ch(){if(it===4||it===3){it=0,us();var e=ka,t=Zn,l=Pl,a=Vd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?it=5:(it=0,Zn=ka=null,uh(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Ta=null),xn(l),t=t.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Pt,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=C.T,n=X.p,X.p=2,C.T=null;try{for(var i=e.onRecoverableError,f=0;f<a.length;f++){var m=a[f];i(m.value,{componentStack:m.stack})}}finally{C.T=t,X.p=n}}(Pl&3)!==0&&xc(),zl(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===vr?Ws++:(Ws=0,vr=e):Ws=0,Is(0)}}function uh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Rs(t)))}function xc(){return sh(),ih(),ch(),rh()}function rh(){if(it!==5)return!1;var e=ka,t=pr;pr=0;var l=xn(Pl),a=C.T,n=X.p;try{X.p=32>l?32:l,C.T=null,l=gr,gr=null;var i=ka,f=Pl;if(it=0,Zn=ka=null,Pl=0,(Ee&6)!==0)throw Error(r(331));var m=Ee;if(Ee|=4,$d(i.current),Yd(i,i.current,f,l),Ee=m,Is(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Pt,i)}catch{}return!0}finally{X.p=n,C.T=a,uh(e,t)}}function oh(e,t,l){t=nl(l,t),t=Ju(e.stateNode,t,2),e=ya(e,t,2),e!==null&&(Tl(e,2),zl(e))}function Re(e,t,l){if(e.tag===3)oh(e,e,l);else for(;t!==null;){if(t.tag===3){oh(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ta===null||!Ta.has(a))){e=nl(l,e),l=fd(2),a=ya(t,l,2),a!==null&&(dd(l,a,t,e),Tl(a,2),zl(a));break}}t=t.return}}function br(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new ug;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(dr=!0,n.add(l),e=hg.bind(null,e,t,l),t.then(e,e))}function hg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(pe&l)===l&&(Ve===4||Ve===3&&(pe&62914560)===pe&&300>St()-hc?(Ee&2)===0&&Vn(e,0):hr|=l,Qn===pe&&(Qn=0)),zl(e)}function fh(e,t){t===0&&(t=ds()),e=Ja(e,t),e!==null&&(Tl(e,t),zl(e))}function mg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),fh(e,l)}function pg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),fh(e,l)}function gg(e,t){return pn(e,t)}var bc=null,Jn=null,Sr=!1,Sc=!1,jr=!1,Ea=0;function zl(e){e!==Jn&&e.next===null&&(Jn===null?bc=Jn=e:Jn=Jn.next=e),Sc=!0,Sr||(Sr=!0,yg())}function Is(e,t){if(!jr&&Sc){jr=!0;do for(var l=!1,a=bc;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var f=a.suspendedLanes,m=a.pingedLanes;i=(1<<31-jt(42|e)+1)-1,i&=n&~(f&~m),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,ph(a,i))}else i=pe,i=Ya(a,a===Le?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||aa(a,i)||(l=!0,ph(a,i));a=a.next}while(l);jr=!1}}function vg(){dh()}function dh(){Sc=Sr=!1;var e=0;Ea!==0&&Ag()&&(e=Ea);for(var t=St(),l=null,a=bc;a!==null;){var n=a.next,i=hh(a,t);i===0?(a.next=null,l===null?bc=n:l.next=n,n===null&&(Jn=l)):(l=a,(e!==0||(i&3)!==0)&&(Sc=!0)),a=n}it!==0&&it!==5||Is(e),Ea!==0&&(Ea=0)}function hh(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var f=31-jt(i),m=1<<f,x=n[f];x===-1?((m&l)===0||(m&a)!==0)&&(n[f]=Ni(m,t)):x<=t&&(e.expiredLanes|=m),i&=~m}if(t=Le,l=pe,l=Ya(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&It(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||aa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&It(a),xn(l)){case 2:case 8:l=jl;break;case 32:l=Ft;break;case 268435456:l=qa;break;default:l=Ft}return a=mh.bind(null,e),l=pn(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&It(a),e.callbackPriority=2,e.callbackNode=null,2}function mh(e,t){if(it!==0&&it!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(xc()&&e.callbackNode!==l)return null;var a=pe;return a=Ya(e,e===Le?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Jd(e,a,t),hh(e,St()),e.callbackNode!=null&&e.callbackNode===l?mh.bind(null,e):null)}function ph(e,t){if(xc())return null;Jd(e,t,!0)}function yg(){zg(function(){(Ee&6)!==0?pn(fl,vg):dh()})}function Nr(){if(Ea===0){var e=Cn;e===0&&(e=la,la<<=1,(la&261888)===0&&(la=256)),Ea=e}return Ea}function gh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:g(""+e)}function vh(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 xg(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=gh((n[We]||null).action),f=a.submitter;f&&(t=(t=f[We]||null)?gh(t.formAction):f.getAttribute("formAction"),t!==null&&(i=t,f=null));var m=new Di("action","action",null,a,n);e.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ea!==0){var x=f?vh(n,f):new FormData(n);Xu(l,{pending:!0,data:x,method:n.method,action:i},null,x)}}else typeof i=="function"&&(m.preventDefault(),x=f?vh(n,f):new FormData(n),Xu(l,{pending:!0,data:x,method:n.method,action:i},i,x))},currentTarget:n}]})}}for(var Tr=0;Tr<iu.length;Tr++){var kr=iu[Tr],bg=kr.toLowerCase(),Sg=kr[0].toUpperCase()+kr.slice(1);gl(bg,"on"+Sg)}gl(Vo,"onAnimationEnd"),gl(Ko,"onAnimationIteration"),gl(Jo,"onAnimationStart"),gl("dblclick","onDoubleClick"),gl("focusin","onFocus"),gl("focusout","onBlur"),gl(Lp,"onTransitionRun"),gl(Hp,"onTransitionStart"),gl(Bp,"onTransitionCancel"),gl(Wo,"onTransitionEnd"),pl("onMouseEnter",["mouseout","mouseover"]),pl("onMouseLeave",["mouseout","mouseover"]),pl("onPointerEnter",["pointerout","pointerover"]),pl("onPointerLeave",["pointerout","pointerover"]),kl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),kl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),kl("onBeforeInput",["compositionend","keypress","textInput","paste"]),kl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),kl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),kl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fs="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(" "),jg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fs));function yh(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var f=a.length-1;0<=f;f--){var m=a[f],x=m.instance,E=m.currentTarget;if(m=m.listener,x!==i&&n.isPropagationStopped())break e;i=m,n.currentTarget=E;try{i(n)}catch(D){Ui(D)}n.currentTarget=null,i=x}else for(f=0;f<a.length;f++){if(m=a[f],x=m.instance,E=m.currentTarget,m=m.listener,x!==i&&n.isPropagationStopped())break e;i=m,n.currentTarget=E;try{i(n)}catch(D){Ui(D)}n.currentTarget=null,i=x}}}}function he(e,t){var l=t[ps];l===void 0&&(l=t[ps]=new Set);var a=e+"__bubble";l.has(a)||(xh(t,e,2,!1),l.add(a))}function wr(e,t,l){var a=0;t&&(a|=4),xh(l,e,a,t)}var jc="_reactListening"+Math.random().toString(36).slice(2);function Er(e){if(!e[jc]){e[jc]=!0,ki.forEach(function(l){l!=="selectionchange"&&(jg.has(l)||wr(l,!1,e),wr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jc]||(t[jc]=!0,wr("selectionchange",!1,t))}}function xh(e,t,l,a){switch(Kh(t)){case 2:var n=Wg;break;case 8:n=Ig;break;default:n=Gr}l=n.bind(null,t,l,e),n=void 0,!st||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Ar(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var m=a.stateNode.containerInfo;if(m===n)break;if(f===4)for(f=a.return;f!==null;){var x=f.tag;if((x===3||x===4)&&f.stateNode.containerInfo===n)return;f=f.return}for(;m!==null;){if(f=Ml(m),f===null)return;if(x=f.tag,x===5||x===6||x===26||x===27){a=i=f;continue e}m=m.parentNode}}a=a.return}gt(function(){var E=i,D=Z(l),U=[];e:{var A=Io.get(e);if(A!==void 0){var _=Di,K=e;switch(e){case"keypress":if(Ri(l)===0)break e;case"keydown":case"keyup":_=pp;break;case"focusin":K="focus",_=Ic;break;case"focusout":K="blur",_=Ic;break;case"beforeblur":case"afterblur":_=Ic;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":_=wo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=ap;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=yp;break;case Vo:case Ko:case Jo:_=ip;break;case Wo:_=bp;break;case"scroll":case"scrollend":_=tp;break;case"wheel":_=jp;break;case"copy":case"cut":case"paste":_=up;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Ao;break;case"toggle":case"beforetoggle":_=Tp}var se=(t&4)!==0,Me=!se&&(e==="scroll"||e==="scrollend"),T=se?A!==null?A+"Capture":null:A;se=[];for(var S=E,w;S!==null;){var M=S;if(w=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||w===null||T===null||(M=Fe(S,T),M!=null&&se.push(Ps(S,M,w))),Me)break;S=S.return}0<se.length&&(A=new _(A,K,null,l,D),U.push({event:A,listeners:se}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",A&&l!==H&&(K=l.relatedTarget||l.fromElement)&&(Ml(K)||K[sa]))break e;if((_||A)&&(A=D.window===D?D:(A=D.ownerDocument)?A.defaultView||A.parentWindow:window,_?(K=l.relatedTarget||l.toElement,_=E,K=K?Ml(K):null,K!==null&&(Me=h(K),se=K.tag,K!==Me||se!==5&&se!==27&&se!==6)&&(K=null)):(_=null,K=E),_!==K)){if(se=wo,M="onMouseLeave",T="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(se=Ao,M="onPointerLeave",T="onPointerEnter",S="pointer"),Me=_==null?A:Xa(_),w=K==null?A:Xa(K),A=new se(M,S+"leave",_,l,D),A.target=Me,A.relatedTarget=w,M=null,Ml(D)===E&&(se=new se(T,S+"enter",K,l,D),se.target=w,se.relatedTarget=Me,M=se),Me=M,_&&K)t:{for(se=Ng,T=_,S=K,w=0,M=T;M;M=se(M))w++;M=0;for(var te=S;te;te=se(te))M++;for(;0<w-M;)T=se(T),w--;for(;0<M-w;)S=se(S),M--;for(;w--;){if(T===S||S!==null&&T===S.alternate){se=T;break t}T=se(T),S=se(S)}se=null}else se=null;_!==null&&bh(U,A,_,se,!1),K!==null&&Me!==null&&bh(U,Me,K,se,!0)}}e:{if(A=E?Xa(E):window,_=A.nodeName&&A.nodeName.toLowerCase(),_==="select"||_==="input"&&A.type==="file")var Ne=Uo;else if(Co(A))if(Lo)Ne=Cp;else{Ne=Op;var I=Rp}else _=A.nodeName,!_||_.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?E&&oa(E.elementType)&&(Ne=Uo):Ne=Dp;if(Ne&&(Ne=Ne(e,E))){Mo(U,Ne,l,D);break e}I&&I(e,A,E),e==="focusout"&&E&&A.type==="number"&&E.memoizedProps.value!=null&&Tn(A,"number",A.value)}switch(I=E?Xa(E):window,e){case"focusin":(Co(I)||I.contentEditable==="true")&&(wn=I,au=E,As=null);break;case"focusout":As=au=wn=null;break;case"mousedown":nu=!0;break;case"contextmenu":case"mouseup":case"dragend":nu=!1,Qo(U,l,D);break;case"selectionchange":if(Up)break;case"keydown":case"keyup":Qo(U,l,D)}var oe;if(Pc)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else kn?Oo(e,l)&&(ge="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ge="onCompositionStart");ge&&(_o&&l.locale!=="ko"&&(kn||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&kn&&(oe=To()):(fa=D,Kc="value"in fa?fa.value:fa.textContent,kn=!0)),I=Nc(E,ge),0<I.length&&(ge=new Eo(ge,e,null,l,D),U.push({event:ge,listeners:I}),oe?ge.data=oe:(oe=Do(l),oe!==null&&(ge.data=oe)))),(oe=wp?Ep(e,l):Ap(e,l))&&(ge=Nc(E,"onBeforeInput"),0<ge.length&&(I=new Eo("onBeforeInput","beforeinput",null,l,D),U.push({event:I,listeners:ge}),I.data=oe)),xg(U,e,E,l,D)}yh(U,t)})}function Ps(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Nc(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Fe(e,l),n!=null&&a.unshift(Ps(e,n,i)),n=Fe(e,t),n!=null&&a.push(Ps(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Ng(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bh(e,t,l,a,n){for(var i=t._reactName,f=[];l!==null&&l!==a;){var m=l,x=m.alternate,E=m.stateNode;if(m=m.tag,x!==null&&x===a)break;m!==5&&m!==26&&m!==27||E===null||(x=E,n?(E=Fe(l,i),E!=null&&f.unshift(Ps(l,E,x))):n||(E=Fe(l,i),E!=null&&f.push(Ps(l,E,x)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var Tg=/\r\n?/g,kg=/\u0000|\uFFFD/g;function Sh(e){return(typeof e=="string"?e:""+e).replace(Tg,`
9
- `).replace(kg,"")}function jh(e,t){return t=Sh(t),Sh(e)===t}function Ce(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Bl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Bl(e,""+a);break;case"className":Qa(e,"class",a);break;case"tabIndex":Qa(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Qa(e,l,a);break;case"style":xs(e,a,i);break;case"data":if(t!=="object"){Qa(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=g(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&Ce(e,t,"name",n.name,n,null),Ce(e,t,"formEncType",n.formEncType,n,null),Ce(e,t,"formMethod",n.formMethod,n,null),Ce(e,t,"formTarget",n.formTarget,n,null)):(Ce(e,t,"encType",n.encType,n,null),Ce(e,t,"method",n.method,n,null),Ce(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=g(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=N);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=g(""+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":he("beforetoggle",e),he("toggle",e),Sn(e,"popover",a);break;case"xlinkActuate":ll(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ll(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ll(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ll(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ll(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ll(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ll(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ll(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ll(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Sn(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=bs.get(l)||l,Sn(e,l,a))}}function _r(e,t,l,a,n,i){switch(l){case"style":xs(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Bl(e,a):(typeof a=="number"||typeof a=="bigint")&&Bl(e,""+a);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"onClick":a!=null&&(e.onclick=N);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ml.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[We]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Sn(e,l,a)}}}function bt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var f=l[i];if(f!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ce(e,t,i,f,l,null)}}n&&Ce(e,t,"srcSet",l.srcSet,l,null),a&&Ce(e,t,"src",l.src,l,null);return;case"input":he("invalid",e);var m=i=f=n=null,x=null,E=null;for(a in l)if(l.hasOwnProperty(a)){var D=l[a];if(D!=null)switch(a){case"name":n=D;break;case"type":f=D;break;case"checked":x=D;break;case"defaultChecked":E=D;break;case"value":i=D;break;case"defaultValue":m=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:Ce(e,t,a,D,l,null)}}vs(e,i,m,x,E,f,n,!1);return;case"select":he("invalid",e),a=f=i=null;for(n in l)if(l.hasOwnProperty(n)&&(m=l[n],m!=null))switch(n){case"value":i=m;break;case"defaultValue":f=m;break;case"multiple":a=m;default:Ce(e,t,n,m,l,null)}t=i,l=f,e.multiple=!!a,t!=null?Hl(e,!!a,t,!1):l!=null&&Hl(e,!!a,l,!0);return;case"textarea":he("invalid",e),i=n=a=null;for(f in l)if(l.hasOwnProperty(f)&&(m=l[f],m!=null))switch(f){case"value":a=m;break;case"defaultValue":n=m;break;case"children":i=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:Ce(e,t,f,m,l,null)}Ai(e,a,n,i);return;case"option":for(x in l)l.hasOwnProperty(x)&&(a=l[x],a!=null)&&(x==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Ce(e,t,x,a,l,null));return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(a=0;a<Fs.length;a++)he(Fs[a],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("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(E in l)if(l.hasOwnProperty(E)&&(a=l[E],a!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ce(e,t,E,a,l,null)}return;default:if(oa(t)){for(D in l)l.hasOwnProperty(D)&&(a=l[D],a!==void 0&&_r(e,t,D,a,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!=null&&Ce(e,t,m,a,l,null))}function wg(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,f=null,m=null,x=null,E=null,D=null;for(_ in l){var U=l[_];if(l.hasOwnProperty(_)&&U!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":x=U;default:a.hasOwnProperty(_)||Ce(e,t,_,null,a,U)}}for(var A in a){var _=a[A];if(U=l[A],a.hasOwnProperty(A)&&(_!=null||U!=null))switch(A){case"type":i=_;break;case"name":n=_;break;case"checked":E=_;break;case"defaultChecked":D=_;break;case"value":f=_;break;case"defaultValue":m=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:_!==U&&Ce(e,t,A,_,a,U)}}gs(e,f,m,x,E,D,i,n);return;case"select":_=f=m=A=null;for(i in l)if(x=l[i],l.hasOwnProperty(i)&&x!=null)switch(i){case"value":break;case"multiple":_=x;default:a.hasOwnProperty(i)||Ce(e,t,i,null,a,x)}for(n in a)if(i=a[n],x=l[n],a.hasOwnProperty(n)&&(i!=null||x!=null))switch(n){case"value":A=i;break;case"defaultValue":m=i;break;case"multiple":f=i;default:i!==x&&Ce(e,t,n,i,a,x)}t=m,l=f,a=_,A!=null?Hl(e,!!l,A,!1):!!a!=!!l&&(t!=null?Hl(e,!!l,t,!0):Hl(e,!!l,l?[]:"",!1));return;case"textarea":_=A=null;for(m in l)if(n=l[m],l.hasOwnProperty(m)&&n!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ce(e,t,m,null,a,n)}for(f in a)if(n=a[f],i=l[f],a.hasOwnProperty(f)&&(n!=null||i!=null))switch(f){case"value":A=n;break;case"defaultValue":_=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==i&&Ce(e,t,f,n,a,i)}ys(e,A,_);return;case"option":for(var K in l)A=l[K],l.hasOwnProperty(K)&&A!=null&&!a.hasOwnProperty(K)&&(K==="selected"?e.selected=!1:Ce(e,t,K,null,a,A));for(x in a)A=a[x],_=l[x],a.hasOwnProperty(x)&&A!==_&&(A!=null||_!=null)&&(x==="selected"?e.selected=A&&typeof A!="function"&&typeof A!="symbol":Ce(e,t,x,A,a,_));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 se in l)A=l[se],l.hasOwnProperty(se)&&A!=null&&!a.hasOwnProperty(se)&&Ce(e,t,se,null,a,A);for(E in a)if(A=a[E],_=l[E],a.hasOwnProperty(E)&&A!==_&&(A!=null||_!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,t));break;default:Ce(e,t,E,A,a,_)}return;default:if(oa(t)){for(var Me in l)A=l[Me],l.hasOwnProperty(Me)&&A!==void 0&&!a.hasOwnProperty(Me)&&_r(e,t,Me,void 0,a,A);for(D in a)A=a[D],_=l[D],!a.hasOwnProperty(D)||A===_||A===void 0&&_===void 0||_r(e,t,D,A,a,_);return}}for(var T in l)A=l[T],l.hasOwnProperty(T)&&A!=null&&!a.hasOwnProperty(T)&&Ce(e,t,T,null,a,A);for(U in a)A=a[U],_=l[U],!a.hasOwnProperty(U)||A===_||A==null&&_==null||Ce(e,t,U,A,a,_)}function Nh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Eg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,f=n.initiatorType,m=n.duration;if(i&&m&&Nh(f)){for(f=0,m=n.responseEnd,a+=1;a<l.length;a++){var x=l[a],E=x.startTime;if(E>m)break;var D=x.transferSize,U=x.initiatorType;D&&Nh(U)&&(x=x.responseEnd,f+=D*(x<m?1:(m-E)/(x-E)))}if(--a,t+=8*(i+f)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var zr=null,Rr=null;function Tc(e){return e.nodeType===9?e:e.ownerDocument}function Th(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 kh(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 Or(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 Dr=null;function Ag(){var e=window.event;return e&&e.type==="popstate"?e===Dr?!1:(Dr=e,!0):(Dr=null,!1)}var wh=typeof setTimeout=="function"?setTimeout:void 0,_g=typeof clearTimeout=="function"?clearTimeout:void 0,Eh=typeof Promise=="function"?Promise:void 0,zg=typeof queueMicrotask=="function"?queueMicrotask:typeof Eh<"u"?function(e){return Eh.resolve(null).then(e).catch(Rg)}:wh;function Rg(e){setTimeout(function(){throw e})}function Aa(e){return e==="head"}function Ah(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Pn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")ei(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ei(l);for(var i=l.firstChild;i;){var f=i.nextSibling,m=i.nodeName;i[ca]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=f}}else l==="body"&&ei(e.ownerDocument.body);l=n}while(l);Pn(t)}function _h(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 Cr(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":Cr(l),Ga(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Og(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ca])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=rl(e.nextSibling),e===null)break}return null}function Dg(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=rl(e.nextSibling),e===null))return null;return e}function zh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=rl(e.nextSibling),e===null))return null;return e}function Mr(e){return e.data==="$?"||e.data==="$~"}function Ur(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Cg(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 rl(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 Lr=null;function Rh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return rl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Oh(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 Dh(e,t,l){switch(t=Tc(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 ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ga(e)}var ol=new Map,Ch=new Set;function kc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ea=X.d;X.d={f:Mg,r:Ug,D:Lg,C:Hg,L:Bg,m:qg,X:Gg,S:Yg,M:Xg};function Mg(){var e=ea.f(),t=gc();return e||t}function Ug(e){var t=Ul(e);t!==null&&t.tag===5&&t.type==="form"?If(t):ea.r(e)}var Wn=typeof document>"u"?null:document;function Mh(e,t,l){var a=Wn;if(a&&typeof t=="string"&&t){var n=pt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Ch.has(n)||(Ch.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),bt(t,"link",e),Ie(t),a.head.appendChild(t)))}}function Lg(e){ea.D(e),Mh("dns-prefetch",e,null)}function Hg(e,t){ea.C(e,t),Mh("preconnect",e,t)}function Bg(e,t,l){ea.L(e,t,l);var a=Wn;if(a&&e&&t){var n='link[rel="preload"][as="'+pt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+pt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+pt(l.imageSizes)+'"]')):n+='[href="'+pt(e)+'"]';var i=n;switch(t){case"style":i=In(e);break;case"script":i=Fn(e)}ol.has(i)||(e=O({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),ol.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(ti(i))||t==="script"&&a.querySelector(li(i))||(t=a.createElement("link"),bt(t,"link",e),Ie(t),a.head.appendChild(t)))}}function qg(e,t){ea.m(e,t);var l=Wn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+pt(a)+'"][href="'+pt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Fn(e)}if(!ol.has(i)&&(e=O({rel:"modulepreload",href:e},t),ol.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(li(i)))return}a=l.createElement("link"),bt(a,"link",e),Ie(a),l.head.appendChild(a)}}}function Yg(e,t,l){ea.S(e,t,l);var a=Wn;if(a&&e){var n=ua(a).hoistableStyles,i=In(e);t=t||"default";var f=n.get(i);if(!f){var m={loading:0,preload:null};if(f=a.querySelector(ti(i)))m.loading=5;else{e=O({rel:"stylesheet",href:e,"data-precedence":t},l),(l=ol.get(i))&&Hr(e,l);var x=f=a.createElement("link");Ie(x),bt(x,"link",e),x._p=new Promise(function(E,D){x.onload=E,x.onerror=D}),x.addEventListener("load",function(){m.loading|=1}),x.addEventListener("error",function(){m.loading|=2}),m.loading|=4,wc(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:m},n.set(i,f)}}}function Gg(e,t){ea.X(e,t);var l=Wn;if(l&&e){var a=ua(l).hoistableScripts,n=Fn(e),i=a.get(n);i||(i=l.querySelector(li(n)),i||(e=O({src:e,async:!0},t),(t=ol.get(n))&&Br(e,t),i=l.createElement("script"),Ie(i),bt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Xg(e,t){ea.M(e,t);var l=Wn;if(l&&e){var a=ua(l).hoistableScripts,n=Fn(e),i=a.get(n);i||(i=l.querySelector(li(n)),i||(e=O({src:e,async:!0,type:"module"},t),(t=ol.get(n))&&Br(e,t),i=l.createElement("script"),Ie(i),bt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Uh(e,t,l,a){var n=(n=fe.current)?kc(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=In(l.href),l=ua(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=In(l.href);var i=ua(n).hoistableStyles,f=i.get(e);if(f||(n=n.ownerDocument||n,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,f),(i=n.querySelector(ti(e)))&&!i._p&&(f.instance=i,f.state.loading=5),ol.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},ol.set(e,l),i||$g(n,e,l,f.state))),t&&a===null)throw Error(r(528,""));return f}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=Fn(l),l=ua(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function In(e){return'href="'+pt(e)+'"'}function ti(e){return'link[rel="stylesheet"]['+e+"]"}function Lh(e){return O({},e,{"data-precedence":e.precedence,precedence:null})}function $g(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}),bt(t,"link",l),Ie(t),e.head.appendChild(t))}function Fn(e){return'[src="'+pt(e)+'"]'}function li(e){return"script[async]"+e}function Hh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+pt(l.href)+'"]');if(a)return t.instance=a,Ie(a),a;var n=O({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ie(a),bt(a,"style",n),wc(a,l.precedence,e),t.instance=a;case"stylesheet":n=In(l.href);var i=e.querySelector(ti(n));if(i)return t.state.loading|=4,t.instance=i,Ie(i),i;a=Lh(l),(n=ol.get(n))&&Hr(a,n),i=(e.ownerDocument||e).createElement("link"),Ie(i);var f=i;return f._p=new Promise(function(m,x){f.onload=m,f.onerror=x}),bt(i,"link",a),t.state.loading|=4,wc(i,l.precedence,e),t.instance=i;case"script":return i=Fn(l.src),(n=e.querySelector(li(i)))?(t.instance=n,Ie(n),n):(a=l,(n=ol.get(i))&&(a=O({},l),Br(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ie(n),bt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,wc(a,l.precedence,e));return t.instance}function wc(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,f=0;f<a.length;f++){var m=a[f];if(m.dataset.precedence===t)i=m;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Hr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Br(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ec=null;function Bh(e,t,l){if(Ec===null){var a=new Map,n=Ec=new Map;n.set(l,a)}else n=Ec,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[ca]||i[nt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var f=i.getAttribute(t)||"";f=e+f;var m=a.get(f);m?m.push(i):a.set(f,[i])}}return a}function qh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Qg(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 Yh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Zg(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=In(a.href),i=t.querySelector(ti(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ac.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ie(i);return}i=t.ownerDocument||t,a=Lh(a),(n=ol.get(n))&&Hr(a,n),i=i.createElement("link"),Ie(i);var f=i;f._p=new Promise(function(m,x){f.onload=m,f.onerror=x}),bt(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ac.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var qr=0;function Vg(e,t){return e.stylesheets&&e.count===0&&zc(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&zc(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&qr===0&&(qr=62500*Eg());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&zc(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>qr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ac(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _c=null;function zc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_c=new Map,t.forEach(Kg,e),_c=null,Ac.call(e))}function Kg(e,t){if(!(t.state.loading&4)){var l=_c.get(e);if(l)var a=l.get(null);else{l=new Map,_c.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var f=n[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}n=t.instance,f=n.getAttribute("data-precedence"),i=l.get(f)||a,i===a&&l.set(null,n),l.set(f,n),this.count++,a=Ac.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var ai={$$typeof:P,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function Jg(e,t,l,a,n,i,f,m,x){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=na(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=na(0),this.hiddenUpdates=na(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Gh(e,t,l,a,n,i,f,m,x,E,D,U){return e=new Jg(e,t,l,f,x,E,D,U,m),t=1,i===!0&&(t|=24),i=Gt(3,null,null,t),e.current=i,i.stateNode=e,t=xu(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Nu(i),e}function Xh(e){return e?(e=_n,e):_n}function $h(e,t,l,a,n,i){n=Xh(n),a.context===null?a.context=n:a.pendingContext=n,a=va(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=ya(e,a,t),l!==null&&(Mt(l,e,t),Ms(l,e,t))}function Qh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Yr(e,t){Qh(e,t),(e=e.alternate)&&Qh(e,t)}function Zh(e){if(e.tag===13||e.tag===31){var t=Ja(e,67108864);t!==null&&Mt(t,e,67108864),Yr(e,67108864)}}function Vh(e){if(e.tag===13||e.tag===31){var t=Vt();t=hs(t);var l=Ja(e,t);l!==null&&Mt(l,e,t),Yr(e,t)}}var Rc=!0;function Wg(e,t,l,a){var n=C.T;C.T=null;var i=X.p;try{X.p=2,Gr(e,t,l,a)}finally{X.p=i,C.T=n}}function Ig(e,t,l,a){var n=C.T;C.T=null;var i=X.p;try{X.p=8,Gr(e,t,l,a)}finally{X.p=i,C.T=n}}function Gr(e,t,l,a){if(Rc){var n=Xr(a);if(n===null)Ar(e,t,a,Oc,l),Jh(e,a);else if(Pg(n,e,t,l,a))a.stopPropagation();else if(Jh(e,a),t&4&&-1<Fg.indexOf(e)){for(;n!==null;){var i=Ul(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=Nl(i.pendingLanes);if(f!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var x=1<<31-jt(f);m.entanglements[1]|=x,f&=~x}zl(i),(Ee&6)===0&&(mc=St()+500,Is(0))}}break;case 31:case 13:m=Ja(i,2),m!==null&&Mt(m,i,2),gc(),Yr(i,2)}if(i=Xr(a),i===null&&Ar(e,t,a,Oc,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Ar(e,t,a,null,l)}}function Xr(e){return e=Z(e),$r(e)}var Oc=null;function $r(e){if(Oc=null,e=Ml(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=p(t),e!==null)return e;e=null}else if(l===31){if(e=y(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 Oc=e,null}function Kh(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(bi()){case fl:return 2;case jl:return 8;case Ft:case rs:return 32;case qa:return 268435456;default:return 32}default:return 32}}var Qr=!1,_a=null,za=null,Ra=null,ni=new Map,si=new Map,Oa=[],Fg="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 Jh(e,t){switch(e){case"focusin":case"focusout":_a=null;break;case"dragenter":case"dragleave":za=null;break;case"mouseover":case"mouseout":Ra=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":si.delete(t.pointerId)}}function ii(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=Ul(t),t!==null&&Zh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Pg(e,t,l,a,n){switch(t){case"focusin":return _a=ii(_a,e,t,l,a,n),!0;case"dragenter":return za=ii(za,e,t,l,a,n),!0;case"mouseover":return Ra=ii(Ra,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return ni.set(i,ii(ni.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,si.set(i,ii(si.get(i)||null,e,t,l,a,n)),!0}return!1}function Wh(e){var t=Ml(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=p(l),t!==null){e.blockedOn=t,ms(e.priority,function(){Vh(l)});return}}else if(t===31){if(t=y(l),t!==null){e.blockedOn=t,ms(e.priority,function(){Vh(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 Dc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Xr(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);H=a,l.target.dispatchEvent(a),H=null}else return t=Ul(l),t!==null&&Zh(t),e.blockedOn=l,!1;t.shift()}return!0}function Ih(e,t,l){Dc(e)&&l.delete(t)}function ev(){Qr=!1,_a!==null&&Dc(_a)&&(_a=null),za!==null&&Dc(za)&&(za=null),Ra!==null&&Dc(Ra)&&(Ra=null),ni.forEach(Ih),si.forEach(Ih)}function Cc(e,t){e.blockedOn===t&&(e.blockedOn=null,Qr||(Qr=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,ev)))}var Mc=null;function Fh(e){Mc!==e&&(Mc=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Mc===e&&(Mc=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if($r(a||l)===null)continue;break}var i=Ul(l);i!==null&&(e.splice(t,3),t-=3,Xu(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Pn(e){function t(x){return Cc(x,e)}_a!==null&&Cc(_a,e),za!==null&&Cc(za,e),Ra!==null&&Cc(Ra,e),ni.forEach(t),si.forEach(t);for(var l=0;l<Oa.length;l++){var a=Oa[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Oa.length&&(l=Oa[0],l.blockedOn===null);)Wh(l),l.blockedOn===null&&Oa.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],f=n[We]||null;if(typeof i=="function")f||Fh(l);else if(f){var m=null;if(i&&i.hasAttribute("formAction")){if(n=i,f=i[We]||null)m=f.formAction;else if($r(n)!==null)continue}else m=f.action;typeof m=="function"?l[a+1]=m:(l.splice(a,3),a-=3),Fh(l)}}}function Ph(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return n=f})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Zr(e){this._internalRoot=e}Uc.prototype.render=Zr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=Vt();$h(l,a,e,t,null,null)},Uc.prototype.unmount=Zr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$h(e.current,2,null,e,null,null),gc(),t[sa]=null}};function Uc(e){this._internalRoot=e}Uc.prototype.unstable_scheduleHydration=function(e){if(e){var t=bn();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Oa.length&&t!==0&&t<Oa[l].priority;l++);Oa.splice(l,0,e),l===0&&Wh(e)}};var em=c.version;if(em!=="19.2.8")throw Error(r(527,em,"19.2.8"));X.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=v(t),e=e!==null?z(e):null,e=e===null?null:e.stateNode,e};var tv={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lc.isDisabled&&Lc.supportsFiber)try{Pt=Lc.inject(tv),rt=Lc}catch{}}return ui.createRoot=function(e,t){if(!d(e))throw Error(r(299));var l=!1,a="",n=cd,i=ud,f=rd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Gh(e,1,!1,null,null,l,a,null,n,i,f,Ph),e[sa]=t.current,Er(e),new Zr(t)},ui.hydrateRoot=function(e,t,l){if(!d(e))throw Error(r(299));var a=!1,n="",i=cd,f=ud,m=rd,x=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(x=l.formState)),t=Gh(e,1,!0,t,l??null,a,n,x,i,f,m,Ph),t.context=Xh(null),l=t.current,a=Vt(),a=hs(a),n=va(a),n.callback=null,ya(l,n,a),l=a,t.current.lanes=l,Tl(t,l),zl(t),e[sa]=t.current,Er(e),new Uc(t)},ui.version="19.2.8",ui}var om;function fv(){if(om)return Jr.exports;om=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),Jr.exports=ov(),Jr.exports}var dv=fv();function hv(){const[u,c]=B.useState(()=>window.location.hash.slice(1)||"/");return B.useEffect(()=>{const o=()=>c(window.location.hash.slice(1)||"/");return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),u}function Ua(u,c){c?.replace?window.location.replace(`#${u}`):window.location.hash=u}function ye({href:u,...c}){return s.jsx("a",{href:`#${u}`,...c})}function Xe(u,c){const[o,r]=B.useState(null),d=B.useRef(u);return d.current=u,B.useEffect(()=>{let h=!0,p;const y=async()=>{try{const b=await fetch(d.current,{cache:"no-store"});b.ok&&h&&r(await b.json())}catch{}h&&(p=setTimeout(y,c?1500:6e3))};return y(),()=>{h=!1,clearTimeout(p)}},[u,c]),o}function pi(u){if(u==null)return"—";const c=Math.round(u/1e3);return c<60?`${c}s`:`${Math.floor(c/60)}m${String(c%60).padStart(2,"0")}s`}function ho(u){return u==null?"—":`$${u.toFixed(2)}`}function qc(u){return u?u>=1e3?`${(u/1e3).toFixed(1)}k`:String(u):"0"}function mo(u){return u<1024?`${u} B`:u<1024*1024?`${(u/1024).toFixed(1)} K`:`${(u/1024/1024).toFixed(1)} M`}function Ol(u){if(!u)return"—";const c=new Date(u),o=new Date,r=c.toDateString()===o.toDateString(),d=c.toTimeString().slice(0,5);return r?d:`${c.toISOString().slice(5,10)} ${d}`}function po({since:u}){const[,c]=B.useState(0);return B.useEffect(()=>{const o=setInterval(()=>c(r=>r+1),1e3);return()=>clearInterval(o)},[]),u?s.jsx("span",{className:"num",children:pi(Date.now()-Date.parse(u))}):null}function $c({status:u}){return s.jsx("span",{className:`lamp ${u}`})}function mv({status:u}){return s.jsx("span",{className:`status-word ${u}`,children:u})}function go(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var hn=go();function Um(u){hn=u}var fn={exec:()=>null};function es(u){let c=[];return o=>{let r=Math.max(0,Math.min(3,o-1)),d=c[r];return d||(d=u(r),c[r]=d),d}}function me(u,c=""){let o=typeof u=="string"?u:u.source,r={replace:(d,h)=>{let p=typeof h=="string"?h:h.source;return p=p.replace(kt.caret,"$1"),o=o.replace(d,p),r},getRegex:()=>new RegExp(o,c)};return r}var pv=((u="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+u)}catch{return!1}})(),kt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:u=>new RegExp(`^( {0,3}${u})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:es(u=>new RegExp(`^ {0,${u}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:es(u=>new RegExp(`^ {0,${u}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:es(u=>new RegExp(`^ {0,${u}}(?:\`\`\`|~~~)`)),headingBeginRegex:es(u=>new RegExp(`^ {0,${u}}#`)),htmlBeginRegex:es(u=>new RegExp(`^ {0,${u}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:es(u=>new RegExp(`^ {0,${u}}>`))},gv=/^(?:[ \t]*(?:\n|$))+/,vv=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yv=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,gi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xv=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,vo=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Lm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Hm=me(Lm).replace(/bull/g,vo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),bv=me(Lm).replace(/bull/g,vo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),yo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Sv=/^[^\n]+/,xo=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,jv=me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Nv=me(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,vo).getRegex(),Qc="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",bo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Tv=me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",bo).replace("tag",Qc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Bm=u=>me(yo).replace("hr",gi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",u).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qc).getRegex(),kv=Bm(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),wv=Bm(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Ev=me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",wv).getRegex(),So={blockquote:Ev,code:vv,def:jv,fences:yv,heading:xv,hr:gi,html:Tv,lheading:Hm,list:Nv,newline:gv,paragraph:kv,table:fn,text:Sv},fm=me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qc).getRegex(),Av={...So,lheading:bv,table:fm,paragraph:me(yo).replace("hr",gi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",fm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qc).getRegex()},_v={...So,html:me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",bo).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:fn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:me(yo).replace("hr",gi).replace("heading",` *#{1,6} *[^
10
- ]`).replace("lheading",Hm).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Rv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,qm=/^( {2,}|\\)\n(?!\s*$)/,Ov=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ta=/[\p{P}\p{S}]/u,ns=/[\s\p{P}\p{S}]/u,vi=/[^\s\p{P}\p{S}]/u,Dv=me(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ns).getRegex(),Cv=/[\p{Pi}\p{Ps}"']/u,Ym=/(?!~)[\p{P}\p{S}]/u,Mv=/(?!~)[\s\p{P}\p{S}]/u,Uv=/(?:[^\s\p{P}\p{S}]|~)/u,Lv=me(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",pv?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Gm=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Hv=me(Gm,"u").replace(/punct/g,ta).getRegex(),Bv=me(Gm,"u").replace(/punct/g,Ym).getRegex(),qv=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Yv=me(qv,"u").replace(/openQuote/g,Cv).replace(/punct/g,ta).getRegex(),Xm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Gv=me(Xm,"gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,ta).getRegex(),Xv=me(Xm,"gu").replace(/notPunctSpace/g,Uv).replace(/punctSpace/g,Mv).replace(/punct/g,Ym).getRegex(),$v="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Qv=me($v,"gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,ta).getRegex(),Zv=me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,ta).getRegex(),Vv="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Kv=me(Vv,"gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,ta).getRegex(),Jv=me(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ta).getRegex(),Wv="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Iv=me(Wv,"gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,ta).getRegex(),Fv=me(/\\(punct)/,"gu").replace(/punct/g,ta).getRegex(),Pv=me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ey=me(bo).replace("(?:-->|$)","-->").getRegex(),ty=me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ey).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Yc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,ly=me(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Yc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),$m=me(/^!?\[(label)\]\[(ref)\]/).replace("label",Yc).replace("ref",xo).getRegex(),Qm=me(/^!?\[(ref)\](?:\[\])?/).replace("ref",xo).getRegex(),ay=me("reflink|nolink(?!\\()","g").replace("reflink",$m).replace("nolink",Qm).getRegex(),dm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,jo={_backpedal:fn,anyPunctuation:Fv,autolink:Pv,blockSkip:Lv,br:qm,code:Rv,del:fn,delLDelim:fn,delRDelim:fn,emStrongLDelim:Hv,emStrongRDelimAst:Gv,emStrongRDelimUnd:Zv,escape:zv,link:ly,nolink:Qm,punctuation:Dv,reflink:$m,reflinkSearch:ay,tag:ty,text:Ov,url:fn},ny={...jo,emStrongLDelim:Yv,emStrongRDelimAst:Qv,emStrongRDelimUnd:Kv,link:me(/^!?\[(label)\]\((.*?)\)/).replace("label",Yc).getRegex(),reflink:me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Yc).getRegex()},so={...jo,emStrongRDelimAst:Xv,emStrongLDelim:Bv,delLDelim:Jv,delRDelim:Iv,url:me(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",dm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:me(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",dm).getRegex()},sy={...so,br:me(qm).replace("{2,}","*").getRegex(),text:me(so.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Hc={normal:So,gfm:Av,pedantic:_v},ri={normal:jo,gfm:so,breaks:sy,pedantic:ny},iy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hm=u=>iy[u];function Rl(u,c){if(c){if(kt.escapeTest.test(u))return u.replace(kt.escapeReplace,hm)}else if(kt.escapeTestNoEncode.test(u))return u.replace(kt.escapeReplaceNoEncode,hm);return u}function mm(u){try{u=encodeURI(u).replace(kt.percentDecode,"%")}catch{return null}return u}function pm(u,c){let o=u.replace(kt.findPipe,(h,p,y)=>{let b=!1,v=p;for(;--v>=0&&y[v]==="\\";)b=!b;return b?"|":" |"}),r=o.split(kt.splitPipe),d=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),c)if(r.length>c)r.splice(c);else for(;r.length<c;)r.push("");for(;d<r.length;d++)r[d]=r[d].trim().replace(kt.slashPipe,"|");return r}function Ca(u,c,o){let r=u.length;if(r===0)return"";let d=0;for(;d<r&&u.charAt(r-d-1)===c;)d++;return u.slice(0,r-d)}function gm(u){let c=u.split(`
11
- `),o=c.length-1;for(;o>=0&&kt.blankLine.test(c[o]);)o--;return c.length-o<=2?u:c.slice(0,o+1).join(`
12
- `)}function cy(u,c){if(u.indexOf(c[1])===-1)return-1;let o=0;for(let r=0;r<u.length;r++)if(u[r]==="\\")r++;else if(u[r]===c[0])o++;else if(u[r]===c[1]&&(o--,o<0))return r;return o>0?-2:-1}function uy(u,c=0){let o=c,r="";for(let d of u)if(d===" "){let h=4-o%4;r+=" ".repeat(h),o+=h}else r+=d,o++;return r}function vm(u,c,o,r,d){let h=c.href,p=c.title||null,y=u[1].replace(d.other.outputLinkReplace,"$1"),b=u[0].charAt(0)==="!";r.state.inLink=!0;let v=r.state.linkEmitted,z=r.state.inRawBlock;r.state.linkEmitted=!1;let O=r.inlineTokens(y),k=r.state.linkEmitted;if(r.state.linkEmitted=v,r.state.inLink=!1,!b){if(k){r.state.inRawBlock=z;return}r.state.linkEmitted=!0}return{type:b?"image":"link",raw:o,href:h,title:p,text:y,tokens:O}}function ry(u,c,o){let r=u.match(o.other.indentCodeCompensation);if(r===null)return c;let d=r[1];return c.split(`
13
- `).map(h=>{let p=h.match(o.other.beginningSpace);if(p===null)return h;let[y]=p;return y.length>=d.length?h.slice(d.length):h}).join(`
14
- `)}var Gc=class{options;rules;lexer;constructor(u){this.options=u||hn}space(u){let c=this.rules.block.newline.exec(u);if(c&&c[0].length>0)return{type:"space",raw:c[0]}}code(u){let c=this.rules.block.code.exec(u);if(c){let o=this.options.pedantic?c[0]:gm(c[0]),r=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:r}}}fences(u){let c=this.rules.block.fences.exec(u);if(c){let o=c[0],r=ry(o,c[3]||"",this.rules);return{type:"code",raw:o,lang:c[2]?c[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):c[2],text:r}}}heading(u){let c=this.rules.block.heading.exec(u);if(c){let o=c[2].trim();if(this.rules.other.endingHash.test(o)){let r=Ca(o,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(o=r.trim())}return{type:"heading",raw:Ca(c[0],`
15
- `),depth:c[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(u){let c=this.rules.block.hr.exec(u);if(c)return{type:"hr",raw:Ca(c[0],`
16
- `)}}blockquote(u){let c=this.rules.block.blockquote.exec(u);if(c){let o=Ca(c[0],`
17
- `).split(`
18
- `),r="",d="",h=[];for(;o.length>0;){let p=!1,y=[],b;for(b=0;b<o.length;b++)if(this.rules.other.blockquoteStart.test(o[b]))y.push(o[b]),p=!0;else if(!p)y.push(o[b]);else break;o=o.slice(b);let v=y.join(`
19
- `),z=v.replace(this.rules.other.blockquoteSetextReplace,`
20
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
21
- ${v}`:v,d=d?`${d}
22
- ${z}`:z;let O=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(z,h,!0),this.lexer.state.top=O,o.length===0)break;let k=h.at(-1);if(k?.type==="code")break;if(k?.type==="blockquote"){let ee=k,$=o.join(`
23
- `),J=ee.raw+`
24
- `+$.replace(this.rules.other.blockquoteSetextReplace2,""),W=this.blockquote(J);h[h.length-1]=W,r=`${r}
25
- ${$}`,d=d.substring(0,d.length-ee.text.length)+W.text;break}else if(k?.type==="list"){let ee=k,$=ee.raw+`
26
- `+o.join(`
27
- `),J=this.list($);h[h.length-1]=J,r=r.substring(0,r.length-k.raw.length)+J.raw,d=d.substring(0,d.length-ee.raw.length)+J.raw,o=$.substring(h.at(-1).raw.length).split(`
28
- `);continue}}return{type:"blockquote",raw:r,tokens:h,text:d}}}list(u){let c=this.rules.block.list.exec(u);if(c){let o=c[1].trim(),r=o.length>1,d={type:"list",raw:"",ordered:r,start:r?+o.slice(0,-1):"",loose:!1,items:[]};o=r?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=r?o:"[*+-]");let h=this.rules.other.listItemRegex(o),p=!1;for(;u;){let b=!1,v="",z="";if(!(c=h.exec(u))||this.rules.block.hr.test(u))break;v=c[0],u=u.substring(v.length);let O=uy(c[2].split(`
29
- `,1)[0],c[1].length),k=u.split(`
30
- `,1)[0],ee=!O.trim(),$=0;if(this.options.pedantic?($=2,z=O.trimStart()):ee?$=c[1].length+1:($=O.search(this.rules.other.nonSpaceChar),$=$>4?1:$,z=O.slice($),$+=c[1].length),ee&&this.rules.other.blankLine.test(k)&&(v+=k+`
31
- `,u=u.substring(k.length+1),b=!0),!b){let J=this.rules.other.nextBulletRegex($),W=this.rules.other.hrRegex($),R=this.rules.other.fencesBeginRegex($),we=this.rules.other.headingBeginRegex($),P=this.rules.other.htmlBeginRegex($),ne=this.rules.other.blockquoteBeginRegex($);for(;u;){let ie=u.split(`
32
- `,1)[0],G;if(k=ie,this.options.pedantic?(k=k.replace(this.rules.other.listReplaceNesting," "),G=k):G=k.replace(this.rules.other.tabCharGlobal," "),R.test(k)||we.test(k)||P.test(k)||ne.test(k)||J.test(k)||W.test(k))break;if(G.search(this.rules.other.nonSpaceChar)>=$||!k.trim())z+=`
33
- `+G.slice($);else{if(ee||O.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(O)||we.test(O)||W.test(O))break;z+=`
34
- `+k}ee=!k.trim(),v+=ie+`
35
- `,u=u.substring(ie.length+1),O=G.slice($)}}d.loose||(p?d.loose=!0:this.rules.other.doubleBlankLine.test(v)&&(p=!0)),d.items.push({type:"list_item",raw:v,task:!!this.options.gfm&&this.rules.other.listIsTask.test(z),loose:!1,text:z,tokens:[]}),d.raw+=v}let y=d.items.at(-1);if(y)y.raw=y.raw.trimEnd(),y.text=y.text.trimEnd();else return;d.raw=d.raw.trimEnd();for(let b of d.items)if(this.lexer.state.top=!1,b.tokens=this.lexer.blockTokens(b.text,[]),!d.loose){let v=b.tokens.filter(O=>O.type==="space"),z=v.length>0&&v.some(O=>this.rules.other.anyLine.test(O.raw));d.loose=z}for(let b of d.items){let v=b.tokens[0];if(b.task&&(v?.type==="text"||v?.type==="paragraph")){b.text=b.text.replace(this.rules.other.listReplaceTask,""),v.raw=v.raw.replace(this.rules.other.listReplaceTask,""),v.text=v.text.replace(this.rules.other.listReplaceTask,"");for(let O=this.lexer.inlineQueue.length-1;O>=0;O--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[O].src)){this.lexer.inlineQueue[O].src=this.lexer.inlineQueue[O].src.replace(this.rules.other.listReplaceTask,"");break}let z=this.rules.other.listTaskCheckbox.exec(b.raw);if(z){let O={type:"checkbox",raw:z[0]+" ",checked:z[0]!=="[ ]"};b.checked=O.checked,d.loose?b.tokens[0]&&["paragraph","text"].includes(b.tokens[0].type)&&"tokens"in b.tokens[0]&&b.tokens[0].tokens?(b.tokens[0].raw=O.raw+b.tokens[0].raw,b.tokens[0].text=O.raw+b.tokens[0].text,b.tokens[0].tokens.unshift(O)):b.tokens.unshift({type:"paragraph",raw:O.raw,text:O.raw,tokens:[O]}):b.tokens.unshift(O)}}else b.task&&(b.task=!1)}if(d.loose)for(let b of d.items){b.loose=!0;for(let v of b.tokens)v.type==="text"&&(v.type="paragraph")}return d}}html(u){let c=this.rules.block.html.exec(u);if(c){let o=gm(c[0]);return{type:"html",block:!0,raw:o,pre:c[1]==="pre"||c[1]==="script"||c[1]==="style",text:o}}}def(u){let c=this.rules.block.def.exec(u);if(c){let o=c[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=c[2]?c[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",d=c[3]?c[3].substring(1,c[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):c[3];return{type:"def",tag:o,raw:Ca(c[0],`
36
- `),href:r,title:d}}}table(u){let c=this.rules.block.table.exec(u);if(!c||!this.rules.other.tableDelimiter.test(c[2]))return;let o=pm(c[1]),r=c[2].replace(this.rules.other.tableAlignChars,"").split("|"),d=c[3]?.trim()?c[3].replace(this.rules.other.tableRowBlankLine,"").split(`
37
- `):[],h={type:"table",raw:Ca(c[0],`
38
- `),header:[],align:[],rows:[]};if(o.length===r.length){for(let p of r)this.rules.other.tableAlignRight.test(p)?h.align.push("right"):this.rules.other.tableAlignCenter.test(p)?h.align.push("center"):this.rules.other.tableAlignLeft.test(p)?h.align.push("left"):h.align.push(null);for(let p=0;p<o.length;p++)h.header.push({text:o[p],tokens:this.lexer.inline(o[p]),header:!0,align:h.align[p]});for(let p of d)h.rows.push(pm(p,h.header.length).map((y,b)=>({text:y,tokens:this.lexer.inline(y),header:!1,align:h.align[b]})));return h}}lheading(u){let c=this.rules.block.lheading.exec(u);if(c){let o=c[1].trim();return{type:"heading",raw:Ca(c[0],`
39
- `),depth:c[2].charAt(0)==="="?1:2,text:o,tokens:this.lexer.inline(o)}}}paragraph(u){let c=this.rules.block.paragraph.exec(u);if(c){let o=c[1].charAt(c[1].length-1)===`
40
- `?c[1].slice(0,-1):c[1];return{type:"paragraph",raw:c[0],text:o,tokens:this.lexer.inline(o)}}}text(u){let c=this.rules.block.text.exec(u);if(c)return{type:"text",raw:c[0],text:c[0],tokens:this.lexer.inline(c[0])}}escape(u){let c=this.rules.inline.escape.exec(u);if(c)return{type:"escape",raw:c[0],text:c[1]}}tag(u){let c=this.rules.inline.tag.exec(u);if(c)return!this.lexer.state.inLink&&this.rules.other.startATag.test(c[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(c[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(c[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(c[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:c[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:c[0]}}link(u){let c=this.rules.inline.link.exec(u);if(c){let o=c[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let h=Ca(o.slice(0,-1),"\\");if((o.length-h.length)%2===0)return}else{let h=cy(c[2],"()");if(h===-2)return;if(h>-1){let p=(c[0].indexOf("!")===0?5:4)+c[1].length+h;c[2]=c[2].substring(0,h),c[0]=c[0].substring(0,p).trim(),c[3]=""}}let r=c[2],d="";if(this.options.pedantic){let h=this.rules.other.pedanticHrefTitle.exec(r);h&&(r=h[1],d=h[3])}else d=c[3]?c[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?r=r.slice(1):r=r.slice(1,-1)),vm(c,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:d&&d.replace(this.rules.inline.anyPunctuation,"$1")},c[0],this.lexer,this.rules)}}reflink(u,c){let o;if((o=this.rules.inline.reflink.exec(u))||(o=this.rules.inline.nolink.exec(u))){let r=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),d=c[r.toLowerCase()];if(!d){let h=o[0].charAt(0);return{type:"text",raw:h,text:h}}return vm(o,d,o[0],this.lexer,this.rules)}}emStrong(u,c,o=""){let r=this.rules.inline.emStrongLDelim.exec(u);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!o||this.rules.inline.punctuation.exec(o))){let d=[...r[0]].length-1,h,p,y=d,b=0,v=r[0][0],z=o===v,O=v==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(O.lastIndex=0,c=c.slice(-1*u.length+d);(r=O.exec(c))!==null;){if(h=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!h)continue;if(p=[...h].length,r[3]||r[4]){y+=p;continue}else if(r[5]||r[6]){if(d%3&&!((d+p)%3)){b+=p;continue}if(z)break}if(y-=p,y>0)continue;p=Math.min(p,p+y+b);let k=[...r[0]][0].length,ee=u.slice(0,d+r.index+k+p);if(Math.min(d,p)%2){let J=ee.slice(1,-1);return{type:"em",raw:ee,text:J,tokens:this.lexer.inlineTokens(J)}}let $=ee.slice(2,-2);return{type:"strong",raw:ee,text:$,tokens:this.lexer.inlineTokens($)}}}}codespan(u){let c=this.rules.inline.code.exec(u);if(c){let o=c[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(o),d=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return r&&d&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:c[0],text:o}}}br(u){let c=this.rules.inline.br.exec(u);if(c)return{type:"br",raw:c[0]}}del(u,c,o=""){let r=this.rules.inline.delLDelim.exec(u);if(r&&(!r[1]||!o||this.rules.inline.punctuation.exec(o))){let d=[...r[0]].length-1,h,p,y=d,b=this.rules.inline.delRDelim;for(b.lastIndex=0,c=c.slice(-1*u.length+d);(r=b.exec(c))!==null;){if(h=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!h||(p=[...h].length,p!==d))continue;if(r[3]||r[4]){y+=p;continue}if(y-=p,y>0)continue;p=Math.min(p,p+y);let v=[...r[0]][0].length,z=u.slice(0,d+r.index+v+p),O=z.slice(d,-d);return{type:"del",raw:z,text:O,tokens:this.lexer.inlineTokens(O)}}}}autolink(u){let c=this.rules.inline.autolink.exec(u);if(c){let o,r;return c[2]==="@"?(o=c[1],r="mailto:"+o):(o=c[1],r=o),{type:"link",raw:c[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}url(u){let c;if(c=this.rules.inline.url.exec(u)){let o,r;if(c[2]==="@")o=c[0],r="mailto:"+o;else{let d;do d=c[0],c[0]=this.rules.inline._backpedal.exec(c[0])?.[0]??"";while(d!==c[0]);o=c[0],c[1]==="www."?r="http://"+c[0]:r=c[0]}return{type:"link",raw:c[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(u){let c=this.rules.inline.text.exec(u);if(c){let o=this.lexer.state.inRawBlock;return{type:"text",raw:c[0],text:c[0],escaped:o}}}},bl=class io{tokens;options;state;inlineQueue;tokenizer;constructor(c){this.tokens=[],this.tokens.links=Object.create(null),this.options=c||hn,this.options.tokenizer=this.options.tokenizer||new Gc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let o={other:kt,block:Hc.normal,inline:ri.normal};this.options.pedantic?(o.block=Hc.pedantic,o.inline=ri.pedantic):this.options.gfm&&(o.block=Hc.gfm,this.options.breaks?o.inline=ri.breaks:o.inline=ri.gfm),this.tokenizer.rules=o}static get rules(){return{block:Hc,inline:ri}}static lex(c,o){return new io(o).lex(c)}static lexInline(c,o){return new io(o).inlineTokens(c)}lex(c){c=c.replace(kt.carriageReturn,`
41
- `),this.blockTokens(c,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let r=this.inlineQueue[o];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(c,o=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(c=c.replace(kt.tabCharGlobal," ").replace(kt.spaceLine,""));let d=1/0;for(;c;){if(c.length<d)d=c.length;else{this.infiniteLoopError(c.charCodeAt(0));break}let h;if(this.options.extensions?.block?.some(y=>(h=y.call({lexer:this},c,o))?(c=c.substring(h.raw.length),o.push(h),!0):!1))continue;if(h=this.tokenizer.space(c)){c=c.substring(h.raw.length);let y=o.at(-1);h.raw.length===1&&y!==void 0?y.raw+=`
42
- `:o.push(h);continue}if(h=this.tokenizer.code(c)){c=c.substring(h.raw.length);let y=o.at(-1);y?.type==="paragraph"||y?.type==="text"?(y.raw+=(y.raw.endsWith(`
43
- `)?"":`
44
- `)+h.raw,y.text+=`
45
- `+h.text,this.inlineQueue.at(-1).src=y.text):o.push(h);continue}if(h=this.tokenizer.fences(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.heading(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.hr(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.blockquote(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.list(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.html(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.def(c)){c=c.substring(h.raw.length);let y=o.at(-1);y?.type==="paragraph"||y?.type==="text"?(y.raw+=(y.raw.endsWith(`
46
- `)?"":`
47
- `)+h.raw,y.text+=`
48
- `+h.raw,this.inlineQueue.at(-1).src=y.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title},o.push(h));continue}if(h=this.tokenizer.table(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.lheading(c)){c=c.substring(h.raw.length),o.push(h);continue}let p=c;if(this.options.extensions?.startBlock){let y=1/0,b=c.slice(1),v;this.options.extensions.startBlock.forEach(z=>{v=z.call({lexer:this},b),typeof v=="number"&&v>=0&&(y=Math.min(y,v))}),y<1/0&&y>=0&&(p=c.substring(0,y+1))}if(this.state.top&&(h=this.tokenizer.paragraph(p))){let y=o.at(-1);r&&y?.type==="paragraph"?(y.raw+=(y.raw.endsWith(`
49
- `)?"":`
50
- `)+h.raw,y.text+=`
51
- `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=y.text):o.push(h),r=p.length!==c.length,c=c.substring(h.raw.length);continue}if(h=this.tokenizer.text(c)){c=c.substring(h.raw.length);let y=o.at(-1);y?.type==="text"?(y.raw+=(y.raw.endsWith(`
52
- `)?"":`
53
- `)+h.raw,y.text+=`
54
- `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=y.text):o.push(h);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return this.state.top=!0,o}inline(c,o=[]){return this.inlineQueue.push({src:c,tokens:o}),o}linkInText(c){if(!c.includes("["))return!1;let o=this.tokenizer.rules.inline.link;for(let r of c.matchAll(this.tokenizer.rules.inline.blockSkip))if(o.test(r[0])&&c.charAt(r.index-1)!=="!")return!0;for(let r of c.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let d=r[0],h=d.lastIndexOf("[");if(!(d.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,d.slice(h+1,-1)))&&!(h>1&&this.linkInText(d.slice(1,h-1))))return!0}return!1}inlineTokens(c,o=[]){this.tokenizer.lexer=this;let r=c;if(this.tokens.links&&c.includes("[")){let y=this.tokenizer.rules.inline.reflinkSearch,b=v=>{let z=v.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,v.slice(z+1,-1)))return v;if(z>1&&v.charAt(0)!=="!"){let O=v.slice(1,z-1);if(this.linkInText(O))return"["+O.replace(y,b)+"]["+"a".repeat(v.length-z-2)+"]"}return"["+"a".repeat(v.length-2)+"]"};r=r.replace(y,b)}r=r.replace(this.tokenizer.rules.inline.anyPunctuation,y=>"+".repeat(y.length)),r=r.replace(this.tokenizer.rules.inline.blockSkip,(y,b,v)=>{let z=v?v.length:0;return y.slice(0,z)+"["+"a".repeat(y.length-z-2)+"]"}),r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let d=!1,h="",p=1/0;for(;c;){if(c.length<p)p=c.length;else{this.infiniteLoopError(c.charCodeAt(0));break}d||(h=""),d=!1;let y;if(this.options.extensions?.inline?.some(v=>(y=v.call({lexer:this},c,o))?(c=c.substring(y.raw.length),o.push(y),!0):!1))continue;if(y=this.tokenizer.escape(c)){c=c.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.tag(c)){c=c.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.link(c)){c=c.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.reflink(c,this.tokens.links)){c=c.substring(y.raw.length);let v=o.at(-1);y.type==="text"&&v?.type==="text"?(v.raw+=y.raw,v.text+=y.text):o.push(y);continue}if(y=this.tokenizer.emStrong(c,r,h)){c=c.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.codespan(c)){c=c.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.br(c)){c=c.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.del(c,r,h)){c=c.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.autolink(c)){c=c.substring(y.raw.length),o.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(c))){c=c.substring(y.raw.length),o.push(y);continue}let b=c;if(this.options.extensions?.startInline){let v=1/0,z=c.slice(1),O;this.options.extensions.startInline.forEach(k=>{O=k.call({lexer:this},z),typeof O=="number"&&O>=0&&(v=Math.min(v,O))}),v<1/0&&v>=0&&(b=c.substring(0,v+1))}if(y=this.tokenizer.inlineText(b)){c=c.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(h=y.raw.slice(-1)),d=!0;let v=o.at(-1);v?.type==="text"?(v.raw+=y.raw,v.text+=y.text):o.push(y);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return o}infiniteLoopError(c){let o="Infinite loop on byte: "+c;if(this.options.silent)console.error(o);else throw new Error(o)}},Xc=class{options;parser;constructor(u){this.options=u||hn}space(u){return""}code({text:u,lang:c,escaped:o}){let r=(c||"").match(kt.notSpaceStart)?.[0],d=u.replace(kt.endingNewline,"")+`
55
- `;return r?'<pre><code class="language-'+Rl(r)+'">'+(o?d:Rl(d,!0))+`</code></pre>
56
- `:"<pre><code>"+(o?d:Rl(d,!0))+`</code></pre>
57
- `}blockquote({tokens:u}){return`<blockquote>
58
- ${this.parser.parse(u)}</blockquote>
59
- `}html({text:u}){return u}def(u){return""}heading({tokens:u,depth:c}){return`<h${c}>${this.parser.parseInline(u)}</h${c}>
60
- `}hr(u){return`<hr>
61
- `}list(u){let c=u.ordered,o=u.start,r="";for(let p=0;p<u.items.length;p++){let y=u.items[p];r+=this.listitem(y)}let d=c?"ol":"ul",h=c&&o!==1?' start="'+o+'"':"";return"<"+d+h+`>
62
- `+r+"</"+d+`>
63
- `}listitem(u){return`<li>${this.parser.parse(u.tokens)}</li>
64
- `}checkbox({checked:u}){return"<input "+(u?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:u}){return`<p>${this.parser.parseInline(u)}</p>
65
- `}table(u){let c="",o="";for(let d=0;d<u.header.length;d++)o+=this.tablecell(u.header[d]);c+=this.tablerow({text:o});let r="";for(let d=0;d<u.rows.length;d++){let h=u.rows[d];o="";for(let p=0;p<h.length;p++)o+=this.tablecell(h[p]);r+=this.tablerow({text:o})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
66
- <thead>
67
- `+c+`</thead>
68
- `+r+`</table>
69
- `}tablerow({text:u}){return`<tr>
70
- ${u}</tr>
71
- `}tablecell(u){let c=this.parser.parseInline(u.tokens),o=u.header?"th":"td";return(u.align?`<${o} align="${u.align}">`:`<${o}>`)+c+`</${o}>
72
- `}strong({tokens:u}){return`<strong>${this.parser.parseInline(u)}</strong>`}em({tokens:u}){return`<em>${this.parser.parseInline(u)}</em>`}codespan({text:u}){return`<code>${Rl(u,!0)}</code>`}br(u){return"<br>"}del({tokens:u}){return`<del>${this.parser.parseInline(u)}</del>`}link({href:u,title:c,tokens:o}){let r=this.parser.parseInline(o),d=mm(u);if(d===null)return r;u=d;let h='<a href="'+u+'"';return c&&(h+=' title="'+Rl(c)+'"'),h+=">"+r+"</a>",h}image({href:u,title:c,text:o,tokens:r}){r&&(o=this.parser.parseInline(r,this.parser.textRenderer));let d=mm(u);if(d===null)return Rl(o);u=d;let h=`<img src="${u}" alt="${Rl(o)}"`;return c&&(h+=` title="${Rl(c)}"`),h+=">",h}text(u){return"tokens"in u&&u.tokens?this.parser.parseInline(u.tokens):"escaped"in u&&u.escaped?u.text:Rl(u.text)}},No=class{strong({text:u}){return u}em({text:u}){return u}codespan({text:u}){return u}del({text:u}){return u}html({text:u}){return u}text({text:u}){return u}link({text:u}){return""+u}image({text:u}){return""+u}br(){return""}checkbox({raw:u}){return u}},Sl=class co{options;renderer;textRenderer;constructor(c){this.options=c||hn,this.options.renderer=this.options.renderer||new Xc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new No}static parse(c,o){return new co(o).parse(c)}static parseInline(c,o){return new co(o).parseInline(c)}parse(c){this.renderer.parser=this;let o="";for(let r=0;r<c.length;r++){let d=c[r];if(this.options.extensions?.renderers?.[d.type]){let p=d,y=this.options.extensions.renderers[p.type].call({parser:this},p);if(y!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(p.type)){o+=y||"";continue}}let h=d;switch(h.type){case"space":{o+=this.renderer.space(h);break}case"hr":{o+=this.renderer.hr(h);break}case"heading":{o+=this.renderer.heading(h);break}case"code":{o+=this.renderer.code(h);break}case"table":{o+=this.renderer.table(h);break}case"blockquote":{o+=this.renderer.blockquote(h);break}case"list":{o+=this.renderer.list(h);break}case"checkbox":{o+=this.renderer.checkbox(h);break}case"html":{o+=this.renderer.html(h);break}case"def":{o+=this.renderer.def(h);break}case"paragraph":{o+=this.renderer.paragraph(h);break}case"text":{o+=this.renderer.text(h);break}default:{let p='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return o}parseInline(c,o=this.renderer){this.renderer.parser=this;let r="";for(let d=0;d<c.length;d++){let h=c[d];if(this.options.extensions?.renderers?.[h.type]){let y=this.options.extensions.renderers[h.type].call({parser:this},h);if(y!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(h.type)){r+=y||"";continue}}let p=h;switch(p.type){case"escape":{r+=o.text(p);break}case"html":{r+=o.html(p);break}case"link":{r+=o.link(p);break}case"image":{r+=o.image(p);break}case"checkbox":{r+=o.checkbox(p);break}case"strong":{r+=o.strong(p);break}case"em":{r+=o.em(p);break}case"codespan":{r+=o.codespan(p);break}case"br":{r+=o.br(p);break}case"del":{r+=o.del(p);break}case"text":{r+=o.text(p);break}default:{let y='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(y),"";throw new Error(y)}}}return r}},hi=class{options;block;constructor(u){this.options=u||hn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(u){return u}postprocess(u){return u}processAllTokens(u){return u}emStrongMask(u){return u}provideLexer(u=this.block){return u?bl.lex:bl.lexInline}provideParser(u=this.block){return u?Sl.parse:Sl.parseInline}},oy=class{defaults=go();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Sl;Renderer=Xc;TextRenderer=No;Lexer=bl;Tokenizer=Gc;Hooks=hi;constructor(...u){this.use(...u)}walkTokens(u,c){let o=[];for(let r of u)switch(o=o.concat(c.call(this,r)),r.type){case"table":{let d=r;for(let h of d.header)o=o.concat(this.walkTokens(h.tokens,c));for(let h of d.rows)for(let p of h)o=o.concat(this.walkTokens(p.tokens,c));break}case"list":{let d=r;o=o.concat(this.walkTokens(d.items,c));break}default:{let d=r;this.defaults.extensions?.childTokens?.[d.type]?this.defaults.extensions.childTokens[d.type].forEach(h=>{let p=d[h].flat(1/0);o=o.concat(this.walkTokens(p,c))}):d.tokens&&(o=o.concat(this.walkTokens(d.tokens,c)))}}return o}use(...u){let c=this.defaults.extensions||{renderers:{},childTokens:{}};return u.forEach(o=>{let r={...o};if(r.async=this.defaults.async||r.async||!1,o.extensions&&(o.extensions.forEach(d=>{if(!d.name)throw new Error("extension name required");if("renderer"in d){let h=c.renderers[d.name];h?c.renderers[d.name]=function(...p){let y=d.renderer.apply(this,p);return y===!1&&(y=h.apply(this,p)),y}:c.renderers[d.name]=d.renderer}if("tokenizer"in d){if(!d.level||d.level!=="block"&&d.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let h=c[d.level];h?h.unshift(d.tokenizer):c[d.level]=[d.tokenizer],d.start&&(d.level==="block"?c.startBlock?c.startBlock.push(d.start):c.startBlock=[d.start]:d.level==="inline"&&(c.startInline?c.startInline.push(d.start):c.startInline=[d.start]))}"childTokens"in d&&d.childTokens&&(c.childTokens[d.name]=d.childTokens)}),r.extensions=c),o.renderer){let d=this.defaults.renderer||new Xc(this.defaults);for(let h in o.renderer){if(!(h in d))throw new Error(`renderer '${h}' does not exist`);if(["options","parser"].includes(h))continue;let p=h,y=o.renderer[p],b=d[p];d[p]=(...v)=>{let z=y.apply(d,v);return z===!1&&(z=b.apply(d,v)),z||""}}r.renderer=d}if(o.tokenizer){let d=this.defaults.tokenizer||new Gc(this.defaults);for(let h in o.tokenizer){if(!(h in d))throw new Error(`tokenizer '${h}' does not exist`);if(["options","rules","lexer"].includes(h))continue;let p=h,y=o.tokenizer[p],b=d[p];d[p]=(...v)=>{let z=y.apply(d,v);return z===!1&&(z=b.apply(d,v)),z}}r.tokenizer=d}if(o.hooks){let d=this.defaults.hooks||new hi;for(let h in o.hooks){if(!(h in d))throw new Error(`hook '${h}' does not exist`);if(["options","block"].includes(h))continue;let p=h,y=o.hooks[p],b=d[p];hi.passThroughHooks.has(h)?d[p]=v=>{if(this.defaults.async&&hi.passThroughHooksRespectAsync.has(h))return(async()=>{let O=await y.call(d,v);return b.call(d,O)})();let z=y.call(d,v);return b.call(d,z)}:d[p]=(...v)=>{if(this.defaults.async)return(async()=>{let O=await y.apply(d,v);return O===!1&&(O=await b.apply(d,v)),O})();let z=y.apply(d,v);return z===!1&&(z=b.apply(d,v)),z}}r.hooks=d}if(o.walkTokens){let d=this.defaults.walkTokens,h=o.walkTokens;r.walkTokens=function(p){let y=[];return y.push(h.call(this,p)),d&&(y=y.concat(d.call(this,p))),y}}this.defaults={...this.defaults,...r}}),this}setOptions(u){return this.defaults={...this.defaults,...u},this}lexer(u,c){return bl.lex(u,c??this.defaults)}parser(u,c){return Sl.parse(u,c??this.defaults)}parseMarkdown(u){return(c,o)=>{let r={...o},d={...this.defaults,...r},h=this.onError(!!d.silent,!!d.async);if(this.defaults.async===!0&&r.async===!1)return h(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof c>"u"||c===null)return h(new Error("marked(): input parameter is undefined or null"));if(typeof c!="string")return h(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(c)+", string expected"));if(d.hooks&&(d.hooks.options=d,d.hooks.block=u),d.async)return(async()=>{let p=d.hooks?await d.hooks.preprocess(c):c,y=await(d.hooks?await d.hooks.provideLexer(u):u?bl.lex:bl.lexInline)(p,d),b=d.hooks?await d.hooks.processAllTokens(y):y;d.walkTokens&&await Promise.all(this.walkTokens(b,d.walkTokens));let v=await(d.hooks?await d.hooks.provideParser(u):u?Sl.parse:Sl.parseInline)(b,d);return d.hooks?await d.hooks.postprocess(v):v})().catch(h);try{d.hooks&&(c=d.hooks.preprocess(c));let p=(d.hooks?d.hooks.provideLexer(u):u?bl.lex:bl.lexInline)(c,d);d.hooks&&(p=d.hooks.processAllTokens(p)),d.walkTokens&&this.walkTokens(p,d.walkTokens);let y=(d.hooks?d.hooks.provideParser(u):u?Sl.parse:Sl.parseInline)(p,d);return d.hooks&&(y=d.hooks.postprocess(y)),y}catch(p){return h(p)}}}onError(u,c){return o=>{if(o.message+=`
73
- Please report this to https://github.com/markedjs/marked.`,u){let r="<p>An error occurred:</p><pre>"+Rl(o.message+"",!0)+"</pre>";return c?Promise.resolve(r):r}if(c)return Promise.reject(o);throw o}}},dn=new oy;function ke(u,c){return dn.parse(u,c)}ke.options=ke.setOptions=function(u){return dn.setOptions(u),ke.defaults=dn.defaults,Um(ke.defaults),ke};ke.getDefaults=go;ke.defaults=hn;function fy(...u){return dn.use(...u),ke.defaults=dn.defaults,Um(ke.defaults),ke}ke.use=fy;ke.walkTokens=function(u,c){return dn.walkTokens(u,c)};ke.parseInline=dn.parseInline;ke.Parser=Sl;ke.parser=Sl.parse;ke.Renderer=Xc;ke.TextRenderer=No;ke.Lexer=bl;ke.lexer=bl.lex;ke.Tokenizer=Gc;ke.Hooks=hi;ke.parse=ke;ke.options;ke.setOptions;ke.walkTokens;ke.parseInline;Sl.parse;bl.lex;function ym(u,c){(c==null||c>u.length)&&(c=u.length);for(var o=0,r=Array(c);o<c;o++)r[o]=u[o];return r}function dy(u){if(Array.isArray(u))return u}function hy(u,c){var o=u==null?null:typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(o!=null){var r,d,h,p,y=[],b=!0,v=!1;try{if(h=(o=o.call(u)).next,c!==0)for(;!(b=(r=h.call(o)).done)&&(y.push(r.value),y.length!==c);b=!0);}catch(z){v=!0,d=z}finally{try{if(!b&&o.return!=null&&(p=o.return(),Object(p)!==p))return}finally{if(v)throw d}}return y}}function my(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
74
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function py(u,c){return dy(u)||hy(u,c)||gy(u,c)||my()}function gy(u,c){if(u){if(typeof u=="string")return ym(u,c);var o={}.toString.call(u).slice(8,-1);return o==="Object"&&u.constructor&&(o=u.constructor.name),o==="Map"||o==="Set"?Array.from(u):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ym(u,c):void 0}}const Zm=Object.entries,xm=Object.setPrototypeOf,vy=Object.isFrozen,yy=Object.getPrototypeOf,xy=Object.getOwnPropertyDescriptor;let ct=Object.freeze,ft=Object.seal,ls=Object.create,Vm=typeof Reflect<"u"&&Reflect,uo=Vm.apply,ro=Vm.construct;ct||(ct=function(c){return c});ft||(ft=function(c){return c});uo||(uo=function(c,o){for(var r=arguments.length,d=new Array(r>2?r-2:0),h=2;h<r;h++)d[h-2]=arguments[h];return c.apply(o,d)});ro||(ro=function(c){for(var o=arguments.length,r=new Array(o>1?o-1:0),d=1;d<o;d++)r[d-1]=arguments[d];return new c(...r)});const on=at(Array.prototype.forEach),by=at(Array.prototype.lastIndexOf),bm=at(Array.prototype.pop),oi=at(Array.prototype.push),Sy=at(Array.prototype.splice),as=Array.isArray,mi=at(String.prototype.toLowerCase),Pr=at(String.prototype.toString),Sm=at(String.prototype.match),fi=at(String.prototype.replace),jm=at(String.prototype.indexOf),jy=at(String.prototype.trim),Ny=at(Number.prototype.toString),Ty=at(Boolean.prototype.toString),Nm=typeof BigInt>"u"?null:at(BigInt.prototype.toString),Tm=typeof Symbol>"u"?null:at(Symbol.prototype.toString),Ut=at(Object.prototype.hasOwnProperty),di=at(Object.prototype.toString),Tt=at(RegExp.prototype.test),rn=ky(TypeError);function at(u){return function(c){c instanceof RegExp&&(c.lastIndex=0);for(var o=arguments.length,r=new Array(o>1?o-1:0),d=1;d<o;d++)r[d-1]=arguments[d];return uo(u,c,r)}}function ky(u){return function(){for(var c=arguments.length,o=new Array(c),r=0;r<c;r++)o[r]=arguments[r];return ro(u,o)}}function xe(u,c){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mi;if(xm&&xm(u,null),!as(c))return u;let r=c.length;for(;r--;){let d=c[r];if(typeof d=="string"){const h=o(d);h!==d&&(vy(c)||(c[r]=h),d=h)}u[d]=!0}return u}function wy(u){for(let c=0;c<u.length;c++)Ut(u,c)||(u[c]=null);return u}function Jt(u){const c=ls(null);for(const r of Zm(u)){var o=py(r,2);const d=o[0],h=o[1];Ut(u,d)&&(as(h)?c[d]=wy(h):h&&typeof h=="object"&&h.constructor===Object?c[d]=Jt(h):c[d]=h)}return c}function Ey(u){switch(typeof u){case"string":return u;case"number":return Ny(u);case"boolean":return Ty(u);case"bigint":return Nm?Nm(u):"0";case"symbol":return Tm?Tm(u):"Symbol()";case"undefined":return di(u);case"function":case"object":{if(u===null)return di(u);const c=u,o=xl(c,"toString");if(typeof o=="function"){const r=o(c);return typeof r=="string"?r:di(r)}return di(u)}default:return di(u)}}function xl(u,c){for(;u!==null;){const r=xy(u,c);if(r){if(r.get)return at(r.get);if(typeof r.value=="function")return at(r.value)}u=yy(u)}function o(){return null}return o}function Ay(u){try{return Tt(u,""),!0}catch{return!1}}const km=ct(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),eo=ct(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),to=ct(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_y=ct(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),lo=ct(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),zy=ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),wm=ct(["#text"]),Em=ct(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ao=ct(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Am=ct(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bc=ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ry=ft(/{{[\w\W]*|^[\w\W]*}}/g),Oy=ft(/<%[\w\W]*|^[\w\W]*%>/g),Dy=ft(/\${[\w\W]*/g),Cy=ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),My=ft(/^aria-[\-\w]+$/),_m=ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Uy=ft(/^(?:\w+script|data):/i),Ly=ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hy=ft(/^html$/i),By=ft(/^[a-z][.\w]*(-[.\w]+)+$/i),zm=ft(/<[/\w!]/g),Rm=ft(/<[/\w]/g),qy=ft(/<\/no(script|embed|frames)/i),Yy=ft(/\/>/i),Kt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Km=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Gy=ct(xe({},Km)),Xy=(function(){const u={};return on(Km,c=>{u[c]=ft(new RegExp("</"+c+"(?=[\\t\\n\\f\\r />])","i"))}),ct(u)})(),$y=function(){return typeof window>"u"?null:window},Qy=function(c,o){if(typeof c!="object"||typeof c.createPolicy!="function")return null;let r=null;const d="data-tt-policy-suffix";o&&o.hasAttribute(d)&&(r=o.getAttribute(d));const h="dompurify"+(r?"#"+r:"");try{return c.createPolicy(h,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+h+" could not be created."),null}},Om=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ma=function(c,o,r,d){return Ut(c,o)&&as(c[o])?xe(d.base?Jt(d.base):{},c[o],d.transform):r},no=function(c,o,r){const d=Ut(c,o)?c[o]:void 0;return d&&typeof d=="object"?Jt(d):r()};function Jm(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$y();const c=q=>Jm(q);if(c.version="3.4.14",c.removed=[],!u||!u.document||u.document.nodeType!==Kt.document||!u.Element)return c.isSupported=!1,c;let o=u.document;const r=o,d=r.currentScript;u.DocumentFragment;const h=u.HTMLTemplateElement,p=u.Node,y=u.Element,b=u.NodeFilter,v=u.NamedNodeMap;v===void 0&&(u.NamedNodeMap||u.MozNamedAttrMap),u.HTMLFormElement;const z=u.DOMParser,O=u.trustedTypes,k=y.prototype,ee=xl(k,"cloneNode"),$=xl(k,"remove"),J=xl(k,"nextSibling"),W=xl(k,"childNodes"),R=xl(k,"parentNode"),we=xl(k,"shadowRoot"),P=xl(k,"attributes"),ne=p&&p.prototype?xl(p.prototype,"nodeType"):null,ie=p&&p.prototype?xl(p.prototype,"nodeName"):null,G=p&&p.prototype?xl(p.prototype,"ownerDocument"):null,F=function(g){return ne?ne(g):g.nodeType},He=function(g){return ie?ie(g):g.nodeName};if(typeof h=="function"){const q=o.createElement("template");q.content&&q.content.ownerDocument&&(o=q.content.ownerDocument)}let Be,At="",_t,dt=!1,Lt=0;const Wt=function(){if(Lt>0)throw rn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ut=function(g){Wt(),Lt++;try{return Be.createHTML(g)}finally{Lt--}},C=function(g){Wt(),Lt++;try{return Be.createScriptURL(g)}finally{Lt--}},X=function(){return dt||(_t=Qy(O,d),dt=!0),_t},ae=o,be=ae.implementation,Ae=ae.createNodeIterator,j=ae.createDocumentFragment,L=ae.getElementsByTagName,Q=r.importNode;let Y=Om();c.isSupported=typeof Zm=="function"&&typeof R=="function"&&be&&be.createHTMLDocument!==void 0;const ce=Ry,fe=Oy,Se=Dy,ht=Cy,$e=My,La=Uy,Ha=Ly,ss=By;let is=_m,je=null;const Ba=xe({},[...km,...eo,...to,...lo,...wm]);let Oe=null;const cs=xe({},[...Em,...ao,...Am,...Bc]);let Ht=Object.seal(ls(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Dl=null,pn=null;const It=Object.seal(ls(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xi=!0,us=!0,St=!1,bi=!0,fl=!1,jl=!0,Ft=!1,rs=!1,qa=null,gn=null,os=!1,Pt=!1,rt=!1,Bt=!1,jt=!0,Si=!1;const ji="user-content-";let fs=!0,la=!1,dl={},hl=null;const Nl=xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ya=null;const aa=xe({},["audio","video","img","source","image","track"]);let Ni=null;const ds=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),na="http://www.w3.org/1998/Math/MathML",Tl="http://www.w3.org/2000/svg",el="http://www.w3.org/1999/xhtml";let Cl=el,vn=!1,yn=null;const hs=xe({},[na,Tl,el],Pr),xn=ct(["mi","mo","mn","ms","mtext"]);let bn=xe({},xn);const ms=ct(["annotation-xml"]);let tl=xe({},ms);const nt=xe({},["title","style","font","a","script"]);let We=null;const sa=["application/xhtml+xml","text/html"],ps="text/html";let Qe=null,ia=null;const Ti=o.createElement("form"),ca=function(g){return g instanceof RegExp||g instanceof Function},Ga=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ia&&ia===g)return;(!g||typeof g!="object")&&(g={}),g=Jt(g),We=sa.indexOf(g.PARSER_MEDIA_TYPE)===-1?ps:g.PARSER_MEDIA_TYPE,Qe=We==="application/xhtml+xml"?Pr:mi,je=Ma(g,"ALLOWED_TAGS",Ba,{transform:Qe}),Oe=Ma(g,"ALLOWED_ATTR",cs,{transform:Qe}),yn=Ma(g,"ALLOWED_NAMESPACES",hs,{transform:Pr}),Ni=Ma(g,"ADD_URI_SAFE_ATTR",ds,{transform:Qe,base:ds}),Ya=Ma(g,"ADD_DATA_URI_TAGS",aa,{transform:Qe,base:aa}),hl=Ma(g,"FORBID_CONTENTS",Nl,{transform:Qe}),Dl=Ma(g,"FORBID_TAGS",Jt({}),{transform:Qe}),pn=Ma(g,"FORBID_ATTR",Jt({}),{transform:Qe}),dl=Ut(g,"USE_PROFILES")?g.USE_PROFILES&&typeof g.USE_PROFILES=="object"?Jt(g.USE_PROFILES):g.USE_PROFILES:!1,xi=g.ALLOW_ARIA_ATTR!==!1,us=g.ALLOW_DATA_ATTR!==!1,St=g.ALLOW_UNKNOWN_PROTOCOLS||!1,bi=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fl=g.SAFE_FOR_TEMPLATES||!1,jl=g.SAFE_FOR_XML!==!1,Ft=g.WHOLE_DOCUMENT||!1,Pt=g.RETURN_DOM||!1,rt=g.RETURN_DOM_FRAGMENT||!1,Bt=g.RETURN_TRUSTED_TYPE||!1,os=g.FORCE_BODY||!1,jt=g.SANITIZE_DOM!==!1,Si=g.SANITIZE_NAMED_PROPS||!1,fs=g.KEEP_CONTENT!==!1,la=g.IN_PLACE||!1,is=Ay(g.ALLOWED_URI_REGEXP)?g.ALLOWED_URI_REGEXP:_m,Cl=typeof g.NAMESPACE=="string"?g.NAMESPACE:el,bn=no(g,"MATHML_TEXT_INTEGRATION_POINTS",()=>xe({},xn)),tl=no(g,"HTML_INTEGRATION_POINTS",()=>xe({},ms));const N=no(g,"CUSTOM_ELEMENT_HANDLING",()=>ls(null));if(Ht=ls(null),Ut(N,"tagNameCheck")&&ca(N.tagNameCheck)&&(Ht.tagNameCheck=N.tagNameCheck),Ut(N,"attributeNameCheck")&&ca(N.attributeNameCheck)&&(Ht.attributeNameCheck=N.attributeNameCheck),Ut(N,"allowCustomizedBuiltInElements")&&typeof N.allowCustomizedBuiltInElements=="boolean"&&(Ht.allowCustomizedBuiltInElements=N.allowCustomizedBuiltInElements),ft(Ht),fl&&(us=!1),rt&&(Pt=!0),dl&&(je=xe({},wm),Oe=ls(null),dl.html===!0&&(xe(je,km),xe(Oe,Em)),dl.svg===!0&&(xe(je,eo),xe(Oe,ao),xe(Oe,Bc)),dl.svgFilters===!0&&(xe(je,to),xe(Oe,ao),xe(Oe,Bc)),dl.mathMl===!0&&(xe(je,lo),xe(Oe,Am),xe(Oe,Bc))),It.tagCheck=null,It.attributeCheck=null,Ut(g,"ADD_TAGS")&&(typeof g.ADD_TAGS=="function"?It.tagCheck=g.ADD_TAGS:as(g.ADD_TAGS)&&(je===Ba&&(je=Jt(je)),xe(je,g.ADD_TAGS,Qe))),Ut(g,"ADD_ATTR")&&(typeof g.ADD_ATTR=="function"?It.attributeCheck=g.ADD_ATTR:as(g.ADD_ATTR)&&(Oe===cs&&(Oe=Jt(Oe)),xe(Oe,g.ADD_ATTR,Qe))),Ut(g,"ADD_FORBID_CONTENTS")&&as(g.ADD_FORBID_CONTENTS)&&(hl===Nl&&(hl=Jt(hl)),xe(hl,g.ADD_FORBID_CONTENTS,Qe)),fs&&(je["#text"]=!0),Ft&&xe(je,["html","head","body"]),je.table&&(xe(je,["tbody"]),delete Dl.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw rn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw rn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const H=Be;Be=g.TRUSTED_TYPES_POLICY;try{At=ut("")}catch(Z){throw Be=H,Z}}else g.TRUSTED_TYPES_POLICY===null?(Be=void 0,At=""):(Be===void 0&&(Be=X()),Be&&typeof At=="string"&&(At=ut("")));ct&&ct(g),ia=g},Ml=xe({},[...eo,...to,..._y]),Ul=xe({},[...lo,...zy]),Xa=function(g,N,H){return N.namespaceURI===el?g==="svg":N.namespaceURI===na?g==="svg"&&(H==="annotation-xml"||bn[H]):!!Ml[g]},ua=function(g,N,H){return N.namespaceURI===el?g==="math":N.namespaceURI===Tl?g==="math"&&tl[H]:!!Ul[g]},Ie=function(g,N,H){return N.namespaceURI===Tl&&!tl[H]||N.namespaceURI===na&&!bn[H]?!1:!Ul[g]&&(nt[g]||!Ml[g])},ki=function(g){let N=R(g);(!N||!N.tagName)&&(N={namespaceURI:Cl,tagName:"template"});const H=mi(g.tagName),Z=mi(N.tagName);return yn[g.namespaceURI]?g.namespaceURI===Tl?Xa(H,N,Z):g.namespaceURI===na?ua(H,N,Z):g.namespaceURI===el?Ie(H,N,Z):!!(We==="application/xhtml+xml"&&yn[g.namespaceURI]):!1},ml=function(g){oi(c.removed,{element:g});try{R(g).removeChild(g)}catch{if($(g),!R(g))throw rn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},kl=function(g,N,H){try{g.removeAttributeNode(N)}catch{try{g.removeAttribute(H)}catch{}}},pl=function(g){$a(g);const N=W(g);if(N){const Z=[];on(N,V=>{oi(Z,V)}),on(Z,V=>{try{$(V)}catch{}})}const H=P(g);if(H)for(let Z=H.length-1;Z>=0;--Z){const V=H[Z],le=V&&V.name;typeof le=="string"&&kl(g,V,le)}},Ll=function(g,N,H){if(!H)try{H=N.getAttributeNode(g)}catch{H=null}oi(c.removed,{attribute:H||null,from:N});try{H?N.removeAttributeNode(H):N.removeAttribute(g)}catch{try{N.removeAttribute(g)}catch{}}if(g==="is")if(Pt||rt)try{ml(N)}catch{}else try{N.setAttribute(g,"")}catch{}},wi=function(g){const N=P(g);if(N)for(let H=N.length-1;H>=0;--H){const Z=N[H],V=Z&&Z.name;typeof V!="string"||Oe[Qe(V)]||kl(g,Z,V)}},$a=function(g){const N=[g];for(;N.length>0;){const H=N.pop();F(H)===Kt.element&&wi(H);const V=W(H);if(V)for(let le=V.length-1;le>=0;--le)N.push(V[le])}},Ei=function(g,N){return jl?g==="patchsrc"?!0:g==="for"&&N!=="label"&&N!=="output":!1},Sn=function(g){if(!jl)return;const N=[g];for(;N.length>0;){const H=N.pop(),Z=F(H);if(Z===Kt.processingInstruction||Z===Kt.comment&&Tt(Rm,H.data)){try{$(H)}catch{}continue}if(Z===Kt.element){const le=H,_e=Qe(He(H));try{le.hasAttribute&&le.hasAttribute("patchsrc")&&le.removeAttribute("patchsrc"),le.hasAttribute&&le.hasAttribute("for")&&Ei("for",_e)&&le.removeAttribute("for")}catch{}}const V=W(H);if(V)for(let le=V.length-1;le>=0;--le)N.push(V[le])}},Qa=function(g){let N=null,H=null;if(os)g="<remove></remove>"+g;else{const le=Sm(g,/^[\r\n\t ]+/);H=le&&le[0]}We==="application/xhtml+xml"&&Cl===el&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const Z=Be?ut(g):g;if(Cl===el)try{N=new z().parseFromString(Z,We)}catch{}if(!N||!N.documentElement){N=be.createDocument(Cl,"template",null);try{N.documentElement.innerHTML=vn?At:Z}catch{}}const V=N.body||N.documentElement;return g&&H&&V.insertBefore(o.createTextNode(H),V.childNodes[0]||null),Cl===el?L.call(N,Ft?"html":"body")[0]:Ft?N.documentElement:V},ll=function(g){const N=G?G(g):g.ownerDocument;return Ae.call(N||g,g,b.SHOW_ELEMENT|b.SHOW_COMMENT|b.SHOW_TEXT|b.SHOW_PROCESSING_INSTRUCTION|b.SHOW_CDATA_SECTION,null)},mt=function(g){return g=fi(g,ce," "),g=fi(g,fe," "),g=fi(g,Se," "),g},jn=function(g){var N;g.normalize();const H=G?G(g):g.ownerDocument,Z=Ae.call(H||g,g,b.SHOW_TEXT|b.SHOW_COMMENT|b.SHOW_CDATA_SECTION|b.SHOW_PROCESSING_INSTRUCTION,null);let V=Z.nextNode();for(;V;)V.data=mt(V.data),V=Z.nextNode();const le=(N=g.querySelectorAll)===null||N===void 0?void 0:N.call(g,"template");le&&on(le,_e=>{wl(_e.content)&&jn(_e.content)})},Nn=function(g){const N=ie?ie(g):null;return typeof N!="string"||Qe(N)!=="form"?!1:typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||g.attributes!==P(g)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function"||g.nodeType!==ne(g)||g.childNodes!==W(g)},wl=function(g){if(!ne||typeof g!="object"||g===null)return!1;try{return ne(g)===Kt.documentFragment}catch{return!1}},ra=function(g){if(!ne||typeof g!="object"||g===null)return!1;try{return typeof ne(g)=="number"}catch{return!1}};function wt(q,g,N){q.length!==0&&on(q,H=>{H.call(c,g,N,ia)})}const Zc=function(g,N){return!!(jl&&g.hasChildNodes()&&!ra(g.firstElementChild)&&Tt(zm,g.textContent)&&Tt(zm,g.innerHTML)||jl&&g.namespaceURI===el&&Gy[N]&&(ra(g.firstElementChild)||typeof g.textContent=="string"&&Tt(Xy[N],g.textContent))||g.nodeType===Kt.processingInstruction||jl&&g.nodeType===Kt.comment&&Tt(Rm,g.data))},pt=function(g,N){if(g instanceof RegExp)return Tt(g,N);if(g instanceof Function){for(var H=arguments.length,Z=new Array(H>2?H-2:0),V=2;V<H;V++)Z[V-2]=arguments[V];return!!g(N,...Z)}return!1},gs=function(g,N,H){if(!Dl[N]&&Bl(N)&&pt(Ht.tagNameCheck,N))return!1;if(fs&&!hl[N]){const Z=R(g),V=W(g);if(V&&Z){const le=V.length;for(let _e=le-1;_e>=0;--_e){const Ue=g===H?ee(V[_e],!0):V[_e];Z.insertBefore(Ue,J(g))}}}return ml(g),!0},vs=function(g,N,H,Z){return g.length===0?N:N===H||N===Z?Jt(N):N},Tn=function(g,N){return g===N||R(g)!==null?!1:(la&&$a(g),!0)},Hl=function(g,N){if(wt(Y.beforeSanitizeElements,g,null),Tn(g,N))return!0;if(Nn(g))return ml(g),!0;const H=Qe(He(g));if(je=vs(Y.uponSanitizeElement,je,Ba,qa),wt(Y.uponSanitizeElement,g,{tagName:H,allowedTags:je}),Tn(g,N))return!0;if(Zc(g,H))return ml(g),!0;if(Dl[H]||!(It.tagCheck instanceof Function&&It.tagCheck(H))&&!je[H]){const V=gs(g,H,N);return V===!1&&wt(Y.afterSanitizeElements,g,null),V}if(F(g)===Kt.element&&!ki(g)||(H==="noscript"||H==="noembed"||H==="noframes")&&Tt(qy,g.innerHTML))return ml(g),!0;if(fl&&g.nodeType===Kt.text){const V=mt(g.textContent);g.textContent!==V&&(oi(c.removed,{element:g.cloneNode()}),g.textContent=V)}return wt(Y.afterSanitizeElements,g,null),!1},ys=function(g,N,H){if(pn[N]||Ei(N,g)||jt&&(N==="id"||N==="name")&&(H in o||H in Ti))return!1;const Z=Oe[N]||It.attributeCheck instanceof Function&&It.attributeCheck(N,g);return us&&Tt(ht,N)||xi&&Tt($e,N)?!0:Z?Ni[N]||Tt(is,fi(H,Ha,""))||(N==="src"||N==="xlink:href"||N==="href")&&g!=="script"&&jm(H,"data:")===0&&Ya[g]||St&&!Tt(La,fi(H,Ha,""))?!0:!H:Bl(g)&&pt(Ht.tagNameCheck,g)&&pt(Ht.attributeNameCheck,N,g)||N==="is"&&Ht.allowCustomizedBuiltInElements&&pt(Ht.tagNameCheck,H)},Ai=xe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Bl=function(g){return!Ai[mi(g)]&&Tt(ss,g)},Vc=function(g,N,H,Z){if(Be&&typeof O=="object"&&typeof O.getAttributeType=="function"&&!H)switch(O.getAttributeType(g,N)){case"TrustedHTML":return ut(Z);case"TrustedScriptURL":return C(Z)}return Z},_i=function(g,N,H,Z){try{H?g.setAttributeNS(H,N,Z):g.setAttribute(N,Z),Nn(g)?ml(g):bm(c.removed)}catch{Ll(N,g)}},xs=function(g){wt(Y.beforeSanitizeAttributes,g,null);const N=g.attributes;if(!N||Nn(g))return;Oe=vs(Y.uponSanitizeAttribute,Oe,cs,gn);const H={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe,forceKeepAttr:void 0};let Z=N.length;const V=Qe(g.nodeName);for(;Z--;){const le=N[Z],_e=le.name,Ue=le.namespaceURI,gt=le.value,Fe=Qe(_e),qt=gt;let st=_e==="value"?qt:jy(qt);if(H.attrName=Fe,H.attrValue=st,H.keepAttr=!0,H.forceKeepAttr=void 0,wt(Y.uponSanitizeAttribute,g,H),st=H.attrValue,Si&&(Fe==="id"||Fe==="name")&&jm(st,ji)!==0&&(Ll(_e,g,le),st=ji+st),jl&&Tt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,st)){Ll(_e,g,le);continue}if(Fe==="attributename"&&Sm(st,"href")){Ll(_e,g,le);continue}if(!H.forceKeepAttr){if(!H.keepAttr){Ll(_e,g,le);continue}if(!bi&&Tt(Yy,st)){Ll(_e,g,le);continue}if(fl&&(st=mt(st)),!ys(V,Fe,st)){Ll(_e,g,le);continue}st=Vc(V,Fe,Ue,st),st!==qt&&_i(g,_e,Ue,st)}}wt(Y.afterSanitizeAttributes,g,null)},oa=function(g){let N=null;const H=ll(g);for(wt(Y.beforeSanitizeShadowDOM,g,null);N=H.nextNode();)if(wt(Y.uponSanitizeShadowNode,N,null),Hl(N,g),xs(N),wl(N.content)&&oa(N.content),F(N)===Kt.element){const Z=we(N);wl(Z)&&(bs(Z),oa(Z))}wt(Y.afterSanitizeShadowDOM,g,null)},bs=function(g){const N=[{node:g,shadow:null}];for(;N.length>0;){const H=N.pop();if(H.shadow){oa(H.shadow);continue}const Z=H.node,le=F(Z)===Kt.element,_e=W(Z);if(_e)for(let Ue=_e.length-1;Ue>=0;--Ue)N.push({node:_e[Ue],shadow:null});if(le){const Ue=ie?ie(Z):null;if(typeof Ue=="string"&&Qe(Ue)==="template"){const gt=Z.content;wl(gt)&&N.push({node:gt,shadow:null})}}if(le){const Ue=we(Z);wl(Ue)&&N.push({node:null,shadow:Ue},{node:Ue,shadow:null})}}};return c.sanitize=function(q){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=null,H=null,Z=null,V=null;if(vn=!q,vn&&(q="<!-->"),typeof q!="string"&&!ra(q)&&(q=Ey(q),typeof q!="string"))throw rn("dirty is not a string, aborting");if(!c.isSupported)return q;rs?(je=qa,Oe=gn):Ga(g),(Y.uponSanitizeElement.length>0||Y.uponSanitizeAttribute.length>0)&&(je=Jt(je)),Y.uponSanitizeAttribute.length>0&&(Oe=Jt(Oe)),c.removed=[];const le=la&&typeof q!="string"&&ra(q);if(le){Sn(q);const gt=He(q);if(typeof gt=="string"){const Fe=Qe(gt);if(!je[Fe]||Dl[Fe])throw pl(q),rn("root node is forbidden and cannot be sanitized in-place")}if(Nn(q))throw pl(q),rn("root node is clobbered and cannot be sanitized in-place");try{bs(q)}catch(Fe){throw pl(q),Fe}}else if(ra(q))N=Qa("<!---->"),H=N.ownerDocument.importNode(q,!0),H.nodeType===Kt.element&&H.nodeName==="BODY"||H.nodeName==="HTML"?N=H:N.appendChild(H),bs(H);else{if(!Pt&&!fl&&!Ft&&q.indexOf("<")===-1)return Be&&Bt?ut(q):q;if(N=Qa(q),!N)return Pt?null:Bt?At:""}N&&os&&ml(N.firstChild);const _e=le?q:N;try{const gt=ll(_e);for(;Z=gt.nextNode();)Hl(Z,_e),xs(Z),wl(Z.content)&&oa(Z.content)}catch(gt){throw le&&(pl(q),on(c.removed,Fe=>{Fe.element&&$a(Fe.element)})),gt}if(le)return on(c.removed,gt=>{gt.element&&$a(gt.element)}),fl&&jn(q),q;if(Pt){if(fl&&jn(N),rt)for(V=j.call(N.ownerDocument);N.firstChild;)V.appendChild(N.firstChild);else V=N;return(Oe.shadowroot||Oe.shadowrootmode)&&(V=Q.call(r,V,!0)),V}let Ue=Ft?N.outerHTML:N.innerHTML;return Ft&&je["!doctype"]&&N.ownerDocument&&N.ownerDocument.doctype&&N.ownerDocument.doctype.name&&Tt(Hy,N.ownerDocument.doctype.name)&&(Ue="<!DOCTYPE "+N.ownerDocument.doctype.name+`>
75
- `+Ue),fl&&(Ue=mt(Ue)),Be&&Bt?ut(Ue):Ue},c.setConfig=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ga(q),rs=!0,qa=je,gn=Oe},c.clearConfig=function(){ia=null,rs=!1,qa=null,gn=null,Be=_t,At=""},c.isValidAttribute=function(q,g,N){ia||Ga({});const H=Qe(q),Z=Qe(g);return ys(H,Z,N)},c.addHook=function(q,g){typeof g=="function"&&Ut(Y,q)&&oi(Y[q],g)},c.removeHook=function(q,g){if(Ut(Y,q)){if(g!==void 0){const N=by(Y[q],g);return N===-1?void 0:Sy(Y[q],N,1)[0]}return bm(Y[q])}},c.removeHooks=function(q){Ut(Y,q)&&(Y[q]=[])},c.removeAllHooks=function(){Y=Om()},c}var yi=Jm();const Zy=[{id:"claude",label:"claude",hint:"Claude Code via ACP"},{id:"codex",label:"codex",hint:"Codex (ChatGPT) via ACP"},{id:"pi",label:"pi",hint:"pi coding agent"}];function Vy({id:u}){const c=Xe("/api/chats",!1),o=(c?.chats??[]).filter(r=>r.scope.kind!=="team");return s.jsxs("div",{className:"runs-screen",children:[s.jsxs("aside",{className:"runs-side",children:[s.jsxs("div",{className:"side-head",children:[s.jsx("span",{className:"microlabel",children:"chats"}),s.jsx("span",{className:"spacer"}),s.jsx(ye,{href:"/chats",className:"open-raw",children:"+ new"})]}),s.jsxs("div",{className:"side-list",children:[o.map(r=>s.jsxs(ye,{href:`/chats/${r.id}`,className:`side-row ${r.id===u?"active":""}`,children:[s.jsx("span",{className:`lamp ${r.busy?"running":"pending"}`}),s.jsxs("div",{className:"side-row-body",children:[s.jsxs("div",{className:"side-row-top",children:[s.jsx("span",{className:"side-wf",children:r.title||"new chat"}),s.jsx("span",{className:"side-when num",children:Ol(r.updatedAt)})]}),s.jsx("div",{className:"side-row-sub",children:s.jsxs("span",{className:"side-req",children:[r.agent,r.scope.kind==="run"?` · ${r.scope.runId}`:r.scope.kind==="kraftwerk"?" · kraftwerk":r.scope.kind==="knowledge"?` · knowledge${r.scope.bundle?`:${r.scope.bundle}`:""}`:""]})})]})]},r.id)),c&&o.length===0&&s.jsx("div",{className:"viewer-note",children:"no chats yet"})]})]}),s.jsx("div",{className:"runs-main chat-main",children:u?s.jsx(Wm,{id:u},u):s.jsx(Ky,{})})]})}async function mn(u,c){const r=await(await fetch("/api/chats",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({agent:u,scope:c})})).json();r.id&&Ua(r.scope?.kind==="team"?`/team/${encodeURIComponent(r.scope.member)}/chat/${r.id}`:`/chats/${r.id}`)}function Ky(){const[u,c]=B.useState("claude"),[o,r]=B.useState(!0),[d,h]=B.useState(!1);return s.jsxs("div",{className:"new-chat",children:[s.jsx("div",{className:"page-head",children:s.jsx("h1",{children:"new chat"})}),s.jsxs("section",{className:"panel new-chat-panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"agent"})}),s.jsx("div",{className:"agent-pick",children:Zy.map(p=>s.jsxs("button",{className:`agent-pick-btn ${u===p.id?"active":""}`,onClick:()=>c(p.id),children:[s.jsx("b",{children:p.label}),s.jsx("span",{children:p.hint})]},p.id))}),s.jsx("div",{className:"run-opts",style:{padding:"0 16px 14px"},children:s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:o,onChange:p=>r(p.target.checked)}),"kraftwerk-aware",s.jsx("span",{className:"opt-hint",children:"— agent gets workflows + recent runs as context"})]})}),s.jsx("div",{style:{padding:"0 16px 16px"},children:s.jsx("button",{className:"run-btn",disabled:d,onClick:async()=>{h(!0),await mn(u,{kind:o?"kraftwerk":"general"}),h(!1)},children:d?"starting…":"start chat"})})]})]})}function Wm({id:u}){const[c,o]=B.useState(null),[r,d]=B.useState([]),[h,p]=B.useState(!1);B.useEffect(()=>{let b=!0,v=null;return fetch(`/api/chats/${u}`).then(z=>z.ok?z.json():Promise.reject()).then(z=>{if(!b)return;o(z.meta),d(z.events);const O=z.events[z.events.length-1]?.seq??0;v=new EventSource(`/api/chats/${u}/events?after=${O}`),v.onmessage=k=>{const ee=JSON.parse(k.data);d($=>$.some(J=>J.seq===ee.seq)?$:[...$,ee])}}).catch(()=>b&&p(!0)),()=>{b=!1,v?.close()}},[u]);const y=B.useMemo(()=>{for(let b=r.length-1;b>=0;b--){const v=r[b].type;if(v==="user_message")return!0;if(v==="turn_end"||v==="error")return!1}return!1},[r]);return h?s.jsx("div",{className:"empty",children:"chat not found"}):c?s.jsxs("div",{className:"chat-thread",children:[s.jsxs("div",{className:"detail-head",children:[s.jsx("span",{className:`lamp ${y?"running":"ok"}`}),s.jsx("h1",{children:c.title||"new chat"}),s.jsx("span",{className:"chip agent",children:c.agent}),c.scope.kind==="run"&&s.jsx(ye,{href:`/runs/${c.scope.runId}`,className:"chip",children:c.scope.runId}),c.scope.kind==="kraftwerk"&&s.jsx("span",{className:"chip",children:"kraftwerk-aware"}),c.scope.kind==="knowledge"&&s.jsxs(ye,{href:c.scope.bundle?`/knowledge/${encodeURIComponent(c.scope.bundle)}`:"/knowledge",className:"chip",children:["knowledge",c.scope.bundle?`:${c.scope.bundle}`:""]}),c.scope.kind==="team"&&s.jsxs(ye,{href:`/team/${encodeURIComponent(c.scope.member)}`,className:"chip",children:["team:",c.scope.member]}),s.jsx("span",{className:"rid",title:c.cwd,children:c.cwd})]}),s.jsx(Wy,{id:u,events:r,busy:y}),s.jsx(ex,{id:u,busy:y,scope:c.scope})]}):s.jsx("div",{className:"empty",children:"loading…"})}function Jy(u){const c=[],o=new Map,r=new Map;for(const d of u){const h=c[c.length-1];switch(d.type){case"user_message":c.push({kind:"user",text:d.text,key:`e${d.seq}`});break;case"text":h?.kind==="agent"?h.text+=d.text:c.push({kind:"agent",text:d.text,key:`e${d.seq}`});break;case"thought":h?.kind==="thought"?h.text+=d.text:c.push({kind:"thought",text:d.text,key:`e${d.seq}`});break;case"tool_call":o.set(d.callId,c.length),c.push({kind:"tool",callId:d.callId,title:d.title,toolKind:d.kind,status:d.status,key:`e${d.seq}`});break;case"tool_update":{const p=o.get(d.callId);if(p!=null){const y=c[p];d.title&&(y.title=d.title),d.status&&(y.status=d.status)}break}case"permission_request":r.set(d.requestId,c.length),c.push({kind:"permission",requestId:d.requestId,title:d.title,options:d.options,resolved:void 0,key:`e${d.seq}`});break;case"permission_resolved":{const p=r.get(d.requestId);p!=null&&(c[p].resolved=d.optionId);break}case"error":c.push({kind:"error",text:d.message,key:`e${d.seq}`});break}}return c}function Wy({id:u,events:c,busy:o}){const r=B.useMemo(()=>Jy(c),[c]),d=B.useRef(null),h=B.useRef(!0);return B.useEffect(()=>{const p=d.current;p&&h.current&&(p.scrollTop=p.scrollHeight)},[r,o]),s.jsxs("div",{className:"chat-scroll",ref:d,onScroll:p=>{const y=p.currentTarget;h.current=y.scrollHeight-y.scrollTop-y.clientHeight<60},children:[r.length===0&&s.jsx("div",{className:"empty",children:"say something — the agent starts on your first message"}),r.map(p=>s.jsx(Fy,{b:p,chatId:u},p.key)),o&&s.jsxs("div",{className:"chat-working",children:[s.jsx("span",{className:"lamp running"})," working…"]})]})}function Iy({text:u}){const c=B.useMemo(()=>yi.sanitize(ke.parse(u,{async:!1})),[u]);return s.jsx("div",{className:"msg agent md-body chat-md",dangerouslySetInnerHTML:{__html:c}})}function Fy({b:u,chatId:c}){switch(u.kind){case"user":return s.jsx("div",{className:"msg user",children:u.text});case"agent":return s.jsx(Iy,{text:u.text});case"thought":return s.jsxs("details",{className:"msg thought",children:[s.jsx("summary",{children:"thinking"}),s.jsx("div",{children:u.text})]});case"tool":return s.jsxs("div",{className:`tool-card ${u.status??""}`,children:[s.jsx("span",{className:`lamp ${u.status==="completed"?"ok":u.status==="failed"?"failed":"running"}`}),u.toolKind&&s.jsx("span",{className:"chip tool-kind",children:u.toolKind}),s.jsx("span",{className:"tool-title",children:u.title})]});case"permission":return s.jsx(Py,{b:u,chatId:c});case"error":return s.jsxs("div",{className:"msg error",children:["✕ ",u.text]})}}function Py({b:u,chatId:c}){const[o,r]=B.useState(!1),d=u.resolved===void 0;async function h(p){r(!0),await fetch(`/api/chats/${c}/permission`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({requestId:u.requestId,optionId:p})}).catch(()=>{}),r(!1)}return s.jsxs("div",{className:`perm-card ${d?"pending":""}`,children:[s.jsxs("div",{className:"perm-title",children:[s.jsx("span",{className:"microlabel",children:"permission"})," ",u.title]}),d?s.jsx("div",{className:"perm-actions",children:u.options.map(p=>s.jsx("button",{className:`perm-btn ${p.kind?.startsWith("allow")?"allow":"deny"}`,disabled:o,onClick:()=>h(p.optionId),children:p.name},p.optionId))}):s.jsx("div",{className:"perm-resolved",children:u.resolved?`→ ${u.options.find(p=>p.optionId===u.resolved)?.name??u.resolved}`:"→ dismissed"})]})}function ex({id:u,busy:c,scope:o}){const[r,d]=B.useState(""),[h,p]=B.useState([]),[y,b]=B.useState(0),[v,z]=B.useState(!1);B.useEffect(()=>{let R=!0;return(async()=>{try{let P=(await fetch("/api/skills").then(ne=>ne.json())).skills??[];if(o?.kind==="team"){const ne=await fetch(`/api/team/${encodeURIComponent(o.member)}`).then(ie=>ie.ok?ie.json():null).catch(()=>null);if(ne&&Array.isArray(ne.skills)){const ie=new Set(ne.skills.map(G=>G.toLowerCase()));P=P.filter(G=>ie.has(G.name.toLowerCase()))}}R&&p(P)}catch{}})(),()=>{R=!1}},[u]);const O=/^\/([\w-]*)$/.exec(r)?.[1],k=O!==void 0&&!v?h.filter(R=>R.name.toLowerCase().startsWith(O.toLowerCase())):[],ee=k.length>0,$=Math.min(y,k.length-1);function J(R){d(`/${R.name} `),b(0)}async function W(){const R=r.trim();!R||c||(d(""),await fetch(`/api/chats/${u}/message`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:R})}).catch(()=>{}))}return s.jsxs("div",{className:"composer",children:[ee&&s.jsx("div",{className:"skill-menu",children:k.map((R,we)=>s.jsxs("button",{className:we===$?"active":"",onMouseDown:P=>{P.preventDefault(),J(R)},children:[s.jsxs("b",{children:["/",R.name]}),R.description&&s.jsxs("span",{children:[" — ",R.description]}),s.jsx("span",{className:"skill-src",children:R.source})]},R.name))}),s.jsx("textarea",{value:r,placeholder:c?"agent is working…":"message · Enter to send, Shift+Enter for newline, / for skills",rows:Math.min(6,Math.max(1,r.split(`
76
- `).length)),onChange:R=>{d(R.target.value),b(0),z(!1)},onKeyDown:R=>{if(ee){if(R.key==="ArrowDown")return R.preventDefault(),b(($+1)%k.length);if(R.key==="ArrowUp")return R.preventDefault(),b(($-1+k.length)%k.length);if(R.key==="Tab"||R.key==="Enter")return R.preventDefault(),J(k[$]);if(R.key==="Escape")return R.preventDefault(),z(!0)}R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),W())}}),c?s.jsx("button",{className:"stop-btn",onClick:()=>fetch(`/api/chats/${u}/cancel`,{method:"POST"}).catch(()=>{}),children:"■ stop"}):s.jsx("button",{className:"run-btn",disabled:!r.trim(),onClick:W,children:"send"})]})}function tx({id:u}){const c=Xe("/api/runs",!0),o=c?.runs??[];return s.jsxs("div",{className:"runs-screen",children:[s.jsxs("aside",{className:"runs-side",children:[s.jsxs("div",{className:"side-head",children:[s.jsx("span",{className:"microlabel",children:"runs"}),s.jsx("span",{className:"spacer"}),s.jsx("span",{className:"microlabel num",children:o.length})]}),s.jsxs("div",{className:"side-list",children:[o.map(r=>s.jsx(lx,{r,active:r.id===u},r.id)),c&&o.length===0&&s.jsx("div",{className:"viewer-note",children:"no runs yet"})]})]}),s.jsx("div",{className:"runs-main",children:s.jsx(ax,{id:u},u)})]})}function lx({r:u,active:c}){return s.jsxs(ye,{href:`/runs/${u.id}`,className:`side-row ${c?"active":""}`,children:[s.jsx($c,{status:u.status}),s.jsxs("div",{className:"side-row-body",children:[s.jsxs("div",{className:"side-row-top",children:[s.jsx("span",{className:"side-wf",children:u.workflow??"unknown"}),s.jsx("span",{className:"side-when num",children:Ol(u.startedAt)})]}),s.jsxs("div",{className:"side-row-sub",children:[s.jsx("span",{className:"side-req",title:u.request,children:u.status==="running"&&u.currentPhase?`▸ ${u.currentPhase}`:u.request??""}),s.jsx("span",{className:"side-meta num",children:u.status==="running"?s.jsx(po,{since:u.startedAt}):pi(u.durationMs)})]})]})]})}function ax({id:u}){const c=Xe(`/api/runs/${u}`,!0),o=c?.status==="running",[r,d]=B.useState(null),[h,p]=B.useState(!1);if(!c)return s.jsx("div",{className:"empty",children:"loading…"});const y=c.files.some(z=>z.name==="runner.json"),b=r??(o?"run":"artifacts");async function v(){p(!0),await fetch(`/api/runs/${u}/stop`,{method:"POST"}).catch(()=>{})}return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"detail-head",children:[s.jsx($c,{status:c.status}),s.jsx("h1",{children:c.workflow?s.jsx(ye,{href:`/workflows/${encodeURIComponent(c.workflow)}`,title:"open workflow",children:c.workflow}):"unknown workflow"}),s.jsx(mv,{status:c.status}),y&&s.jsx("span",{className:"chip sandbox-chip",children:"⬒ sandbox"}),s.jsx("span",{className:"rid",children:u.replace(/^run-/,"")}),o&&y&&s.jsx("button",{className:"stop-btn",onClick:v,disabled:h,children:h?"stopping…":"■ stop"}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"open-raw",title:"chat with an agent about this run",onClick:()=>{mn("claude",{kind:"run",runId:u})},children:"⌬ discuss"}),s.jsxs("nav",{className:"tabs",children:[s.jsx("button",{className:b==="run"?"active":"",onClick:()=>d("run"),children:"run"}),s.jsxs("button",{className:b==="artifacts"?"active":"",onClick:()=>d("artifacts"),children:["artifacts ",s.jsxs("span",{className:"num",children:["(",c.files.length,")"]})]})]})]}),c.request&&s.jsx("p",{className:"detail-req",children:c.request}),b==="run"?s.jsx(nx,{run:c,live:o}):s.jsx(ux,{id:u,files:c.files,live:o})]})}function nx({run:u,live:c}){return s.jsxs("div",{className:"run-tab",children:[s.jsxs("div",{className:"statgrid",children:[s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"microlabel",children:"phases"}),s.jsxs("div",{className:"v num",children:[u.phasesDone,u.phasesTotal!=null?` / ${u.phasesTotal}`:""]})]}),s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"microlabel",children:"duration"}),s.jsx("div",{className:"v num",children:c?s.jsx(po,{since:u.startedAt}):pi(u.durationMs)})]}),s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"microlabel",children:"cost"}),s.jsx("div",{className:"v num",children:ho(u.costUsd??sx(u.phases))})]}),s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"microlabel",children:"tokens in / out"}),s.jsxs("div",{className:"v num",children:[qc(Dm(u.phases,"tokensIn"))," / ",qc(Dm(u.phases,"tokensOut"))]})]})]}),s.jsxs("section",{className:"panel",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:"phase timeline"}),s.jsx("span",{className:"spacer"}),c&&s.jsxs("span",{className:"live-note",children:[s.jsx("span",{className:"lamp running"})," live · polling"]})]}),s.jsx("div",{className:"phases",children:u.phases.map(o=>s.jsx(ix,{p:o},o.phase))})]})]})}function Dm(u,c){return u.reduce((o,r)=>o+(r[c]??0),0)}function sx(u){return u.reduce((c,o)=>c+(o.costUsd??0),0)}function ix({p:u}){const c=u.gates.filter(o=>!o.passed);return s.jsxs("div",{className:"phase-row",children:[s.jsx($c,{status:u.status}),s.jsxs("div",{className:"phase-top",children:[s.jsx("span",{className:"phase-name",children:u.phase}),u.kind==="agent"?s.jsxs("span",{className:"chip agent",children:[u.agent,u.model?` · ${u.model}`:""]}):s.jsx("span",{className:"chip",children:"script"}),s.jsxs("span",{className:"right num",children:[u.attempts>1&&s.jsxs("span",{children:["att ",u.attempts]}),u.status==="running"?s.jsx(po,{since:u.startedAt}):u.durationMs!=null&&s.jsx("span",{children:pi(u.durationMs)}),u.kind==="agent"&&u.tokensIn!=null&&s.jsxs("span",{children:[qc(u.tokensIn)," / ",qc(u.tokensOut)]}),u.costUsd!=null&&u.costUsd>0&&s.jsx("span",{children:ho(u.costUsd)})]})]}),u.status==="running"&&u.lastActivity&&s.jsx("div",{className:"phase-activity",children:u.lastActivity}),u.summary&&u.status!=="running"&&s.jsx("div",{className:"phase-sub",children:u.summary}),u.gates.length>0&&s.jsx("div",{className:"gate-line",children:u.gates.map(o=>s.jsxs("span",{className:`gate ${o.passed?"":"failed"}`,title:o.failure??"",children:[o.passed?"✓":"✕"," ",o.gate]},o.gate))}),c.map(o=>s.jsx("div",{className:"gate-fail-msg",children:o.failure},o.gate))]})}const cx=new Set(["png","jpg","jpeg","gif","webp","svg"]);function ux({id:u,files:c,live:o}){const[r,d]=B.useState(null);return B.useEffect(()=>{if(r||c.length===0)return;d(["report.html","recommendation.md","trace.jsonl"].find(p=>c.some(y=>y.name===p))??c[0].name)},[c,r]),s.jsxs("div",{className:"art-layout",children:[s.jsxs("section",{className:"panel art-files",children:[s.jsx("div",{className:"panel-head",children:s.jsxs("span",{className:"microlabel",children:["files ",s.jsxs("span",{className:"num",children:["(",c.length,")"]})]})}),s.jsxs("div",{className:"file-list",children:[c.map(h=>s.jsxs("button",{className:`file-row ${r===h.name?"active":""}`,onClick:()=>d(h.name),children:[s.jsx("span",{className:"fname",children:h.name}),s.jsx("span",{className:"fsize num",children:mo(h.size)})]},h.name)),c.length===0&&s.jsx("div",{className:"viewer-note",children:"no files yet"})]})]}),s.jsxs("section",{className:"panel art-viewer",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:r??"viewer"}),s.jsx("span",{className:"spacer"}),r&&s.jsx("a",{className:"open-raw",href:`/api/runs/${u}/file?name=${encodeURIComponent(r)}&raw=1`,target:"_blank",children:"open raw ↗"})]}),r?s.jsx(rx,{id:u,name:r,live:o}):s.jsx("div",{className:"empty",children:"select a file"})]})]})}function rx({id:u,name:c,live:o}){const r=c.split(".").pop()?.toLowerCase()??"",d=`/api/runs/${u}/file?name=${encodeURIComponent(c)}&raw=1`;return r==="html"?s.jsx("div",{className:"viewer",children:s.jsx("div",{className:"viewer-body",children:s.jsx("iframe",{src:d,sandbox:"allow-scripts",allow:"clipboard-write",title:c})})}):cx.has(r)?s.jsx("div",{className:"viewer",children:s.jsx("div",{className:"viewer-body",children:s.jsx("img",{src:d,alt:c})})}):r==="md"||r==="markdown"?s.jsx(ox,{id:u,name:c,live:o}):s.jsx(fx,{id:u,name:c,live:o})}function ox({id:u,name:c,live:o}){const[r,d]=B.useState("rendered"),h=Xe(`/api/runs/${u}/file?name=${encodeURIComponent(c)}`,o),p=B.useMemo(()=>h?yi.sanitize(ke.parse(h.content,{async:!1})):"",[h?.content]);return s.jsxs("div",{className:"viewer",children:[s.jsxs("div",{className:"viewer-note md-toolbar",children:[s.jsxs("div",{className:"tabs",children:[s.jsx("button",{className:r==="rendered"?"active":"",onClick:()=>d("rendered"),children:"rendered"}),s.jsx("button",{className:r==="source"?"active":"",onClick:()=>d("source"),children:"source"})]}),h?.truncated&&s.jsxs("span",{children:["large file — showing the last ",mo(4e5)]})]}),s.jsx("div",{className:"viewer-body",children:h?r==="rendered"?s.jsx("div",{className:"md-body",dangerouslySetInnerHTML:{__html:p}}):s.jsx("pre",{children:h.content||"(empty)"}):s.jsx("pre",{children:"loading…"})})]})}function fx({id:u,name:c,live:o}){const r=Xe(`/api/runs/${u}/file?name=${encodeURIComponent(c)}`,o);return s.jsxs("div",{className:"viewer",children:[r?.truncated&&s.jsxs("div",{className:"viewer-note",children:["large file — showing the last ",mo(4e5)]}),s.jsx("div",{className:"viewer-body",children:s.jsx("pre",{children:r?r.content||"(empty)":"loading…"})})]})}function dx(){const u=Xe("/api/workflows",!1),c=u?.workflows??[];return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:"Workflows"}),s.jsxs("span",{className:"count num",children:[c.length," discovered"]}),u?.root&&s.jsx("span",{className:"count mono",children:u.root})]}),u&&c.length===0&&s.jsxs("div",{className:"empty",children:["No workflows found — expected ",s.jsx("code",{children:"src/workflows/"})," or ",s.jsx("code",{children:"workflows/"})," ","next to the output folder."]}),s.jsx("div",{className:"wf-grid",children:c.map(o=>s.jsxs(ye,{href:`/workflows/${o.slug}`,className:"wf-card",children:[s.jsxs("div",{className:"wf-card-head",children:[s.jsx("span",{className:"wf-name",children:o.name??o.slug}),o.error&&s.jsx("span",{className:"status-word failed",children:"broken"})]}),s.jsx("p",{className:"wf-desc",children:o.error??o.description??""}),s.jsxs("div",{className:"wf-meta num",children:[s.jsxs("span",{children:[o.agents," agents"]}),s.jsx("span",{children:"·"}),s.jsxs("span",{children:[o.steps," steps"]})]})]},o.slug))})]})}function hx({slug:u}){const c=Xe(`/api/workflows/${encodeURIComponent(u)}`,!1),o=Xe("/api/runs",!1);if(!c)return s.jsx("div",{className:"empty",children:"loading…"});if(c.error)return s.jsxs(s.Fragment,{children:[s.jsx(Cm,{slug:c.slug}),s.jsxs("div",{className:"empty",children:[s.jsx("span",{className:"status-word failed",children:"broken workflow"}),s.jsx("pre",{style:{marginTop:12,textAlign:"left"},children:c.error})]})]});const r=new Map(c.agents.map((h,p)=>[h.id,p%4])),d=(o?.runs??[]).filter(h=>h.workflow===c.name).slice(0,8);return s.jsxs(s.Fragment,{children:[s.jsx(Cm,{slug:c.slug}),s.jsxs("div",{className:"detail-head",children:[s.jsx("h1",{children:c.name??c.slug}),s.jsx("span",{className:"rid mono",children:c.dir})]}),c.description&&s.jsx("p",{className:"detail-req",children:c.description}),s.jsxs("div",{className:"statgrid",children:[s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"microlabel",children:"agents"}),s.jsx("div",{className:"v num",children:c.agents.length})]}),s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"microlabel",children:"steps"}),s.jsxs("div",{className:"v num",children:[c.steps.length," ",s.jsxs("span",{style:{color:"var(--muted)",fontWeight:400},children:["(",c.steps.filter(h=>h.kind==="agent").length," agent ·"," ",c.steps.filter(h=>h.kind==="script").length," script)"]})]})]}),c.workspace&&s.jsxs("div",{className:"stat",style:{maxWidth:420},children:[s.jsx("div",{className:"microlabel",children:"workspace"}),s.jsx("div",{className:"wf-workspace mono",children:c.workspace})]})]}),s.jsx(mx,{slug:c.slug,lastRequest:d[0]?.request}),s.jsxs("section",{className:"panel",style:{marginBottom:18},children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"agents"})}),s.jsxs("div",{className:"agent-grid",children:[c.agents.map(h=>s.jsx(px,{a:h,idx:r.get(h.id)??0},h.id)),c.agents.length===0&&s.jsx("div",{className:"viewer-note",children:"no agents — script-only workflow"})]})]}),s.jsxs("div",{className:"columns",children:[s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"pipeline"})}),s.jsx("div",{className:"pipeline",children:c.steps.map((h,p)=>s.jsx(gx,{s:h,i:p,idx:h.agent?r.get(h.agent)??0:null},h.name))})]}),s.jsxs("div",{style:{display:"grid",gap:18},children:[s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsxs("span",{className:"microlabel",children:["folder ",s.jsxs("span",{className:"num",children:["(",c.files.length," files)"]})]})}),s.jsx("div",{className:"file-list",children:c.files.map(h=>s.jsx("div",{className:"file-row",style:{cursor:"default"},children:s.jsx("span",{className:"fname",children:h})},h))})]}),s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsxs("span",{className:"microlabel",children:["recent runs ",s.jsxs("span",{className:"num",children:["(",d.length,")"]})]})}),s.jsxs("div",{className:"file-list",children:[d.map(h=>s.jsxs(ye,{href:`/runs/${h.id}`,className:"file-row",children:[s.jsx($c,{status:h.status}),s.jsx("span",{className:"fname",children:h.id.replace(/^run-/,"")}),s.jsxs("span",{className:"fsize num",children:[pi(h.durationMs)," · ",ho(h.costUsd)," · ",Ol(h.startedAt)]})]},h.id)),d.length===0&&s.jsx("div",{className:"viewer-note",children:"no runs of this workflow yet"})]})]})]})]})]})}function mx({slug:u,lastRequest:c}){const[o,r]=B.useState(""),[d,h]=B.useState(!0),[p,y]=B.useState(!1),[b,v]=B.useState(!1),[z,O]=B.useState(null),k=Xe(`/api/workflows/${encodeURIComponent(u)}/run`,!1);B.useEffect(()=>{!o&&c&&r(c)},[c]);const ee=k?.available&&k?.image,$=k?k.available?k.image?"isolated container per run":"image missing — run `kraftwerk runner build`":"Docker not running — sandbox unavailable":"";async function J(){if(!(!o.trim()||b)){v(!0),O(null);try{const W=await fetch(`/api/workflows/${encodeURIComponent(u)}/run`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({request:o.trim(),sandbox:d,ssh:p})}),R=await W.json();if(!W.ok)throw new Error(R.error??`HTTP ${W.status}`);Ua(`/runs/${R.runId}`)}catch(W){O(W.message),v(!1)}}}return s.jsxs("section",{className:"panel run-panel",style:{marginBottom:18},children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"trigger run"})}),s.jsxs("div",{className:"run-form",children:[s.jsx("input",{type:"text",value:o,placeholder:"request — topic, URL, host …",onChange:W=>r(W.target.value),onKeyDown:W=>W.key==="Enter"&&J()}),s.jsx("button",{className:"run-btn",onClick:J,disabled:b||!o.trim()||d&&!ee,children:b?"starting…":d?"▶ run in sandbox":"▶ run locally"})]}),s.jsxs("div",{className:"run-opts",children:[s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:d,onChange:W=>h(W.target.checked)}),"docker sandbox ",$&&s.jsxs("span",{className:"opt-hint",children:["— ",$]})]}),s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:p,onChange:W=>y(W.target.checked),disabled:!d}),"forward SSH agent"]})]}),z&&s.jsx("div",{className:"gate-fail-msg",children:z})]})}function Cm({slug:u}){return s.jsxs("nav",{className:"crumbs",children:[s.jsx(ye,{href:"/workflows",children:"workflows"}),s.jsx("span",{className:"sep",children:"/"}),s.jsx("span",{className:"mono",children:u})]})}function px({a:u,idx:c}){return s.jsxs("div",{className:`agent-card aid-${c}`,children:[s.jsxs("div",{className:"agent-head",children:[s.jsx("span",{className:"agent-dot"}),s.jsx("b",{children:u.name??u.id}),s.jsxs("code",{className:"agent-id",children:["[",u.id,"]"]}),s.jsx("span",{className:"spacer"}),s.jsxs("span",{className:"chip",children:[u.model??"default",u.effort?` · ${u.effort}`:""]})]}),u.tools.length>0&&s.jsx("div",{className:"agent-tools",children:u.tools.map(o=>s.jsx("span",{className:"tool-chip",children:o},o))}),u.persona&&s.jsx("p",{className:"agent-persona",children:u.persona})]})}function gx({s:u,i:c,idx:o}){const r=u.kind==="script"?u.script:u.prompt;return s.jsxs("div",{className:"step-node",children:[s.jsx("div",{className:`step-index num ${o!=null?`aid-${o}`:"is-script"}`,children:c+1}),s.jsxs("div",{className:"step-body",children:[s.jsxs("div",{className:"phase-top",children:[s.jsx("span",{className:"phase-name",children:u.name}),u.kind==="agent"?s.jsxs("span",{className:`chip agent-chip aid-${o??0}`,children:["agent · ",u.agent]}):s.jsxs("span",{className:"chip",children:["script",u.sourceRef?` · ${u.sourceRef}`:""]})]}),r&&s.jsxs("details",{className:"step-source",children:[s.jsx("summary",{children:u.kind==="agent"?"prompt":"script"}),s.jsx("pre",{children:r})]}),u.gates.length>0&&s.jsx("div",{className:"gate-line",children:u.gates.map(d=>s.jsxs("span",{className:"gate neutral",children:["⛨ ",d]},d))})]})]})}const Im=u=>u==="ok"?"ok":u==="running"?"running":u==="aborted"?"aborted":"failed";function Fm(u){return u.scope.kind==="team"?`/team/${u.scope.member}/chat/${u.id}`:`/chats/${u.id}`}function Pm(u){switch(u.scope.kind){case"team":return u.scope.member;case"run":return u.scope.runId;case"knowledge":return u.scope.bundle?`knowledge:${u.scope.bundle}`:"knowledge";case"kraftwerk":return"kraftwerk-aware";default:return"general"}}function vx(){const u=Xe("/api/runs",!1),c=Xe("/api/chats",!1),o=Xe("/api/workflows",!1),r=Xe("/api/knowledge",!1),d=Xe("/api/team",!1),h=Xe("/api/skills",!1),p=u?.runs??[],y=c?.chats??[],b=r?.bundles??[],v=y.filter(k=>k.busy),z=b.reduce((k,ee)=>k+ee.concepts,0),O=(h?.skills??[]).filter(k=>k.source==="workspace");return s.jsxs("div",{className:"dash",children:[s.jsx("div",{className:"page-head",children:s.jsx("h1",{children:"dashboard"})}),s.jsx(yx,{members:d?.members,chats:y}),s.jsxs("div",{className:"dash-stats",children:[s.jsx(ts,{href:"/workflows",label:"workflows",value:o?o.workflows.length:void 0}),s.jsx(ts,{href:"/runs",label:"workflow runs",value:u?p.length:void 0,sub:p.some(k=>k.status==="running")?`${p.filter(k=>k.status==="running").length} running`:void 0}),s.jsx(ts,{href:"/team",label:"agents",value:d?d.members.length:void 0}),s.jsx(ts,{href:"/knowledge",label:"knowledge",value:r?b.length:void 0,sub:r?`${z} concepts`:void 0}),s.jsx(ts,{href:"/skills",label:"skills",value:h?O.length:void 0,sub:"workspace"}),s.jsx(ts,{href:"/chats",label:"sessions",value:c?y.length:void 0,sub:v.length>0?`${v.length} active`:void 0})]}),s.jsxs("div",{className:"dash-cols",children:[s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"active sessions"})}),v.length===0?s.jsx("div",{className:"viewer-note",children:"nothing running right now"}):s.jsx("div",{className:"m3-list",children:v.map(k=>s.jsxs(ye,{href:Fm(k),className:"m3-row m3-link",children:[s.jsx("span",{className:"lamp running"}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:k.title||"new chat"}),s.jsxs("span",{className:"m3-sub",children:[k.agent," · ",Pm(k)]})]}),s.jsx("span",{className:"side-when num",children:Ol(k.updatedAt)}),s.jsx("span",{className:"m3-chev",children:"›"})]},k.id))})]}),s.jsxs("section",{className:"panel",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:"recent runs"}),s.jsx("span",{className:"spacer"}),s.jsx(ye,{href:"/runs",className:"open-raw",children:"all runs"})]}),p.length===0?s.jsx("div",{className:"viewer-note",children:"no runs yet"}):s.jsx("div",{className:"m3-list",children:p.slice(0,8).map(k=>s.jsxs(ye,{href:`/runs/${k.id}`,className:"m3-row m3-link",children:[s.jsx("span",{className:`lamp ${Im(k.status)}`}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:k.workflow??k.id}),s.jsx("span",{className:"m3-sub",children:k.request||k.id})]}),s.jsx("span",{className:"side-when num",children:Ol(k.updatedAt)}),s.jsx("span",{className:"m3-chev",children:"›"})]},k.id))})]})]}),s.jsx(xx,{runs:p,chats:y,bundles:b})]})}function yx({members:u,chats:c}){return u&&u.length===0?s.jsx("section",{className:"panel dash-team-empty",children:s.jsxs("div",{className:"viewer-note",children:["No agent teammates yet — ",s.jsx(ye,{href:"/team/new",children:"create your first agent"})," and it will show up here, ready to chat."]})}):s.jsx("div",{className:"dash-team",children:(u??[]).map(o=>{const r=c.filter(p=>p.scope.kind==="team"&&p.scope.member===o.slug),d=r.find(p=>p.busy),h=r[0];return s.jsxs("div",{className:"dash-member",children:[s.jsxs(ye,{href:`/team/${encodeURIComponent(o.slug)}`,className:"dash-member-id",children:[s.jsx("span",{className:"dash-member-emoji",children:o.emoji}),s.jsxs("span",{className:"dash-member-name",children:[o.name,s.jsx("span",{className:`lamp ${d?"running":"ok"}`})]}),s.jsx("span",{className:"dash-member-desc",children:o.description||"(no description yet)"})]}),s.jsxs("div",{className:"dash-member-foot",children:[s.jsx("span",{className:"dash-member-state",children:d?s.jsx(ye,{href:`/team/${encodeURIComponent(o.slug)}/chat/${d.id}`,children:"working…"}):h?`last active ${Ol(h.updatedAt)}`:"never talked yet"}),s.jsx("button",{className:"run-btn dash-chat-btn",onClick:()=>{mn("claude",{kind:"team",member:o.slug})},children:"💬 chat"})]})]},o.slug)})})}function ts({href:u,label:c,value:o,sub:r}){return s.jsxs(ye,{href:u,className:"dash-stat",children:[s.jsx("span",{className:"dash-num num",children:o??"…"}),s.jsx("span",{className:"microlabel",children:c}),r&&s.jsx("span",{className:"dash-sub",children:r})]})}function xx({runs:u,chats:c,bundles:o}){const r=B.useMemo(()=>{const d=[];for(const h of u)d.push({at:h.updatedAt,kind:"run",title:h.workflow??h.id,sub:`${h.status}${h.request?` · ${h.request}`:""}`,href:`/runs/${h.id}`,lamp:Im(h.status)});for(const h of c)d.push({at:h.updatedAt,kind:"session",title:h.title||"new chat",sub:`${h.agent} · ${Pm(h)}`,href:Fm(h),lamp:h.busy?"running":"ok"});for(const h of o)h.updatedAt&&d.push({at:h.updatedAt,kind:"knowledge",title:h.name,sub:`${h.concepts} concepts`,href:`/knowledge/${encodeURIComponent(h.name)}`,lamp:"ok"});return d.sort((h,p)=>p.at.localeCompare(h.at)).slice(0,12)},[u,c,o]);return s.jsxs("section",{className:"panel dash-feed",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"recent changes"})}),r.length===0?s.jsx("div",{className:"viewer-note",children:"nothing yet — run a workflow or start a session"}):s.jsx("div",{className:"m3-list",children:r.map(d=>s.jsxs(ye,{href:d.href,className:"m3-row m3-link",children:[s.jsx("span",{className:`lamp ${d.lamp}`}),s.jsx("span",{className:`chip dash-kind ${d.kind}`,children:d.kind}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:d.title}),s.jsx("span",{className:"m3-sub",children:d.sub})]}),s.jsx("span",{className:"side-when num",children:Ol(d.at)}),s.jsx("span",{className:"m3-chev",children:"›"})]},`${d.kind}:${d.href}:${d.at}`))})]})}function bx({bundle:u,conceptId:c}){const o=Xe("/api/knowledge",!1),r=o?.bundles??[];return s.jsxs("div",{className:"runs-screen",children:[s.jsxs("aside",{className:"runs-side",children:[s.jsxs("div",{className:"side-head",children:[s.jsx("span",{className:"microlabel",children:"bundles"}),s.jsx("span",{className:"spacer"}),s.jsx(ye,{href:"/knowledge",className:"open-raw",children:"+ new"})]}),s.jsxs("div",{className:"side-list",children:[r.map(d=>s.jsxs(ye,{href:`/knowledge/${encodeURIComponent(d.name)}`,className:`side-row ${d.name===u?"active":""}`,children:[s.jsx("span",{className:"lamp ok"}),s.jsxs("div",{className:"side-row-body",children:[s.jsxs("div",{className:"side-row-top",children:[s.jsx("span",{className:"side-wf",children:d.name}),s.jsx("span",{className:"side-when num",children:d.concepts})]}),s.jsx("div",{className:"side-row-sub",children:s.jsxs("span",{className:"side-req",children:[d.okfVersion?`okf ${d.okfVersion}`:"okf",d.updatedAt?` · ${d.updatedAt.slice(0,10)}`:""]})})]})]},d.name)),o&&r.length===0&&s.jsx("div",{className:"viewer-note",children:"no bundles yet"})]})]}),s.jsx("div",{className:"runs-main",children:u&&c?s.jsx(Ax,{bundle:u,conceptId:c},`${u}/${c}`):u?s.jsx(jx,{name:u},u):s.jsx(Sx,{root:o?.root})})]})}function Sx({root:u}){const[c,o]=B.useState(""),[r,d]=B.useState(""),[h,p]=B.useState(!1);async function y(){const b=c.trim();if(!b)return;p(!0),d("");const z=await(await fetch("/api/knowledge",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:b})})).json();p(!1),z.error?d(z.error):window.location.hash=`/knowledge/${encodeURIComponent(b)}`}return s.jsxs("div",{className:"new-chat",children:[s.jsx("div",{className:"page-head",children:s.jsx("h1",{children:"context & knowledge"})}),s.jsxs("section",{className:"panel new-chat-panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"what lives here"})}),s.jsxs("div",{className:"know-intro",children:["Curated knowledge as ",s.jsx("b",{children:"OKF bundles"})," (Open Knowledge Format v0.2): plain markdown files with YAML frontmatter",u?s.jsxs(s.Fragment,{children:[" under ",s.jsx("code",{children:u})]}):null,", readable by humans and agents, diffable in git. Agents write through"," ",s.jsx("code",{children:"kraftwerk knowledge put"})," (provenance is stamped automatically); you raise a concept's trust tier by verifying it here."]}),s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"new bundle"})}),s.jsxs("div",{className:"know-newbundle",children:[s.jsx("input",{value:c,placeholder:"bundle name, e.g. customer-support",onChange:b=>o(b.target.value),onKeyDown:b=>b.key==="Enter"&&void y()}),s.jsx("button",{className:"run-btn",disabled:!c.trim()||h,onClick:y,children:h?"creating…":"create"})]}),r&&s.jsxs("div",{className:"msg error",children:["✕ ",r]})]})]})}function oo({tier:u}){return s.jsx("span",{className:`chip trust ${u}`,children:u})}function jx({name:u}){const c=Xe(`/api/knowledge/${encodeURIComponent(u)}`,!1);return c?"error"in c?s.jsx("div",{className:"empty",children:"bundle not found"}):s.jsxs("div",{className:"member-view",children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:u}),s.jsxs("span",{className:"count",children:[c.concepts.length," concepts"]}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"run-btn",onClick:()=>{mn("claude",{kind:"knowledge",bundle:u})},children:"curate in chat"})]}),s.jsx("section",{className:"panel",children:c.concepts.length===0?s.jsxs("div",{className:"viewer-note",children:["No concepts yet — start a chat to author some, or write one with"," ",s.jsxs("code",{children:["kraftwerk knowledge put ",u,"/<path>"]}),"."]}):s.jsx("div",{className:"m3-list",children:Ex(c.concepts).map(({folder:o,concepts:r})=>s.jsxs(B.Fragment,{children:[o&&s.jsxs("div",{className:"m3-subhead",children:[o,"/"]}),r.map(d=>s.jsxs(ye,{href:`/knowledge/${encodeURIComponent(u)}/${d.id}`,className:"m3-row m3-link",children:[s.jsx("span",{className:"m3-ico",children:Nx(d.type)}),s.jsxs("span",{className:"m3-body",children:[s.jsxs("span",{className:"m3-head",children:[d.title,d.status!=="stable"&&s.jsx("span",{className:`chip ${d.status}`,children:d.status}),d.stale&&s.jsx("span",{className:"chip stale",children:"stale"}),d.error&&s.jsx("span",{className:"chip stale",title:d.error,children:"invalid"})]}),s.jsxs("span",{className:"m3-sub",children:[s.jsxs("code",{children:[o?d.id.slice(o.length+1):d.id,".md"]})," · ",d.type??"untyped"]})]}),s.jsx(oo,{tier:d.trustTier}),s.jsx("span",{className:"m3-chev",children:"›"})]},d.id))]},o||"."))})}),c.log&&s.jsx(wx,{name:u,log:c.log})]}):s.jsx("div",{className:"empty",children:"loading…"})}function Nx(u){switch((u??"").toLowerCase()){case"reference":return"▤";case"policy":return"§";case"guide":case"howto":return"➤";case"decision":return"⚖";default:return"◆"}}function Tx(u){const c=[];for(const o of u.split(`
77
- `)){const r=o.match(/^##\s+(\d{4}-\d{2}-\d{2})/);if(r){c.push({date:r[1],entries:[]});continue}const d=o.match(/^[*-]\s+\*\*([^*]+)\*\*:\s*(.*)$/);d&&c.length>0&&c[c.length-1].entries.push({kind:d[1].toLowerCase(),text:d[2]})}return c.filter(o=>o.entries.length>0)}function kx(u,c){const o=[],r=/\[([^\]]+)\]\(\/?([^)]+?)\.md\)/g;let d=0,h;for(;h=r.exec(c);)h.index>d&&o.push(c.slice(d,h.index)),o.push(s.jsx(ye,{href:`/knowledge/${encodeURIComponent(u)}/${h[2].replace(/^\//,"")}`,children:h[1]},h.index)),d=h.index+h[0].length;return d<c.length&&o.push(c.slice(d)),o}function wx({name:u,log:c}){const o=Tx(c),[r,d]=B.useState(!1);return s.jsxs("section",{className:"panel",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:"activity"}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"open-raw",onClick:()=>d(!r),children:r?"timeline":"raw log"})]}),r||o.length===0?s.jsx("div",{className:"viewer-body",children:s.jsx("pre",{children:c})}):s.jsx("div",{className:"know-log",children:o.map(h=>s.jsxs(B.Fragment,{children:[s.jsx("div",{className:"m3-subhead num",children:h.date}),h.entries.map((p,y)=>s.jsxs("div",{className:"know-log-row",children:[s.jsx("span",{className:`chip log-kind log-${p.kind}`,children:p.kind}),s.jsx("span",{className:"know-log-text",children:kx(u,p.text)})]},y))]},h.date))})]})}function Ex(u){const c=new Map;for(const o of u){const r=o.id.includes("/")?o.id.slice(0,o.id.lastIndexOf("/")):"";(c.get(r)??c.set(r,[]).get(r)).push(o)}return[...c.keys()].sort((o,r)=>o===""?-1:r===""?1:o.localeCompare(r)).map(o=>({folder:o,concepts:c.get(o)}))}function Ax({bundle:u,conceptId:c}){const[o,r]=B.useState(null),[d,h]=B.useState(!1),[p,y]=B.useState(!1),[b,v]=B.useState(!1),[z,O]=B.useState(""),[k,ee]=B.useState(!1),[$,J]=B.useState(""),[W,R]=B.useState("rendered"),we=B.useMemo(()=>o?yi.sanitize(ke.parse(o.body,{async:!1})):"",[o?.body]),P=()=>{fetch(`/api/knowledge/${encodeURIComponent(u)}/concept?id=${encodeURIComponent(c)}`).then(G=>G.ok?G.json():Promise.reject()).then(r).catch(()=>h(!0))};B.useEffect(P,[u,c]);async function ne(){y(!0),await fetch(`/api/knowledge/${encodeURIComponent(u)}/verify`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:c})}).catch(()=>{}),y(!1),P()}async function ie(){ee(!0),J("");const G=await fetch(`/api/knowledge/${encodeURIComponent(u)}/concept`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:c,content:z})}).then(F=>F.json()).catch(()=>({error:"save failed"}));ee(!1),G.error?J(G.error):(r(G),v(!1))}return d?s.jsx("div",{className:"empty",children:"concept not found"}):o?s.jsxs("div",{className:"member-view",children:[s.jsxs("div",{className:"detail-head",children:[s.jsx("h1",{children:o.title}),o.type&&s.jsx("span",{className:"chip agent",children:o.type}),s.jsx(oo,{tier:o.trustTier}),o.status!=="stable"&&s.jsx("span",{className:`chip ${o.status}`,children:o.status}),o.stale&&s.jsxs("span",{className:"chip stale",children:["stale since ",o.staleAfter?.slice(0,10)]}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"open-raw",onClick:()=>{mn("claude",{kind:"knowledge",bundle:u})},children:"curate in chat"}),s.jsx("button",{className:"run-btn",disabled:p,onClick:ne,children:p?"verifying…":"✓ verify (human)"})]}),o.error&&s.jsxs("div",{className:"msg error",children:["✕ ",o.error]}),s.jsxs("div",{className:"detail-cols",children:[s.jsxs("section",{className:"panel",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:"content"}),s.jsx("span",{className:"spacer"}),s.jsxs("span",{className:"side-meta",children:[u,"/",o.id,".md"]}),b?s.jsxs(s.Fragment,{children:[s.jsx("button",{className:"open-raw",onClick:()=>{v(!1),J("")},children:"cancel"}),s.jsx("button",{className:"open-raw",disabled:k,onClick:ie,children:k?"saving…":"✓ save"})]}):s.jsx("button",{className:"open-raw",onClick:()=>{O(o.raw),v(!0),J("")},children:"✎ edit"})]}),b?s.jsxs(s.Fragment,{children:[s.jsx("textarea",{className:"concept-edit",value:z,rows:Math.min(40,Math.max(18,z.split(`
78
- `).length+2)),onChange:G=>O(G.target.value),spellCheck:!1}),s.jsxs("div",{className:"viewer-note",children:["full file (frontmatter + markdown body) — saving stamps provenance as"," ",s.jsx("code",{children:"human:user"})," and logs an update."]})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"viewer-note md-toolbar",children:s.jsxs("div",{className:"tabs",children:[s.jsx("button",{className:W==="rendered"?"active":"",onClick:()=>R("rendered"),children:"rendered"}),s.jsx("button",{className:W==="source"?"active":"",onClick:()=>R("source"),children:"source"})]})}),s.jsx("div",{className:"viewer-body",children:W==="rendered"?s.jsx("div",{className:"md-body concept-md",dangerouslySetInnerHTML:{__html:we}}):s.jsx("pre",{children:o.body.trim()||"(empty body)"})})]}),$&&s.jsxs("div",{className:"msg error",children:["✕ ",$]})]}),s.jsxs("aside",{className:"detail-rail",children:[s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"about"})}),s.jsxs("div",{className:"rail-list",children:[s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"trust"}),s.jsx("span",{className:"v",children:s.jsx(oo,{tier:o.trustTier})})]}),s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"generated"}),s.jsx("span",{className:`v ${o.generated?"":"dim"}`,children:o.generated?`${o.generated.by??"?"} · ${(o.generated.at??"?").slice(0,10)}`:"not stamped"})]}),s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"verified"}),o.verified.length===0?s.jsx("span",{className:"v dim",children:"never"}):o.verified.map((G,F)=>s.jsxs("span",{className:"v",children:[G.by??"?"," · ",(G.at??"?").slice(0,10)]},F))]}),o.staleAfter&&s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"stale after"}),s.jsxs("span",{className:`v ${o.stale?"":"dim"}`,children:[o.staleAfter.slice(0,10),o.stale&&s.jsx("span",{className:"chip stale",children:"stale"})]})]}),o.tags.length>0&&s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"tags"}),s.jsx("span",{className:"m3-chips",children:o.tags.map(G=>s.jsx("span",{className:"chip",children:G},G))})]})]})]}),o.sources.length>0&&s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"sources"})}),s.jsx("div",{className:"rail-list",children:o.sources.map((G,F)=>s.jsxs("div",{className:"rail-kv",children:[s.jsxs("span",{className:"v",children:[G.resource?.startsWith("http")?s.jsx("a",{href:G.resource,target:"_blank",rel:"noreferrer",children:G.title??G.resource}):G.title??G.resource??"?",G.id&&s.jsxs("span",{className:"know-id",children:["[^",G.id,"]"]})]}),s.jsx("span",{className:"v dim",children:[G.author,G.usage_count!=null?`${G.usage_count} uses`:null,G.last_modified?`mod ${G.last_modified.slice(0,10)}`:null].filter(Boolean).join(" · ")})]},F))})]})]})]})]}):s.jsx("div",{className:"empty",children:"loading…"})}const _x={workspace:"workspace",project:".claude",user:"global"};function ep(u){return s.jsx("span",{className:`chip skill-src ${u}`,children:_x[u]})}function zx({name:u}){const c=Xe("/api/skills",!1),o=c?.skills??[],r=o.filter(p=>p.source==="workspace"),d=o.filter(p=>p.source!=="workspace"),h=p=>s.jsxs(ye,{href:`/skills/${encodeURIComponent(p.name)}`,className:`side-row ${p.name===u?"active":""}`,children:[s.jsx("span",{className:`lamp ${p.source==="workspace"?"ok":"dim"}`}),s.jsxs("div",{className:"side-row-body",children:[s.jsxs("div",{className:"side-row-top",children:[s.jsxs("span",{className:"side-wf",children:["/",p.name]}),p.source!=="workspace"&&ep(p.source)]}),s.jsx("div",{className:"side-row-sub",children:s.jsx("span",{className:"side-req",children:p.description||"no description"})})]})]},`${p.source}:${p.name}`);return s.jsxs("div",{className:"runs-screen",children:[s.jsxs("aside",{className:"runs-side",children:[s.jsx("div",{className:"side-head",children:s.jsx("span",{className:"microlabel",children:"workspace skills"})}),s.jsxs("div",{className:"side-list",children:[r.map(h),c&&r.length===0&&s.jsx("div",{className:"viewer-note",children:"no workspace skills yet"}),d.length>0&&s.jsxs(B.Fragment,{children:[s.jsx("div",{className:"side-head skills-local-head",children:s.jsx("span",{className:"microlabel",children:"local (this machine / repo)"})}),d.map(h)]})]})]}),s.jsx("div",{className:"runs-main",children:u?s.jsx(Ox,{name:u},u):s.jsx(Rx,{root:c?.root,workspace:r})})]})}function Rx({root:u,workspace:c}){return s.jsxs("div",{className:"new-chat",children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:"skills"}),s.jsxs("span",{className:"count",children:[c.length," in workspace"]})]}),s.jsxs("section",{className:"panel new-chat-panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"what lives here"})}),s.jsxs("div",{className:"know-intro",children:["Skills are reusable ",s.jsx("b",{children:"instruction packages"}),": one folder per skill with a"," ",s.jsx("code",{children:"SKILL.md"})," (YAML frontmatter: name, description). ",s.jsx("b",{children:"Workspace skills"}),u?s.jsxs(s.Fragment,{children:[" live under ",s.jsx("code",{children:u})]}):null,", are tracked in git and shared with everyone in this workspace — they are the ones to build on. Skills from"," ",s.jsx("code",{children:".claude/skills"})," and your personal ",s.jsx("code",{children:"~/.claude/skills"})," also work here, but stay repo-/machine-local. Invoke any skill in a session with"," ",s.jsx("code",{children:"/<name>"}),"."]}),s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"add a workspace skill"})}),s.jsxs("div",{className:"know-intro",children:["Create ",s.jsxs("code",{children:[u?`${u}/`:"skills/","<name>/SKILL.md"]}),", commit it, done — it appears here and in every session's ",s.jsx("code",{children:"/"})," menu."]})]})]})}function Ox({name:u}){const[c,o]=B.useState(null),[r,d]=B.useState(!1),[h,p]=B.useState("rendered"),y=B.useMemo(()=>c?c.content.replace(/^---\r?\n[\s\S]*?\r?\n---(\r?\n|$)/,""):"",[c?.content]),b=B.useMemo(()=>c?yi.sanitize(ke.parse(y,{async:!1})):"",[y]);return B.useEffect(()=>{fetch(`/api/skills/${encodeURIComponent(u)}`).then(v=>v.ok?v.json():Promise.reject()).then(o).catch(()=>d(!0))},[u]),r?s.jsx("div",{className:"empty",children:"skill not found"}):c?s.jsxs("div",{className:"member-view",children:[s.jsxs("div",{className:"detail-head",children:[s.jsxs("h1",{children:["/",c.name]}),ep(c.source)]}),c.description&&s.jsx("div",{className:"know-intro skill-desc",children:c.description}),s.jsxs("div",{className:"detail-cols",children:[s.jsxs("section",{className:"panel",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:"SKILL.md"}),s.jsx("span",{className:"spacer"}),s.jsxs("div",{className:"tabs",children:[s.jsx("button",{className:h==="rendered"?"active":"",onClick:()=>p("rendered"),children:"rendered"}),s.jsx("button",{className:h==="source"?"active":"",onClick:()=>p("source"),children:"source"})]})]}),s.jsx("div",{className:"viewer-body",children:h==="rendered"?s.jsx("div",{className:"md-body concept-md",dangerouslySetInnerHTML:{__html:b}}):s.jsx("pre",{children:c.content.trim()||"(empty)"})})]}),s.jsx("aside",{className:"detail-rail",children:s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"about"})}),s.jsxs("div",{className:"rail-list",children:[s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"source"}),s.jsx("span",{className:"v",children:c.source==="workspace"?"workspace — git-tracked, shared with the team":c.source==="project"?"repo .claude/skills — tracked, but outside the workspace root":"global ~/.claude/skills — only on this machine"})]}),s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"path"}),s.jsx("span",{className:"v mono skill-path",title:c.path,children:c.path})]}),s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"invoke"}),s.jsxs("span",{className:"v",children:[s.jsxs("code",{children:["/",c.name]})," in any session"]})]}),c.files.length>0&&s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"bundled files"}),c.files.map(v=>s.jsx("span",{className:"v mono",children:v},v))]})]})]})})]})]}):s.jsx("div",{className:"empty",children:"loading…"})}const Dx=["","low","medium","high","xhigh","max"],Cx=["🤖","🧑‍💻","🎧","🛠️","📊","✍️","🔍","🧹","📦","🚀"];function Mx({seg:u}){const c=u[0]&&u[0]!=="new"?decodeURIComponent(u[0]):void 0,o=u[0]==="new"?"new":u[1]==="edit"?"edit":u[1]==="chat"?"chat":c?"member":"home",r=o==="chat"?u[2]:void 0,d=Xe("/api/team",!1),h=d?.members??[];let p;o==="new"?p=s.jsx(Mm,{},"new"):o==="edit"&&c?p=s.jsx(Mm,{slug:c},c):o==="chat"&&c&&r?p=s.jsx("div",{className:"chat-main",children:s.jsx(Wm,{id:r},r)}):c?p=s.jsx(Bx,{slug:c},c):p=s.jsx(Hx,{hasMembers:h.length>0,root:d?.root});const y=(o==="member"||o==="chat")&&c?h.find(J=>J.slug===c)?.knowledge??[]:[],[b,v]=B.useState(()=>localStorage.getItem("kw-kside")!=="hidden"),[z,O]=B.useState(()=>Number(localStorage.getItem("kw-kside-w"))||460),k=y.length>0&&b;function ee(J){v(J),localStorage.setItem("kw-kside",J?"open":"hidden")}function $(J){O(J),localStorage.setItem("kw-kside-w",String(J))}return s.jsxs("div",{className:`runs-screen team-screen ${c?"has-sessions":""} ${k?"has-knowledge":""}`,style:k?{"--kside-w":`${z}px`}:void 0,children:[s.jsxs("aside",{className:"runs-side",children:[s.jsxs("div",{className:"side-head",children:[s.jsx("span",{className:"microlabel",children:"agents"}),s.jsx("span",{className:"spacer"}),s.jsx(ye,{href:"/team/new",className:"open-raw",children:"+ new"})]}),s.jsxs("div",{className:"side-list",children:[h.map(J=>s.jsxs(ye,{href:`/team/${encodeURIComponent(J.slug)}`,className:`side-row ${J.slug===c?"active":""}`,children:[s.jsx("span",{className:"team-emoji",children:J.emoji}),s.jsxs("div",{className:"side-row-body",children:[s.jsx("div",{className:"side-row-top",children:s.jsx("span",{className:"side-wf",children:J.name})}),s.jsx("div",{className:"side-row-sub",children:s.jsx("span",{className:"side-req",children:J.description||J.harness})})]})]},J.slug)),d&&h.length===0&&s.jsx("div",{className:"viewer-note",children:"no agents yet"})]})]}),c&&s.jsx(Lx,{slug:c,chatId:r}),s.jsx("div",{className:"runs-main",children:p}),k&&s.jsx(Ux,{bundles:y,onHide:()=>ee(!1),onResize:$}),y.length>0&&!b&&s.jsx("button",{className:"kside-reopen",onClick:()=>ee(!0),title:"Show knowledge sidebar",children:"◆ knowledge"})]})}function Ux({bundles:u,onHide:c,onResize:o}){const[r,d]=B.useState({}),[h,p]=B.useState(null),[y,b]=B.useState({}),[v,z]=B.useState(null),[O,k]=B.useState(""),[ee,$]=B.useState(!1),[J,W]=B.useState("");B.useEffect(()=>{d({});for(const P of u)fetch(`/api/knowledge/${encodeURIComponent(P)}`).then(ne=>ne.ok?ne.json():null).then(ne=>d(ie=>({...ie,[P]:ne}))).catch(()=>d(ne=>({...ne,[P]:null})))},[u.join(",")]);async function R(P,ne){const ie=`${P}::${ne}`;if(h===ie){p(null);return}if(p(ie),y[ie]===void 0)try{const G=await fetch(`/api/knowledge/${encodeURIComponent(P)}/concept?id=${encodeURIComponent(ne)}`),F=G.ok?await G.json():null;b(He=>({...He,[ie]:F}))}catch{b(G=>({...G,[ie]:null}))}}async function we(P,ne){const ie=`${P}::${ne}`;$(!0),W("");try{const F=await(await fetch(`/api/knowledge/${encodeURIComponent(P)}/concept`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:ne,content:O})})).json();F.error?W(F.error):(b(He=>({...He,[ie]:F})),z(null))}catch(G){W(G.message)}$(!1)}return s.jsxs("aside",{className:"runs-side knowledge-side",children:[s.jsx("div",{className:"kside-resizer",title:"Drag to resize",onMouseDown:P=>{P.preventDefault();const ne=P.clientX,ie=P.currentTarget.parentElement.offsetWidth,G=He=>o(Math.min(900,Math.max(280,ie+(ne-He.clientX)))),F=()=>{window.removeEventListener("mousemove",G),window.removeEventListener("mouseup",F)};window.addEventListener("mousemove",G),window.addEventListener("mouseup",F)}}),s.jsxs("div",{className:"side-head",children:[s.jsx("span",{className:"microlabel",children:"knowledge"}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"open-raw",onClick:c,title:"Hide knowledge sidebar",children:"hide ✕"})]}),s.jsx("div",{className:"side-list",children:u.map(P=>{const ne=r[P];return s.jsxs("div",{className:"kside-bundle",children:[s.jsxs(ye,{href:`/knowledge/${encodeURIComponent(P)}`,className:"kside-bundle-name",children:[P," ",ne?s.jsxs("span",{className:"num",children:["(",ne.concepts.length,")"]}):null]}),ne===null&&s.jsx("div",{className:"viewer-note",children:"bundle not found"}),ne?.concepts.map(ie=>{const G=`${P}::${ie.id}`,F=h===G;return s.jsxs("div",{className:"kside-concept",children:[s.jsxs("button",{className:`kside-row ${F?"active":""}`,onClick:()=>R(P,ie.id),children:[s.jsx("span",{className:"kside-title",children:ie.title||ie.id}),ie.stale&&s.jsx("span",{className:"kside-stale",children:"stale"})]}),F&&v!==G&&s.jsx("div",{className:"kside-body md-body",children:y[G]===void 0?s.jsx("span",{className:"viewer-note",children:"loading…"}):y[G]===null?s.jsx("span",{className:"viewer-note",children:"could not load concept"}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"kside-actions",children:s.jsx("button",{className:"open-raw",onClick:()=>{k(y[G].raw),z(G),W("")},children:"✎ edit"})}),s.jsx("div",{dangerouslySetInnerHTML:{__html:yi.sanitize(ke.parse(y[G].body??"",{async:!1}))}})]})}),F&&v===G&&s.jsxs("div",{className:"kside-body kside-edit",children:[s.jsx("textarea",{className:"concept-edit",value:O,rows:Math.min(28,Math.max(10,O.split(`
79
- `).length+2)),onChange:He=>k(He.target.value),spellCheck:!1}),s.jsxs("div",{className:"kside-actions",children:[s.jsx("button",{className:"open-raw",disabled:ee,onClick:()=>z(null),children:"cancel"}),s.jsx("button",{className:"open-raw",disabled:ee,onClick:()=>we(P,ie.id),children:ee?"saving…":"✓ save"})]}),J&&s.jsxs("div",{className:"msg error",children:["✕ ",J]})]})]},ie.id)}),ne&&ne.concepts.length===0&&s.jsx("div",{className:"viewer-note",children:"no concepts yet"})]},P)})})]})}function Lx({slug:u,chatId:c}){const o=Xe("/api/chats",!1),r=(o?.chats??[]).filter(p=>p.scope.kind==="team"&&p.scope.member===u),[d,h]=B.useState(!1);return s.jsxs("aside",{className:"runs-side",children:[s.jsxs("div",{className:"side-head",children:[s.jsx("span",{className:"microlabel",children:"sessions"}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"open-raw",disabled:d,onClick:async()=>{h(!0),await mn("claude",{kind:"team",member:u}),h(!1)},children:d?"…":"+ new"})]}),s.jsxs("div",{className:"side-list",children:[r.map(p=>s.jsxs(ye,{href:`/team/${encodeURIComponent(u)}/chat/${p.id}`,className:`side-row ${p.id===c?"active":""}`,children:[s.jsx("span",{className:`lamp ${p.busy?"running":"pending"}`}),s.jsxs("div",{className:"side-row-body",children:[s.jsx("div",{className:"side-row-top",children:s.jsx("span",{className:"side-wf",children:p.title||"new session"})}),s.jsx("div",{className:"side-row-sub",children:s.jsx("span",{className:"side-when num",children:Ol(p.updatedAt)})})]}),s.jsx("button",{type:"button",className:"row-x",title:"delete session",onClick:async y=>{y.preventDefault(),y.stopPropagation(),window.confirm(`Delete session "${p.title||p.id}"?`)&&(await fetch(`/api/chats/${p.id}`,{method:"DELETE"}).catch(()=>{}),p.id===c&&Ua(`/team/${encodeURIComponent(u)}`))},children:"✕"})]},p.id)),o&&r.length===0&&s.jsx("div",{className:"viewer-note",children:"no sessions yet"})]})]})}function Hx({hasMembers:u,root:c}){return s.jsxs("div",{className:"new-chat",children:[s.jsx("div",{className:"page-head",children:s.jsx("h1",{children:"agents"})}),s.jsxs("section",{className:"panel new-chat-panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"what lives here"})}),s.jsxs("div",{className:"know-intro",children:["Your agents, set up like teammates: each one has a name, a role (system prompt), a harness/model to run on, and the workflows that belong to its job. An agent lives in"," ",s.jsx("code",{children:c?`${c}/<slug>/`:"agents/<slug>/"})," as ",s.jsx("code",{children:"agent.yml"})," +"," ",s.jsx("code",{children:"system.md"})," — git-tracked, so your team travels with the repo. Every session is a persistent conversation with that agent; it knows its connected workflows and knowledge bundles, runs the workflows for you, and keeps the knowledge current."]}),s.jsx("div",{style:{padding:"0 16px 16px"},children:s.jsx("button",{className:"run-btn",onClick:()=>Ua("/team/new"),children:u?"+ new agent":"create your first agent"})})]})]})}function Bx({slug:u}){const[c,o]=B.useState(null),[r,d]=B.useState(!1),[h,p]=B.useState(!1),[y,b]=B.useState(!1);return B.useEffect(()=>{let v=!0;return fetch(`/api/team/${encodeURIComponent(u)}`).then(z=>z.ok?z.json():Promise.reject()).then(z=>v&&o(z)).catch(()=>v&&d(!0)),()=>{v=!1}},[u]),r?s.jsx("div",{className:"empty",children:"agent not found"}):c?s.jsxs("div",{className:"member-view",children:[s.jsxs("div",{className:"detail-head",children:[s.jsx("span",{className:"team-emoji-lg",children:c.emoji}),s.jsx("h1",{children:c.name}),s.jsx("span",{className:"chip agent",children:c.harness}),c.model&&s.jsx("span",{className:"chip",children:c.model}),c.effort&&s.jsxs("span",{className:"chip",children:["effort: ",c.effort]}),s.jsx("span",{className:"spacer"}),s.jsx(ye,{href:`/team/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"}),s.jsx("button",{className:"run-btn",disabled:h,onClick:async()=>{p(!0),await mn("claude",{kind:"team",member:u}),p(!1)},children:h?"starting…":"new session"})]}),s.jsx("section",{className:"panel",children:s.jsxs("div",{className:"m3-list",children:[s.jsxs("button",{type:"button",className:"m3-row m3-toggle",onClick:()=>b(!y),children:[s.jsx("span",{className:"m3-ico",children:"▤"}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:"role"}),!y&&s.jsx("span",{className:"m3-sub m3-ellipsis",children:(c.system||"").trim().split(`
80
- `)[0]||"empty — edit this agent to give it a role"})]}),s.jsx("span",{className:`m3-chev ${y?"open":""}`,children:"▾"})]}),y&&s.jsxs("div",{className:"m3-expand",children:[s.jsx("pre",{children:c.system||"(empty — edit this agent to give it a role)"}),s.jsxs("div",{className:"m3-sub",style:{marginTop:10},children:["agents/",c.slug,"/system.md"]})]}),s.jsxs("div",{className:"m3-row",children:[s.jsx("span",{className:"m3-ico",children:"⚙"}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:"workflows"}),c.workflows.length===0?s.jsx("span",{className:"m3-sub",children:"none connected — the agent can run any workflow you connect"}):s.jsx("span",{className:"m3-chips",children:c.workflows.map(v=>s.jsx(ye,{href:`/workflows/${encodeURIComponent(v)}`,className:"chip",children:v},v))})]}),s.jsx(ye,{href:`/team/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"})]}),s.jsxs("div",{className:"m3-row",children:[s.jsx("span",{className:"m3-ico",children:"◆"}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:"knowledge"}),c.knowledge.length===0?s.jsx("span",{className:"m3-sub",children:"none connected — connected bundles are read and kept current by the agent"}):s.jsx("span",{className:"m3-chips",children:c.knowledge.map(v=>s.jsx(ye,{href:`/knowledge/${encodeURIComponent(v)}`,className:"chip",children:v},v))})]}),s.jsx(ye,{href:`/team/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"})]}),s.jsxs("div",{className:"m3-row",children:[s.jsx("span",{className:"m3-ico",children:"/"}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:"skills"}),c.skills===void 0?s.jsx("span",{className:"m3-sub",children:"all discovered skills (default) — invoke with /name in a session"}):c.skills.length===0?s.jsx("span",{className:"m3-sub",children:"none — this agent runs without skills"}):s.jsx("span",{className:"m3-chips",children:c.skills.map(v=>s.jsxs("span",{className:"chip",children:["/",v]},v))})]}),s.jsx(ye,{href:`/team/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"})]})]})}),s.jsx(qx,{slug:u})]}):s.jsx("div",{className:"empty",children:"loading…"})}function qx({slug:u}){const o=Xe(`/api/team/${encodeURIComponent(u)}/routines`,!1)?.routines??[],[r,d]=B.useState(null),[h,p]=B.useState(""),[y,b]=B.useState("");async function v(k){p("");const $=await(await fetch(`/api/team/${encodeURIComponent(u)}/routines`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(k)})).json();return $.error?(p($.error),!1):!0}async function z(k){b(k),p("");const $=await(await fetch(`/api/team/${encodeURIComponent(u)}/routines/${encodeURIComponent(k)}/run`,{method:"POST"})).json();b(""),$.error?p($.error):$.chatId&&Ua(`/team/${encodeURIComponent(u)}/chat/${$.chatId}`)}async function O(k){window.confirm(`Delete routine "${k}"?`)&&await fetch(`/api/team/${encodeURIComponent(u)}/routines/${encodeURIComponent(k)}`,{method:"DELETE"}).catch(()=>{})}return s.jsxs("section",{className:"panel",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:"routines — scheduled prompts"}),s.jsx("span",{className:"spacer"}),!r&&s.jsx("button",{className:"open-raw",onClick:()=>d({name:"",schedule:"0 9 * * 1-5",prompt:"",enabled:!0}),children:"+ new routine"})]}),o.length===0&&!r&&s.jsx("div",{className:"viewer-note",children:"none — a routine messages this agent on a schedule (cron, server local time) and each run opens a new session with the result."}),o.length>0&&s.jsx("div",{className:"m3-list",children:o.map(k=>s.jsxs("div",{className:"m3-row",children:[s.jsx("span",{className:"m3-ico",children:"◷"}),s.jsxs("span",{className:"m3-body",children:[s.jsxs("span",{className:"m3-head",children:[k.name,k.lastError&&s.jsx("span",{className:"chip stale",title:k.lastError,children:"error"})]}),s.jsxs("span",{className:"m3-sub",children:[s.jsx("code",{children:k.schedule}),k.enabled?k.nextRunAt?` · next ${Ol(k.nextRunAt)}`:"":" · paused"," · ",k.lastChatId?s.jsxs(ye,{href:`/team/${encodeURIComponent(u)}/chat/${k.lastChatId}`,children:["last run ",Ol(k.lastRunAt)]}):"never ran"]})]}),s.jsx("button",{className:"open-raw",disabled:y===k.id,onClick:()=>z(k.id),children:y===k.id?"starting…":"▶ run"}),s.jsx("button",{className:"open-raw",onClick:()=>d({id:k.id,name:k.name,schedule:k.schedule,prompt:k.prompt,enabled:k.enabled}),children:"edit"}),s.jsx("button",{className:"open-raw",onClick:()=>{O(k.id)},children:"delete"}),s.jsxs("label",{className:"m3-switch",title:k.enabled?"enabled — click to pause":"paused — click to enable",children:[s.jsx("input",{type:"checkbox",checked:k.enabled,onChange:()=>{v({id:k.id,name:k.name,schedule:k.schedule,prompt:k.prompt,enabled:!k.enabled})}}),s.jsx("span",{className:"m3-switch-track"})]})]},k.id))}),r&&s.jsxs("div",{className:"team-form",children:[s.jsxs("div",{className:"team-form-row",children:[s.jsxs("label",{className:"team-field",style:{flex:1},children:["name",s.jsx("input",{value:r.name,placeholder:"e.g. Morning report",onChange:k=>d({...r,name:k.target.value})})]}),s.jsxs("label",{className:"team-field",style:{width:200},children:["schedule (cron)",s.jsx("input",{value:r.schedule,placeholder:"0 9 * * 1-5",onChange:k=>d({...r,schedule:k.target.value})})]}),s.jsxs("label",{className:"team-field wf-checks",style:{width:90},children:["enabled",s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:r.enabled,onChange:k=>d({...r,enabled:k.target.checked})}),"on"]})]})]}),s.jsxs("label",{className:"team-field",children:["prompt — what to ask this agent on each run",s.jsx("textarea",{rows:5,value:r.prompt,placeholder:"Check ... and summarize what changed.",onChange:k=>d({...r,prompt:k.target.value})})]}),s.jsxs("div",{className:"team-form-row",children:[s.jsx("button",{className:"run-btn",disabled:!r.name.trim()||!r.prompt.trim(),onClick:async()=>{await v(r)&&d(null)},children:r.id?"save routine":"create routine"}),s.jsx("button",{className:"open-raw",onClick:()=>(d(null),p("")),children:"cancel"})]})]}),h&&s.jsxs("div",{className:"msg error",children:["✕ ",h]})]})}function Mm({slug:u}){const[c,o]=B.useState(u?null:ee()),[r,d]=B.useState(""),[h,p]=B.useState(!1),b=Xe("/api/workflows",!1)?.workflows??[],z=Xe("/api/knowledge",!1)?.bundles??[],k=Xe("/api/skills",!1)?.skills??[];B.useEffect(()=>{u&&fetch(`/api/team/${encodeURIComponent(u)}`).then(R=>R.ok?R.json():Promise.reject()).then(R=>o({name:R.name,emoji:R.emoji,description:R.description??"",harness:R.harness,model:R.model??"",effort:R.effort??"",system:R.system,workflows:R.workflows,knowledge:R.knowledge??[],skillsAll:R.skills===void 0,skills:R.skills??[]})).catch(()=>d("agent not found"))},[u]);function ee(){return{name:"",emoji:"🤖",description:"",harness:"claude",model:"",effort:"",system:"",workflows:[],knowledge:[],skillsAll:!0,skills:[]}}async function $(){if(!c)return;p(!0),d("");const we=await(await fetch(u?`/api/team/${encodeURIComponent(u)}`:"/api/team",{method:u?"PUT":"POST",headers:{"content-type":"application/json"},body:JSON.stringify({...c,skills:c.skillsAll?void 0:c.skills})})).json();p(!1),we.error?d(we.error):Ua(`/team/${encodeURIComponent(we.slug)}`)}async function J(){!u||!window.confirm(`Delete agent "${u}" and its definition folder?`)||(await fetch(`/api/team/${encodeURIComponent(u)}`,{method:"DELETE"}).catch(()=>{}),Ua("/team"))}if(!c)return s.jsx("div",{className:"empty",children:r||"loading…"});const W=R=>o({...c,...R});return s.jsxs("div",{className:"new-chat",children:[s.jsx("div",{className:"page-head",children:s.jsx("h1",{children:u?`edit ${u}`:"new agent"})}),s.jsx("section",{className:"panel new-chat-panel",children:s.jsxs("div",{className:"team-form",children:[s.jsxs("div",{className:"team-form-row",children:[s.jsxs("label",{className:"team-field",style:{flex:1},children:["name",s.jsx("input",{value:c.name,placeholder:"e.g. Max",onChange:R=>W({name:R.target.value})})]}),s.jsxs("label",{className:"team-field",style:{width:90},children:["emoji",s.jsx("input",{value:c.emoji,onChange:R=>W({emoji:R.target.value})})]})]}),s.jsx("div",{className:"emoji-pick",children:Cx.map(R=>s.jsx("button",{type:"button",className:c.emoji===R?"active":"",onClick:()=>W({emoji:R}),children:R},R))}),s.jsxs("label",{className:"team-field",children:["description",s.jsx("input",{value:c.description,placeholder:"one line: what this agent is for",onChange:R=>W({description:R.target.value})})]}),s.jsxs("div",{className:"team-form-row",children:[s.jsxs("label",{className:"team-field",style:{width:140},children:["harness",s.jsxs("select",{value:c.harness,onChange:R=>W({harness:R.target.value}),children:[s.jsx("option",{value:"claude",children:"claude"}),s.jsx("option",{value:"codex",children:"codex"}),s.jsx("option",{value:"pi",children:"pi"})]})]}),s.jsxs("label",{className:"team-field",style:{flex:1},children:["model",s.jsx("input",{value:c.model,placeholder:"harness default — e.g. sonnet, gpt-5.6-sol",onChange:R=>W({model:R.target.value})})]}),s.jsxs("label",{className:"team-field",style:{width:140},children:["effort",s.jsx("select",{value:c.effort,onChange:R=>W({effort:R.target.value}),children:Dx.map(R=>s.jsx("option",{value:R,children:R||"default"},R))})]})]}),s.jsxs("label",{className:"team-field",children:["system prompt — the agent's role",s.jsx("textarea",{rows:10,value:c.system,placeholder:"You are the ... for this project. Your job is ...",onChange:R=>W({system:R.target.value})})]}),s.jsxs("div",{className:"team-field",children:[s.jsx("span",{className:"team-field-label",children:"connected workflows — autoloaded into the agent's context; it can run them"}),s.jsxs("div",{className:"wf-checks",children:[b.map(R=>s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:c.workflows.includes(R.slug),onChange:we=>W({workflows:we.target.checked?[...c.workflows,R.slug]:c.workflows.filter(P=>P!==R.slug)})}),s.jsx("b",{children:R.slug}),R.description&&s.jsxs("span",{className:"opt-hint",children:[" — ",R.description]})]},R.slug)),b.length===0&&s.jsx("div",{className:"viewer-note",children:"no workflows in this project"})]})]}),s.jsxs("div",{className:"team-field",children:[s.jsx("span",{className:"team-field-label",children:"connected knowledge — OKF bundles the agent consults and maintains"}),s.jsxs("div",{className:"wf-checks",children:[z.map(R=>s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:c.knowledge.includes(R.name),onChange:we=>W({knowledge:we.target.checked?[...c.knowledge,R.name]:c.knowledge.filter(P=>P!==R.name)})}),s.jsx("b",{children:R.name}),s.jsxs("span",{className:"opt-hint",children:[" — ",R.concepts," concepts"]})]},R.name)),z.length===0&&s.jsx("div",{className:"viewer-note",children:"no knowledge bundles in this project"})]})]}),s.jsxs("div",{className:"team-field",children:[s.jsx("span",{className:"team-field-label",children:"connected skills — workspace skill packages (see the skills tab); invoked with /name in sessions"}),s.jsxs("div",{className:"wf-checks",children:[s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:c.skillsAll,onChange:R=>W({skillsAll:R.target.checked})}),s.jsx("b",{children:"all skills"}),s.jsx("span",{className:"opt-hint",children:" — every discovered skill, including future ones"})]}),!c.skillsAll&&k.map(R=>s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:c.skills.includes(R.name),onChange:we=>W({skills:we.target.checked?[...c.skills,R.name]:c.skills.filter(P=>P!==R.name)})}),s.jsxs("b",{children:["/",R.name]}),R.description&&s.jsxs("span",{className:"opt-hint",children:[" — ",R.description]})]},R.name)),!c.skillsAll&&k.length===0&&s.jsx("div",{className:"viewer-note",children:"no skills found (.claude/skills, project or user)"})]})]}),r&&s.jsxs("div",{className:"msg error",children:["✕ ",r]}),s.jsxs("div",{className:"team-form-row",children:[s.jsx("button",{className:"run-btn",disabled:!c.name.trim()||h,onClick:$,children:h?"saving…":u?"save":"create"}),s.jsx("span",{className:"spacer"}),u&&s.jsx("button",{className:"stop-btn",onClick:J,children:"delete agent"})]})]})})]})}function Yx(){const c=hv().split("/").filter(Boolean),[o,r]=B.useState(""),[d,h]=B.useState("");B.useEffect(()=>{fetch("/api/meta").then(y=>y.json()).then(y=>{r(y.projectName??""),h(y.projectIcon??"")}).catch(()=>{})},[]),B.useEffect(()=>{if(document.title=o?`${o} — kraftwerk`:"kraftwerk inspector",!d)return;const y=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="0.9em" font-size="85">${d}</text></svg>`;let b=document.querySelector('link[rel="icon"]');b||(b=document.createElement("link"),b.rel="icon",document.head.appendChild(b)),b.href=`data:image/svg+xml,${encodeURIComponent(y)}`},[o,d]);let p;return c[0]==="runs"&&c[1]?p=s.jsx(tx,{id:c[1]}):c[0]==="runs"?p=s.jsx(Gx,{}):c[0]==="workflows"&&c[1]?p=s.jsx(hx,{slug:decodeURIComponent(c[1])}):c[0]==="workflows"?p=s.jsx(dx,{}):c[0]==="chats"?p=s.jsx(Vy,{id:c[1]}):c[0]==="skills"?p=s.jsx(zx,{name:c[1]?decodeURIComponent(c[1]):void 0}):c[0]==="team"?p=s.jsx(Mx,{seg:c.slice(1)}):c[0]==="knowledge"?p=s.jsx(bx,{bundle:c[1]?decodeURIComponent(c[1]):void 0,conceptId:c.length>2?c.slice(2).map(decodeURIComponent).join("/"):void 0}):p=s.jsx(vx,{}),s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"topbar",children:[s.jsxs("a",{href:"#/",className:"wordmark",children:[s.jsx("span",{className:"lamp-block",children:s.jsx("span",{})}),s.jsx("b",{children:"kraftwerk"}),o&&s.jsx("span",{className:"env-name",title:"Project (kraftwerk.yml: name)",children:o})]}),s.jsxs("nav",{children:[s.jsx("a",{href:"#/team",children:"agents"}),s.jsx("a",{href:"#/knowledge",children:"context & knowledge"}),s.jsx("a",{href:"#/workflows",children:"workflows"}),s.jsx("a",{href:"#/runs",children:"workflow runs"}),s.jsx("a",{href:"#/skills",children:"skills"}),s.jsx("a",{href:"#/chats",className:"nav-apart",children:"chat"})]}),s.jsx("span",{className:"spacer"}),s.jsx(Xx,{})]}),s.jsx("main",{className:"shell",children:p})]})}function Gx(){const[u,c]=B.useState(null);return B.useEffect(()=>{let o=!0;return fetch("/api/runs").then(r=>r.json()).then(r=>{o&&(r.runs.length>0?Ua(`/runs/${r.runs[0].id}`,{replace:!0}):c({outputDir:r.outputDir}))}).catch(()=>{}),()=>{o=!1}},[]),u?s.jsxs("div",{className:"empty",children:["No runs found in ",s.jsx("code",{children:u.outputDir}),". Start one with"," ",s.jsx("code",{children:"kraftwerk run <workflow> <request>"})," or from a workflow page."]}):s.jsx("div",{className:"empty",children:"loading…"})}function Xx(){const[u,c]=B.useState(!1),[o,r]=B.useState(null),[d,h]=B.useState(null),[p,y]=B.useState("");B.useEffect(()=>{if(!u)return;fetch("/api/runs").then(z=>z.json()).then(r).catch(()=>{}),fetch("/api/workflows").then(z=>z.json()).then(h).catch(()=>{}),fetch("/api/meta").then(z=>z.json()).then(z=>y(z.version)).catch(()=>{});const v=z=>{z.target.closest(".info-wrap")||c(!1)};return window.addEventListener("mousedown",v),()=>window.removeEventListener("mousedown",v)},[u]);const b=o?.runs[0];return s.jsxs("span",{className:"info-wrap",children:[s.jsx("button",{className:"info-btn",title:"Project info","aria-label":"Project info",onClick:()=>c(v=>!v),children:s.jsx("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor","aria-hidden":!0,children:s.jsx("path",{d:"M11 7h2v2h-2V7Zm0 4h2v6h-2v-6Zm1-9a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"})})}),u&&s.jsxs("div",{className:"info-pop",children:[s.jsxs("div",{className:"info-row",children:[s.jsx("span",{className:"microlabel",children:"Workflows"}),s.jsx("span",{className:"info-v",children:d?`${d.workflows.length} discovered`:"…"}),s.jsx("code",{className:"info-path",title:d?.root,children:d?.root??""})]}),s.jsxs("div",{className:"info-row",children:[s.jsx("span",{className:"microlabel",children:"Runs"}),s.jsxs("span",{className:"info-v",children:[o?`${o.runs.length} total`:"…",b?` · latest ${b.status}`:""]}),s.jsx("code",{className:"info-path",title:o?.outputDir,children:o?.outputDir??""})]}),s.jsxs("div",{className:"info-row info-actions",children:[s.jsx("span",{className:"microlabel",children:"Theme"}),s.jsx($x,{})]}),s.jsxs("div",{className:"info-row info-actions",children:[s.jsx("span",{className:"microlabel",children:"Version"}),s.jsx("span",{className:"info-v mono",children:p?`kraftwerk ${p}`:"…"})]})]})]})}function $x(){return s.jsx("button",{className:"theme-btn",onClick:()=>{const u=document.documentElement,c=u.dataset.theme==="light"?"dark":"light";u.dataset.theme=c;try{localStorage.setItem("kw-theme",c)}catch{}},children:"day / night"})}dv.createRoot(document.getElementById("root")).render(s.jsx(B.StrictMode,{children:s.jsx(Yx,{})}));