pi-central 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,50 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function i(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();var $0={exports:{}},gr={};var Zm;function ty(){if(Zm)return gr;Zm=1;var u=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var m in o)m!=="key"&&(f[m]=o[m])}else f=o;return o=f.ref,{$$typeof:u,type:r,key:h,ref:o!==void 0?o:null,props:f}}return gr.Fragment=a,gr.jsx=i,gr.jsxs=i,gr}var $m;function uy(){return $m||($m=1,$0.exports=ty()),$0.exports}var d=uy(),Q0={exports:{}},Se={};var Qm;function ny(){if(Qm)return Se;Qm=1;var u=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),N=Symbol.for("react.view_transition"),R=Symbol.iterator;function T(S){return S===null||typeof S!="object"?null:(S=R&&S[R]||S["@@iterator"],typeof S=="function"?S:null)}var ne={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,J={};function ee(S,H,Z){this.props=S,this.context=H,this.refs=J,this.updater=Z||ne}ee.prototype.isReactComponent={},ee.prototype.setState=function(S,H){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,H,"setState")},ee.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function ue(){}ue.prototype=ee.prototype;function $(S,H,Z){this.props=S,this.context=H,this.refs=J,this.updater=Z||ne}var W=$.prototype=new ue;W.constructor=$,Q(W,ee.prototype),W.isPureReactComponent=!0;var ce=Array.isArray;function te(){}var ie={H:null,A:null,T:null,S:null},Ge=Object.prototype.hasOwnProperty;function Ie(S,H,Z){var fe=Z.ref;return{$$typeof:u,type:S,key:H,ref:fe!==void 0?fe:null,props:Z}}function Ee(S,H){return Ie(S.type,H,S.props)}function Te(S){return typeof S=="object"&&S!==null&&S.$$typeof===u}function Qe(S){var H={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Z){return H[Z]})}var Ue=/\/+/g;function ye(S,H){return typeof S=="object"&&S!==null&&S.key!=null?Qe(""+S.key):H.toString(36)}function K(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(te,te):(S.status="pending",S.then(function(H){S.status==="pending"&&(S.status="fulfilled",S.value=H)},function(H){S.status==="pending"&&(S.status="rejected",S.reason=H)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function re(S,H,Z,fe,je){var we=typeof S;(we==="undefined"||we==="boolean")&&(S=null);var Re=!1;if(S===null)Re=!0;else switch(we){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(S.$$typeof){case u:case a:Re=!0;break;case v:return Re=S._init,re(Re(S._payload),H,Z,fe,je)}}if(Re)return je=je(S),Re=fe===""?"."+ye(S,0):fe,ce(je)?(Z="",Re!=null&&(Z=Re.replace(Ue,"$&/")+"/"),re(je,H,Z,"",function(ze){return ze})):je!=null&&(Te(je)&&(je=Ee(je,Z+(je.key==null||S&&S.key===je.key?"":(""+je.key).replace(Ue,"$&/")+"/")+Re)),H.push(je)),1;Re=0;var I=fe===""?".":fe+":";if(ce(S))for(var P=0;P<S.length;P++)fe=S[P],we=I+ye(fe,P),Re+=re(fe,H,Z,we,je);else if(P=T(S),typeof P=="function")for(S=P.call(S),P=0;!(fe=S.next()).done;)fe=fe.value,we=I+ye(fe,P++),Re+=re(fe,H,Z,we,je);else if(we==="object"){if(typeof S.then=="function")return re(K(S),H,Z,fe,je);throw H=String(S),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return Re}function ae(S,H,Z){if(S==null)return S;var fe=[],je=0;return re(S,fe,"","",function(we){return H.call(Z,we,je++)}),fe}function Ce(S){if(S._status===-1){var H=S._result,Z=H();Z.then(function(fe){(S._status===0||S._status===-1)&&(S._status=1,S._result=fe,Z.status===void 0&&(Z.status="fulfilled",Z.value=fe))},function(fe){(S._status===0||S._status===-1)&&(S._status=2,S._result=fe,Z.status===void 0&&(Z.status="rejected",Z.reason=fe))}),S._status===-1&&(S._status=0,S._result=Z)}if(S._status===1)return S._result.default;throw S._result}var be=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)};function He(S){var H=ie.T,Z={};Z.types=H!==null?H.types:null,ie.T=Z;try{var fe=S(),je=ie.S;je!==null&&je(Z,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(te,be)}catch(we){be(we)}finally{H!==null&&Z.types!==null&&(H.types=Z.types),ie.T=H}}function L(S){var H=ie.T;if(H!==null){var Z=H.types;Z===null?H.types=[S]:Z.indexOf(S)===-1&&Z.push(S)}else He(L.bind(null,S))}var se={map:ae,forEach:function(S,H,Z){ae(S,function(){H.apply(this,arguments)},Z)},count:function(S){var H=0;return ae(S,function(){H++}),H},toArray:function(S){return ae(S,function(H){return H})||[]},only:function(S){if(!Te(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return Se.Activity=x,Se.Children=se,Se.Component=ee,Se.Fragment=i,Se.Profiler=o,Se.PureComponent=$,Se.StrictMode=r,Se.Suspense=g,Se.ViewTransition=N,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ie,Se.__COMPILER_RUNTIME={__proto__:null,c:function(S){return ie.H.useMemoCache(S)}},Se.addTransitionType=L,Se.cache=function(S){return function(){return S.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(S,H,Z){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var fe=Q({},S.props),je=S.key;if(H!=null)for(we in H.key!==void 0&&(je=""+H.key),H)!Ge.call(H,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&H.ref===void 0||(fe[we]=H[we]);var we=arguments.length-2;if(we===1)fe.children=Z;else if(1<we){for(var Re=Array(we),I=0;I<we;I++)Re[I]=arguments[I+2];fe.children=Re}return Ie(S.type,je,fe)},Se.createContext=function(S){return S={$$typeof:h,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:f,_context:S},S},Se.createElement=function(S,H,Z){var fe,je={},we=null;if(H!=null)for(fe in H.key!==void 0&&(we=""+H.key),H)Ge.call(H,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(je[fe]=H[fe]);var Re=arguments.length-2;if(Re===1)je.children=Z;else if(1<Re){for(var I=Array(Re),P=0;P<Re;P++)I[P]=arguments[P+2];je.children=I}if(S&&S.defaultProps)for(fe in Re=S.defaultProps,Re)je[fe]===void 0&&(je[fe]=Re[fe]);return Ie(S,we,je)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(S){return{$$typeof:m,render:S}},Se.isValidElement=Te,Se.lazy=function(S){return{$$typeof:v,_payload:{_status:-1,_result:S},_init:Ce}},Se.memo=function(S,H){return{$$typeof:y,type:S,compare:H===void 0?null:H}},Se.startTransition=He,Se.unstable_useCacheRefresh=function(){return ie.H.useCacheRefresh()},Se.use=function(S){return ie.H.use(S)},Se.useActionState=function(S,H,Z){return ie.H.useActionState(S,H,Z)},Se.useCallback=function(S,H){return ie.H.useCallback(S,H)},Se.useContext=function(S){return ie.H.useContext(S)},Se.useDebugValue=function(){},Se.useDeferredValue=function(S,H){return ie.H.useDeferredValue(S,H)},Se.useEffect=function(S,H){return ie.H.useEffect(S,H)},Se.useEffectEvent=function(S){return ie.H.useEffectEvent(S)},Se.useId=function(){return ie.H.useId()},Se.useImperativeHandle=function(S,H,Z){return ie.H.useImperativeHandle(S,H,Z)},Se.useInsertionEffect=function(S,H){return ie.H.useInsertionEffect(S,H)},Se.useLayoutEffect=function(S,H){return ie.H.useLayoutEffect(S,H)},Se.useMemo=function(S,H){return ie.H.useMemo(S,H)},Se.useOptimistic=function(S,H){return ie.H.useOptimistic(S,H)},Se.useReducer=function(S,H,Z){return ie.H.useReducer(S,H,Z)},Se.useRef=function(S){return ie.H.useRef(S)},Se.useState=function(S){return ie.H.useState(S)},Se.useSyncExternalStore=function(S,H,Z){return ie.H.useSyncExternalStore(S,H,Z)},Se.useTransition=function(){return ie.H.useTransition()},Se.version="19.3.1",Se}var Km;function Lf(){return Km||(Km=1,Q0.exports=ny()),Q0.exports}var w=Lf(),K0={exports:{}},br={},J0={exports:{}},P0={};var Jm;function ly(){return Jm||(Jm=1,(function(u){function a(K,re){var ae=K.length;K.push(re);e:for(;0<ae;){var Ce=ae-1>>>1,be=K[Ce];if(0<o(be,re))K[Ce]=re,K[ae]=be,ae=Ce;else break e}}function i(K){return K.length===0?null:K[0]}function r(K){if(K.length===0)return null;var re=K[0],ae=K.pop();if(ae!==re){K[0]=ae;e:for(var Ce=0,be=K.length,He=be>>>1;Ce<He;){var L=2*(Ce+1)-1,se=K[L],S=L+1,H=K[S];if(0>o(se,ae))S<be&&0>o(H,se)?(K[Ce]=H,K[S]=ae,Ce=S):(K[Ce]=se,K[L]=ae,Ce=L);else if(S<be&&0>o(H,ae))K[Ce]=H,K[S]=ae,Ce=S;else break e}}return re}function o(K,re){var ae=K.sortIndex-re.sortIndex;return ae!==0?ae:K.id-re.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;u.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();u.unstable_now=function(){return h.now()-m}}var g=[],y=[],v=1,x=null,N=3,R=!1,T=!1,ne=!1,Q=!1,J=typeof setTimeout=="function"?setTimeout:null,ee=typeof clearTimeout=="function"?clearTimeout:null,ue=typeof setImmediate<"u"?setImmediate:null;function $(K){for(var re=i(y);re!==null;){if(re.callback===null)r(y);else if(re.startTime<=K)r(y),re.sortIndex=re.expirationTime,a(g,re);else break;re=i(y)}}function W(K){if(ne=!1,$(K),!T)if(i(g)!==null)T=!0,ce||(ce=!0,Te());else{var re=i(y);re!==null&&ye(W,re.startTime-K)}}var ce=!1,te=-1,ie=5,Ge=-1;function Ie(){return Q?!0:!(u.unstable_now()-Ge<ie)}function Ee(){if(Q=!1,ce){var K=u.unstable_now();Ge=K;var re=!0;try{e:{T=!1,ne&&(ne=!1,ee(te),te=-1),R=!0;var ae=N;try{t:{for($(K),x=i(g);x!==null&&!(x.expirationTime>K&&Ie());){var Ce=x.callback;if(typeof Ce=="function"){x.callback=null,N=x.priorityLevel;var be=Ce(x.expirationTime<=K);if(K=u.unstable_now(),typeof be=="function"){x.callback=be,$(K),re=!0;break t}x===i(g)&&r(g),$(K)}else r(g);x=i(g)}if(x!==null)re=!0;else{var He=i(y);He!==null&&ye(W,He.startTime-K),re=!1}}break e}finally{x=null,N=ae,R=!1}re=void 0}}finally{re?Te():ce=!1}}}var Te;if(typeof ue=="function")Te=function(){ue(Ee)};else if(typeof MessageChannel<"u"){var Qe=new MessageChannel,Ue=Qe.port2;Qe.port1.onmessage=Ee,Te=function(){Ue.postMessage(null)}}else Te=function(){J(Ee,0)};function ye(K,re){te=J(function(){K(u.unstable_now())},re)}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(K){K.callback=null},u.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<K?Math.floor(1e3/K):5},u.unstable_getCurrentPriorityLevel=function(){return N},u.unstable_next=function(K){switch(N){case 1:case 2:case 3:var re=3;break;default:re=N}var ae=N;N=re;try{return K()}finally{N=ae}},u.unstable_requestPaint=function(){Q=!0},u.unstable_runWithPriority=function(K,re){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var ae=N;N=K;try{return re()}finally{N=ae}},u.unstable_scheduleCallback=function(K,re,ae){var Ce=u.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Ce+ae:Ce):ae=Ce,K){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=ae+be,K={id:v++,callback:re,priorityLevel:K,startTime:ae,expirationTime:be,sortIndex:-1},ae>Ce?(K.sortIndex=ae,a(y,K),i(g)===null&&K===i(y)&&(ne?(ee(te),te=-1):ne=!0,ye(W,ae-Ce))):(K.sortIndex=be,a(g,K),T||R||(T=!0,ce||(ce=!0,Te()))),K},u.unstable_shouldYield=Ie,u.unstable_wrapCallback=function(K){var re=N;return function(){var ae=N;N=re;try{return K.apply(this,arguments)}finally{N=ae}}}})(P0)),P0}var Pm;function ay(){return Pm||(Pm=1,J0.exports=ly()),J0.exports}var W0={exports:{}},qt={};var Wm;function iy(){if(Wm)return qt;Wm=1;var u=Lf();function a(v){var x="https://react.dev/errors/"+v;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)x+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+v+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal"),f=Symbol.for("react.recoverable"),h=Symbol.for("react.optimistic_key");function m(v,x,N){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:R==null?null:R===h?h:""+R,children:v,containerInfo:x,implementation:N}}var g=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,x){if(v==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,qt.browser=function(v){return{$$typeof:f,_reason:v}},qt.createPortal=function(v,x){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(a(299));return m(v,x,null,N)},qt.flushSync=function(v){var x=g.T,N=r.p;try{if(g.T=null,r.p=2,v)return v()}finally{g.T=x,r.p=N,r.d.f()}},qt.preconnect=function(v,x){typeof v=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,r.d.C(v,x))},qt.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},qt.preinit=function(v,x){if(typeof v=="string"&&x&&typeof x.as=="string"){var N=x.as,R=y(N,x.crossOrigin),T=typeof x.integrity=="string"?x.integrity:void 0,ne=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;N==="style"?r.d.S(v,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:R,integrity:T,fetchPriority:ne}):N==="script"&&r.d.X(v,{crossOrigin:R,integrity:T,fetchPriority:ne,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},qt.preinitModule=function(v,x){if(typeof v=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var N=y(x.as,x.crossOrigin);r.d.M(v,{crossOrigin:N,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}}else x==null&&r.d.M(v)},qt.preload=function(v,x){if(typeof v=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var N=x.as,R=y(N,x.crossOrigin);r.d.L(v,N,{crossOrigin:R,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},qt.preloadModule=function(v,x){if(typeof v=="string")if(x){var N=y(x.as,x.crossOrigin);r.d.m(v,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:N,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}else r.d.m(v)},qt.requestFormReset=function(v){r.d.r(v)},qt.unstable_batchedUpdates=function(v,x){return v(x)},qt.useFormState=function(v,x,N){return g.H.useFormState(v,x,N)},qt.useFormStatus=function(){return g.H.useHostTransitionStatus()},qt.version="19.3.1",qt}var ep;function ry(){if(ep)return W0.exports;ep=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(a){console.error(a)}}return u(),W0.exports=iy(),W0.exports}var tp;function cy(){if(tp)return br;tp=1;var u=ay(),a=Lf(),i=ry();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function h(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 m(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 g(e){if(f(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var c=n.return;if(c===null)break;var s=c.alternate;if(s===null){if(l=c.return,l!==null){n=l;continue}break}if(c.child===s.child){for(s=c.child;s;){if(s===n)return g(c),e;if(s===l)return g(c),t;s=s.sibling}throw Error(r(188))}if(n.return!==l.return)n=c,l=s;else{for(var p=!1,b=c.child;b;){if(b===n){p=!0,n=c,l=s;break}if(b===l){p=!0,l=c,n=s;break}b=b.sibling}if(!p){for(b=s.child;b;){if(b===n){p=!0,n=s,l=c;break}if(b===l){p=!0,l=s,n=c;break}b=b.sibling}if(!p)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}function x(e,t,n,l,c,s){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,l,c,s)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&x(e.child,t,n,l,c,s))return!0;e=e.sibling}return!1}function N(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function R(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function T(e){var t=[null,null],n=N(e);return n===null||ne(t,e,n.child,{foundSelf:!1}),t}function ne(e,t,n,l){for(;n!==null;){if(n===t)l.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(l.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&ne(e,t,n.child,l))return!0;n=n.sibling}return!1}function Q(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(r(559))}}var J=null,ee=null;function ue(e,t,n){return e===n?!0:e===t?(J=e,!0):!1}function $(e,t,n){return e===n?(ee=e,!1):e===t?(ee!==null&&(J=e),!0):!1}function W(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ce(e,t,n){for(var l=0,c=e;c;c=n(c))l++;c=0;for(var s=t;s;s=n(s))c++;for(;0<l-c;)e=n(e),l--;for(;0<c-l;)t=n(t),c--;for(;l--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var te=Object.assign,ie=Symbol.for("react.element"),Ge=Symbol.for("react.transitional.element"),Ie=Symbol.for("react.portal"),Ee=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),Qe=Symbol.for("react.profiler"),Ue=Symbol.for("react.consumer"),ye=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),Ce=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),He=Symbol.for("react.activity"),L=Symbol.for("react.legacy_hidden"),se=Symbol.for("react.memo_cache_sentinel"),S=Symbol.for("react.view_transition"),H=Symbol.for("react.recoverable"),Z=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=Z&&e[Z]||e["@@iterator"],typeof e=="function"?e:null)}var je=Symbol.for("react.client.reference");function we(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===je?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ee:return"Fragment";case Qe:return"Profiler";case Te:return"StrictMode";case re:return"Suspense";case ae:return"SuspenseList";case He:return"Activity";case S:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Ie:return"Portal";case ye:return e.displayName||"Context";case Ue:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ce:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case be:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}var Re=Array.isArray,I=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ze={pending:!1,data:null,method:null,action:null},Yt=[],Cu=-1;function he(e){return{current:e}}function q(e){0>Cu||(e.current=Yt[Cu],Yt[Cu]=null,Cu--)}function ge(e,t){Cu++,Yt[Cu]=e.current,e.current=t}var it=he(null),At=he(null),Vt=he(null),yn=he(null);function zt(e,t){switch(ge(Vt,t),ge(At,e),ge(it,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?um(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=um(t),e=nm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(it),ge(it,e)}function Hu(){q(it),q(At),q(Vt)}function Ku(e){var t=e.memoizedState;t!==null&&(ni._currentValue=t.memoizedState,ge(yn,e)),t=it.current;var n=nm(t,e.type);t!==n&&(ge(At,e),ge(it,n))}function ft(e){At.current===e&&(q(it),q(At)),yn.current===e&&(q(yn),ni._currentValue=ze)}var xn,lu;function Tt(e){if(xn===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);xn=t&&t[1]||"",lu=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+xn+e+lu}var mu=!1;function vn(e,t){if(!e||mu)return"";mu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(le){var D=le}Reflect.construct(e,[],B)}else{try{B.call()}catch(le){D=le}B=!1;try{var z=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),B=!0,new e}finally{B&&(z!==void 0?Object.defineProperty(e.prototype,"props",z):delete e.prototype.props)}}}else{try{throw Error()}catch(le){D=le}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(le){if(le&&D&&typeof le.stack=="string")return[le.stack,D.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),p=s[0],b=s[1];if(p&&b){var E=p.split(`
4
+ `),j=b.split(`
5
+ `);for(c=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;c<j.length&&!j[c].includes("DetermineComponentFrameRoot");)c++;if(l===E.length||c===j.length)for(l=E.length-1,c=j.length-1;1<=l&&0<=c&&E[l]!==j[c];)c--;for(;1<=l&&0<=c;l--,c--)if(E[l]!==j[c]){if(l!==1||c!==1)do if(l--,c--,0>c||E[l]!==j[c]){var M=`
6
+ `+E[l].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=l&&0<=c);break}}}finally{mu=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Tt(n):""}function Du(e,t){switch(e.tag){case 26:case 27:case 5:return Tt(e.type);case 16:return Tt("Lazy");case 13:return e.child!==t&&t!==null?Tt("Suspense Fallback"):Tt("Suspense");case 19:return Tt("SuspenseList");case 0:case 15:return vn(e.type,!1);case 11:return vn(e.type.render,!1);case 1:return vn(e.type,!0);case 31:return Tt("Activity");case 30:return Tt("ViewTransition");default:return""}}function _n(e){try{var t="",n=null;do t+=Du(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
7
+ Error generating stack: `+l.message+`
8
+ `+l.stack}}var Ju=Object.prototype.hasOwnProperty,vt=u.unstable_scheduleCallback,pu=u.unstable_cancelCallback,Yn=u.unstable_shouldYield,Ll=u.unstable_requestPaint,Ct=u.unstable_now,ha=u.unstable_getCurrentPriorityLevel,Vn=u.unstable_ImmediatePriority,U=u.unstable_UserBlockingPriority,X=u.unstable_NormalPriority,_e=u.unstable_LowPriority,Ve=u.unstable_IdlePriority,En=u.log,Nu=u.unstable_setDisableYieldValue,Xt=null,Zt=null;function qu(e){if(typeof En=="function"&&Nu(e),Zt&&typeof Zt.setStrictMode=="function")try{Zt.setStrictMode(Xt,e)}catch{}}var Dt=Math.clz32?Math.clz32:Xn,ma=Math.log,ku=Math.LN2;function Xn(e){return e>>>=0,e===0?32:31-(ma(e)/ku|0)|0}var Zn=256,$n=262144,pa=4194304;function Pu(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&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qn(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var c=0,s=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~s,l!==0?c=Pu(l):(p&=b,p!==0?c=Pu(p):n||(n=b&~e,n!==0&&(c=Pu(n))))):(b=l&~s,b!==0?c=Pu(b):p!==0?c=Pu(p):n||(n=l&~e,n!==0&&(c=Pu(n)))),c===0?0:t!==0&&t!==c&&(t&s)===0&&(s=c&-c,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:c}function Kn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ga(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-Dt(n),c=1<<l;t|=e[l],n&=~c}return t}function Ns(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 Jn(){var e=pa;return pa<<=1,(pa&62914560)===0&&(pa=4194304),e}function bi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ul(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rt(e,t,n,l,c,s){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var b=e.entanglements,E=e.expirationTimes,j=e.hiddenUpdates;for(n=p&~n;0<n;){var M=31-Dt(n),B=1<<M;b[M]=0,E[M]=-1;var D=j[M];if(D!==null)for(j[M]=null,M=0;M<D.length;M++){var z=D[M];z!==null&&(z.lane&=-536870913)}n&=~B}l!==0&&Sn(e,l,0),s!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=s&~(p&~t))}function Sn(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Dt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Lr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Dt(n),c=1<<l;c&t|e[l]&t&&(e[l]|=t),n&=~c}}function yi(e,t){var n=t&-t;return n=(n&42)!==0?1:Fl(n),(n&(e.suspendedLanes|t))!==0?0:n}function Fl(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 ba(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function xi(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:Hm(e.type))}function Ur(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var Gu=Math.random().toString(36).slice(2),_t="__reactFiber$"+Gu,$t="__reactProps$"+Gu,Jt="__reactContainer$"+Gu,vi="__reactEvents$"+Gu,_i="__reactListeners$"+Gu,Pn="__reactHandles$"+Gu,Ei="__reactResources$"+Gu,An="__reactMarker$"+Gu,Wn="__reactLoad$"+Gu;function el(e){delete e[_t],delete e[$t],delete e[_i],delete e[Pn]}function Tn(e){var t;if(t=e[_t])return t;for(var n=e.parentNode;n;){if(t=n[Jt]||n[_t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vm(e);e!==null;){if(n=e[_t])return n;e=vm(e)}return t}e=n,n=e.parentNode}return null}function Cn(e){if(e=e[_t]||e[Jt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Bl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function tl(e){var t=e[Ei];return t||(t=e[Ei]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function mt(e){e[An]=!0}function Fr(e){e[Wn]=void 0}var Si=new Set,Br={};function Wu(e,t){en(e,t),en(e+"Capture",t)}function en(e,t){for(Br[e]=t,e=0;e<t.length;e++)Si.add(t[e])}var ya=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]*$"),xa={},Ai={};function va(e){return Ju.call(Ai,e)?!0:Ju.call(xa,e)?!1:ya.test(e)?Ai[e]=!0:(xa[e]=!0,!1)}var ke=!1;function ul(){var e=ke;return ke=!1,e}function Qt(e,t,n){if(va(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function _a(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function au(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,l)}}function Pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ti(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nl(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(p){n=""+p,s.call(this,p)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hl(e){if(!e._valueTracker){var t=Ti(e)?"checked":"value";e._valueTracker=nl(e,t,""+e[t])}}function Ci(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Ti(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}var ks=/[\n"\\]/g;function Wt(e){return e.replace(ks,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Di(e,t,n,l,c,s,p,b){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Pt(t)):e.value!==""+Pt(t)&&(e.value=""+Pt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?p==="number"&&e.value==t?Ea(e,Pt(e.value)):Ea(e,Pt(t)):n!=null?Ea(e,Pt(n)):l!=null&&e.removeAttribute("value"),c==null&&s!=null&&(e.defaultChecked=!!s),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Pt(b):e.removeAttribute("name")}function Hr(e,t,n,l,c,s,p,b){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Hl(e);return}n=n!=null?""+Pt(n):"",t=t!=null?""+Pt(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Hl(e)}function Ea(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function tn(e,t,n,l){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Pt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function ll(e,t,n){if(t!=null&&(t=""+Pt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Pt(n):""}function Sa(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(Re(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Pt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Hl(e)}function V(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _=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 C(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Y(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="",ke=!0);for(var c in t)l=t[c],t.hasOwnProperty(c)&&n[c]!==l&&(C(e,c,l),ke=!0)}else for(var s in t)t.hasOwnProperty(s)&&C(e,s,t[s])}function G(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 me=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"],["maskType","mask-type"],["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"]]),xe=/^[\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 Ae(e){return xe.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ze(){}var iu=null;function Et(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dt=null,gu=null;function Mt(e){var t=Cn(e);if(t&&(e=t.stateNode)){var n=e[$t]||null;e:switch(e=t.stateNode,t.type){case"input":if(Di(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Wt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var c=l[$t]||null;if(!c)throw Error(r(90));Di(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Ci(l)}break e;case"textarea":ll(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&tn(e,!!n.multiple,t,!1)}}}var Aa=!1;function Jf(e,t,n){if(Aa)return e(t,n);Aa=!0;try{var l=e(t);return l}finally{if(Aa=!1,(dt!==null||gu!==null)&&(Hc(),dt&&(t=dt,e=gu,gu=dt=null,Mt(t),e)))for(t=0;t<e.length;t++)Mt(e[t])}}function Ni(e,t){var n=e.stateNode;if(n===null)return null;var l=n[$t]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),js=!1;if(Dn)try{var ki={};Object.defineProperty(ki,"passive",{get:function(){js=!0}}),window.addEventListener("test",ki,ki),window.removeEventListener("test",ki,ki)}catch{js=!1}var al=null,ws=null,qr=null;function Pf(){if(qr)return qr;var e,t=ws,n=t.length,l,c="value"in al?al.value:al.textContent,s=c.length;for(e=0;e<n&&t[e]===c[e];e++);var p=n-e;for(l=1;l<=p&&t[n-l]===c[s-l];l++);return qr=c.slice(e,1<l?1-l:void 0)}function Gr(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 Ir(){return!0}function Wf(){return!1}function eu(e){function t(n,l,c,s,p){this._reactName=n,this._targetInst=c,this.type=l,this.nativeEvent=s,this.target=p,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(s):s[b]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ir:Wf,this.isPropagationStopped=Wf,this}return te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ir)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ir)},persist:function(){},isPersistent:Ir}),t}var il={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yr=eu(il),ji=te({},il,{view:0,detail:0}),Cg=eu(ji),Os,Rs,wi,Vr=te({},ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ms,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!==wi&&(wi&&e.type==="mousemove"?(Os=e.screenX-wi.screenX,Rs=e.screenY-wi.screenY):Rs=Os=0,wi=e),Os)},movementY:function(e){return"movementY"in e?e.movementY:Rs}}),ed=eu(Vr),Dg=te({},Vr,{dataTransfer:0}),Ng=eu(Dg),kg=te({},ji,{relatedTarget:0}),zs=eu(kg),jg=te({},il,{animationName:0,elapsedTime:0,pseudoElement:0}),wg=eu(jg),Og=te({},il,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Rg=eu(Og),zg=te({},il,{data:0}),td=eu(zg),Mg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lg={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"},Ug={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ug[e])?!!t[e]:!1}function Ms(){return Fg}var Bg=te({},ji,{key:function(e){if(e.key){var t=Mg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Lg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ms,charCode:function(e){return e.type==="keypress"?Gr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Hg=eu(Bg),qg=te({},Vr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=eu(qg),Gg=te({},il,{submitter:0}),Ig=eu(Gg),Yg=te({},ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ms}),Vg=eu(Yg),Xg=te({},il,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zg=eu(Xg),$g=te({},Vr,{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}),Qg=eu($g),Kg=te({},il,{newState:0,oldState:0,source:0}),Jg=eu(Kg),Pg=[9,13,27,32],Ls=Dn&&"CompositionEvent"in window,Oi=null;Dn&&"documentMode"in document&&(Oi=document.documentMode);var Wg=Dn&&"TextEvent"in window&&!Oi,nd=Dn&&(!Ls||Oi&&8<Oi&&11>=Oi),ld=" ",ad=!1;function id(e,t){switch(e){case"keyup":return Pg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ta=!1;function eb(e,t){switch(e){case"compositionend":return rd(t);case"keypress":return t.which!==32?null:(ad=!0,ld);case"textInput":return e=t.data,e===ld&&ad?null:e;default:return null}}function tb(e,t){if(Ta)return e==="compositionend"||!Ls&&id(e,t)?(e=Pf(),qr=ws=al=null,Ta=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nd&&t.locale!=="ko"?null:t.data;default:return null}}var ub={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 cd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ub[e.type]:t==="textarea"}function sd(e,t,n,l){dt?gu?gu.push(l):gu=[l]:dt=l,t=Xc(t,"onChange"),0<t.length&&(n=new Yr("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ri=null,zi=null;function nb(e){K1(e,0)}function Xr(e){var t=Bl(e);if(Ci(t))return e}function od(e,t){if(e==="change")return t}var fd=!1;if(Dn){var Us;if(Dn){var Fs="oninput"in document;if(!Fs){var dd=document.createElement("div");dd.setAttribute("oninput","return;"),Fs=typeof dd.oninput=="function"}Us=Fs}else Us=!1;fd=Us&&(!document.documentMode||9<document.documentMode)}function hd(){Ri&&(Ri.detachEvent("onpropertychange",md),zi=Ri=null)}function md(e){if(e.propertyName==="value"&&Xr(zi)){var t=[];sd(t,zi,e,Et(e)),Jf(nb,t)}}function lb(e,t,n){e==="focusin"?(hd(),Ri=t,zi=n,Ri.attachEvent("onpropertychange",md)):e==="focusout"&&hd()}function ab(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xr(zi)}function ib(e,t){if(e==="click")return Xr(t)}function rb(e,t){if(e==="input"||e==="change")return Xr(t)}function cb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bu=typeof Object.is=="function"?Object.is:cb;function Mi(e,t){if(bu(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var c=n[l];if(!Ju.call(t,c)||!bu(e[c],t[c]))return!1}return!0}function Bs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function pd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gd(e,t){var n=pd(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pd(n)}}function bd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bs(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bs(e.document)}return t}function Hs(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 sb=Dn&&"documentMode"in document&&11>=document.documentMode,Ca=null,qs=null,Li=null,Gs=!1;function xd(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gs||Ca==null||Ca!==Bs(l)||(l=Ca,"selectionStart"in l&&Hs(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Li&&Mi(Li,l)||(Li=l,l=Xc(qs,"onSelect"),0<l.length&&(t=new Yr("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Ca)))}function ql(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Da={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionrun:ql("Transition","TransitionRun"),transitionstart:ql("Transition","TransitionStart"),transitioncancel:ql("Transition","TransitionCancel"),transitionend:ql("Transition","TransitionEnd")},Is={},vd={};Dn&&(vd=document.createElement("div").style,"AnimationEvent"in window||(delete Da.animationend.animation,delete Da.animationiteration.animation,delete Da.animationstart.animation),"TransitionEvent"in window||delete Da.transitionend.transition);function Gl(e){if(Is[e])return Is[e];if(!Da[e])return e;var t=Da[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in vd)return Is[e]=t[n];return e}var _d=Gl("animationend"),Ed=Gl("animationiteration"),Sd=Gl("animationstart"),ob=Gl("transitionrun"),fb=Gl("transitionstart"),db=Gl("transitioncancel"),Ad=Gl("transitionend"),Td=new Map,Ys="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Ys.push("scrollEnd");function Iu(e,t){Td.set(e,t),Wu(t,[e])}var hb=0;function Nn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Zu.identifierPrefix;var n=hb++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Cd(e){if(e==null||typeof e=="string")return e;var t=null,n=Za;if(n!==null)for(var l=0;l<n.length;l++){var c=e[n[l]];if(c!=null){if(c==="none")return"none";t=t==null?c:t+(" "+c)}}return t??e.default}function kn(e,t){return e=Cd(e),t=Cd(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Zr=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)},ju=[],Na=0,Vs=0;function $r(){for(var e=Na,t=Vs=Na=0;t<e;){var n=ju[t];ju[t++]=null;var l=ju[t];ju[t++]=null;var c=ju[t];ju[t++]=null;var s=ju[t];if(ju[t++]=null,l!==null&&c!==null){var p=l.pending;p===null?c.next=c:(c.next=p.next,p.next=c),l.pending=c}s!==0&&Dd(n,c,s)}}function Qr(e,t,n,l){ju[Na++]=e,ju[Na++]=t,ju[Na++]=n,ju[Na++]=l,Vs|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Xs(e,t,n,l){return Qr(e,t,n,l),Kr(e)}function Il(e,t){return Qr(e,null,null,t),Kr(e)}function Dd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var c=!1,s=e.return;s!==null;)s.childLanes|=n,l=s.alternate,l!==null&&(l.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(c=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,c&&t!==null&&(c=31-Dt(n),e=s.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=n|536870912),s):null}function Kr(e){if(50<lr)throw lr=0,Bc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ka={};function mb(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ru(e,t,n,l){return new mb(e,t,n,l)}function Zs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jn(e,t){var n=e.alternate;return n===null?(n=ru(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Nd(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Jr(e,t,n,l,c,s){var p=0;if(l=e,typeof l=="function")Zs(l)&&(p=1);else if(typeof l=="string")p=G3(e,n,it.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(l){case He:return e=ru(31,n,t,c),e.elementType=He,e.lanes=s,e;case Ee:return Yl(n.children,c,s,t);case Te:p=8,c|=24;break;case Qe:return e=ru(12,n,t,c|2),e.elementType=Qe,e.lanes=s,e;case re:return e=ru(13,n,t,c),e.elementType=re,e.lanes=s,e;case ae:return e=ru(19,n,t,c),e.elementType=ae,e.lanes=s,e;case L:case S:return e=c|32,e=ru(30,n,t,e),e.elementType=S,e.lanes=s,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case ye:p=10;break e;case Ue:p=9;break e;case K:p=11;break e;case Ce:p=14;break e;case be:p=16,l=null;break e}p=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=ru(p,n,t,c),t.elementType=e,t.type=l,t.lanes=s,t}function Yl(e,t,n,l){return e=ru(7,e,l,t),e.lanes=n,e}function $s(e,t,n){return e=ru(6,e,null,t),e.lanes=n,e}function kd(e){var t=ru(18,null,null,0);return t.stateNode=e,t}function Qs(e,t,n){return t=ru(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var jd=new WeakMap;function wu(e,t){if(typeof e=="object"&&e!==null){var n=jd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:_n(t)},jd.set(e,t),t)}return{value:e,source:t,stack:_n(t)}}var ja=[],wa=0,Pr=null,Ui=0,Ou=[],Ru=0,rl=null,un=1,nn="";function wn(e,t){ja[wa++]=Ui,ja[wa++]=Pr,Pr=e,Ui=t}function wd(e,t,n){Ou[Ru++]=un,Ou[Ru++]=nn,Ou[Ru++]=rl,rl=e;var l=un;e=nn;var c=32-Dt(l)-1;l&=~(1<<c),n+=1;var s=32-Dt(t)+c;if(30<s){var p=c-c%5;s=(l&(1<<p)-1).toString(32),l>>=p,c-=p,un=1<<32-Dt(t)+c|n<<c|l,nn=s+e}else un=1<<s|n<<c|l,nn=e}function Wr(e){e.return!==null&&(wn(e,1),wd(e,1,0))}function Ks(e){for(;e===Pr;)Pr=ja[--wa],ja[wa]=null,Ui=ja[--wa],ja[wa]=null;for(;e===rl;)rl=Ou[--Ru],Ou[Ru]=null,nn=Ou[--Ru],Ou[Ru]=null,un=Ou[--Ru],Ou[Ru]=null}function Od(e,t){Ou[Ru++]=un,Ou[Ru++]=nn,Ou[Ru++]=rl,un=t.id,nn=t.overflow,rl=e}var Nt=null,tt=null,Oe=!1,cl=null,zu=!1,Js=Error(r(519));function sl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fi(wu(t,e)),Js}function Rd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[_t]=e,t[$t]=l,n){case"dialog":Le("cancel",t),Le("close",t);break;case"iframe":case"object":case"embed":Le("load",t);break;case"video":case"audio":for(n=0;n<ir.length;n++)Le(ir[n],t);break;case"source":Le("error",t);break;case"img":case"image":case"link":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"input":Le("invalid",t),Hr(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Le("invalid",t);break;case"textarea":Le("invalid",t),Sa(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||em(t.textContent,n)?(l.popover!=null&&(Le("beforetoggle",t),Le("toggle",t)),l.onScroll!=null&&Le("scroll",t),l.onScrollEnd!=null&&Le("scrollend",t),l.onClick!=null&&(t.onclick=Ze),t=!0):t=!1,t||sl(e,!0)}function ec(e){for(Nt=e.return;Nt;)switch(Nt.tag){case 5:case 31:case 13:zu=!1;return;case 27:case 3:zu=!0;return;default:Nt=Nt.return}}function Oa(e){if(e!==Nt)return!1;if(!Oe)return ec(e),Oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||N0(e.type,e.memoizedProps)),n=!n),n&&tt&&sl(e),ec(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));tt=xm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));tt=xm(e)}else t===27?(t=tt,Tl(e.type)?(e=U0,U0=null,tt=e):tt=t):tt=Nt?Lu(e.stateNode.nextSibling):null;return!0}function Vl(){tt=Nt=null,Oe=!1}function Ps(){var e=cl;return e!==null&&(ou===null?ou=e:ou.push.apply(ou,e),cl=null),e}function Fi(e){cl===null?cl=[e]:cl.push(e)}var Ws=he(null),Xl=null,On=null;function ol(e,t,n){ge(Ws,t._currentValue),t._currentValue=n}function Rn(e){e._currentValue=Ws.current,q(Ws)}function tc(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function eo(e,t,n,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var s=c.dependencies;if(s!==null){var p=c.child;s=s.firstContext;e:for(;s!==null;){var b=s;s=c;for(var E=0;E<t.length;E++)if(b.context===t[E]){s.lanes|=n,b=s.alternate,b!==null&&(b.lanes|=n),tc(s.return,n,e),l||(p=null);break e}s=b.next}}else if(c.tag===18){if(p=c.return,p===null)throw Error(r(341));p.lanes|=n,s=p.alternate,s!==null&&(s.lanes|=n),tc(p,n,e),p=null}else c.tag===13&&c.memoizedState!==null&&c.memoizedState.dehydrated===null?(c.lanes|=n,p=c.alternate,p!==null&&(p.lanes|=n),tc(c.return,n,e),p=c.child,p=p!==null?p.sibling:null):p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===e){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}}function Zl(e,t,n,l){e=null;for(var c=t,s=!1;c!==null;){if(!s){if((c.flags&524288)!==0)s=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var p=c.alternate;if(p===null)throw Error(r(387));if(p=p.memoizedProps,p!==null){var b=c.type;bu(c.pendingProps.value,p.value)||(e!==null?e.push(b):e=[b])}}else if(c===yn.current){if(p=c.alternate,p===null)throw Error(r(387));p.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(ni):e=[ni])}c=c.return}return e!==null&&eo(t,e,n,l),t.flags|=262144,e!==null}function uc(e){for(e=e.firstContext;e!==null;){if(!bu(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $l(e){Xl=e,On=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Lt(e){return zd(Xl,e)}function nc(e,t){return Xl===null&&$l(e),zd(e,t)}function zd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},On===null){if(e===null)throw Error(r(308));On=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else On=On.next=t;return n}var pb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},gb=u.unstable_scheduleCallback,bb=u.unstable_NormalPriority,pt={$$typeof:ye,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function to(){return{controller:new pb,data:new Map,refCount:0}}function Bi(e){e.refCount--,e.refCount===0&&gb(bb,function(){e.controller.abort()})}function Md(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var l=t[e];n.indexOf(l)===-1&&n.push(l)}}}var Hi=null;function yb(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var qi=null,uo=0,Ql=0,Ra=null;function xb(e,t){if(qi===null){var n=qi=[];uo=0,Ql=x0(),Ra={status:"pending",value:void 0,then:function(l){n.push(l)}}}return uo++,t.then(Ld,Ld),t}function Ld(){if(--uo===0&&(Hi=null,qi!==null)){Ra!==null&&(Ra.status="fulfilled");var e=qi;qi=null,Ql=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vb(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),l}var Ud=I.S;I.S=function(e,t){if(k1=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&xb(e,t),Hi!==null)for(var n=Ja;n!==null;)Md(n,Hi),n=n.next;if(n=e.types,n!==null){for(var l=Ja;l!==null;)Md(l,n),l=l.next;if(Ql!==0){l=Hi,l===null&&(l=Hi=[]);for(var c=0;c<n.length;c++){var s=n[c];l.indexOf(s)===-1&&l.push(s)}}}Ud!==null&&Ud(e,t)};var Kl=he(null);function no(){var e=Kl.current;return e!==null?e:et.pooledCache}function lc(e,t){t===null?ge(Kl,Kl.current):ge(Kl,t.pool)}function Fd(){var e=no();return e===null?null:{parent:pt._currentValue,pool:e}}var za=Error(r(460)),lo=Error(r(474)),ac=Error(r(542)),ic={then:function(){}};function Bd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Ze,Ze),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gd(e),e===void 0&&!("reason"in t)?Error(r(600)):e;default:if(typeof t.status=="string")t.then(Ze,Ze);else{if(e=et,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gd(e),e}throw Pl=t,za}}function Jl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pl=n,za):n}}var Pl=null;function qd(){if(Pl===null)throw Error(r(459));var e=Pl;return Pl=null,e}function Gd(e){if(e===za||e===ac)throw Error(r(483))}var Ma=null,Gi=0;function rc(e){var t=Gi;return Gi+=1,Ma===null&&(Ma=[]),Hd(Ma,e,t)}function fl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function cc(e,t){throw t.$$typeof===ie?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Id(e){function t(k,A){if(e){var O=k.deletions;O===null?(k.deletions=[A],k.flags|=16):O.push(A)}}function n(k,A){if(!e)return null;for(;A!==null;)t(k,A),A=A.sibling;return null}function l(k){for(var A=new Map;k!==null;)k.key===null?A.set(k.index,k):A.set(k.key,k),k=k.sibling;return A}function c(k,A){return k=jn(k,A),k.index=0,k.sibling=null,k}function s(k,A,O){return k.index=O,e?(O=k.alternate,O!==null?(O=O.index,O<A?(k.flags|=2,A):O):(k.flags|=134217730,A)):(k.flags|=1048576,A)}function p(k){return e&&k.alternate===null&&(k.flags|=134217730),k}function b(k,A,O,F){return A===null||A.tag!==6?(A=$s(O,k.mode,F),A.return=k,A):(A=c(A,O),A.return=k,A)}function E(k,A,O,F){var oe=O.type;return oe===Ee?(k=M(k,A,O.props.children,F,O.key),fl(k,O),k):A!==null&&(A.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===be&&Jl(oe)===A.type)?(A=c(A,O.props),fl(A,O),A.return=k,A):(A=Jr(O.type,O.key,O.props,null,k.mode,F),fl(A,O),A.return=k,A)}function j(k,A,O,F){return A===null||A.tag!==4||A.stateNode.containerInfo!==O.containerInfo||A.stateNode.implementation!==O.implementation?(A=Qs(O,k.mode,F),A.return=k,A):(A=c(A,O.children||[]),A.return=k,A)}function M(k,A,O,F,oe){return A===null||A.tag!==7?(A=Yl(O,k.mode,F,oe),A.return=k,A):(A=c(A,O),A.return=k,A)}function B(k,A,O){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=$s(""+A,k.mode,O),A.return=k,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Ge:return O=Jr(A.type,A.key,A.props,null,k.mode,O),fl(O,A),O.return=k,O;case Ie:return A=Qs(A,k.mode,O),A.return=k,A;case be:return A=Jl(A),B(k,A,O)}if(Re(A)||fe(A))return A=Yl(A,k.mode,O,null),A.return=k,A;if(typeof A.then=="function")return B(k,rc(A),O);if(A.$$typeof===ye)return B(k,nc(k,A),O);cc(k,A)}return null}function D(k,A,O,F){var oe=A!==null?A.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return oe!==null?null:b(k,A,""+O,F);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Ge:return O.key===oe?E(k,A,O,F):null;case Ie:return O.key===oe?j(k,A,O,F):null;case be:return O=Jl(O),D(k,A,O,F)}if(Re(O)||fe(O))return oe!==null?null:M(k,A,O,F,null);if(typeof O.then=="function")return D(k,A,rc(O),F);if(O.$$typeof===ye)return D(k,A,nc(k,O),F);cc(k,O)}return null}function z(k,A,O,F,oe){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return k=k.get(O)||null,b(A,k,""+F,oe);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case Ge:return k=k.get(F.key===null?O:F.key)||null,E(A,k,F,oe);case Ie:return k=k.get(F.key===null?O:F.key)||null,j(A,k,F,oe);case be:return F=Jl(F),z(k,A,O,F,oe)}if(Re(F)||fe(F))return k=k.get(O)||null,M(A,k,F,oe,null);if(typeof F.then=="function")return z(k,A,O,rc(F),oe);if(F.$$typeof===ye)return z(k,A,O,nc(A,F),oe);cc(A,F)}return null}function le(k,A,O,F){for(var oe=null,Be=null,pe=A,ve=A=0,yt=null;pe!==null&&ve<O.length;ve++){pe.index>ve?(yt=pe,pe=null):yt=pe.sibling;var qe=D(k,pe,O[ve],F);if(qe===null){pe===null&&(pe=yt);break}e&&pe&&qe.alternate===null&&t(k,pe),A=s(qe,A,ve),Be===null?oe=qe:Be.sibling=qe,Be=qe,pe=yt}if(ve===O.length)return n(k,pe),Oe&&wn(k,ve),oe;if(pe===null){for(;ve<O.length;ve++)pe=B(k,O[ve],F),pe!==null&&(A=s(pe,A,ve),Be===null?oe=pe:Be.sibling=pe,Be=pe);return Oe&&wn(k,ve),oe}for(pe=l(pe);ve<O.length;ve++)yt=z(pe,k,ve,O[ve],F),yt!==null&&(e&&(qe=yt.alternate,qe!==null&&pe.delete(qe.key===null?ve:qe.key)),A=s(yt,A,ve),Be===null?oe=yt:Be.sibling=yt,Be=yt);return e&&pe.forEach(function(jl){return t(k,jl)}),Oe&&wn(k,ve),oe}function de(k,A,O,F){if(O==null)throw Error(r(151));for(var oe=null,Be=null,pe=A,ve=A=0,yt=null,qe=O.next();pe!==null&&!qe.done;ve++,qe=O.next()){pe.index>ve?(yt=pe,pe=null):yt=pe.sibling;var jl=D(k,pe,qe.value,F);if(jl===null){pe===null&&(pe=yt);break}e&&pe&&jl.alternate===null&&t(k,pe),A=s(jl,A,ve),Be===null?oe=jl:Be.sibling=jl,Be=jl,pe=yt}if(qe.done)return n(k,pe),Oe&&wn(k,ve),oe;if(pe===null){for(;!qe.done;ve++,qe=O.next())qe=B(k,qe.value,F),qe!==null&&(A=s(qe,A,ve),Be===null?oe=qe:Be.sibling=qe,Be=qe);return Oe&&wn(k,ve),oe}for(pe=l(pe);!qe.done;ve++,qe=O.next())qe=z(pe,k,ve,qe.value,F),qe!==null&&(e&&(yt=qe.alternate,yt!==null&&pe.delete(yt.key===null?ve:yt.key)),A=s(qe,A,ve),Be===null?oe=qe:Be.sibling=qe,Be=qe);return e&&pe.forEach(function(ey){return t(k,ey)}),Oe&&wn(k,ve),oe}function Ne(k,A,O,F){if(typeof O=="object"&&O!==null&&O.type===Ee&&O.key===null&&O.props.ref===void 0&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case Ge:e:{for(var oe=O.key;A!==null;){if(A.key===oe){if(oe=O.type,oe===Ee){if(A.tag===7){n(k,A.sibling),F=c(A,O.props.children),fl(F,O),F.return=k,k=F;break e}}else if(A.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===be&&Jl(oe)===A.type){n(k,A.sibling),F=c(A,O.props),fl(F,O),F.return=k,k=F;break e}n(k,A);break}else t(k,A);A=A.sibling}O.type===Ee?(F=Yl(O.props.children,k.mode,F,O.key),fl(F,O),F.return=k,k=F):(F=Jr(O.type,O.key,O.props,null,k.mode,F),fl(F,O),F.return=k,k=F)}return p(k);case Ie:e:{for(oe=O.key;A!==null;){if(A.key===oe)if(A.tag===4&&A.stateNode.containerInfo===O.containerInfo&&A.stateNode.implementation===O.implementation){n(k,A.sibling),F=c(A,O.children||[]),F.return=k,k=F;break e}else{n(k,A);break}else t(k,A);A=A.sibling}F=Qs(O,k.mode,F),F.return=k,k=F}return p(k);case be:return O=Jl(O),Ne(k,A,O,F)}if(Re(O))return le(k,A,O,F);if(fe(O)){if(oe=fe(O),typeof oe!="function")throw Error(r(150));return O=oe.call(O),de(k,A,O,F)}if(typeof O.then=="function")return Ne(k,A,rc(O),F);if(O.$$typeof===ye)return Ne(k,A,nc(k,O),F);cc(k,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,A!==null&&A.tag===6?(n(k,A.sibling),F=c(A,O),F.return=k,k=F):(n(k,A),F=$s(O,k.mode,F),F.return=k,k=F),p(k)):n(k,A)}return function(k,A,O,F){try{Gi=0;var oe=Ne(k,A,O,F);return Ma=null,oe}catch(pe){if(pe===za||pe===ac)throw pe;var Be=ru(29,pe,null,k.mode);return Be.lanes=F,Be.return=k,Be}}}var Wl=Id(!0),Yd=Id(!1),dl=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function io(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 hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ml(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Xe&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=Kr(e),Dd(e,null,n),t}return Qr(e,l,t,n),Kr(e)}function Ii(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Lr(e,n)}}function ro(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var c=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?c=s=p:s=s.next=p,n=n.next}while(n!==null);s===null?c=s=t:s=s.next=t}else c=s=t;n={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var co=!1;function Yi(){if(co){var e=Ra;if(e!==null)throw e}}function Vi(e,t,n,l){co=!1;var c=e.updateQueue;dl=!1;var s=c.firstBaseUpdate,p=c.lastBaseUpdate,b=c.shared.pending;if(b!==null){c.shared.pending=null;var E=b,j=E.next;E.next=null,p===null?s=j:p.next=j,p=E;var M=e.alternate;M!==null&&(M=M.updateQueue,b=M.lastBaseUpdate,b!==p&&(b===null?M.firstBaseUpdate=j:b.next=j,M.lastBaseUpdate=E))}if(s!==null){var B=c.baseState;p=0,M=j=E=null,b=s;do{var D=b.lane&-536870913,z=D!==b.lane;if(z?(Fe&D)===D:(l&D)===D){D!==0&&D===Ql&&(co=!0),M!==null&&(M=M.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var le=e,de=b;D=t;var Ne=n;switch(de.tag){case 1:if(le=de.payload,typeof le=="function"){B=le.call(Ne,B,D);break e}B=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=de.payload,D=typeof le=="function"?le.call(Ne,B,D):le,D==null)break e;B=te({},B,D);break e;case 2:dl=!0}}D=b.callback,D!==null&&(e.flags|=64,z&&(e.flags|=8192),z=c.callbacks,z===null?c.callbacks=[D]:z.push(D))}else z={lane:D,tag:b.tag,payload:b.payload,callback:b.callback,next:null},M===null?(j=M=z,E=B):M=M.next=z,p|=D;if(b=b.next,b===null){if(b=c.shared.pending,b===null)break;z=b,b=z.next,z.next=null,c.lastBaseUpdate=z,c.shared.pending=null}}while(!0);M===null&&(E=B),c.baseState=E,c.firstBaseUpdate=j,c.lastBaseUpdate=M,s===null&&(c.shared.lanes=0),_l|=p,e.lanes=p,e.memoizedState=B}}function Vd(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Xd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Vd(n[e],t)}var pl=he(null),sc=he(0);function Zd(e,t){e=Fn,ge(sc,e),ge(pl,t),Fn=e|t.baseLanes}function so(){ge(sc,Fn),ge(pl,pl.current)}function oo(){Fn=sc.current,q(pl),q(sc)}var Ut=he(null),Kt=null;function gl(e){var t=e.alternate;ge(Ft,Ft.current&1),ge(Ut,e),Kt===null&&(t===null||pl.current!==null||t.memoizedState!==null)&&(Kt=e)}function fo(e){ge(Ft,Ft.current),ge(Ut,e),Kt===null&&(Kt=e)}function $d(e){e.tag===22?(ge(Ft,Ft.current),ge(Ut,e),Kt===null&&(Kt=e)):bl()}function bl(){ge(Ft,Ft.current),ge(Ut,Ut.current)}function yu(e){q(Ut),Kt===e&&(Kt=null),q(Ft)}var Ft=he(0);function Xi(e,t){ge(Ut,Ut.current),ge(Ft,t)}function ho(e){q(Ft),q(Ut),Kt===e&&(Kt=null)}function oc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||M0(n)||L0(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){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 zn=0,De=null,We=null,gt=null,fc=!1,La=!1,ea=!1,dc=0,Zi=0,Ua=null,_b=0;function st(){throw Error(r(321))}function mo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!bu(e[n],t[n]))return!1;return!0}function po(e,t,n,l,c,s){return zn=s,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?wh:Oh,ea=!1,s=n(l,c),ea=!1,La&&(s=Kd(t,n,l,c)),Qd(e),s}function Qd(e){I.H=xc;var t=We!==null&&We.next!==null;if(zn=0,gt=We=De=null,fc=!1,Zi=0,Ua=null,t)throw Error(r(300));e===null||bt||(e=e.dependencies,e!==null&&uc(e)&&(bt=!0))}function Kd(e,t,n,l){De=e;var c=0;do{if(La&&(Ua=null),Zi=0,La=!1,25<=c)throw Error(r(301));if(c+=1,gt=We=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}I.H=kb,s=t(n,l)}while(La);return s}function Eb(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?$i(t):t,e=e.useState()[0],(We!==null?We.memoizedState:null)!==e&&(De.flags|=1024),t}function go(){var e=dc!==0;return dc=0,e}function bo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function yo(e){if(fc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fc=!1}zn=0,gt=We=De=null,La=!1,Zi=dc=0,Ua=null}function tu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?De.memoizedState=gt=e:gt=gt.next=e,gt}function ht(){if(We===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=We.next;var t=gt===null?De.memoizedState:gt.next;if(t!==null)gt=t,We=e;else{if(e===null)throw De.alternate===null?Error(r(467)):Error(r(310));We=e,e={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},gt===null?De.memoizedState=gt=e:gt=gt.next=e}return gt}function hc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $i(e){var t=Zi;return Zi+=1,Ua===null&&(Ua=[]),e=Hd(Ua,e,t),t=De,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?wh:Oh),e}function mc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return $i(e);if(e.$$typeof===H)return;if(e.$$typeof===ye)return Lt(e)}throw Error(r(438,String(e)))}function xo(e){var t=null,n=De.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=De.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=hc(),De.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=se;return t.index++,n}function Mn(e,t){return typeof t=="function"?t(e):t}function pc(e){var t=ht();return vo(t,We,e)}function vo(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var c=e.baseQueue,s=l.pending;if(s!==null){if(c!==null){var p=c.next;c.next=s.next,s.next=p}t.baseQueue=c=s,l.pending=null}if(s=e.baseState,c===null)e.memoizedState=s;else{t=c.next;var b=p=null,E=null,j=t,M=!1;do{var B=j.lane&-536870913;if(B!==j.lane?(Fe&B)===B:(zn&B)===B){var D=j.revertLane;if(D===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),B===Ql&&(M=!0);else if((zn&D)===D){j=j.next,D===Ql&&(M=!0);continue}else B={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},E===null?(b=E=B,p=s):E=E.next=B,De.lanes|=D,_l|=D;B=j.action,ea&&n(s,B),s=j.hasEagerState?j.eagerState:n(s,B)}else D={lane:B,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},E===null?(b=E=D,p=s):E=E.next=D,De.lanes|=B,_l|=B;j=j.next}while(j!==null&&j!==t);if(E===null?p=s:E.next=b,!bu(s,e.memoizedState)&&(bt=!0,M&&(n=Ra,n!==null)))throw n;e.memoizedState=s,e.baseState=p,e.baseQueue=E,l.lastRenderedState=s}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function _o(e){var t=ht(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,c=n.pending,s=t.memoizedState;if(c!==null){n.pending=null;var p=c=c.next;do s=e(s,p.action),p=p.next;while(p!==c);bu(s,t.memoizedState)||(bt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,l]}function Jd(e,t,n){var l=De,c=ht(),s=Oe;if(s){if(n===void 0)throw Error(r(407));n=n()}else n=t();var p=!bu((We||c).memoizedState,n);if(p&&(c.memoizedState=n,bt=!0),c=c.queue,Ao(eh.bind(null,l,c,e),[e]),e=c.getSnapshot!==t||p||gt!==null&&(gt.memoizedState.tag&1)!==0,Fa(e?9:8,{destroy:void 0},Wd.bind(null,l,c,n,t),null),e){if(l.flags|=2048,et===null)throw Error(r(349));s||(zn&127)!==0||Pd(l,t,n)}return n}function Pd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t=hc(),De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wd(e,t,n,l){t.value=n,t.getSnapshot=l,th(t)&&uh(e)}function eh(e,t,n){return n(function(){th(t)&&uh(e)})}function th(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bu(e,n)}catch{return!0}}function uh(e){var t=Il(e,2);t!==null&&fu(t,e,2)}function Eo(e){var t=tu();if(typeof e=="function"){var n=e;if(e=n(),ea){qu(!0);try{n()}finally{qu(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:e},t}function nh(e,t,n,l){return e.baseState=n,vo(e,We,typeof l=="function"?l:Mn)}function Sb(e,t,n,l,c){if(yc(e))throw Error(r(485));if(e=t.action,e!==null){var s={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){s.listeners.push(p)}};I.T!==null?n(!0):s.isTransition=!1,l(s),n=t.pending,n===null?(s.next=t.pending=s,lh(t,s)):(s.next=n.next,t.pending=n.next=s)}}function lh(e,t){var n=t.action,l=t.payload,c=e.state;if(t.isTransition){var s=I.T,p={};p.types=s!==null?s.types:null,I.T=p;try{var b=n(c,l),E=I.S;E!==null&&E(p,b),ah(e,t,b)}catch(j){So(e,t,j)}finally{s!==null&&p.types!==null&&(s.types=p.types),I.T=s}}else try{s=n(c,l),ah(e,t,s)}catch(j){So(e,t,j)}}function ah(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){ih(e,t,l)},function(l){return So(e,t,l)}):ih(e,t,n)}function ih(e,t,n){t.status="fulfilled",t.value=n,rh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,lh(e,n)))}function So(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,rh(t),t=t.next;while(t!==l)}e.action=null}function rh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ch(e,t){return t}function sh(e,t){if(Oe){var n=et.formState;if(n!==null){e:{var l=De;if(Oe){if(tt){t:{for(var c=tt,s=zu;c.nodeType!==8;){if(!s){c=null;break t}if(c=Lu(c.nextSibling),c===null){c=null;break t}}s=c.data,c=s==="F!"||s==="F"?c:null}if(c){tt=Lu(c.nextSibling),l=c.data==="F!";break e}}sl(l)}l=!1}l&&(t=n[0])}}return n=tu(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ch,lastRenderedState:t},n.queue=l,n=Nh.bind(null,De,l),l.dispatch=n,l=Eo(!1),s=ko.bind(null,De,!1,l.queue),l=tu(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,n=Sb.bind(null,De,c,s,n),c.dispatch=n,l.memoizedState=e,[t,n,!1]}function oh(e){var t=ht();return fh(t,We,e)}function fh(e,t,n){if(t=vo(e,t,ch)[0],e=pc(Mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=$i(t)}catch(p){throw p===za?ac:p}else l=t;t=ht();var c=t.queue,s=c.dispatch;return n!==t.memoizedState&&(De.flags|=2048,Fa(9,{destroy:void 0},Ab.bind(null,c,n),null)),[l,s,e]}function Ab(e,t){e.action=t}function dh(e){var t=ht(),n=We;if(n!==null)return fh(t,n,e);ht(),t=t.memoizedState,n=ht();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Fa(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=De.updateQueue,t===null&&(t=hc(),De.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function hh(){return ht().memoizedState}function gc(e,t,n,l){var c=tu();De.flags|=e,c.memoizedState=Fa(1|t,{destroy:void 0},n,l===void 0?null:l)}function bc(e,t,n,l){var c=ht();l=l===void 0?null:l;var s=c.memoizedState.inst;We!==null&&l!==null&&mo(l,We.memoizedState.deps)?c.memoizedState=Fa(t,s,n,l):(De.flags|=e,c.memoizedState=Fa(1|t,s,n,l))}function mh(e,t){gc(8390656,8,e,t)}function Ao(e,t){bc(2048,8,e,t)}function Tb(e){De.flags|=4;var t=De.updateQueue;if(t===null)t=hc(),De.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ph(e){var t=ht().memoizedState;return Tb({ref:t,nextImpl:e}),function(){if((Xe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function gh(e,t){return bc(4,2,e,t)}function bh(e,t){return bc(4,4,e,t)}function yh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xh(e,t,n){n=n!=null?n.concat([e]):null,bc(4,4,yh.bind(null,t,e),n)}function To(){}function vh(e,t){var n=ht();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&mo(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function _h(e,t){var n=ht();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&mo(t,l[1]))return l[0];if(l=e(),ea){qu(!0);try{e()}finally{qu(!1)}}return n.memoizedState=[l,t],l}function Co(e,t,n){return n===void 0||(zn&1073741824)!==0&&(Fe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=w1(),De.lanes|=e,_l|=e,n)}function Eh(e,t,n,l){return bu(n,t)?n:pl.current!==null?(e=Co(e,n,l),bu(e,t)||(bt=!0),e):(zn&106)===0||(zn&1073741824)!==0&&(Fe&261930)===0?(bt=!0,e.memoizedState=n):(e=w1(),De.lanes|=e,_l|=e,t)}function Sh(e,t,n,l,c){var s=P.p;P.p=s!==0&&8>s?s:8;var p=I.T,b={};b.types=p!==null?p.types:null,I.T=b,ko(e,!1,t,n);try{var E=c(),j=I.S;if(j!==null&&j(b,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var M=vb(E,l);Qi(e,t,M,Eu(e))}else Qi(e,t,l,Eu(e))}catch(B){Qi(e,t,{then:function(){},status:"rejected",reason:B},Eu())}finally{P.p=s,p!==null&&b.types!==null&&(p.types=b.types),I.T=p}}function Cb(){}function Do(e,t,n,l){if(e.tag!==5)throw Error(r(476));var c=Ah(e).queue;Sh(e,c,t,ze,n===null?Cb:function(){return Th(e),n(l)})}function Ah(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ze,baseState:ze,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:ze},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Th(e){var t=Ah(e);t.next===null&&(t=e.alternate.memoizedState),Qi(e,t.next.queue,{},Eu())}function No(){return Lt(ni)}function Ch(){return ht().memoizedState}function Dh(){return ht().memoizedState}function Db(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Eu();e=hl(n);var l=ml(t,e,n);l!==null&&(fu(l,t,n),Ii(l,t,n)),t={cache:to()},e.payload=t;return}t=t.return}}function Nb(e,t,n){var l=Eu();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},yc(e)?kh(t,n):(n=Xs(e,t,n,l),n!==null&&(fu(n,e,l),jh(n,t,l)))}function Nh(e,t,n){var l=Eu();Qi(e,t,n,l)}function Qi(e,t,n,l){var c={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(yc(e))kh(t,c);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var p=t.lastRenderedState,b=s(p,n);if(c.hasEagerState=!0,c.eagerState=b,bu(b,p))return Qr(e,t,c,0),et===null&&$r(),!1}catch{}if(n=Xs(e,t,c,l),n!==null)return fu(n,e,l),jh(n,t,l),!0}return!1}function ko(e,t,n,l){if(l={lane:2,revertLane:x0(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},yc(e)){if(t)throw Error(r(479))}else t=Xs(e,n,l,2),t!==null&&fu(t,e,2)}function yc(e){var t=e.alternate;return e===De||t!==null&&t===De}function kh(e,t){La=fc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Lr(e,n)}}var xc={readContext:Lt,use:mc,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st,useEffectEvent:st},wh={readContext:Lt,use:mc,useCallback:function(e,t){return tu().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:mh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,gc(4194308,4,yh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gc(4194308,4,e,t)},useInsertionEffect:function(e,t){gc(4,2,e,t)},useMemo:function(e,t){var n=tu();t=t===void 0?null:t;var l=e();if(ea){qu(!0);try{e()}finally{qu(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=tu();if(n!==void 0){var c=n(t);if(ea){qu(!0);try{n(t)}finally{qu(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=Nb.bind(null,De,e),[l.memoizedState,e]},useRef:function(e){var t=tu();return e={current:e},t.memoizedState=e},useState:function(e){e=Eo(e);var t=e.queue,n=Nh.bind(null,De,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:To,useDeferredValue:function(e,t){var n=tu();return Co(n,e,t)},useTransition:function(){var e=Eo(!1);return e=Sh.bind(null,De,e.queue,!0,!1),tu().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=De,c=tu();if(Oe){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),et===null)throw Error(r(349));(Fe&127)!==0||Pd(l,t,n)}c.memoizedState=n;var s={value:n,getSnapshot:t};return c.queue=s,mh(eh.bind(null,l,s,e),[e]),l.flags|=2048,Fa(9,{destroy:void 0},Wd.bind(null,l,s,n,t),null),n},useId:function(){var e=tu(),t=et.identifierPrefix;if(Oe){var n=nn,l=un;n=(l&~(1<<32-Dt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=dc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=_b++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:No,useFormState:sh,useActionState:sh,useOptimistic:function(e){var t=tu();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ko.bind(null,De,!0,n),n.dispatch=t,[e,t]},useMemoCache:xo,useCacheRefresh:function(){return tu().memoizedState=Db.bind(null,De)},useEffectEvent:function(e){var t=tu(),n={impl:e};return t.memoizedState=n,function(){if((Xe&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Oh={readContext:Lt,use:mc,useCallback:vh,useContext:Lt,useEffect:Ao,useImperativeHandle:xh,useInsertionEffect:gh,useLayoutEffect:bh,useMemo:_h,useReducer:pc,useRef:hh,useState:function(){return pc(Mn)},useDebugValue:To,useDeferredValue:function(e,t){var n=ht();return Eh(n,We.memoizedState,e,t)},useTransition:function(){var e=pc(Mn)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:$i(e),t]},useSyncExternalStore:Jd,useId:Ch,useHostTransitionStatus:No,useFormState:oh,useActionState:oh,useOptimistic:function(e,t){var n=ht();return nh(n,We,e,t)},useMemoCache:xo,useCacheRefresh:Dh,useEffectEvent:ph},kb={readContext:Lt,use:mc,useCallback:vh,useContext:Lt,useEffect:Ao,useImperativeHandle:xh,useInsertionEffect:gh,useLayoutEffect:bh,useMemo:_h,useReducer:_o,useRef:hh,useState:function(){return _o(Mn)},useDebugValue:To,useDeferredValue:function(e,t){var n=ht();return We===null?Co(n,e,t):Eh(n,We.memoizedState,e,t)},useTransition:function(){var e=_o(Mn)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:$i(e),t]},useSyncExternalStore:Jd,useId:Ch,useHostTransitionStatus:No,useFormState:dh,useActionState:dh,useOptimistic:function(e,t){var n=ht();return We!==null?nh(n,We,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:xo,useCacheRefresh:Dh,useEffectEvent:ph};function jo(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var wo={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Eu(),c=hl(l);c.payload=t,n!=null&&(c.callback=n),t=ml(e,c,l),t!==null&&(fu(t,e,l),Ii(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Eu(),c=hl(l);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=ml(e,c,l),t!==null&&(fu(t,e,l),Ii(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Eu(),l=hl(n);l.tag=2,t!=null&&(l.callback=t),t=ml(e,l,n),t!==null&&(fu(t,e,n),Ii(t,e,n))}};function Rh(e,t,n,l,c,s,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,p):t.prototype&&t.prototype.isPureReactComponent?!Mi(n,l)||!Mi(c,s):!0}function zh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&wo.enqueueReplaceState(t,t.state,null)}function ta(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=te({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function Mh(e){Zr(e)}function Lh(e){console.error(e)}function Uh(e){Zr(e)}function vc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Fh(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Oo(e,t,n){return n=hl(n),n.tag=3,n.payload={element:null},n.callback=function(){vc(e,t)},n}function Bh(e){return e=hl(e),e.tag=3,e}function Hh(e,t,n,l){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var s=l.value;e.payload=function(){return c(s)},e.callback=function(){Fh(t,n,l)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Fh(t,n,l),typeof c!="function"&&(El===null?El=new Set([this]):El.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function jb(e,t,n,l,c){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Zl(t,n,c,!0),n=Ut.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Kt===null?qc():n.alternate===null&&ot===0&&(ot=3),n.flags&=-257,n.flags|=65536,n.lanes=c,l===ic?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),g0(e,l,c)),!1;case 22:return n.flags|=65536,l===ic?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),g0(e,l,c)),!1}throw Error(r(435,n.tag))}return g0(e,l,c),qc(),!1}if(Oe)return t=Ut.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==Js&&(e=Error(r(422),{cause:l}),Fi(wu(e,n)))):(l!==Js&&(t=Error(r(423),{cause:l}),Fi(wu(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=wu(l,n),c=Oo(e.stateNode,l,c),ro(e,c),ot!==4&&(ot=2)),!1;var s=Error(r(520),{cause:l});if(s=wu(s,n),nr===null?nr=[s]:nr.push(s),ot!==4&&(ot=2),t===null)return!0;l=wu(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Oo(n.stateNode,l,e),ro(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(El===null||!El.has(s))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Bh(c),Hh(c,e,n,l),ro(n,c),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ro=Error(r(461)),bt=!1;function St(e,t,n,l){t.child=e===null?Yd(t,null,n,l):Wl(t,e.child,n,l)}function qh(e,t,n,l,c){n=n.render;var s=t.ref;if("ref"in l){var p={};for(var b in l)b!=="ref"&&(p[b]=l[b])}else p=l;return $l(t),l=po(e,t,n,p,s,c),b=go(),e!==null&&!bt?(bo(e,t,c),Ln(e,t,c)):(Oe&&b&&Wr(t),t.flags|=1,St(e,t,l,c),t.child)}function Gh(e,t,n,l,c){if(e===null){var s=n.type;return typeof s=="function"&&!Zs(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,Ih(e,t,s,l,c)):(e=Jr(n.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!qo(e,c)){var p=s.memoizedProps;if(n=n.compare,n=n!==null?n:Mi,n(p,l)&&e.ref===t.ref)return Ln(e,t,c)}return t.flags|=1,e=jn(s,l),e.ref=t.ref,e.return=t,t.child=e}function Ih(e,t,n,l,c){if(e!==null){var s=e.memoizedProps;if(Mi(s,l)&&e.ref===t.ref)if(bt=!1,t.pendingProps=l=s,qo(e,c))(e.flags&131072)!==0&&(bt=!0);else return t.lanes=e.lanes,Ln(e,t,c)}return zo(e,t,n,l,c)}function Yh(e,t,n,l){var c=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~s}else l=0,t.child=null;return Vh(e,t,s,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&lc(t,s!==null?s.cachePool:null),s!==null?Zd(t,s):so(),$d(t);else return l=t.lanes=536870912,Vh(e,t,s!==null?s.baseLanes|n:n,n,l)}else s!==null?(lc(t,s.cachePool),Zd(t,s),bl(),t.memoizedState=null):(e!==null&&lc(t,null),so(),bl());return St(e,t,c,n),t.child}function Ki(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vh(e,t,n,l,c){var s=no();return s=s===null?null:{parent:pt._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&lc(t,null),so(),$d(t),e!==null&&Zl(e,t,l,!0),t.childLanes=c,null}function _c(e,t){return t=Ec({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xh(e,t,n){return Wl(t,e.child,null,n),e=_c(t,t.pendingProps),e.flags|=2,yu(t),t.memoizedState=null,e}function wb(e,t,n){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(l.mode==="hidden")return e=_c(t,l),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Ki(null,e);if(fo(t),(e=tt)?(e=ym(e,zu),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:rl!==null?{id:un,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},n=kd(e),n.return=t,t.child=n,Nt=t,tt=null)):e=null,e===null)throw sl(t);return t.lanes=536870912,null}return _c(t,l)}var s=e.memoizedState;if(s!==null){var p=s.dehydrated;if(fo(t),c)if(t.flags&256)t.flags&=-257,t=Xh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(bt||Zl(e,t,n,!1),c=(n&e.childLanes)!==0,bt||c){if(pl.current===null){if(l=et,l!==null&&(p=yi(l,n),p!==0&&p!==s.retryLane))throw s.retryLane=p,Il(e,p),fu(l,e,p),Ro;qc()}t=Xh(e,t,n)}else e=s.treeContext,tt=Lu(p.nextSibling),Nt=t,Oe=!0,cl=null,zu=!1,e!==null&&Od(t,e),t=_c(t,l),t.flags|=134221824;return t}return e=jn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ba(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function zo(e,t,n,l,c){return $l(t),n=po(e,t,n,l,void 0,c),l=go(),e!==null&&!bt?(bo(e,t,c),Ln(e,t,c)):(Oe&&l&&Wr(t),t.flags|=1,St(e,t,n,c),t.child)}function Zh(e,t,n,l,c,s){return $l(t),t.updateQueue=null,n=Kd(t,l,n,c),Qd(e),l=go(),e!==null&&!bt?(bo(e,t,s),Ln(e,t,s)):(Oe&&l&&Wr(t),t.flags|=1,St(e,t,n,s),t.child)}function $h(e,t,n,l,c){if($l(t),t.stateNode===null){var s=ka,p=n.contextType;typeof p=="object"&&p!==null&&(s=Lt(p)),s=new n(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=wo,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},ao(t),p=n.contextType,s.context=typeof p=="object"&&p!==null?Lt(p):ka,s.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(jo(t,n,p,l),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(p=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),p!==s.state&&wo.enqueueReplaceState(s,s.state,null),Vi(t,l,s,c),Yi(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var b=t.memoizedProps,E=ta(n,b);s.props=E;var j=s.context,M=n.contextType;p=ka,typeof M=="object"&&M!==null&&(p=Lt(M));var B=n.getDerivedStateFromProps;M=typeof B=="function"||typeof s.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,M||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(b||j!==p)&&zh(t,s,l,p),dl=!1;var D=t.memoizedState;s.state=D,Vi(t,l,s,c),Yi(),j=t.memoizedState,b||D!==j||dl?(typeof B=="function"&&(jo(t,n,B,l),j=t.memoizedState),(E=dl||Rh(t,n,E,l,D,j,p))?(M||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=j),s.props=l,s.state=j,s.context=p,l=E):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,io(e,t),p=t.memoizedProps,M=ta(n,p),s.props=M,B=t.pendingProps,D=s.context,j=n.contextType,E=ka,typeof j=="object"&&j!==null&&(E=Lt(j)),b=n.getDerivedStateFromProps,(j=typeof b=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(p!==B||D!==E)&&zh(t,s,l,E),dl=!1,D=t.memoizedState,s.state=D,Vi(t,l,s,c),Yi();var z=t.memoizedState;p!==B||D!==z||dl||e!==null&&e.dependencies!==null&&uc(e.dependencies)?(typeof b=="function"&&(jo(t,n,b,l),z=t.memoizedState),(M=dl||Rh(t,n,M,l,D,z,E)||e!==null&&e.dependencies!==null&&uc(e.dependencies))?(j||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,z,E),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,z,E)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=z),s.props=l,s.state=z,s.context=E,l=M):(typeof s.componentDidUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Ba(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=Wl(t,e.child,null,c),t.child=Wl(t,null,n,c)):St(e,t,n,c),t.memoizedState=s.state,e=t.child):e=Ln(e,t,c),e}function Qh(e,t,n,l){return Vl(),t.flags|=256,St(e,t,n,l),t.child}var Mo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lo(e){return{baseLanes:e,cachePool:Fd()}}function Uo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=_u),e}function Kh(e,t,n){var l=t.pendingProps,c=!1,s=(t.flags&128)!==0,p;if((p=s)||(p=e!==null&&e.memoizedState===null?!1:(Ft.current&2)!==0),p&&(c=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(c?gl(t):bl(),(e=tt)?(e=ym(e,zu),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:rl!==null?{id:un,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},n=kd(e),n.return=t,t.child=n,Nt=t,tt=null)):e=null,e===null)throw sl(t);return L0(e)?t.lanes=32:t.lanes=536870912,null}return s=l.children,l=l.fallback,c?(bl(),c=t.mode,s=Ec({mode:"hidden",children:s},c),l=Yl(l,c,n,null),s.return=t,l.return=t,s.sibling=l,t.child=s,l=t.child,l.memoizedState=Lo(n),l.childLanes=Uo(e,p,n),t.memoizedState=Mo,Ki(null,l)):(gl(t),Fo(t,s))}var b=e.memoizedState;if(b!==null){var E=b.dehydrated;if(E!==null)return Ob(e,t,s,p,l,E,b,n)}return c?(bl(),c=l.fallback,s=t.mode,b=e.child,E=b.sibling,l=jn(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&1206910976,E!==null?c=jn(E,c):(c=Yl(c,s,n,null),c.flags|=2),c.return=t,l.return=t,l.sibling=c,t.child=l,Ki(null,l),l=t.child,c=e.child.memoizedState,c===null?c=Lo(n):(s=c.cachePool,s!==null?(b=pt._currentValue,s=s.parent!==b?{parent:b,pool:b}:s):s=Fd(),c={baseLanes:c.baseLanes|n,cachePool:s}),l.memoizedState=c,l.childLanes=Uo(e,p,n),t.memoizedState=Mo,Ki(e.child,l)):(gl(t),n=e.child,e=n.sibling,n=jn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function Fo(e,t){return t=Ec({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ec(e,t){return e=ru(22,e,null,t),e.lanes=0,e}function Sc(e,t,n){return Wl(t,e.child,null,n),e=Fo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ob(e,t,n,l,c,s,p,b){if(n)return t.flags&256?(gl(t),t.flags&=-257,Sc(e,t,b)):t.memoizedState!==null?(bl(),t.child=e.child,t.flags|=128,null):(bl(),s=c.fallback,p=t.mode,c=Ec({mode:"visible",children:c.children},p),s=Yl(s,p,b,null),s.flags|=2,c.return=t,s.return=t,c.sibling=s,t.child=c,Wl(t,e.child,null,b),c=t.child,c.memoizedState=Lo(b),c.childLanes=Uo(e,l,b),t.memoizedState=Mo,Ki(null,c));if(gl(t),L0(s)){if(l=s.nextSibling&&s.nextSibling.dataset,l)var E=l.dgst;return l=E,l!==""&&(c=Error(r(419)),c.stack="",c.digest=l,Fi({value:c,source:null,stack:null})),Sc(e,t,b)}if(bt||Zl(e,t,b,!1),l=(b&e.childLanes)!==0,bt||l){if(pl.current!==null)return Sc(e,t,b);if(l=et,l!==null&&(c=yi(l,b),c!==0&&c!==p.retryLane))throw p.retryLane=c,Il(e,c),fu(l,e,c),Ro;return M0(s)||qc(),Sc(e,t,b)}return M0(s)?(t.flags|=192,t.child=e.child,null):(e=p.treeContext,tt=Lu(s.nextSibling),Nt=t,Oe=!0,cl=null,zu=!1,e!==null&&Od(t,e),t=Fo(t,c.children),t.flags|=134221824,t)}function Jh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),tc(e.return,t,n)}function Ph(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&oc(n)===null&&(t=e),e=e.sibling}return t}function Ac(e,t,n,l,c,s){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:c,treeForkCount:s}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=n,p.tailMode=c,p.treeForkCount=s)}function Bo(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function Ho(e,t,n){var l=t.pendingProps,c=l.revealOrder,s=l.tail;l=l.children;var p=Ft.current;if(t.flags&128)return Xi(t,p),null;var b=(p&2)!==0;if(b?(p=p&1|2,t.flags|=128):p&=1,Xi(t,p),c==="backwards"&&e!==null?(Bo(e),St(e,t,l,n),Bo(e)):St(e,t,l,n),l=Oe?Ui:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jh(e,n,t);else if(e.tag===19)Jh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"backwards":n=Ph(t.child),n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null,Bo(t)),Ac(t,!0,c,null,s,l);break;case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&oc(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Ac(t,!0,n,null,s,l);break;case"together":Ac(t,!1,null,null,void 0,l);break;case"independent":t.memoizedState=null;break;default:n=Ph(t.child),n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Ac(t,!1,c,n,s,l)}return t.child}function Wh(e,t,n){var l=t.pendingProps;return ol(t,t.type,l.value),St(e,t,l.children,n),t.child}function Ln(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_l|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Zl(e,t,n,!1),(n&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,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&uc(e)))}function Rb(e,t,n){switch(t.tag){case 3:zt(t,t.stateNode.containerInfo),ol(t,pt,e.memoizedState.cache),Vl();break;case 27:case 5:Ku(t);break;case 4:zt(t,t.stateNode.containerInfo);break;case 10:ol(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,fo(t),null;break;case 13:var l=t.memoizedState;if(l!==null){if(l.dehydrated!==null)return gl(t),t.flags|=128,null;l=Zl(e,t,n,!1);var c=t.child.childLanes;return l||(n&c)!==0?Kh(e,t,n):(gl(t),e=Ln(e,t,n),e!==null?e.sibling:null)}gl(t);break;case 19:if(t.flags&128)return Ho(e,t,n);if(c=(e.flags&128)!==0,l=(n&t.childLanes)!==0,l||(Zl(e,t,n,!1),l=(n&t.childLanes)!==0),c){if(l)return Ho(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Xi(t,Ft.current),l)break;return null;case 22:return t.lanes=0,Yh(e,t,n,t.pendingProps);case 24:ol(t,pt,e.memoizedState.cache)}return Ln(e,t,n)}function e1(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)bt=!0;else{if(!qo(e,n)&&(t.flags&128)===0)return bt=!1,Rb(e,t,n);bt=(e.flags&131072)!==0}else bt=!1,Oe&&(t.flags&1048576)!==0&&wd(t,Ui,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Jl(t.elementType),t.type=e,typeof e=="function")Zs(e)?(l=ta(e,l),t.tag=1,t=$h(null,t,e,l,n)):(t.tag=0,t=zo(null,t,e,l,n));else{if(e!=null){var c=e.$$typeof;if(c===K){t.tag=11,t=qh(null,t,e,l,n);break e}else if(c===Ce){t.tag=14,t=Gh(null,t,e,l,n);break e}else if(c===ye){t.tag=10,t.type=e,t=Wh(null,t,n);break e}}throw t=we(e)||e,Error(r(306,t,""))}}return t;case 0:return zo(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,c=ta(l,t.pendingProps),$h(e,t,l,c,n);case 3:e:{if(zt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var s=t.memoizedState;c=s.element,io(e,t),Vi(t,l,null,n);var p=t.memoizedState;if(l=p.cache,ol(t,pt,l),l!==s.cache&&eo(t,[pt],n,!0),Yi(),l=p.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Qh(e,t,l,n);break e}else if(l!==c){c=wu(Error(r(424)),t),Fi(c),t=Qh(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,tt=Lu(e.firstChild),Nt=t,Oe=!0,cl=null,zu=!0,n=Yd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling;else{if(Vl(),l===c){t=Ln(e,t,n);break e}St(e,t,l,n)}t=t.child}return t;case 26:return Ba(e,t),e===null?(n=Tm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oe||(t.stateNode=lm(t.type,t.pendingProps,Vt.current,t)):t.memoizedState=Tm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ku(t),e===null&&Oe&&(l=t.stateNode=_m(t.type,t.pendingProps,Vt.current),Nt=t,zu=!0,c=tt,Tl(t.type)?(U0=c,tt=Lu(l.firstChild)):tt=c),St(e,t,t.pendingProps.children,n),Ba(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((c=l=tt)&&(l=D3(l,t.type,t.pendingProps,zu),l!==null?(t.stateNode=l,Nt=t,tt=Lu(l.firstChild),zu=!1,c=!0):c=!1),c||sl(t)),Ku(t),c=t.type,s=t.pendingProps,p=e!==null?e.memoizedProps:null,l=s.children,N0(c,s)?l=null:p!==null&&N0(c,p)&&(t.flags|=32),t.memoizedState!==null&&(c=po(e,t,Eb,null,null,n),ni._currentValue=c),Ba(e,t),St(e,t,l,n),t.child;case 6:return e===null&&Oe&&((e=n=tt)&&(n=N3(n,t.pendingProps,zu),n!==null?(t.stateNode=n,Nt=t,tt=null,e=!0):e=!1),e||sl(t)),null;case 13:return Kh(e,t,n);case 4:return zt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Wl(t,null,l,n):St(e,t,l,n),t.child;case 11:return qh(e,t,t.type,t.pendingProps,n);case 7:return l=t.pendingProps,Ba(e,t),St(e,t,l,n),t.child;case 8:return St(e,t,t.pendingProps.children,n),t.child;case 12:return St(e,t,t.pendingProps.children,n),t.child;case 10:return Wh(e,t,n);case 9:return c=t.type._context,l=t.pendingProps.children,$l(t),c=Lt(c),l=l(c),t.flags|=1,St(e,t,l,n),t.child;case 14:return Gh(e,t,t.type,t.pendingProps,n);case 15:return Ih(e,t,t.type,t.pendingProps,n);case 19:return Ho(e,t,n);case 31:return wb(e,t,n);case 22:return Yh(e,t,n,t.pendingProps);case 24:return $l(t),l=Lt(pt),e===null?(c=no(),c===null&&(c=et,s=to(),c.pooledCache=s,s.refCount++,s!==null&&(c.pooledCacheLanes|=n),c=s),t.memoizedState={parent:l,cache:c},ao(t),ol(t,pt,c)):((e.lanes&n)!==0&&(io(e,t),Vi(t,null,null,n),Yi()),c=e.memoizedState,s=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),ol(t,pt,l)):(l=s.cache,ol(t,pt,l),l!==c.cache&&eo(t,[pt],n,!0))),St(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=t.pendingProps,l.name!=null&&l.name!=="auto"?t.flags|=e===null?18882560:18874368:Oe&&Wr(t),e!==null&&e.memoizedProps.name!==l.name?t.flags|=4194816:Ba(e,t),St(e,t,l.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Un(e){e.flags|=4}function Go(e,t,n,l,c){var s;if((s=(e.mode&32)!==0)&&(s=n===null?km(t,l):km(t,l)&&(l.src!==n.src||l.srcSet!==n.srcSet)),s){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(M1())e.flags|=8192;else throw Pl=ic,lo}else e.flags&=-16777217}function t1(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!jm(t))if(M1())e.flags|=8192;else throw Pl=ic,lo}function Tc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Jn():536870912,e.lanes|=t,Ya|=t)}function Ji(e,t){if(!Oe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags&1206910976,l|=c.flags&1206910976,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function zb(e,t,n){var l=t.pendingProps;switch(Ks(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return ut(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Rn(pt),Hu(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Oa(t)?Un(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ps())),ut(t),null;case 26:var c=t.type,s=t.memoizedState;return e===null?(Un(t),s!==null?(ut(t),t1(t,s)):(ut(t),Go(t,c,null,l,n))):s?s!==e.memoizedState?(Un(t),ut(t),t1(t,s)):(ut(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Un(t),ut(t),Go(t,c,e,l,n)),null;case 27:if(ft(t),n=Vt.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Un(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return ut(t),t.subtreeFlags&=-33554433,null}e=it.current,Oa(t)?Rd(t):(e=_m(c,l,n),t.stateNode=e,Un(t))}return ut(t),t.subtreeFlags&=-33554433,null;case 5:if(ft(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Un(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return ut(t),t.subtreeFlags&=-33554433,null}if(s=it.current,Oa(t))Rd(t);else{var p=cr(Vt.current);switch(s){case 1:s=p.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:s=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":s=p.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":s=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":s=p.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?p.createElement(c,{is:l.is}):p.createElement(c)}}s[_t]=t,s[$t]=l;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)s.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=s;e:switch(Ht(s,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Un(t)}}return ut(t),t.subtreeFlags&=-33554433,Go(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Un(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=Vt.current,Oa(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,c=Nt,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[_t]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||em(e.nodeValue,n)),e||sl(t,!0)}else e=cr(e).createTextNode(l),e[_t]=t,t.stateNode=e}return ut(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Oa(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[_t]=t}else Vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),e=!1}else n=Ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(yu(t),t):(yu(t),null);if((t.flags&128)!==0)throw Error(r(558))}return ut(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Oa(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[_t]=t}else Vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),c=!1}else c=Ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(yu(t),t):(yu(t),null)}return yu(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==c&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Tc(t,t.updateQueue),ut(t),null);case 4:return Hu(),e===null&&S0(t.stateNode.containerInfo),t.flags|=67108864,ut(t),null;case 10:return Rn(t.type),ut(t),null;case 19:if(ho(t),l=t.memoizedState,l===null)return ut(t),null;if(c=(t.flags&128)!==0,s=l.rendering,s===null)if(c)Ji(l,!1);else{if(ot!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=oc(e),s!==null){for(t.flags|=128,Ji(l,!1),e=s.updateQueue,t.updateQueue=e,Tc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Nd(n,e),n=n.sibling;return Xi(t,Ft.current&1|2),Oe&&wn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ct()>Uc&&(t.flags|=128,c=!0,Ji(l,!1),t.lanes=4194304)}else{if(!c)if(e=oc(s),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Tc(t,e),Ji(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!s.alternate&&!Oe)return ut(t),null}else 2*Ct()-l.renderingStartTime>Uc&&n!==536870912&&(t.flags|=128,c=!0,Ji(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}if(l.tail!==null){e=l.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ct(),e.sibling=null,s=Ft.current,s=c?s&1|2:s&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!n||Oe?Xi(t,s):(n=s,ge(Ut,t),ge(Ft,n),Kt===null&&(Kt=t)),Oe&&wn(t,l.treeForkCount),e}return ut(t),null;case 22:case 23:return yu(t),oo(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),n=t.updateQueue,n!==null&&Tc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&q(Kl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Rn(pt),ut(t),null;case 25:return null;case 30:return t.flags|=33554432,ut(t),null}throw Error(r(156,t.tag))}function Mb(e,t){switch(Ks(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rn(pt),Hu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ft(t),null;case 31:if(t.memoizedState!==null){if(yu(t),t.alternate===null)throw Error(r(340));Vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(yu(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ho(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Hu(),null;case 10:return Rn(t.type),null;case 22:case 23:return yu(t),oo(),e!==null&&q(Kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Rn(pt),null;case 25:return null;default:return null}}function u1(e,t){switch(Ks(t),t.tag){case 3:Rn(pt),Hu();break;case 26:case 27:case 5:ft(t);break;case 4:Hu();break;case 31:t.memoizedState!==null&&yu(t);break;case 13:yu(t);break;case 19:ho(t);break;case 10:Rn(t.type);break;case 22:case 23:yu(t),oo(),e!==null&&q(Kl);break;case 24:Rn(pt)}}function Pi(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var c=l.next;n=c;do{if((n.tag&e)===e){l=void 0;var s=n.create,p=n.inst;l=s(),p.destroy=l}n=n.next}while(n!==c)}}catch(b){Je(t,t.return,b)}}function yl(e,t,n){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var s=c.next;l=s;do{if((l.tag&e)===e){var p=l.inst,b=p.destroy;if(b!==void 0){p.destroy=void 0,c=t;var E=n,j=b;try{j()}catch(M){Je(c,E,M)}}}l=l.next}while(l!==s)}}catch(M){Je(t,t.return,M)}}function n1(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xd(t,n)}catch(l){Je(e,e.return,l)}}}function l1(e,t,n){n.props=ta(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Je(e,t,l)}}function ln(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:var c=e.stateNode,s=Nn(e.memoizedProps,c);(c.ref===null||c.ref.name!==s)&&(c.ref=fm(s)),l=c.ref;break;case 7:if(e.stateNode===null){var p=new Su(e);x(e.child,!1,T3,p,void 0,void 0),e.stateNode=p}l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(b){Je(e,t,b)}}function Bt(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(c){Je(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Je(e,t,c)}else n.current=null}function Cc(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)bm(e.stateNode,t[n])}function a1(e){for(var t=e.return;t!==null&&(Yo(t)&&bm(e.stateNode,t.stateNode),!Io(t));)t=t.return}function Wi(e){for(var t=e.return;t!==null&&(Yo(t)&&C3(e.stateNode,t.stateNode),!Io(t));)t=t.return}function Io(e){return e.tag===5||e.tag===3||e.tag===27}function Yo(e){return e&&e.tag===7&&e.stateNode!==null}function Vo(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(c){Je(e,e.return,c)}}function Xo(e,t,n){try{var l=e.stateNode;r3(l,e.type,n,t),l[$t]=t}catch(c){Je(e,e.return,c)}}function i1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tl(e.type)||e.tag===4}function Zo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||i1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Tl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $o(e,t,n,l){var c=e.tag;if(c===5||c===6)c=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(c,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(c),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ze)),Cc(e,l),ke=!0;else if(c!==4&&(c===27&&(Cc(e,l),l=null,Tl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for($o(e,t,n,l),e=e.sibling;e!==null;)$o(e,t,n,l),e=e.sibling}function Dc(e,t,n,l){var c=e.tag;if(c===5||c===6)c=e.stateNode,t?n.insertBefore(c,t):n.appendChild(c),Cc(e,l),ke=!0;else if(c!==4&&(c===27&&(Cc(e,l),l=null,Tl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Dc(e,t,n,l),e=e.sibling;e!==null;)Dc(e,t,n,l),e=e.sibling}function r1(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Ht(t,l,n),t[_t]=e,t[$t]=n}catch(s){Je(e,e.return,s)}}var Nc=!1,xu=null;function c1(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Nc=!0)}var an=null;function s1(){var e=an;return an=null,e}var cu=0;function Ha(e,t,n,l,c){return cu=0,o1(e.child,t,n,l,c)}function o1(e,t,n,l,c){for(var s=!1;e!==null;){if(e.tag===5){var p=e.stateNode;if(l!==null){var b=w0(p);l.push(b),b.view&&(s=!0)}else s||w0(p).view&&(s=!0);Nc=!0,sm(p,cu===0?t:t+"_"+cu,n),cu++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&c||o1(e.child,t,n,l,c)&&(s=!0));e=e.sibling}return s}function rn(e,t){for(;e!==null;)e.tag===5?om(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||rn(e.child,t)),e=e.sibling}function kc(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(kc(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(r(544));var n=t.name;t=kn(t.default,t.share),t!=="none"&&(Ha(e,n,t,null,!1)||rn(e.child,!1))}e=e.sibling}}function Qo(e,t){if(e.tag===30){var n=e.stateNode,l=e.memoizedProps,c=Nn(l,n),s=kn(l.default,n.paired?l.share:l.enter);s!=="none"?Ha(e,c,s,null,!1)?(kc(e),n.paired||t||$a(e,l.onEnter)):rn(e.child,!1):kc(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Qo(e,t),e=e.sibling;else kc(e)}function Ko(e){if(xu!==null&&xu.size!==0){var t=xu;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,l=n.name;if(l!=null&&l!=="auto"){var c=t.get(l);if(c!==void 0){var s=kn(n.default,n.share);if(s!=="none"&&(Ha(e,l,s,null,!1)?(s=e.stateNode,c.paired=s,s.paired=c,$a(e,n.onShare)):rn(e.child,!1)),t.delete(l),t.size===0)break}}}Ko(e)}e=e.sibling}}}function Jo(e){if(e.tag===30){var t=e.memoizedProps,n=Nn(t,e.stateNode),l=xu!==null?xu.get(n):void 0,c=kn(t.default,l!==void 0?t.share:t.exit);c!=="none"&&(Ha(e,n,c,null,!1)?l!==void 0?(c=e.stateNode,l.paired=c,c.paired=l,xu.delete(n),$a(e,t.onShare)):$a(e,t.onExit):rn(e.child,!1)),xu!==null&&Ko(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Jo(e),e=e.sibling;else xu!==null&&Ko(e)}function f1(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Nn(t,e.stateNode);t=kn(t.default,t.update),e.flags&=-5,t!=="none"&&Ha(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&f1(e);e=e.sibling}}function Po(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,rn(e.child,!1))}Po(e)}e=e.sibling}}function jc(e){if(e.tag===30)e.stateNode.paired=null,rn(e.child,!1),Po(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)jc(e),e=e.sibling;else Po(e)}function d1(e){for(e=e.child;e!==null;)e.tag===30?rn(e.child,!1):(e.subtreeFlags&33554432)!==0&&d1(e),e=e.sibling}function Wo(e,t,n,l,c,s,p){for(var b=!1;t!==null;){if(t.tag===5){var E=t.stateNode;if(s!==null&&cu<s.length){var j=s[cu],M=w0(E);(j.view||M.view)&&(b=!0);var B;if(B=(e.flags&4)===0)if(M.clip)B=!0;else{B=j.rect;var D=M.rect;B=B.y!==D.y||B.x!==D.x||B.height!==D.height||B.width!==D.width}B&&(e.flags|=4),M.abs?M=!j.abs:(j=j.rect,M=M.rect,M=j.height!==M.height||j.width!==M.width),M&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&sm(E,cu===0?n:n+"_"+cu,c),b&&(e.flags&4)!==0||(an===null&&(an=[]),an.push(E,cu===0?l:l+"_"+cu,t.memoizedProps)),cu++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&p?e.flags|=t.flags&32:Wo(e,t.child,n,l,c,s,p)&&(b=!0));t=t.sibling}return b}function h1(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,l=e.stateNode,c=Nn(n,l),s=kn(n.default,n.update),p;p=e.memoizedState,e.memoizedState=null,l=e;var b=e.child;cu=0,c=Wo(l,b,c,c,s,p,!1),(e.flags&4)!==0&&c&&$a(e,n.onUpdate)}else(e.subtreeFlags&33554432)!==0&&h1(e);e=e.sibling}}var kt=!1,$e=!1,cn=!1,e0=!1,m1=typeof WeakSet=="function"?WeakSet:Set,jt=null,sn=!1,er=!1,wc=!1,t0=!1;function Lb(e,t,n){if(e=e.containerInfo,C0=li,e=yd(e),Hs(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var s=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var b=0,E=-1,j=-1,M=0,B=0,D=e,z=null;t:for(;;){for(var le;D!==l||s!==0&&D.nodeType!==3||(E=b+s),D!==p||c!==0&&D.nodeType!==3||(j=b+c),D.nodeType===3&&(b+=D.nodeValue.length),(le=D.firstChild)!==null;)z=D,D=le;for(;;){if(D===e)break t;if(z===l&&++M===s&&(E=b),z===p&&++B===c&&(j=b),(le=D.nextSibling)!==null)break;D=z,z=D.parentNode}D=le}l=E===-1||j===-1?null:{start:E,end:j}}else l=null}l=l||{start:0,end:0}}else l=null;for(D0={focusedElem:e,selectionRange:l},li=!1,n=(n&335544064)===n,jt=t,t=n?9270:1024;jt!==null;){if(e=jt,n&&(l=e.deletions,l!==null))for(s=0;s<l.length;s++)n&&Jo(l[s]);if(e.alternate===null&&(e.flags&2)!==0)n&&c1(e),Oc(n);else{if(e.tag===22){if(l=e.alternate,e.memoizedState!==null){l!==null&&l.memoizedState===null&&n&&Jo(l),Oc(n);continue}else if(l!==null&&l.memoizedState!==null){n&&c1(e),Oc(n);continue}}l=e.child,(e.subtreeFlags&t)!==0&&l!==null?(l.return=e,jt=l):(n&&f1(e),Oc(n))}}xu=null}function Oc(e){for(;jt!==null;){var t=jt,n=e,l=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((c&1024)!==0&&l!==null){n=void 0,c=l.memoizedProps,l=l.memoizedState;var s=t.stateNode;try{var p=ta(t.type,c);n=s.getSnapshotBeforeUpdate(p,l),s.__reactInternalSnapshotBeforeUpdate=n}catch(b){Je(t,t.return,b)}}break;case 3:if((c&1024)!==0){if(l=t.stateNode.containerInfo,n=l.nodeType,n===9)z0(l);else if(n===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":z0(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&l!==null&&(n=Nn(l.memoizedProps,l.stateNode),c=t.memoizedProps,c=kn(c.default,c.update),c!=="none"&&Ha(l,n,c,l.memoizedState=[],!0));break;default:if((c&1024)!==0)throw Error(r(163))}if(l=t.sibling,l!==null){l.return=t.return,jt=l;break}jt=t.return}}function p1(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:on(e,n),l&4&&Pi(5,n);break;case 1:if(on(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Je(n,n.return,p)}else{var c=ta(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Je(n,n.return,p)}}l&64&&n1(n),l&512&&ln(n,n.return);break;case 3:if(on(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xd(e,t)}catch(p){Je(n,n.return,p)}}break;case 27:t===null&&l&4&&r1(n);case 26:case 5:on(e,n),t===null&&l&4&&Vo(n),l&512&&ln(n,n.return);break;case 12:on(e,n);break;case 31:on(e,n),l&4&&x1(e,n);break;case 13:on(e,n),l&4&&v1(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$b.bind(null,n),k3(e,n))));break;case 22:if(l=n.memoizedState!==null||kt,!l){var s=t!==null&&t.memoizedState!==null||$e;t=kt,c=$e,kt=l,($e=s)&&!c?(l=2,(n.subtreeFlags&8772)!==0&&(l|=1),Xu(e,n,l)):on(e,n),kt=t,$e=c}break;case 30:on(e,n),l&512&&ln(n,n.return);break;case 7:l&512&&ln(n,n.return);default:on(e,n)}}function u0(e,t){for(e=e.child;e!==null;)g1(e,t),e=e.sibling}function g1(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var l=n.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var c=e.stateNode,s=e.memoizedProps.style,p=s!=null&&s.hasOwnProperty("display")?s.display:null;c.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(E){Je(e,e.return,E)}n0(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ke=!0}catch(E){Je(e,e.return,E)}break;case 18:try{var b=e.stateNode;t?cm(b,!0):cm(e.stateNode,!1)}catch(E){Je(e,e.return,E)}break;case 22:case 23:e.memoizedState===null&&u0(e,t);break;default:u0(e,t)}}function n0(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,l=t;switch(n.tag){case 4:g1(n,l);break e;case 22:n.memoizedState===null&&n0(n,l);break e;default:n0(n,l)}}e=e.sibling}}function b1(e){var t=e.alternate;t!==null&&(e.alternate=null,b1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&el(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 lt=null,su=!1;function Yu(e,t,n){for(n=n.child;n!==null;)y1(e,t,n),n=n.sibling}function y1(e,t,n){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(Xt,n)}catch{}switch(n.tag){case 26:$e||Bt(n,t),Yu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!$e&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:$e||Bt(n,t),Wi(n);var l=lt,c=su;Tl(n.type)&&(lt=n.stateNode,su=!1),Yu(e,t,n),Em(n.stateNode,n.type,n.memoizedProps),lt=l,su=c;break;case 5:$e||Bt(n,t),Wi(n);case 6:if(n.tag===6&&Wi(n),l=lt,c=su,lt=null,Yu(e,t,n),lt=l,su=c,lt!==null)if(su)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(n.stateNode),ke=!0}catch(s){Je(n,t,s)}else try{lt.removeChild(n.stateNode),ke=!0}catch(s){Je(n,t,s)}break;case 18:lt!==null&&(su?(e=lt,rm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ai(e)):rm(lt,n.stateNode));break;case 4:l=lt,c=su,lt=n.stateNode.containerInfo,su=!0,Yu(e,t,n),lt=l,su=c;break;case 0:case 11:case 14:case 15:yl(2,n,t),$e||yl(4,n,t),Yu(e,t,n);break;case 1:$e||(Bt(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&l1(n,t,l)),Yu(e,t,n);break;case 21:Yu(e,t,n);break;case 22:$e=(l=$e)||n.memoizedState!==null,Yu(e,t,n),$e=l;break;case 30:Bt(n,t),Yu(e,t,n);break;case 7:$e||Bt(n,t),Yu(e,t,n);break;default:Yu(e,t,n)}}function x1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ai(e)}catch(n){Je(t,t.return,n)}}}function v1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ai(e)}catch(n){Je(t,t.return,n)}}function Ub(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new m1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new m1),t;default:throw Error(r(435,e.tag))}}function Rc(e,t){var n=Ub(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var c=Qb.bind(null,e,l);l.then(c,c)}})}function uu(e,t,n){var l=t.deletions;if(l!==null)for(var c=0;c<l.length;c++){var s=l[c],p=e,b=t,E=b;e:for(;E!==null;){switch(E.tag){case 27:if(Tl(E.type)){lt=E.stateNode,su=!1;break e}break;case 5:lt=E.stateNode,su=!1;break e;case 3:case 4:lt=E.stateNode.containerInfo,su=!0;break e}E=E.return}if(lt===null)throw Error(r(160));y1(p,b,s),lt=null,su=!1,p=s.alternate,p!==null&&(p.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_1(t,e,n),t=t.sibling}var Vu=null;function _1(e,t,n){var l=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(c&4&&(l=e.updateQueue,l=l!==null?l.events:null,l!==null))for(var s=0;s<l.length;s++){var p=l[s];p.ref.impl=p.nextImpl}uu(t,e,n),nu(e),c&4&&(yl(3,e,e.return),Pi(3,e),yl(5,e,e.return));break;case 1:uu(t,e,n),nu(e),c&512&&($e||l===null||Bt(l,l.return)),c&64&&kt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(s=Vu,uu(t,e,n),nu(e),c&512&&($e||l===null||Bt(l,l.return)),c&4)if(c=l!==null?l.memoizedState:null,n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null)if(kt)e.stateNode=lm(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,c=s.ownerDocument||s;t:switch(t){case"title":l=c.getElementsByTagName("title")[0],(!l||l[An]||l[_t]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=c.createElement(t),c.head.insertBefore(l,c.querySelector("head > title"))),Ht(l,t,n),l[_t]=e,mt(l),t=l;break e;case"link":if(s=Nm("link","href",c).get(t+(n.href||""))){for(p=0;p<s.length;p++)if(l=s[p],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(p,1);break t}}l=c.createElement(t),Ht(l,t,n),c.head.appendChild(l);break;case"meta":if(s=Nm("meta","content",c).get(t+(n.content||""))){for(p=0;p<s.length;p++)if(l=s[p],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(p,1);break t}}l=c.createElement(t),Ht(l,t,n),c.head.appendChild(l);break;default:throw Error(r(468,t))}l[_t]=e,mt(l),t=l}e.stateNode=t}else kt||q0(s,e.type,e.stateNode);else e.stateNode=Dm(s,n,e.memoizedProps);else c!==n?(c===null?(t=l.stateNode,t===null||$e||t.parentNode.removeChild(t)):c.count--,n===null?kt||q0(s,e.type,e.stateNode):Dm(s,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Xo(e,e.memoizedProps,l.memoizedProps);break;case 27:uu(t,e,n),nu(e),c&512&&($e||l===null||Bt(l,l.return)),l!==null&&c&4&&Xo(e,e.memoizedProps,l.memoizedProps);break;case 5:if(s=cn,cn=!1,uu(t,e,n),cn=s,nu(e),c&512&&($e||l===null||Bt(l,l.return)),e.flags&32){t=e.stateNode;try{V(t,""),ke=!0}catch(M){Je(e,e.return,M)}}c&4&&e.stateNode!=null&&(t=e.memoizedProps,Xo(e,t,l!==null?l.memoizedProps:t)),c&1024&&(e0=!0);break;case 6:if(uu(t,e,n),nu(e),c&4){if(e.stateNode===null)throw Error(r(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,ke=!0}catch(M){Je(e,e.return,M)}}break;case 3:if(ke=!1,$c=null,s=Vu,Vu=sr(t.containerInfo),uu(t,e,n),Vu=s,nu(e),c&4&&l!==null&&l.memoizedState.isDehydrated)try{ai(t.containerInfo)}catch(M){Je(e,e.return,M)}e0&&(e0=!1,E1(e)),ke=!1;break;case 4:c=cn,cn=kt,l=ul(),s=Vu,Vu=sr(e.stateNode.containerInfo),uu(t,e,n),nu(e),Vu=s,ke&&er&&(wc=!0),ke=l,cn=c;break;case 12:uu(t,e,n),nu(e);break;case 31:uu(t,e,n),nu(e),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Rc(e,t)));break;case 13:uu(t,e,n),nu(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Lc=Ct()),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Rc(e,t)));break;case 22:s=e.memoizedState!==null,p=l!==null&&l.memoizedState!==null;var b=kt,E=$e,j=cn;kt=b||s,cn=j||s,$e=E||p,uu(t,e,n),$e=E,cn=j,kt=b,nu(e),c&8192&&(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,!s||l===null||p||kt||$e||(t=p||$e,n=kt,l=$e,kt=s||kt,$e=t,xl(e,2),kt=n,$e=l),!s&&cn||u0(e,s)),c&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Rc(e,n))));break;case 19:uu(t,e,n),nu(e),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Rc(e,t)));break;case 30:c&512&&($e||l===null||Bt(l,l.return)),c=ul(),s=er,p=(n&335544064)===n,b=e.memoizedProps,er=p&&kn(b.default,b.update)!=="none",uu(t,e,n),nu(e),p&&l!==null&&ke&&(e.flags|=4),er=s,ke=c;break;case 21:break;case 7:c&512&&($e||l===null||Bt(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=e);default:uu(t,e,n),nu(e)}}function nu(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(i1(l)){n=l;break}l=l.return}l=null;for(var c=e.return;c!==null;){if(Yo(c)){var s=c.stateNode;l===null?l=[s]:l.push(s)}if(Io(c))break;c=c.return}var p=l;if(n==null)throw Error(r(160));switch(n.tag){case 27:var b=n.stateNode,E=Zo(e);Dc(e,E,b,p);break;case 5:var j=n.stateNode;n.flags&32&&(V(j,""),n.flags&=-33);var M=Zo(e);Dc(e,M,j,p);break;case 3:case 4:var B=n.stateNode.containerInfo,D=Zo(e);$o(e,D,B,p);break;default:throw Error(r(161))}}catch(z){Je(e,e.return,z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function E1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;E1(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,li=!0,t.reset(),li=!1),e=e.sibling}}function qa(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)S1(t,e),t=t.sibling;else h1(t)}function S1(e,t){var n=e.alternate;if(n===null)Qo(e,!1);else switch(e.tag){case 3:if(t0=sn=!1,s1(),qa(t,e),!sn&&!wc){if(e=an,e!==null)for(var l=0;l<e.length;l+=3){n=e[l];var c=e[l+1];om(n,e[l+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+c+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),t0=!0}an=null;break;case 5:qa(t,e);break;case 4:l=sn,sn=!1,qa(t,e),sn&&(wc=!0),sn=l;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?Qo(e,!1):qa(t,e));break;case 30:l=sn,c=s1(),sn=!1,qa(t,e),sn&&(e.flags|=4);var s=e.memoizedProps,p=e.stateNode;t=Nn(s,p),p=Nn(n.memoizedProps,p);var b=kn(s.default,s.update);b==="none"?t=!1:(s=n.memoizedState,n.memoizedState=null,n=e.child,cu=0,t=Wo(e,n,t,p,b,s,!0),cu!==(s===null?0:s.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?($a(e,e.memoizedProps.onUpdate),an=c):c!==null&&(c.push.apply(c,an),an=c),sn=(e.flags&32)!==0?!0:l;break;default:qa(t,e)}}function on(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)p1(e,t.alternate,t),t=t.sibling}function xl(e,t){for(e=e.child;e!==null;){var n=e,l=t;switch(n.tag){case 0:case 11:case 14:case 15:yl(4,n,n.return),xl(n,l);break;case 1:Bt(n,n.return);var c=n.stateNode;typeof c.componentWillUnmount=="function"&&l1(n,n.return,c),xl(n,l);break;case 27:(l&2)!==0&&Em(n.stateNode,n.type,n.memoizedProps);case 5:Bt(n,n.return),n.tag!==5&&n.tag!==27||Wi(n),xl(n,l);break;case 6:Wi(n);break;case 26:Bt(n,n.return),c=n.stateNode,n.memoizedState!==null||c===null||$e||c.parentNode.removeChild(c),xl(n,l);break;case 22:n.memoizedState===null&&xl(n,l);break;case 30:Bt(n,n.return),xl(n,l);break;case 7:Bt(n,n.return);default:xl(n,l)}e=e.sibling}}function Xu(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var l=t.alternate,c=e,s=t,p=s.flags,b=(n&1)!==0;switch(s.tag){case 0:case 11:case 15:Xu(c,s,n),Pi(4,s);break;case 1:if(Xu(c,s,n),l=s,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(M){Je(l,l.return,M)}if(l=s,c=l.updateQueue,c!==null){var E=l.stateNode;try{var j=c.shared.hiddenCallbacks;if(j!==null)for(c.shared.hiddenCallbacks=null,c=0;c<j.length;c++)Vd(j[c],E)}catch(M){Je(l,l.return,M)}}b&&p&64&&n1(s),ln(s,s.return);break;case 27:(n&2)!==0&&r1(s);case 5:s.tag!==5&&s.tag!==27||a1(s),Xu(c,s,n),b&&l===null&&p&4&&Vo(s),ln(s,s.return);break;case 6:a1(s);break;case 26:E=s.stateNode,s.memoizedState!==null||E===null||kt||q0(sr(E.ownerDocument),s.type,E),Xu(c,s,n),b&&l===null&&p&4&&Vo(s),ln(s,s.return);break;case 12:Xu(c,s,n);break;case 31:Xu(c,s,n),b&&p&4&&x1(c,s);break;case 13:Xu(c,s,n),b&&p&4&&v1(c,s);break;case 22:s.memoizedState===null&&Xu(c,s,n),ln(s,s.return);break;case 30:Xu(c,s,n),ln(s,s.return);break;case 7:ln(s,s.return);default:Xu(c,s,n)}t=t.sibling}}function l0(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Bi(n))}function a0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Bi(e))}function Mu(e,t,n,l){var c=(n&335544064)===n;if(t.subtreeFlags&(c?10262:10256))for(t=t.child;t!==null;)A1(e,t,n,l),t=t.sibling;else c&&d1(t)}function A1(e,t,n,l){var c=(n&335544064)===n;c&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&jc(t);var s=t.flags;switch(t.tag){case 0:case 11:case 15:Mu(e,t,n,l),s&2048&&Pi(9,t);break;case 1:Mu(e,t,n,l);break;case 3:Mu(e,t,n,l),c&&t0&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),s&2048&&(s=null,t.alternate!==null&&(s=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==s&&(t.refCount++,s!=null&&Bi(s)));break;case 12:if(s&2048){Mu(e,t,n,l),s=t.stateNode;try{var p=t.memoizedProps,b=p.id,E=p.onPostCommit;typeof E=="function"&&E(b,t.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(j){Je(t,t.return,j)}}else Mu(e,t,n,l);break;case 31:Mu(e,t,n,l);break;case 13:Mu(e,t,n,l);break;case 23:break;case 22:p=t.stateNode,b=t.alternate,t.memoizedState!==null?(c&&b!==null&&b.memoizedState===null&&jc(b),p._visibility&2?Mu(e,t,n,l):tr(e,t)):(c&&b!==null&&b.memoizedState!==null&&jc(t),p._visibility&2?Mu(e,t,n,l):(p._visibility|=2,Ga(e,t,n,l,(t.subtreeFlags&10256)!==0||!1))),s&2048&&l0(b,t);break;case 24:Mu(e,t,n,l),s&2048&&a0(t.alternate,t);break;case 30:c&&(s=t.alternate,s!==null&&(rn(s.child,!0),rn(t.child,!0))),Mu(e,t,n,l);break;default:Mu(e,t,n,l)}}function Ga(e,t,n,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,p=t,b=n,E=l,j=p.flags;switch(p.tag){case 0:case 11:case 15:Ga(s,p,b,E,c),Pi(8,p);break;case 23:break;case 22:var M=p.stateNode;p.memoizedState!==null?M._visibility&2?Ga(s,p,b,E,c):tr(s,p):(M._visibility|=2,Ga(s,p,b,E,c)),c&&j&2048&&l0(p.alternate,p);break;case 24:Ga(s,p,b,E,c),c&&j&2048&&a0(p.alternate,p);break;default:Ga(s,p,b,E,c)}t=t.sibling}}function tr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,c=l.flags;switch(l.tag){case 22:tr(n,l),c&2048&&l0(l.alternate,l);break;case 24:tr(n,l),c&2048&&a0(l.alternate,l);break;default:tr(n,l)}t=t.sibling}}var ua=8192;function na(e,t,n){if(e.subtreeFlags&ua)for(e=e.child;e!==null;)T1(e,t,n),e=e.sibling}function T1(e,t,n){switch(e.tag){case 26:na(e,t,n),e.flags&ua&&(e.memoizedState!==null?I3(n,Vu,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Om(n,e)));break;case 5:na(e,t,n),e.flags&ua&&(e=e.stateNode,(t&335544128)===t&&Om(n,e));break;case 3:case 4:var l=Vu;Vu=sr(e.stateNode.containerInfo),na(e,t,n),Vu=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ua,ua=16777216,na(e,t,n),ua=l):na(e,t,n));break;case 30:if((e.flags&ua)!==0&&(l=e.memoizedProps.name,l!=null&&l!=="auto")){var c=e.stateNode;c.paired=null,xu===null&&(xu=new Map),xu.set(l,c)}na(e,t,n);break;default:na(e,t,n)}}function C1(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 ur(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];jt=l,N1(l,e)}C1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)D1(e),e=e.sibling}function D1(e){switch(e.tag){case 0:case 11:case 15:ur(e),e.flags&2048&&yl(9,e,e.return);break;case 3:ur(e);break;case 12:ur(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zc(e)):ur(e);break;default:ur(e)}}function zc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];jt=l,N1(l,e)}C1(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:yl(8,t,t.return),zc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,zc(t));break;default:zc(t)}e=e.sibling}}function N1(e,t){for(;jt!==null;){var n=jt;switch(n.tag){case 0:case 11:case 15:yl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Bi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,jt=l;else e:for(n=e;jt!==null;){l=jt;var c=l.sibling,s=l.return;if(b1(l),l===n){jt=null;break e}if(c!==null){c.return=s,jt=c;break e}jt=s}}}var Fb={getCacheForType:function(e){var t=Lt(pt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Lt(pt).controller.signal}},Bb=typeof WeakMap=="function"?WeakMap:Map,Xe=0,et=null,Me=null,Fe=0,Ke=0,vu=null,vl=!1,Ia=!1,i0=!1,Fn=0,ot=0,_l=0,la=0,Mc=0,_u=0,Ya=0,nr=null,ou=null,r0=!1,Lc=0,k1=0,Uc=1/0,Fc=null,El=null,ct=0,Zu=null,aa=null,fn=0,c0=0,s0=null,j1=null,Va=null,Xa=null,Za=null,lr=0,Bc=null;function Eu(){return(Xe&2)!==0&&Fe!==0?Fe&-Fe:I.T!==null?x0():xi()}function w1(){if(_u===0)if((Fe&536870912)===0||Oe){var e=$n;$n<<=1,($n&3932160)===0&&($n=262144),_u=e}else _u=536870912;return e=Ut.current,e!==null&&(e.flags|=32),_u}function $a(e,t){if(t!=null){var n=e.stateNode,l=n.ref;l===null&&(l=n.ref=fm(Nn(e.memoizedProps,n))),Xa===null&&(Xa=[]),Xa.push(t.bind(null,l))}}function fu(e,t,n){(e===et&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)&&(Qa(e,0),Sl(e,Fe,_u,!1)),Ul(e,n),((Xe&2)===0||e!==et)&&(e===et&&((Xe&2)===0&&(la|=n),ot===4&&Sl(e,Fe,_u,!1)),dn(e))}function O1(e,t,n){if((Xe&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Kn(e,t),c=l?Gb(e,t):f0(e,t,!0),s=l;do{if(c===0){Ia&&!l&&Sl(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!Hb(n)){c=f0(e,t,!1),s=!1;continue}if(c===2){if(s=t,e.errorRecoveryDisabledLanes&s)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var b=e;c=nr;var E=b.current.memoizedState.isDehydrated;if(E&&(Qa(b,p).flags|=256),p=f0(b,p,!1),p!==2&&p!==6){if(i0&&!E){b.errorRecoveryDisabledLanes|=s,la|=s,c=4;break e}s=ou,ou=c,s!==null&&(ou===null?ou=s:ou.push.apply(ou,s))}c=p}if(s=!1,c!==2)continue}}if(c===1){Qa(e,0),Sl(e,t,0,!0);break}e:{switch(l=e,s=c,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Sl(l,t,_u,!vl);break e;case 2:ou=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=Lc+300-Ct(),10<c)){if(Sl(l,t,_u,!vl),Qn(l,0,!0)!==0)break e;fn=t,l.timeoutHandle=j0(R1.bind(null,l,n,ou,Fc,r0,t,_u,la,Ya,vl,s,"Throttled",-0,0),c);break e}R1(l,n,ou,Fc,r0,t,_u,la,Ya,vl,s,null,-0,0)}}break}while(!0);dn(e)}function R1(e,t,n,l,c,s,p,b,E,j,M,B,D,z){e.timeoutHandle=-1;var le=t.subtreeFlags,de=(s&335544064)===s;if(B=null,(de||le&8192||(le&16785408)===16785408)&&(B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ze},xu=null,T1(t,s,B),de&&(le=B,de=e.containerInfo,de=(de.nodeType===9?de:de.ownerDocument).__reactViewTransition,de!=null&&(le.count++,le.waitingForViewTransition=!0,le=dr.bind(le),de.finished.then(le,le))),le=(s&62914560)===s?Lc-Ct():(s&4194048)===s?k1-Ct():0,le=Y3(B,le),le!==null)){fn=s,e.cancelPendingCommit=le(q1.bind(null,e,t,s,n,l,c,p,b,E,j,M,B,null,D,z)),Sl(e,s,p,!j);return}q1(e,t,s,n,l,c,p,b,E,j,M,B)}function Hb(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var c=n[l],s=c.getSnapshot;c=c.value;try{if(!bu(s(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Sl(e,t,n,l){t=ga(e,t),t&=~Mc,t&=~la,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var s=31-Dt(c),p=1<<s;l[s]=-1,c&=~p}n!==0&&Sn(e,n,t)}function Hc(){return(Xe&6)===0?(ar(0),!1):!0}function o0(){if(Me!==null){if(Ke===0)var e=Me.return;else e=Me,On=Xl=null,yo(e),Ma=null,Gi=0,e=Me;for(;e!==null;)u1(e.alternate,e),e=e.return;Me=null}}function Qa(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,o3(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fn=0,o0(),et=e,Me=n=jn(e.current,null),Fe=t,Ke=0,vu=null,vl=!1,Ia=Kn(e,t),i0=!1,Ya=_u=Mc=la=_l=ot=0,ou=nr=null,r0=!1,Fn=ga(e,t),$r(),n}function z1(e,t){De=null,I.H=xc,t===za||t===ac?(t=qd(),Ke=3):t===lo?(t=qd(),Ke=4):Ke=t===Ro?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vu=t,Me===null&&(ot=1,vc(e,wu(t,e.current)))}function M1(){var e=Ut.current;return e===null?!0:(Fe&4194048)===Fe?Kt===null:(Fe&62914560)===Fe||(Fe&536870912)!==0?e===Kt:!1}function L1(){var e=I.H;return I.H=xc,e===null?xc:e}function U1(){var e=I.A;return I.A=Fb,e}function qc(){ot=4,vl||(Fe&4194048)!==Fe&&Ut.current!==null||(Ia=!0),(_l&134217727)===0&&(la&134217727)===0||et===null||Sl(et,Fe,_u,!1)}function f0(e,t,n){var l=Xe;Xe|=2;var c=L1(),s=U1();(et!==e||Fe!==t)&&(Fc=null,Qa(e,t)),t=!1;var p=ot;e:do try{if(Ke!==0&&Me!==null){var b=Me,E=vu;switch(Ke){case 8:o0(),p=6;break e;case 3:case 2:case 9:case 6:Ut.current===null&&(t=!0);var j=Ke;if(Ke=0,vu=null,Ka(e,b,E,j),n&&Ia){p=0;break e}break;default:j=Ke,Ke=0,vu=null,Ka(e,b,E,j)}}qb(),p=ot;break}catch(M){z1(e,M)}while(!0);return t&&e.shellSuspendCounter++,On=Xl=null,Xe=l,I.H=c,I.A=s,Me===null&&(et=null,Fe=0,$r()),p}function qb(){for(;Me!==null;)F1(Me)}function Gb(e,t){var n=Xe;Xe|=2;var l=L1(),c=U1();et!==e||Fe!==t?(Fc=null,Uc=Ct()+500,Qa(e,t)):Ia=Kn(e,t);e:do try{if(Ke!==0&&Me!==null){t=Me;var s=vu;t:switch(Ke){case 1:Ke=0,vu=null,Ka(e,t,s,1);break;case 2:case 9:if(Bd(s)){Ke=0,vu=null,B1(t);break}t=function(){Ke!==2&&Ke!==9||et!==e||(Ke=7),dn(e)},s.then(t,t);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:Bd(s)?(Ke=0,vu=null,B1(t)):(Ke=0,vu=null,Ka(e,t,s,7));break;case 5:var p=null;switch(Me.tag){case 26:p=Me.memoizedState;case 5:case 27:var b=Me;if(p?jm(p):b.stateNode.complete){Ke=0,vu=null;var E=b.sibling;if(E!==null)Me=E;else{var j=b.return;j!==null?(Me=j,Gc(j)):Me=null}break t}}Ke=0,vu=null,Ka(e,t,s,5);break;case 6:Ke=0,vu=null,Ka(e,t,s,6);break;case 8:o0(),ot=6;break e;default:throw Error(r(462))}}Ib();break}catch(M){z1(e,M)}while(!0);return On=Xl=null,I.H=l,I.A=c,Xe=n,Me!==null?0:(et=null,Fe=0,$r(),ot)}function Ib(){for(;Me!==null&&!Yn();)F1(Me)}function F1(e){var t=e1(e.alternate,e,Fn);e.memoizedProps=e.pendingProps,t===null?Gc(e):Me=t}function B1(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Zh(n,t,t.pendingProps,t.type,void 0,Fe);break;case 11:t=Zh(n,t,t.pendingProps,t.type.render,t.ref,Fe);break;case 5:yo(t);var l=t;l===Nt&&(Oe?(ec(l),l.tag===5&&l.stateNode!=null&&(tt=l.stateNode)):(ec(l),Oe=!0));default:u1(n,t),t=Me=Nd(t,Fn),t=e1(n,t,Fn)}e.memoizedProps=e.pendingProps,t===null?Gc(e):Me=t}function Ka(e,t,n,l){On=Xl=null,yo(t),Ma=null,Gi=0;var c=t.return;try{if(jb(e,c,t,n,Fe)){ot=1,vc(e,wu(n,e.current)),Me=null;return}}catch(s){if(c!==null)throw Me=c,s;ot=1,vc(e,wu(n,e.current)),Me=null;return}t.flags&32768?(Oe||l===1?e=!0:Ia||(Fe&536870912)!==0?e=!1:(vl=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ut.current,l!==null&&l.tag===13&&(l.flags|=16384))),H1(t,e)):Gc(t)}function Gc(e){var t=e;do{if((t.flags&32768)!==0){H1(t,vl);return}e=t.return;var n=zb(t.alternate,t,Fn);if(n!==null){Me=n;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);ot===0&&(ot=5)}function H1(e,t){do{var n=Mb(e.alternate,e);if(n!==null){n.flags&=32767,Me=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Me=e;return}Me=e=n}while(e!==null);ot=6,Me=null}function q1(e,t,n,l,c,s,p,b,E,j,M,B){e.cancelPendingCommit=null;do Ic();while(ct!==0);if((Xe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));e===et&&(Me=et=null,Fe=0),aa=t,Zu=e,fn=n,s0=c,j1=l,Yb(e,t,n,p,b,E,B)}}function Yb(e,t,n,l,c,s,p){var b=t.lanes|t.childLanes;if(c0=b,b|=Vs,rt(e,n,b,l,c,s),Xa=null,(n&335544064)===n?(Za=yb(e),l=10262):(Za=null,l=10256),(t.subtreeFlags&l)!==0||(t.flags&l)!==0?(e.callbackNode=null,e.callbackPriority=0,Kb(X,function(){return p0(),null})):(e.callbackNode=null,e.callbackPriority=0),Nc=!1,l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=I.T,I.T=null,c=P.p,P.p=2,s=Xe,Xe|=4;try{Lb(e,t,n)}finally{Xe=s,P.p=c,I.T=l}}ct=1,Nc?Va=g3(p,e.containerInfo,Za,d0,h0,Xb,m0,p0,Vb):(d0(),h0(),m0())}function Vb(e){if(ct!==0){var t=Zu.onRecoverableError;t(e,{componentStack:null})}}function Xb(){ct===3&&(ct=0,S1(aa,Zu),ct=4)}function d0(){if(ct===1){ct=0;var e=Zu,t=aa,n=fn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=I.T,I.T=null;var c=P.p;P.p=2;var s=Xe;Xe|=4;try{er=wc=!1,_1(t,e,n),n=D0;var p=yd(e.containerInfo),b=n.focusedElem,E=n.selectionRange;if(p!==b&&b&&b.ownerDocument&&bd(b.ownerDocument.documentElement,b)){if(E!==null&&Hs(b)){var j=E.start,M=E.end;if(M===void 0&&(M=j),"selectionStart"in b)b.selectionStart=j,b.selectionEnd=Math.min(M,b.value.length);else{var B=b.ownerDocument||document,D=B&&B.defaultView||window;if(D.getSelection){var z=D.getSelection(),le=b.textContent.length,de=Math.min(E.start,le),Ne=E.end===void 0?de:Math.min(E.end,le);!z.extend&&de>Ne&&(p=Ne,Ne=de,de=p);var k=gd(b,de),A=gd(b,Ne);if(k&&A&&(z.rangeCount!==1||z.anchorNode!==k.node||z.anchorOffset!==k.offset||z.focusNode!==A.node||z.focusOffset!==A.offset)){var O=B.createRange();O.setStart(k.node,k.offset),z.removeAllRanges(),de>Ne?(z.addRange(O),z.extend(A.node,A.offset)):(O.setEnd(A.node,A.offset),z.addRange(O))}}}}for(B=[],z=b;z=z.parentNode;)z.nodeType===1&&B.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<B.length;b++){var F=B[b];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}li=!!C0,D0=C0=null}finally{Xe=s,P.p=c,I.T=l}}e.current=t,ct=2}}function h0(){if(ct===2){ct=0;var e=Zu,t=aa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=I.T,I.T=null;var l=P.p;P.p=2;var c=Xe;Xe|=4;try{p1(e,t.alternate,t)}finally{Xe=c,P.p=l,I.T=n}}ct=3}}function m0(){if(ct===4||ct===3){ct=0;var e=Va;Va=null,Ll();var t=Zu,n=aa,l=fn,c=j1,s=(l&335544064)===l?10262:10256;if((n.subtreeFlags&s)!==0||(n.flags&s)!==0?ct=5:(ct=0,aa=Zu=null,G1(t,t.pendingLanes)),s=t.pendingLanes,s===0&&(El=null),ba(l),n=n.stateNode,Zt&&typeof Zt.onCommitFiberRoot=="function")try{Zt.onCommitFiberRoot(Xt,n,void 0,(n.current.flags&128)===128)}catch{}if(c!==null){n=I.T,s=P.p,P.p=2,I.T=null;try{for(var p=t.onRecoverableError,b=0;b<c.length;b++){var E=c[b];p(E.value,{componentStack:E.stack})}}finally{I.T=n,P.p=s}}if(c=Xa,p=Za,Za=null,c!==null&&(Xa=null,p===null&&(p=[]),e!==null))for(E=0;E<c.length;E++)n=(0,c[E])(p),n!==void 0&&e.finished.finally(n);(fn&3)!==0&&Ic(),dn(t),s=t.pendingLanes,(l&261930)!==0&&(s&42)!==0?t===Bc?lr++:(lr=0,Bc=t):(lr=0,Bc=null),ar(0)}}function G1(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Bi(t)))}function Ic(){return Va!==null&&(Va.skipTransition(),Va=null),d0(),h0(),m0(),p0()}function p0(){if(ct!==5)return!1;var e=Zu,t=c0;c0=0;var n=ba(fn),l=I.T,c=P.p;try{P.p=32>n?32:n,I.T=null,n=s0,s0=null;var s=Zu,p=fn;if(ct=0,aa=Zu=null,fn=0,(Xe&6)!==0)throw Error(r(331));var b=Xe;if(Xe|=4,D1(s.current),A1(s,s.current,p,n),Xe=b,ar(0,!1),Zt&&typeof Zt.onPostCommitFiberRoot=="function")try{Zt.onPostCommitFiberRoot(Xt,s)}catch{}return!0}finally{P.p=c,I.T=l,G1(e,t)}}function I1(e,t,n){t=wu(n,t),t=Oo(e.stateNode,t,2),e=ml(e,t,2),e!==null&&(Ul(e,2),dn(e))}function Je(e,t,n){if(e.tag===3)I1(e,e,n);else for(;t!==null;){if(t.tag===3){I1(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(El===null||!El.has(l))){e=wu(n,e),n=Bh(2),l=ml(t,n,2),l!==null&&(Hh(n,l,t,e),Ul(l,2),dn(l));break}}t=t.return}}function g0(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Bb;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(n)||(i0=!0,c.add(n),e=Zb.bind(null,e,t,n),t.then(e,e))}function Zb(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,et===e&&(Fe&n)===n&&((ot===4||ot===3&&(Fe&62914560)===Fe&&300>Ct()-Lc)&&(Xe&2)===0?Qa(e,0):Mc|=n,Ya===Fe&&(Ya=0)),dn(e)}function Y1(e,t){t===0&&(t=Jn()),e=Il(e,t),e!==null&&(Ul(e,t),dn(e))}function $b(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Y1(e,n)}function Qb(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Y1(e,n)}function Kb(e,t){return vt(e,t)}var Ja=null,Pa=null,b0=!1,Yc=!1,y0=!1,Al=0;function dn(e){e!==Pa&&e.next===null&&(Pa===null?Ja=Pa=e:Pa=Pa.next=e),Yc=!0,b0||(b0=!0,Pb())}function ar(e,t){if(!y0&&Yc){y0=!0;do for(var n=!1,l=Ja;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var s=0;else{var p=l.suspendedLanes,b=l.pingedLanes;s=(1<<31-Dt(42|e)+1)-1,s&=c&~(p&~b),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,$1(l,s))}else s=Fe,s=Qn(l,l===et?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||Kn(l,s)||(n=!0,$1(l,s));l=l.next}while(n);y0=!1}}function Jb(){V1()}function V1(){Yc=b0=!1;var e=0;Al!==0&&s3()&&(e=Al);for(var t=Ct(),n=null,l=Ja;l!==null;){var c=l.next,s=X1(l,t);s===0?(l.next=null,n===null?Ja=c:n.next=c,c===null&&(Pa=n)):(n=l,(e!==0||(s&3)!==0)&&(Yc=!0)),l=c}ct!==0&&ct!==5||ar(e),Al!==0&&(Al=0)}function X1(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var p=31-Dt(s),b=1<<p,E=c[p];E===-1?((b&n)===0||(b&l)!==0)&&(c[p]=Ns(b,t)):E<=t&&(e.expiredLanes|=b),s&=~b}if(t=et,n=Fe,n=Qn(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&pu(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Kn(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&pu(l),ba(n)){case 2:case 8:n=U;break;case 32:n=X;break;case 268435456:n=Ve;break;default:n=X}return l=Z1.bind(null,e),n=vt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&pu(l),e.callbackPriority=2,e.callbackNode=null,2}function Z1(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ic()&&e.callbackNode!==n)return null;var l=Fe;return l=Qn(e,e===et?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(O1(e,l,t),X1(e,Ct()),e.callbackNode!=null&&e.callbackNode===n?Z1.bind(null,e):null)}function $1(e,t){if(Ic())return null;O1(e,t,!0)}function Pb(){f3(function(){(Xe&6)!==0?vt(Vn,Jb):V1()})}function x0(){if(Al===0){var e=Ql;e===0&&(e=Zn,Zn<<=1,(Zn&261888)===0&&(Zn=256)),Al=e}return Al}function Q1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ae(e)}function Wb(e,t,n,l,c){if(t==="submit"&&n&&n.stateNode===c){var s=Q1((c[$t]||null).action),p=l.submitter;p&&(t=(t=p[$t]||null)?Q1(t.formAction):p.getAttribute("formAction"),t!==null&&(s=t,p=null));var b=new Yr("action","action",null,l,c);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Al!==0){var E=new FormData(c,p);Do(n,{pending:!0,data:E,method:c.method,action:s},null,E)}}else typeof s=="function"&&(b.preventDefault(),E=new FormData(c,p),Do(n,{pending:!0,data:E,method:c.method,action:s},s,E))},currentTarget:c}]})}}for(var v0=0;v0<Ys.length;v0++){var _0=Ys[v0],e3=_0.toLowerCase(),t3=_0[0].toUpperCase()+_0.slice(1);Iu(e3,"on"+t3)}Iu(_d,"onAnimationEnd"),Iu(Ed,"onAnimationIteration"),Iu(Sd,"onAnimationStart"),Iu("dblclick","onDoubleClick"),Iu("focusin","onFocus"),Iu("focusout","onBlur"),Iu(ob,"onTransitionRun"),Iu(fb,"onTransitionStart"),Iu(db,"onTransitionCancel"),Iu(Ad,"onTransitionEnd"),en("onMouseEnter",["mouseout","mouseover"]),en("onMouseLeave",["mouseout","mouseover"]),en("onPointerEnter",["pointerout","pointerover"]),en("onPointerLeave",["pointerout","pointerover"]),Wu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wu("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ir="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(" "),u3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ir));function K1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],c=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var p=l.length-1;0<=p;p--){var b=l[p],E=b.instance,j=b.currentTarget;if(b=b.listener,E!==s&&c.isPropagationStopped())break e;s=b,c.currentTarget=j;try{s(c)}catch(M){Zr(M)}c.currentTarget=null,s=E}else for(p=0;p<l.length;p++){if(b=l[p],E=b.instance,j=b.currentTarget,b=b.listener,E!==s&&c.isPropagationStopped())break e;s=b,c.currentTarget=j;try{s(c)}catch(M){Zr(M)}c.currentTarget=null,s=E}}}}function Le(e,t){var n=t[vi];n===void 0&&(n=t[vi]=new Set);var l=e+"__bubble";n.has(l)||(J1(t,e,2,!1),n.add(l))}function E0(e,t,n){var l=0;t&&(l|=4),J1(n,e,l,t)}var Vc="_reactListening"+Math.random().toString(36).slice(2);function S0(e){if(!e[Vc]){e[Vc]=!0,Si.forEach(function(n){n!=="selectionchange"&&(u3.has(n)||E0(n,!1,e),E0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vc]||(t[Vc]=!0,E0("selectionchange",!1,t))}}function J1(e,t,n,l){switch(Hm(t)){case 2:var c=$3;break;case 8:c=Q3;break;default:c=I0}n=c.bind(null,t,n,e),c=void 0,!js||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function A0(e,t,n,l,c){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var b=l.stateNode.containerInfo;if(b===c)break;if(p===4)for(p=l.return;p!==null;){var E=p.tag;if((E===3||E===4)&&p.stateNode.containerInfo===c)return;p=p.return}for(;b!==null;){if(p=Tn(b),p===null)return;if(E=p.tag,E===5||E===6||E===26||E===27){l=s=p;continue e}b=b.parentNode}}l=l.return}Jf(function(){var j=s,M=Et(n),B=[];e:{var D=Td.get(e);if(D!==void 0){var z=Yr,le=e;switch(e){case"keypress":if(Gr(n)===0)break e;case"keydown":case"keyup":z=Hg;break;case"focusin":le="focus",z=zs;break;case"focusout":le="blur",z=zs;break;case"beforeblur":case"afterblur":z=zs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=ed;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Ng;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Vg;break;case _d:case Ed:case Sd:z=wg;break;case Ad:z=Zg;break;case"scroll":case"scrollend":z=Cg;break;case"wheel":z=Qg;break;case"copy":case"cut":case"paste":z=Rg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=ud;break;case"submit":z=Ig;break;case"toggle":case"beforetoggle":z=Jg}var de=(t&4)!==0,Ne=!de&&(e==="scroll"||e==="scrollend"),k=de?D!==null?D+"Capture":null:D;de=[];for(var A=j,O;A!==null;){var F=A;if(O=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||O===null||k===null||(F=Ni(A,k),F!=null&&de.push(rr(A,F,O))),Ne)break;A=A.return}0<de.length&&(D=new z(D,le,null,n,M),B.push({event:D,listeners:de}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",z&&n!==iu&&(le=n.relatedTarget||n.fromElement)&&(Tn(le)||le[Jt]))break e;(D||z)&&(le=M.window===M?M:(z=M.ownerDocument)?z.defaultView||z.parentWindow:window,D?(z=n.relatedTarget||n.toElement,D=j,z=z?Tn(z):null,z!==null&&(Ne=f(z),de=z.tag,z!==Ne||de!==5&&de!==27&&de!==6)&&(z=null)):(D=null,z=j),D!==z&&(de=ed,F="onMouseLeave",k="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(de=ud,F="onPointerLeave",k="onPointerEnter",A="pointer"),Ne=D==null?le:Bl(D),O=z==null?le:Bl(z),le=new de(F,A+"leave",D,n,M),le.target=Ne,le.relatedTarget=O,F=null,Tn(M)===j&&(de=new de(k,A+"enter",z,n,M),de.target=O,de.relatedTarget=Ne,F=de),Ne=F,de=D&&z?ce(D,z,n3):null,D!==null&&P1(B,le,D,de,!1),z!==null&&Ne!==null&&P1(B,Ne,z,de,!0)))}e:{if(D=j?Bl(j):window,z=D.nodeName&&D.nodeName.toLowerCase(),z==="select"||z==="input"&&D.type==="file")var oe=od;else if(cd(D))if(fd)oe=rb;else{oe=ab;var Be=lb}else z=D.nodeName,!z||z.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?j&&G(j.elementType)&&(oe=od):oe=ib;if(oe&&(oe=oe(e,j))){sd(B,oe,n,M);break e}Be&&Be(e,D,j)}switch(Be=j?Bl(j):window,e){case"focusin":(cd(Be)||Be.contentEditable==="true")&&(Ca=Be,qs=j,Li=null);break;case"focusout":Li=qs=Ca=null;break;case"mousedown":Gs=!0;break;case"contextmenu":case"mouseup":case"dragend":Gs=!1,xd(B,n,M);break;case"selectionchange":if(sb)break;case"keydown":case"keyup":xd(B,n,M)}var pe;if(Ls)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Ta?id(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ve="onCompositionStart");ve&&(nd&&n.locale!=="ko"&&(Ta||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Ta&&(pe=Pf()):(al=M,ws="value"in al?al.value:al.textContent,Ta=!0)),Be=Xc(j,ve),0<Be.length&&(ve=new td(ve,e,null,n,M),B.push({event:ve,listeners:Be}),pe?ve.data=pe:(pe=rd(n),pe!==null&&(ve.data=pe)))),(pe=Wg?eb(e,n):tb(e,n))&&(ve=Xc(j,"onBeforeInput"),0<ve.length&&(Be=new td("onBeforeInput","beforeinput",null,n,M),B.push({event:Be,listeners:ve}),Be.data=pe)),Wb(B,e,j,n,M)}K1(B,t)})}function rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xc(e,t){for(var n=t+"Capture",l=[];e!==null;){var c=e,s=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||s===null||(c=Ni(e,n),c!=null&&l.unshift(rr(e,c,s)),c=Ni(e,t),c!=null&&l.push(rr(e,c,s))),e.tag===3)return l;e=e.return}return[]}function n3(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function P1(e,t,n,l,c){for(var s=t._reactName,p=[];n!==null&&n!==l;){var b=n,E=b.alternate,j=b.stateNode;if(b=b.tag,E!==null&&E===l)break;b!==5&&b!==26&&b!==27||j===null||(E=j,c?(j=Ni(n,s),j!=null&&p.unshift(rr(n,j,E))):c||(j=Ni(n,s),j!=null&&p.push(rr(n,j,E)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var l3=/\r\n?/g,a3=/\u0000|\uFFFD/g;function W1(e){return(typeof e=="string"?e:""+e).replace(l3,`
9
+ `).replace(a3,"")}function em(e,t){return t=W1(t),W1(e)===t}function Pe(e,t,n,l,c,s){switch(n){case"children":if(typeof l=="string")t==="body"||t==="textarea"&&l===""||V(e,l);else if(typeof l=="number"||typeof l=="bigint")t!=="body"&&V(e,""+l);else return;break;case"className":_a(e,"class",l);break;case"tabIndex":_a(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":_a(e,n,l);break;case"style":Y(e,l,s);return;case"data":if(t!=="object"){_a(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Ae(l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(n==="formAction"?(t!=="input"&&Pe(e,t,"name",c.name,c,null),Pe(e,t,"formEncType",c.formEncType,c,null),Pe(e,t,"formMethod",c.formMethod,c,null),Pe(e,t,"formTarget",c.formTarget,c,null)):(Pe(e,t,"encType",c.encType,c,null),Pe(e,t,"method",c.method,c,null),Pe(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Ae(l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Ze);return;case"onScroll":l!=null&&Le("scroll",e);return;case"onScrollEnd":l!=null&&Le("scrollend",e);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(r(60));s?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=Ae(l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Le("beforetoggle",e),Le("toggle",e),Qt(e,"popover",l);break;case"xlinkActuate":au(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":au(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":au(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":au(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":au(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":au(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":au(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":au(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":au(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Qt(e,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=me.get(n)||n,Qt(e,n,l);else return}ke=!0}function T0(e,t,n,l,c,s){switch(n){case"style":Y(e,l,s);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(r(60));s?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof l=="string")V(e,l);else if(typeof l=="number"||typeof l=="bigint")V(e,""+l);else return;break;case"onScroll":l!=null&&Le("scroll",e);return;case"onScrollEnd":l!=null&&Le("scrollend",e);return;case"onClick":l!=null&&(e.onclick=Ze);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Br.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),s=n.slice(2,c?n.length-7:void 0),t=e[$t]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(s,t,c),typeof l=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(s,l,c);break e}ke=!0,n in e?e[n]=l:l===!0?e.setAttribute(n,""):Qt(e,n,l)}return}ke=!0}function Ht(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",e),Le("load",e);var l=!1,c=!1,s;for(s in n)if(n.hasOwnProperty(s)){var p=n[s];if(p!=null)switch(s){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Pe(e,t,s,p,n,null)}}c&&Pe(e,t,"srcSet",n.srcSet,n,null),l&&Pe(e,t,"src",n.src,n,null);return;case"input":Le("invalid",e);var b=s=p=c=null,E=null,j=null;for(l in n)if(n.hasOwnProperty(l)){var M=n[l];if(M!=null)switch(l){case"name":c=M;break;case"type":p=M;break;case"checked":E=M;break;case"defaultChecked":j=M;break;case"value":s=M;break;case"defaultValue":b=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:Pe(e,t,l,M,n,null)}}Hr(e,s,b,E,j,p,c,!1);return;case"select":Le("invalid",e),l=p=s=null;for(c in n)if(n.hasOwnProperty(c)&&(b=n[c],b!=null))switch(c){case"value":s=b;break;case"defaultValue":p=b;break;case"multiple":l=b;default:Pe(e,t,c,b,n,null)}t=s,n=p,e.multiple=!!l,t!=null?tn(e,!!l,t,!1):n!=null&&tn(e,!!l,n,!0);return;case"textarea":Le("invalid",e),s=c=l=null;for(p in n)if(n.hasOwnProperty(p)&&(b=n[p],b!=null))switch(p){case"value":l=b;break;case"defaultValue":c=b;break;case"children":s=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:Pe(e,t,p,b,n,null)}Sa(e,l,c,s);return;case"option":for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Pe(e,t,E,l,n,null));return;case"dialog":Le("beforetoggle",e),Le("toggle",e),Le("cancel",e),Le("close",e);break;case"iframe":case"object":Le("load",e);break;case"video":case"audio":for(l=0;l<ir.length;l++)Le(ir[l],e);break;case"image":Le("error",e),Le("load",e);break;case"details":Le("toggle",e);break;case"embed":case"source":case"link":Le("error",e),Le("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(j in n)if(n.hasOwnProperty(j)&&(l=n[j],l!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Pe(e,t,j,l,n,null)}return;default:if(G(t)){for(M in n)n.hasOwnProperty(M)&&(l=n[M],l!==void 0&&T0(e,t,M,l,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(l=n[b],l!=null&&Pe(e,t,b,l,n,null))}var i3={};function r3(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,s=null,p=null,b=null,E=null,j=null,M=null;for(z in n){var B=n[z];if(n.hasOwnProperty(z)&&B!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":E=B;default:l.hasOwnProperty(z)||Pe(e,t,z,null,l,B)}}for(var D in l){var z=l[D];if(B=n[D],l.hasOwnProperty(D)&&(z!=null||B!=null))switch(D){case"type":z!==B&&(ke=!0),s=z;break;case"name":z!==B&&(ke=!0),c=z;break;case"checked":z!==B&&(ke=!0),j=z;break;case"defaultChecked":z!==B&&(ke=!0),M=z;break;case"value":z!==B&&(ke=!0),p=z;break;case"defaultValue":z!==B&&(ke=!0),b=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:z!==B&&Pe(e,t,D,z,l,B)}}Di(e,p,b,E,j,M,s,c);return;case"select":z=p=b=D=null;for(s in n)if(E=n[s],n.hasOwnProperty(s)&&E!=null)switch(s){case"value":break;case"multiple":z=E;default:l.hasOwnProperty(s)||Pe(e,t,s,null,l,E)}for(c in l)if(s=l[c],E=n[c],l.hasOwnProperty(c)&&(s!=null||E!=null))switch(c){case"value":s!==E&&(ke=!0),D=s;break;case"defaultValue":s!==E&&(ke=!0),b=s;break;case"multiple":s!==E&&(ke=!0),p=s;default:s!==E&&Pe(e,t,c,s,l,E)}t=b,n=p,l=z,D!=null?tn(e,!!n,D,!1):!!l!=!!n&&(t!=null?tn(e,!!n,t,!0):tn(e,!!n,n?[]:"",!1));return;case"textarea":z=D=null;for(b in n)if(c=n[b],n.hasOwnProperty(b)&&c!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Pe(e,t,b,null,l,c)}for(p in l)if(c=l[p],s=n[p],l.hasOwnProperty(p)&&(c!=null||s!=null))switch(p){case"value":c!==s&&(ke=!0),D=c;break;case"defaultValue":c!==s&&(ke=!0),z=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==s&&Pe(e,t,p,c,l,s)}ll(e,D,z);return;case"option":for(var le in n)D=n[le],n.hasOwnProperty(le)&&D!=null&&!l.hasOwnProperty(le)&&(le==="selected"?e.selected=!1:Pe(e,t,le,null,l,D));for(E in l)D=l[E],z=n[E],l.hasOwnProperty(E)&&D!==z&&(D!=null||z!=null)&&(E==="selected"?(D!==z&&(ke=!0),e.selected=D&&typeof D!="function"&&typeof D!="symbol"):Pe(e,t,E,D,l,z));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 de in n)D=n[de],n.hasOwnProperty(de)&&D!=null&&!l.hasOwnProperty(de)&&Pe(e,t,de,null,l,D);for(j in l)if(D=l[j],z=n[j],l.hasOwnProperty(j)&&D!==z&&(D!=null||z!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:Pe(e,t,j,D,l,z)}return;default:if(G(t)){for(var Ne in n)D=n[Ne],n.hasOwnProperty(Ne)&&D!==void 0&&!l.hasOwnProperty(Ne)&&T0(e,t,Ne,void 0,l,D);for(M in l)D=l[M],z=n[M],!l.hasOwnProperty(M)||D===z||D===void 0&&z===void 0||T0(e,t,M,D,l,z);return}}for(var k in n)D=n[k],n.hasOwnProperty(k)&&D!=null&&!l.hasOwnProperty(k)&&Pe(e,t,k,null,l,D);for(B in l)D=l[B],z=n[B],!l.hasOwnProperty(B)||D===z||D==null&&z==null||Pe(e,t,B,D,l,z)}function tm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function c3(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var c=n[l],s=c.transferSize,p=c.initiatorType,b=c.duration;if(s&&b&&tm(p)){for(p=0,b=c.responseEnd,l+=1;l<n.length;l++){var E=n[l],j=E.startTime;if(j>b)break;var M=E.transferSize,B=E.initiatorType;M&&tm(B)&&(E=E.responseEnd,p+=M*(E<b?1:(b-j)/(E-j)))}if(--l,t+=8*(s+p)/(c.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 C0=null,D0=null;function cr(e){return e.nodeType===9?e:e.ownerDocument}function um(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 nm(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 lm(e,t,n,l){return n=cr(n).createElement(e),n[_t]=l,n[$t]=t,Ht(n,e,t),mt(n),n}function N0(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 k0=null;function s3(){var e=window.event;return e&&e.type==="popstate"?e===k0?!1:(k0=e,!0):(k0=null,!1)}var j0=typeof setTimeout=="function"?setTimeout:void 0,o3=typeof clearTimeout=="function"?clearTimeout:void 0,am=typeof Promise=="function"?Promise:void 0,im=typeof requestAnimationFrame=="function"?requestAnimationFrame:j0,f3=typeof queueMicrotask=="function"?queueMicrotask:typeof am<"u"?function(e){return am.resolve(null).then(e).catch(d3)}:j0;function d3(e){setTimeout(function(){throw e})}function Tl(e){return e==="head"}function rm(e,t){var n=t,l=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(c),ai(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")F0(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,F0(n);for(var s=n.firstChild;s;){var p=s.nextSibling,b=s.nodeName;s[An]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=p}}else n==="body"&&F0(e.ownerDocument.body);n=c}while(n);ai(t)}function cm(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function sm(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var l=1;else for(var c=l=0;c<t.length;c++){var s=t[c];0<s.width&&0<s.height&&l++}l===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function om(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function h3(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function w0(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return h3(t,n,e)}function m3(e){return e.documentElement.clientHeight}function p3(e){this.addEventListener("load",e),this.addEventListener("error",e)}function g3(e,t,n,l,c,s,p,b,E){var j=t.nodeType===9?t:t.ownerDocument;try{var M=j.startViewTransition({update:function(){var D=j.defaultView,z=D.navigation&&D.navigation.transition,le=j.fonts.status;l();var de=[];if(le==="loaded"&&(m3(j),j.fonts.status==="loading"&&de.push(j.fonts.ready)),le=de.length,e!==null)for(var Ne=e.suspenseyImages,k=0,A=0;A<Ne.length;A++){var O=Ne[A];if(!O.complete){var F=O.getBoundingClientRect();if(0<F.bottom&&0<F.right&&F.top<D.innerHeight&&F.left<D.innerWidth){if(k+=wm(O),k>Qc){de.length=le;break}O=new Promise(p3.bind(O)),de.push(O)}}}if(0<de.length)return D=Promise.race([Promise.all(de),new Promise(function(oe){return setTimeout(oe,500)})]).then(c,c),(z?Promise.allSettled([z.finished,D]):D).then(s,s);if(c(),z)return z.finished.then(s,s);s()},types:n});j.__reactViewTransition=M;var B=[];return M.ready.then(function(){for(var D=j.documentElement.getAnimations({subtree:!0}),z=0;z<D.length;z++){var le=D[z],de=le.effect,Ne=de.pseudoElement;if(Ne!=null&&Ne.startsWith("::view-transition")){B.push(le),le=de.getKeyframes();for(var k=Ne=void 0,A=!0,O=0;O<le.length;O++){var F=le[O],oe=F.width;if(Ne===void 0)Ne=oe;else if(Ne!==oe){A=!1;break}if(oe=F.height,k===void 0)k=oe;else if(k!==oe){A=!1;break}delete F.width,delete F.height,F.transform==="none"&&delete F.transform}A&&Ne!==void 0&&k!==void 0&&(de.setKeyframes(le),A=getComputedStyle(de.target,de.pseudoElement),A.width!==Ne||A.height!==k)&&(A=le[0],A.width=Ne,A.height=k,A=le[le.length-1],A.width=Ne,A.height=k,de.setKeyframes(le))}}p()},function(D){j.__reactViewTransition===M&&(j.__reactViewTransition=null);try{typeof D=="object"&&D!==null&&D.name==="InvalidStateError"&&(D.message==="View transition was skipped because document visibility state is hidden."||D.message==="Skipping view transition because document visibility state has become hidden."||D.message==="Skipping view transition because viewport size changed."||D.message==="Transition was aborted because of invalid state")&&(D=null),D!==null&&E(D)}finally{l(),c(),p()}}),M.finished.finally(function(){for(var D=0;D<B.length;D++)B[D].cancel();j.__reactViewTransition===M&&(j.__reactViewTransition=null),b()}),M}catch{return l(),c(),p(),null}}function ia(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}ia.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:te({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},ia.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),l=[],c=0;c<n.length;c++){var s=n[c].effect;s!==null&&s.target===e&&s.pseudoElement===t&&l.push(n[c])}return l},ia.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function fm(e){return{name:e,group:new ia("group",e),imagePair:new ia("image-pair",e),old:new ia("old",e),new:new ia("new",e)}}function Su(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Su.prototype.addEventListener=function(e,t,n){var l=null,c=null;if(!(n!=null&&typeof n!="boolean"&&(l=n.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var s=this._eventListeners;if(hm(s,e,t,n)===-1){var p=this,b=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(b=function(E){p.removeEventListener(e,t,n),typeof t=="function"?t.call(this,E):t.handleEvent(E)}),l!==null&&(c=p.removeEventListener.bind(p,e,t,n),l.addEventListener("abort",c,{once:!0}),c=l.removeEventListener.bind(l,"abort",c)),l=Wa(n),s.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:b,cleanup:c}),x(this._fragmentFiber.child,!1,b3,e,b,l)}this._eventListeners=s}};function b3(e,t,n,l){return Q(e).addEventListener(t,n,l),!1}Su.prototype.removeEventListener=function(e,t,n){var l=this._eventListeners;if(l!==null&&(t=hm(l,e,t,n),t!==-1)){var c=l[t];n=c.attachedListener;var s=c.cleanup;c=Wa(c.optionsOrUseCapture),x(this._fragmentFiber.child,!1,y3,e,n,c),l.splice(t,1),s!==null&&s()}};function y3(e,t,n,l){return Q(e).removeEventListener(t,n,l),!1}function Wa(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function dm(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function hm(e,t,n,l){if(e.length===0)return-1;l=dm(l);for(var c=0;c<e.length;c++){var s=e[c];if(s.type===t&&s.listener===n&&dm(s.optionsOrUseCapture)===l)return c}return-1}Su.prototype.dispatchEvent=function(e){var t=N(this._fragmentFiber);if(t===null)return!0;t=Q(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var l=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var c=0;c<n.length;c++){var s=n[c];l.addEventListener(s.type,s.attachedListener,Wa(s.optionsOrUseCapture))}if(t.appendChild(l),e=l.dispatchEvent(e),n)for(c=0;c<n.length;c++)s=n[c],l.removeEventListener(s.type,s.attachedListener,Wa(s.optionsOrUseCapture));return t.removeChild(l),e}return t.dispatchEvent(e)},Su.prototype.focus=function(e){x(this._fragmentFiber.child,!0,mm,e,void 0,void 0)};function mm(e,t){return e.tag===6?!1:(e=Q(e),j3(e,t))}Su.prototype.focusLast=function(e){var t=[];x(this._fragmentFiber.child,!0,O0,t,void 0,void 0);for(var n=t.length-1;0<=n&&!mm(t[n],e);n--);};function O0(e,t){return t.push(e),!1}Su.prototype.blur=function(){var e=N(this._fragmentFiber);e!==null&&(e=Q(e),e=cr(e).activeElement,e!==null&&x(this._fragmentFiber.child,!1,x3,e,void 0,void 0))};function x3(e,t){return e.tag===6?!1:(e=Q(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Su.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),x(this._fragmentFiber.child,!1,v3,e,void 0,void 0)};function v3(e,t){return e.tag===6||(e=Q(e),t.observe(e)),!1}Su.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),x(this._fragmentFiber.child,!1,_3,e,void 0,void 0);for(var n=t=0;n<$u.length;n++){var l=$u[n];l.fragmentInstance===this&&l.observer===e?e.unobserve(l.instance):$u[t++]=l}$u.length=t}};function _3(e,t){return e.tag===6||(e=Q(e),t.unobserve(e)),!1}var $u=[],R0=!1;function E3(e,t,n){$u.push({fragmentInstance:e,observer:t,instance:n}),R0||(R0=!0,w3(function(){R0=!1;var l=$u;$u=[];for(var c=0;c<l.length;c++){var s=l[c];s.observer.unobserve(s.instance)}}))}Su.prototype.getClientRects=function(){var e=[];return x(this._fragmentFiber.child,!1,S3,e,void 0,void 0),e};function S3(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Q(e),t.push.apply(t,e.getClientRects());return!1}Su.prototype.getRootNode=function(e){var t=N(this._fragmentFiber);return t===null?this:Q(t).getRootNode(e)},Su.prototype.compareDocumentPosition=function(e){var t=N(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];x(this._fragmentFiber.child,!1,O0,n,void 0,void 0);var l=Q(t);if(n.length===0){if(n=l,R(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var c=l=n.compareDocumentPosition(e);return n===e?c=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=T(t)[1],n===null?c=Node.DOCUMENT_POSITION_PRECEDING:(e=Q(n).compareDocumentPosition(e),c=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),c|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Q(n[0]),c=Q(n[n.length-1]);var s=R(this._fragmentFiber)?t.parentElement:l;if(s==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=s.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,s=s.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_CONTAINED_BY;var p=t.compareDocumentPosition(e),b=c.compareDocumentPosition(e),E=p&Node.DOCUMENT_POSITION_CONTAINED_BY||b&Node.DOCUMENT_POSITION_CONTAINED_BY;return b=l&&s&&p&Node.DOCUMENT_POSITION_FOLLOWING&&b&Node.DOCUMENT_POSITION_PRECEDING,t=l&&t===e||s&&c===e||E||b?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&t===e||!s&&c===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:p,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||A3(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function A3(e,t,n,l,c){var s=Tn(c);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!s)e:{for(;s!==null;){if(s.tag===7&&(s===t||s.alternate===t)){n=!0;break e}s=s.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(s===null)return s=c.ownerDocument,c===s||c===s.documentElement||c===s.body;e:{for(s=t,t=N(t);s!==null;){if(!(s.tag!==5&&s.tag!==3&&s.tag!==27||s!==t&&s.alternate!==t)){s=!0;break e}s=s.return}s=!1}return s}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!s)&&!(t=s===n)&&(t=ce(n,s,W),t===null?t=!1:(x(t,!0,ue,s,n),s=J,J=null,t=s!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!s)&&!(t=s===l)&&(t=ce(l,s,W),t===null?t=!1:(x(t,!0,$,s,l),s=J,ee=J=null,t=s!==null)),t):!1}function pm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Su.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(r(566));var t=[];x(this._fragmentFiber.child,!1,O0,t,void 0,void 0);var n=e!==!1;if(t.length===0){var l=T(this._fragmentFiber);if(l=n?l[1]||l[0]||N(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){e=Q(l),pm(e,n);return}if(l=Q(l),l.nodeType!==9){if(l.nodeType===11){n="host"in l?l.host:null,n!==null&&n.scrollIntoView(e);return}l.scrollIntoView(e)}}for(l=n?t.length-1:0;l!==(n?-1:t.length);){var c=t[l];c.tag===6?(c=Q(c),pm(c,n)):Q(c).scrollIntoView(e),l+=n?-1:1}};function T3(e,t){return e=Q(e),gm(e,t),!1}function gm(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function bm(e,t){var n=t._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var c=n[l];e.addEventListener(c.type,c.attachedListener,Wa(c.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(s){for(var p=0,b=0;b<$u.length;b++){var E=$u[b];(E.fragmentInstance!==t||E.observer!==s||E.instance!==e)&&($u[p++]=E)}$u.length=p,s.observe(e)}),gm(e,t))}function C3(e,t){var n=t._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var c=n[l];e.removeEventListener(c.type,c.attachedListener,Wa(c.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(s){typeof s.rootMargin=="string"?E3(t,s,e):s.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function z0(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":z0(n),el(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function D3(e,t,n,l){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[An])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Lu(e.nextSibling),e===null)break}return null}function N3(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Lu(e.nextSibling),e===null))return null;return e}function ym(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Lu(e.nextSibling),e===null))return null;return e}function M0(e){return e.data==="$?"||e.data==="$~"}function L0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function k3(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Lu(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 U0=null;function xm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Lu(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function vm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function j3(e,t){function n(){l=!0}if(e.ownerDocument.activeElement===e)return!0;var l=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return l}function w3(e){im(function(){im(function(t){return e(t)})})}function _m(e,t,n){switch(t=cr(n),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 Em(e,t,n){for(var l in n){var c=n[l];n.hasOwnProperty(l)&&c!=null&&Pe(e,t,l,null,i3,c)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Ze&&(e.onclick=null),el(e)}function F0(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);el(e)}var Uu=new Map,Sm=new Set;function sr(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Bn=P.d;P.d={f:O3,r:R3,D:z3,C:M3,L:L3,m:U3,X:B3,S:F3,M:H3};function O3(){var e=Bn.f(),t=Hc();return e||t}function R3(e){var t=Cn(e);t!==null&&t.tag===5&&t.type==="form"?Th(t):Bn.r(e)}var ei=typeof document>"u"?null:document;function Am(e,t,n){var l=ei;if(l&&typeof t=="string"&&t){var c=Wt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),Sm.has(c)||(Sm.add(c),e={rel:e,crossOrigin:n,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),Ht(t,"link",e),mt(t),l.head.appendChild(t)))}}function z3(e){Bn.D(e),Am("dns-prefetch",e,null)}function M3(e,t){Bn.C(e,t),Am("preconnect",e,t)}function L3(e,t,n){Bn.L(e,t,n);var l=ei;if(l&&e&&t){var c='link[rel="preload"][as="'+Wt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Wt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Wt(n.imageSizes)+'"]')):c+='[href="'+Wt(e)+'"]';var s=c;switch(t){case"style":s=ti(e);break;case"script":s=ui(e)}if(!(Uu.has(s)||(e=te({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Uu.set(s,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(or(s))||t==="script"&&l.querySelector(fr(s))))){var p=l.createElement("link");Ht(p,"link",e),t==="style"&&(p[Wn]=!0,p.onload=p.onerror=function(){Fr(p)}),mt(p),l.head.appendChild(p)}}}function U3(e,t){Bn.m(e,t);var n=ei;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Wt(l)+'"][href="'+Wt(e)+'"]',s=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=ui(e)}if(!Uu.has(s)&&(e=te({rel:"modulepreload",href:e},t),Uu.set(s,e),n.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(fr(s)))return}l=n.createElement("link"),Ht(l,"link",e),mt(l),n.head.appendChild(l)}}}function F3(e,t,n){Bn.S(e,t,n);var l=ei;if(l&&e){var c=tl(l).hoistableStyles,s=ti(e);t=t||"default";var p=c.get(s);if(!p){var b={loading:0,preload:null};if(p=l.querySelector(or(s)))b.loading=5;else{e=te({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Uu.get(s))&&B0(e,n);var E=p=l.createElement("link");mt(E),Ht(E,"link",e),E._p=new Promise(function(j,M){E.onload=j,E.onerror=M}),E.addEventListener("load",function(){b.loading|=1}),E.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Zc(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:b},c.set(s,p)}}}function B3(e,t){Bn.X(e,t);var n=ei;if(n&&e){var l=tl(n).hoistableScripts,c=ui(e),s=l.get(c);s||(s=n.querySelector(fr(c)),s||(e=te({src:e,async:!0},t),(t=Uu.get(c))&&H0(e,t),s=n.createElement("script"),mt(s),Ht(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(c,s))}}function H3(e,t){Bn.M(e,t);var n=ei;if(n&&e){var l=tl(n).hoistableScripts,c=ui(e),s=l.get(c);s||(s=n.querySelector(fr(c)),s||(e=te({src:e,async:!0,type:"module"},t),(t=Uu.get(c))&&H0(e,t),s=n.createElement("script"),mt(s),Ht(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(c,s))}}function Tm(e,t,n,l){var c=(c=Vt.current)?sr(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=ti(n.href),t=tl(c).hoistableStyles,l=t.get(n),l||(l={type:"style",instance:null,count:0,state:null},t.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ti(n.href);var s=tl(c).hoistableStyles,p=s.get(e);if(p||(c=c.ownerDocument||c,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,p),(s=c.querySelector(or(e)))?s._p||(p.instance=s,p.state.loading=5):(s=Uu.get(e),s||(s={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Uu.set(e,s)),q3(c,e,s,p.state))),t&&l===null)throw Error(r(528,""));return p}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=ui(n),t=tl(c).hoistableScripts,l=t.get(n),l||(l={type:"script",instance:null,count:0,state:null},t.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function ti(e){return'href="'+Wt(e)+'"'}function or(e){return'link[rel="stylesheet"]['+e+"]"}function Cm(e){return te({},e,{"data-precedence":e.precedence,precedence:null})}function q3(e,t,n,l){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Wn]!==!0){l.loading=1;return}}else t=e.createElement("link"),t[Wn]=!0,t.onload=t.onerror=Fr.bind(null,t),Ht(t,"link",n),mt(t),e.head.appendChild(t);l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2})}function ui(e){return'[src="'+Wt(e)+'"]'}function fr(e){return"script[async]"+e}function Dm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Wt(n.href)+'"]');if(l)return t.instance=l,mt(l),l;var c=te({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),mt(l),Ht(l,"style",c),Zc(l,n.precedence,e),t.instance=l;case"stylesheet":c=ti(n.href);var s=e.querySelector(or(c));if(s)return t.state.loading|=4,t.instance=s,mt(s),s;l=Cm(n),(c=Uu.get(c))&&B0(l,c),s=(e.ownerDocument||e).createElement("link"),mt(s);var p=s;return p._p=new Promise(function(b,E){p.onload=b,p.onerror=E}),Ht(s,"link",l),t.state.loading|=4,Zc(s,n.precedence,e),t.instance=s;case"script":return s=ui(n.src),(c=e.querySelector(fr(s)))?(t.instance=c,mt(c),c):(l=n,(c=Uu.get(s))&&(l=te({},n),H0(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),mt(c),Ht(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Zc(l,n.precedence,e));return t.instance}function Zc(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,s=c,p=0;p<l.length;p++){var b=l[p];if(b.dataset.precedence===t)s=b;else if(s!==c)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function B0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function H0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $c=null;function Nm(e,t,n){if($c===null){var l=new Map,c=$c=new Map;c.set(n,l)}else c=$c,l=c.get(n),l||(l=new Map,c.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var s=n[c];if(!(s[An]||s[_t]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var p=s.getAttribute(t)||"";p=e+p;var b=l.get(p);b?b.push(s):l.set(p,[s])}}return l}function q0(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function G3(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function km(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function jm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function wm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Om(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=wm(t),e.suspenseyImages.push(t)),e=V3.bind(e),t.decode().then(e,e))}function I3(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=ti(l.href),s=t.querySelector(or(c));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=dr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,mt(s);return}s=t.ownerDocument||t,l=Cm(l),(c=Uu.get(c))&&B0(l,c),s=s.createElement("link"),mt(s);var p=s;p._p=new Promise(function(b,E){p.onload=b,p.onerror=E}),Ht(s,"link",l),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=dr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Qc=0;function Y3(e,t){return e.stylesheets&&e.count===0&&Jc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Jc(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Qc===0&&(Qc=62500*c3());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Jc(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Qc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function Rm(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Jc(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function dr(){this.count--,Rm(this)}function V3(){this.imgCount--,Rm(this)}var Kc=null;function Jc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Kc=new Map,t.forEach(X3,e),Kc=null,dr.call(e))}function X3(e,t){if(!(t.state.loading&4)){var n=Kc.get(e);if(n)var l=n.get(null);else{n=new Map,Kc.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<c.length;s++){var p=c[s];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),l=p)}l&&n.set(null,l)}c=t.instance,p=c.getAttribute("data-precedence"),s=n.get(p)||l,s===l&&n.set(null,c),n.set(p,c),this.count++,l=dr.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),s?s.parentNode.insertBefore(c,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var ni={$$typeof:ye,Provider:null,Consumer:null,_currentValue:ze,_currentValue2:ze,_threadCount:0};function Z3(e,t,n,l,c,s,p,b,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=bi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bi(0),this.hiddenUpdates=bi(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=s,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.transitionTypes=null,this.incompleteTransitions=new Map}function zm(e,t,n,l,c,s,p,b,E,j,M,B){return e=new Z3(e,t,n,p,E,j,M,B,b),t=1,s===!0&&(t|=24),s=ru(3,null,null,t),e.current=s,s.stateNode=e,t=to(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:n,cache:t},ao(s),e}function Mm(e){return e?(e=ka,e):ka}function Lm(e,t,n,l,c,s){c=Mm(c),l.context===null?l.context=c:l.pendingContext=c,l=hl(t),l.payload={element:n},s=s===void 0?null:s,s!==null&&(l.callback=s),n=ml(e,l,t),n!==null&&(fu(n,e,t),Ii(n,e,t))}function Um(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function G0(e,t){Um(e,t),(e=e.alternate)&&Um(e,t)}function Fm(e){if(e.tag===13||e.tag===31){var t=Il(e,67108864);t!==null&&fu(t,e,67108864),G0(e,67108864)}}function Bm(e){if(e.tag===13||e.tag===31){var t=Eu();t=Fl(t);var n=Il(e,t);n!==null&&fu(n,e,t),G0(e,t)}}var li=!0;function $3(e,t,n,l){var c=I.T;I.T=null;var s=P.p;try{P.p=2,I0(e,t,n,l)}finally{P.p=s,I.T=c}}function Q3(e,t,n,l){var c=I.T;I.T=null;var s=P.p;try{P.p=8,I0(e,t,n,l)}finally{P.p=s,I.T=c}}function I0(e,t,n,l){if(li){var c=Y0(l);if(c===null)A0(e,t,l,Pc,n),qm(e,l);else if(J3(c,e,t,n,l))l.stopPropagation();else if(qm(e,l),t&4&&-1<K3.indexOf(e)){for(;c!==null;){var s=Cn(c);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var p=Pu(s.pendingLanes);if(p!==0){var b=s;for(b.pendingLanes|=2,b.entangledLanes|=2;p;){var E=1<<31-Dt(p);b.entanglements[1]|=E,p&=~E}dn(s),(Xe&6)===0&&(Uc=Ct()+500,ar(0))}}break;case 31:case 13:b=Il(s,2),b!==null&&fu(b,s,2),Hc(),G0(s,2)}if(s=Y0(l),s===null&&A0(e,t,l,Pc,n),s===c)break;c=s}c!==null&&l.stopPropagation()}else A0(e,t,l,null,n)}}function Y0(e){return e=Et(e),V0(e)}var Pc=null;function V0(e){if(Pc=null,e=Tn(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Pc=e,null}function Hm(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ha()){case Vn:return 2;case U:return 8;case X:case _e:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var X0=!1,Cl=null,Dl=null,Nl=null,hr=new Map,mr=new Map,kl=[],K3="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 qm(e,t){switch(e){case"focusin":case"focusout":Cl=null;break;case"dragenter":case"dragleave":Dl=null;break;case"mouseover":case"mouseout":Nl=null;break;case"pointerover":case"pointerout":hr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mr.delete(t.pointerId)}}function pr(e,t,n,l,c,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[c]},t!==null&&(t=Cn(t),t!==null&&Fm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function J3(e,t,n,l,c){switch(t){case"focusin":return Cl=pr(Cl,e,t,n,l,c),!0;case"dragenter":return Dl=pr(Dl,e,t,n,l,c),!0;case"mouseover":return Nl=pr(Nl,e,t,n,l,c),!0;case"pointerover":var s=c.pointerId;return hr.set(s,pr(hr.get(s)||null,e,t,n,l,c)),!0;case"gotpointercapture":return s=c.pointerId,mr.set(s,pr(mr.get(s)||null,e,t,n,l,c)),!0}return!1}function Gm(e){var t=Tn(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Ur(e.priority,function(){Bm(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,Ur(e.priority,function(){Bm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Y0(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);iu=l,n.target.dispatchEvent(l),iu=null}else return t=Cn(n),t!==null&&Fm(t),e.blockedOn=n,!1;t.shift()}return!0}function Im(e,t,n){Wc(e)&&n.delete(t)}function P3(){X0=!1,Cl!==null&&Wc(Cl)&&(Cl=null),Dl!==null&&Wc(Dl)&&(Dl=null),Nl!==null&&Wc(Nl)&&(Nl=null),hr.forEach(Im),mr.forEach(Im)}function es(e,t){e.blockedOn===t&&(e.blockedOn=null,X0||(X0=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,P3)))}var ts=null;function Ym(e){ts!==e&&(ts=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){ts===e&&(ts=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(V0(l||n)===null)continue;break}var s=Cn(n);s!==null&&(e.splice(t,3),t-=3,Do(s,{pending:!0,data:c,method:n.method,action:l},l,c))}}))}function ai(e){function t(E){return es(E,e)}Cl!==null&&es(Cl,e),Dl!==null&&es(Dl,e),Nl!==null&&es(Nl,e),hr.forEach(t),mr.forEach(t);for(var n=0;n<kl.length;n++){var l=kl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<kl.length&&(n=kl[0],n.blockedOn===null);)Gm(n),n.blockedOn===null&&kl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var c=n[l],s=n[l+1],p=c[$t]||null;if(typeof s=="function")p||Ym(n);else if(p){var b=null;if(s&&s.hasAttribute("formAction")){if(c=s,p=s[$t]||null)b=p.formAction;else if(V0(c)!==null)continue}else b=p.action;typeof b=="function"?n[l+1]=b:(n.splice(l,3),l-=3),Ym(n)}}}function Vm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(p){return c=p})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Z0(e){this._internalRoot=e}us.prototype.render=Z0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=Eu();Lm(n,l,e,t,null,null)},us.prototype.unmount=Z0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lm(e.current,2,null,e,null,null),Hc(),t[Jt]=null}};function us(e){this._internalRoot=e}us.prototype.unstable_scheduleHydration=function(e){if(e){var t=xi();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kl.length&&t!==0&&t<kl[n].priority;n++);kl.splice(n,0,e),n===0&&Gm(e)}};var Xm=a.version;if(Xm!=="19.3.1")throw Error(r(527,Xm,"19.3.1"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var W3={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ns.isDisabled&&ns.supportsFiber)try{Xt=ns.inject(W3),Zt=ns}catch{}}return br.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,l="",c=Mh,s=Lh,p=Uh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=zm(e,1,!1,null,null,n,l,null,c,s,p,Vm),e[Jt]=t.current,S0(e),new Z0(t)},br.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var l=!1,c="",s=Mh,p=Lh,b=Uh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=zm(e,1,!0,t,n??null,l,c,E,s,p,b,Vm),t.context=Mm(null),n=t.current,l=Eu(),l=Fl(l),c=hl(l),c.callback=null,ml(n,c,l),n=l,t.current.lanes=n,Ul(t,n),dn(t),e[Jt]=t.current,S0(e),new us(t)},br.version="19.3.1",br}var up;function sy(){if(up)return K0.exports;up=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(a){console.error(a)}}return u(),K0.exports=cy(),K0.exports}var oy=sy();const fy=["select","confirm","input","editor"],dy=new Set(fy),s2=["notify","setStatus","setWidget","setTitle","set_editor_text"];new Set(s2);function hy(u){return dy.has(u)}const oi=5,my=4;function py(u){return u===void 0?!0:u>=my}function np(u){const a=[];for(const r of u.split("/"))if(!(r===""||r===".")){if(r===".."){a.pop();continue}a.push(r)}const i=a.join("/");return u.startsWith("/")?`/${i}`:i}function gy(u,a){const i=np(u),r=np(a);return i.length===0||r.length===0?!1:i===r?!0:lp(i,r)||lp(r,i)}function lp(u,a){return a==="/"?u!=="/":u.startsWith(`${a}/`)}const by="This is the checkout Pi Central is running from. Editing it can hot-reload this UI, desynchronise it from the orchestrator on a branch switch, and leave Pi Central unable to restart if the orchestrator's source is broken — exactly when you need it. Use a separate clone (see docs/DOGFOODING.md).";function yy(u,a){if(a!==void 0)return gy(u,a)?by:void 0}function da(u){return!Number.isFinite(u)||u<0?"—":u<1024?`${u} B`:u<1024*1024?`${(u/1024).toFixed(1)} KB`:`${(u/(1024*1024)).toFixed(1)} MB`}const xy={},ap=[500,1e3,2e3,3e3,5e3];function vy(u){if(u!==oi)return`protocol mismatch: the orchestrator speaks v${u} and this UI speaks v${oi}. Reload the UI; if that fails, restart the orchestrator.`}class _y{#e;#t;#i;#l=0;#a=!1;#r="connecting";#n;constructor(a,i){this.#i=a,this.#t=i}get status(){return this.#r}connect(){this.#a=!1,this.#c()}#c(){this.#u("connecting");let a;try{a=new WebSocket(this.#i)}catch(i){this.#u("closed",i.message);return}this.#e=a,a.onopen=()=>{this.#l=0,this.#u("open")},a.onmessage=i=>{let r;try{r=JSON.parse(String(i.data)).payload}catch{this.#t.onEvent({kind:"error",message:"received a malformed frame from the orchestrator"});return}if(r.kind==="hello"){const o=vy(r.protocol);o!==void 0&&this.#t.onEvent({kind:"error",message:o});return}this.#t.onEvent(r)},a.onerror=()=>{},a.onclose=()=>{if(this.#e=void 0,this.#a){this.#u("closed");return}const i=ap[Math.min(this.#l,ap.length-1)];this.#l+=1,this.#u("closed",`reconnecting in ${(i/1e3).toFixed(1)}s`),this.#n=setTimeout(()=>this.#c(),i)}}#u(a,i){this.#r=a,this.#t.onStatus(a,i)}send(a){if(this.#e?.readyState!==WebSocket.OPEN)return!1;const i={dir:"client→orchestrator",protocol:oi,payload:a};return this.#e.send(JSON.stringify(i)),!0}disconnect(){this.#a=!0,this.#n&&clearTimeout(this.#n),this.#n=void 0,this.#e?.close(1e3,"client disconnected"),this.#e=void 0}}function Ey(){const u=xy.VITE_PI_CENTRAL_WS;return typeof u=="string"&&u.length>0?u:`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}const Sy="/assets/logo-icon-BCSgj5RT.svg";function Ay(u){return u===void 0?{kind:"follow-end"}:u.pinned?{kind:"follow-end"}:{kind:"restore",scrollTop:u.scrollTop,pinned:!1}}function Ty(u,a){return u>a}function Cy(u,a){const i=Math.max(0,a.scrollHeight-u.scrollHeight);return a.scrollHeight-a.scrollTop-a.clientHeight-i}function Dy(u,a,i){return Cy(u,a)<i}function ef(u){return Number.isFinite(u.scrollTop)&&Number.isFinite(u.scrollHeight)&&Number.isFinite(u.clientHeight)&&u.scrollHeight>0&&u.clientHeight>0}function ip(u,a){return u&&a}const o2="pi-central.trace";function rp(u){const a={};if(typeof u!="object"||u===null||Array.isArray(u))return a;for(const[i,r]of Object.entries(u))typeof r=="boolean"&&(a[i]=r);return a}function Ny(){try{const u=localStorage.getItem(o2);if(u===null||u==="")return{collapsed:{},markers:{}};const a=JSON.parse(u);if(typeof a!="object"||a===null)return{collapsed:{},markers:{}};const i=a;return{collapsed:rp(i.collapsed),markers:rp(i.markers)}}catch{return{collapsed:{},markers:{}}}}function ky(u){try{localStorage.setItem(o2,JSON.stringify({collapsed:u.collapsed,markers:u.markers}))}catch{}}function jy(){return{directories:{},files:{},expanded:{},openFile:{},showHidden:{},wrapLines:{}}}function hn(u,a){return`${u}\0${a}`}function wy(u){const a=u.indexOf("\0");return{sessionId:u.slice(0,a),path:u.slice(a+1)}}function ci(u,a,i){return u.directories[hn(a,i)]??{status:"unloaded"}}function Df(u,a,i){return u.files[hn(a,i)]??{status:"unloaded"}}function Oy(u,a,i){return u.expanded[hn(a,i)]===!0}function ms(u,a){return u.showHidden[a]===!0}function Ry(u,a){return u.wrapLines[a]!==!1}function zy(u,a){const i=u.openFile[a];if(i!==void 0)return{path:i,state:Df(u,a,i)}}function My(u){return u.kind==="directory"?!0:u.kind==="symlink"&&u.linkTarget==="directory"}function cp(u){return u.kind==="symlink"&&u.linkTarget==="missing"}function Ly(u,a){return u===""?a:`${u.replace(/\/+$/,"")}/${a}`}function Uy(u,a){switch(a.kind){case"filesLoading":return{...u,directories:{...u.directories,[hn(a.sessionId,a.path)]:{status:"loading"}}};case"filesLoaded":return{...u,directories:{...u.directories,[hn(a.sessionId,a.path)]:{status:"loaded",entries:a.entries,truncated:a.truncated}}};case"filesFailed":return{...u,directories:{...u.directories,[hn(a.sessionId,a.path)]:{status:"error",reason:a.reason,...a.code===void 0?{}:{code:a.code},message:a.message}}};case"fileLoading":return{...u,files:{...u.files,[hn(a.sessionId,a.path)]:{status:"loading"}}};case"fileLoaded":return{...u,files:{...u.files,[hn(a.sessionId,a.path)]:{status:"loaded",content:a.content,bytes:a.bytes}}};case"fileFailed":return{...u,files:{...u.files,[hn(a.sessionId,a.path)]:{status:"error",reason:a.reason,...a.code===void 0?{}:{code:a.code},message:a.message}}};case"toggleExpanded":case"setExpanded":{const i=hn(a.sessionId,a.path),r=a.kind==="toggleExpanded"?u.expanded[i]!==!0:a.expanded;return{...u,expanded:{...u.expanded,[i]:r}}}case"openFile":return{...u,openFile:{...u.openFile,[a.sessionId]:a.path}};case"closeFile":return{...u,openFile:{...u.openFile,[a.sessionId]:void 0}};case"toggleHidden":return{...u,showHidden:{...u.showHidden,[a.sessionId]:u.showHidden[a.sessionId]!==!0}};case"toggleWrap":return{...u,wrapLines:{...u.wrapLines,[a.sessionId]:u.wrapLines[a.sessionId]===!1}};case"forgetSession":{const i=`${a.sessionId}\0`,r=v=>Object.fromEntries(Object.entries(v).filter(([x])=>!x.startsWith(i))),{[a.sessionId]:o,...f}=u.openFile,{[a.sessionId]:h,...m}=u.showHidden,{[a.sessionId]:g,...y}=u.wrapLines;return{directories:r(u.directories),files:r(u.files),expanded:r(u.expanded),openFile:f,showHidden:m,wrapLines:y}}}}const Fy=["image/png","image/jpeg","image/gif","image/webp"];function By(u){if(u.length===0)return 0;const a=u.endsWith("==")?2:u.endsWith("=")?1:0;return Math.floor(u.length*3/4)-a}function gs(){return{messages:[],tools:[],notices:[]}}function Hy(u){if(typeof u=="string")return u.length>0?[{kind:"text",text:u,complete:!0}]:[];if(!Array.isArray(u))return[];const a=[];for(const i of u){if(typeof i!="object"||i===null)continue;const r=i;if(r.type==="text"&&typeof r.text=="string")a.push({kind:"text",text:r.text,complete:!0});else if(r.type==="thinking"&&typeof r.thinking=="string")a.push({kind:"thinking",text:r.thinking,complete:!0});else if(r.type==="image")a.push(f2(r,a.length));else if(r.type==="toolCall"||r.type==="tool_use"||r.type==="tool_call"){const o=r.arguments??r.input;a.push({kind:"toolcall",contentIndex:a.length,...r.id!==void 0?{id:r.id}:{},...r.name!==void 0?{name:r.name}:{},argsText:"",...o!==void 0?{args:o}:{},complete:!0})}}return a}function f2(u,a){const i=typeof u.source=="object"&&u.source!==null?u.source:void 0,r=typeof u.data=="string"?u.data:typeof i?.data=="string"?i.data:"",o=typeof u.mimeType=="string"?u.mimeType:typeof i?.media_type=="string"?i.media_type:typeof i?.mimeType=="string"?i.mimeType:"image/unknown",f=o.toLowerCase(),h=r.length===0?"no-payload":Fy.includes(f)?void 0:"unsupported-type";return{kind:"image",contentIndex:a,type:o,base64:r,...h!==void 0?{refused:h}:{}}}function qy(u,a,i){return`${u}\0${a}\0${i}`}function sp(u){if(!Array.isArray(u))return[];const a=[];for(const i of u){if(typeof i!="object"||i===null)continue;const r=i;r.type==="image"&&a.push(f2(r,a.length))}return a}function tf(u,a){const i=u.findIndex(r=>r.toolCallId===a.toolCallId);return i===-1?[...u,a]:u.map((r,o)=>o!==i?r:{...r,toolName:r.toolName&&r.toolName!=="tool"?r.toolName:a.toolName,args:r.args??a.args,result:a.result.length>r.result.length?a.result:r.result,...r.images!==void 0&&r.images.length>0?{}:a.images!==void 0&&a.images.length>0?{images:a.images}:{},isError:r.isError||a.isError,running:a.running?!0:a.durationMs!==void 0||a.result.length>0?!1:r.running,durationMs:r.durationMs??a.durationMs,afterMessage:r.afterMessage})}function ra(u,a,i){for(;u.length<=a;)u.push({kind:"text",text:"",complete:!1});const r=u[a];if(r===void 0||r.kind==="text"&&r.text===""&&!r.complete&&i().kind!=="text"){const o=i();return u[a]=o,o}return r}function d2(u){const a=u.messages[u.messages.length-1];return a?.role==="assistant"?a:void 0}function h2(u,a){const i=String(a.type??""),r={...u,messages:[...u.messages],tools:[...u.tools],notices:[...u.notices??[]],lastRecordType:i,lastRecordAt:Date.now()};switch(i){case"compaction_start":return r.notices=[...r.notices,{kind:"compaction",reason:String(a.reason??"unknown"),startedAt:Date.now()}],r;case"compaction_end":{const o=a.result;return r.notices=uf(r.notices,"compaction",f=>({...f,ended:{aborted:a.aborted===!0,willRetry:a.willRetry===!0,...typeof a.errorMessage=="string"?{errorMessage:a.errorMessage}:{}},...typeof o?.tokensBefore=="number"?{tokensBefore:o.tokensBefore}:{},...typeof o?.tokensAfter=="number"?{tokensAfter:o.tokensAfter}:{}})),r}case"auto_retry_start":return r.notices=[...r.notices,{kind:"retry",attempt:Number(a.attempt??1),maxAttempts:Number(a.maxAttempts??1),delayMs:Number(a.delayMs??0),errorMessage:String(a.errorMessage??"")}],r;case"auto_retry_end":return r.notices=uf(r.notices,"retry",o=>({...o,ended:{success:a.success===!0,...typeof a.finalError=="string"?{finalError:a.finalError}:{}}})),r;case"summarization_retry_scheduled":return r.notices=[...r.notices,{kind:"summarization",source:"unknown",attempt:Number(a.attempt??1),maxAttempts:Number(a.maxAttempts??1),...typeof a.errorMessage=="string"?{errorMessage:a.errorMessage}:{},finished:!1}],r;case"summarization_retry_attempt_start":{let o=!1;return r.notices=r.notices.map(f=>o||f.kind!=="summarization"||f.finished?f:(o=!0,{...f,source:String(a.source??"unknown")})),o||(r.notices=[...r.notices,{kind:"summarization",source:String(a.source??"unknown"),attempt:1,maxAttempts:1,finished:!1}]),r}case"summarization_retry_finished":return r.notices=uf(r.notices,"summarization",o=>({...o,finished:!0})),r;case"message_start":{const f=a.message?.role??"assistant";return r.messages=r.messages.map(h=>h.streaming?{...h,streaming:!1}:h),r.messages.push({id:`m${r.messages.length}`,role:f,blocks:[],complete:!1,streaming:!0}),r}case"message_update":{const o=a.assistantMessageEvent;if(!o)return r;const f=a.usage;if(f){const h=d2(r);h&&(r.messages[r.messages.length-1]={...h,usage:f})}return Gy(r,o)}case"message_end":{const o=a.message,f=o?.role;if(f==="system")return r;if(f==="toolResult"||f==="bashExecution"){const y=o?.toolCallId??`history-${r.tools.length}`,v=sp(o?.content);return r.tools=tf(r.tools,{toolCallId:y,toolName:o?.toolName??(f==="bashExecution"?"bash":"tool"),args:o?.command!==void 0?{command:o.command}:void 0,result:Sr(o?.content)||String(o?.output??""),...v.length>0?{images:v}:{},isError:o?.isError===!0,running:!1,startedAt:Date.now(),afterMessage:r.messages.length}),r}const h=Hy(o?.content),m=o?Iy(o):void 0;m&&h.push({kind:"text",text:m,complete:!0});const g=r.messages[r.messages.length-1];return g&&g.role==="assistant"&&!g.complete&&f!=="user"?r.messages[r.messages.length-1]={...g,blocks:h.length>0?h:g.blocks,complete:!0,streaming:!1}:o&&r.messages.push({id:`m${r.messages.length}`,role:Yy(f),blocks:h,complete:!0,streaming:!1}),r}case"tool_execution_start":{const o=String(a.toolCallId??"");return r.tools=tf(r.tools,{toolCallId:o,toolName:String(a.toolName??""),args:a.args,result:"",isError:!1,running:!0,startedAt:Date.now(),afterMessage:r.messages.length}),r}case"tool_execution_update":{const o=String(a.toolCallId??"");return r.tools=r.tools.map(f=>f.toolCallId===o?{...f,result:Sr(a.partialResult)}:f),r}case"tool_execution_end":{const o=String(a.toolCallId??""),f=sp(a.result);let h=!1;return r.tools=r.tools.map(m=>m.toolCallId!==o?m:(h=!0,{...m,result:Sr(a.result),...f.length>0?{images:f}:{},isError:a.isError===!0,running:!1,...typeof a.durationMs=="number"?{durationMs:a.durationMs}:{}})),h||(r.tools=tf(r.tools,{toolCallId:o,toolName:String(a.toolName??""),args:a.args,result:Sr(a.result),...f.length>0?{images:f}:{},isError:a.isError===!0,running:!1,...typeof a.durationMs=="number"?{durationMs:a.durationMs}:{},startedAt:Date.now(),afterMessage:r.messages.length})),r}default:return r}}function Gy(u,a){const i=String(a.type??""),r=typeof a.contentIndex=="number"?a.contentIndex:0,o=d2(u);if(!o)return u;const f=[...u.messages],h=[...o.blocks],m=g=>{f[f.length-1]=g};switch(i){case"text_start":ra(h,r,()=>({kind:"text",text:"",complete:!1}));break;case"text_delta":{const g=ra(h,r,()=>({kind:"text",text:"",complete:!1}));g.kind==="text"&&(h[r]={...g,text:g.text+String(a.delta??"")});break}case"text_end":{const g=String(a.content??"");ra(h,r,()=>({kind:"text",text:"",complete:!1})),h[r]={kind:"text",text:g,complete:!0};break}case"thinking_start":ra(h,r,()=>({kind:"thinking",text:"",complete:!1}));break;case"thinking_delta":{const g=ra(h,r,()=>({kind:"thinking",text:"",complete:!1}));g.kind==="thinking"&&(h[r]={...g,text:g.text+String(a.delta??"")});break}case"thinking_end":{h[r]={kind:"thinking",text:String(a.content??""),complete:!0};break}case"toolcall_start":{const g={kind:"toolcall",contentIndex:r,argsText:"",complete:!1,...a.id!==void 0?{id:String(a.id)}:{},...a.toolName!==void 0?{name:String(a.toolName)}:{}};ra(h,r,()=>g),h[r]=g;break}case"toolcall_delta":{const g=h[r];g?.kind==="toolcall"&&(h[r]={...g,argsText:g.argsText+String(a.delta??"")});break}case"toolcall_end":{const g=h[r],y=a.toolCall,v=g?.kind==="toolcall"?g:{kind:"toolcall",contentIndex:r,argsText:"",complete:!1};h[r]={...v,...y?.id!==void 0?{id:y.id}:{},...y?.name!==void 0?{name:y.name}:{},...y?.input!==void 0?{args:y.input}:{},complete:!0};break}case"error":{const g=ra(h,r,()=>({kind:"text",text:"",complete:!1})),y=String(a.reason??a.error??"the provider stream ended with an error");g.kind==="text"&&(h[r]={...g,text:`${g.text}
10
+
11
+ [${y}]`,complete:!1});break}default:return u}return m({...o,blocks:h}),{...u,messages:f}}function Sr(u){if(u==null)return"";if(typeof u=="string")return u;if(Array.isArray(u))return u.map(a=>{if(typeof a=="string")return a;if(typeof a=="object"&&a!==null){const i=a;if(typeof i.text=="string")return i.text}return""}).filter(Boolean).join(`
12
+ `);if(typeof u=="object"){const a=u;if(typeof a.text=="string")return a.text;if(typeof a.output=="string")return a.output;if(a.content!==void 0)return Sr(a.content);try{return JSON.stringify(u,null,2)}catch{return String(u)}}return String(u)}function Iy(u){const a=u.stopReason;if(a!=="error"&&a!=="aborted")return;const i=u.errorMessage?.trim();return`⚠ ${a==="aborted"?"This response was interrupted.":"This response did not complete."}${i?` ${i}`:""}`}function Yy(u){switch(u){case"user":return"user";case"system":return"system";case"toolResult":case"bashExecution":return"tool";default:return"assistant"}}function Vy(u){let a=gs();for(const i of u)typeof i!="object"||i===null||(a=h2(a,{type:"message_end",message:i}));return Xy(a)}function Xy(u){const a=new Map;if(u.messages.forEach((f,h)=>{for(const m of f.blocks)m.kind!=="toolcall"||m.id===void 0||a.set(m.id,{name:m.name,args:m.args,index:h})}),a.size===0)return u;const i=new Set(u.tools.map(f=>f.toolCallId)),r=u.tools.map(f=>{const h=a.get(f.toolCallId);return h?{...f,args:f.args??h.args,toolName:f.toolName==="tool"&&h.name?h.name:f.toolName}:f}),o=[];for(const[f,h]of a)i.has(f)||o.push({toolCallId:f,toolName:h.name??"tool",args:h.args,result:"",isError:!1,running:!1,startedAt:Date.now(),afterMessage:h.index+1,unfinished:!0});return{...u,tools:[...r,...o].sort((f,h)=>f.afterMessage-h.afterMessage)}}function Zy(u,a=5){const i=u.length;if(i===0)return[];const r=u.slice(Math.max(0,i-a));return[...u.filter(f=>f.running&&!r.includes(f)),...r]}function $y(u){const a=u.args;if(a==null)return"";if(typeof a=="string")return a;if(typeof a=="object"){const i=a;for(const o of["command","path","file_path","pattern","query","url","prompt","name"]){const f=i[o];if(typeof f=="string"&&f.length>0)return o==="command"?f:`${f}`}const r=Object.keys(i);return r.length>0?r.join(", "):""}return String(a)}function uf(u,a,i){for(let r=u.length-1;r>=0;r-=1){const o=u[r];if(o.kind!==a||("ended"in o?o.ended!==void 0:o.finished===!0))continue;const h=[...u];return h[r]=i(o),h}return u}function Qy(u){return u.kind==="summarization"?!u.finished:u.ended===void 0}const op="pi-central.roster",Uf=200;function bs(u){return typeof u!="string"||u.length===0||u.length>4096||u.includes("\0")?!1:u.startsWith("/")}function fp(u,a){if(typeof u!="string")return;const i=u.trim();if(i.length!==0)return i.length>a?i.slice(0,a):i}function Ky(u){const a={};return u.sessionId!==void 0&&(a.sessionId=u.sessionId),u.cwd!==void 0&&(a.cwd=u.cwd),u.name!==void 0&&(a.name=u.name),u.scratch!==void 0&&(a.scratch=u.scratch),a}function Jy(u){if(u===null||u==="")return[];let a;try{a=JSON.parse(u)}catch{return[]}const i=Array.isArray(a)?a:typeof a=="object"&&a!==null&&Array.isArray(a.entries)?a.entries:[],r=new Set,o=[];for(const f of i){if(o.length>=Uf)break;if(typeof f!="object"||f===null)continue;const h=f,m=h.path;if(!bs(m)||r.has(m))continue;r.add(m);const g={path:m},y=fp(h.sessionId,128);y!==void 0&&(g.sessionId=y),bs(h.cwd)&&(g.cwd=h.cwd);const v=fp(h.name,200);v!==void 0&&(g.name=v),typeof h.scratch=="boolean"&&(g.scratch=h.scratch),o.push(g)}return o}function Py(u){return JSON.stringify(u.slice(0,Uf))}function Wy(u,a){if(!bs(a.path))return[...u];const i=u.findIndex(r=>r.path===a.path);if(i>=0){const r=[...u];return r[i]={...u[i],...Ky(a)},r}return[a,...u].slice(0,Uf)}function e6(u,a){return u.filter(i=>i.path!==a)}function m2(u){if(!bs(u.sessionFile))return;const a={path:u.sessionFile};return u.sessionId&&(a.sessionId=u.sessionId),u.cwd&&(a.cwd=u.cwd),u.name&&(a.name=u.name),a.scratch=u.scratch,a}function t6(u,a){const i=new Map;for(const f of a)f.sessionFile!==void 0&&i.set(f.sessionFile,f);const r=u.map(f=>({entry:f,session:i.get(f.path)})),o=new Set(u.map(f=>f.path));for(const f of a){const h=f.sessionFile;if(h!==void 0&&o.has(h))continue;const m=m2(f)??{path:`live:${f.id}`,name:f.name,cwd:f.cwd};r.push({entry:m,session:f})}return r}function u6(u){return u.session===void 0?"stopped":u.session.state}function n6(u){switch(u.session?.state){case"awaiting-approval":return"needs";case"failed":return"failed";case"streaming":case"starting":return"running";case"idle":return"idle";default:return"stopped"}}function l6(u){return["needs","failed","running","idle","stopped"].map(i=>({group:i,rows:u.filter(r=>n6(r)===i)})).filter(i=>i.rows.length>0)}function a6(u,a){if(u!==void 0)return a.find(i=>i.sessionFile===u.path)}function p2(){return{live:[],history:[],historyTotal:0,home:void 0,installationRoot:void 0,install:void 0,transcripts:{},transcriptErrors:{},models:{},modelErrors:{},thinkingLevels:{},thinkingLevelErrors:{},queues:{},restoredQueue:{},focusedId:void 0,focusNextNewSession:!1,roster:[],pendingPrompt:void 0,connection:"connecting",connectionDetail:void 0,errors:[],ready:!1}}const i6=20;function r6(u,a){if(a.kind==="queueRestored"){const{[a.sessionId]:i,...r}=u.restoredQueue;return{...u,restoredQueue:r}}if(a.kind==="expectNewSession")return u.focusNextNewSession?u:{...u,focusNextNewSession:!0};if(a.kind==="dismissError")return u.errors.length===0?u:{...u,errors:u.errors.slice(1)};if(a.kind==="loadRoster")return{...u,roster:a.entries};if(a.kind==="remember")return{...u,roster:Wy(u.roster,a.entry)};if(a.kind==="forget")return{...u,roster:e6(u.roster,a.path)};if(a.kind==="queuePrompt")return{...u,pendingPrompt:{path:a.path,message:a.message,...a.behavior?{behavior:a.behavior}:{}}};if(a.kind==="clearPendingPrompt")return u.pendingPrompt===void 0?u:{...u,pendingPrompt:void 0};if(a.kind==="focusRow"){const i=u.live.some(o=>o.id===a.key),r=u.roster.some(o=>o.path===a.key);return!i&&!r||u.focusedId===a.key?u:{...u,focusedId:a.key}}return c6(u,a)}function c6(u,a){switch(a.kind){case"snapshot":{const r=u.focusedId&&a.live.some(o=>o.id===u.focusedId)?u.focusedId:a.live[0]?.id;return{...u,live:a.live,history:a.history,historyTotal:a.historyTotal,home:a.home,installationRoot:a.installationRoot,install:a.install,focusedId:r,ready:!0}}case"session":{const i=u.live.findIndex(g=>g.id===a.session.id),r=i===-1?[...u.live,a.session]:u.live.map(g=>g.id===a.session.id?a.session:g),o=i===-1,f=u.focusNextNewSession&&o?a.session.id:u.focusedId??a.session.id,h=a.session.sessionFile,m=u.history.map(g=>g.path===h?{...g,...a.session.name?{name:a.session.name}:{}}:g);return{...u,live:r,history:m,focusedId:f,focusNextNewSession:o?!1:u.focusNextNewSession}}case"record":{const i=u.transcripts[a.sessionId]??gs();return{...u,transcripts:{...u.transcripts,[a.sessionId]:h2(i,a.record)}}}case"transcript":{const{[a.sessionId]:i,...r}=u.transcriptErrors;return{...u,transcripts:{...u.transcripts,[a.sessionId]:Vy(a.messages)},transcriptErrors:r}}case"transcriptError":return{...u,transcriptErrors:{...u.transcriptErrors,[a.sessionId]:a.message}};case"models":{const{[a.sessionId]:i,...r}=u.modelErrors;return{...u,models:{...u.models,[a.sessionId]:a.models},modelErrors:r}}case"modelsError":return{...u,modelErrors:{...u.modelErrors,[a.sessionId]:a.message}};case"thinkingLevels":{const{[a.sessionId]:i,...r}=u.thinkingLevelErrors;return{...u,thinkingLevels:{...u.thinkingLevels,[a.sessionId]:a.levels},thinkingLevelErrors:r}}case"thinkingLevelsError":return{...u,thinkingLevelErrors:{...u.thinkingLevelErrors,[a.sessionId]:a.message}};case"queue":return{...u,queues:{...u.queues,[a.sessionId]:{steering:a.steering,followUp:a.followUp}}};case"queueCleared":{const i=[...a.steering,...a.followUp];return{...u,queues:{...u.queues,[a.sessionId]:{steering:[],followUp:[]}},restoredQueue:{...u.restoredQueue,[a.sessionId]:i}}}case"history":return{...u,history:a.history,historyTotal:a.total,ready:!0};case"files":case"file":case"fileError":return u;case"error":return{...u,focusNextNewSession:!1,errors:[a.message,...u.errors].slice(0,i6)}}}function s6(u){const a=r=>r.state==="streaming"||r.state==="starting",i=r=>r.state==="awaiting-approval"||r.state==="failed";return{total:u.live.length,running:u.live.filter(a).length,idle:u.live.filter(r=>r.state==="idle").length,needs:u.live.filter(i).length,scratch:u.live.filter(r=>r.scratch).length}}function o6(u){return u.live.some(a=>a.mode==="direct")}function f6(u){return u.live.find(a=>a.id===u.focusedId)}function d6(u,a){return a?u.transcripts[a]??gs():gs()}function h6(u){return u.live.reduce((a,i)=>a+i.dialogs.length,0)}function m6(u){if(!u)return{mode:"unavailable",reason:"No session selected."};switch(u.state){case"starting":return{mode:"unavailable",reason:"Starting up. The session will accept a prompt shortly."};case"idle":return{mode:"prompt"};case"streaming":return{mode:"steer"};case"awaiting-approval":return{mode:"unavailable",reason:"Waiting for your answer to a dialog below."};case"failed":return{mode:"unavailable",reason:"This session failed to start. Retry it from the rail."};case"stopped":return{mode:"unavailable",reason:"This session has stopped."};case"registered":return{mode:"unavailable",reason:"Not yet started."}}}function p6(u,a){if(!a)return{steering:[],followUp:[],total:0,textsKnown:!0};const i=u.queues[a.id],r=i?.steering??[],o=i?.followUp??[],f=i!==void 0&&r.length+o.length>=a.pending;return{steering:r,followUp:o,total:a.pending,textsKnown:f}}function g6(u,a,i=200){const r=a.trim().toLowerCase();if(r.length===0)return u.slice(0,i);const o=[];for(const f of u){let h=0;const m=(f.name??"").toLowerCase(),g=f.cwd.toLowerCase(),y=f.firstMessage.toLowerCase();m.includes(r)&&(h+=100),g.includes(r)&&(h+=50),y.includes(r)&&(h+=20),h>0&&o.push({session:f,score:h})}return o.sort((f,h)=>h.score-f.score||h.session.modifiedMs-f.session.modifiedMs),o.slice(0,i).map(f=>f.session)}function g2(u){switch(u.state){case"registered":return"registered";case"starting":return"starting";case"idle":return"idle";case"streaming":return"working";case"awaiting-approval":return"needs you";case"stopped":return"stopped";case"failed":return"failed"}}function b6(u){const a=[];for(const i of u){const r=a.at(-1);r&&r.provider===i.provider?r.models.push(i):a.push({provider:i.provider,models:[i]})}return a}function b2(u,a){return u.model===a.id&&(u.provider===void 0||u.provider===a.provider)}function y2(u){return u===null||!Number.isFinite(u)?"—":u===0?"$0.00":u<1?`$${u.toFixed(4)}`:`$${u.toFixed(2)}`}function Nf(u){return u===null||!Number.isFinite(u)?"—":u<1e3?`${u}`:u<1e6?`${(u/1e3).toFixed(1)}k`:`${(u/1e6).toFixed(1)}M`}function kf(u){if(u===null||!Number.isFinite(u))return"ctx —";const a=Math.round(u);return a>=80?`ctx ${a}% full`:`ctx ${a}%`}function y6(u,a=Date.now()){const i=Math.max(0,Math.floor((a-u)/1e3));if(i<60)return"just now";const r=Math.floor(i/60);if(r<60)return`${r}m ago`;const o=Math.floor(r/60);if(o<24)return`${o}h ago`;const f=Math.floor(o/24);return f<30?`${f}d ago`:new Date(u).toLocaleDateString()}function x2(u,a){if(u.length<=a)return u;const i=a-1,r=Math.ceil(i*.55),o=i-r;return`${u.slice(0,r)}…${u.slice(u.length-o)}`}function hi(u,a=34,i){let r=u;return i&&i.length>1&&r.startsWith(i)&&(r=`~${r.slice(i.length)}`),x2(r,a)}function v2(u,a,i){const r=u?.trim(),o=r===void 0||r.length===0||/^(undefined|null)$/i.test(r)||/^s\d+$/.test(r);return a?o?"Scratch session":r:o?i:r}function vs(u){return v2(u.name,u.scratch,u.id)}function _2(u,a){return u.scratch?`scratch · ${u.id}`:hi(u.cwd,34,a)}function x6(u,a,i=70){return u.scratch?`${_2(u,a)} · ${hi(u.cwd,i,a)}`:hi(u.cwd,i,a)}async function v6(u){try{return await navigator.clipboard.writeText(u),!0}catch{return!1}}const _6=[{key:"needs",label:"Needs you"},{key:"failed",label:"Failed"},{key:"running",label:"Running"},{key:"idle",label:"Idle"},{key:"stopped",label:"Stopped"}];function E6({rows:u,focusedId:a,onFocusRow:i,onForgetRow:r,onRetryRow:o,retryAvailable:f,onStartSession:h,onOpenDirectory:m,home:g,historyTotal:y,openAsDrawer:v=!1,onCloseDrawer:x}){const[N,R]=w.useState(""),T=w.useMemo(()=>{const Q=N.trim().toLowerCase();return Q.length===0?u:u.filter(J=>{const ee=E2(J).toLowerCase(),ue=(J.entry.cwd??"").toLowerCase(),$=J.session?.id.toLowerCase()??"";return ee.includes(Q)||ue.includes(Q)||$.includes(Q)})},[u,N]),ne=w.useMemo(()=>l6(T),[T]);return d.jsxs("nav",{id:"session-rail",className:`rail${v?" open":""}`,"aria-label":"Sessions",children:[d.jsxs("div",{className:"rail-start",children:[d.jsxs("button",{type:"button",className:"btn-primary",onClick:h,children:["New session",d.jsx("small",{children:"runs in a scratch workspace"})]}),d.jsxs("button",{type:"button",className:"btn-quiet",onClick:m,children:[d.jsx("span",{children:"Open in a directory…"}),d.jsx("span",{className:"mono",children:"⌘⇧O"})]})]}),d.jsx("div",{className:"rail-filter",children:d.jsx("input",{type:"search",value:N,placeholder:"Filter sessions","aria-label":"Filter sessions",onChange:Q=>R(Q.target.value)})}),d.jsxs("div",{className:"rail-list",children:[u.length===0?d.jsxs("p",{className:"rail-empty",children:["No sessions yet. Start one with ",d.jsx("kbd",{children:"⌘N"}),"."]}):ne.length===0?d.jsxs("p",{className:"rail-empty",children:["No sessions match “",N,"”."]}):ne.map(Q=>d.jsxs("section",{"aria-label":dp(Q.group),children:[d.jsxs("h3",{className:"group-header",children:[d.jsx("span",{children:dp(Q.group)}),d.jsx("span",{className:"count",children:Q.rows.length})]}),Q.rows.map(J=>d.jsx(T6,{row:J,focused:hp(J)===a,onFocus:()=>i(J),onForget:()=>r(J),onRetry:()=>o(J),retryAvailable:f,home:g},hp(J)))]},Q.group)),y>0&&d.jsx("p",{className:"rail-empty",style:{borderTop:"1px solid var(--line)",marginTop:8},children:`${y} session${y===1?"":"s"} on disk — see the History tab.`})]})]})}function dp(u){return _6.find(a=>a.key===u)?.label??u}function hp(u){return u.session?.id??u.entry.path}function E2(u){return u.session!==void 0?vs(u.session):v2(u.entry.name,u.entry.scratch===!0,A6(u.entry.path))}function S6(u){return u.split(`
13
+ `)[0]??u}function A6(u){return(u.split("/").filter(i=>i.length>0).pop()??u).replace(/\.jsonl$/,"")}function T6({row:u,focused:a,onFocus:i,onForget:r,onRetry:o,retryAvailable:f,home:h}){const m=u.session,g=m?.dialogs[0]?.message??m?.dialogs[0]?.title,y=u6(u),v=u.entry.cwd===void 0?"directory unknown":hi(u.entry.cwd,34,h);return d.jsxs("div",{className:`rail-row state-${y}${a?" is-focused":""}`,children:[d.jsxs("button",{type:"button",className:"rail-row-main","aria-current":a?"true":void 0,onClick:i,children:[d.jsxs("span",{className:"r1",children:[d.jsx("span",{className:"name",children:E2(u)}),m?.scratch&&d.jsx("span",{className:"chip chip-scratch",children:"scratch"}),d.jsx("span",{className:`chip chip-${y}`,children:m===void 0?"stopped":g2(m)})]}),g?d.jsxs("span",{className:"r2 ask",title:g,children:["⚠ ",g]}):d.jsx("span",{className:"r2",title:u.entry.cwd,children:m===void 0?v:_2(m,h)}),m!==void 0&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"r3",children:[d.jsx("span",{className:m.contextPercent!==null&&m.contextPercent>=80?"warn":"",children:kf(m.contextPercent)}),m.pending>0&&d.jsxs("span",{children:["+",m.pending," queued"]}),m.state==="failed"&&m.error!==void 0&&d.jsx("span",{children:"failed"})]}),m.warnings.length>0&&d.jsxs("span",{className:"r3",style:{color:"var(--warn-text)"},title:m.warnings.join(`
14
+ `),children:["⚠ ",m.warnings[0]]})]})]}),m?.state==="failed"&&d.jsx("span",{className:"rail-row-actions",children:f?d.jsx("button",{type:"button",className:"rail-row-retry",onClick:o,title:"Try this session again in the same directory",children:"Retry"}):d.jsx("span",{className:"rail-row-earlier",children:"restart the orchestrator to retry (it speaks an older protocol)"})}),m?.previousError!==void 0&&d.jsxs("span",{className:"rail-row-earlier",children:["last failure: ",S6(m.previousError)]}),m===void 0&&d.jsx("button",{type:"button",className:"rail-row-forget",onClick:r,title:"Remove from the rail. The session file is not deleted.",children:"Forget"})]})}function C6({following:u,onToggle:a}){return d.jsxs("button",{type:"button",className:"follow-toggle","aria-pressed":u,onClick:a,title:u?"Stop scrolling to new output automatically. Jump to latest still works.":"Scroll to new output automatically whenever you are at the end of the transcript.",children:[d.jsx("span",{className:"follow-toggle-track","aria-hidden":"true",children:d.jsx("span",{className:"follow-toggle-dot"})}),d.jsx("span",{className:"follow-toggle-label",children:u?"auto-follow on":"auto-follow off"})]})}const Cr=260,_s=120,D6=.7;function Ff(u){return!Number.isFinite(u)||u<=0?Cr:Math.max(_s,Math.round(u*D6))}function si(u,a){if(!Number.isFinite(u))return Cr;const i=Ff(a);return Math.round(Math.min(i,Math.max(_s,u)))}function N6(u,a,i){return si(u-a,i)}function k6(u,a,i){switch(u){case"ArrowUp":return si(a+24,i);case"ArrowDown":return si(a-24,i);case"Home":return si(_s,i);case"End":return si(Ff(i),i)}}const jf="pi-central.trace.order";function S2(u){return u==="newest"?"newest":"oldest"}function j6(u,a){return a==="newest"?[...u].reverse():u}const w6=3,O6=[".png",".jpg",".jpeg",".gif",".webp"],R6=/[A-Za-z0-9_./@-]+/g;function z6(u){let a=u.replace(/^@+/,"");for(;;){const i=a.replace(/[),.;:!?'"\]]+$/,"");if(i===a)break;a=i}return a.replace(/^['"[(]+/,"")}function M6(u){if(u.length===0||u.length>200)return!1;const a=u.toLowerCase();return!(!O6.some(i=>a.endsWith(i))||/^[a-z][a-z0-9+.-]*:/i.test(a)||a.startsWith("/")||a.startsWith("~")||a.split("/").includes(".."))}function L6(u){if(u.length===0)return[];if(u.includes("\0"))return[];const a=[];for(const i of u.matchAll(R6)){const r=z6(i[0]);if(M6(r)&&!a.includes(r)&&(a.push(r),a.length>=w6))break}return a}function U6(u){return u.kind==="text"&&(u.text??"").trim().length>0}function F6(u){return u.kind==="image"}function B6(u,a){return u.text.trim().length>0?!0:!u.complete&&a.streaming}function H6(u){const a=new Map;for(const i of u){const r=a.get(i.afterMessage);r===void 0?a.set(i.afterMessage,[i]):r.push(i)}return a}function q6(u){const a=[],i=H6(u.tools);let r=[];const o=()=>{r.length!==0&&(a.push({kind:"activity",key:`activity:${r[0].key}`,parts:r}),r=[])};for(const f of i.get(0)??[])r.push({kind:"tool",key:`tool:${f.toolCallId}`,toolCallId:f.toolCallId});return u.messages.forEach((f,h)=>{let m=[],g=[];const y=()=>{if(m.length===0&&g.length===0)return;const v=m[0]??g[0]??0;a.push({kind:"message",key:`message:${f.id}:${v}`,message:f,textIndexes:m,imageIndexes:g}),m=[],g=[]};f.blocks.forEach((v,x)=>{if(v.kind==="thinking"){if(!B6(v,f))return;y(),r.push({kind:"thinking",key:`thinking:${f.id}:${x}`,messageId:f.id,blockIndex:x,text:v.text,complete:v.complete});return}if(F6(v)){r.length>0&&(y(),o()),g.push(x);return}U6(v)&&(r.length>0&&(y(),o()),m.push(x))});for(const v of i.get(h+1)??[])y(),r.push({kind:"tool",key:`tool:${v.toolCallId}`,toolCallId:v.toolCallId});y()}),o(),a}function G6(u,a){if(u.every(o=>o.kind!=="tool"))return[];const i=new Map(a.map(o=>[o.toolCallId,o])),r=[];for(const o of u){if(o.kind!=="tool")continue;const f=i.get(o.toolCallId);f!==void 0&&r.push(f)}return r}function A2(u,a){return a.map(i=>u.blocks[i]).map(i=>i?.kind==="text"?i.text:"").filter(i=>i.length>0)}function I6(u,a){const i=[];for(const r of a){const o=u.blocks[r];o?.kind==="image"&&i.push({index:r,block:o})}return i}function T2(u,a){const i=G6(u,a),r=[];for(const f of i)r.includes(f.toolName)||r.push(f.toolName);const o=u.filter(f=>f.kind==="thinking").length;return{names:r,tools:i.length,running:i.filter(f=>f.running).map(f=>f.toolName),failed:i.filter(f=>f.isError).length,noResult:i.filter(f=>f.unfinished===!0).length,thinking:o,liveThinking:u.some(f=>f.kind==="thinking"&&!f.complete)}}function Y6(u){const a=(o,f)=>`${o} ${f}${o===1?"":"s"}`,i=[];u.failed>0&&i.push(`${a(u.failed,"call")} failed`),u.noResult>0&&i.push(`${a(u.noResult,"call")} has no recorded result`);const r=i.length>0?i.join(" · "):void 0;return u.running.length===1?{primary:`Running ${u.running[0]}`,...r?{detail:r}:{}}:u.running.length>1?{primary:`${u.running.length} tools running`,...r?{detail:r}:{}}:u.liveThinking?{primary:"Thinking…",...r?{detail:r}:{}}:u.tools>0?{primary:`${a(u.tools,"tool call")} recorded`,...r?{detail:r}:{}}:u.thinking>0?{primary:a(u.thinking,"thinking block"),...r?{detail:r}:{}}:{primary:"Activity"}}function mp(u){const a=u.args,i=u.toolName||"tool";if(a==null)return i;const r=typeof a=="object"?a:void 0;if(r===void 0){const o=String(a).replace(/\s+/g," ").trim();return o.length>0?`${i} ${pp(o,60)}`:i}for(const o of["path","file_path","filePath","pattern","query","url","name","agent","command"]){const f=r[o];if(!(typeof f!="string"||f.trim().length===0))return o==="command"?`${i} ${V6(f)}`:`${i} ${pp(C2(f),52)}`}return i}function V6(u){let a=C2(u);for(let h=0;h<4;h+=1){const m=/^\s*cd\s+(?:"[^"]*"|'[^']*'|[^&;]+?)\s*(?:&&|;)\s*(.+)$/.exec(a);if(m===null)break;a=m[1].trim()}const i=70;if(a.length<=i)return a;const r=i-1,o=Math.ceil(r*.55),f=r-o;return`${a.slice(0,o).trimEnd()}…${a.slice(a.length-f).trimStart()}`}function X6(u,a=120){const i=u.args,r=u.toolName||"tool";if(i==null)return r;const o=typeof i=="object"?i:void 0;let h=(o===void 0?String(i):["command","path","file_path","pattern","query","url","name","agent"].map(v=>o[v]).find(v=>typeof v=="string"&&v.trim().length>0)??"").split(`
15
+ `)[0].replace(/\s+/g," ").trim();if(h.length===0)return r;for(let v=0;v<4;v+=1){const x=/^\s*cd\s+(?:"[^"]*"|'[^']*'|[^&;]+?)\s*(?:&&|;)\s*(.+)$/.exec(h);if(x===null)break;h=x[1].trim()}if(h.length<=a)return h;const m=a-1,g=Math.ceil(m*.45),y=m-g;return`${h.slice(0,g).trimEnd()}…${h.slice(h.length-y).trimStart()}`}function C2(u){return u.split(`
16
+ `)[0].replace(/\s+/g," ").trim()}function pp(u,a){if(u.length<=a)return u;const i=u.slice(0,a),r=i.lastIndexOf(" ");return`${(r>a*.6?i.slice(0,r):i).trimEnd()}…`}function Z6(u,a,i){if(i)return!0;const r=T2(u,a);return r.failed>0||r.noResult>0||D2(r)}function D2(u){return u.running.length>0||u.liveThinking}const $6="modulepreload",Q6=function(u){return"/"+u},gp={},ps=function(a,i,r){let o=Promise.resolve();if(i&&i.length>0){let g=function(y){return Promise.all(y.map(v=>Promise.resolve(v).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");o=g(i.map(y=>{if(y=Q6(y),y in gp)return;gp[y]=!0;const v=y.endsWith(".css"),x=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${x}`))return;const N=document.createElement("link");if(N.rel=v?"stylesheet":$6,v||(N.as="script"),N.crossOrigin="",N.href=y,m&&N.setAttribute("nonce",m),document.head.appendChild(N),v)return new Promise((R,T)=>{N.addEventListener("load",R),N.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return o.then(h=>{for(const m of h||[])m.status==="rejected"&&f(m.reason);return a().catch(f)})},K6="github-dark-default";let ls,as;async function N2(){return ls||(as||(as=ps(()=>import("./grammar-map-_cUmoZJI.js"),[]).then(u=>(ls=u.grammars,ls)).catch(()=>(as=void 0,{}))),as)}let is,rs;const J6=new Set,nf=new Map;function k2(u){return u.trim().toLowerCase()}async function j2(u){if(u.length===0)return;const a=await N2(),i=u.replace(/[^a-z0-9]/g,"");return[`../../../node_modules/@shikijs/langs/dist/${u}.mjs`,`../../../node_modules/@shikijs/langs/dist/${i}.mjs`].find(o=>a[o]!==void 0)}async function P6(u){return await j2(k2(u))!==void 0}async function W6(u){const a=nf.get(u);if(a)return a;const i=await j2(u),r=i?(await N2())[i]:void 0;if(!r)return;const o=r().then(f=>f,()=>{nf.delete(u)});return nf.set(u,o),o}async function ex(){return is||(rs||(rs=(async()=>{try{const[{createHighlighterCore:u},{createJavaScriptRegexEngine:a},i]=await Promise.all([ps(()=>import("./core-CcaQSRDK.js"),[]),ps(()=>import("./engine-javascript-CuxHA8oH.js"),[]),ps(()=>import("./github-dark-default-Cuk6v7N8.js"),[])]);return is=await u({themes:[i],langs:[],engine:a()}),is}catch{rs=void 0;return}})()),rs)}function tx(u){return typeof u=="number"&&(u&1)===1}async function ux(u,a){if(u.length===0)return;const i=k2(a);if(!await P6(i))return;const r=await ex();if(r)try{if(!r.getLoadedLanguages().includes(i)){const f=await W6(i);if(!f)return;await r.loadLanguage(f.default),J6.add(i)}const{tokens:o}=r.codeToTokens(u,{lang:i,theme:K6});return{lang:i,lines:o.map(f=>f.map(h=>({text:h.content,...h.color!==void 0?{color:h.color}:{},...tx(h.fontStyle)?{italic:!0}:{}})))}}catch{return}}function nx(u){if(!u)return;const a=u.replace(/^#/,"").toLowerCase(),i=a.length===3?a.split("").map(r=>r+r).join(""):a;return/^[0-9a-f]{6}$/.test(i)?`tk-${i}`:void 0}function lx(u){return w.createElement("pre",{className:`shiki shiki-${u.lang}`},w.createElement("code",null,u.lines.map((a,i)=>w.createElement("span",{className:"line",key:i},a.length===0?`
17
+ `:[...a.map((r,o)=>w.createElement("span",{key:o,className:[nx(r.color),r.italic?"tk-i":void 0].filter(Boolean).join(" ")||void 0},r.text)),`
18
+ `]))))}const ax=/^(`{3,}|~{3,})\s*([^`\s]*)\s*$/;function ix(u){if(!u.includes("```")&&!u.includes("~~~"))return[{kind:"prose",text:u}];const a=u.split(`
19
+ `),i=[];let r=[];const o=()=>{r.length>0&&(i.push({kind:"prose",text:r.join(`
20
+ `)}),r=[])};for(let f=0;f<a.length;f+=1){const h=a[f]??"",m=ax.exec(h);if(!m){r.push(h);continue}const g=m[1],y=(m[2]??"").toLowerCase();let v=-1;for(let x=f+1;x<a.length;x+=1){const R=(a[x]??"").trimEnd();if(R.length>=g.length&&/^(`{3,}|~{3,})$/.test(R)&&R[0]===g[0]){v=x;break}}if(v===-1){r.push(h);continue}o(),i.push({kind:"code",lang:y,code:a.slice(f+1,v).join(`
21
+ `)}),f=v}return o(),i.length>0?i:[{kind:"prose",text:u}]}function rx(u){const a=new Set;for(const i of u)i.kind==="code"&&i.lang.length>0&&a.add(i.lang);return[...a].sort()}const bp={};function cx(u){let a=bp[u];if(a)return a;a=bp[u]=[];for(let i=0;i<128;i++){const r=String.fromCharCode(i);a.push(r)}for(let i=0;i<u.length;i++){const r=u.charCodeAt(i);a[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return a}function mi(u,a){typeof a!="string"&&(a=mi.defaultChars);const i=cx(a);return u.replace(/(%[a-f0-9]{2})+/gi,function(r){let o="";for(let f=0,h=r.length;f<h;f+=3){const m=parseInt(r.slice(f+1,f+3),16);if(m<128){o+=i[m];continue}if((m&224)===192&&f+3<h){const g=parseInt(r.slice(f+4,f+6),16);if((g&192)===128){const y=m<<6&1984|g&63;y<128?o+="��":o+=String.fromCharCode(y),f+=3;continue}}if((m&240)===224&&f+6<h){const g=parseInt(r.slice(f+4,f+6),16),y=parseInt(r.slice(f+7,f+9),16);if((g&192)===128&&(y&192)===128){const v=m<<12&61440|g<<6&4032|y&63;v<2048||v>=55296&&v<=57343?o+="���":o+=String.fromCharCode(v),f+=6;continue}}if((m&248)===240&&f+9<h){const g=parseInt(r.slice(f+4,f+6),16),y=parseInt(r.slice(f+7,f+9),16),v=parseInt(r.slice(f+10,f+12),16);if((g&192)===128&&(y&192)===128&&(v&192)===128){let x=m<<18&1835008|g<<12&258048|y<<6&4032|v&63;x<65536||x>1114111?o+="����":(x-=65536,o+=String.fromCharCode(55296+(x>>10),56320+(x&1023))),f+=9;continue}}o+="�"}return o})}mi.defaultChars=";/?:@&=+$,#";mi.componentChars="";const yp={};function sx(u){let a=yp[u];if(a)return a;a=yp[u]=[];for(let i=0;i<128;i++){const r=String.fromCharCode(i);/^[0-9a-z]$/i.test(r)?a.push(r):a.push("%"+("0"+i.toString(16).toUpperCase()).slice(-2))}for(let i=0;i<u.length;i++)a[u.charCodeAt(i)]=u[i];return a}function Rr(u,a,i){typeof a!="string"&&(i=a,a=Rr.defaultChars),typeof i>"u"&&(i=!0);const r=sx(a);let o="";for(let f=0,h=u.length;f<h;f++){const m=u.charCodeAt(f);if(i&&m===37&&f+2<h&&/^[0-9a-f]{2}$/i.test(u.slice(f+1,f+3))){o+=u.slice(f,f+3),f+=2;continue}if(m<128){o+=r[m];continue}if(m>=55296&&m<=57343){if(m>=55296&&m<=56319&&f+1<h){const g=u.charCodeAt(f+1);if(g>=56320&&g<=57343){o+=encodeURIComponent(u[f]+u[f+1]),f++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(u[f])}return o}Rr.defaultChars=";/?:@&=+$,-_.!~*'()#";Rr.componentChars="-_.!~*'()";function Bf(u){let a="";return a+=u.protocol||"",a+=u.slashes?"//":"",a+=u.auth?u.auth+"@":"",u.hostname&&u.hostname.indexOf(":")!==-1?a+="["+u.hostname+"]":a+=u.hostname||"",a+=u.port?":"+u.port:"",a+=u.pathname||"",a+=u.search||"",a+=u.hash||"",a}function ys(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const ox=/^([a-z0-9.+-]+:)/i,fx=/:[0-9]*$/,dx=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,hx=["<",">",'"',"`"," ","\r",`
22
+ `," "],mx=["{","}","|","\\","^","`"].concat(hx),px=["'"].concat(mx),xp=["%","/","?",";","#"].concat(px),vp=["/","?","#"],gx=255,_p=/^[+a-z0-9A-Z_-]{0,63}$/,bx=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ep={javascript:!0,"javascript:":!0},Sp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Hf(u,a){if(u&&u instanceof ys)return u;const i=new ys;return i.parse(u,a),i}ys.prototype.parse=function(u,a){let i,r,o,f=u;if(f=f.trim(),!a&&u.split("#").length===1){const y=dx.exec(f);if(y)return this.pathname=y[1],y[2]&&(this.search=y[2]),this}let h=ox.exec(f);if(h&&(h=h[0],i=h.toLowerCase(),this.protocol=h,f=f.substr(h.length)),(a||h||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=f.substr(0,2)==="//",o&&!(h&&Ep[h])&&(f=f.substr(2),this.slashes=!0)),!Ep[h]&&(o||h&&!Sp[h])){let y=-1;for(let T=0;T<vp.length;T++)r=f.indexOf(vp[T]),r!==-1&&(y===-1||r<y)&&(y=r);let v,x;y===-1?x=f.lastIndexOf("@"):x=f.lastIndexOf("@",y),x!==-1&&(v=f.slice(0,x),f=f.slice(x+1),this.auth=v),y=-1;for(let T=0;T<xp.length;T++)r=f.indexOf(xp[T]),r!==-1&&(y===-1||r<y)&&(y=r);y===-1&&(y=f.length),f[y-1]===":"&&y--;const N=f.slice(0,y);f=f.slice(y),this.parseHost(N),this.hostname=this.hostname||"";const R=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!R){const T=this.hostname.split(/\./);for(let ne=0,Q=T.length;ne<Q;ne++){const J=T[ne];if(J&&!J.match(_p)){let ee="";for(let ue=0,$=J.length;ue<$;ue++)J.charCodeAt(ue)>127?ee+="x":ee+=J[ue];if(!ee.match(_p)){const ue=T.slice(0,ne),$=T.slice(ne+1),W=J.match(bx);W&&(ue.push(W[1]),$.unshift(W[2])),$.length&&(f=$.join(".")+f),this.hostname=ue.join(".");break}}}}this.hostname.length>gx&&(this.hostname=""),R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const m=f.indexOf("#");m!==-1&&(this.hash=f.substr(m),f=f.slice(0,m));const g=f.indexOf("?");return g!==-1&&(this.search=f.substr(g),f=f.slice(0,g)),f&&(this.pathname=f),Sp[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ys.prototype.parseHost=function(u){let a=fx.exec(u);a&&(a=a[0],a!==":"&&(this.port=a.substr(1)),u=u.substr(0,u.length-a.length)),u&&(this.hostname=u)};const yx=Object.freeze(Object.defineProperty({__proto__:null,decode:mi,encode:Rr,format:Bf,parse:Hf},Symbol.toStringTag,{value:"Module"})),w2=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,O2=/[\0-\x1F\x7F-\x9F]/,xx=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,qf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,R2=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,z2=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,vx=Object.freeze(Object.defineProperty({__proto__:null,Any:w2,Cc:O2,Cf:xx,P:qf,S:R2,Z:z2},Symbol.toStringTag,{value:"Module"})),_x=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(u=>u.charCodeAt(0))),Ex=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(u=>u.charCodeAt(0)));var lf;const Sx=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Ax=(lf=String.fromCodePoint)!==null&&lf!==void 0?lf:function(u){let a="";return u>65535&&(u-=65536,a+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),a+=String.fromCharCode(u),a};function Tx(u){var a;return u>=55296&&u<=57343||u>1114111?65533:(a=Sx.get(u))!==null&&a!==void 0?a:u}var Ot;(function(u){u[u.NUM=35]="NUM",u[u.SEMI=59]="SEMI",u[u.EQUALS=61]="EQUALS",u[u.ZERO=48]="ZERO",u[u.NINE=57]="NINE",u[u.LOWER_A=97]="LOWER_A",u[u.LOWER_F=102]="LOWER_F",u[u.LOWER_X=120]="LOWER_X",u[u.LOWER_Z=122]="LOWER_Z",u[u.UPPER_A=65]="UPPER_A",u[u.UPPER_F=70]="UPPER_F",u[u.UPPER_Z=90]="UPPER_Z"})(Ot||(Ot={}));const Cx=32;var zl;(function(u){u[u.VALUE_LENGTH=49152]="VALUE_LENGTH",u[u.BRANCH_LENGTH=16256]="BRANCH_LENGTH",u[u.JUMP_TABLE=127]="JUMP_TABLE"})(zl||(zl={}));function wf(u){return u>=Ot.ZERO&&u<=Ot.NINE}function Dx(u){return u>=Ot.UPPER_A&&u<=Ot.UPPER_F||u>=Ot.LOWER_A&&u<=Ot.LOWER_F}function Nx(u){return u>=Ot.UPPER_A&&u<=Ot.UPPER_Z||u>=Ot.LOWER_A&&u<=Ot.LOWER_Z||wf(u)}function kx(u){return u===Ot.EQUALS||Nx(u)}var wt;(function(u){u[u.EntityStart=0]="EntityStart",u[u.NumericStart=1]="NumericStart",u[u.NumericDecimal=2]="NumericDecimal",u[u.NumericHex=3]="NumericHex",u[u.NamedEntity=4]="NamedEntity"})(wt||(wt={}));var In;(function(u){u[u.Legacy=0]="Legacy",u[u.Strict=1]="Strict",u[u.Attribute=2]="Attribute"})(In||(In={}));class jx{constructor(a,i,r){this.decodeTree=a,this.emitCodePoint=i,this.errors=r,this.state=wt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=In.Strict}startEntity(a){this.decodeMode=a,this.state=wt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(a,i){switch(this.state){case wt.EntityStart:return a.charCodeAt(i)===Ot.NUM?(this.state=wt.NumericStart,this.consumed+=1,this.stateNumericStart(a,i+1)):(this.state=wt.NamedEntity,this.stateNamedEntity(a,i));case wt.NumericStart:return this.stateNumericStart(a,i);case wt.NumericDecimal:return this.stateNumericDecimal(a,i);case wt.NumericHex:return this.stateNumericHex(a,i);case wt.NamedEntity:return this.stateNamedEntity(a,i)}}stateNumericStart(a,i){return i>=a.length?-1:(a.charCodeAt(i)|Cx)===Ot.LOWER_X?(this.state=wt.NumericHex,this.consumed+=1,this.stateNumericHex(a,i+1)):(this.state=wt.NumericDecimal,this.stateNumericDecimal(a,i))}addToNumericResult(a,i,r,o){if(i!==r){const f=r-i;this.result=this.result*Math.pow(o,f)+parseInt(a.substr(i,f),o),this.consumed+=f}}stateNumericHex(a,i){const r=i;for(;i<a.length;){const o=a.charCodeAt(i);if(wf(o)||Dx(o))i+=1;else return this.addToNumericResult(a,r,i,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(a,r,i,16),-1}stateNumericDecimal(a,i){const r=i;for(;i<a.length;){const o=a.charCodeAt(i);if(wf(o))i+=1;else return this.addToNumericResult(a,r,i,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(a,r,i,10),-1}emitNumericEntity(a,i){var r;if(this.consumed<=i)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(a===Ot.SEMI)this.consumed+=1;else if(this.decodeMode===In.Strict)return 0;return this.emitCodePoint(Tx(this.result),this.consumed),this.errors&&(a!==Ot.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(a,i){const{decodeTree:r}=this;let o=r[this.treeIndex],f=(o&zl.VALUE_LENGTH)>>14;for(;i<a.length;i++,this.excess++){const h=a.charCodeAt(i);if(this.treeIndex=wx(r,o,this.treeIndex+Math.max(1,f),h),this.treeIndex<0)return this.result===0||this.decodeMode===In.Attribute&&(f===0||kx(h))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],f=(o&zl.VALUE_LENGTH)>>14,f!==0){if(h===Ot.SEMI)return this.emitNamedEntityData(this.treeIndex,f,this.consumed+this.excess);this.decodeMode!==In.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var a;const{result:i,decodeTree:r}=this,o=(r[i]&zl.VALUE_LENGTH)>>14;return this.emitNamedEntityData(i,o,this.consumed),(a=this.errors)===null||a===void 0||a.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(a,i,r){const{decodeTree:o}=this;return this.emitCodePoint(i===1?o[a]&~zl.VALUE_LENGTH:o[a+1],r),i===3&&this.emitCodePoint(o[a+2],r),r}end(){var a;switch(this.state){case wt.NamedEntity:return this.result!==0&&(this.decodeMode!==In.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case wt.NumericDecimal:return this.emitNumericEntity(0,2);case wt.NumericHex:return this.emitNumericEntity(0,3);case wt.NumericStart:return(a=this.errors)===null||a===void 0||a.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case wt.EntityStart:return 0}}}function M2(u){let a="";const i=new jx(u,r=>a+=Ax(r));return function(o,f){let h=0,m=0;for(;(m=o.indexOf("&",m))>=0;){a+=o.slice(h,m),i.startEntity(f);const y=i.write(o,m+1);if(y<0){h=m+i.end();break}h=m+y,m=y===0?h+1:h}const g=a+o.slice(h);return a="",g}}function wx(u,a,i,r){const o=(a&zl.BRANCH_LENGTH)>>7,f=a&zl.JUMP_TABLE;if(o===0)return f!==0&&r===f?i:-1;if(f){const g=r-f;return g<0||g>=o?-1:u[i+g]-1}let h=i,m=h+o-1;for(;h<=m;){const g=h+m>>>1,y=u[g];if(y<r)h=g+1;else if(y>r)m=g-1;else return u[g+o]}return-1}const L2=M2(_x);M2(Ex);function Ox(u,a=In.Legacy){return L2(u,a)}function Rx(u){return L2(u,In.Strict)}function zx(u){return Object.prototype.toString.call(u)}function Gf(u){return zx(u)==="[object String]"}const Mx=Object.prototype.hasOwnProperty;function Lx(u,a){return Mx.call(u,a)}function Es(u){return Array.prototype.slice.call(arguments,1).forEach(function(i){if(i){if(typeof i!="object")throw new TypeError(i+"must be object");Object.keys(i).forEach(function(r){u[r]=i[r]})}}),u}function Ux(u,a,i){return[].concat(u.slice(0,a),i,u.slice(a+1))}function If(u){return!(u>=55296&&u<=57343||u>=64976&&u<=65007||(u&65535)===65535||(u&65535)===65534||u>=0&&u<=8||u===11||u>=14&&u<=31||u>=127&&u<=159||u>1114111)}function Dr(u){if(u>65535){u-=65536;const a=55296+(u>>10),i=56320+(u&1023);return String.fromCharCode(a,i)}return String.fromCharCode(u)}const U2=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Fx=/&([a-z#][a-z0-9]{1,31});/gi,Bx=new RegExp(U2.source+"|"+Fx.source,"gi"),Hx=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function qx(u,a){if(a.charCodeAt(0)===35&&Hx.test(a)){const r=a[1].toLowerCase()==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return If(r)?Dr(r):u}const i=Ox(u);return i!==u?i:u}function Gx(u){return u.indexOf("\\")<0?u:u.replace(U2,"$1")}function pi(u){return u.indexOf("\\")<0&&u.indexOf("&")<0?u:u.replace(Bx,function(a,i,r){return i||qx(a,r)})}const Ix=/[&<>"]/,Yx=/[&<>"]/g,Vx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Xx(u){return Vx[u]}function Ml(u){return Ix.test(u)?u.replace(Yx,Xx):u}const Zx=/[.?*+^$[\]\\(){}|-]/g;function $x(u){return u.replace(Zx,"\\$&")}function nt(u){switch(u){case 9:case 32:return!0}return!1}function Nr(u){if(u>=8192&&u<=8202)return!0;switch(u){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function F2(u){return qf.test(u)||R2.test(u)}function kr(u){return F2(Dr(u))}function jr(u){switch(u){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Ss(u){return u=u.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(u=u.replace(/ẞ/g,"ß")),u.toLowerCase().toUpperCase()}function Ap(u){return u===32||u===9||u===10||u===13}function As(u){let a=0;for(;a<u.length&&Ap(u.charCodeAt(a));a++);let i=u.length-1;for(;i>=a&&Ap(u.charCodeAt(i));i--);return u.slice(a,i+1)}const Qx={mdurl:yx,ucmicro:vx},Kx=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Ux,asciiTrim:As,assign:Es,escapeHtml:Ml,escapeRE:$x,fromCodePoint:Dr,has:Lx,isMdAsciiPunct:jr,isPunctChar:F2,isPunctCharCode:kr,isSpace:nt,isString:Gf,isValidEntityCode:If,isWhiteSpace:Nr,lib:Qx,normalizeReference:Ss,unescapeAll:pi,unescapeMd:Gx},Symbol.toStringTag,{value:"Module"}));function Jx(u,a,i){let r,o,f,h;const m=u.posMax,g=u.pos;for(u.pos=a+1,r=1;u.pos<m;){if(f=u.src.charCodeAt(u.pos),f===93&&(r--,r===0)){o=!0;break}if(h=u.pos,u.md.inline.skipToken(u),f===91){if(h===u.pos-1)r++;else if(i)return u.pos=g,-1}}let y=-1;return o&&(y=u.pos),u.pos=g,y}function Px(u,a,i){let r,o=a;const f={ok:!1,pos:0,str:""};if(u.charCodeAt(o)===60){for(o++;o<i;){if(r=u.charCodeAt(o),r===10||r===60)return f;if(r===62)return f.pos=o+1,f.str=pi(u.slice(a+1,o)),f.ok=!0,f;if(r===92&&o+1<i){o+=2;continue}o++}return f}let h=0;for(;o<i&&(r=u.charCodeAt(o),!(r===32||r<32||r===127));){if(r===92&&o+1<i){if(u.charCodeAt(o+1)===32){o++;continue}o+=2;continue}if(r===40&&(h++,h>32))return f;if(r===41){if(h===0)break;h--}o++}return a===o||h!==0||(f.str=pi(u.slice(a,o)),f.pos=o,f.ok=!0),f}function Wx(u,a,i,r){let o,f=a;const h={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)h.str=r.str,h.marker=r.marker;else{if(f>=i)return h;let m=u.charCodeAt(f);if(m!==34&&m!==39&&m!==40)return h;a++,f++,m===40&&(m=41),h.marker=m}for(;f<i;){if(o=u.charCodeAt(f),o===h.marker)return h.pos=f+1,h.str+=pi(u.slice(a,f)),h.ok=!0,h;if(o===40&&h.marker===41)return h;o===92&&f+1<i&&f++,f++}return h.can_continue=!0,h.str+=pi(u.slice(a,f)),h}const e4=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Px,parseLinkLabel:Jx,parseLinkTitle:Wx},Symbol.toStringTag,{value:"Module"})),gn={};gn.code_inline=function(u,a,i,r,o){const f=u[a];return"<code"+o.renderAttrs(f)+">"+Ml(f.content)+"</code>"};gn.code_block=function(u,a,i,r,o){const f=u[a];return"<pre"+o.renderAttrs(f)+"><code>"+Ml(u[a].content)+`</code></pre>
23
+ `};gn.fence=function(u,a,i,r,o){const f=u[a],h=f.info?pi(f.info).trim():"";let m="",g="";if(h){const v=h.split(/(\s+)/g);m=v[0],g=v.slice(2).join("")}let y;if(i.highlight?y=i.highlight(f.content,m,g)||Ml(f.content):y=Ml(f.content),y.indexOf("<pre")===0)return y+`
24
+ `;if(h){const v=f.attrIndex("class"),x=f.attrs?f.attrs.slice():[];v<0?x.push(["class",i.langPrefix+m]):(x[v]=x[v].slice(),x[v][1]+=" "+i.langPrefix+m);const N={attrs:x};return`<pre><code${o.renderAttrs(N)}>${y}</code></pre>
25
+ `}return`<pre><code${o.renderAttrs(f)}>${y}</code></pre>
26
+ `};gn.image=function(u,a,i,r,o){const f=u[a];return f.attrs[f.attrIndex("alt")][1]=o.renderInlineAsText(f.children,i,r),o.renderToken(u,a,i)};gn.hardbreak=function(u,a,i){return i.xhtmlOut?`<br />
27
+ `:`<br>
28
+ `};gn.softbreak=function(u,a,i){return i.breaks?i.xhtmlOut?`<br />
29
+ `:`<br>
30
+ `:`
31
+ `};gn.text=function(u,a){return Ml(u[a].content)};gn.html_block=function(u,a){return u[a].content};gn.html_inline=function(u,a){return u[a].content};function gi(){this.rules=Es({},gn)}gi.prototype.renderAttrs=function(a){let i,r,o;if(!a.attrs)return"";for(o="",i=0,r=a.attrs.length;i<r;i++)o+=" "+Ml(a.attrs[i][0])+'="'+Ml(a.attrs[i][1])+'"';return o};gi.prototype.renderToken=function(a,i,r){const o=a[i];let f="";if(o.hidden)return"";o.block&&o.nesting!==-1&&i&&a[i-1].hidden&&(f+=`
32
+ `),f+=(o.nesting===-1?"</":"<")+o.tag,f+=this.renderAttrs(o),o.nesting===0&&r.xhtmlOut&&(f+=" /");let h=!1;if(o.block&&(h=!0,o.nesting===1&&i+1<a.length)){const m=a[i+1];(m.type==="inline"||m.hidden||m.nesting===-1&&m.tag===o.tag)&&(h=!1)}return f+=h?`>
33
+ `:">",f};gi.prototype.renderInline=function(u,a,i){let r="";const o=this.rules;for(let f=0,h=u.length;f<h;f++){const m=u[f].type;typeof o[m]<"u"?r+=o[m](u,f,a,i,this):r+=this.renderToken(u,f,a)}return r};gi.prototype.renderInlineAsText=function(u,a,i){let r="";for(let o=0,f=u.length;o<f;o++)switch(u[o].type){case"text":r+=u[o].content;break;case"image":r+=this.renderInlineAsText(u[o].children,a,i);break;case"html_inline":case"html_block":r+=u[o].content;break;case"softbreak":case"hardbreak":r+=`
34
+ `;break}return r};gi.prototype.render=function(u,a,i){let r="";const o=this.rules;for(let f=0,h=u.length;f<h;f++){const m=u[f].type;m==="inline"?r+=this.renderInline(u[f].children,a,i):typeof o[m]<"u"?r+=o[m](u,f,a,i,this):r+=this.renderToken(u,f,a,i)}return r};function hu(){this.__rules__=[],this.__cache__=null}hu.prototype.__find__=function(u){for(let a=0;a<this.__rules__.length;a++)if(this.__rules__[a].name===u)return a;return-1};hu.prototype.__compile__=function(){const u=this,a=[""];u.__rules__.forEach(function(i){i.enabled&&i.alt.forEach(function(r){a.indexOf(r)<0&&a.push(r)})}),u.__cache__={},a.forEach(function(i){u.__cache__[i]=[],u.__rules__.forEach(function(r){r.enabled&&(i&&r.alt.indexOf(i)<0||u.__cache__[i].push(r.fn))})})};hu.prototype.at=function(u,a,i){const r=this.__find__(u),o=i||{};if(r===-1)throw new Error("Parser rule not found: "+u);this.__rules__[r].fn=a,this.__rules__[r].alt=o.alt||[],this.__cache__=null};hu.prototype.before=function(u,a,i,r){const o=this.__find__(u),f=r||{};if(o===-1)throw new Error("Parser rule not found: "+u);this.__rules__.splice(o,0,{name:a,enabled:!0,fn:i,alt:f.alt||[]}),this.__cache__=null};hu.prototype.after=function(u,a,i,r){const o=this.__find__(u),f=r||{};if(o===-1)throw new Error("Parser rule not found: "+u);this.__rules__.splice(o+1,0,{name:a,enabled:!0,fn:i,alt:f.alt||[]}),this.__cache__=null};hu.prototype.push=function(u,a,i){const r=i||{};this.__rules__.push({name:u,enabled:!0,fn:a,alt:r.alt||[]}),this.__cache__=null};hu.prototype.enable=function(u,a){Array.isArray(u)||(u=[u]);const i=[];return u.forEach(function(r){const o=this.__find__(r);if(o<0){if(a)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,i.push(r)},this),this.__cache__=null,i};hu.prototype.enableOnly=function(u,a){Array.isArray(u)||(u=[u]),this.__rules__.forEach(function(i){i.enabled=!1}),this.enable(u,a)};hu.prototype.disable=function(u,a){Array.isArray(u)||(u=[u]);const i=[];return u.forEach(function(r){const o=this.__find__(r);if(o<0){if(a)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,i.push(r)},this),this.__cache__=null,i};hu.prototype.getRules=function(u){return this.__cache__===null&&this.__compile__(),this.__cache__[u]||[]};function Qu(u,a,i){this.type=u,this.tag=a,this.attrs=null,this.map=null,this.nesting=i,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Qu.prototype.attrIndex=function(a){if(!this.attrs)return-1;const i=this.attrs;for(let r=0,o=i.length;r<o;r++)if(i[r][0]===a)return r;return-1};Qu.prototype.attrPush=function(a){this.attrs?this.attrs.push(a):this.attrs=[a]};Qu.prototype.attrSet=function(a,i){const r=this.attrIndex(a),o=[a,i];r<0?this.attrPush(o):this.attrs[r]=o};Qu.prototype.attrGet=function(a){const i=this.attrIndex(a);let r=null;return i>=0&&(r=this.attrs[i][1]),r};Qu.prototype.attrJoin=function(a,i){const r=this.attrIndex(a);r<0?this.attrPush([a,i]):this.attrs[r][1]=this.attrs[r][1]+" "+i};function B2(u,a,i){this.src=u,this.env=i,this.tokens=[],this.inlineMode=!1,this.md=a}B2.prototype.Token=Qu;const t4=/\r\n?|\n/g,u4=/\0/g;function n4(u){let a;a=u.src.replace(t4,`
35
+ `),a=a.replace(u4,"�"),u.src=a}function l4(u){let a;u.inlineMode?(a=new u.Token("inline","",0),a.content=u.src,a.map=[0,1],a.children=[],u.tokens.push(a)):u.md.block.parse(u.src,u.md,u.env,u.tokens)}function a4(u){const a=u.tokens;for(let i=0,r=a.length;i<r;i++){const o=a[i];o.type==="inline"&&u.md.inline.parse(o.content,u.md,u.env,o.children)}}function i4(u){return/^<a[>\s]/i.test(u)}function r4(u){return/^<\/a\s*>/i.test(u)}function c4(u){const a=u.tokens;if(u.md.options.linkify)for(let i=0,r=a.length;i<r;i++){if(a[i].type!=="inline"||!u.md.linkify.pretest(a[i].content))continue;const o=a[i].children,f=[];let h=0;for(let m=o.length-1;m>=0;m--){const g=o[m];if(g.type==="link_close"){for(m--;o[m].level!==g.level&&o[m].type!=="link_open";)m--;continue}if(g.type==="html_inline"&&(i4(g.content)&&h>0&&h--,r4(g.content)&&h++),!(h>0)&&g.type==="text"&&u.md.linkify.test(g.content)){const y=g.content;let v=u.md.linkify.match(y);const x=[];let N=g.level,R=0;v.length>0&&v[0].index===0&&m>0&&o[m-1].type==="text_special"&&(v=v.slice(1));for(let T=0;T<v.length;T++){const ne=v[T].url,Q=u.md.normalizeLink(ne);if(!u.md.validateLink(Q))continue;let J=v[T].text;v[T].schema?v[T].schema==="mailto:"&&!/^mailto:/i.test(J)?J=u.md.normalizeLinkText("mailto:"+J).replace(/^mailto:/,""):J=u.md.normalizeLinkText(J):J=u.md.normalizeLinkText("http://"+J).replace(/^http:\/\//,"");const ee=v[T].index;if(ee>R){const ce=new u.Token("text","",0);ce.content=y.slice(R,ee),ce.level=N,x.push(ce)}const ue=new u.Token("link_open","a",1);ue.attrs=[["href",Q]],ue.level=N++,ue.markup="linkify",ue.info="auto",x.push(ue);const $=new u.Token("text","",0);$.content=J,$.level=N,x.push($);const W=new u.Token("link_close","a",-1);W.level=--N,W.markup="linkify",W.info="auto",x.push(W),R=v[T].lastIndex}if(R<y.length){const T=new u.Token("text","",0);T.content=y.slice(R),T.level=N,x.push(T)}f.push({index:m,nodes:x})}}if(f.length>0){let m=o.length;for(const x of f)m+=x.nodes.length-1;const g=new Array(m);let y=0,v=0;f.reverse();for(let x=0;x<o.length;x++){const N=f[y];if(N?.index===x){for(const R of N.nodes)g[v++]=R;y++}else g[v++]=o[x]}a[i].children=g}}}const H2=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,s4=/\((c|tm|r)\)/i,o4=/\((c|tm|r)\)/ig,f4={c:"©",r:"®",tm:"™"};function d4(u,a){return f4[a.toLowerCase()]}function h4(u){let a=0;for(let i=u.length-1;i>=0;i--){const r=u[i];r.type==="text"&&!a&&(r.content=r.content.replace(o4,d4)),r.type==="link_open"&&r.info==="auto"&&a--,r.type==="link_close"&&r.info==="auto"&&a++}}function m4(u){let a=0;for(let i=u.length-1;i>=0;i--){const r=u[i];r.type==="text"&&!a&&H2.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&a--,r.type==="link_close"&&r.info==="auto"&&a++}}function p4(u){let a;if(u.md.options.typographer)for(a=u.tokens.length-1;a>=0;a--)u.tokens[a].type==="inline"&&(s4.test(u.tokens[a].content)&&h4(u.tokens[a].children),H2.test(u.tokens[a].content)&&m4(u.tokens[a].children))}const g4=/['"]/,Tp=/['"]/g,Cp="’",b4=1e3;function Dp(u,a,i){for(;u.length>i;){const r=u.pop();r.isSingleQuote?a.single=r.prevSameQuoteIdx:a.double=r.prevSameQuoteIdx}}function cs(u,a,i,r){u[a]||(u[a]=[]),u[a].push({pos:i,ch:r})}function y4(u,a){let i="",r=0;a.sort((o,f)=>o.pos-f.pos);for(let o=0;o<a.length;o++){const f=a[o];i+=u.slice(r,f.pos)+f.ch,r=f.pos+1}return i+u.slice(r)}function x4(u,a){let i;const r=[],o={single:-1,double:-1},f={};for(let h=0;h<u.length;h++){const m=u[h],g=u[h].level;for(i=r.length-1;i>=0&&!(r[i].level<=g);i--);if(Dp(r,o,i+1),m.type!=="text")continue;const y=m.content;let v=0;const x=y.length;e:for(;v<x;){Tp.lastIndex=v;const N=Tp.exec(y);if(!N)break;let R=!0,T=!0;v=N.index+1;const ne=N[0]==="'";let Q=32;if(N.index-1>=0)Q=y.charCodeAt(N.index-1);else for(i=h-1;i>=0&&!(u[i].type==="softbreak"||u[i].type==="hardbreak");i--)if(u[i].content){Q=u[i].content.charCodeAt(u[i].content.length-1);break}let J=32;if(v<x)J=y.charCodeAt(v);else for(i=h+1;i<u.length&&!(u[i].type==="softbreak"||u[i].type==="hardbreak");i++)if(u[i].content){J=u[i].content.charCodeAt(0);break}const ee=jr(Q)||kr(Q),ue=jr(J)||kr(J),$=Nr(Q),W=Nr(J);if(W?R=!1:ue&&($||ee||(R=!1)),$?T=!1:ee&&(W||ue||(T=!1)),J===34&&N[0]==='"'&&Q>=48&&Q<=57&&(T=R=!1),R&&T&&(R=ee,T=ue),!R&&!T){ne&&cs(f,h,N.index,Cp);continue}if(T&&(i=ne?o.single:o.double,i>=0&&r[i].level===g)){const ce=r[i];let te,ie;ne?(te=a.md.options.quotes[2],ie=a.md.options.quotes[3]):(te=a.md.options.quotes[0],ie=a.md.options.quotes[1]),cs(f,h,N.index,ie),cs(f,ce.tokenIdx,ce.contentPos,te),Dp(r,o,i);continue e}if(R){if(r.length>=b4)return;r.push({tokenIdx:h,contentPos:N.index,isSingleQuote:ne,level:g,prevSameQuoteIdx:ne?o.single:o.double}),ne?o.single=r.length-1:o.double=r.length-1}else T&&ne&&cs(f,h,N.index,Cp)}}Object.keys(f).forEach(function(h){u[h].content=y4(u[h].content,f[h])})}function v4(u){if(u.md.options.typographer)for(let a=u.tokens.length-1;a>=0;a--)u.tokens[a].type!=="inline"||!g4.test(u.tokens[a].content)||x4(u.tokens[a].children,u)}function _4(u){let a,i;const r=u.tokens,o=r.length;for(let f=0;f<o;f++){if(r[f].type!=="inline")continue;const h=r[f].children,m=h.length;for(a=0;a<m;a++)h[a].type==="text_special"&&(h[a].type="text");for(a=i=0;a<m;a++)h[a].type==="text"&&a+1<m&&h[a+1].type==="text"?h[a+1].content=h[a].content+h[a+1].content:(a!==i&&(h[i]=h[a]),i++);a!==i&&(h.length=i)}}const af=[["normalize",n4],["block",l4],["inline",a4],["linkify",c4],["replacements",p4],["smartquotes",v4],["text_join",_4]];function Yf(){this.ruler=new hu;for(let u=0;u<af.length;u++)this.ruler.push(af[u][0],af[u][1])}Yf.prototype.process=function(u){const a=this.ruler.getRules("");for(let i=0,r=a.length;i<r;i++)a[i](u)};Yf.prototype.State=B2;function bn(u,a,i,r){this.src=u,this.md=a,this.env=i,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let f=0,h=0,m=0,g=0,y=o.length,v=!1;h<y;h++){const x=o.charCodeAt(h);if(!v)if(nt(x)){m++,x===9?g+=4-g%4:g++;continue}else v=!0;(x===10||h===y-1)&&(x!==10&&h++,this.bMarks.push(f),this.eMarks.push(h),this.tShift.push(m),this.sCount.push(g),this.bsCount.push(0),v=!1,m=0,g=0,f=h+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}bn.prototype.push=function(u,a,i){const r=new Qu(u,a,i);return r.block=!0,i<0&&this.level--,r.level=this.level,i>0&&this.level++,this.tokens.push(r),r};bn.prototype.isEmpty=function(a){return this.bMarks[a]+this.tShift[a]>=this.eMarks[a]};bn.prototype.skipEmptyLines=function(a){for(let i=this.lineMax;a<i&&!(this.bMarks[a]+this.tShift[a]<this.eMarks[a]);a++);return a};bn.prototype.skipSpaces=function(a){for(let i=this.src.length;a<i;a++){const r=this.src.charCodeAt(a);if(!nt(r))break}return a};bn.prototype.skipSpacesBack=function(a,i){if(a<=i)return a;for(;a>i;)if(!nt(this.src.charCodeAt(--a)))return a+1;return a};bn.prototype.skipChars=function(a,i){for(let r=this.src.length;a<r&&this.src.charCodeAt(a)===i;a++);return a};bn.prototype.skipCharsBack=function(a,i,r){if(a<=r)return a;for(;a>r;)if(i!==this.src.charCodeAt(--a))return a+1;return a};bn.prototype.getLines=function(a,i,r,o){if(a>=i)return"";const f=new Array(i-a);for(let h=0,m=a;m<i;m++,h++){let g=0;const y=this.bMarks[m];let v=y,x;for(m+1<i||o?x=this.eMarks[m]+1:x=this.eMarks[m];v<x&&g<r;){const N=this.src.charCodeAt(v);if(nt(N))N===9?g+=4-(g+this.bsCount[m])%4:g++;else if(v-y<this.tShift[m])g++;else break;v++}g>r?f[h]=new Array(g-r+1).join(" ")+this.src.slice(v,x):f[h]=this.src.slice(v,x)}return f.join("")};bn.prototype.Token=Qu;const E4=65536;function rf(u,a){const i=u.bMarks[a]+u.tShift[a],r=u.eMarks[a];return u.src.slice(i,r)}function Np(u){const a=[],i=u.length;let r=0,o=u.charCodeAt(r),f=!1,h=0,m="";for(;r<i;)o===124&&(f?(m+=u.substring(h,r-1),h=r):(a.push(m+u.substring(h,r)),m="",h=r+1)),f=o===92,r++,o=u.charCodeAt(r);return a.push(m+u.substring(h)),a}function S4(u,a,i,r){if(a+2>i)return!1;let o=a+1;if(u.sCount[o]<u.blkIndent||u.sCount[o]-u.blkIndent>=4)return!1;let f=u.bMarks[o]+u.tShift[o];if(f>=u.eMarks[o])return!1;const h=u.src.charCodeAt(f++);if(h!==124&&h!==45&&h!==58||f>=u.eMarks[o])return!1;const m=u.src.charCodeAt(f++);if(m!==124&&m!==45&&m!==58&&!nt(m)||h===45&&nt(m))return!1;for(;f<u.eMarks[o];){const $=u.src.charCodeAt(f);if($!==124&&$!==45&&$!==58&&!nt($))return!1;f++}let g=rf(u,a+1),y=g.split("|");const v=[];for(let $=0;$<y.length;$++){const W=y[$].trim();if(!W){if($===0||$===y.length-1)continue;return!1}if(!/^:?-+:?$/.test(W))return!1;W.charCodeAt(W.length-1)===58?v.push(W.charCodeAt(0)===58?"center":"right"):W.charCodeAt(0)===58?v.push("left"):v.push("")}if(g=rf(u,a).trim(),g.indexOf("|")===-1||u.sCount[a]-u.blkIndent>=4)return!1;y=Np(g),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop();const x=y.length;if(x===0||x!==v.length)return!1;if(r)return!0;const N=u.parentType;u.parentType="table";const R=u.md.block.ruler.getRules("blockquote"),T=u.push("table_open","table",1),ne=[a,0];T.map=ne;const Q=u.push("thead_open","thead",1);Q.map=[a,a+1];const J=u.push("tr_open","tr",1);J.map=[a,a+1];for(let $=0;$<y.length;$++){const W=u.push("th_open","th",1);v[$]&&(W.attrs=[["style","text-align:"+v[$]]]);const ce=u.push("inline","",0);ce.content=y[$].trim(),ce.children=[],u.push("th_close","th",-1)}u.push("tr_close","tr",-1),u.push("thead_close","thead",-1);let ee,ue=0;for(o=a+2;o<i&&!(u.sCount[o]<u.blkIndent);o++){let $=!1;for(let ce=0,te=R.length;ce<te;ce++)if(R[ce](u,o,i,!0)){$=!0;break}if($||(g=rf(u,o).trim(),!g)||u.sCount[o]-u.blkIndent>=4||(y=Np(g),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),ue+=x-y.length,ue>E4))break;if(o===a+2){const ce=u.push("tbody_open","tbody",1);ce.map=ee=[a+2,0]}const W=u.push("tr_open","tr",1);W.map=[o,o+1];for(let ce=0;ce<x;ce++){const te=u.push("td_open","td",1);v[ce]&&(te.attrs=[["style","text-align:"+v[ce]]]);const ie=u.push("inline","",0);ie.content=y[ce]?y[ce].trim():"",ie.children=[],u.push("td_close","td",-1)}u.push("tr_close","tr",-1)}return ee&&(u.push("tbody_close","tbody",-1),ee[1]=o),u.push("table_close","table",-1),ne[1]=o,u.parentType=N,u.line=o,!0}function A4(u,a,i){if(u.sCount[a]-u.blkIndent<4)return!1;let r=a+1,o=r;for(;r<i;){if(u.isEmpty(r)){r++;continue}if(u.sCount[r]-u.blkIndent>=4){r++,o=r;continue}break}u.line=o;const f=u.push("code_block","code",0);return f.content=u.getLines(a,o,4+u.blkIndent,!1)+`
36
+ `,f.map=[a,u.line],!0}function T4(u,a,i,r){let o=u.bMarks[a]+u.tShift[a],f=u.eMarks[a];if(u.sCount[a]-u.blkIndent>=4||o+3>f)return!1;const h=u.src.charCodeAt(o);if(h!==126&&h!==96)return!1;let m=o;o=u.skipChars(o,h);let g=o-m;if(g<3)return!1;const y=u.src.slice(m,o),v=u.src.slice(o,f);if(h===96&&v.indexOf(String.fromCharCode(h))>=0)return!1;if(r)return!0;let x=a,N=!1;for(;x++,!(x>=i||(o=m=u.bMarks[x]+u.tShift[x],f=u.eMarks[x],o<f&&u.sCount[x]<u.blkIndent));)if(u.src.charCodeAt(o)===h&&!(u.sCount[x]-u.blkIndent>=4)&&(o=u.skipChars(o,h),!(o-m<g)&&(o=u.skipSpaces(o),!(o<f)))){N=!0;break}g=u.sCount[a],u.line=x+(N?1:0);const R=u.push("fence","code",0);return R.info=v,R.content=u.getLines(a+1,x,g,!0),R.markup=y,R.map=[a,u.line],!0}function C4(u,a,i,r){let o=u.bMarks[a]+u.tShift[a],f=u.eMarks[a];const h=u.lineMax;if(u.sCount[a]-u.blkIndent>=4||u.src.charCodeAt(o)!==62)return!1;if(r)return!0;const m=[],g=[],y=[],v=[],x=u.md.block.ruler.getRules("blockquote"),N=u.parentType;u.parentType="blockquote";let R=!1,T;for(T=a;T<i;T++){const ue=u.sCount[T]<u.blkIndent;if(o=u.bMarks[T]+u.tShift[T],f=u.eMarks[T],o>=f)break;if(u.src.charCodeAt(o++)===62&&!ue){let W=u.sCount[T]+1,ce,te;u.src.charCodeAt(o)===32?(o++,W++,te=!1,ce=!0):u.src.charCodeAt(o)===9?(ce=!0,(u.bsCount[T]+W)%4===3?(o++,W++,te=!1):te=!0):ce=!1;let ie=W;for(m.push(u.bMarks[T]),u.bMarks[T]=o;o<f;){const Ge=u.src.charCodeAt(o);if(nt(Ge))Ge===9?ie+=4-(ie+u.bsCount[T]+(te?1:0))%4:ie++;else break;o++}R=o>=f,g.push(u.bsCount[T]),u.bsCount[T]=u.sCount[T]+1+(ce?1:0),y.push(u.sCount[T]),u.sCount[T]=ie-W,v.push(u.tShift[T]),u.tShift[T]=o-u.bMarks[T];continue}if(R)break;let $=!1;for(let W=0,ce=x.length;W<ce;W++)if(x[W](u,T,i,!0)){$=!0;break}if($){u.lineMax=T,u.blkIndent!==0&&(m.push(u.bMarks[T]),g.push(u.bsCount[T]),v.push(u.tShift[T]),y.push(u.sCount[T]),u.sCount[T]-=u.blkIndent);break}m.push(u.bMarks[T]),g.push(u.bsCount[T]),v.push(u.tShift[T]),y.push(u.sCount[T]),u.sCount[T]=-1}const ne=u.blkIndent;u.blkIndent=0;const Q=u.push("blockquote_open","blockquote",1);Q.markup=">";const J=[a,0];Q.map=J,u.md.block.tokenize(u,a,T);const ee=u.push("blockquote_close","blockquote",-1);ee.markup=">",u.lineMax=h,u.parentType=N,J[1]=u.line;for(let ue=0;ue<v.length;ue++)u.bMarks[ue+a]=m[ue],u.tShift[ue+a]=v[ue],u.sCount[ue+a]=y[ue],u.bsCount[ue+a]=g[ue];return u.blkIndent=ne,!0}function D4(u,a,i,r){const o=u.eMarks[a];if(u.sCount[a]-u.blkIndent>=4)return!1;let f=u.bMarks[a]+u.tShift[a];const h=u.src.charCodeAt(f++);if(h!==42&&h!==45&&h!==95)return!1;let m=1;for(;f<o;){const y=u.src.charCodeAt(f++);if(y!==h&&!nt(y))return!1;y===h&&m++}if(m<3)return!1;if(r)return!0;u.line=a+1;const g=u.push("hr","hr",0);return g.map=[a,u.line],g.markup=Array(m+1).join(String.fromCharCode(h)),!0}function kp(u,a){const i=u.eMarks[a];let r=u.bMarks[a]+u.tShift[a];const o=u.src.charCodeAt(r++);if(o!==42&&o!==45&&o!==43)return-1;if(r<i){const f=u.src.charCodeAt(r);if(!nt(f))return-1}return r}function jp(u,a){const i=u.bMarks[a]+u.tShift[a],r=u.eMarks[a];let o=i;if(o+1>=r)return-1;let f=u.src.charCodeAt(o++);if(f<48||f>57)return-1;for(;;){if(o>=r)return-1;if(f=u.src.charCodeAt(o++),f>=48&&f<=57){if(o-i>=10)return-1;continue}if(f===41||f===46)break;return-1}return o<r&&(f=u.src.charCodeAt(o),!nt(f))?-1:o}function N4(u,a){const i=u.level+2;for(let r=a+2,o=u.tokens.length-2;r<o;r++)u.tokens[r].level===i&&u.tokens[r].type==="paragraph_open"&&(u.tokens[r+2].hidden=!0,u.tokens[r].hidden=!0,r+=2)}function k4(u,a,i,r){let o,f,h,m,g=a,y=!0;if(u.sCount[g]-u.blkIndent>=4||u.listIndent>=0&&u.sCount[g]-u.listIndent>=4&&u.sCount[g]<u.blkIndent)return!1;let v=!1;r&&u.parentType==="paragraph"&&u.sCount[g]>=u.blkIndent&&(v=!0);let x,N,R;if((R=jp(u,g))>=0){if(x=!0,h=u.bMarks[g]+u.tShift[g],N=Number(u.src.slice(h,R-1)),v&&N!==1)return!1}else if((R=kp(u,g))>=0)x=!1;else return!1;if(v&&u.skipSpaces(R)>=u.eMarks[g])return!1;if(r)return!0;const T=u.src.charCodeAt(R-1),ne=u.tokens.length;x?(m=u.push("ordered_list_open","ol",1),N!==1&&(m.attrs=[["start",N]])):m=u.push("bullet_list_open","ul",1);const Q=[g,0];m.map=Q,m.markup=String.fromCharCode(T);let J=!1;const ee=u.md.block.ruler.getRules("list"),ue=u.parentType;for(u.parentType="list";g<i;){f=R,o=u.eMarks[g];const $=u.sCount[g]+R-(u.bMarks[g]+u.tShift[g]);let W=$;for(;f<o;){const ye=u.src.charCodeAt(f);if(ye===9)W+=4-(W+u.bsCount[g])%4;else if(ye===32)W++;else break;f++}const ce=f;let te;ce>=o?te=1:te=W-$,te>4&&(te=1);const ie=$+te;m=u.push("list_item_open","li",1),m.markup=String.fromCharCode(T);const Ge=[g,0];m.map=Ge,x&&(m.info=u.src.slice(h,R-1));const Ie=u.tight,Ee=u.tShift[g],Te=u.sCount[g],Qe=u.listIndent;if(u.listIndent=u.blkIndent,u.blkIndent=ie,u.tight=!0,u.tShift[g]=ce-u.bMarks[g],u.sCount[g]=W,ce>=o&&u.isEmpty(g+1)?u.line=Math.min(u.line+2,i):u.md.block.tokenize(u,g,i,!0),(!u.tight||J)&&(y=!1),J=u.line-g>1&&u.isEmpty(u.line-1),u.blkIndent=u.listIndent,u.listIndent=Qe,u.tShift[g]=Ee,u.sCount[g]=Te,u.tight=Ie,m=u.push("list_item_close","li",-1),m.markup=String.fromCharCode(T),g=u.line,Ge[1]=g,g>=i||u.sCount[g]<u.blkIndent||u.sCount[g]-u.blkIndent>=4)break;let Ue=!1;for(let ye=0,K=ee.length;ye<K;ye++)if(ee[ye](u,g,i,!0)){Ue=!0;break}if(Ue)break;if(x){if(R=jp(u,g),R<0)break;h=u.bMarks[g]+u.tShift[g]}else if(R=kp(u,g),R<0)break;if(T!==u.src.charCodeAt(R-1))break}return x?m=u.push("ordered_list_close","ol",-1):m=u.push("bullet_list_close","ul",-1),m.markup=String.fromCharCode(T),Q[1]=g,u.line=g,u.parentType=ue,y&&N4(u,ne),!0}const cf=999;function j4(u){let a=u.length;for(let i=0;i<u.length-1;i++){const r=u.charCodeAt(i);if(r<55296||r>56319)continue;const o=u.charCodeAt(i+1);o>=56320&&o<=57343&&(a--,i++)}return a}function yr(u,a){return Math.min(u.eMarks[a]+1,u.src.length)}function ss(u,a){const i=u.lineMax;if(a>=i||u.isEmpty(a))return-1;let r=!1;if(u.sCount[a]-u.blkIndent>3&&(r=!0),u.sCount[a]<0&&(r=!0),!r){const o=u.md.block.ruler.getRules("reference"),f=u.parentType;u.parentType="reference";let h=!1;for(let m=0,g=o.length;m<g;m++)if(o[m](u,a,i,!0)){h=!0;break}if(u.parentType=f,h)return-1}return u.bMarks[a]+u.tShift[a]}function w4(u,a,i,r){const o=u.src;let f=u.bMarks[a]+u.tShift[a],h=a+1;if(u.sCount[a]-u.blkIndent>=4||o.charCodeAt(f)!==91)return!1;let m=yr(u,a),g="",y=-1,v=++f;for(;f<m;){if(g.length+f-v>cf*2)return!1;let $=o.charCodeAt(f);if($===91)return!1;if($===93){y=f;break}if($===92&&($=o.charCodeAt(++f)),$===10&&f<m){const W=ss(u,h);if(W<0)return!1;g+=o.slice(v,m),f=v=W,m=yr(u,h++);continue}f++}if(y<0||o.charCodeAt(y+1)!==58||(g+=o.slice(v,y),g.length>cf&&j4(g)>cf))return!1;for(f=y+2;f<m;){const $=o.charCodeAt(f);if($===10){const W=ss(u,h);if(W<0)break;f=W,m=yr(u,h++)}else if(nt($))f++;else break}const x=u.md.helpers.parseLinkDestination(o,f,m);if(!x.ok)return!1;const N=u.md.normalizeLink(x.str);if(!u.md.validateLink(N))return!1;f=x.pos;const R=f,T=m,ne=h;for(;f<m;){const $=o.charCodeAt(f);if($===10){const W=ss(u,h);if(W<0)break;f=W,m=yr(u,h++)}else if(nt($))f++;else break}const Q=f;let J=u.md.helpers.parseLinkTitle(o,f,m);for(;J.can_continue;){const $=ss(u,h);if($<0)break;f=$,m=yr(u,h++),J=u.md.helpers.parseLinkTitle(o,f,m,J)}let ee;for(Q!==R&&J.ok?(ee=J.str,f=J.pos):(ee="",f=R,m=T,h=ne);f<m;){const $=o.charCodeAt(f);if(!nt($))break;f++}if(f<m&&o.charCodeAt(f)!==10&&ee)for(ee="",f=R,m=T,h=ne;f<m;){const $=o.charCodeAt(f);if(!nt($))break;f++}if(f<m&&o.charCodeAt(f)!==10)return!1;const ue=Ss(g);return ue?(r||(typeof u.env.references>"u"&&(u.env.references={}),typeof u.env.references[ue]>"u"&&(u.env.references[ue]={title:ee,href:N}),u.line=h),!0):!1}const O4=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],R4="[a-zA-Z_:][a-zA-Z0-9:._-]*",z4="[^\"'=<>`\\x00-\\x20]+",M4="'[^']*'",L4='"[^"]*"',U4="(?:"+z4+"|"+M4+"|"+L4+")",F4="(?:\\s+"+R4+"(?:\\s*=\\s*"+U4+")?)",B4="<[A-Za-z][A-Za-z0-9\\-]*"+F4+"*\\s*\\/?>",H4="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",q2=new RegExp("^(?:"+B4+"|"+H4+")"),ca=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+O4.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(q2.source+"\\s*$"),/^$/,!1]];function q4(u,a,i,r){let o=u.bMarks[a]+u.tShift[a],f=u.eMarks[a];if(u.sCount[a]-u.blkIndent>=4||!u.md.options.html||u.src.charCodeAt(o)!==60)return!1;let h=u.src.slice(o,f),m=0;for(;m<ca.length&&!ca[m][0].test(h);m++);if(m===ca.length)return!1;if(r)return ca[m][2];let g=a+1;const y=ca[m][1].test("");if(!ca[m][1].test(h)){for(;g<i&&!(u.sCount[g]<u.blkIndent&&(y||!u.isEmpty(g)));g++)if(o=u.bMarks[g]+u.tShift[g],f=u.eMarks[g],h=u.src.slice(o,f),ca[m][1].test(h)){h.length!==0&&g++;break}}u.line=g;const v=u.push("html_block","",0);return v.map=[a,g],v.content=u.getLines(a,g,u.blkIndent,!0),!0}function G4(u,a,i,r){let o=u.bMarks[a]+u.tShift[a],f=u.eMarks[a];if(u.sCount[a]-u.blkIndent>=4)return!1;let h=u.src.charCodeAt(o);if(h!==35||o>=f)return!1;let m=1;for(h=u.src.charCodeAt(++o);h===35&&o<f&&m<=6;)m++,h=u.src.charCodeAt(++o);if(m>6||o<f&&!nt(h))return!1;if(r)return!0;f=u.skipSpacesBack(f,o);const g=u.skipCharsBack(f,35,o);g>o&&nt(u.src.charCodeAt(g-1))&&(f=g),u.line=a+1;const y=u.push("heading_open","h"+String(m),1);y.markup="########".slice(0,m),y.map=[a,u.line];const v=u.push("inline","",0);v.content=As(u.src.slice(o,f)),v.map=[a,u.line],v.children=[];const x=u.push("heading_close","h"+String(m),-1);return x.markup="########".slice(0,m),!0}function I4(u,a,i){const r=u.md.block.ruler.getRules("paragraph");if(u.sCount[a]-u.blkIndent>=4)return!1;const o=u.parentType;u.parentType="paragraph";let f=0,h,m=a+1;for(;m<i&&!u.isEmpty(m);m++){if(u.sCount[m]-u.blkIndent>3)continue;if(u.sCount[m]>=u.blkIndent){let R=u.bMarks[m]+u.tShift[m];const T=u.eMarks[m];if(R<T&&(h=u.src.charCodeAt(R),(h===45||h===61)&&(R=u.skipChars(R,h),R=u.skipSpaces(R),R>=T))){f=h===61?1:2;break}}if(u.sCount[m]<0)continue;let N=!1;for(let R=0,T=r.length;R<T;R++)if(r[R](u,m,i,!0)){N=!0;break}if(N)break}if(!f)return u.parentType=o,!1;const g=As(u.getLines(a,m,u.blkIndent,!1));u.line=m+1;const y=u.push("heading_open","h"+String(f),1);y.markup=String.fromCharCode(h),y.map=[a,u.line];const v=u.push("inline","",0);v.content=g,v.map=[a,u.line-1],v.children=[];const x=u.push("heading_close","h"+String(f),-1);return x.markup=String.fromCharCode(h),u.parentType=o,!0}function Y4(u,a,i){const r=u.md.block.ruler.getRules("paragraph"),o=u.parentType;let f=a+1;for(u.parentType="paragraph";f<i&&!u.isEmpty(f);f++){if(u.sCount[f]-u.blkIndent>3||u.sCount[f]<0)continue;let y=!1;for(let v=0,x=r.length;v<x;v++)if(r[v](u,f,i,!0)){y=!0;break}if(y)break}const h=As(u.getLines(a,f,u.blkIndent,!1));u.line=f;const m=u.push("paragraph_open","p",1);m.map=[a,u.line];const g=u.push("inline","",0);return g.content=h,g.map=[a,u.line],g.children=[],u.push("paragraph_close","p",-1),u.parentType=o,!0}const os=[["table",S4,["paragraph","reference"]],["code",A4],["fence",T4,["paragraph","reference","blockquote","list"]],["blockquote",C4,["paragraph","reference","blockquote","list"]],["hr",D4,["paragraph","reference","blockquote","list"]],["list",k4,["paragraph","reference","blockquote"]],["reference",w4],["html_block",q4,["paragraph","reference","blockquote"]],["heading",G4,["paragraph","reference","blockquote"]],["lheading",I4],["paragraph",Y4]];function Ts(){this.ruler=new hu;for(let u=0;u<os.length;u++)this.ruler.push(os[u][0],os[u][1],{alt:(os[u][2]||[]).slice()})}Ts.prototype.tokenize=function(u,a,i){const r=this.ruler.getRules(""),o=r.length,f=u.md.options.maxNesting;let h=a,m=!1;for(;h<i&&(u.line=h=u.skipEmptyLines(h),!(h>=i||u.sCount[h]<u.blkIndent));){if(u.level>=f){u.line=i;break}const g=u.line;let y=!1;for(let v=0;v<o;v++)if(y=r[v](u,h,i,!1),y){if(g>=u.line)throw new Error("block rule didn't increment state.line");break}if(!y)throw new Error("none of the block rules matched");u.tight=!m,u.isEmpty(u.line-1)&&(m=!0),h=u.line,h<i&&u.isEmpty(h)&&(m=!0,h++,u.line=h)}};Ts.prototype.parse=function(u,a,i,r){if(!u)return;const o=new this.State(u,a,i,r);this.tokenize(o,o.line,o.lineMax)};Ts.prototype.State=bn;function zr(u,a,i,r){this.src=u,this.env=i,this.md=a,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.skipHtmlSpecial=!1,this.linkLevel=0}zr.prototype.pushPending=function(){const u=new Qu("text","",0);return u.content=this.pending,u.level=this.pendingLevel,this.tokens.push(u),this.pending="",u};zr.prototype.push=function(u,a,i){this.pending&&this.pushPending();const r=new Qu(u,a,i);let o=null;return i<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,i>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r};zr.prototype.scanDelims=function(u,a){const i=this.posMax,r=this.src.charCodeAt(u);let o;if(u===0)o=32;else if(u===1)o=this.src.charCodeAt(0),(o&63488)===55296&&(o=65533);else if(o=this.src.charCodeAt(u-1),(o&64512)===56320){const Q=this.src.charCodeAt(u-2);o=(Q&64512)===55296?65536+(Q-55296<<10)+(o-56320):65533}else(o&64512)===55296&&(o=65533);let f=u;for(;f<i&&this.src.charCodeAt(f)===r;)f++;const h=f-u;let m=f<i?this.src.charCodeAt(f):32;if((m&64512)===55296){const Q=this.src.charCodeAt(f+1);m=(Q&64512)===56320?65536+(m-55296<<10)+(Q-56320):65533}else(m&64512)===56320&&(m=65533);const g=jr(o)||kr(o),y=jr(m)||kr(m),v=Nr(o),x=Nr(m),N=!x&&(!y||v||g),R=!v&&(!g||x||y);return{can_open:N&&(a||!R||g),can_close:R&&(a||!N||y),length:h}};zr.prototype.Token=Qu;function V4(u){switch(u){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function X4(u,a){let i=u.pos;for(;i<u.posMax&&!V4(u.src.charCodeAt(i));)i++;return i===u.pos?!1:(a||(u.pending+=u.src.slice(u.pos,i)),u.pos=i,!0)}function Z4(u){return u>=65&&u<=90||u>=97&&u<=122}function $4(u){return u>=65&&u<=90||u>=97&&u<=122||u>=48&&u<=57||u===43||u===45||u===46}function Q4(u,a){if(!u.md.options.linkify||u.linkLevel>0)return!1;const i=u.pos,r=u.posMax;if(i+3>r||u.src.charCodeAt(i)!==58||u.src.charCodeAt(i+1)!==47||u.src.charCodeAt(i+2)!==47)return!1;const o=i-Math.min(10,u.pending.length,i);let f=i;for(;f>o&&$4(u.src.charCodeAt(f-1));)f--;if(f===i||!Z4(u.src.charCodeAt(f)))return!1;const h=i-f,m=u.md.linkify.matchAtStart(u.src.slice(f));if(!m)return!1;let g=m.url;if(g.length<=h)return!1;let y=g.length;for(;y>0&&g.charCodeAt(y-1)===42;)y--;y!==g.length&&(g=g.slice(0,y));const v=u.md.normalizeLink(g);if(!u.md.validateLink(v))return!1;if(!a){u.pending=u.pending.slice(0,-h);const x=u.push("link_open","a",1);x.attrs=[["href",v]],x.markup="linkify",x.info="auto";const N=u.push("text","",0);N.content=u.md.normalizeLinkText(g);const R=u.push("link_close","a",-1);R.markup="linkify",R.info="auto"}return u.pos+=g.length-h,!0}function K4(u,a){let i=u.pos;if(u.src.charCodeAt(i)!==10)return!1;const r=u.pending.length-1,o=u.posMax;if(!a)if(r>=0&&u.pending.charCodeAt(r)===32)if(r>=1&&u.pending.charCodeAt(r-1)===32){let f=r-1;for(;f>=1&&u.pending.charCodeAt(f-1)===32;)f--;u.pending=u.pending.slice(0,f),u.push("hardbreak","br",0)}else u.pending=u.pending.slice(0,-1),u.push("softbreak","br",0);else u.push("softbreak","br",0);for(i++;i<o&&nt(u.src.charCodeAt(i));)i++;return u.pos=i,!0}const Vf=[];for(let u=0;u<256;u++)Vf.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u){Vf[u.charCodeAt(0)]=1});function J4(u,a){let i=u.pos;const r=u.posMax;if(u.src.charCodeAt(i)!==92||(i++,i>=r))return!1;let o=u.src.charCodeAt(i);if(o===10){for(a||u.push("hardbreak","br",0),i++;i<r&&(o=u.src.charCodeAt(i),!!nt(o));)i++;return u.pos=i,!0}if(o===32){if(!a){const m=u.push("text_special","",0);m.content="\\",m.markup="\\",m.info="escape"}return u.pos=i,!0}let f=u.src[i];if(o>=55296&&o<=56319&&i+1<r){const m=u.src.charCodeAt(i+1);m>=56320&&m<=57343&&(f+=u.src[i+1],i++)}const h="\\"+f;if(!a){const m=u.push("text_special","",0);o<256&&Vf[o]!==0?m.content=f:m.content=h,m.markup=h,m.info="escape"}return u.pos=i+1,!0}function P4(u,a){let i=u.pos;if(u.src.charCodeAt(i)!==96)return!1;const o=i;i++;const f=u.posMax;for(;i<f&&u.src.charCodeAt(i)===96;)i++;const h=u.src.slice(o,i),m=h.length;if(u.backticksScanned&&(u.backticks[m]||0)<=o)return a||(u.pending+=h),u.pos+=m,!0;let g=i,y;for(;(y=u.src.indexOf("`",g))!==-1;){for(g=y+1;g<f&&u.src.charCodeAt(g)===96;)g++;const v=g-y;if(v===m){if(!a){const x=u.push("code_inline","code",0);x.markup=h,x.content=u.src.slice(i,y).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return u.pos=g,!0}u.backticks[v]=y}return u.backticksScanned=!0,a||(u.pending+=h),u.pos+=m,!0}function W4(u,a){const i=u.pos,r=u.src.charCodeAt(i);if(a||r!==126)return!1;const o=u.scanDelims(u.pos,!0);let f=o.length;const h=String.fromCharCode(r);if(f<2)return!1;let m;f%2&&(m=u.push("text","",0),m.content=h,f--);for(let g=0;g<f;g+=2)m=u.push("text","",0),m.content=h+h,u.delimiters.push({marker:r,length:0,token:u.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return u.pos+=o.length,!0}function wp(u,a){let i;const r=[],o=a.length;for(let f=0;f<o;f++){const h=a[f];if(h.marker!==126||h.end===-1)continue;const m=a[h.end];i=u.tokens[h.token],i.type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",i=u.tokens[m.token],i.type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="",u.tokens[m.token-1].type==="text"&&u.tokens[m.token-1].content==="~"&&r.push(m.token-1)}for(;r.length;){const f=r.pop();let h=f+1;for(;h<u.tokens.length&&u.tokens[h].type==="s_close";)h++;h--,f!==h&&(i=u.tokens[h],u.tokens[h]=u.tokens[f],u.tokens[f]=i)}}function ev(u){const a=u.tokens_meta,i=u.tokens_meta.length;wp(u,u.delimiters);for(let r=0;r<i;r++)a[r]&&a[r].delimiters&&wp(u,a[r].delimiters)}const G2={tokenize:W4,postProcess:ev};function tv(u,a){const i=u.pos,r=u.src.charCodeAt(i);if(a||r!==95&&r!==42)return!1;const o=u.scanDelims(u.pos,r===42);for(let f=0;f<o.length;f++){const h=u.push("text","",0);h.content=String.fromCharCode(r),u.delimiters.push({marker:r,length:o.length,token:u.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return u.pos+=o.length,!0}function Op(u,a){const i=a.length;for(let r=i-1;r>=0;r--){const o=a[r];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const f=a[o.end],h=r>0&&a[r-1].end===o.end+1&&a[r-1].marker===o.marker&&a[r-1].token===o.token-1&&a[o.end+1].token===f.token+1,m=String.fromCharCode(o.marker),g=u.tokens[o.token];g.type=h?"strong_open":"em_open",g.tag=h?"strong":"em",g.nesting=1,g.markup=h?m+m:m,g.content="";const y=u.tokens[f.token];y.type=h?"strong_close":"em_close",y.tag=h?"strong":"em",y.nesting=-1,y.markup=h?m+m:m,y.content="",h&&(u.tokens[a[r-1].token].content="",u.tokens[a[o.end+1].token].content="",r--)}}function uv(u){const a=u.tokens_meta,i=u.tokens_meta.length;Op(u,u.delimiters);for(let r=0;r<i;r++)a[r]&&a[r].delimiters&&Op(u,a[r].delimiters)}const I2={tokenize:tv,postProcess:uv};function nv(u,a){let i,r,o,f,h="",m="",g=u.pos,y=!0;if(u.src.charCodeAt(u.pos)!==91)return!1;const v=u.pos,x=u.posMax,N=u.pos+1,R=u.md.helpers.parseLinkLabel(u,u.pos,!0);if(R<0)return!1;let T=R+1;if(T<x&&u.src.charCodeAt(T)===40){for(y=!1,T++;T<x&&(i=u.src.charCodeAt(T),!(!nt(i)&&i!==10));T++);if(T>=x)return!1;if(g=T,o=u.md.helpers.parseLinkDestination(u.src,T,u.posMax),o.ok){for(h=u.md.normalizeLink(o.str),u.md.validateLink(h)?T=o.pos:h="",g=T;T<x&&(i=u.src.charCodeAt(T),!(!nt(i)&&i!==10));T++);if(o=u.md.helpers.parseLinkTitle(u.src,T,u.posMax),T<x&&g!==T&&o.ok)for(m=o.str,T=o.pos;T<x&&(i=u.src.charCodeAt(T),!(!nt(i)&&i!==10));T++);}(T>=x||u.src.charCodeAt(T)!==41)&&(y=!0),T++}if(y){if(typeof u.env.references>"u")return!1;if(T<x&&u.src.charCodeAt(T)===91?(g=T+1,T=u.md.helpers.parseLinkLabel(u,T),T>=0?r=u.src.slice(g,T++):T=R+1):T=R+1,r||(r=u.src.slice(N,R)),f=u.env.references[Ss(r)],!f)return u.pos=v,!1;h=f.href,m=f.title}if(!a){u.pos=N,u.posMax=R;const ne=u.push("link_open","a",1),Q=[["href",h]];ne.attrs=Q,m&&Q.push(["title",m]),u.linkLevel++,u.md.inline.tokenize(u),u.linkLevel--,u.push("link_close","a",-1)}return u.pos=T,u.posMax=x,!0}function lv(u,a){let i,r,o,f,h,m,g,y,v="";const x=u.pos,N=u.posMax;if(u.src.charCodeAt(u.pos)!==33||u.src.charCodeAt(u.pos+1)!==91)return!1;const R=u.pos+2,T=u.md.helpers.parseLinkLabel(u,u.pos+1,!1);if(T<0)return!1;if(f=T+1,f<N&&u.src.charCodeAt(f)===40){for(f++;f<N&&(i=u.src.charCodeAt(f),!(!nt(i)&&i!==10));f++);if(f>=N)return!1;for(y=f,m=u.md.helpers.parseLinkDestination(u.src,f,u.posMax),m.ok&&(v=u.md.normalizeLink(m.str),u.md.validateLink(v)?f=m.pos:v=""),y=f;f<N&&(i=u.src.charCodeAt(f),!(!nt(i)&&i!==10));f++);if(m=u.md.helpers.parseLinkTitle(u.src,f,u.posMax),f<N&&y!==f&&m.ok)for(g=m.str,f=m.pos;f<N&&(i=u.src.charCodeAt(f),!(!nt(i)&&i!==10));f++);else g="";if(f>=N||u.src.charCodeAt(f)!==41)return u.pos=x,!1;f++}else{if(typeof u.env.references>"u")return!1;if(f<N&&u.src.charCodeAt(f)===91?(y=f+1,f=u.md.helpers.parseLinkLabel(u,f),f>=0?o=u.src.slice(y,f++):f=T+1):f=T+1,o||(o=u.src.slice(R,T)),h=u.env.references[Ss(o)],!h)return u.pos=x,!1;v=h.href,g=h.title}if(!a){r=u.src.slice(R,T);const ne=[];u.md.inline.parse(r,u.md,u.env,ne);const Q=u.push("image","img",0),J=[["src",v],["alt",""]];Q.attrs=J,Q.children=ne,Q.content=r,g&&J.push(["title",g])}return u.pos=f,u.posMax=N,!0}const av=/^([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])?)*)$/,iv=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function rv(u,a){let i=u.pos;if(u.src.charCodeAt(i)!==60)return!1;const r=u.pos,o=u.posMax;for(;;){if(++i>=o)return!1;const h=u.src.charCodeAt(i);if(h===60)return!1;if(h===62)break}const f=u.src.slice(r+1,i);if(iv.test(f)){const h=u.md.normalizeLink(f);if(!u.md.validateLink(h))return!1;if(!a){const m=u.push("link_open","a",1);m.attrs=[["href",h]],m.markup="autolink",m.info="auto";const g=u.push("text","",0);g.content=u.md.normalizeLinkText(f);const y=u.push("link_close","a",-1);y.markup="autolink",y.info="auto"}return u.pos+=f.length+2,!0}if(av.test(f)){const h=u.md.normalizeLink("mailto:"+f);if(!u.md.validateLink(h))return!1;if(!a){const m=u.push("link_open","a",1);m.attrs=[["href",h]],m.markup="autolink",m.info="auto";const g=u.push("text","",0);g.content=u.md.normalizeLinkText(f);const y=u.push("link_close","a",-1);y.markup="autolink",y.info="auto"}return u.pos+=f.length+2,!0}return!1}function cv(u){return/^<a[>\s]/i.test(u)}function sv(u){return/^<\/a\s*>/i.test(u)}function Y2(u){const a=u|32;return a>=97&&a<=122}function ov(u,a){const i=u.src;let r,o;if(i.startsWith("<!--",a)){if(i.startsWith(">",a+4))return a+5;if(i.startsWith("->",a+4))return a+6;r=a+4,o="-->"}else if(i.startsWith("<![CDATA[",a))r=a+9,o="]]>";else if(i.charCodeAt(a+1)===63)r=a+2,o="?>";else if(Y2(i.charCodeAt(a+2)))r=a+3,o=">";else return-1;if(u.skipHtmlSpecial)return-1;const f=i.indexOf(o,r);return f<0?(u.skipHtmlSpecial=!0,-1):f+o.length}function fv(u,a){if(!u.md.options.html)return!1;const i=u.posMax,r=u.pos;if(u.src.charCodeAt(r)!==60||r+2>=i)return!1;let o;const f=u.src.charCodeAt(r+1);if(f===33||f===63)o=ov(u,r);else if(f===47||Y2(f)){const h=u.src.slice(r).match(q2);o=h?r+h[0].length:-1}else return!1;if(o<0)return!1;if(!a){const h=u.push("html_inline","",0);h.content=u.src.slice(r,o),cv(h.content)&&u.linkLevel++,sv(h.content)&&u.linkLevel--}return u.pos=o,!0}const dv=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,hv=/^&([a-z][a-z0-9]{1,31});/i;function mv(u,a){const i=u.pos,r=u.posMax;if(u.src.charCodeAt(i)!==38||i+1>=r)return!1;if(u.src.charCodeAt(i+1)===35){const f=u.src.slice(i).match(dv);if(f){if(!a){const h=f[1][0].toLowerCase()==="x"?parseInt(f[1].slice(1),16):parseInt(f[1],10),m=u.push("text_special","",0);m.content=If(h)?Dr(h):Dr(65533),m.markup=f[0],m.info="entity"}return u.pos+=f[0].length,!0}}else{const f=u.src.slice(i).match(hv);if(f){const h=Rx(f[0]);if(h!==f[0]){if(!a){const m=u.push("text_special","",0);m.content=h,m.markup=f[0],m.info="entity"}return u.pos+=f[0].length,!0}}}return!1}function Rp(u){const a={},i=u.length;if(!i)return;let r=0,o=-2;const f=[];for(let h=0;h<i;h++){const m=u[h];if(f.push(0),(u[r].marker!==m.marker||o!==m.token-1)&&(r=h),o=m.token,m.length=m.length||0,!m.close)continue;a.hasOwnProperty(m.marker)||(a[m.marker]=[-1,-1,-1,-1,-1,-1]);const g=a[m.marker][(m.open?3:0)+m.length%3];let y=r-f[r]-1,v=y;for(;y>g;y-=f[y]+1){const x=u[y];if(x.marker===m.marker&&x.open&&x.end<0){let N=!1;if((x.close||m.open)&&(x.length+m.length)%3===0&&(x.length%3!==0||m.length%3!==0)&&(N=!0),!N){const R=y>0&&!u[y-1].open?f[y-1]+1:0;f[h]=h-y+R,f[y]=R,m.open=!1,x.end=h,x.close=!1,v=-1,o=-2;break}}}v!==-1&&(a[m.marker][(m.open?3:0)+(m.length||0)%3]=v)}}function pv(u){const a=u.tokens_meta,i=u.tokens_meta.length;Rp(u.delimiters);for(let r=0;r<i;r++)a[r]&&a[r].delimiters&&Rp(a[r].delimiters)}function gv(u){let a,i,r=0;const o=u.tokens,f=u.tokens.length;for(a=i=0;a<f;a++)o[a].nesting<0&&r--,o[a].level=r,o[a].nesting>0&&r++,o[a].type==="text"&&a+1<f&&o[a+1].type==="text"?o[a+1].content=o[a].content+o[a+1].content:(a!==i&&(o[i]=o[a]),i++);a!==i&&(o.length=i)}const sf=[["text",X4],["linkify",Q4],["newline",K4],["escape",J4],["backticks",P4],["strikethrough",G2.tokenize],["emphasis",I2.tokenize],["link",nv],["image",lv],["autolink",rv],["html_inline",fv],["entity",mv]],of=[["balance_pairs",pv],["strikethrough",G2.postProcess],["emphasis",I2.postProcess],["fragments_join",gv]];function Mr(){this.ruler=new hu;for(let u=0;u<sf.length;u++)this.ruler.push(sf[u][0],sf[u][1]);this.ruler2=new hu;for(let u=0;u<of.length;u++)this.ruler2.push(of[u][0],of[u][1])}Mr.prototype.skipToken=function(u){const a=u.pos,i=this.ruler.getRules(""),r=i.length,o=u.md.options.maxNesting,f=u.cache;if(typeof f[a]<"u"){u.pos=f[a];return}let h=!1;if(u.level<o){for(let m=0;m<r;m++)if(u.level++,h=i[m](u,!0),u.level--,h){if(a>=u.pos)throw new Error("inline rule didn't increment state.pos");break}}else u.pos=u.posMax;h||u.pos++,f[a]=u.pos};Mr.prototype.tokenize=function(u){const a=this.ruler.getRules(""),i=a.length,r=u.posMax,o=u.md.options.maxNesting;for(;u.pos<r;){const f=u.pos;let h=!1;if(u.level<o){for(let m=0;m<i;m++)if(h=a[m](u,!1),h){if(f>=u.pos)throw new Error("inline rule didn't increment state.pos");break}}if(h){if(u.pos>=r)break;continue}u.pending+=u.src[u.pos++]}u.pending&&u.pushPending()};Mr.prototype.parse=function(u,a,i,r){const o=new this.State(u,a,i,r);this.tokenize(o);const f=this.ruler2.getRules(""),h=f.length;for(let m=0;m<h;m++)f[m](o)};Mr.prototype.State=zr;function bv(u){const a={};u=u||{},a.src_Any=w2.source,a.src_Cc=O2.source,a.src_Z=z2.source,a.src_P=qf.source,a.src_ZPCc=[a.src_Z,a.src_P,a.src_Cc].join("|"),a.src_ZCc=[a.src_Z,a.src_Cc].join("|");const i="[><|]";return a.src_pseudo_letter=`(?:(?!${i}|${a.src_ZPCc})${a.src_Any})`,a.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",a.src_auth=`(?:(?:(?!${a.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,a.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",a.src_host_terminator=`(?=$|${i}|${a.src_ZPCc})(?!${u["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${a.src_ZPCc}))`,a.src_path=`(?:[/?#](?:(?!${a.src_ZCc}|${i}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${a.src_ZCc}|\\]).)*\\]|\\((?:(?!${a.src_ZCc}|[)]).)*\\)|\\{(?:(?!${a.src_ZCc}|[}]).)*\\}|\\"(?:(?!${a.src_ZCc}|["]).)+\\"|\\'(?:(?!${a.src_ZCc}|[']).)+\\'|\\'(?=${a.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${a.src_ZCc}|[.]|$)|`+(u["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${a.src_ZCc}|$)|;(?!${a.src_ZCc}|$)|\\!+(?!${a.src_ZCc}|[!]|$)|\\?(?!${a.src_ZCc}|[?]|$))+|\\/)?`,a.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',a.src_xn="xn--[a-z0-9\\-]{1,59}",a.src_domain_root="(?:"+a.src_xn+`|${a.src_pseudo_letter}{1,63})`,a.src_domain="(?:"+a.src_xn+`|(?:${a.src_pseudo_letter})|(?:${a.src_pseudo_letter}(?:-|${a.src_pseudo_letter}){0,61}${a.src_pseudo_letter}))`,a.src_host=`(?:(?:(?:(?:${a.src_domain})\\.)*${a.src_domain}))`,a.tpl_host_fuzzy="(?:"+a.src_ip4+`|(?:(?:(?:${a.src_domain})\\.)+(?:%TLDS%)))`,a.tpl_host_no_ip_fuzzy=`(?:(?:(?:${a.src_domain})\\.)+(?:%TLDS%))`,a.src_host_strict=a.src_host+a.src_host_terminator,a.tpl_host_fuzzy_strict=a.tpl_host_fuzzy+a.src_host_terminator,a.src_host_port_strict=a.src_host+a.src_port+a.src_host_terminator,a.tpl_host_port_fuzzy_strict=a.tpl_host_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_port_no_ip_fuzzy_strict=a.tpl_host_no_ip_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${a.src_ZPCc}|>|$))`,a.tpl_email_fuzzy=`(^|${i}|"|\\(|${a.src_ZCc})(${a.src_email_name}@${a.tpl_host_fuzzy_strict})`,a.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${a.src_ZPCc}))((?![$+<=>^\`||])${a.tpl_host_port_fuzzy_strict}${a.src_path})`,a.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${a.src_ZPCc}))((?![$+<=>^\`||])${a.tpl_host_port_no_ip_fuzzy_strict}${a.src_path})`,a}function Of(u){return Array.prototype.slice.call(arguments,1).forEach(function(i){i&&Object.keys(i).forEach(function(r){u[r]=i[r]})}),u}function Cs(u){return Object.prototype.toString.call(u)}function yv(u){return Cs(u)==="[object String]"}function xv(u){return Cs(u)==="[object Object]"}function vv(u){return Cs(u)==="[object RegExp]"}function zp(u){return Cs(u)==="[object Function]"}function _v(u){return u.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const V2={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ev(u){return Object.keys(u||{}).reduce(function(a,i){return a||V2.hasOwnProperty(i)},!1)}const Sv={"http:":{validate:function(u,a,i){const r=u.slice(a);return i.re.http||(i.re.http=new RegExp(`^\\/\\/${i.re.src_auth}${i.re.src_host_port_strict}${i.re.src_path}`,"i")),i.re.http.test(r)?r.match(i.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(u,a,i){const r=u.slice(a);return i.re.no_http||(i.re.no_http=new RegExp("^"+i.re.src_auth+`(?:localhost|(?:(?:${i.re.src_domain})\\.)+${i.re.src_domain_root})`+i.re.src_port+i.re.src_host_terminator+i.re.src_path,"i")),i.re.no_http.test(r)?a>=3&&u[a-3]===":"||a>=3&&u[a-3]==="/"?0:r.match(i.re.no_http)[0].length:0}},"mailto:":{validate:function(u,a,i){const r=u.slice(a);return i.re.mailto||(i.re.mailto=new RegExp(`^${i.re.src_email_name}@${i.re.src_host_strict}`,"i")),i.re.mailto.test(r)?r.match(i.re.mailto)[0].length:0}}},Av="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Tv="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Cv(u){return function(a,i){const r=a.slice(i);return u.test(r)?r.match(u)[0].length:0}}function Mp(){return function(u,a){a.normalize(u)}}function xs(u){const a=u.re=bv(u.__opts__),i=u.__tlds__.slice();u.onCompile(),u.__tlds_replaced__||i.push(Av),i.push(a.src_xn),a.src_tlds=i.join("|");function r(m){return m.replace("%TLDS%",a.src_tlds)}a.email_fuzzy=RegExp(r(a.tpl_email_fuzzy),"i"),a.email_fuzzy_global=RegExp(r(a.tpl_email_fuzzy),"ig"),a.link_fuzzy=RegExp(r(a.tpl_link_fuzzy),"i"),a.link_fuzzy_global=RegExp(r(a.tpl_link_fuzzy),"ig"),a.link_no_ip_fuzzy=RegExp(r(a.tpl_link_no_ip_fuzzy),"i"),a.link_no_ip_fuzzy_global=RegExp(r(a.tpl_link_no_ip_fuzzy),"ig"),a.host_fuzzy_test=RegExp(r(a.tpl_host_fuzzy_test),"i");const o=[];u.__compiled__={};function f(m,g){throw new Error(`(LinkifyIt) Invalid schema "${m}": ${g}`)}Object.keys(u.__schemas__).forEach(function(m){const g=u.__schemas__[m];if(g===null)return;const y={validate:null,link:null};if(u.__compiled__[m]=y,xv(g)){vv(g.validate)?y.validate=Cv(g.validate):zp(g.validate)?y.validate=g.validate:f(m,g),zp(g.normalize)?y.normalize=g.normalize:g.normalize?f(m,g):y.normalize=Mp();return}if(yv(g)){o.push(m);return}f(m,g)}),o.forEach(function(m){u.__compiled__[u.__schemas__[m]]&&(u.__compiled__[m].validate=u.__compiled__[u.__schemas__[m]].validate,u.__compiled__[m].normalize=u.__compiled__[u.__schemas__[m]].normalize)}),u.__compiled__[""]={validate:null,normalize:Mp()};const h=Object.keys(u.__compiled__).filter(function(m){return m.length>0&&u.__compiled__[m]}).map(_v).join("|");u.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${a.src_ZPCc}))(${h})`,"i"),u.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${a.src_ZPCc}))(${h})`,"ig"),u.re.schema_at_start=RegExp(`^${u.re.schema_search.source}`,"i"),u.re.pretest=RegExp(`(${u.re.schema_test.source})|(${u.re.host_fuzzy_test.source})|@`,"i")}function X2(u,a,i,r){const o=u.slice(i,r);this.schema=a.toLowerCase(),this.index=i,this.lastIndex=r,this.raw=o,this.text=o,this.url=o}function Tu(u,a){if(!(this instanceof Tu))return new Tu(u,a);a||Ev(u)&&(a=u,u={}),this.__opts__=Of({},V2,a),this.__schemas__=Of({},Sv,u),this.__compiled__={},this.__tlds__=Tv,this.__tlds_replaced__=!1,this.re={},xs(this)}Tu.prototype.add=function(a,i){return this.__schemas__[a]=i,xs(this),this};Tu.prototype.set=function(a){return this.__opts__=Of(this.__opts__,a),this};Tu.prototype.test=function(a){if(!a.length)return!1;let i,r;if(this.re.schema_test.test(a)){for(r=this.re.schema_search,r.lastIndex=0;(i=r.exec(a))!==null;)if(this.testSchemaAt(a,i[2],r.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&a.search(this.re.host_fuzzy_test)>=0&&a.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&a.indexOf("@")>=0&&a.match(this.re.email_fuzzy)!==null)};Tu.prototype.pretest=function(a){return this.re.pretest.test(a)};Tu.prototype.testSchemaAt=function(a,i,r){return this.__compiled__[i.toLowerCase()]?this.__compiled__[i.toLowerCase()].validate(a,r,this):0};Tu.prototype.match=function(a){const i=[],r=[],o=[],f=[];let h,m,g;function y(N,R){return N?R?N.index!==R.index?N.index<R.index?N:R:N.lastIndex>=R.lastIndex?N:R:N:R}if(!a.length)return null;if(this.re.schema_test.test(a))for(g=this.re.schema_search,g.lastIndex=0;(h=g.exec(a))!==null;)m=this.testSchemaAt(a,h[2],g.lastIndex),m&&r.push({schema:h[2],index:h.index+h[1].length,lastIndex:h.index+h[0].length+m});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(g=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,g.lastIndex=0;(h=g.exec(a))!==null;)o.push({schema:"",index:h.index+h[1].length,lastIndex:h.index+h[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(g=this.re.email_fuzzy_global,g.lastIndex=0;(h=g.exec(a))!==null;)f.push({schema:"mailto:",index:h.index+h[1].length,lastIndex:h.index+h[0].length});const v=[0,0,0];let x=0;for(;;){const N=[r[v[0]],f[v[1]],o[v[2]]],R=y(y(N[0],N[1]),N[2]);if(!R)break;if(R===N[0]?v[0]++:R===N[1]?v[1]++:v[2]++,R.index<x)continue;const T=new X2(a,R.schema,R.index,R.lastIndex);this.__compiled__[T.schema].normalize(T,this),i.push(T),x=R.lastIndex}return i.length?i:null};Tu.prototype.matchAtStart=function(a){if(!a.length)return null;const i=this.re.schema_at_start.exec(a);if(!i)return null;const r=this.testSchemaAt(a,i[2],i[0].length);if(!r)return null;const o=new X2(a,i[2],i.index+i[1].length,i.index+i[0].length+r);return this.__compiled__[o.schema].normalize(o,this),o};Tu.prototype.tlds=function(a,i){return a=Array.isArray(a)?a:[a],i?(this.__tlds__=this.__tlds__.concat(a).sort().filter(function(r,o,f){return r!==f[o-1]}).reverse(),xs(this),this):(this.__tlds__=a.slice(),this.__tlds_replaced__=!0,xs(this),this)};Tu.prototype.normalize=function(a){a.schema||(a.url=`http://${a.url}`),a.schema==="mailto:"&&!/^mailto:/i.test(a.url)&&(a.url=`mailto:${a.url}`)};Tu.prototype.onCompile=function(){};const fi=2147483647,mn=36,Xf=1,wr=26,Dv=38,Nv=700,Z2=72,$2=128,Q2="-",kv=/^xn--/,jv=/[^\0-\x7F]/,wv=/[\x2E\u3002\uFF0E\uFF61]/g,Ov={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ff=mn-Xf,pn=Math.floor,df=String.fromCharCode;function Ol(u){throw new RangeError(Ov[u])}function Rv(u,a){const i=[];let r=u.length;for(;r--;)i[r]=a(u[r]);return i}function K2(u,a){const i=u.split("@");let r="";i.length>1&&(r=i[0]+"@",u=i[1]),u=u.replace(wv,".");const o=u.split("."),f=Rv(o,a).join(".");return r+f}function J2(u){const a=[];let i=0;const r=u.length;for(;i<r;){const o=u.charCodeAt(i++);if(o>=55296&&o<=56319&&i<r){const f=u.charCodeAt(i++);(f&64512)==56320?a.push(((o&1023)<<10)+(f&1023)+65536):(a.push(o),i--)}else a.push(o)}return a}const zv=u=>String.fromCodePoint(...u),Mv=function(u){return u>=48&&u<58?26+(u-48):u>=65&&u<91?u-65:u>=97&&u<123?u-97:mn},Lp=function(u,a){return u+22+75*(u<26)-((a!=0)<<5)},P2=function(u,a,i){let r=0;for(u=i?pn(u/Nv):u>>1,u+=pn(u/a);u>ff*wr>>1;r+=mn)u=pn(u/ff);return pn(r+(ff+1)*u/(u+Dv))},W2=function(u){const a=[],i=u.length;let r=0,o=$2,f=Z2,h=u.lastIndexOf(Q2);h<0&&(h=0);for(let m=0;m<h;++m)u.charCodeAt(m)>=128&&Ol("not-basic"),a.push(u.charCodeAt(m));for(let m=h>0?h+1:0;m<i;){const g=r;for(let v=1,x=mn;;x+=mn){m>=i&&Ol("invalid-input");const N=Mv(u.charCodeAt(m++));N>=mn&&Ol("invalid-input"),N>pn((fi-r)/v)&&Ol("overflow"),r+=N*v;const R=x<=f?Xf:x>=f+wr?wr:x-f;if(N<R)break;const T=mn-R;v>pn(fi/T)&&Ol("overflow"),v*=T}const y=a.length+1;f=P2(r-g,y,g==0),pn(r/y)>fi-o&&Ol("overflow"),o+=pn(r/y),r%=y,a.splice(r++,0,o)}return String.fromCodePoint(...a)},eg=function(u){const a=[];u=J2(u);const i=u.length;let r=$2,o=0,f=Z2;for(const g of u)g<128&&a.push(df(g));const h=a.length;let m=h;for(h&&a.push(Q2);m<i;){let g=fi;for(const v of u)v>=r&&v<g&&(g=v);const y=m+1;g-r>pn((fi-o)/y)&&Ol("overflow"),o+=(g-r)*y,r=g;for(const v of u)if(v<r&&++o>fi&&Ol("overflow"),v===r){let x=o;for(let N=mn;;N+=mn){const R=N<=f?Xf:N>=f+wr?wr:N-f;if(x<R)break;const T=x-R,ne=mn-R;a.push(df(Lp(R+T%ne,0))),x=pn(T/ne)}a.push(df(Lp(x,0))),f=P2(o,y,m===h),o=0,++m}++o,++r}return a.join("")},Lv=function(u){return K2(u,function(a){return kv.test(a)?W2(a.slice(4).toLowerCase()):a})},Uv=function(u){return K2(u,function(a){return jv.test(a)?"xn--"+eg(a):a})},tg={version:"2.3.1",ucs2:{decode:J2,encode:zv},decode:W2,encode:eg,toASCII:Uv,toUnicode:Lv},Fv={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Bv={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Hv={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},qv={default:Fv,zero:Bv,commonmark:Hv},Gv=/^(vbscript|javascript|file|data):/,Iv=/^data:image\/(gif|png|jpeg|webp);/;function Yv(u){const a=u.trim().toLowerCase();return Gv.test(a)?Iv.test(a):!0}const ug=["http:","https:","mailto:"];function Vv(u){const a=Hf(u,!0);if(a.hostname&&(!a.protocol||ug.indexOf(a.protocol)>=0))try{a.hostname=tg.toASCII(a.hostname)}catch{}return Rr(Bf(a))}function Xv(u){const a=Hf(u,!0);if(a.hostname&&(!a.protocol||ug.indexOf(a.protocol)>=0))try{a.hostname=tg.toUnicode(a.hostname)}catch{}return mi(Bf(a),mi.defaultChars+"%")}function Bu(u,a){if(!(this instanceof Bu))return new Bu(u,a);a||Gf(u)||(a=u||{},u="default"),this.inline=new Mr,this.block=new Ts,this.core=new Yf,this.renderer=new gi,this.linkify=new Tu,this.validateLink=Yv,this.normalizeLink=Vv,this.normalizeLinkText=Xv,this.utils=Kx,this.helpers=Es({},e4),this.options={},this.configure(u),a&&this.set(a)}Bu.prototype.set=function(u){return Es(this.options,u),this};Bu.prototype.configure=function(u){const a=this;if(Gf(u)){const i=u;if(u=qv[i],!u)throw new Error('Wrong `markdown-it` preset "'+i+'", check name')}if(!u)throw new Error("Wrong `markdown-it` preset, can't be empty");return u.options&&a.set(u.options),u.components&&Object.keys(u.components).forEach(function(i){u.components[i].rules&&a[i].ruler.enableOnly(u.components[i].rules),u.components[i].rules2&&a[i].ruler2.enableOnly(u.components[i].rules2)}),this};Bu.prototype.enable=function(u,a){let i=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(o){i=i.concat(this[o].ruler.enable(u,!0))},this),i=i.concat(this.inline.ruler2.enable(u,!0));const r=u.filter(function(o){return i.indexOf(o)<0});if(r.length&&!a)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Bu.prototype.disable=function(u,a){let i=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(o){i=i.concat(this[o].ruler.disable(u,!0))},this),i=i.concat(this.inline.ruler2.disable(u,!0));const r=u.filter(function(o){return i.indexOf(o)<0});if(r.length&&!a)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Bu.prototype.use=function(u){const a=[this].concat(Array.prototype.slice.call(arguments,1));return u.apply(u,a),this};Bu.prototype.parse=function(u,a){if(typeof u!="string")throw new Error("Input data should be a String");const i=new this.core.State(u,this,a);return this.core.process(i),i.tokens};Bu.prototype.render=function(u,a){return a=a||{},this.renderer.render(this.parse(u,a),this.options,a)};Bu.prototype.parseInline=function(u,a){const i=new this.core.State(u,this,a);return i.inlineMode=!0,this.core.process(i),i.tokens};Bu.prototype.renderInline=function(u,a){return a=a||{},this.renderer.render(this.parseInline(u,a),this.options,a)};function Up(u,a){(a==null||a>u.length)&&(a=u.length);for(var i=0,r=Array(a);i<a;i++)r[i]=u[i];return r}function Zv(u){if(Array.isArray(u))return u}function $v(u,a){var i=u==null?null:typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(i!=null){var r,o,f,h,m=[],g=!0,y=!1;try{if(f=(i=i.call(u)).next,a!==0)for(;!(g=(r=f.call(i)).done)&&(m.push(r.value),m.length!==a);g=!0);}catch(v){y=!0,o=v}finally{try{if(!g&&i.return!=null&&(h=i.return(),Object(h)!==h))return}finally{if(y)throw o}}return m}}function Qv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
37
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kv(u,a){return Zv(u)||$v(u,a)||Jv(u,a)||Qv()}function Jv(u,a){if(u){if(typeof u=="string")return Up(u,a);var i={}.toString.call(u).slice(8,-1);return i==="Object"&&u.constructor&&(i=u.constructor.name),i==="Map"||i==="Set"?Array.from(u):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Up(u,a):void 0}}const ng=Object.entries,Fp=Object.setPrototypeOf,Pv=Object.isFrozen,lg=Object.getPrototypeOf,ag=Object.getOwnPropertyDescriptor;let Rt=Object.freeze,It=Object.seal,ri=Object.create,ig=typeof Reflect<"u"&&Reflect,Rf=ig.apply,zf=ig.construct;Rt||(Rt=function(a){return a});It||(It=function(a){return a});Rf||(Rf=function(a,i){for(var r=arguments.length,o=new Array(r>2?r-2:0),f=2;f<r;f++)o[f-2]=arguments[f];return a.apply(i,o)});zf||(zf=function(a){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return new a(...r)});const Hn=at(Array.prototype.forEach),Wv=at(Array.prototype.lastIndexOf),Bp=at(Array.prototype.pop),xr=at(Array.prototype.push),e8=at(Array.prototype.slice),t8=at(Array.prototype.splice),di=Array.isArray,hf=rg(Set),mf=at(Set.prototype.add),vr=at(Set.prototype.has),oa=at(String.prototype.toLowerCase),pf=at(String.prototype.toString),Hp=at(String.prototype.match),_r=at(String.prototype.replace),qp=at(String.prototype.indexOf),u8=at(String.prototype.trim),n8=at(Number.prototype.toString),l8=at(Boolean.prototype.toString),Gp=typeof BigInt>"u"?null:at(BigInt.prototype.toString),Ip=typeof Symbol>"u"?null:at(Symbol.prototype.toString),du=at(Object.prototype.hasOwnProperty),Er=at(Object.prototype.toString),Gt=at(RegExp.prototype.test),qn=rg(TypeError);function at(u){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return Rf(u,a,r)}}function rg(u){return function(){for(var a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];return zf(u,i)}}function Ye(u,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oa;if(Fp&&Fp(u,null),!di(a))return u;let r=a.length;for(;r--;){let o=a[r];if(typeof o=="string"){const f=i(o);f!==o&&(Pv(a)||(a[r]=f),o=f)}u[o]=!0}return u}function a8(u){for(let a=0;a<u.length;a++)du(u,a)||(u[a]=null);return u}function Au(u){const a=ri(null);for(const r of ng(u)){var i=Kv(r,2);const o=i[0],f=i[1];du(u,o)&&(di(f)?a[o]=a8(f):f&&typeof f=="object"&&f.constructor===Object?a[o]=Au(f):a[o]=f)}return a}function i8(u){switch(typeof u){case"string":return u;case"number":return n8(u);case"boolean":return l8(u);case"bigint":return Gp?Gp(u):"0";case"symbol":return Ip?Ip(u):"Symbol()";case"undefined":return Er(u);case"function":case"object":{if(u===null)return Er(u);const a=u,i=Fu(a,"toString");if(typeof i=="function"){const r=i(a);return typeof r=="string"?r:Er(r)}return Er(u)}default:return Er(u)}}function Fu(u,a){for(;u!==null;){const r=ag(u,a);if(r){if(r.get)return at(r.get);if(typeof r.value=="function")return at(r.value)}u=lg(u)}function i(){return null}return i}function r8(u,a){for(;u!==null;){const i=ag(u,a);if(i)return i.get?at(i.get):null;u=lg(u)}return null}function c8(u){try{return Gt(u,""),!0}catch{return!1}}const Yp=Rt(["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"]),gf=Rt(["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"]),bf=Rt(["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"]),s8=Rt(["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"]),yf=Rt(["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"]),o8=Rt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vp=Rt(["#text"]),Xp=Rt(["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"]),xf=Rt(["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"]),Zp=Rt(["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"]),fs=Rt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f8=It(/{{[\w\W]*|^[\w\W]*}}/g),d8=It(/<%[\w\W]*|^[\w\W]*%>/g),h8=It(/\${[\w\W]*/g),m8=It(/^data-[\-\w.\u00B7-\uFFFF]+$/),p8=It(/^aria-[\-\w]+$/),$p=It(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),g8=It(/^(?:\w+script|data):/i),b8=It(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),y8=It(/^html$/i),x8=It(/^[a-z][.\w]*(-[.\w]+)+$/i),vf=It(/<[/\w!]/g),Qp=It(/<[/\w]/g),v8=It(/<\/no(script|embed|frames)/i),Kp=It(/\/>/i),xt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},_8=Rt(Ye({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),E8=function(){return typeof window>"u"?null:window},S8=function(a,i){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";i&&i.hasAttribute(o)&&(r=i.getAttribute(o));const f="dompurify"+(r?"#"+r:"");try{return a.createPolicy(f,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Jp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},wl=function(a,i,r,o){return du(a,i)&&di(a[i])?Ye(o.base?Au(o.base):{},a[i],o.transform):r},_f=function(a,i,r){const o=du(a,i)?a[i]:void 0;return o&&typeof o=="object"?Au(o):r()};function cg(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E8();const a=V=>cg(V);if(a.version="3.4.17",a.removed=[],!u||!u.document||u.document.nodeType!==xt.document||!u.Element)return a.isSupported=!1,a;let i=u.document;const r=i,o=r.currentScript;u.DocumentFragment;const f=u.HTMLTemplateElement,h=u.Node,m=u.Element,g=u.NodeFilter;u.NamedNodeMap===void 0&&(u.NamedNodeMap||u.MozNamedAttrMap),u.HTMLFormElement;const y=u.DOMParser,v=u.trustedTypes,x=m.prototype,N=Fu(x,"cloneNode"),R=Fu(x,"remove"),T=Fu(x,"removeAttributeNode"),ne=Fu(x,"nextSibling"),Q=Fu(x,"childNodes"),J=Fu(x,"parentNode"),ee=Fu(x,"shadowRoot"),ue=Fu(x,"attributes"),$=h&&h.prototype?Fu(h.prototype,"nodeType"):null,W=h&&h.prototype?Fu(h.prototype,"nodeName"):null,ce=h&&h.prototype?Fu(h.prototype,"ownerDocument"):null,te=function(_){return $?$(_):_.nodeType},ie=function(_){return W?W(_):_.nodeName},Ge=r8(x,"namespaceURI"),Ie=function(_){return Ge?Ge(_):_.namespaceURI};if(typeof f=="function"){const V=i.createElement("template");V.content&&V.content.ownerDocument&&(i=V.content.ownerDocument)}let Ee,Te="",Qe,Ue=!1,ye=0;const K=function(){if(ye>0)throw qn('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.')},re=function(_){K(),ye++;try{return Ee.createHTML(_)}finally{ye--}},ae=function(_){K(),ye++;try{return Ee.createScriptURL(_)}finally{ye--}},Ce=function(){return Ue||(Qe=S8(v,o),Ue=!0),Qe},be=i,He=be.implementation,L=be.createNodeIterator,se=be.createDocumentFragment,S=be.getElementsByTagName,H=r.importNode;let Z=Jp();a.isSupported=typeof ng=="function"&&typeof J=="function"&&He&&He.createHTMLDocument!==void 0;const fe=f8,je=d8,we=h8,Re=m8,I=p8,P=g8,ze=b8,Yt=x8;let Cu=$p,he=null;const q=Ye({},[...Yp,...gf,...bf,...yf,...Vp]);let ge=null;const it=Ye({},[...Xp,...xf,...Zp,...fs]);let At=Object.seal(ri(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}})),Vt=null,yn=null;const zt=Object.seal(ri(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Hu=!0,Ku=!0,ft=!1,xn=!0,lu=!1,Tt=!0,mu=!1,vn=!1,Du=null,_n=null,Ju=!1,vt=!1,pu=!1,Yn=!1,Ll=!0,Ct=!1;const ha="user-content-";let Vn=!0,U=!1,X=null,_e={},Ve=null;const En=Ye({},["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 Nu=null;const Xt=Ye({},["audio","video","img","source","image","track"]);let Zt=null;const qu=Ye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Dt="http://www.w3.org/1998/Math/MathML",ma="http://www.w3.org/2000/svg",ku="http://www.w3.org/1999/xhtml";let Xn=ku,Zn=!1,$n=null;const pa=Ye({},[Dt,ma,ku],pf),Pu=Rt(["mi","mo","mn","ms","mtext"]);let Qn=Ye({},Pu);const Kn=Rt(["annotation-xml"]);let ga=Ye({},Kn);const Ns=Ye({},["title","style","font","a","script"]);let Jn=null;const bi=["application/xhtml+xml","text/html"],Ul="text/html";let rt=null,Sn=null;const Lr=i.createElement("form"),yi=function(_){return _ instanceof RegExp||_ instanceof Function},Fl=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Sn&&Sn===_)return;(!_||typeof _!="object")&&(_={}),_=Au(_),Jn=bi.indexOf(_.PARSER_MEDIA_TYPE)===-1?Ul:_.PARSER_MEDIA_TYPE,rt=Jn==="application/xhtml+xml"?pf:oa,he=wl(_,"ALLOWED_TAGS",q,{transform:rt}),ge=wl(_,"ALLOWED_ATTR",it,{transform:rt}),$n=wl(_,"ALLOWED_NAMESPACES",pa,{transform:pf}),Zt=wl(_,"ADD_URI_SAFE_ATTR",qu,{transform:rt,base:qu}),Nu=wl(_,"ADD_DATA_URI_TAGS",Xt,{transform:rt,base:Xt}),Ve=wl(_,"FORBID_CONTENTS",En,{transform:rt}),Vt=wl(_,"FORBID_TAGS",Au({}),{transform:rt}),yn=wl(_,"FORBID_ATTR",Au({}),{transform:rt}),_e=du(_,"USE_PROFILES")?_.USE_PROFILES&&typeof _.USE_PROFILES=="object"?Au(_.USE_PROFILES):_.USE_PROFILES:!1,Hu=_.ALLOW_ARIA_ATTR!==!1,Ku=_.ALLOW_DATA_ATTR!==!1,ft=_.ALLOW_UNKNOWN_PROTOCOLS||!1,xn=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lu=_.SAFE_FOR_TEMPLATES||!1,Tt=_.SAFE_FOR_XML!==!1,mu=_.WHOLE_DOCUMENT||!1,vt=_.RETURN_DOM||!1,pu=_.RETURN_DOM_FRAGMENT||!1,Yn=_.RETURN_TRUSTED_TYPE||!1,Ju=_.FORCE_BODY||!1,Ll=_.SANITIZE_DOM!==!1,Ct=_.SANITIZE_NAMED_PROPS||!1,Vn=_.KEEP_CONTENT!==!1,U=_.IN_PLACE||!1,Cu=c8(_.ALLOWED_URI_REGEXP)?_.ALLOWED_URI_REGEXP:$p,Xn=typeof _.NAMESPACE=="string"?_.NAMESPACE:ku,Qn=_f(_,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ye({},Pu)),ga=_f(_,"HTML_INTEGRATION_POINTS",()=>Ye({},Kn));const C=_f(_,"CUSTOM_ELEMENT_HANDLING",()=>ri(null));if(At=ri(null),du(C,"tagNameCheck")&&yi(C.tagNameCheck)&&(At.tagNameCheck=C.tagNameCheck),du(C,"attributeNameCheck")&&yi(C.attributeNameCheck)&&(At.attributeNameCheck=C.attributeNameCheck),du(C,"allowCustomizedBuiltInElements")&&typeof C.allowCustomizedBuiltInElements=="boolean"&&(At.allowCustomizedBuiltInElements=C.allowCustomizedBuiltInElements),It(At),lu&&(Ku=!1),pu&&(vt=!0),_e&&(he=Ye({},Vp),ge=ri(null),_e.html===!0&&(Ye(he,Yp),Ye(ge,Xp)),_e.svg===!0&&(Ye(he,gf),Ye(ge,xf),Ye(ge,fs)),_e.svgFilters===!0&&(Ye(he,bf),Ye(ge,xf),Ye(ge,fs)),_e.mathMl===!0&&(Ye(he,yf),Ye(ge,Zp),Ye(ge,fs))),zt.tagCheck=null,zt.attributeCheck=null,du(_,"ADD_TAGS")&&(typeof _.ADD_TAGS=="function"?zt.tagCheck=_.ADD_TAGS:di(_.ADD_TAGS)&&(he===q&&(he=Au(he)),Ye(he,_.ADD_TAGS,rt))),du(_,"ADD_ATTR")&&(typeof _.ADD_ATTR=="function"?zt.attributeCheck=_.ADD_ATTR:di(_.ADD_ATTR)&&(ge===it&&(ge=Au(ge)),Ye(ge,_.ADD_ATTR,rt))),du(_,"ADD_FORBID_CONTENTS")&&di(_.ADD_FORBID_CONTENTS)&&(Ve===En&&(Ve=Au(Ve)),Ye(Ve,_.ADD_FORBID_CONTENTS,rt)),Vn&&(he["#text"]=!0),mu&&Ye(he,["html","head","body"]),he.table&&(Ye(he,["tbody"]),delete Vt.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Y=Ee;Ee=_.TRUSTED_TYPES_POLICY;try{Te=re("")}catch(G){throw Ee=Y,G}}else _.TRUSTED_TYPES_POLICY===null?(Ee=void 0,Te=""):(Ee===void 0&&(Ee=Ce()),Ee&&typeof Te=="string"&&(Te=re("")));Rt&&Rt(_),Sn=_},ba=Ye({},[...gf,...bf,...s8]),xi=Ye({},[...yf,...o8]),Ur=function(_,C,Y){return C.namespaceURI===ku?_==="svg":C.namespaceURI===Dt?_==="svg"&&(Y==="annotation-xml"||Qn[Y]):!!ba[_]},Gu=function(_,C,Y){return C.namespaceURI===ku?_==="math":C.namespaceURI===ma?_==="math"&&ga[Y]:!!xi[_]},_t=function(_,C,Y){return C.namespaceURI===ma&&!ga[Y]||C.namespaceURI===Dt&&!Qn[Y]?!1:!xi[_]&&(Ns[_]||!ba[_])},$t=function(_){const C=Ie(_),Y=oa(ie(_)),G=J(_);let me,xe;return G&&te(G)===xt.element?(me={namespaceURI:Ie(G)},xe=oa(ie(G))):(me={namespaceURI:Xn},xe="template"),$n[C]?C===ma?Ur(Y,me,xe):C===Dt?Gu(Y,me,xe):C===ku?_t(Y,me,xe):!!(Jn==="application/xhtml+xml"&&$n[C]):!1},Jt=function(_){xr(a.removed,{element:_});try{J(_).removeChild(_)}catch{if(R(_),!J(_))throw qn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},vi=function(_,C,Y){try{T(_,C)}catch{try{_.removeAttribute(Y)}catch{}}},_i=function(_){Wn(_);const C=Q(_);C&&Hn(e8(C),G=>{try{R(G)}catch{}});const Y=te(_)===xt.element?ue(_):null;if(Y)for(let G=Y.length-1;G>=0;--G){const me=Y[G],xe=me&&me.name;typeof xe=="string"&&vi(_,me,xe)}},Pn=function(_,C,Y){if(!Y)try{Y=C.getAttributeNode(_)}catch{Y=null}xr(a.removed,{attribute:Y||null,from:C});try{Y?T(C,Y):C.removeAttribute(_)}catch{try{C.removeAttribute(_)}catch{}}if(_==="is")if(vt||pu)try{Jt(C)}catch{}else try{C.setAttribute(_,"")}catch{}},Ei=function(_){const C=ue(_);if(C)for(let Y=C.length-1;Y>=0;--Y){const G=C[Y],me=G&&G.name;typeof me!="string"||ge[rt(me)]||vi(_,G,me)}},An=function(_,C){let Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const G=[_];for(;G.length>0;){const me=G.pop();if(C(me)===!1)continue;if(Y&&te(me)===xt.element){const Ae=ee(me);ke(Ae)&&G.push(Ae)}const xe=Q(me);if(xe)for(let Ae=xe.length-1;Ae>=0;--Ae)G.push(xe[Ae])}},Wn=function(_){An(_,C=>{te(C)===xt.element&&Ei(C)})},el=function(_){const C=[];return An(_,Y=>{C.push(Y)},!0),C},Tn=function(_,C){const Y=hf();Hn(el(_),G=>{te(G)===xt.element&&mf(Y,G)}),Hn(C,G=>{te(G)===xt.element&&!vr(Y,G)&&Ei(G)})},Cn=function(_,C){let Y=!1;return Hn(a.removed,G=>{G.element&&(Y=Y||G.element===_,Wn(G.element))}),Tn(_,C),Y},Bl=8,tl=function(_,C){const Y=X;let G=null;const me=()=>(G||(G=hf(),Hn(C,xe=>{mf(G,xe)})),G);for(let xe=0;;xe++){const Ae=el(_),Ze=[_];let iu=!1;if(Hn(Ae,Et=>{te(Et)===xt.documentFragment?xr(Ze,Et):!iu&&!vr(Y,Et)&&(iu=vr(me(),Et))}),!iu)return;if(xe>=Bl)throw qn("the tree kept changing during in-place sanitization; refusing to return it");Hn(Ze,(Et,dt)=>{mt(Et,dt>0,_,me())})}},mt=function(_,C,Y,G){const me=en(_);let xe;for(;xe=me.nextNode();)!vr(G,xe)||vr(X,xe)||(C&&Qt(Z.uponSanitizeShadowNode,xe,null),Hl(xe,Y),tn(xe,Y),ke(xe.content)&&ll(xe.content))},Fr=function(_){X&&mf(X,_)},Si=function(_,C){return Tt?_==="patchsrc"?!0:_==="for"&&C!=="label"&&C!=="output":!1},Br=function(_){Tt&&An(_,C=>{const Y=te(C);if(Y===xt.processingInstruction||Y===xt.comment&&Gt(Qp,C.data)){try{R(C)}catch{}return!1}if(Y===xt.element){const G=C,me=rt(ie(C));try{G.hasAttribute&&G.hasAttribute("patchsrc")&&G.removeAttribute("patchsrc"),G.hasAttribute&&G.hasAttribute("for")&&Si("for",me)&&G.removeAttribute("for")}catch{}}return!0})},Wu=function(_){let C=null,Y=null;if(Ju)_="<remove></remove>"+_;else{const xe=Hp(_,/^[\r\n\t ]+/);Y=xe&&xe[0]}Jn==="application/xhtml+xml"&&Xn===ku&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const G=Ee?re(_):_;if(Xn===ku)try{C=new y().parseFromString(G,Jn)}catch{}if(!C||!C.documentElement){C=He.createDocument(Xn,"template",null);try{C.documentElement.innerHTML=Zn?Te:G}catch{}}const me=C.body||C.documentElement;return _&&Y&&me.insertBefore(i.createTextNode(Y),me.childNodes[0]||null),Xn===ku?S.call(C,mu?"html":"body")[0]:mu?C.documentElement:me},en=function(_){const C=ce?ce(_):_.ownerDocument;return L.call(C||_,_,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},ya=function(_){return _=_r(_,fe," "),_=_r(_,je," "),_=_r(_,we," "),_},xa=function(_){var C;Ai(_);const Y=(C=_.querySelectorAll)===null||C===void 0?void 0:C.call(_,"template");Y&&Hn(Y,G=>{ke(G.content)&&xa(G.content)})},Ai=function(_){_.normalize();const C=ce?ce(_):_.ownerDocument,Y=L.call(C||_,_,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let G=Y.nextNode();for(;G;)G.data=ya(G.data),G=Y.nextNode()},va=function(_){const C=W?W(_):null;return typeof C!="string"||rt(C)!=="form"?!1:typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||_.attributes!==ue(_)||typeof _.removeAttribute!="function"||typeof _.removeAttributeNode!="function"||typeof _.getAttributeNode!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function"||_.nodeType!==$(_)||_.childNodes!==Q(_)},ke=function(_){if(!$||typeof _!="object"||_===null)return!1;try{return $(_)===xt.documentFragment}catch{return!1}},ul=function(_){if(!$||typeof _!="object"||_===null)return!1;try{return typeof $(_)=="number"}catch{return!1}};function Qt(V,_,C){V.length!==0&&Hn(V,Y=>{Y.call(a,_,C,Sn)})}const _a=function(_,C){return!!(Tt&&_.hasChildNodes()&&!ul(_.firstElementChild)&&Gt(vf,_.textContent)&&Gt(vf,_.innerHTML)||Tt&&_8[C]&&te(_)===xt.element&&Ie(_)===ku&&(ul(_.firstElementChild)||typeof _.textContent=="string"&&Gt(vf,_.textContent))||_.nodeType===xt.processingInstruction||Tt&&_.nodeType===xt.comment&&Gt(Qp,_.data))},au=function(_,C){if(_ instanceof RegExp)return Gt(_,C);if(_ instanceof Function){for(var Y=arguments.length,G=new Array(Y>2?Y-2:0),me=2;me<Y;me++)G[me-2]=arguments[me];return!!_(C,...G)}return!1},Pt=function(_,C,Y){if(!Vt[C]&&Wt(C)&&au(At.tagNameCheck,C))return!1;if(Vn&&!Ve[C]&&!Ve[oa(C)]){const G=J(_),me=Q(_);if(me&&G){const xe=me.length;for(let Ae=xe-1;Ae>=0;--Ae){const Ze=_===Y?N(me[Ae],!0):me[Ae];G.insertBefore(Ze,ne(_))}}}return Jt(_),!0},Ti=function(_,C,Y,G){return _.length===0?C:C===Y||C===G?Au(C):C},nl=function(_,C){return _===C||J(_)!==null?!1:(U&&Wn(_),!0)},Hl=function(_,C){if(Fr(_),Qt(Z.beforeSanitizeElements,_,null),nl(_,C))return!0;if(va(_))return Jt(_),!0;const Y=rt(ie(_));if(he=Ti(Z.uponSanitizeElement,he,q,Du),Qt(Z.uponSanitizeElement,_,{tagName:Y,allowedTags:he}),nl(_,C))return!0;if(_a(_,Y))return Jt(_),!0;if(Vt[Y]||!(zt.tagCheck instanceof Function&&zt.tagCheck(Y))&&!he[Y]){const G=Pt(_,Y,C);return G===!1&&(Qt(Z.afterSanitizeElements,_,null),nl(_,C))?!0:G}if(te(_)===xt.element&&!$t(_)||(Y==="noscript"||Y==="noembed"||Y==="noframes")&&Gt(v8,_.innerHTML))return Jt(_),!0;if(lu&&_.nodeType===xt.text){const G=ya(_.textContent);_.textContent!==G&&(xr(a.removed,{element:_.cloneNode()}),_.textContent=G)}return Qt(Z.afterSanitizeElements,_,null),nl(_,C)},Ci=function(_,C,Y){if(yn[C]||Si(C,_)||Ll&&(C==="id"||C==="name")&&(Y in i||Y in Lr))return!1;const G=ge[C]||zt.attributeCheck instanceof Function&&zt.attributeCheck(C,_);return Ku&&Gt(Re,C)||Hu&&Gt(I,C)?!0:G?Zt[C]||Gt(Cu,_r(Y,ze,""))||(C==="src"||C==="xlink:href"||C==="href")&&_!=="script"&&qp(Y,"data:")===0&&Nu[_]||ft&&!Gt(P,_r(Y,ze,""))?!0:!Y:Wt(_)&&au(At.tagNameCheck,_)&&au(At.attributeNameCheck,C,_)||C==="is"&&At.allowCustomizedBuiltInElements&&au(At.tagNameCheck,Y)},ks=Ye({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Wt=function(_){return!ks[oa(_)]&&Gt(Yt,_)},Di=function(_,C,Y,G){if(Ee&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!Y)switch(v.getAttributeType(_,C)){case"TrustedHTML":return re(G);case"TrustedScriptURL":return ae(G)}return G},Hr=function(_,C,Y,G){try{return Y?_.setAttributeNS(Y,C,G):_.setAttribute(C,G),va(_)?(Jt(_),!1):!0}catch{return Pn(C,_),!1}},Ea=function(_,C){return Tt&&Gt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,C)?!0:oa(_)==="attributename"&&Hp(C,"href")!==null},tn=function(_,C){if(Qt(Z.beforeSanitizeAttributes,_,null),nl(_,C))return;const Y=_.attributes;if(!Y||va(_))return;ge=Ti(Z.uponSanitizeAttribute,ge,it,_n);const G={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ge,forceKeepAttr:void 0};let me=Y.length;const xe=rt(_.nodeName);for(;me--;){const Ae=Y[me],Ze=Ae.name,iu=Ae.namespaceURI,Et=Ae.value,dt=rt(Ze),gu=Et;let Mt=Ze==="value"?gu:u8(gu),Aa=!1;if(G.attrName=dt,G.attrValue=Mt,G.keepAttr=!0,G.forceKeepAttr=void 0,Qt(Z.uponSanitizeAttribute,_,G),Mt=G.attrValue,Ct&&(dt==="id"||dt==="name")&&qp(Mt,ha)!==0&&(Pn(Ze,_,Ae),Mt=ha+Mt,Aa=!0),Ea(Ze,Mt)){Pn(Ze,_,Ae);continue}if(!G.forceKeepAttr){if(!G.keepAttr){Pn(Ze,_,Ae);continue}if(!xn&&Gt(Kp,Mt)){Pn(Ze,_,Ae);continue}if(lu&&(Mt=ya(Mt)),!Ci(xe,dt,Mt)){Pn(Ze,_,Ae);continue}Mt=Di(xe,dt,iu,Mt),Mt!==gu&&Hr(_,Ze,iu,Mt)&&Aa&&Bp(a.removed)}}Qt(Z.afterSanitizeAttributes,_,null),nl(_,C)},ll=function(_){let C=null;const Y=en(_);for(Qt(Z.beforeSanitizeShadowDOM,_,null);C=Y.nextNode();)if(Qt(Z.uponSanitizeShadowNode,C,null),Hl(C,_),tn(C,_),ke(C.content)&&ll(C.content),te(C)===xt.element){const G=ee(C);ke(G)&&(Sa(G),ll(G))}lu&&Ai(_),Qt(Z.afterSanitizeShadowDOM,_,null)},Sa=function(_){const C=[{node:_,shadow:null}];for(;C.length>0;){const Y=C.pop();if(Y.shadow){ll(Y.shadow);continue}const G=Y.node,me=te(G)===xt.element,xe=Q(G);if(xe)for(let Ae=xe.length-1;Ae>=0;--Ae)C.push({node:xe[Ae],shadow:null});if(me){const Ae=W?W(G):null;if(typeof Ae=="string"&&rt(Ae)==="template"){const Ze=G.content;ke(Ze)&&C.push({node:Ze,shadow:null})}}if(me){const Ae=ee(G);ke(Ae)&&C.push({node:null,shadow:Ae},{node:Ae,shadow:null})}}};return a.sanitize=function(V){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,Y=null,G=null,me=null;if(Zn=!V,Zn&&(V="<!-->"),typeof V!="string"&&!ul(V)&&(V=i8(V),typeof V!="string"))throw qn("dirty is not a string, aborting");if(!a.isSupported)return V;vn?(he=Du,ge=_n):Fl(_),(Z.uponSanitizeElement.length>0||Z.uponSanitizeAttribute.length>0)&&(he=Au(he)),Z.uponSanitizeAttribute.length>0&&(ge=Au(ge)),a.removed=[];const xe=U&&typeof V!="string"&&ul(V);let Ae=[];const Ze=X;if(xe){Br(V);const dt=ie(V);if(typeof dt=="string"){const gu=rt(dt);if(!he[gu]||Vt[gu])throw _i(V),qn("root node is forbidden and cannot be sanitized in-place")}if(va(V))throw _i(V),qn("root node is clobbered and cannot be sanitized in-place");Ae=el(V),X=hf()}else if(ul(V))C=Wu("<!---->"),Y=C.ownerDocument.importNode(V,!0),Y.nodeType===xt.element&&Y.nodeName==="BODY"||Y.nodeName==="HTML"?C=Y:C.appendChild(Y),Sa(C);else{if(!vt&&!lu&&!mu&&V.indexOf("<")===-1)return Ee&&Yn?re(V):V;if(C=Wu(V),!C)return vt?null:Yn?Te:""}C&&Ju&&Jt(C.firstChild);const iu=xe?V:C;try{xe&&Sa(V);const dt=en(iu);for(;G=dt.nextNode();)Hl(G,iu),tn(G,iu),ke(G.content)&&ll(G.content);xe&&tl(V,Ae)}catch(dt){throw xe&&(_i(V),Cn(V,Ae)),dt}finally{X=Ze}if(xe){if(Cn(V,Ae))throw qn("a node selected for removal could not be safely returned; refusing to sanitize in place");return lu&&xa(V),V}if(vt){if(lu&&xa(C),pu)for(me=se.call(C.ownerDocument);C.firstChild;)me.appendChild(C.firstChild);else me=C;return(ge.shadowroot||ge.shadowrootmode)&&(me=H.call(r,me,!0)),me}let Et=mu?C.outerHTML:C.innerHTML;return mu&&he["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&Gt(y8,C.ownerDocument.doctype.name)&&(Et="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
38
+ `+Et),lu&&(Et=ya(Et)),Ee&&Yn?re(Et):Et},a.setConfig=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fl(V),vn=!0,Du=he,_n=ge},a.clearConfig=function(){Sn=null,vn=!1,Du=null,_n=null,Ee=Qe,Te=""},a.isValidAttribute=function(V,_,C){Sn||Fl({});const Y=rt(V),G=rt(_);return typeof C=="string"&&(Ea(_,C)||!xn&&Gt(Kp,C))?!1:Ci(Y,G,C)},a.addHook=function(V,_){typeof _=="function"&&du(Z,V)&&xr(Z[V],_)},a.removeHook=function(V,_){if(du(Z,V)){if(_!==void 0){const C=Wv(Z[V],_);return C===-1?void 0:t8(Z[V],C,1)[0]}return Bp(Z[V])}},a.removeHooks=function(V){du(Z,V)&&(Z[V]=[])},a.removeAllHooks=function(){Z=Jp()},a}var A8=cg();let Ef;function T8(){if(Ef)return Ef;const u=A8,i=typeof u=="function"?u(globalThis.window):u;return i.addHook("afterSanitizeAttributes",r=>{const o=r;o.tagName==="A"&&typeof o.setAttribute=="function"&&(o.setAttribute("rel","noopener noreferrer nofollow"),o.setAttribute("target","_blank"))}),Ef=i,i}const C8=new Bu({html:!1,linkify:!0,breaks:!1,typographer:!1}),D8=4e6,N8=2e4,sa=new Map;let Sf=0;function k8(u){if(!u)return"";const a=u.length<=N8;if(a){const r=sa.get(u);if(r!==void 0)return sa.delete(u),sa.set(u,r),r}const i=j8(u);if(a)for(sa.set(u,i),Sf+=u.length+i.length;Sf>D8;){const r=sa.keys().next();if(r.done===!0)break;const o=sa.get(r.value)??"";Sf-=r.value.length+o.length,sa.delete(r.value)}return i}function j8(u){return T8().sanitize(C8.render(u),{ALLOWED_TAGS:["p","br","hr","strong","em","del","s","blockquote","code","pre","ul","ol","li","h1","h2","h3","h4","h5","h6","a","img","table","thead","tbody","tr","th","td","span","div","sup","sub"],ALLOWED_ATTR:["href","src","alt","title","class","target","rel","colspan","rowspan"],ALLOWED_URI_REGEXP:/^(?:https?|mailto):/i})}function Pp({text:u,streaming:a=!1}){const i=w.useMemo(()=>k8(u),[u]);return d.jsx("div",{className:"prose",dangerouslySetInnerHTML:{__html:i},"data-streaming":a||void 0})}const w8=w.memo(function({code:a,lang:i}){const[r,o]=w.useState(void 0),[f,h]=w.useState("pending");w.useEffect(()=>{if(i.length===0){h("unavailable");return}let g=!0;return ux(a,i).then(y=>{g&&(o(y),h(y?"highlighted":"unavailable"))}),()=>{g=!1}},[a,i]);const m=r&&r.lang.toLowerCase()===i.toLowerCase();return d.jsxs("div",{className:"code-block",children:[i.length>0&&d.jsxs("div",{className:"code-lang",children:[i,f==="unavailable"&&d.jsx("span",{className:"code-lang-note",children:" · not highlighted"})]}),m?d.jsx("div",{className:"code-body","data-lang":i,children:lx(r)}):d.jsx("pre",{className:"code-plain",children:d.jsx("code",{children:a})})]})}),O8=w.memo(function({text:a,streaming:i=!1}){const r=w.useMemo(()=>ix(a),[a]),o=w.useMemo(()=>rx(r),[r]);return r.some(h=>h.kind==="code")?d.jsx("div",{className:"prose","data-streaming":i||void 0,"data-has-code":o.length>0||void 0,children:r.map((h,m)=>h.kind==="prose"?h.text.trim().length===0?null:d.jsx(Pp,{text:h.text},`p${m}`):d.jsx(w8,{code:h.code,lang:h.lang},`c${m}`))}):d.jsx(Pp,{text:a,streaming:i})}),R8=24,Gn=new Map;function z8(u){const a=atob(u),i=new Uint8Array(new ArrayBuffer(a.length));for(let r=0;r<a.length;r+=1)i[r]=a.charCodeAt(r);return i}function M8(u,a,i){const r=Gn.get(u);if(r!==void 0&&r.type===a)return Gn.delete(u),Gn.set(u,r),r.url;r!==void 0&&(URL.revokeObjectURL(r.url),Gn.delete(u));const o=new Blob([z8(i)],{type:a}),f=URL.createObjectURL(o);for(Gn.set(u,{url:f,type:a});Gn.size>R8;){const h=Gn.keys().next();if(h.done===!0)break;const m=Gn.get(h.value);m!==void 0&&URL.revokeObjectURL(m.url),Gn.delete(h.value)}return f}function sg(u,a,i){const[r,o]=w.useState(()=>Wp(u,a,i));return w.useEffect(()=>{const f=Wp(u,a,i);o(f)},[u,a,i]),r}function Wp(u,a,i){if(i.length!==0)try{return M8(u,a,i)}catch{return}}function og({block:u,identity:a,role:i}){const[r,o]=w.useState(!1),f=u.refused,h=By(u.base64),m=h>0?da(h):"no data",g=sg(a,u.type,f===void 0&&!r?u.base64:"");return f==="unsupported-type"?d.jsx("figure",{className:"turn-image is-refused",children:d.jsxs("p",{className:"turn-image-note",role:"note",children:[d.jsx("strong",{children:u.type})," image not shown — this view displays PNG, JPEG, GIF and WebP only. Its ",m," are recorded in the session, so the agent can still see it."]})}):f==="no-payload"?d.jsx("figure",{className:"turn-image is-refused",children:d.jsxs("p",{className:"turn-image-note",role:"note",children:["This message recorded a ",d.jsx("strong",{children:u.type})," image with no data. Nothing can be shown, and nothing is missing from the view: the session itself holds an empty payload."]})}):r||g===void 0?d.jsx("figure",{className:"turn-image is-refused",children:d.jsxs("p",{className:"turn-image-note",role:"note",children:[d.jsx("strong",{children:"Could not display this image"})," — the browser could not decode its ",m," as"," ",u.type,". The session holds it; this view cannot draw it."]})}):d.jsxs("figure",{className:"turn-image",children:[d.jsx("img",{className:"turn-image-img",src:g,alt:`Image in ${i==="user"?"your":`the ${i}'s`} message`,onError:()=>o(!0),loading:"lazy",decoding:"async"}),d.jsxs("figcaption",{className:"turn-image-meta",children:[u.type," · ",m]})]})}function L8({path:u,state:a,identity:i}){const[r,o]=w.useState(!1);return a.status==="unloaded"?null:a.status==="loading"?d.jsxs("p",{className:"turn-image-ref is-pending",role:"status",children:["Reading ",d.jsx("span",{className:"mono",children:u}),"…"]}):a.status==="error"?d.jsxs("p",{className:"turn-image-ref is-refused",role:"note",children:[d.jsx("span",{className:"mono",children:u})," —"," ",a.reason==="not-found"?"this file is not in the session's directory.":a.reason==="binary"?"this file is not an image this view can draw.":a.reason==="escapes-cwd"||a.reason==="absolute-path"?"this path is outside the session's directory, so it was refused.":a.reason==="permission"?"this file could not be read: permission denied.":a.message,a.code!==void 0&&d.jsxs("span",{className:"turn-image-ref-code mono",children:[" ",a.code]})]}):a.content.kind==="text"?d.jsxs("p",{className:"turn-image-ref is-refused",role:"note",children:[d.jsx("span",{className:"mono",children:u})," — this file is text, not an image."]}):d.jsx(U8,{path:u,type:a.content.type,base64:a.content.base64,bytes:a.bytes,identity:i,expanded:r,onToggle:()=>o(f=>!f)})}function U8({path:u,type:a,base64:i,bytes:r,identity:o,expanded:f,onToggle:h}){const[m,g]=w.useState(!1),y=sg(o,a,m?"":i);return w.useEffect(()=>{g(!1)},[i,a]),m||y===void 0?d.jsxs("p",{className:"turn-image-ref is-refused",role:"note",children:[d.jsx("span",{className:"mono",children:u})," — the browser could not decode this ",a," file."]}):d.jsxs("figure",{className:`turn-image-ref${f?" is-expanded":""}`,children:[d.jsx("button",{type:"button",className:"turn-image-ref-button",onClick:h,"aria-expanded":f,title:f?`Collapse ${u}`:`Expand ${u}`,children:d.jsx("img",{className:"turn-image-ref-img",src:y,alt:`Preview of ${u}`,onError:()=>g(!0),loading:"lazy",decoding:"async"})}),d.jsxs("figcaption",{className:"turn-image-ref-meta",children:[d.jsx("span",{className:"mono",children:u})," · ",a," · ",da(r),d.jsx("span",{className:"turn-image-ref-hint",children:f?"click to collapse":"click to enlarge"})]})]})}function F8({parts:u,tools:a,open:i,onToggle:r,live:o,onOpenTool:f}){const h=T2(u,a),m=Y6(h),g=o&&D2(h),y=new Map(a.map(x=>[x.toolCallId,x])),v=[];for(const x of u){if(x.kind==="thinking"){v.push({kind:"thinking",part:x});continue}const N=y.get(x.toolCallId);N!==void 0&&v.push({kind:"tool",part:x,tool:N})}return d.jsxs("details",{className:`activity${g?" is-live":""}${h.failed>0?" has-error":""}`,open:i,onToggle:x=>r(x.currentTarget.open),children:[d.jsxs("summary",{className:"activity-summary",title:"Show what the agent did: each call and its reasoning",children:[d.jsx("span",{className:`activity-glyph${g?" is-live":""}`,"aria-hidden":"true",children:"●"}),d.jsx("span",{className:"activity-primary",children:m.primary}),m.detail!==void 0&&d.jsx("span",{className:"activity-detail",children:m.detail}),d.jsx("span",{className:"spacer"}),h.names.length>0&&d.jsx("span",{className:"activity-names mono",children:h.names.join(" · ")}),d.jsx("span",{className:"m-open","aria-hidden":"true",children:"⌄"})]}),d.jsx("div",{className:"activity-body",children:d.jsx("ol",{className:"activity-steps",children:v.map(x=>x.kind==="thinking"?d.jsx("li",{className:"activity-step is-thought",children:d.jsxs("details",{className:"activity-thought",children:[d.jsxs("summary",{className:"activity-thought-head",children:[d.jsx("span",{className:`activity-dot is-thought${x.part.complete?"":" is-live"}`,"aria-hidden":"true"}),d.jsx("span",{className:"activity-step-kind",children:"Thinking"}),!x.part.complete&&d.jsx("span",{className:"activity-thought-state",children:"thinking…"}),d.jsx("span",{className:"spacer"}),e2(x.part.text).length>0&&d.jsx("span",{className:"activity-thought-gist",children:e2(x.part.text)})]}),d.jsx("pre",{className:"activity-thought-body",children:x.part.text})]})},x.part.key):d.jsxs("li",{className:`activity-step is-tool${x.tool.isError?" has-error":""}${x.tool.running?" is-running":""}`,children:[d.jsx("span",{className:`activity-dot${x.tool.running?" is-live":x.tool.isError?" is-failed":x.tool.unfinished===!0?" is-missing":""}`,"aria-hidden":"true"}),d.jsx("span",{className:"activity-step-kind",children:"Tool output"}),d.jsx("span",{className:"activity-step-label mono",title:mp(x.tool),children:mp(x.tool)}),x.tool.isError&&d.jsx("span",{className:"err",children:"failed"}),x.tool.running&&d.jsx("span",{className:"activity-step-running",children:"running"}),x.tool.unfinished===!0&&d.jsx("span",{className:"activity-step-missing",children:"no result"}),d.jsx("span",{className:"spacer"}),f!==void 0&&d.jsx("button",{type:"button",className:"activity-step-action",onClick:()=>f(x.tool.toolCallId),title:"Show the arguments and output in the tool trace",children:"Inspect"})]},x.part.key))})})]})}function e2(u){const a=u.replace(/\s+/g," ").trim();if(a.length===0)return"";const i=96;if(a.length<=i)return a;const r=a.slice(0,i),o=r.lastIndexOf(" ");return`${(o>i*.5?r.slice(0,o):r).replace(/[,;:.\u2014-]+$/,"")}…`}function B8(u){const a=u.ended;if(!a)return"Compacting context…";if(a.aborted)return"Context compaction stopped.";if(a.errorMessage!==void 0)return`Context compaction failed: ${a.errorMessage}`;if(a.willRetry)return"Context compaction failed; retrying…";const i=u.tokensBefore,r=u.tokensAfter;return typeof i=="number"&&typeof r=="number"?`Context compacted: ${Nf(i)} → ${Nf(r)} tokens.`:"Context compacted."}function H8(u){switch(u){case"overflow":return"the context was full";case"threshold":return"the context crossed the threshold";case"manual":return"you asked for it";default:return}}function q8({notice:u}){const a=Qy(u);if(u.kind==="compaction"){const r=H8(u.reason);return d.jsxs("div",{className:"run-notice","data-kind":"compaction","data-open":a||void 0,children:[d.jsx("span",{className:"notice-glyph","aria-hidden":"true",children:a?"◐":u.ended?.aborted||u.ended?.errorMessage?"✕":"✓"}),d.jsx("span",{className:"notice-text",children:B8(u)}),a&&r!==void 0&&d.jsxs("span",{className:"notice-note",children:["(",r,")"]})]})}if(u.kind==="retry"){const r=u.ended,o=`Retrying (${u.attempt}/${u.maxAttempts})`,f=u.delayMs>0?` in ${Math.round(u.delayMs/1e3)}s`:"";return r?d.jsxs("div",{className:"run-notice","data-kind":"retry",children:[d.jsx("span",{className:"notice-glyph","aria-hidden":"true",children:r.success?"✓":"✕"}),d.jsx("span",{className:"notice-text",children:r.success?`Recovered after ${u.attempt} ${u.attempt===1?"retry":"retries"}.`:`Gave up after ${u.attempt} ${u.attempt===1?"attempt":"attempts"}: ${r.finalError??u.errorMessage}`})]}):d.jsxs("div",{className:"run-notice","data-kind":"retry","data-open":!0,children:[d.jsx("span",{className:"notice-glyph","aria-hidden":"true",children:"↻"}),d.jsxs("span",{className:"notice-text",children:[o,f," after ",u.errorMessage||"a provider error"]})]})}const i=u.source==="branchSummary"?"summary of the earlier branch":"context summary";return d.jsxs("div",{className:"run-notice","data-kind":"summarization","data-open":a||void 0,children:[d.jsx("span",{className:"notice-glyph","aria-hidden":"true",children:u.finished?"✓":"↻"}),d.jsx("span",{className:"notice-text",children:u.finished?`Recovered while building the ${i}.`:`Retrying the ${i} (${u.attempt}/${u.maxAttempts})${u.errorMessage!==void 0?`: ${u.errorMessage}`:""}`})]})}function G8({notices:u}){return u===void 0||u.length===0?null:d.jsx("div",{className:"run-notices",children:u.map((a,i)=>d.jsx(q8,{notice:a},`${a.kind}-${i}`))})}const fg=80;function I8(u,a=fg){const{scrollHeight:i,scrollTop:r,clientHeight:o}=u;return!Number.isFinite(i)||!Number.isFinite(r)||!Number.isFinite(o)||o<=0?!0:i-r-o<a}function Y8({initialScroll:u,onScrollMemory:a,transcript:i,busy:r,sessionId:o,preview:f,previews:h,sessionLabel:m,followToken:g=0,autoFollow:y=!0,expectedCount:v=0,loading:x=!1,onOpenTool:N,showMarkers:R=!0,activityOpen:T={},onToggleActivity:ne=()=>{},onToggleAutoFollow:Q,header:J,footer:ee,historyError:ue}){const $=w.useRef(null),W=w.useRef(null),ce=w.useRef(!0),[te,ie]=w.useState(!0),Ge=w.useRef(a);Ge.current=a;const Ie=w.useRef(void 0);w.useEffect(()=>{const L=W.current;if(!L)return;const se=()=>{const S={scrollTop:L.scrollTop,scrollHeight:L.scrollHeight,clientHeight:L.clientHeight},H=Ie.current;ef(S)&&(Ie.current=S);const Z=H!==void 0&&ef(H)?Dy(H,S,fg):I8(L);Te.current||(ce.current=Z,ie(Z),ef(S)&&Ge.current?.({scrollTop:S.scrollTop,pinned:Z}))};return L.addEventListener("scroll",se,{passive:!0}),se(),Te.current=!1,()=>L.removeEventListener("scroll",se)},[]);const Ee=w.useRef(void 0),Te=w.useRef(!0);w.useLayoutEffect(()=>{const L=Ay(u);if(L.kind==="follow-end"){ce.current=!0,ie(!0);return}ce.current=L.pinned,ie(L.pinned),Ee.current={scrollTop:L.scrollTop,pinned:L.pinned}},[]),w.useLayoutEffect(()=>{const L=Ee.current;if(!L)return;const se=W.current;se&&Ty(se.scrollHeight,se.clientHeight)&&(se.scrollTop=L.scrollTop,Ee.current=void 0)});const Qe=w.useRef(g);w.useEffect(()=>{if(Qe.current===g)return;Qe.current=g,ce.current=!0,ie(!0);const L=W.current;L&&(L.scrollTop=L.scrollHeight)},[g]),w.useEffect(()=>{ip(y,ce.current)&&$.current?.scrollIntoView({block:"end"})});const Ue=w.useRef(null);w.useEffect(()=>{const L=Ue.current;if(L===null||typeof ResizeObserver>"u")return;const se=new ResizeObserver(()=>{if(!ip(y,ce.current))return;const S=W.current;S!==null&&(S.scrollTop=S.scrollHeight)});return se.observe(L),()=>se.disconnect()},[y]);const ye=w.useCallback(()=>{ce.current=!0,ie(!0);const L=$.current;if(!L)return;typeof L.scrollIntoView=="function"&&L.scrollIntoView({block:"end",behavior:"smooth"});const se=W.current;se&&(se.scrollTop=se.scrollHeight)},[]),K=i.messages.length===0&&i.tools.length===0,re=K&&v>0&&ue===void 0,ae=K&&ue!==void 0,Ce=w.useMemo(()=>q6(i),[i]),be=w.useMemo(()=>{const L=[];for(const se of i.messages){if(se.role!=="user")continue;const S=A2(se,se.blocks.map((Z,fe)=>fe).filter(Z=>se.blocks[Z]?.kind==="text")).join(`
39
+ `),H=L6(S);H.length>0&&L.push({messageId:se.id,paths:H})}return L},[i]),He=w.useCallback(L=>be.find(se=>se.messageId===L)?.paths,[be]);return w.useEffect(()=>{if(f!==void 0)for(const{paths:L}of be)for(const se of L)f(se)},[be,f]),d.jsx("div",{className:"transcript-shell",children:d.jsxs("div",{className:`transcript-wrap${J!==void 0?" has-header":""}`,children:[J!==void 0&&d.jsx("div",{className:"transcript-header",children:J}),d.jsxs("div",{className:"transcript-main",children:[d.jsxs("div",{className:"transcript-viewport",children:[d.jsxs("div",{className:"transcript",ref:W,tabIndex:0,role:"region","aria-label":`Transcript for ${m}`,"aria-busy":r||void 0,children:[d.jsxs("div",{className:"transcript-lane",ref:Ue,children:[ae?d.jsxs("div",{className:"empty",style:{padding:0},children:[d.jsx("h2",{children:"Could not load this session's history"}),d.jsx("p",{children:ue}),d.jsxs("p",{className:"dim",children:[`Pi reports ${v} message${v===1?"":"s"} in this session, `,"so they exist — the request for them failed. Reconnect, or reload the page, to try again."]})]}):re?d.jsxs("div",{className:"empty",style:{padding:0},children:[d.jsx("h2",{children:"Loading this session's history…"}),d.jsxs("p",{children:[`Pi reports ${v} message${v===1?"":"s"} in this session. `,"They are being fetched; nothing is missing."]})]}):K&&!x?d.jsxs("div",{className:"empty",style:{padding:0},children:[d.jsx("h2",{children:"No messages yet."}),d.jsxs("p",{children:["This session works in its own scratch workspace. Anything it writes stays there. To work in a project, use ",d.jsx("strong",{children:"Open in a directory"}),"."]})]}):d.jsx(d.Fragment,{children:Ce.map(L=>L.kind==="activity"?Z6(L.parts,i.tools,R)?d.jsx(F8,{parts:L.parts,tools:i.tools,live:r,onOpenTool:N,open:T[L.key]??!1,onToggle:se=>ne(L.key,se)},L.key):null:d.jsx(V8,{entry:L,sessionId:o,previews:h,referenced:He(L.message.id)},L.key))}),d.jsx(G8,{notices:i.notices})]}),d.jsx("div",{ref:$})]}),!te&&d.jsxs("button",{type:"button",className:"jump-latest",onClick:ye,title:"Scroll to the newest message and follow along again",children:[d.jsx("span",{"aria-hidden":"true",children:"↓"})," Jump to latest"]})]}),ee!==void 0&&d.jsx("div",{className:"transcript-footer",children:d.jsx("div",{className:"composer-dock",children:ee})})]})]})})}const V8=w.memo(function({entry:a,sessionId:i,previews:r,referenced:o}){const{message:f}=a,h=f.role==="user"?"You":f.role==="assistant"?"Assistant":f.role,m=A2(f,a.textIndexes),g=I6(f,a.imageIndexes);return m.length===0&&g.length===0?null:d.jsxs("article",{className:`turn measure turn-${f.role}`,children:[d.jsxs("div",{className:"role",children:[d.jsx("span",{children:h}),f.streaming&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"live-dot","aria-hidden":"true"}),d.jsx("span",{children:"responding…"})]})]}),m.map((y,v)=>d.jsx(O8,{text:y,streaming:f.streaming&&v===m.length-1},`${a.key}:${a.textIndexes[v]??v}`)),g.map(({index:y,block:v})=>d.jsx(og,{block:v,identity:qy(i,f.id,y),role:f.role},`${a.key}:image:${y}`)),o!==void 0&&r!==void 0&&o.map(y=>d.jsx(L8,{path:y,state:r(y),identity:`${i}\0${f.id}\0ref\0${y}`},`${a.key}:ref:${y}`))]})},X8);function X8(u,a){return u.sessionId!==a.sessionId||u.entry.message!==a.entry.message||u.previews!==a.previews||u.referenced!==a.referenced?!1:t2(u.entry.textIndexes,a.entry.textIndexes)&&t2(u.entry.imageIndexes,a.entry.imageIndexes)}function t2(u,a){return u===a?!0:u.length!==a.length?!1:u.every((i,r)=>i===a[r])}const dg=3*1024*1024,Tr=4,hg=6*1024*1024,mg=["image/png","image/jpeg","image/gif","image/webp"];function u2(u,a={}){switch(u){case"unsupported-type":return`${a.type??"that file"} cannot be attached — PNG, JPEG, GIF and WebP only`;case"too-large":return`that image is ${ds(a.bytes??0)}, above the ${ds(dg)} limit — downscale it and paste again`;case"too-many":return`a prompt can carry ${Tr} images — remove one to add another`;case"batch-too-large":return`these images total ${ds(a.bytes??0)} encoded, above the ${ds(hg)} limit for one prompt — remove one or downscale them`}}function ds(u){return!Number.isFinite(u)||u<=0?"an unknown size":`${(u/(1024*1024)).toFixed(1)} MB`}function pg(u){if(u.length===0)return 0;const a=u.endsWith("==")?2:u.endsWith("=")?1:0;return Math.floor(u.length*3/4)-a}function Z8(u,a,i){const r=a.mediaType.toLowerCase();if(!mg.includes(r))return{ok:!1,reason:"unsupported-type"};const o=pg(a.data);return o>dg?{ok:!1,reason:"too-large"}:u.length>=Tr?{ok:!1,reason:"too-many"}:u.reduce((h,m)=>h+m.data.length,0)+a.data.length>hg?{ok:!1,reason:"batch-too-large"}:{ok:!0,attachments:[...u,{id:i,mediaType:r,data:a.data,bytes:o,label:a.label}]}}function $8(u,a){return u.filter(i=>i.id!==a)}function n2(u,a){return u.trim().length>0||a.length>0}function Q8(u){return u===void 0?"unknown":u.includes("image")?"yes":"no"}function K8(u){return u.map(({mediaType:a,data:i})=>({mediaType:a,data:i}))}const J8=1568,l2=.85;function a2(u){if(u===null)return[];const a=[];for(const i of Array.from(u.files??[]))i.type.startsWith("image/")&&a.push(i);if(a.length>0)return a;for(const i of Array.from(u.items??[])){if(i.kind!=="file")continue;const r=i.getAsFile();r!==null&&r.type.startsWith("image/")&&a.push(r)}return a}async function P8(u,a){try{const i=await W8(u);if(i===null)return null;const{width:r,height:o}=e_(i.width,i.height,J8),f=u.type==="image/png"||u.type==="image/gif"?"image/png":"image/jpeg",h=await t_(i,r,o,f);return i.close!==void 0&&i.close(),{mediaType:f,data:h,label:a??(u.name.length>0?u.name:"pasted image")}}catch{return null}}async function W8(u){if(typeof createImageBitmap=="function"){const i=await createImageBitmap(u);return{width:i.width,height:i.height,close:()=>i.close(),bitmap:i}}const a=URL.createObjectURL(u);try{const i=new Image;return i.src=a,await i.decode(),{width:i.naturalWidth,height:i.naturalHeight,element:i}}finally{setTimeout(()=>URL.revokeObjectURL(a),0)}}function e_(u,a,i){if(!Number.isFinite(u)||!Number.isFinite(a)||u<=0||a<=0)return{width:0,height:0};const r=Math.max(u,a);if(r<=i)return{width:Math.round(u),height:Math.round(a)};const o=i/r;return{width:Math.max(1,Math.round(u*o)),height:Math.max(1,Math.round(a*o))}}async function t_(u,a,i,r){if(a<=0||i<=0)throw new Error("nothing to draw");const o=typeof OffscreenCanvas=="function"?new OffscreenCanvas(a,i):Object.assign(document.createElement("canvas"),{width:a,height:i}),f=o.getContext("2d");if(f===null)throw new Error("no 2d context");f.drawImage(u.bitmap??u.element,0,0,a,i);const h=o instanceof OffscreenCanvas?await o.convertToBlob({type:r,quality:l2}):await new Promise(m=>o.toBlob(m,r,l2));if(h===null)throw new Error("encode failed");return(await u_(h)).replace(/^data:[^;]+;base64,/,"")}function u_(u){return new Promise((a,i)=>{const r=new FileReader;r.onload=()=>a(String(r.result??"")),r.onerror=()=>i(new Error("could not read the encoded image")),r.readAsDataURL(u)})}const Af=[{value:"oldest",label:"Oldest first",hint:"the order the calls happened in"},{value:"newest",label:"Newest first",hint:"most recent at the top"}];function n_({order:u,onOrder:a}){const[i,r]=w.useState(!1),o=w.useRef(null),f=w.useRef(null),h=w.useId(),m=g=>{r(!1),o.current?.focus()};return w.useEffect(()=>{if(!i)return;const g=v=>{const x=v.target;x!==null&&f.current?.contains(x)!==!0&&o.current?.contains(x)!==!0&&r(!1)},y=v=>{if(v.key==="Escape"){v.stopPropagation(),m();return}if(v.key!=="ArrowDown"&&v.key!=="ArrowUp")return;const x=[...f.current?.querySelectorAll('[role="menuitemradio"]')??[]];if(x.length===0)return;v.preventDefault();const N=x.indexOf(document.activeElement),R=v.key==="ArrowDown"?1:-1,T=N===-1?R===1?0:x.length-1:(N+R+x.length)%x.length;x[T]?.focus()};return document.addEventListener("pointerdown",g,!0),window.addEventListener("keydown",y,!0),()=>{document.removeEventListener("pointerdown",g,!0),window.removeEventListener("keydown",y,!0)}},[i]),w.useEffect(()=>{if(!i)return;f.current?.querySelector('[aria-checked="true"]')?.focus()},[i]),d.jsxs("div",{className:"trace-order",children:[d.jsx("button",{ref:o,type:"button",className:"trace-order-trigger","aria-haspopup":"menu","aria-expanded":i,"aria-controls":i?h:void 0,"aria-label":`Order: ${Af.find(g=>g.value===u)?.label??"Oldest first"}`,title:`Order: ${Af.find(g=>g.value===u)?.label??"Oldest first"}`,"data-active":u!=="oldest"?"true":void 0,onClick:()=>r(g=>!g),onKeyDown:g=>{g.key==="ArrowDown"&&(g.preventDefault(),r(!0))},children:d.jsxs("svg",{viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",focusable:"false",children:[d.jsx("path",{d:"M2 3.5h7M2 8h5M2 12.5h3",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round",fill:"none"}),d.jsx("path",{d:u==="oldest"?"M12.5 2.5v11m0 0-2.2-2.2m2.2 2.2 2.2-2.2":"M12.5 13.5v-11m0 0-2.2 2.2m2.2-2.2 2.2 2.2",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"})]})}),i&&d.jsx("div",{ref:f,id:h,className:"trace-order-menu",role:"menu","aria-label":"Order the calls",children:Af.map(g=>d.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":u===g.value,className:"trace-order-item",onClick:()=>{a(g.value),m()},children:[d.jsx("span",{className:"trace-order-tick","aria-hidden":"true",children:u===g.value?"✓":""}),d.jsx("span",{className:"trace-order-item-label",children:g.label}),d.jsx("span",{className:"trace-order-item-hint",children:g.hint})]},g.value))})]})}function l_({tools:u,selectedId:a,onSelect:i,collapsed:r=!1,onToggleCollapsed:o,showMarkers:f,onToggleMarkers:h,variant:m="drawer",order:g,onOrder:y,detailHeight:v,onDetailHeight:x,onResetDetailHeight:N}){const R=m==="panel",T=w.useRef(null),ne=w.useRef(!0),Q=u.filter(L=>L.running),J=u.length,[ee,ue]=w.useState(()=>{try{return S2(localStorage.getItem(jf))}catch{return"oldest"}}),$=g??ee,W=w.useCallback(L=>{y!==void 0?y(L):ue(L)},[y]),[ce,te]=w.useState(Cr),ie=v??ce,Ge=w.useCallback(L=>{x!==void 0?x(L):te(L)},[x]),Ie=w.useRef(0),Ee=w.useCallback(L=>{L!==null&&(Ie.current=L.getBoundingClientRect().height)},[]),Te=j6(u,$),Qe=w.useRef(void 0);function Ue(L){L.preventDefault(),L.currentTarget.setPointerCapture(L.pointerId),Qe.current={pointerId:L.pointerId,startY:L.clientY,startHeight:ie}}function ye(L){const se=Qe.current;se===void 0||se.pointerId!==L.pointerId||Ge(N6(se.startHeight,L.clientY-se.startY,Ie.current))}function K(L){Qe.current!==void 0&&(Qe.current=void 0,L.currentTarget.hasPointerCapture(L.pointerId)&&L.currentTarget.releasePointerCapture(L.pointerId))}function re(L){["ArrowUp","ArrowDown","Home","End"].includes(L.key)&&(L.preventDefault(),Ge(k6(L.key,ie,Ie.current)))}if(w.useEffect(()=>{const L=T.current;if(!L)return;const se=()=>{const S=L.scrollHeight-L.scrollTop-L.clientHeight;ne.current=S<40};return L.addEventListener("scroll",se,{passive:!0}),()=>L.removeEventListener("scroll",se)},[]),w.useEffect(()=>{if(ne.current&&!r){const L=T.current;L&&(L.scrollTop=L.scrollHeight)}},[J,Q.length,r]),w.useEffect(()=>{if(r)return;const L=se=>{if(se.key!=="ArrowUp"&&se.key!=="ArrowDown"||!T.current?.contains(document.activeElement))return;se.preventDefault();const S=Te.findIndex(Z=>Z.toolCallId===a),H=S===-1?Te.length-1:Math.max(0,Math.min(Te.length-1,S+(se.key==="ArrowDown"?1:-1)));i(Te[H]?.toolCallId)};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[Te,a,i,r]),J===0)return null;const ae=u.find(L=>L.toolCallId===a),Ce=Zy(u,5),be=new Set(Ce.map(L=>L.toolCallId)),He=!R&&r?[]:Te;return d.jsxs("section",{className:`trace is-${m}`,"aria-label":"Tool trace",ref:Ee,children:[d.jsxs("div",{className:"trace-head",children:[!R&&o!==void 0&&d.jsxs("button",{type:"button",className:"trace-toggle",onClick:o,"aria-expanded":!r,children:[r?"▸":"▾"," Tool trace"]}),d.jsx("span",{className:"trace-count mono",children:`${J} call${J===1?"":"s"}`}),Q.length>0&&d.jsxs("span",{className:"trace-running",children:[d.jsx("span",{className:"live-dot","aria-hidden":"true"}),`${Q.map(L=>L.toolName).join(", ")} running`]}),!R&&r&&Ce.length>0&&d.jsx("span",{className:"trace-preview mono",title:Ce.map(L=>L.toolName).join(", "),children:`latest: ${Ce.slice(-3).map(L=>L.toolName).join(" · ")}`}),d.jsx("span",{className:"spacer"}),d.jsx(n_,{order:$,onOrder:W}),!R&&d.jsx("button",{type:"button",className:"trace-toggle toggle-chip",onClick:h,"aria-pressed":f,title:"Show tool activity as groups in the transcript",children:f?"activity on":"activity off"}),R?d.jsx("span",{className:"trace-hint",title:"Use the arrow keys to move through calls",children:"↑↓ traverse"}):!r&&d.jsx("span",{className:"trace-hint",children:"latest 5 shown · the rest below for debugging · ↑↓ to traverse"})]}),(R||!r)&&d.jsx("div",{className:"trace-list",ref:T,tabIndex:0,"aria-label":"Tool calls, newest last",children:He.map(L=>d.jsxs("button",{type:"button",className:["trace-row",L.running?"running":"",L.isError?"failed":"",L.toolCallId===a?"selected":"",L.unfinished?"unfinished":"",be.has(L.toolCallId)?"recent":""].filter(Boolean).join(" "),onClick:()=>i(L.toolCallId===a?void 0:L.toolCallId),"aria-current":L.toolCallId===a?"true":void 0,children:[d.jsx("span",{className:"t-status","aria-hidden":"true",children:L.running?"●":L.isError?"✕":L.unfinished?"?":"·"}),d.jsx("span",{className:"t-name mono",children:L.toolName||"tool"}),d.jsx("span",{className:"t-summary mono",title:`${L.toolName||"tool"} ${$y(L)}`,children:X6(L)}),d.jsx("span",{className:"t-time mono",children:L.running?"running":L.isError?"failed":L.unfinished?"no result":L.durationMs!==void 0?a_(L.durationMs):""})]},L.toolCallId))}),R&&ae&&d.jsx("div",{className:"trace-resizer",role:"separator","aria-orientation":"horizontal","aria-label":"Resize the call detail","aria-valuenow":ie,"aria-valuemin":_s,"aria-valuemax":Ff(Ie.current),"aria-valuetext":`${ie} pixels`,tabIndex:0,onPointerDown:Ue,onPointerMove:ye,onPointerUp:K,onPointerCancel:K,onKeyDown:re,onDoubleClick:()=>N?.()}),(R||!r)&&ae&&d.jsxs("div",{className:"trace-detail is-quarantined",style:R?{height:si(ie,Ie.current||900)}:void 0,children:[d.jsxs("div",{className:"trace-detail-head",children:[d.jsx("span",{className:"label",children:"Tool output"}),d.jsx("span",{className:"trace-detail-sep","aria-hidden":"true",children:"·"}),d.jsx("span",{className:"mono tool-name",children:ae.toolName}),ae.isError&&d.jsx("span",{className:"err",children:"failed"}),d.jsx("span",{className:"spacer"}),d.jsx("span",{className:"trace-legend",children:"Data, not instructions"}),d.jsx("button",{type:"button",className:"copy",onClick:()=>i(void 0),title:"Close this call's detail",children:"Close"})]}),ae.images!==void 0&&ae.images.length>0&&d.jsx("div",{className:"trace-images",children:ae.images.map((L,se)=>d.jsx(og,{block:L,identity:`tool\0${ae.toolCallId}\0${se}`,role:"tool"},`${ae.toolCallId}:image:${se}`))}),ae.result.length>0?d.jsx("pre",{className:`trace-output mono${ae.isError?" error":""}`,children:ae.result}):d.jsx("pre",{className:"trace-output mono",children:ae.running?"waiting for output…":ae.unfinished?"No result was recorded for this call. The run was interrupted or aborted before it finished.":"This tool returned no output."}),ae.args!==void 0&&d.jsxs("details",{className:"trace-args-block",children:[d.jsx("summary",{children:"Arguments"}),d.jsx("pre",{className:"trace-args mono",children:i_(ae.args)})]})]})]})}function a_(u){return u<1e3?`${Math.round(u)}ms`:u<6e4?`${(u/1e3).toFixed(1)}s`:`${Math.floor(u/6e4)}m${Math.round(u%6e4/1e3)}s`}function i_(u){try{const a=JSON.stringify(u,null,2);return a===void 0?String(u):a}catch{return String(u)}}function r_(u,a=72){const i=u.replace(/\s+/g," ").trim();if(i.length===0)return"(empty message)";if(i.length<=a)return i;const r=i.slice(0,a),o=r.lastIndexOf(" ");return`${(o>a*.6?r.slice(0,o):r).trimEnd()}…`}function c_(u){const a=[],i=(f,h)=>{h.length!==0&&a.push({kind:f,when:f==="steer"?"now":"then",text:r_(h[0]??""),more:h.length-1,unknown:!1})};i("steer",u.steering),i("followUp",u.followUp);const r=u.steering.length+u.followUp.length,o=Math.max(0,u.total-r);return{rows:a,unknownCount:o,total:u.total}}function s_({sheetOpen:u,pickerOpen:a=!1,streaming:i}){return a?"close-picker":u?"close-sheet":i?"clear-and-stop":"noop"}function o_({queue:u,onOpenSheet:a}){const i=c_(u);if(i.total===0)return null;const r=i.rows.reduce((o,f)=>o+f.more,0)+i.unknownCount;return d.jsxs("div",{className:"queue-rail",children:[d.jsxs("ul",{className:"queue-rail-rows",children:[i.rows.map(o=>d.jsxs("li",{className:`queue-rail-row is-${o.kind}`,children:[d.jsx("span",{className:"queue-when",children:o.when}),d.jsx("span",{className:"queue-rail-text",children:o.text})]},o.kind)),i.rows.length===0&&d.jsxs("li",{className:"queue-rail-row is-unknown",children:[d.jsx("span",{className:"queue-when","aria-hidden":"true",children:"…"}),d.jsx("span",{className:"queue-rail-text",children:`${i.total} queued before this page loaded`})]})]}),d.jsxs("button",{type:"button",className:"queue-rail-open",onClick:a,"aria-haspopup":"dialog",title:"Show every queued message",children:[r>0&&d.jsx("span",{className:"queue-rail-more",children:`+${r} more`}),d.jsx("span",{className:"queue-rail-open-label",children:"Show queue"})]})]})}const Tf=8;function f_({queue:u,onClearQueueAndStop:a,onClose:i}){const r=u.steering.length+u.followUp.length,o=Math.max(0,u.total-r);return d.jsxs("div",{className:"queue-prompts",children:[d.jsx("p",{className:"queue-summary",children:d_(u)}),u.steering.length>0&&d.jsxs("section",{className:"queue-group","aria-label":"Steering this run",children:[d.jsxs("h4",{className:"queue-group-head",children:[d.jsx("span",{className:"queue-when",children:"now"}),d.jsx("span",{children:"Delivered when the current tool calls finish"})]}),d.jsx("ol",{className:"queue-list",children:u.steering.map((f,h)=>d.jsxs("li",{className:"queue-item is-steer",children:[d.jsx("span",{className:"queue-item-when","aria-hidden":"true",children:"now"}),d.jsx("span",{className:"queue-item-text",children:i2(f)})]},`s${h}`))})]}),u.followUp.length>0&&d.jsxs("section",{className:"queue-group","aria-label":"Runs after this one finishes",children:[d.jsxs("h4",{className:"queue-group-head",children:[d.jsx("span",{className:"queue-when",children:"then"}),d.jsx("span",{children:"Starts after this run finishes"})]}),d.jsx("ol",{className:"queue-list",children:u.followUp.map((f,h)=>d.jsxs("li",{className:"queue-item is-follow-up",children:[d.jsx("span",{className:"queue-item-when","aria-hidden":"true",children:"then"}),d.jsx("span",{className:"queue-item-text",children:i2(f)})]},`f${h}`))})]}),o>0&&d.jsxs("p",{className:"queue-unknown",children:[`${o} more ${o===1?"was":"were"} queued before this page loaded, so the text is not here. `,"Clearing the queue returns it to the box below, where you can read it."]}),d.jsxs("footer",{className:"queue-foot",children:[d.jsx("p",{className:"queue-note",children:"Read-only: Pi Central can clear the whole queue, not one message."}),d.jsxs("div",{className:"queue-actions",children:[d.jsx("button",{type:"button",className:"btn-quiet queue-clear",onClick:a,children:"Clear queue and stop run"}),d.jsxs("button",{type:"button",className:"btn-quiet queue-close",onClick:i,children:["Close ",d.jsx("kbd",{children:"Esc"})]})]})]})]})}function d_(u){const{steering:a,followUp:i}=u;if(a.length+i.length===0&&u.total>0)return`${u.total} queued message${u.total===1?"":"s"}.`;const o=[];return a.length>0&&o.push(`${a.length} steers this run`),i.length>0&&o.push(`${i.length} run${i.length===1?"s":""} after it finishes`),`${o.join("; ")}.`}function i2(u){const a=u.trim();if(a.length===0)return"(empty message)";const i=a.split(`
40
+ `);if(i.length<=Tf&&a.length<=900)return a;const r=i.slice(0,Tf).join(`
41
+ `),o=i.length>Tf?`${i.length} lines`:`${a.length} characters`;return`${r}
42
+
43
+ … ${o} in all. Clearing the queue returns it to the box, where it can be read in full.`}function h_({queue:u,onClose:a,onClearQueueAndStop:i}){const r=w.useRef(null),o=w.useId();return w.useEffect(()=>{const f=h=>{const m=h.target;m!==null&&r.current?.contains(m)!==!0&&m.closest?.(".queue-rail-open")===null&&a()};return document.addEventListener("pointerdown",f,!0),()=>document.removeEventListener("pointerdown",f,!0)},[a]),w.useEffect(()=>{r.current?.focus()},[]),d.jsxs("div",{ref:r,className:"queue-sheet",role:"dialog","aria-modal":"false","aria-labelledby":o,tabIndex:-1,children:[d.jsx("h3",{id:o,className:"queue-sheet-title",children:"Queued messages"}),d.jsx(f_,{queue:u,onClearQueueAndStop:i,onClose:a})]})}function m_({attachments:u,onRemove:a}){return u.length===0?null:d.jsxs("ul",{className:"attach-rail","aria-label":`${u.length} image${u.length===1?"":"s"} attached`,children:[u.map(i=>d.jsx(p_,{attachment:i,onRemove:a},i.id)),u.length>=Tr&&d.jsxs("li",{className:"attach-limit",role:"status",children:[Tr," of ",Tr," — remove one to add another"]})]})}function p_({attachment:u,onRemove:a}){const[i,r]=w.useState(!1),o=w.useMemo(()=>{if(i)return;const f=atob(u.data),h=new Uint8Array(new ArrayBuffer(f.length));for(let m=0;m<f.length;m+=1)h[m]=f.charCodeAt(m);return URL.createObjectURL(new Blob([h],{type:u.mediaType}))},[u.data,u.mediaType,i]);return w.useEffect(()=>{if(o!==void 0)return()=>URL.revokeObjectURL(o)},[o]),d.jsxs("li",{className:"attach-chip",children:[o!==void 0?d.jsx("img",{className:"attach-thumb",src:o,alt:`Attached image: ${u.label}`,onError:()=>r(!0),decoding:"async"}):d.jsx("span",{className:"attach-thumb is-broken","aria-hidden":"true",children:d.jsx("span",{className:"attach-thumb-mark",children:"?"})}),d.jsxs("span",{className:"attach-meta",children:[d.jsx("span",{className:"attach-label",title:u.label,children:u.label}),d.jsxs("span",{className:"attach-size mono",children:[u.mediaType.replace("image/","").toUpperCase()," · ",da(u.bytes)]})]}),d.jsx("button",{type:"button",className:"attach-remove",onClick:()=>a(u.id),"aria-label":`Remove ${u.label}`,title:`Remove ${u.label}`,children:"Remove"})]})}const g_=200;function b_(u,a){if(a<=0||a>u.length)return;const i=u.lastIndexOf(`
44
+ `,a-1)+1;let r=a-1;for(;r>=i;){const o=u.charAt(r);if(o==="@"){const f=r>0?u[r-1]:void 0;return!(f===void 0||/\s/.test(f)||f==="("||f==="["||f==='"')||a-r-1>g_?void 0:{start:r,query:u.slice(r+1,a)}}if(/\s/.test(o))return;r-=1}}function y_(u){const a=u.lastIndexOf("/");return a===-1?{directory:"",tail:u}:{directory:u.slice(0,a),tail:u.slice(a+1)}}function x_(u,a){const i=u.name.toLowerCase(),r=a.toLowerCase();if(!i.includes(r))return-1;const o=i.startsWith(r),f=/\.(png|jpe?g|gif|webp)$/.test(i);return u.kind==="directory"?o?0:3:f?o?1:3:o?2:3}const v_=new Set(["node_modules",".git",".svn"]);function __(u,a,i=8){const{directory:r,tail:o}=y_(u.query),f=[];for(const h of a??[]){if(v_.has(h.name))continue;const m=x_(h,o);m>=0&&f.push({entry:h,rank:m})}return f.sort((h,m)=>h.rank-m.rank),f.slice(0,i).map(({entry:h})=>({value:r.length>0?`${r}/${h.name}`:h.name,label:h.kind==="directory"?`${h.name}/`:h.name,continues:h.kind==="directory"}))}function E_(u,a,i,r){const o=i.continues?`${i.value}/`:`${i.value} `,f=u.slice(0,a.start),h=u.slice(r);return{text:`${f}@${o}${h}`,caret:a.start+1+o.length}}function S_(u,a,i=0){if(a.height<=0)return;const r=u.top,o=u.top+u.height,f=a.scrollTop+i,h=a.scrollTop+a.height-i;if(!(r>=f&&o<=h))return u.height>a.height-i*2||r<f?Math.max(0,r-i):Math.max(0,o-a.height+i)}function A_(u,a,i){return a<=0?0:((u+i)%a+a)%a}function T_({directory:u,completions:a,loading:i,selected:r,onChoose:o}){const f=w.useRef(null),h=a.length;return w.useEffect(()=>{const m=f.current;if(m===null||r<0||r>=h)return;const g=m.children[r];if(g===void 0)return;const y=g.offsetParent,v=m.offsetParent===y?g.offsetTop-m.offsetTop:g.offsetTop,x=S_({top:v,height:g.offsetHeight},{scrollTop:m.scrollTop,height:m.clientHeight},2);x!==void 0&&(m.scrollTop=x)},[r,h]),d.jsxs("div",{className:"mention",role:"presentation",children:[d.jsxs("div",{className:"mention-head",children:[d.jsxs("span",{className:"mention-dir mono",children:["in ",u.length===0?".":u]}),a.length>0&&d.jsxs("span",{className:"mention-count",children:[a.length," match",a.length===1?"":"es"]}),d.jsxs("span",{className:"mention-hint",children:[d.jsx("kbd",{children:"↑"}),d.jsx("kbd",{children:"↓"})," · ",d.jsx("kbd",{children:"Tab"})," accept · ",d.jsx("kbd",{children:"Esc"})," dismiss"]})]}),a.length>0?d.jsx("ul",{className:"mention-list",role:"listbox",id:"mention-options","aria-label":"Files to mention",ref:f,children:a.map((m,g)=>d.jsx("li",{id:`mention-option-${g}`,role:"option","aria-selected":g===r,className:`mention-option${g===r?" is-selected":""}${m.continues?" is-dir":""}`,onMouseDown:y=>{y.preventDefault(),o(m)},children:d.jsx("span",{className:"mention-name mono",children:m.label})},m.value))}):d.jsx("p",{className:"mention-empty",role:"status",children:i?"Reading…":"No match"})]})}const C_=Object.freeze([]),D_=()=>{},N_=()=>{};function k_({session:u,state:a,unavailableReason:i,onSend:r,onClearQueueAndStop:o,onRestored:f,restored:h,draft:m,onDraftChange:g,attachments:y=C_,onAttach:v=D_,onRemoveAttachment:x=N_,canAttach:N="unknown",notice:R,listDirectory:T,directoryEntries:ne,follow:Q}){const J=w.useRef(null),ee=u?.state==="streaming",ue=i!==void 0,[$,W]=w.useState(!1),ce=w.useRef(null),te=p6(a,u),[ie,Ge]=w.useState(0),[Ie,Ee]=w.useState(void 0),[Te,Qe]=w.useState(0),Ue=b_(m,ie),ye=Ue!==void 0&&T!==void 0&&ne!==void 0&&Ie!==Ue.start,K=Ue===void 0?"":Ue.query.includes("/")?Ue.query.slice(0,Ue.query.lastIndexOf("/")):"",re=ne?.(K),ae=Ue===void 0?[]:__(Ue,re);w.useEffect(()=>{!ye||T===void 0||re===void 0&&T(K)},[ye,T,K,re]);const Ce=ae.map(I=>I.value).join("\0");w.useEffect(()=>{Qe(0)},[Ce]),w.useEffect(()=>{if(h.length===0)return;const I=h.filter(ze=>ze.trim().length>0).join(`
45
+
46
+ `),P=m.trim();I.length>0&&(g(P.length>0?`${P}
47
+
48
+ ${I}`:I),J.current?.focus()),f()},[h]),w.useEffect(()=>{const I=P=>{if(P.key!=="Escape")return;const ze=s_({sheetOpen:$,pickerOpen:ye,streaming:ee});if(ze==="close-picker"){P.preventDefault(),Ee(Ue?.start);return}if(ze==="close-sheet"){P.preventDefault(),W(!1),ce.current?.focus();return}ze==="clear-and-stop"&&(P.preventDefault(),o(),He(!0))};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[$,ee,o]),w.useEffect(()=>{if(!ee)return;const I=P=>{P.altKey&&(P.key==="q"||P.key==="Q")&&(P.preventDefault(),W(!0))};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[ee]);const[be,He]=w.useState(!1);w.useEffect(()=>{if(be&&!ee){const I=setTimeout(()=>He(!1),6e3);return()=>clearTimeout(I)}},[be,ee]);const L=()=>{const I=m.trim();!n2(I,y)||ue||(r(I,"steer"),g(""))},se=I=>{if(N==="no")return;const P=a2(I.clipboardData);P.length!==0&&(I.preventDefault(),v(P))},[S,H]=w.useState(!1),Z=I=>{N!=="no"&&Array.from(I.dataTransfer.types).includes("Files")&&(I.preventDefault(),I.dataTransfer.dropEffect="copy",H(!0))},fe=I=>{I.currentTarget.contains(I.relatedTarget)||H(!1)},je=I=>{if(H(!1),N==="no")return;const P=a2(I.dataTransfer);P.length!==0&&(I.preventDefault(),v(P))},we=I=>{if(Ue===void 0)return;const P=E_(m,Ue,I,ie);g(P.text),Ee(void 0),Qe(0),requestAnimationFrame(()=>{const ze=J.current;ze!==null&&(ze.focus(),ze.setSelectionRange(P.caret,P.caret),Ge(P.caret))})},Re=I=>{if(ye){if(I.key==="ArrowDown"||I.key==="ArrowUp"){I.preventDefault(),Qe(P=>A_(P,ae.length,I.key==="ArrowDown"?1:-1));return}if(I.key==="Tab"||I.key==="Enter"&&!I.shiftKey&&!I.altKey){const P=ae[Te];if(P!==void 0){I.preventDefault(),we(P);return}if(I.key==="Tab"){I.preventDefault();return}}}if(I.key==="Enter"&&!I.shiftKey){if(I.preventDefault(),ee&&I.altKey){const P=m.trim();n2(P,y)&&!ue&&(r(P,"followUp"),g(""));return}L()}};return d.jsxs("div",{className:`composer${S?" is-dragging":""}`,onDragOver:Z,onDragLeave:fe,onDrop:je,children:[d.jsx(o_,{queue:te,onOpenSheet:()=>W(!0)}),ue&&i&&d.jsx("div",{className:"hint",role:"note",children:i}),d.jsx("textarea",{ref:J,className:"composer-input",value:m,onChange:I=>{g(I.target.value),Ge(I.target.selectionStart),Ee(void 0)},onKeyDown:Re,onPaste:se,onSelect:I=>Ge(I.currentTarget.selectionStart),"aria-autocomplete":ye?"list":void 0,"aria-expanded":ye||void 0,"aria-controls":ye?"mention-options":void 0,"aria-activedescendant":ye&&ae.length>0?`mention-option-${Te}`:void 0,placeholder:ue?i??"Unavailable":ee?"Steer this run…":"Send a prompt…",disabled:ue,"aria-label":"Prompt",rows:3}),d.jsx(m_,{attachments:y,onRemove:x}),d.jsxs("div",{className:"composer-chrome",children:[d.jsx("span",{className:"composer-hint",children:ee?d.jsxs(d.Fragment,{children:[d.jsx("kbd",{children:"Enter"})," steers · ",d.jsx("kbd",{children:"Alt"}),"+",d.jsx("kbd",{children:"Enter"})," queues for after this run ·"," ",d.jsx("kbd",{children:"Esc"})," stops the run"]}):d.jsxs(d.Fragment,{children:[d.jsx("kbd",{children:"Enter"})," to send · ",d.jsx("kbd",{children:"Shift"}),"+",d.jsx("kbd",{children:"Enter"})," for a new line"]})}),Q!==void 0&&Q]}),R!==void 0&&d.jsx("div",{className:"hint attach-notice",role:"status",children:R}),be&&d.jsx("div",{className:"hint",role:"status",children:"Stopped the run."}),ye&&d.jsx(T_,{directory:K,completions:ae,loading:re===void 0,selected:Te,onChoose:we}),$&&te.total>0&&d.jsx(h_,{queue:te,onClose:()=>{W(!1),ce.current?.focus()},onClearQueueAndStop:()=>{W(!1),o(),He(!0)}})]})}function j_({dialogs:u,onAnswer:a}){const i=new Set(s2),r=u.filter(f=>!i.has(f.method));if(r.length===0)return null;const o=r[0];return d.jsxs("div",{className:"dialog-dock",children:[d.jsxs("div",{className:"dialog-head",children:[d.jsx("span",{children:"Needs your answer"}),d.jsx("span",{style:{marginLeft:"auto",fontFamily:"var(--mono)"},children:o.method})]}),d.jsx(w_,{dialog:o,onAnswer:a},o.id)]})}function w_({dialog:u,onAnswer:a}){const[i,r]=w.useState(u.prefill??""),o=w.useRef(null),f=w.useRef(null);w.useEffect(()=>{f.current?.focus()},[]),w.useEffect(()=>{const m=y=>{y.key==="Escape"&&(y.stopPropagation(),y.preventDefault(),a(u.id,{cancelled:!0}))},g=o.current;return g?.addEventListener("keydown",m),()=>g?.removeEventListener("keydown",m)},[u.id,a]);const h=u.message??u.title??"The agent is asking for input.";return d.jsxs("div",{className:"dialog-body",ref:o,role:"dialog","aria-label":h,children:[u.title&&u.message&&d.jsx("p",{className:"title",children:u.title}),d.jsx("p",{className:"question",children:h}),u.method==="confirm"&&d.jsxs("div",{className:"dialog-actions",children:[d.jsx("button",{type:"button",className:"btn",onClick:()=>a(u.id,{confirmed:!0}),children:"Allow once"}),d.jsx("button",{type:"button",className:"btn",onClick:()=>a(u.id,{confirmed:!1}),children:"Deny"}),d.jsx("button",{type:"button",className:"btn btn-ghost",onClick:()=>a(u.id,{cancelled:!0}),children:"Cancel request"})]}),u.method==="select"&&d.jsxs("div",{className:"dialog-options",children:[(u.options??[]).map(m=>d.jsx("button",{type:"button",onClick:()=>a(u.id,{value:m}),children:m},m)),d.jsx("button",{type:"button",className:"btn btn-ghost",style:{marginTop:6},onClick:()=>a(u.id,{cancelled:!0}),children:"Cancel request"})]}),u.method==="input"&&d.jsxs(d.Fragment,{children:[d.jsx("input",{ref:f,type:"text",value:i,placeholder:u.placeholder??"Type your answer","aria-label":h,onChange:m=>r(m.target.value),onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),a(u.id,{value:i}))}}),d.jsxs("div",{className:"dialog-actions",children:[d.jsx("button",{type:"button",className:"btn",onClick:()=>a(u.id,{value:i}),children:"Submit"}),d.jsx("button",{type:"button",className:"btn btn-ghost",onClick:()=>a(u.id,{cancelled:!0}),children:"Cancel request"})]})]}),u.method==="editor"&&d.jsxs(d.Fragment,{children:[d.jsx("textarea",{ref:f,value:i,placeholder:u.placeholder??"Edit the content","aria-label":h,onChange:m=>r(m.target.value)}),d.jsxs("div",{className:"dialog-actions",children:[d.jsx("button",{type:"button",className:"btn",onClick:()=>a(u.id,{value:i}),children:"Submit"}),d.jsx("button",{type:"button",className:"btn btn-ghost",onClick:()=>a(u.id,{cancelled:!0}),children:"Cancel request"})]})]}),!hy(u.method)&&d.jsx("div",{className:"dialog-actions",children:d.jsx("button",{type:"button",className:"btn",onClick:()=>a(u.id,{cancelled:!0}),children:"Cancel request"})})]})}function Rl({text:u,label:a}){const[i,r]=w.useState(!1);return d.jsx("button",{type:"button",className:"copy",title:`Copy ${a}`,onClick:async()=>{const o=await v6(u);r(o),setTimeout(()=>r(!1),1500)},children:i?"Copied":`Copy ${a}`})}function O_({session:u,home:a,onStop:i,onRename:r}){return u?d.jsxs("div",{className:"inspector",children:[d.jsxs("section",{children:[d.jsx("h3",{children:"Isolation"}),d.jsxs("dl",{className:"kv",children:[d.jsx("dt",{children:"Mode"}),d.jsx("dd",{children:u.mode==="sandboxed"?d.jsx("span",{className:"chip chip-idle",children:"Safehouse"}):d.jsx("span",{className:"chip chip-no-isolation",children:"NO ISOLATION"})}),d.jsx("dt",{children:"Policy"}),d.jsx("dd",{children:u.isolation})]}),u.mode==="direct"&&d.jsx("p",{style:{color:"var(--warn-text)",fontSize:11,marginTop:8},children:"This session runs pi unsandboxed at your user account. It can read and write anything you can."})]}),d.jsxs("section",{children:[d.jsx("h3",{children:"Paths"}),d.jsxs("dl",{className:"kv",children:[d.jsx("dt",{children:"Workspace"}),d.jsxs("dd",{children:[d.jsx("span",{children:hi(u.cwd,40,a)}),d.jsx(Rl,{text:u.cwd,label:"path"})]}),u.sessionFile&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"Session file"}),d.jsxs("dd",{children:[d.jsx("span",{children:hi(u.sessionFile,40,a)}),d.jsx(Rl,{text:u.sessionFile,label:"path"})]})]}),d.jsx("dt",{children:"Session id"}),d.jsx("dd",{children:u.sessionId?d.jsxs(d.Fragment,{children:[d.jsx("span",{children:u.sessionId}),d.jsx(Rl,{text:u.sessionId,label:"session id"})]}):d.jsx("span",{title:"Pi has not reported its session id yet",children:"—"})}),d.jsx("dt",{children:"Handle"}),d.jsxs("dd",{children:[d.jsx("span",{children:u.id}),d.jsx(Rl,{text:u.id,label:"handle"})]})]})]}),d.jsxs("section",{children:[d.jsx("h3",{children:"Command"}),d.jsx("pre",{className:"cmd",children:u.command}),d.jsx("div",{style:{marginTop:6},children:d.jsx(Rl,{text:u.command,label:"command"})})]}),d.jsxs("section",{children:[d.jsx("h3",{children:"Usage"}),d.jsxs("dl",{className:"kv",children:[d.jsx("dt",{children:"Messages"}),d.jsx("dd",{children:u.messageCount}),d.jsx("dt",{children:"Tokens"}),d.jsx("dd",{children:Nf(u.tokensTotal)}),d.jsx("dt",{children:"Cost"}),d.jsx("dd",{children:y2(u.cost)}),d.jsx("dt",{children:"Context"}),d.jsx("dd",{children:u.contextPercent===null?"—":`${Math.round(u.contextPercent)}%`}),d.jsx("dt",{children:"Model"}),d.jsx("dd",{children:u.model??"—"}),d.jsx("dt",{children:"Thinking"}),d.jsx("dd",{children:u.thinkingLevel??"—"})]})]}),u.warnings.length>0&&d.jsxs("section",{children:[d.jsx("h3",{children:"Warnings"}),u.warnings.map((o,f)=>d.jsx("p",{style:{color:"var(--warn-text)",fontSize:11,margin:"0 0 6px"},children:o},f))]}),u.error&&d.jsxs("section",{children:[d.jsx("h3",{children:"Error"}),d.jsx("p",{style:{color:"var(--danger-text)",fontSize:11,whiteSpace:"pre-wrap"},children:u.error})]}),d.jsxs("section",{children:[d.jsx("h3",{children:"Actions"}),d.jsxs("div",{className:"actions",children:[d.jsx(R_,{current:u.name,onRename:r}),d.jsx("button",{type:"button",className:"btn",onClick:i,children:"Stop session"})]})]})]}):d.jsx("div",{className:"inspector",children:d.jsxs("section",{children:[d.jsx("h3",{children:"Inspector"}),d.jsx("p",{style:{color:"var(--dim)",fontSize:12},children:"Select a session to see its isolation, paths, and usage."})]})})}function R_({current:u,onRename:a}){return d.jsxs("details",{children:[d.jsx("summary",{className:"btn",style:{cursor:"pointer",fontSize:12},children:"Rename…"}),d.jsxs("form",{style:{marginTop:6,display:"flex",gap:6},onSubmit:i=>{i.preventDefault();const r=new FormData(i.currentTarget).get("name");typeof r=="string"&&r.trim().length>0&&a(r.trim())},children:[d.jsx("input",{name:"name",defaultValue:u,"aria-label":"Session name",style:{flex:1,background:"var(--bg)",border:"1px solid var(--line)",borderRadius:6,padding:"4px 8px",color:"var(--text)",font:"12px var(--sans)"}}),d.jsx("button",{type:"submit",className:"btn",children:"Save name"})]})]})}function gg(){return{commit:"ea6ef31",builtAt:"2026-11-01T14:13:07.005Z"}}function z_(u=gg()){const a=u.builtAt==="unknown"?"unknown build time":u.builtAt.slice(0,16).replace("T"," ");return`${u.commit} · ${a}`}const bg=13,yg=18,xg=15,vg=50,Mf=100,Zf=80,Or="fill",r2="pi-central.reading";function Ar(){return{sizePx:xg,measure:Zf}}function _g(u){return Number.isFinite(u)?Math.min(yg,Math.max(bg,Math.round(u))):xg}function Eg(u){if(u===Or)return Or;const a=Number(u);return Number.isFinite(a)?Math.min(Mf,Math.max(vg,Math.round(a))):Zf}function M_(u){const a=Ar();if(u===null||u==="")return a;let i;try{i=JSON.parse(u)}catch{return a}if(typeof i!="object"||i===null)return a;const r=i;return{sizePx:_g(typeof r.sizePx=="number"?r.sizePx:a.sizePx),measure:Eg(typeof r.measure=="number"||typeof r.measure=="string"?r.measure:a.measure)}}function L_(u){return JSON.stringify(u)}function U_(u){return{"--reading-size":`${u.sizePx}px`,"--reading-measure":u.measure===Or?"none":`${u.measure}ch`}}function ii({label:u,value:a,copyable:i=!1,monospace:r=!1,note:o}){const f=a===void 0;return d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:u}),d.jsxs("dd",{children:[d.jsx("span",{className:f?"settings-absent":r?"settings-mono":void 0,children:f?"not reported":a}),i&&!f&&d.jsx(Rl,{text:a,label:u.toLowerCase()}),o!==void 0&&d.jsx("span",{className:"settings-note",children:o})]})]})}const F_=[{id:"display",label:"Display"},{id:"about",label:"About"}];function B_({install:u,ready:a,onClose:i,initialSection:r="display"}){const o=w.useRef(null),[f,h]=w.useState(r);w.useEffect(()=>{o.current?.focus();const y=v=>{v.key==="Escape"&&i()};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[i]);const m=u?.protocol,g=m!==void 0&&m!==oi;return d.jsx("div",{className:"modal-backdrop",onClick:i,role:"presentation",children:d.jsxs("div",{className:"modal settings",role:"dialog","aria-modal":"true","aria-labelledby":"settings-title",onClick:y=>y.stopPropagation(),children:[d.jsx("h3",{id:"settings-title",children:"This installation"}),u===void 0&&d.jsx("p",{className:"settings-absent-note",role:"status",children:a?d.jsxs(d.Fragment,{children:[d.jsx("strong",{children:"This orchestrator is older than this UI."})," It does not report the facts below, so nothing here can be shown. Restart it to pick up the current build — see"," ",d.jsx("code",{children:"docs/DOGFOODING.md"}),"."]}):d.jsx(d.Fragment,{children:"Waiting for the orchestrator to send these facts…"})}),d.jsxs("div",{className:"settings-panes",children:[d.jsx("nav",{className:"settings-nav","aria-label":"Settings sections",children:F_.map(({id:y,label:v})=>d.jsx("button",{type:"button",className:y===f?"settings-nav-item is-active":"settings-nav-item","aria-current":y===f?"page":void 0,onClick:()=>h(y),children:v},y))}),d.jsx("div",{className:"settings-content",children:f==="display"?d.jsx(H_,{}):d.jsxs(d.Fragment,{children:[d.jsxs("section",{children:[d.jsx("h4",{children:"This build"}),d.jsxs("dl",{className:"kv",children:[d.jsx(ii,{label:"Version",value:u?.version}),d.jsx(ii,{label:"UI build",value:z_(),note:gg().commit==="dev"?"built outside a git checkout, so there is no commit to name":void 0}),d.jsx(ii,{label:"Protocol",value:m===void 0?void 0:`v${m}`,note:m===void 0?void 0:g?`MISMATCH — this UI speaks v${oi}. One half is out of date; see docs/DOGFOODING.md.`:`matches this UI (v${oi})`})]})]}),d.jsxs("section",{children:[d.jsx("h4",{children:"Where things live"}),d.jsxs("dl",{className:"kv",children:[d.jsx(ii,{label:"Sessions",value:u?.sessionsRoot,copyable:!0,monospace:!0}),d.jsx(ii,{label:"Workspaces",value:u?.workspaceRoot,copyable:!0,monospace:!0}),d.jsx(ii,{label:"Agent root",value:u?.agentRoot,copyable:!0,monospace:!0,note:u===void 0?void 0:u.agentRootManaged?"managed by Pi Central":"external — not created or modified by Pi Central"})]})]}),d.jsxs("section",{children:[d.jsx("h4",{children:"This copy"}),d.jsxs("p",{className:"settings-note settings-verify",children:["This build cannot check its own provenance; a compromised build would simply skip the check. To verify the package you installed, run"," ",d.jsx("code",{children:"npm audit signatures"})," in a terminal — before the first run if you have not started it yet. The startup banner also prints the directory this copy was loaded from, which is how to tell a global install from a checkout."]})]}),d.jsxs("section",{children:[d.jsx("h4",{children:"Updates"}),d.jsxs("p",{className:"settings-note settings-updates",children:["This build does not check for updates. When it does, checking will be ",d.jsx("strong",{children:"off unless you turn it on"}),", will send nothing but the package name, and will never install anything without asking."]})]})]})})]}),d.jsx("div",{className:"dialog-actions",children:d.jsx("button",{type:"button",className:"btn",ref:o,onClick:i,children:"Close"})})]})})}function H_(){const[u,a]=w.useState(()=>{try{return M_(localStorage.getItem(r2))}catch{return Ar()}});w.useEffect(()=>{const r=document.documentElement;for(const[o,f]of Object.entries(U_(u)))r.style.setProperty(o,f);try{localStorage.setItem(r2,L_(u))}catch{}},[u]);const i=u.measure===Or;return d.jsxs("section",{children:[d.jsxs("div",{className:"reading-head",children:[d.jsx("h4",{children:"Reading"}),d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:()=>a(Ar()),disabled:u.sizePx===Ar().sizePx&&u.measure===Ar().measure,title:"Back to what this build ships with",children:"Reset to defaults"})]}),d.jsx("p",{className:"settings-note",style:{marginTop:0},children:"Affects the transcript only. Raising the size widens the line too, because the measure is relative to the text."}),d.jsxs("label",{className:"reading-row",children:[d.jsx("span",{children:"Text size"}),d.jsx("input",{type:"range",min:bg,max:yg,step:1,value:u.sizePx,"aria-label":"Transcript text size in pixels",onChange:r=>a(o=>({...o,sizePx:_g(Number(r.target.value))}))}),d.jsxs("span",{className:"mono reading-value",children:[u.sizePx,"px"]})]}),d.jsxs("label",{className:"reading-row",children:[d.jsx("span",{children:"Line length"}),d.jsx("input",{type:"range",min:vg,max:Mf,step:2,value:i?Mf:u.measure,disabled:i,"aria-label":"Transcript line length in characters",onChange:r=>a(o=>({...o,measure:Eg(Number(r.target.value))}))}),d.jsx("span",{className:"mono reading-value",children:i?"fill":`${u.measure}ch`})]}),d.jsxs("label",{className:"reading-row",children:[d.jsx("span",{}),d.jsxs("span",{style:{display:"flex",gap:6,alignItems:"center",fontSize:12},children:[d.jsx("input",{type:"checkbox",checked:i,onChange:r=>a(o=>({...o,measure:r.target.checked?Or:Zf}))}),"Use the full width"]}),d.jsx("span",{})]}),d.jsx("div",{className:"reading-sample","aria-hidden":"true",children:d.jsx("span",{children:"The quick brown fox jumps over the lazy dog."})})]})}function $f({path:u,reason:a,code:i,message:r,depth:o=0}){return d.jsxs("p",{className:"filetree-note filetree-error",role:"note",style:{paddingLeft:`${o*12}px`},title:u===""?void 0:u,children:[d.jsx("strong",{children:q_(a)}),d.jsx("span",{className:"filetree-error-detail",children:r}),i!==void 0&&d.jsx("span",{className:"filetree-kind",children:i})]})}function q_(u){switch(u){case"escapes-cwd":return"Outside the working directory";case"absolute-path":return"Not a relative path";case"invalid-path":return"Not a usable path";case"too-large":return"Too large to read";case"binary":return"Not a text file";case"permission":return"Permission denied";case"not-found":return"Not found";case"not-a-directory":return"Not a directory";case"is-directory":return"That is a directory";default:return"Could not read"}}function G_(u){const a=atob(u),i=new Uint8Array(new ArrayBuffer(a.length));for(let r=0;r<a.length;r+=1)i[r]=a.charCodeAt(r);return i}function I_({path:u,type:a,base64:i,bytes:r}){const[o,f]=w.useState(void 0),[h,m]=w.useState(!1),g=w.useMemo(()=>new Blob([G_(i)],{type:a}),[i,a]);return w.useEffect(()=>{const y=URL.createObjectURL(g);return f(y),m(!1),()=>URL.revokeObjectURL(y)},[g]),o===void 0?null:h?d.jsxs("p",{className:"filetree-note filetree-error",role:"note",children:[d.jsxs("strong",{children:["Could not display ",u]}),d.jsxs("span",{className:"filetree-error-detail",children:["The browser could not decode this image. Its leading bytes are a valid ",a," header, so the file is most likely truncated or corrupt."]})]}):d.jsxs("div",{className:"imagepane",children:[d.jsx("img",{className:"imagepane-img",src:o,alt:u,onError:()=>m(!0)}),d.jsxs("p",{className:"imagepane-meta",children:[a," · ",da(r)]})]})}function Y_({path:u,state:a,wrapped:i,onToggleWrap:r,onClose:o}){const f=a.status==="loaded"&&a.content.kind==="text"?a.content.text:void 0,h=f===void 0?[]:f.split(`
49
+ `);return d.jsxs("div",{className:"filepane",children:[d.jsxs("div",{className:"filepane-head",children:[d.jsx("span",{className:"filepane-path",title:u,children:u}),a.status==="loaded"&&d.jsx("span",{className:"filepane-meta",children:a.content.kind==="text"?`${h.length} line${h.length===1?"":"s"} · ${da(a.bytes)}`:da(a.bytes)}),d.jsx(Rl,{text:u,label:`path ${u}`}),a.status==="loaded"&&a.content.kind==="text"&&d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:r,"aria-pressed":i,title:i?"Stop wrapping long lines, and scroll sideways instead":"Wrap long lines so the whole line is readable without scrolling sideways",children:i?"No wrap":"Wrap lines"}),d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:o,"aria-label":"Close file",children:"Close"})]}),a.status==="unloaded"||a.status==="loading"?d.jsx("p",{className:"filetree-note",role:"status",children:"Reading…"}):a.status==="error"?d.jsx($f,{path:u,reason:a.reason,code:a.code,message:a.message}):d.jsx(d.Fragment,{children:a.content.kind==="image"?d.jsx(I_,{path:u,type:a.content.type,base64:a.content.base64,bytes:a.bytes}):d.jsx("ol",{className:i?"filepane-lines is-wrapped":"filepane-lines",children:h.map((m,g)=>d.jsxs("li",{children:[d.jsx("span",{className:"filepane-line-no","aria-hidden":"true",children:g+1}),d.jsx("span",{className:"filepane-line-text",children:m===""?" ":m})]},g))})})]})}function V_({sessionId:u,state:a,cwd:i,onExpand:r,onCollapse:o,onToggleHidden:f,onOpenFile:h}){const m=ms(a,u),g=ci(a,u,"");return d.jsxs("div",{className:"filetree",children:[d.jsxs("div",{className:"filetree-head",children:[d.jsx("span",{className:"filetree-scope",title:i,children:"Working directory"}),d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:f,"aria-pressed":m,title:m?"Hide dotfiles":"Show dotfiles",children:m?"Hide dotfiles":"Show dotfiles"})]}),g.status==="unloaded"?d.jsx("p",{className:"filetree-note",children:"Not loaded yet."}):g.status==="loading"?d.jsx("p",{className:"filetree-note",role:"status",children:"Reading…"}):g.status==="error"?d.jsx($f,{path:"",reason:g.reason,code:g.code,message:g.message}):g.entries.length===0?d.jsx("p",{className:"filetree-note",children:"This directory is empty."}):d.jsx("ul",{className:"filetree-list",role:"tree","aria-label":`Files in ${i}`,children:g.entries.map(y=>d.jsx(Sg,{sessionId:u,parent:"",entry:y,state:a,depth:0,onExpand:r,onCollapse:o,onOpenFile:h},y.name))}),g.status==="loaded"&&g.truncated&&d.jsx("p",{className:"filetree-note filetree-truncated",children:"Showing the first entries only — this directory holds more."})]})}function Sg({sessionId:u,parent:a,entry:i,state:r,depth:o,onExpand:f,onCollapse:h,onOpenFile:m}){const g=Ly(a,i.name),y=My(i),v=y&&Oy(r,u,g),x=y&&v?ci(r,u,g):void 0;return d.jsxs("li",{className:`filetree-node${i.unreadable?" is-unreadable":""}`,role:"treeitem","aria-expanded":y?v:void 0,style:{paddingLeft:`${o*12}px`},children:[d.jsxs("button",{type:"button",className:"filetree-row",onClick:()=>{y?v?h(g):f(g):m(g)},title:g,children:[d.jsx("span",{className:"filetree-mark","aria-hidden":"true",children:y?v?"▾":"▸":i.kind==="symlink"?"↗":"·"}),d.jsx("span",{className:`filetree-name${i.hidden?" is-hidden":""}`,children:i.name}),i.kind==="symlink"&&!cp(i)&&d.jsx("span",{className:"filetree-kind",children:"link"}),cp(i)&&d.jsx("span",{className:"filetree-kind filetree-bad",children:"broken"}),i.unreadable&&d.jsx("span",{className:"filetree-kind filetree-bad",children:"unreadable"}),i.size!==void 0&&d.jsx("span",{className:"filetree-size",children:da(i.size)})]}),x!==void 0&&d.jsx(X_,{files:r,directory:x,sessionId:u,parent:g,depth:o+1,onExpand:f,onCollapse:h,onOpenFile:m})]})}function X_({files:u,directory:a,sessionId:i,parent:r,depth:o,onExpand:f,onCollapse:h,onOpenFile:m}){return a.status==="loading"||a.status==="unloaded"?d.jsx("p",{className:"filetree-note",role:"status",style:{paddingLeft:`${o*12}px`},children:"Reading…"}):a.status==="error"?d.jsx($f,{path:r,reason:a.reason,code:a.code,message:a.message,depth:o}):a.entries.length===0?d.jsx("p",{className:"filetree-note",style:{paddingLeft:`${o*12}px`},children:"Empty."}):d.jsxs(d.Fragment,{children:[d.jsx("ul",{className:"filetree-list",role:"group",children:a.entries.map(g=>d.jsx(Sg,{sessionId:i,parent:r,entry:g,state:u,depth:o,onExpand:f,onCollapse:h,onOpenFile:m},g.name))}),a.truncated&&d.jsx("p",{className:"filetree-note filetree-truncated",style:{paddingLeft:`${o*12}px`},children:"Showing the first entries only — this directory holds more."})]})}function Z_({sessionId:u,files:a,cwd:i,onExpand:r,onCollapse:o,onToggleHidden:f,wrapped:h,onToggleWrap:m,onOpenFile:g,onCloseFile:y}){const v=zy(a,u);return d.jsxs("div",{className:"files-panel",children:[v&&d.jsxs("div",{className:"files-back",children:[d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:y,children:"‹ Files"}),d.jsx("span",{className:"files-back-path",title:v.path,children:v.path})]}),d.jsxs("div",{className:`files-body${v?" has-file":""}`,children:[d.jsx("div",{className:"files-tree",children:d.jsx(V_,{sessionId:u,state:a,cwd:i,onExpand:r,onCollapse:o,onToggleHidden:f,onOpenFile:g})}),v&&d.jsx("div",{className:"files-doc",children:d.jsx(Y_,{path:v.path,state:v.state,wrapped:h,onToggleWrap:m,onClose:y})})]})]})}const Ds=280,$_=.6,Q_=1200,Qf=360,K_=720;function Kf(u){return Math.min(Q_,Math.max(Ds,u*$_))}function fa(u,a){return Number.isFinite(u)?Math.round(Math.min(Kf(a),Math.max(Ds,u))):Qf}function J_(u,a,i){switch(u){case"ArrowLeft":return fa(a+16,i);case"ArrowRight":return fa(a-16,i);case"Home":return fa(Ds,i);case"End":return fa(Kf(i),i)}}const hs="pi-central.panel";function Ag(){return{width:Qf,mode:"session",userSized:!1,collapsed:!0}}function P_(u){const a=Ag();if(u===null||u==="")return a;let i;try{i=JSON.parse(u)}catch{return a}if(typeof i!="object"||i===null)return a;const r=i,o=r.mode,f=o==="files"?"files":o==="trace"?"trace":"session";return{width:typeof r.width=="number"?r.width:a.width,mode:f,userSized:r.userSized===!0,collapsed:r.collapsed!==!1}}function Cf(u){return JSON.stringify(u)}const W_=[{mode:"session",label:"Session"},{mode:"files",label:"Files"},{mode:"trace",label:"Trace"}];function e5({mode:u,onMode:a,width:i,onWidth:r,viewportWidth:o,resizable:f=!0,onCommit:h,children:m}){const g=w.useRef(void 0),y=Kf(o);function v(T){f&&(T.preventDefault(),T.currentTarget.setPointerCapture(T.pointerId),g.current={pointerId:T.pointerId,startX:T.clientX,startWidth:i})}function x(T){const ne=g.current;!ne||ne.pointerId!==T.pointerId||r(fa(ne.startWidth-(T.clientX-ne.startX),o),!0)}function N(T){g.current&&(g.current=void 0,T.currentTarget.hasPointerCapture(T.pointerId)&&T.currentTarget.releasePointerCapture(T.pointerId),h?.())}function R(T){f&&["ArrowLeft","ArrowRight","Home","End"].includes(T.key)&&(T.preventDefault(),r(J_(T.key,i,o),!0),h?.())}return d.jsxs("aside",{className:"panel","aria-label":"Panel",children:[d.jsx("div",{className:"panel-head",children:d.jsx("div",{className:"tabs",role:"tablist","aria-label":"Panel view",children:W_.map(({mode:T,label:ne})=>d.jsx("button",{type:"button",role:"tab",id:`panel-tab-${T}`,className:"tab","aria-selected":u===T,"aria-controls":`panel-body-${T}`,tabIndex:u===T?0:-1,onClick:()=>a(T),children:ne},T))})}),d.jsx("div",{className:"panel-body",id:`panel-body-${u}`,role:"tabpanel","aria-labelledby":`panel-tab-${u}`,tabIndex:-1,children:m}),f&&d.jsx("div",{className:"panel-resizer",role:"separator","aria-orientation":"vertical","aria-label":"Resize panel","aria-valuenow":i,"aria-valuemin":Ds,"aria-valuemax":y,"aria-valuetext":`${i} pixels`,tabIndex:0,onPointerDown:v,onPointerMove:x,onPointerUp:N,onPointerCancel:N,onKeyDown:R,onDoubleClick:()=>{r(Qf,!1),h?.()}})]})}function t5({collapsed:u,onToggle:a}){return d.jsx("button",{type:"button",className:"btn btn-quiet","aria-expanded":!u,onClick:a,title:u?"Show the session and file panel":"Hide the session and file panel and give the transcript the room",children:u?"Show panel":"Hide panel"})}const u5=44;function n5({session:u,models:a,error:i,onRequest:r,onSelect:o,thinking:f}){const h=w.useRef(null),m=w.useRef(!1),g=()=>{m.current=!0};w.useEffect(()=>{if(!(!m.current||a===void 0)){m.current=!1;try{h.current?.showPicker()}catch{}}},[a]);const[y,v]=w.useState(!1),x=()=>{y||(v(!0),r())},N=u.state!=="starting"&&u.state!=="stopped"&&u.state!=="failed",R=y&&a===void 0&&i===void 0;if(i!==void 0)return d.jsxs("div",{className:"picker picker-broken",children:[d.jsx("span",{className:"picker-label",children:"Model"}),d.jsx("span",{className:"picker-value",title:i,children:"unavailable"}),d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:()=>{v(!0),r()},children:"Retry"}),d.jsxs("span",{className:"picker-note warn",children:["Could not read the model list: ",i]})]});const T=u.model===void 0?"—":u.provider?`${u.provider}/${u.model}`:u.model,ne=a?.find(ee=>b2(u,ee)),Q=ne?ne.name??ne.id:T,J=x2(ne?ne.name??ne.id:u.model??"—",u5);return d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"picker-label","data-picker-row":"provider","data-picker-label":"",children:"Provider"}),d.jsx("span",{className:"picker-provider mono","data-picker-row":"provider",title:u.provider??void 0,children:u.provider??"—"}),d.jsx("label",{className:"picker-label","data-picker-row":"model","data-picker-label":"",htmlFor:`model-${u.id}`,children:"Model"}),d.jsxs("span",{className:"picker-controls","data-picker-row":"model",children:[d.jsxs("span",{className:"picker-field",children:[d.jsx("span",{className:`picker-display mono${N?"":" is-disabled"}`,"aria-hidden":"true",title:Q,children:J}),d.jsxs("select",{id:`model-${u.id}`,ref:h,className:"picker-select",title:Q,value:a===void 0?"":l5(u,a),disabled:!N,onMouseDown:ee=>{a===void 0&&(ee.preventDefault(),x(),g())},onKeyDown:ee=>{a===void 0&&(ee.key!=="Enter"&&ee.key!==" "||(ee.preventDefault(),x(),g()))},onFocus:x,onChange:ee=>{const[ue,...$]=ee.target.value.split("/");ue!==void 0&&$.length>0&&o(ue,$.join("/"))},children:[a===void 0&&d.jsx("option",{value:"",children:u.model??"—"}),a!==void 0&&a.length===0&&d.jsx("option",{value:"",children:"no models available"}),a!==void 0&&b6(a).map(ee=>d.jsx("optgroup",{label:ee.provider,children:ee.models.map(ue=>d.jsxs("option",{value:`${ue.provider}/${ue.id}`,children:[ue.name??ue.id,ue.reasoning?" · thinking":""]},`${ue.provider}/${ue.id}`))},ee.provider))]})]}),f]}),R&&d.jsx("span",{className:"picker-note","data-picker-row":"note",children:"reading the model list…"})]})}function l5(u,a){const i=a.find(r=>b2(u,r));return i?`${i.provider}/${i.id}`:""}function a5({installationRoot:u,initialPath:a="",onClose:i,onOpen:r}){const[o,f]=w.useState(a),h=w.useRef(null);w.useEffect(()=>{h.current?.focus();const v=x=>{x.key==="Escape"&&i()};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[i]);const m=o.trim(),g=w.useMemo(()=>{if(m.length===0)return"Enter a directory.";if(!m.startsWith("/"))return"Enter an absolute path, starting with /."},[m]),y=w.useMemo(()=>{if(g===void 0)return yy(m,u)},[m,u,g]);return d.jsx("div",{className:"modal-backdrop",onClick:i,role:"presentation",children:d.jsxs("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"open-dir-title",onClick:v=>v.stopPropagation(),children:[d.jsx("h3",{id:"open-dir-title",children:"Open in a directory"}),d.jsx("p",{style:{marginBottom:12},children:"The session is sandboxed to this directory. Pi Central does not change a session's directory later, so start it where the work belongs."}),d.jsxs("form",{onSubmit:v=>{v.preventDefault(),g===void 0&&r(m)},children:[d.jsx("input",{ref:h,type:"text",value:o,spellCheck:!1,placeholder:"/absolute/path/to/project","aria-label":"Working directory","aria-invalid":g!==void 0&&o.length>0,onChange:v=>f(v.target.value),style:{width:"100%",background:"var(--bg)",border:"1px solid var(--line-strong)",borderRadius:6,padding:"8px 10px",color:"var(--text)",font:"13px var(--mono)"}}),g!==void 0&&o.length>0&&d.jsx("p",{style:{color:"var(--warn-text)",fontSize:12,margin:"6px 0 0"},children:g}),y!==void 0&&d.jsxs("p",{className:"hazard",role:"status",children:[d.jsx("span",{"aria-hidden":"true",children:"⚠ "}),y]}),d.jsxs("div",{className:"dialog-actions",children:[d.jsx("button",{type:"submit",className:"btn",disabled:g!==void 0,children:"Open here"}),d.jsx("button",{type:"button",className:"btn btn-ghost",onClick:i,children:"Cancel"})]})]})]})})}function i5({value:u,onCommit:a}){const[i,r]=w.useState(!1),[o,f]=w.useState(u),h=w.useRef(null);w.useEffect(()=>{i&&(h.current?.focus(),h.current?.select())},[i]);const m=()=>{const v=o.trim();r(!1),!(v.length===0||v===u)&&a(v)},g=()=>{f(u),r(!1)};return{editing:i,draft:o,start:()=>{f(u),r(!0)},inputRef:h,inputProps:{value:o,onChange:v=>f(v.target.value),onBlur:m,onKeyDown:v=>{v.key==="Enter"?(v.preventDefault(),m()):v.key==="Escape"&&(v.preventDefault(),g()),v.stopPropagation()},onDoubleClick:v=>v.stopPropagation()}}}function r5({value:u,onCommit:a,label:i,className:r}){const o=i5({value:u,onCommit:a});return o.editing?d.jsx("input",{...o.inputProps,ref:o.inputRef,className:`inline-rename${r?` ${r}`:""}`,"aria-label":i}):d.jsx("span",{className:r,onDoubleClick:f=>{f.stopPropagation(),o.start()},title:"Double-click to rename",children:u})}function c5(u){return`${u.provider??"?"}/${u.model??"?"}@${u.thinkingLevel??"?"}`}function s5({session:u,levels:a,error:i,onRequest:r,onSelect:o}){const[f,h]=w.useState(void 0),m=c5(u),g=u.state!=="starting"&&u.state!=="stopped"&&u.state!=="failed";w.useEffect(()=>{!g||f===m||(h(m),r())},[g,m,f,r]);const y=a!==void 0,v=u.thinkingLevel??"—";return i!==void 0?d.jsxs("div",{className:"picker picker-broken",children:[d.jsx("span",{className:"picker-label",children:"Thinking"}),d.jsx("span",{className:"picker-value",title:i,children:v}),d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:()=>{h(void 0)},children:"Retry"}),d.jsxs("span",{className:"picker-note warn",children:["Could not read the levels: ",i]})]}):d.jsxs("div",{className:"picker",children:[d.jsx("label",{className:"picker-label",htmlFor:`thinking-${u.id}`,children:"Thinking"}),d.jsxs("select",{id:`thinking-${u.id}`,className:"picker-select picker-select-narrow",value:y&&a.includes(v)?v:"",disabled:!g||!y,onChange:x=>{x.target.value!==""&&o(x.target.value)},children:[(!y||!a.includes(v))&&d.jsx("option",{value:"",children:v}),y&&a.map(x=>d.jsx("option",{value:x,children:x},x))]}),!y&&d.jsx("span",{className:"picker-note",children:"reading the levels…"})]})}const o5=80;function f5({percent:u,showLabel:a=!0}){if(u===null||!Number.isFinite(u))return d.jsx("span",{className:"context-meter is-unknown",children:kf(null)});const i=Math.max(0,Math.min(100,u)),r=i>=o5;return d.jsxs("span",{className:`context-meter${r?" is-full":""}`,children:[d.jsx("span",{className:"context-meter-track",role:"meter","aria-valuenow":Math.round(i),"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Context usage",children:d.jsx("span",{className:"context-meter-fill",style:{width:`${i}%`}})}),a&&d.jsx("span",{className:"context-meter-label mono",children:kf(i)})]})}function d5({session:u,home:a,models:i,modelError:r,onRequestModels:o,onSelectModel:f,thinking:h,onRequestThinkingLevels:m,onSelectThinkingLevel:g,onRename:y,busy:v=!1,warnings:x=[]}){return d.jsxs("header",{className:"session-header",children:[d.jsx("div",{className:"run-track",children:v&&d.jsx("div",{className:"run-bar",style:{width:"100%"}})}),d.jsxs("div",{className:"title",children:[d.jsxs("h2",{children:[d.jsx(r5,{value:vs(u),label:"Session name",className:"session-name",onCommit:y}),u.scratch&&d.jsx("span",{className:"chip chip-scratch",children:"scratch"}),d.jsx("span",{className:`chip chip-${u.state}`,children:g2(u)}),u.pending>0&&d.jsxs("span",{className:"chip chip-pending",children:["+",u.pending," queued"]})]}),u.scratch===!1&&u.cwd!==void 0&&d.jsx("span",{className:"where",title:u.cwd,children:x6(u,a)})]}),d.jsxs("div",{className:"header-stats",children:[d.jsx(f5,{percent:u.contextPercent}),d.jsx("span",{className:"header-cost mono",title:"Total cost reported for this session",children:y2(u.cost)})]}),x.length>0&&d.jsx("div",{className:"warnings",role:"note",children:x.map((N,R)=>d.jsxs("span",{children:["⚠ ",N]},R))}),d.jsx("div",{className:"picker picker-grid",children:d.jsx(n5,{session:u,models:i,error:r,onRequest:o,onSelect:f,thinking:d.jsx(s5,{session:u,levels:h.levels,error:h.error,onRequest:m,onSelect:g})})})]})}function h5({history:u,historyTotal:a,onResume:i,home:r}){const[o,f]=w.useState(""),[h,m]=w.useState(void 0),g=g6(u,o);return d.jsxs("div",{className:"history",children:[d.jsxs("div",{className:"history-search",children:[d.jsx("input",{type:"search",value:o,placeholder:"Search sessions by content, project, or name","aria-label":"Search sessions",onChange:y=>f(y.target.value)}),o.length>0&&d.jsx("button",{type:"button",className:"btn",onClick:()=>f(""),children:"Clear search"})]}),u.length===0?d.jsxs("div",{className:"empty",style:{padding:0},children:[d.jsx("h2",{children:"No sessions on disk yet"}),d.jsxs("p",{children:["History comes from ",d.jsx("span",{className:"mono",children:"~/.pi/agent/sessions/"}),". A session appears here after its first message."]})]}):g.length===0?d.jsxs("div",{className:"empty",style:{padding:0},children:[d.jsxs("h2",{children:["No sessions match “",o,"”."]}),d.jsx("button",{type:"button",className:"btn",onClick:()=>f(""),children:"Clear search"})]}):d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"hint",style:{marginBottom:12},"aria-live":"polite",children:[g.length," of ",u.length," session",u.length===1?"":"s",a>u.length&&d.jsxs(d.Fragment,{children:[" · searching the ",u.length," most recent of ",a]})]}),g.map(y=>d.jsx(m5,{session:y,home:r,onSelect:()=>{if(!y.cwdExists){m(y);return}i(y)}},y.path))]}),h&&d.jsx(p5,{session:h,onDismiss:()=>m(void 0)})]})}function m5({session:u,home:a,onSelect:i}){return d.jsxs("button",{type:"button",className:"history-row",onClick:i,children:[d.jsxs("span",{className:"h1",children:[d.jsx("strong",{children:u.name??"Untitled session"}),u.scratch&&d.jsx("span",{className:"chip chip-scratch",children:"scratch"}),!u.cwdExists&&d.jsx("span",{className:"chip chip-awaiting-approval",children:"directory is gone"})]}),d.jsx("span",{className:"project",title:u.cwd,children:g5(u.cwd,a)}),d.jsx("p",{className:"first",children:u.firstMessage||"(no messages)"}),d.jsxs("span",{className:"meta",children:[d.jsx("span",{children:y6(u.modifiedMs)}),d.jsxs("span",{children:[u.messageCount," msgs"]}),d.jsx("span",{children:b5(u.bytes)})]})]})}function p5({session:u,onDismiss:a}){return d.jsx("div",{className:"modal-backdrop",onClick:a,role:"presentation",children:d.jsxs("div",{className:"modal",role:"alertdialog","aria-modal":"true","aria-labelledby":"refusal-title",onClick:i=>i.stopPropagation(),children:[d.jsx("h3",{id:"refusal-title",children:"This session's directory is gone"}),d.jsx("p",{style:{marginBottom:12},children:"The directory this session worked in no longer exists:"}),d.jsx("pre",{className:"cmd",style:{marginBottom:12},children:u.cwd}),d.jsx("p",{style:{marginBottom:16},children:"Restore it, or start a new session in the directory you want to work in. Pi Central does not move a session between directories."}),d.jsxs("div",{className:"dialog-actions",style:{marginTop:0},children:[d.jsx("button",{type:"button",className:"btn",onClick:a,children:"Close"}),d.jsx(Rl,{text:u.cwd,label:"path"})]})]})})}function g5(u,a){return a&&u.startsWith(a)?`~${u.slice(a.length)}`:u}function b5(u){return u<1024?`${u} B`:u<1024*1024?`${(u/1024).toFixed(1)} KB`:`${(u/(1024*1024)).toFixed(1)} MB`}const y5=1024;function x5(){const[u,a]=w.useReducer(r6,void 0,p2),[i,r]=w.useState("connecting"),[o,f]=w.useState(void 0),[h,m]=w.useState("sessions"),[g,y]=w.useState(!1),[v,x]=w.useState(void 0),[N,R]=w.useState(!1),T=w.useRef(null),[ne,Q]=w.useState({}),[J,ee]=w.useState({}),ue=w.useRef(0),[$,W]=w.useState({}),[ce,te]=w.useState(0),[ie,Ge]=w.useState(!0),Ie=w.useRef(new Map),[Ee,Te]=w.useState(()=>Ny().markers),[Qe,Ue]=w.useState({}),[ye,K]=w.useState({}),[re,ae]=w.useState(()=>{try{return S2(localStorage.getItem(jf))}catch{return"oldest"}}),[Ce,be]=w.useState(Cr),[He,L]=w.useState(()=>{try{return P_(localStorage.getItem(hs))}catch{return Ag()}}),[se,S]=w.useState(()=>typeof window>"u"?1440:window.innerWidth),[H,Z]=w.useState(!1),fe=se<y5;w.useEffect(()=>{const U=()=>{S(window.innerWidth),L(X=>({...X,width:fa(X.width,window.innerWidth)}))};return window.addEventListener("resize",U),()=>window.removeEventListener("resize",U)},[]),w.useEffect(()=>{fe||Z(!1)},[fe]),w.useEffect(()=>{if(!H)return;const U=X=>{X.key==="Escape"&&(X.stopPropagation(),Z(!1))};return window.addEventListener("keydown",U,{capture:!0}),()=>window.removeEventListener("keydown",U,{capture:!0})},[H]),w.useEffect(()=>{ky({collapsed:{},markers:Ee})},[Ee]),w.useEffect(()=>{try{localStorage.setItem(jf,re)}catch{}},[re]);const je=w.useCallback((U,X)=>{L(_e=>({..._e,width:U,userSized:X}))},[]),we=w.useCallback(()=>{L(U=>{const X={...U,collapsed:!U.collapsed};try{localStorage.setItem(hs,Cf(X))}catch{}return X})},[]),Re=w.useCallback(()=>{L(U=>{try{localStorage.setItem(hs,Cf(U))}catch{}return U})},[]),I=w.useCallback(U=>{L(X=>{const _e=U==="files"&&!X.userSized?fa(K_,se):X.width,Ve={...X,mode:U,width:_e};try{localStorage.setItem(hs,Cf(Ve))}catch{}return Ve})},[se]),[P,ze]=w.useReducer(Uy,void 0,jy),Yt=w.useRef(P);Yt.current=P;const Cu=w.useRef(void 0);w.useEffect(()=>{const U=new _y(Ey(),{onEvent:X=>{switch(a(X),X.kind){case"files":ze({kind:"filesLoaded",sessionId:X.sessionId,path:X.path,entries:X.entries,truncated:X.truncated});break;case"file":ze({kind:"fileLoaded",sessionId:X.sessionId,path:X.path,bytes:X.bytes,content:X.content});break;case"fileError":X.request==="list"?ze({kind:"filesFailed",sessionId:X.sessionId,path:X.path,reason:X.reason,...X.code===void 0?{}:{code:X.code},message:X.message}):ze({kind:"fileFailed",sessionId:X.sessionId,path:X.path,reason:X.reason,...X.code===void 0?{}:{code:X.code},message:X.message});break}},onStatus:(X,_e)=>{r(X),f(_e)}});return Cu.current=U,U.connect(),()=>U.disconnect()},[]);const he=w.useCallback(U=>{const X=Cu.current?.send(U);return X||a({kind:"error",message:"Not connected to the orchestrator. Nothing was sent."}),X},[]),q=f6(u),ge=w.useCallback((U,X)=>{if(!q)return;const _e=q.id;Ue(Ve=>({...Ve,[_e]:{...Ve[_e]??{},[U]:X}}))},[q]),it=w.useCallback((U,X,_e)=>{ze({kind:"filesLoading",sessionId:U,path:X}),he({kind:"listFiles",sessionId:U,path:X,includeHidden:_e})},[he]),At=w.useCallback(U=>{q&&(ze({kind:"setExpanded",sessionId:q.id,path:U,expanded:!0}),ci(Yt.current,q.id,U).status!=="loaded"&&it(q.id,U,ms(Yt.current,q.id)))},[q,it]),Vt=w.useCallback(async(U,X)=>{let _e=zt.current[U]??[];for(const Ve of X){const En=mg.includes(Ve.type)?await P8(Ve):null;if(En===null){W(Xt=>({...Xt,[U]:u2("unsupported-type",{type:Ve.type||Ve.name})})),ee(Xt=>({...Xt,[U]:_e}));return}ue.current+=1;const Nu=Z8(_e,En,`a${ue.current}`);if(!Nu.ok){W(Xt=>({...Xt,[U]:u2(Nu.reason,{bytes:pg(En.data)})})),ee(Xt=>({...Xt,[U]:_e}));return}_e=Nu.attachments}ee(Ve=>({...Ve,[U]:_e})),W(Ve=>({...Ve,[U]:void 0}))},[]),yn=w.useCallback((U,X)=>{ee(_e=>({..._e,[U]:$8(_e[U]??[],X)}))},[]),zt=w.useRef(J);zt.current=J;const Hu=w.useCallback(U=>{q&&(ze({kind:"openFile",sessionId:q.id,path:U}),ze({kind:"fileLoading",sessionId:q.id,path:U}),he({kind:"readFile",sessionId:q.id,path:U}))},[q,he]),Ku=w.useCallback((U,X)=>{Df(Yt.current,U,X).status==="unloaded"&&(ze({kind:"fileLoading",sessionId:U,path:X}),he({kind:"readFile",sessionId:U,path:X}))},[he]),ft=q?.id,xn=w.useCallback(U=>{ft!==void 0&&ci(Yt.current,ft,U).status==="unloaded"&&it(ft,U,!1)},[ft,it]),lu=w.useCallback(U=>{if(ft===void 0)return;const X=ci(P,ft,U);if(X.status==="loaded")return X.entries.filter(_e=>_e.kind==="file"||_e.kind==="directory").map(_e=>({name:_e.name,kind:_e.kind}))},[ft,P]),Tt=w.useCallback(U=>{ft!==void 0&&Ku(ft,U)},[ft,Ku]),mu=w.useCallback(U=>ft===void 0?{status:"unloaded"}:Df(P,ft,U),[ft,P]),vn=w.useCallback(()=>{if(!q)return;const U=q.id,X=!ms(Yt.current,U);ze({kind:"toggleHidden",sessionId:U});const _e=`${U}\0`;for(const Ve of Object.keys(Yt.current.directories))Ve.startsWith(_e)&&it(U,Ve.slice(_e.length),X)},[q,it]),Du=q?.id;w.useEffect(()=>{Du&&ci(Yt.current,Du,"").status==="unloaded"&&it(Du,"",ms(Yt.current,Du))},[Du,it]);const _n=u.live.map(U=>U.id).join("\0");w.useEffect(()=>{const U=new Set(u.live.map(X=>X.id));for(const X of Object.keys(Yt.current.directories)){const{sessionId:_e}=wy(X);U.has(_e)||ze({kind:"forgetSession",sessionId:_e})}},[_n]);const Ju=d6(u,q?.id),vt=s6(u),pu=u.home,Yn=o6(u);w.useEffect(()=>{const U=X=>{const _e=X.metaKey||X.ctrlKey;_e&&X.key.toLowerCase()==="n"&&(X.preventDefault(),he({kind:"start"})),_e&&X.shiftKey&&X.key.toLowerCase()==="o"&&(X.preventDefault(),y(!0))};return window.addEventListener("keydown",U),()=>window.removeEventListener("keydown",U)},[he]),w.useEffect(()=>{a({kind:"loadRoster",entries:Jy(localStorage.getItem(op))})},[]),w.useEffect(()=>{for(const U of u.live){const X=m2(U);X!==void 0&&a({kind:"remember",entry:X})}},[u.live]),w.useEffect(()=>{try{localStorage.setItem(op,Py(u.roster))}catch{}},[u.roster]),w.useEffect(()=>{const U=u.pendingPrompt;if(U===void 0)return;const X=a6(U,u.live);X!==void 0&&(a({kind:"clearPendingPrompt"}),a({kind:"focusRow",key:X.id}),he(X.state==="streaming"&&U.behavior!==void 0?{kind:"prompt",sessionId:X.id,message:U.message,behavior:U.behavior}:{kind:"prompt",sessionId:X.id,message:U.message}),te(_e=>_e+1))},[u.pendingPrompt,u.live,he]);const Ll=w.useCallback(U=>{q&&he({kind:"rename",sessionId:q.id,name:U})},[q,he]),Ct=w.useCallback(()=>{a({kind:"expectNewSession"}),he({kind:"start"})},[he]),ha=w.useCallback(U=>{a({kind:"expectNewSession"}),he({kind:"start",cwd:U}),y(!1),m("sessions")},[he]),Vn=w.useCallback((U,X)=>{q&&he({kind:"answerDialog",sessionId:q.id,dialogId:U,answer:X})},[q,he]);return d.jsxs("div",{className:"app",children:[d.jsxs("header",{className:"topbar",children:[d.jsxs("h1",{className:"wordmark",children:[d.jsx("img",{className:"wordmark-mark",src:Sy,alt:"","aria-hidden":"true"}),"Pi Central"]}),fe&&d.jsx("button",{type:"button",className:"rail-toggle","aria-expanded":H,"aria-controls":"session-rail",onClick:()=>Z(U=>!U),children:"Sessions"}),d.jsxs("div",{className:"tabs",role:"tablist","aria-label":"View",children:[d.jsx("button",{type:"button",role:"tab",className:"tab","aria-selected":h==="sessions",onClick:()=>m("sessions"),children:"Sessions"}),d.jsx("button",{type:"button",role:"tab",className:"tab","aria-selected":h==="history",onClick:()=>m("history"),children:"History"})]}),d.jsxs("div",{className:"topbar-right",children:[d.jsxs("div",{className:"fleet",children:[d.jsxs("span",{children:[vt.total," session",vt.total===1?"":"s"]}),vt.running>0&&d.jsxs("span",{children:[vt.running," running"]}),vt.scratch>0&&d.jsxs("span",{children:[vt.scratch," scratch"]}),vt.needs>0&&d.jsxs("span",{className:"fleet-needs",children:[vt.needs," need you"]})]}),d.jsxs("span",{className:`conn conn-${i}`,children:[d.jsx("span",{className:"conn-dot","aria-hidden":"true"}),d.jsx("span",{children:i==="open"?"connected":i==="connecting"?"connecting…":"disconnected"}),o&&d.jsxs("span",{className:"hint",children:["· ",o]})]}),d.jsx(t5,{collapsed:He.collapsed,onToggle:we}),d.jsx("button",{type:"button",className:"btn btn-quiet",ref:T,onClick:()=>R(!0),children:"Settings"})]})]}),Yn&&d.jsxs("div",{className:"direct-banner",role:"alert",children:[d.jsx("strong",{children:"Direct mode: sessions are not sandboxed"}),d.jsx("span",{children:"These sessions run pi with your account's access. Everything else in Pi Central is unaffected; start new sessions with the sandbox to change it."})]}),u.errors.length>0&&d.jsx(C5,{message:u.errors[0],onDismiss:()=>a({kind:"dismissError"})}),H&&fe&&d.jsx("button",{type:"button",className:"rail-backdrop","aria-label":"Close the session list",onClick:()=>Z(!1)}),d.jsxs("div",{className:He.collapsed?"panes is-collapsed":"panes",style:{"--panel-width":`${He.width}px`},children:[d.jsx(E6,{rows:t6(u.roster,u.live),focusedId:u.focusedId,openAsDrawer:H,onCloseDrawer:()=>Z(!1),onFocusRow:U=>{a({kind:"focusRow",key:A5(U)}),m("sessions"),Z(!1)},onForgetRow:U=>a({kind:"forget",path:U.entry.path}),retryAvailable:py(u.install?.protocol),onRetryRow:U=>{U.session!==void 0&&he({kind:"retry",sessionId:U.session.id})},onStartSession:Ct,onOpenDirectory:()=>y(!0),home:pu,historyTotal:u.historyTotal}),h==="history"?d.jsx("main",{className:"column",children:d.jsx(h5,{history:u.history,historyTotal:u.historyTotal,home:pu,onResume:U=>{a({kind:"expectNewSession"}),he({kind:"resume",path:U.path}),m("sessions")}})}):d.jsx("main",{className:"column",children:d.jsx(T5,{session:q,preview:q?Tt:v5,previews:q?mu:_5,attachments:q?J[q.id]??c2:c2,onAttach:U=>{q&&Vt(q.id,U)},onRemoveAttachment:U=>{q&&yn(q.id,U)},attachNotice:q?$[q.id]:void 0,listMentionDirectory:q?xn:E5,mentionEntries:q?lu:S5,showMarkers:q?Ee[q.id]!==!1:!0,activityOpen:q?Qe[q.id]??{}:{},onToggleActivity:ge,onInspectTool:U=>{q!==void 0&&(K(X=>({...X,[q.id]:U})),L(X=>({...X,collapsed:!1,mode:"trace"})))},onToggleMarkers:()=>q&&Te(U=>({...U,[q.id]:U[q.id]===!1})),transcript:Ju,home:pu,historyError:u.transcriptErrors[q?.id??""],followToken:ce,autoFollow:ie,onToggleAutoFollow:()=>Ge(U=>!U),scrollMemory:Ie,models:q?u.models[q.id]:void 0,modelError:q?u.modelErrors[q.id]:void 0,onRename:Ll,onAnswer:Vn,onRequestModels:()=>{q&&he({kind:"listModels",sessionId:q.id})},onSelectModel:(U,X)=>{q&&he({kind:"setModel",sessionId:q.id,provider:U,modelId:X})},thinking:{levels:q?u.thinkingLevels[q.id]:void 0,error:q?u.thinkingLevelErrors[q.id]:void 0},onRequestThinkingLevels:()=>{q&&he({kind:"listThinkingLevels",sessionId:q.id})},onSelectThinkingLevel:U=>{q&&he({kind:"setThinkingLevel",sessionId:q.id,level:U})},onSend:(U,X)=>{if(!q)return;const _e=q.id,Ve=K8(zt.current[_e]??[]);he({kind:"prompt",sessionId:_e,message:U,...q.state==="streaming"?{behavior:X}:{},...Ve.length>0?{images:Ve}:{}})&&Ve.length>0&&ee(Nu=>({...Nu,[_e]:[]})),te(Nu=>Nu+1)},onClearQueueAndStop:()=>{q&&he({kind:"clearQueue",sessionId:q.id,andStop:!0})},state:u,restored:q?u.restoredQueue[q.id]??[]:[],onRestored:()=>{q&&a({kind:"queueRestored",sessionId:q.id})},draft:q?ne[q.id]??"":"",onDraftChange:U=>{q&&Q(X=>({...X,[q.id]:U}))}},q?.id)}),!He.collapsed&&d.jsx(e5,{mode:He.mode,onMode:I,width:He.width,onWidth:je,viewportWidth:se,onCommit:Re,children:He.mode==="trace"?q?d.jsx(l_,{tools:Ju.tools,selectedId:ye[q.id],onSelect:U=>K(X=>({...X,[q.id]:U})),showMarkers:Ee[q.id]!==!1,onToggleMarkers:()=>Te(U=>({...U,[q.id]:U[q.id]===!1})),variant:"panel",order:re,onOrder:ae,detailHeight:Ce,onDetailHeight:be,onResetDetailHeight:()=>be(Cr)}):d.jsx("p",{className:"panel-empty",children:"Select a session to see what it ran."}):He.mode==="session"?d.jsx(O_,{session:h==="sessions"?q:void 0,home:pu,onStop:()=>q&&x(q),onRename:Ll}):q?d.jsx(Z_,{sessionId:q.id,files:P,cwd:q.cwd,onExpand:At,onCollapse:U=>ze({kind:"setExpanded",sessionId:q.id,path:U,expanded:!1}),onToggleHidden:vn,wrapped:Ry(P,q.id),onToggleWrap:()=>ze({kind:"toggleWrap",sessionId:q.id}),onOpenFile:Hu,onCloseFile:()=>ze({kind:"closeFile",sessionId:q.id})}):d.jsx("p",{className:"panel-empty",children:"Select a session to browse its working directory."})})]}),N&&d.jsx(B_,{install:u.install,ready:u.ready,onClose:()=>{R(!1),T.current?.focus()}}),g&&d.jsx(a5,{installationRoot:u.installationRoot,onClose:()=>y(!1),onOpen:ha}),v&&d.jsx(D5,{session:v,onCancel:()=>x(void 0),onConfirm:()=>{he({kind:"stop",sessionId:v.id}),x(void 0)}})]})}const v5=()=>{},_5=()=>({status:"unloaded"}),c2=Object.freeze([]),E5=()=>{},S5=()=>{};function A5(u){return u.session?.id??u.entry.path}function T5({session:u,preview:a,previews:i,attachments:r,onAttach:o,onRemoveAttachment:f,attachNotice:h,listMentionDirectory:m,mentionEntries:g,transcript:y,home:v,historyError:x,models:N,modelError:R,onAnswer:T,onRename:ne,onRequestModels:Q,onSelectModel:J,thinking:ee,onRequestThinkingLevels:ue,onSelectThinkingLevel:$,onSend:W,onClearQueueAndStop:ce,followToken:te,autoFollow:ie,showMarkers:Ge,activityOpen:Ie,onToggleActivity:Ee,onInspectTool:Te,onToggleMarkers:Qe,onToggleAutoFollow:Ue,scrollMemory:ye,restored:K,onRestored:re,state:ae,draft:Ce,onDraftChange:be}){if(!u)return d.jsxs("div",{className:"empty",children:[d.jsx("h2",{children:"No session selected"}),d.jsxs("p",{children:[d.jsx("span",{className:"action",children:"New session"})," gives it its own scratch workspace immediately — no directory to pick, nothing to decide first. Files it writes stay there."]}),d.jsxs("p",{children:["Working in a project? ",d.jsx("span",{className:"action",children:"Open in a directory."})]})]});const He=u.state==="streaming",L=Q8(N?.find(se=>se.id===u.model)?.input??N?.find(se=>se.name===u.model)?.input);return d.jsxs(d.Fragment,{children:[d.jsx(j_,{dialogs:u.dialogs,onAnswer:T}),d.jsx(Y8,{initialScroll:ye.current.get(u.id),onScrollMemory:se=>ye.current.set(u.id,se),followToken:te,autoFollow:ie,transcript:y,busy:He,sessionId:u.id,preview:a,previews:i,sessionLabel:vs(u),expectedCount:u.messageCount,showMarkers:Ge,activityOpen:Ie,onToggleActivity:Ee,onToggleAutoFollow:Ue,historyError:x,onOpenTool:se=>Te(se),header:d.jsx(d5,{session:u,home:v,models:N,modelError:R,onRequestModels:Q,onSelectModel:J,thinking:ee,onRequestThinkingLevels:ue,onSelectThinkingLevel:$,onRename:ne,busy:He,warnings:u.warnings}),footer:h6({...p2(),live:[u]})>0?void 0:d.jsx(k_,{session:u,state:ae,unavailableReason:m6(u).reason,onSend:W,onClearQueueAndStop:ce,restored:K,onRestored:re,draft:Ce,onDraftChange:be,attachments:r,onAttach:o,onRemoveAttachment:f,canAttach:L,notice:h,listDirectory:m,directoryEntries:g,follow:Ue===void 0?void 0:d.jsx(C6,{following:ie,onToggle:Ue})})})]})}function C5({message:u,onDismiss:a}){const[i,...r]=u.split(`
50
+ `);return d.jsxs("div",{className:"error-card",role:"alert",children:[d.jsxs("p",{children:[i,r.length>0&&d.jsxs("span",{className:"error-more",children:[" ","(+",r.length," more line",r.length===1?"":"s"," — see the Session panel)"]})]}),d.jsx("div",{className:"actions",children:d.jsx("button",{type:"button",className:"btn",onClick:a,children:"Dismiss"})})]})}function D5({session:u,onCancel:a,onConfirm:i}){const r=w.useRef(null);return w.useEffect(()=>{r.current?.focus();const o=f=>{f.key==="Escape"&&a()};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[a]),d.jsx("div",{className:"modal-backdrop",onClick:a,role:"presentation",children:d.jsxs("div",{className:"modal",role:"alertdialog","aria-modal":"true","aria-labelledby":"stop-title",onClick:o=>o.stopPropagation(),children:[d.jsx("h3",{id:"stop-title",children:"Stop this session?"}),d.jsxs("p",{children:["This ends the run in progress for ",vs(u),". Messages so far are already saved."]}),d.jsxs("div",{className:"dialog-actions",children:[d.jsx("button",{type:"button",className:"btn btn-danger",onClick:i,children:"Stop session"}),d.jsx("button",{type:"button",className:"btn",ref:r,onClick:a,children:"Keep running"})]})]})})}const Tg=document.getElementById("root");if(!Tg)throw new Error("missing #root");oy.createRoot(Tg).render(d.jsx(w.StrictMode,{children:d.jsx(x5,{})}));"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(()=>{})});export{ps as _};