pi-central 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/bin/pi-central.js +721 -305
- package/bin/pi-central.js.map +4 -4
- package/dist/ui/assets/{grammar-map-BUAa5ICq.js → grammar-map-C3CccWB0.js} +1 -1
- package/dist/ui/assets/index-BaBrH8fV.js +50 -0
- package/dist/ui/assets/{index-BA5r5TxA.css → index-DGDX197N.css} +1 -1
- package/dist/ui/index.html +2 -2
- package/package.json +1 -1
- package/dist/ui/assets/index-BXDFZiai.js +0 -48
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.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 Qm;function ay(){if(Qm)return gr;Qm=1;var u=Symbol.for("react.transitional.element"),l=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=l,gr.jsx=i,gr.jsxs=i,gr}var Km;function iy(){return Km||(Km=1,$0.exports=ay()),$0.exports}var d=iy(),Q0={exports:{}},Ee={};var Jm;function ry(){if(Jm)return Ee;Jm=1;var u=Symbol.for("react.transitional.element"),l=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"),k=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},Ye=Object.prototype.hasOwnProperty;function Ve(S,H,Z){var fe=Z.ref;return{$$typeof:u,type:S,key:H,ref:fe!==void 0?fe:null,props:Z}}function _e(S,H){return Ve(S.type,H,S.props)}function Te(S){return typeof S=="object"&&S!==null&&S.$$typeof===u}function Ke(S){var H={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Z){return H[Z]})}var Be=/\/+/g;function ye(S,H){return typeof S=="object"&&S!==null&&S.key!=null?Ke(""+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 Oe=typeof S;(Oe==="undefined"||Oe==="boolean")&&(S=null);var Me=!1;if(S===null)Me=!0;else switch(Oe){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(S.$$typeof){case u:case l:Me=!0;break;case v:return Me=S._init,re(Me(S._payload),H,Z,fe,je)}}if(Me)return je=je(S),Me=fe===""?"."+ye(S,0):fe,ce(je)?(Z="",Me!=null&&(Z=Me.replace(Be,"$&/")+"/"),re(je,H,Z,"",function(Le){return Le})):je!=null&&(Te(je)&&(je=_e(je,Z+(je.key==null||S&&S.key===je.key?"":(""+je.key).replace(Be,"$&/")+"/")+Me)),H.push(je)),1;Me=0;var I=fe===""?".":fe+":";if(ce(S))for(var P=0;P<S.length;P++)fe=S[P],Oe=I+ye(fe,P),Me+=re(fe,H,Z,Oe,je);else if(P=T(S),typeof P=="function")for(S=P.call(S),P=0;!(fe=S.next()).done;)fe=fe.value,Oe=I+ye(fe,P++),Me+=re(fe,H,Z,Oe,je);else if(Oe==="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 Me}function ae(S,H,Z){if(S==null)return S;var fe=[],je=0;return re(S,fe,"","",function(Oe){return H.call(Z,Oe,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 Ie(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(Oe){be(Oe)}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 Ie(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 Ee.Activity=x,Ee.Children=se,Ee.Component=ee,Ee.Fragment=i,Ee.Profiler=o,Ee.PureComponent=$,Ee.StrictMode=r,Ee.Suspense=g,Ee.ViewTransition=k,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ie,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(S){return ie.H.useMemoCache(S)}},Ee.addTransitionType=L,Ee.cache=function(S){return function(){return S.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.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(Oe in H.key!==void 0&&(je=""+H.key),H)!Ye.call(H,Oe)||Oe==="key"||Oe==="__self"||Oe==="__source"||Oe==="ref"&&H.ref===void 0||(fe[Oe]=H[Oe]);var Oe=arguments.length-2;if(Oe===1)fe.children=Z;else if(1<Oe){for(var Me=Array(Oe),I=0;I<Oe;I++)Me[I]=arguments[I+2];fe.children=Me}return Ve(S.type,je,fe)},Ee.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},Ee.createElement=function(S,H,Z){var fe,je={},Oe=null;if(H!=null)for(fe in H.key!==void 0&&(Oe=""+H.key),H)Ye.call(H,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(je[fe]=H[fe]);var Me=arguments.length-2;if(Me===1)je.children=Z;else if(1<Me){for(var I=Array(Me),P=0;P<Me;P++)I[P]=arguments[P+2];je.children=I}if(S&&S.defaultProps)for(fe in Me=S.defaultProps,Me)je[fe]===void 0&&(je[fe]=Me[fe]);return Ve(S,Oe,je)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(S){return{$$typeof:m,render:S}},Ee.isValidElement=Te,Ee.lazy=function(S){return{$$typeof:v,_payload:{_status:-1,_result:S},_init:Ce}},Ee.memo=function(S,H){return{$$typeof:y,type:S,compare:H===void 0?null:H}},Ee.startTransition=Ie,Ee.unstable_useCacheRefresh=function(){return ie.H.useCacheRefresh()},Ee.use=function(S){return ie.H.use(S)},Ee.useActionState=function(S,H,Z){return ie.H.useActionState(S,H,Z)},Ee.useCallback=function(S,H){return ie.H.useCallback(S,H)},Ee.useContext=function(S){return ie.H.useContext(S)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(S,H){return ie.H.useDeferredValue(S,H)},Ee.useEffect=function(S,H){return ie.H.useEffect(S,H)},Ee.useEffectEvent=function(S){return ie.H.useEffectEvent(S)},Ee.useId=function(){return ie.H.useId()},Ee.useImperativeHandle=function(S,H,Z){return ie.H.useImperativeHandle(S,H,Z)},Ee.useInsertionEffect=function(S,H){return ie.H.useInsertionEffect(S,H)},Ee.useLayoutEffect=function(S,H){return ie.H.useLayoutEffect(S,H)},Ee.useMemo=function(S,H){return ie.H.useMemo(S,H)},Ee.useOptimistic=function(S,H){return ie.H.useOptimistic(S,H)},Ee.useReducer=function(S,H,Z){return ie.H.useReducer(S,H,Z)},Ee.useRef=function(S){return ie.H.useRef(S)},Ee.useState=function(S){return ie.H.useState(S)},Ee.useSyncExternalStore=function(S,H,Z){return ie.H.useSyncExternalStore(S,H,Z)},Ee.useTransition=function(){return ie.H.useTransition()},Ee.version="19.3.1",Ee}var Pm;function Ff(){return Pm||(Pm=1,Q0.exports=ry()),Q0.exports}var N=Ff(),K0={exports:{}},br={},J0={exports:{}},P0={};var Wm;function cy(){return Wm||(Wm=1,(function(u){function l(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,Ie=be>>>1;Ce<Ie;){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,k=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,l(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,Ye=-1;function Ve(){return Q?!0:!(u.unstable_now()-Ye<ie)}function _e(){if(Q=!1,ce){var K=u.unstable_now();Ye=K;var re=!0;try{e:{T=!1,ne&&(ne=!1,ee(te),te=-1),R=!0;var ae=k;try{t:{for($(K),x=i(g);x!==null&&!(x.expirationTime>K&&Ve());){var Ce=x.callback;if(typeof Ce=="function"){x.callback=null,k=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 Ie=i(y);Ie!==null&&ye(W,Ie.startTime-K),re=!1}}break e}finally{x=null,k=ae,R=!1}re=void 0}}finally{re?Te():ce=!1}}}var Te;if(typeof ue=="function")Te=function(){ue(_e)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,Be=Ke.port2;Ke.port1.onmessage=_e,Te=function(){Be.postMessage(null)}}else Te=function(){J(_e,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 k},u.unstable_next=function(K){switch(k){case 1:case 2:case 3:var re=3;break;default:re=k}var ae=k;k=re;try{return K()}finally{k=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=k;k=K;try{return re()}finally{k=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,l(y,K),i(g)===null&&K===i(y)&&(ne?(ee(te),te=-1):ne=!0,ye(W,ae-Ce))):(K.sortIndex=be,l(g,K),T||R||(T=!0,ce||(ce=!0,Te()))),K},u.unstable_shouldYield=Ve,u.unstable_wrapCallback=function(K){var re=k;return function(){var ae=k;k=re;try{return K.apply(this,arguments)}finally{k=ae}}}})(P0)),P0}var ep;function sy(){return ep||(ep=1,J0.exports=cy()),J0.exports}var W0={exports:{}},Gt={};var tp;function oy(){if(tp)return Gt;tp=1;var u=Ff();function l(v){var x="https://react.dev/errors/"+v;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var k=2;k<arguments.length;k++)x+="&args[]="+encodeURIComponent(arguments[k])}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(l(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,k){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:k}}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 Gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Gt.browser=function(v){return{$$typeof:f,_reason:v}},Gt.createPortal=function(v,x){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(l(299));return m(v,x,null,k)},Gt.flushSync=function(v){var x=g.T,k=r.p;try{if(g.T=null,r.p=2,v)return v()}finally{g.T=x,r.p=k,r.d.f()}},Gt.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))},Gt.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},Gt.preinit=function(v,x){if(typeof v=="string"&&x&&typeof x.as=="string"){var k=x.as,R=y(k,x.crossOrigin),T=typeof x.integrity=="string"?x.integrity:void 0,ne=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;k==="style"?r.d.S(v,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:R,integrity:T,fetchPriority:ne}):k==="script"&&r.d.X(v,{crossOrigin:R,integrity:T,fetchPriority:ne,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},Gt.preinitModule=function(v,x){if(typeof v=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var k=y(x.as,x.crossOrigin);r.d.M(v,{crossOrigin:k,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)},Gt.preload=function(v,x){if(typeof v=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var k=x.as,R=y(k,x.crossOrigin);r.d.L(v,k,{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})}},Gt.preloadModule=function(v,x){if(typeof v=="string")if(x){var k=y(x.as,x.crossOrigin);r.d.m(v,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:k,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)},Gt.requestFormReset=function(v){r.d.r(v)},Gt.unstable_batchedUpdates=function(v,x){return v(x)},Gt.useFormState=function(v,x,k){return g.H.useFormState(v,x,k)},Gt.useFormStatus=function(){return g.H.useHostTransitionStatus()},Gt.version="19.3.1",Gt}var up;function fy(){if(up)return W0.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(l){console.error(l)}}return u(),W0.exports=oy(),W0.exports}var np;function dy(){if(np)return br;np=1;var u=sy(),l=Ff(),i=fy();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,a=t;;){var c=n.return;if(c===null)break;var s=c.alternate;if(s===null){if(a=c.return,a!==null){n=a;continue}break}if(c.child===s.child){for(s=c.child;s;){if(s===n)return g(c),e;if(s===a)return g(c),t;s=s.sibling}throw Error(r(188))}if(n.return!==a.return)n=c,a=s;else{for(var p=!1,b=c.child;b;){if(b===n){p=!0,n=c,a=s;break}if(b===a){p=!0,a=c,n=s;break}b=b.sibling}if(!p){for(b=s.child;b;){if(b===n){p=!0,n=s,a=c;break}if(b===a){p=!0,a=s,n=c;break}b=b.sibling}if(!p)throw Error(r(189))}}if(n.alternate!==a)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,a,c,s){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,a,c,s)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&x(e.child,t,n,a,c,s))return!0;e=e.sibling}return!1}function k(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=k(e);return n===null||ne(t,e,n.child,{foundSelf:!1}),t}function ne(e,t,n,a){for(;n!==null;){if(n===t)a.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(a.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&ne(e,t,n.child,a))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 a=0,c=e;c;c=n(c))a++;c=0;for(var s=t;s;s=n(s))c++;for(;0<a-c;)e=n(e),a--;for(;0<c-a;)t=n(t),c--;for(;a--;){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"),Ye=Symbol.for("react.transitional.element"),Ve=Symbol.for("react.portal"),_e=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),Ke=Symbol.for("react.profiler"),Be=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"),Ie=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 Oe(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 _e:return"Fragment";case Ke:return"Profiler";case Te:return"StrictMode";case re:return"Suspense";case ae:return"SuspenseList";case Ie:return"Activity";case S:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Ve:return"Portal";case ye:return e.displayName||"Context";case Be: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:Oe(e.type)||"Memo";case be:t=e._payload,e=e._init;try{return Oe(e(t))}catch{}}return null}var Me=Array.isArray,I=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Le={pending:!1,data:null,method:null,action:null},kt=[],Tu=-1;function ze(e){return{current:e}}function ct(e){0>Tu||(e.current=kt[Tu],kt[Tu]=null,Tu--)}function ge(e,t){Tu++,kt[Tu]=e.current,e.current=t}var wt=ze(null),Se=ze(null),X=ze(null),gn=ze(null);function st(e,t){switch(ge(X,t),ge(Se,e),ge(wt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lm(t),e=am(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ct(wt),ge(wt,e)}function Hu(){ct(wt),ct(Se),ct(X)}function bn(e){var t=e.memoizedState;t!==null&&(li._currentValue=t.memoizedState,ge(gn,e)),t=wt.current;var n=am(t,e.type);t!==n&&(ge(Se,e),ge(wt,n))}function yn(e){Se.current===e&&(ct(wt),ct(Se)),gn.current===e&&(ct(gn),li._currentValue=Le)}var qu,nu;function At(e){if(qu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qu=t&&t[1]||"",nu=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+qu+e+nu}var it=!1;function xn(e,t){if(!e||it)return"";it=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={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]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),p=s[0],b=s[1];if(p&&b){var E=p.split(`
|
|
4
|
+
`),j=b.split(`
|
|
5
|
+
`);for(c=a=0;a<E.length&&!E[a].includes("DetermineComponentFrameRoot");)a++;for(;c<j.length&&!j[c].includes("DetermineComponentFrameRoot");)c++;if(a===E.length||c===j.length)for(a=E.length-1,c=j.length-1;1<=a&&0<=c&&E[a]!==j[c];)c--;for(;1<=a&&0<=c;a--,c--)if(E[a]!==j[c]){if(a!==1||c!==1)do if(a--,c--,0>c||E[a]!==j[c]){var M=`
|
|
6
|
+
`+E[a].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=a&&0<=c);break}}}finally{it=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?At(n):""}function Vn(e,t){switch(e.tag){case 26:case 27:case 5:return At(e.type);case 16:return At("Lazy");case 13:return e.child!==t&&t!==null?At("Suspense Fallback"):At("Suspense");case 19:return At("SuspenseList");case 0:case 15:return xn(e.type,!1);case 11:return xn(e.type.render,!1);case 1:return xn(e.type,!0);case 31:return At("Activity");case 30:return At("ViewTransition");default:return""}}function vn(e){try{var t="",n=null;do t+=Vn(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
+
Error generating stack: `+a.message+`
|
|
8
|
+
`+a.stack}}var _n=Object.prototype.hasOwnProperty,Cu=u.unstable_scheduleCallback,Tt=u.unstable_cancelCallback,Xn=u.unstable_shouldYield,Fl=u.unstable_requestPaint,rt=u.unstable_now,En=u.unstable_getCurrentPriorityLevel,Zn=u.unstable_ImmediatePriority,Sn=u.unstable_UserBlockingPriority,lu=u.unstable_NormalPriority,Ku=u.unstable_LowPriority,Du=u.unstable_IdlePriority,U=u.log,Y=u.unstable_setDisableYieldValue,he=null,we=null;function Xt(e){if(typeof U=="function"&&Y(e),we&&typeof we.setStrictMode=="function")try{we.setStrictMode(he,e)}catch{}}var ut=Math.clz32?Math.clz32:$n,au=Math.log,Nu=Math.LN2;function $n(e){return e>>>=0,e===0?32:31-(au(e)/Nu|0)|0}var Qn=256,Kn=262144,ga=4194304;function Ju(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 Jn(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var c=0,s=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~s,a!==0?c=Ju(a):(p&=b,p!==0?c=Ju(p):n||(n=b&~e,n!==0&&(c=Ju(n))))):(b=a&~s,b!==0?c=Ju(b):p!==0?c=Ju(p):n||(n=a&~e,n!==0&&(c=Ju(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 Pn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ba(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-ut(n),c=1<<a;t|=e[a],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 Wn(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function bi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dt(e,t,n,a,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-ut(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}a!==0&&An(e,a,0),s!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=s&~(p&~t))}function An(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ut(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Ur(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-ut(n),c=1<<a;c&t|e[a]&t&&(e[a]|=t),n&=~c}}function yi(e,t){var n=t&-t;return n=(n&42)!==0?1:Hl(n),(n&(e.suspendedLanes|t))!==0?0:n}function Hl(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 ya(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:Im(e.type))}function Fr(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var Iu=Math.random().toString(36).slice(2),Ct="__reactFiber$"+Iu,Zt="__reactProps$"+Iu,Kt="__reactContainer$"+Iu,vi="__reactEvents$"+Iu,_i="__reactListeners$"+Iu,el="__reactHandles$"+Iu,Ei="__reactResources$"+Iu,Tn="__reactMarker$"+Iu,tl="__reactLoad$"+Iu;function ul(e){delete e[Ct],delete e[Zt],delete e[_i],delete e[el]}function Cn(e){var t;if(t=e[Ct])return t;for(var n=e.parentNode;n;){if(t=n[Kt]||n[Ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Em(e);e!==null;){if(n=e[Ct])return n;e=Em(e)}return t}e=n,n=e.parentNode}return null}function Dn(e){if(e=e[Ct]||e[Kt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ql(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function nl(e){var t=e[Ei];return t||(t=e[Ei]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function yt(e){e[Tn]=!0}function Br(e){e[tl]=void 0}var Si=new Set,Hr={};function Pu(e,t){Wu(e,t),Wu(e+"Capture",t)}function Wu(e,t){for(Hr[e]=t,e=0;e<t.length;e++)Si.add(t[e])}var xa=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]*$"),va={},Ai={};function _a(e){return _n.call(Ai,e)?!0:_n.call(va,e)?!1:xa.test(e)?Ai[e]=!0:(va[e]=!0,!1)}var ke=!1;function ll(){var e=ke;return ke=!1,e}function $t(e,t,n){if(_a(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Ea(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 iu(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,a)}}function Jt(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 al(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var c=a.get,s=a.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:a.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Il(e){if(!e._valueTracker){var t=Ti(e)?"checked":"value";e._valueTracker=al(e,t,""+e[t])}}function Ci(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Ti(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}var ks=/[\n"\\]/g;function Pt(e){return e.replace(ks,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Di(e,t,n,a,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=""+Jt(t)):e.value!==""+Jt(t)&&(e.value=""+Jt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?p==="number"&&e.value==t?Sa(e,Jt(e.value)):Sa(e,Jt(t)):n!=null?Sa(e,Jt(n)):a!=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=""+Jt(b):e.removeAttribute("name")}function qr(e,t,n,a,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)){Il(e);return}n=n!=null?""+Jt(n):"",t=t!=null?""+Jt(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??c,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Il(e)}function Sa(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function en(e,t,n,a){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&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Jt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,a&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function il(e,t,n){if(t!=null&&(t=""+Jt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Jt(n):""}function Aa(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if(Me(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Jt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Il(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 a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function G(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",ke=!0);for(var c in t)a=t[c],t.hasOwnProperty(c)&&n[c]!==a&&(C(e,c,a),ke=!0)}else for(var s in t)t.hasOwnProperty(s)&&C(e,s,t[s])}function q(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 $e(){}var ru=null;function Dt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gt=null,pu=null;function Ut(e){var t=Dn(e);if(t&&(e=t.stateNode)){var n=e[Zt]||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="'+Pt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var c=a[Zt]||null;if(!c)throw Error(r(90));Di(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Ci(a)}break e;case"textarea":il(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&en(e,!!n.multiple,t,!1)}}}var Ta=!1;function Wf(e,t,n){if(Ta)return e(t,n);Ta=!0;try{var a=e(t);return a}finally{if(Ta=!1,(gt!==null||pu!==null)&&(qc(),gt&&(t=gt,e=pu,pu=gt=null,Ut(t),e)))for(t=0;t<e.length;t++)Ut(e[t])}}function Ni(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Zt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ws=!1;if(Nn)try{var ki={};Object.defineProperty(ki,"passive",{get:function(){ws=!0}}),window.addEventListener("test",ki,ki),window.removeEventListener("test",ki,ki)}catch{ws=!1}var rl=null,js=null,Ir=null;function ed(){if(Ir)return Ir;var e,t=js,n=t.length,a,c="value"in rl?rl.value:rl.textContent,s=c.length;for(e=0;e<n&&t[e]===c[e];e++);var p=n-e;for(a=1;a<=p&&t[n-a]===c[s-a];a++);return Ir=c.slice(e,1<a?1-a: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 Yr(){return!0}function td(){return!1}function Wt(e){function t(n,a,c,s,p){this._reactName=n,this._targetInst=c,this.type=a,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)?Yr:td,this.isPropagationStopped=td,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=Yr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yr)},persist:function(){},isPersistent:Yr}),t}var cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vr=Wt(cl),wi=te({},cl,{view:0,detail:0}),wg=Wt(wi),Os,Rs,ji,Xr=te({},wi,{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!==ji&&(ji&&e.type==="mousemove"?(Os=e.screenX-ji.screenX,Rs=e.screenY-ji.screenY):Rs=Os=0,ji=e),Os)},movementY:function(e){return"movementY"in e?e.movementY:Rs}}),ud=Wt(Xr),jg=te({},Xr,{dataTransfer:0}),Og=Wt(jg),Rg=te({},wi,{relatedTarget:0}),zs=Wt(Rg),zg=te({},cl,{animationName:0,elapsedTime:0,pseudoElement:0}),Mg=Wt(zg),Lg=te({},cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ug=Wt(Lg),Fg=te({},cl,{data:0}),nd=Wt(Fg),Bg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hg={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"},qg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ig(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qg[e])?!!t[e]:!1}function Ms(){return Ig}var Gg=te({},wi,{key:function(e){if(e.key){var t=Bg[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"?Hg[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}}),Yg=Wt(Gg),Vg=te({},Xr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ld=Wt(Vg),Xg=te({},cl,{submitter:0}),Zg=Wt(Xg),$g=te({},wi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ms}),Qg=Wt($g),Kg=te({},cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jg=Wt(Kg),Pg=te({},Xr,{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}),Wg=Wt(Pg),eb=te({},cl,{newState:0,oldState:0,source:0}),tb=Wt(eb),ub=[9,13,27,32],Ls=Nn&&"CompositionEvent"in window,Oi=null;Nn&&"documentMode"in document&&(Oi=document.documentMode);var nb=Nn&&"TextEvent"in window&&!Oi,ad=Nn&&(!Ls||Oi&&8<Oi&&11>=Oi),id=" ",rd=!1;function cd(e,t){switch(e){case"keyup":return ub.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ca=!1;function lb(e,t){switch(e){case"compositionend":return sd(t);case"keypress":return t.which!==32?null:(rd=!0,id);case"textInput":return e=t.data,e===id&&rd?null:e;default:return null}}function ab(e,t){if(Ca)return e==="compositionend"||!Ls&&cd(e,t)?(e=ed(),Ir=js=rl=null,Ca=!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 ad&&t.locale!=="ko"?null:t.data;default:return null}}var ib={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 od(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ib[e.type]:t==="textarea"}function fd(e,t,n,a){gt?pu?pu.push(a):pu=[a]:gt=a,t=Zc(t,"onChange"),0<t.length&&(n=new Vr("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Ri=null,zi=null;function rb(e){P1(e,0)}function Zr(e){var t=ql(e);if(Ci(t))return e}function dd(e,t){if(e==="change")return t}var hd=!1;if(Nn){var Us;if(Nn){var Fs="oninput"in document;if(!Fs){var md=document.createElement("div");md.setAttribute("oninput","return;"),Fs=typeof md.oninput=="function"}Us=Fs}else Us=!1;hd=Us&&(!document.documentMode||9<document.documentMode)}function pd(){Ri&&(Ri.detachEvent("onpropertychange",gd),zi=Ri=null)}function gd(e){if(e.propertyName==="value"&&Zr(zi)){var t=[];fd(t,zi,e,Dt(e)),Wf(rb,t)}}function cb(e,t,n){e==="focusin"?(pd(),Ri=t,zi=n,Ri.attachEvent("onpropertychange",gd)):e==="focusout"&&pd()}function sb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zr(zi)}function ob(e,t){if(e==="click")return Zr(t)}function fb(e,t){if(e==="input"||e==="change")return Zr(t)}function db(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gu=typeof Object.is=="function"?Object.is:db;function Mi(e,t){if(gu(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var c=n[a];if(!_n.call(t,c)||!gu(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 bd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yd(e,t){var n=bd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=bd(n)}}function xd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vd(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 hb=Nn&&"documentMode"in document&&11>=document.documentMode,Da=null,qs=null,Li=null,Is=!1;function _d(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Is||Da==null||Da!==Bs(a)||(a=Da,"selectionStart"in a&&Hs(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Li&&Mi(Li,a)||(Li=a,a=Zc(qs,"onSelect"),0<a.length&&(t=new Vr("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Da)))}function Gl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Na={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionrun:Gl("Transition","TransitionRun"),transitionstart:Gl("Transition","TransitionStart"),transitioncancel:Gl("Transition","TransitionCancel"),transitionend:Gl("Transition","TransitionEnd")},Gs={},Ed={};Nn&&(Ed=document.createElement("div").style,"AnimationEvent"in window||(delete Na.animationend.animation,delete Na.animationiteration.animation,delete Na.animationstart.animation),"TransitionEvent"in window||delete Na.transitionend.transition);function Yl(e){if(Gs[e])return Gs[e];if(!Na[e])return e;var t=Na[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ed)return Gs[e]=t[n];return e}var Sd=Yl("animationend"),Ad=Yl("animationiteration"),Td=Yl("animationstart"),mb=Yl("transitionrun"),pb=Yl("transitionstart"),gb=Yl("transitioncancel"),Cd=Yl("transitionend"),Dd=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 Gu(e,t){Dd.set(e,t),Pu(t,[e])}var bb=0;function kn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Zu.identifierPrefix;var n=bb++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Nd(e){if(e==null||typeof e=="string")return e;var t=null,n=$a;if(n!==null)for(var a=0;a<n.length;a++){var c=e[n[a]];if(c!=null){if(c==="none")return"none";t=t==null?c:t+(" "+c)}}return t??e.default}function wn(e,t){return e=Nd(e),t=Nd(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var $r=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)},ku=[],ka=0,Vs=0;function Qr(){for(var e=ka,t=Vs=ka=0;t<e;){var n=ku[t];ku[t++]=null;var a=ku[t];ku[t++]=null;var c=ku[t];ku[t++]=null;var s=ku[t];if(ku[t++]=null,a!==null&&c!==null){var p=a.pending;p===null?c.next=c:(c.next=p.next,p.next=c),a.pending=c}s!==0&&kd(n,c,s)}}function Kr(e,t,n,a){ku[ka++]=e,ku[ka++]=t,ku[ka++]=n,ku[ka++]=a,Vs|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Xs(e,t,n,a){return Kr(e,t,n,a),Jr(e)}function Vl(e,t){return Kr(e,null,null,t),Jr(e)}function kd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var c=!1,s=e.return;s!==null;)s.childLanes|=n,a=s.alternate,a!==null&&(a.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(c=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,c&&t!==null&&(c=31-ut(n),e=s.hiddenUpdates,a=e[c],a===null?e[c]=[t]:a.push(t),t.lane=n|536870912),s):null}function Jr(e){if(50<lr)throw lr=0,Hc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wa={};function yb(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cu(e,t,n,a){return new yb(e,t,n,a)}function Zs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jn(e,t){var n=e.alternate;return n===null?(n=cu(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 wd(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 Pr(e,t,n,a,c,s){var p=0;if(a=e,typeof a=="function")Zs(a)&&(p=1);else if(typeof a=="string")p=X3(e,n,wt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case Ie:return e=cu(31,n,t,c),e.elementType=Ie,e.lanes=s,e;case _e:return Xl(n.children,c,s,t);case Te:p=8,c|=24;break;case Ke:return e=cu(12,n,t,c|2),e.elementType=Ke,e.lanes=s,e;case re:return e=cu(13,n,t,c),e.elementType=re,e.lanes=s,e;case ae:return e=cu(19,n,t,c),e.elementType=ae,e.lanes=s,e;case L:case S:return e=c|32,e=cu(30,n,t,e),e.elementType=S,e.lanes=s,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ye:p=10;break e;case Be:p=9;break e;case K:p=11;break e;case Ce:p=14;break e;case be:p=16,a=null;break e}p=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=cu(p,n,t,c),t.elementType=e,t.type=a,t.lanes=s,t}function Xl(e,t,n,a){return e=cu(7,e,a,t),e.lanes=n,e}function $s(e,t,n){return e=cu(6,e,null,t),e.lanes=n,e}function jd(e){var t=cu(18,null,null,0);return t.stateNode=e,t}function Qs(e,t,n){return t=cu(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Od=new WeakMap;function wu(e,t){if(typeof e=="object"&&e!==null){var n=Od.get(e);return n!==void 0?n:(t={value:e,source:t,stack:vn(t)},Od.set(e,t),t)}return{value:e,source:t,stack:vn(t)}}var ja=[],Oa=0,Wr=null,Ui=0,ju=[],Ou=0,sl=null,tn=1,un="";function On(e,t){ja[Oa++]=Ui,ja[Oa++]=Wr,Wr=e,Ui=t}function Rd(e,t,n){ju[Ou++]=tn,ju[Ou++]=un,ju[Ou++]=sl,sl=e;var a=tn;e=un;var c=32-ut(a)-1;a&=~(1<<c),n+=1;var s=32-ut(t)+c;if(30<s){var p=c-c%5;s=(a&(1<<p)-1).toString(32),a>>=p,c-=p,tn=1<<32-ut(t)+c|n<<c|a,un=s+e}else tn=1<<s|n<<c|a,un=e}function ec(e){e.return!==null&&(On(e,1),Rd(e,1,0))}function Ks(e){for(;e===Wr;)Wr=ja[--Oa],ja[Oa]=null,Ui=ja[--Oa],ja[Oa]=null;for(;e===sl;)sl=ju[--Ou],ju[Ou]=null,un=ju[--Ou],ju[Ou]=null,tn=ju[--Ou],ju[Ou]=null}function zd(e,t){ju[Ou++]=tn,ju[Ou++]=un,ju[Ou++]=sl,tn=t.id,un=t.overflow,sl=e}var jt=null,nt=null,Re=!1,ol=null,Ru=!1,Js=Error(r(519));function fl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fi(wu(t,e)),Js}function Md(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Ct]=e,t[Zt]=a,n){case"dialog":Fe("cancel",t),Fe("close",t);break;case"iframe":case"object":case"embed":Fe("load",t);break;case"video":case"audio":for(n=0;n<ir.length;n++)Fe(ir[n],t);break;case"source":Fe("error",t);break;case"img":case"image":case"link":Fe("error",t),Fe("load",t);break;case"details":Fe("toggle",t);break;case"input":Fe("invalid",t),qr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Fe("invalid",t);break;case"textarea":Fe("invalid",t),Aa(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||um(t.textContent,n)?(a.popover!=null&&(Fe("beforetoggle",t),Fe("toggle",t)),a.onScroll!=null&&Fe("scroll",t),a.onScrollEnd!=null&&Fe("scrollend",t),a.onClick!=null&&(t.onclick=$e),t=!0):t=!1,t||fl(e,!0)}function tc(e){for(jt=e.return;jt;)switch(jt.tag){case 5:case 31:case 13:Ru=!1;return;case 27:case 3:Ru=!0;return;default:jt=jt.return}}function Ra(e){if(e!==jt)return!1;if(!Re)return tc(e),Re=!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&&nt&&fl(e),tc(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));nt=_m(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));nt=_m(e)}else t===27?(t=nt,Dl(e.type)?(e=U0,U0=null,nt=e):nt=t):nt=jt?Mu(e.stateNode.nextSibling):null;return!0}function Zl(){nt=jt=null,Re=!1}function Ps(){var e=ol;return e!==null&&(fu===null?fu=e:fu.push.apply(fu,e),ol=null),e}function Fi(e){ol===null?ol=[e]:ol.push(e)}var Ws=ze(null),$l=null,Rn=null;function dl(e,t,n){ge(Ws,t._currentValue),t._currentValue=n}function zn(e){e._currentValue=Ws.current,ct(Ws)}function uc(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function eo(e,t,n,a){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),uc(s.return,n,e),a||(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),uc(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),uc(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 Ql(e,t,n,a){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;gu(c.pendingProps.value,p.value)||(e!==null?e.push(b):e=[b])}}else if(c===gn.current){if(p=c.alternate,p===null)throw Error(r(387));p.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(li):e=[li])}c=c.return}return e!==null&&eo(t,e,n,a),t.flags|=262144,e!==null}function nc(e){for(e=e.firstContext;e!==null;){if(!gu(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kl(e){$l=e,Rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ft(e){return Ld($l,e)}function lc(e,t){return $l===null&&Kl(e),Ld(e,t)}function Ld(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Rn===null){if(e===null)throw Error(r(308));Rn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Rn=Rn.next=t;return n}var xb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},vb=u.unstable_scheduleCallback,_b=u.unstable_NormalPriority,xt={$$typeof:ye,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function to(){return{controller:new xb,data:new Map,refCount:0}}function Bi(e){e.refCount--,e.refCount===0&&vb(_b,function(){e.controller.abort()})}function Ud(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];n.indexOf(a)===-1&&n.push(a)}}}var Hi=null;function Eb(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var qi=null,uo=0,Jl=0,za=null;function Sb(e,t){if(qi===null){var n=qi=[];uo=0,Jl=x0(),za={status:"pending",value:void 0,then:function(a){n.push(a)}}}return uo++,t.then(Fd,Fd),t}function Fd(){if(--uo===0&&(Hi=null,qi!==null)){za!==null&&(za.status="fulfilled");var e=qi;qi=null,Jl=0,za=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ab(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(a.status="rejected",a.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),a}var Bd=I.S;I.S=function(e,t){if(j1=rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Sb(e,t),Hi!==null)for(var n=Pa;n!==null;)Ud(n,Hi),n=n.next;if(n=e.types,n!==null){for(var a=Pa;a!==null;)Ud(a,n),a=a.next;if(Jl!==0){a=Hi,a===null&&(a=Hi=[]);for(var c=0;c<n.length;c++){var s=n[c];a.indexOf(s)===-1&&a.push(s)}}}Bd!==null&&Bd(e,t)};var Pl=ze(null);function no(){var e=Pl.current;return e!==null?e:tt.pooledCache}function ac(e,t){t===null?ge(Pl,Pl.current):ge(Pl,t.pool)}function Hd(){var e=no();return e===null?null:{parent:xt._currentValue,pool:e}}var Ma=Error(r(460)),lo=Error(r(474)),ic=Error(r(542)),rc={then:function(){}};function qd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Id(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then($e,$e),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yd(e),e===void 0&&!("reason"in t)?Error(r(600)):e;default:if(typeof t.status=="string")t.then($e,$e);else{if(e=tt,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=a}},function(a){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yd(e),e}throw ea=t,Ma}}function Wl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ea=n,Ma):n}}var ea=null;function Gd(){if(ea===null)throw Error(r(459));var e=ea;return ea=null,e}function Yd(e){if(e===Ma||e===ic)throw Error(r(483))}var La=null,Ii=0;function cc(e){var t=Ii;return Ii+=1,La===null&&(La=[]),Id(La,e,t)}function hl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function sc(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 Vd(e){function t(w,A){if(e){var O=w.deletions;O===null?(w.deletions=[A],w.flags|=16):O.push(A)}}function n(w,A){if(!e)return null;for(;A!==null;)t(w,A),A=A.sibling;return null}function a(w){for(var A=new Map;w!==null;)w.key===null?A.set(w.index,w):A.set(w.key,w),w=w.sibling;return A}function c(w,A){return w=jn(w,A),w.index=0,w.sibling=null,w}function s(w,A,O){return w.index=O,e?(O=w.alternate,O!==null?(O=O.index,O<A?(w.flags|=2,A):O):(w.flags|=134217730,A)):(w.flags|=1048576,A)}function p(w){return e&&w.alternate===null&&(w.flags|=134217730),w}function b(w,A,O,F){return A===null||A.tag!==6?(A=$s(O,w.mode,F),A.return=w,A):(A=c(A,O),A.return=w,A)}function E(w,A,O,F){var oe=O.type;return oe===_e?(w=M(w,A,O.props.children,F,O.key),hl(w,O),w):A!==null&&(A.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===be&&Wl(oe)===A.type)?(A=c(A,O.props),hl(A,O),A.return=w,A):(A=Pr(O.type,O.key,O.props,null,w.mode,F),hl(A,O),A.return=w,A)}function j(w,A,O,F){return A===null||A.tag!==4||A.stateNode.containerInfo!==O.containerInfo||A.stateNode.implementation!==O.implementation?(A=Qs(O,w.mode,F),A.return=w,A):(A=c(A,O.children||[]),A.return=w,A)}function M(w,A,O,F,oe){return A===null||A.tag!==7?(A=Xl(O,w.mode,F,oe),A.return=w,A):(A=c(A,O),A.return=w,A)}function B(w,A,O){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=$s(""+A,w.mode,O),A.return=w,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Ye:return O=Pr(A.type,A.key,A.props,null,w.mode,O),hl(O,A),O.return=w,O;case Ve:return A=Qs(A,w.mode,O),A.return=w,A;case be:return A=Wl(A),B(w,A,O)}if(Me(A)||fe(A))return A=Xl(A,w.mode,O,null),A.return=w,A;if(typeof A.then=="function")return B(w,cc(A),O);if(A.$$typeof===ye)return B(w,lc(w,A),O);sc(w,A)}return null}function D(w,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(w,A,""+O,F);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Ye:return O.key===oe?E(w,A,O,F):null;case Ve:return O.key===oe?j(w,A,O,F):null;case be:return O=Wl(O),D(w,A,O,F)}if(Me(O)||fe(O))return oe!==null?null:M(w,A,O,F,null);if(typeof O.then=="function")return D(w,A,cc(O),F);if(O.$$typeof===ye)return D(w,A,lc(w,O),F);sc(w,O)}return null}function z(w,A,O,F,oe){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return w=w.get(O)||null,b(A,w,""+F,oe);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case Ye:return w=w.get(F.key===null?O:F.key)||null,E(A,w,F,oe);case Ve:return w=w.get(F.key===null?O:F.key)||null,j(A,w,F,oe);case be:return F=Wl(F),z(w,A,O,F,oe)}if(Me(F)||fe(F))return w=w.get(O)||null,M(A,w,F,oe,null);if(typeof F.then=="function")return z(w,A,O,cc(F),oe);if(F.$$typeof===ye)return z(w,A,O,lc(A,F),oe);sc(A,F)}return null}function le(w,A,O,F){for(var oe=null,qe=null,pe=A,ve=A=0,Et=null;pe!==null&&ve<O.length;ve++){pe.index>ve?(Et=pe,pe=null):Et=pe.sibling;var Ge=D(w,pe,O[ve],F);if(Ge===null){pe===null&&(pe=Et);break}e&&pe&&Ge.alternate===null&&t(w,pe),A=s(Ge,A,ve),qe===null?oe=Ge:qe.sibling=Ge,qe=Ge,pe=Et}if(ve===O.length)return n(w,pe),Re&&On(w,ve),oe;if(pe===null){for(;ve<O.length;ve++)pe=B(w,O[ve],F),pe!==null&&(A=s(pe,A,ve),qe===null?oe=pe:qe.sibling=pe,qe=pe);return Re&&On(w,ve),oe}for(pe=a(pe);ve<O.length;ve++)Et=z(pe,w,ve,O[ve],F),Et!==null&&(e&&(Ge=Et.alternate,Ge!==null&&pe.delete(Ge.key===null?ve:Ge.key)),A=s(Et,A,ve),qe===null?oe=Et:qe.sibling=Et,qe=Et);return e&&pe.forEach(function(Ol){return t(w,Ol)}),Re&&On(w,ve),oe}function de(w,A,O,F){if(O==null)throw Error(r(151));for(var oe=null,qe=null,pe=A,ve=A=0,Et=null,Ge=O.next();pe!==null&&!Ge.done;ve++,Ge=O.next()){pe.index>ve?(Et=pe,pe=null):Et=pe.sibling;var Ol=D(w,pe,Ge.value,F);if(Ol===null){pe===null&&(pe=Et);break}e&&pe&&Ol.alternate===null&&t(w,pe),A=s(Ol,A,ve),qe===null?oe=Ol:qe.sibling=Ol,qe=Ol,pe=Et}if(Ge.done)return n(w,pe),Re&&On(w,ve),oe;if(pe===null){for(;!Ge.done;ve++,Ge=O.next())Ge=B(w,Ge.value,F),Ge!==null&&(A=s(Ge,A,ve),qe===null?oe=Ge:qe.sibling=Ge,qe=Ge);return Re&&On(w,ve),oe}for(pe=a(pe);!Ge.done;ve++,Ge=O.next())Ge=z(pe,w,ve,Ge.value,F),Ge!==null&&(e&&(Et=Ge.alternate,Et!==null&&pe.delete(Et.key===null?ve:Et.key)),A=s(Ge,A,ve),qe===null?oe=Ge:qe.sibling=Ge,qe=Ge);return e&&pe.forEach(function(ly){return t(w,ly)}),Re&&On(w,ve),oe}function Ne(w,A,O,F){if(typeof O=="object"&&O!==null&&O.type===_e&&O.key===null&&O.props.ref===void 0&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case Ye:e:{for(var oe=O.key;A!==null;){if(A.key===oe){if(oe=O.type,oe===_e){if(A.tag===7){n(w,A.sibling),F=c(A,O.props.children),hl(F,O),F.return=w,w=F;break e}}else if(A.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===be&&Wl(oe)===A.type){n(w,A.sibling),F=c(A,O.props),hl(F,O),F.return=w,w=F;break e}n(w,A);break}else t(w,A);A=A.sibling}O.type===_e?(F=Xl(O.props.children,w.mode,F,O.key),hl(F,O),F.return=w,w=F):(F=Pr(O.type,O.key,O.props,null,w.mode,F),hl(F,O),F.return=w,w=F)}return p(w);case Ve: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(w,A.sibling),F=c(A,O.children||[]),F.return=w,w=F;break e}else{n(w,A);break}else t(w,A);A=A.sibling}F=Qs(O,w.mode,F),F.return=w,w=F}return p(w);case be:return O=Wl(O),Ne(w,A,O,F)}if(Me(O))return le(w,A,O,F);if(fe(O)){if(oe=fe(O),typeof oe!="function")throw Error(r(150));return O=oe.call(O),de(w,A,O,F)}if(typeof O.then=="function")return Ne(w,A,cc(O),F);if(O.$$typeof===ye)return Ne(w,A,lc(w,O),F);sc(w,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,A!==null&&A.tag===6?(n(w,A.sibling),F=c(A,O),F.return=w,w=F):(n(w,A),F=$s(O,w.mode,F),F.return=w,w=F),p(w)):n(w,A)}return function(w,A,O,F){try{Ii=0;var oe=Ne(w,A,O,F);return La=null,oe}catch(pe){if(pe===Ma||pe===ic)throw pe;var qe=cu(29,pe,null,w.mode);return qe.lanes=F,qe.return=w,qe}}}var ta=Vd(!0),Xd=Vd(!1),ml=!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 pl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ze&2)!==0){var c=a.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),a.pending=t,t=Jr(e),kd(e,null,n),t}return Kr(e,a,t,n),Jr(e)}function Gi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ur(e,n)}}function ro(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){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:a.baseState,firstBaseUpdate:c,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var co=!1;function Yi(){if(co){var e=za;if(e!==null)throw e}}function Vi(e,t,n,a){co=!1;var c=e.updateQueue;ml=!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?(He&D)===D:(a&D)===D){D!==0&&D===Jl&&(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:ml=!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),Sl|=p,e.lanes=p,e.memoizedState=B}}function Zd(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function $d(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Zd(n[e],t)}var bl=ze(null),oc=ze(0);function Qd(e,t){e=Bn,ge(oc,e),ge(bl,t),Bn=e|t.baseLanes}function so(){ge(oc,Bn),ge(bl,bl.current)}function oo(){Bn=oc.current,ct(bl),ct(oc)}var Bt=ze(null),Qt=null;function yl(e){var t=e.alternate;ge(Ht,Ht.current&1),ge(Bt,e),Qt===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(Qt=e)}function fo(e){ge(Ht,Ht.current),ge(Bt,e),Qt===null&&(Qt=e)}function Kd(e){e.tag===22?(ge(Ht,Ht.current),ge(Bt,e),Qt===null&&(Qt=e)):xl()}function xl(){ge(Ht,Ht.current),ge(Bt,Bt.current)}function bu(e){ct(Bt),Qt===e&&(Qt=null),ct(Ht)}var Ht=ze(0);function Xi(e,t){ge(Bt,Bt.current),ge(Ht,t)}function ho(e){ct(Ht),ct(Bt),Qt===e&&(Qt=null)}function fc(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 Mn=0,De=null,et=null,vt=null,dc=!1,Ua=!1,ua=!1,hc=0,Zi=0,Fa=null,Tb=0;function mt(){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(!gu(e[n],t[n]))return!1;return!0}function po(e,t,n,a,c,s){return Mn=s,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Rh:zh,ua=!1,s=n(a,c),ua=!1,Ua&&(s=Pd(t,n,a,c)),Jd(e),s}function Jd(e){I.H=vc;var t=et!==null&&et.next!==null;if(Mn=0,vt=et=De=null,dc=!1,Zi=0,Fa=null,t)throw Error(r(300));e===null||_t||(e=e.dependencies,e!==null&&nc(e)&&(_t=!0))}function Pd(e,t,n,a){De=e;var c=0;do{if(Ua&&(Fa=null),Zi=0,Ua=!1,25<=c)throw Error(r(301));if(c+=1,vt=et=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=Rb,s=t(n,a)}while(Ua);return s}function Cb(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?$i(t):t,e=e.useState()[0],(et!==null?et.memoizedState:null)!==e&&(De.flags|=1024),t}function go(){var e=hc!==0;return hc=0,e}function bo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function yo(e){if(dc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}dc=!1}Mn=0,vt=et=De=null,Ua=!1,Zi=hc=0,Fa=null}function eu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?De.memoizedState=vt=e:vt=vt.next=e,vt}function bt(){if(et===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=vt===null?De.memoizedState:vt.next;if(t!==null)vt=t,et=e;else{if(e===null)throw De.alternate===null?Error(r(467)):Error(r(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},vt===null?De.memoizedState=vt=e:vt=vt.next=e}return vt}function mc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $i(e){var t=Zi;return Zi+=1,Fa===null&&(Fa=[]),e=Id(Fa,e,t),t=De,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Rh:zh),e}function pc(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 Ft(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 a=De.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=mc(),De.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=se;return t.index++,n}function Ln(e,t){return typeof t=="function"?t(e):t}function gc(e){var t=bt();return vo(t,et,e)}function vo(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var c=e.baseQueue,s=a.pending;if(s!==null){if(c!==null){var p=c.next;c.next=s.next,s.next=p}t.baseQueue=c=s,a.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?(He&B)===B:(Mn&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===Jl&&(M=!0);else if((Mn&D)===D){j=j.next,D===Jl&&(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,Sl|=D;B=j.action,ua&&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,Sl|=B;j=j.next}while(j!==null&&j!==t);if(E===null?p=s:E.next=b,!gu(s,e.memoizedState)&&(_t=!0,M&&(n=za,n!==null)))throw n;e.memoizedState=s,e.baseState=p,e.baseQueue=E,a.lastRenderedState=s}return c===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function _o(e){var t=bt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=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);gu(s,t.memoizedState)||(_t=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,a]}function Wd(e,t,n){var a=De,c=bt(),s=Re;if(s){if(n===void 0)throw Error(r(407));n=n()}else n=t();var p=!gu((et||c).memoizedState,n);if(p&&(c.memoizedState=n,_t=!0),c=c.queue,Ao(uh.bind(null,a,c,e),[e]),e=c.getSnapshot!==t||p||vt!==null&&(vt.memoizedState.tag&1)!==0,Ba(e?9:8,{destroy:void 0},th.bind(null,a,c,n,t),null),e){if(a.flags|=2048,tt===null)throw Error(r(349));s||(Mn&127)!==0||eh(a,t,n)}return n}function eh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t=mc(),De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function th(e,t,n,a){t.value=n,t.getSnapshot=a,nh(t)&&lh(e)}function uh(e,t,n){return n(function(){nh(t)&&lh(e)})}function nh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gu(e,n)}catch{return!0}}function lh(e){var t=Vl(e,2);t!==null&&du(t,e,2)}function Eo(e){var t=eu();if(typeof e=="function"){var n=e;if(e=n(),ua){Xt(!0);try{n()}finally{Xt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:e},t}function ah(e,t,n,a){return e.baseState=n,vo(e,et,typeof a=="function"?a:Ln)}function Db(e,t,n,a,c){if(xc(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,a(s),n=t.pending,n===null?(s.next=t.pending=s,ih(t,s)):(s.next=n.next,t.pending=n.next=s)}}function ih(e,t){var n=t.action,a=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,a),E=I.S;E!==null&&E(p,b),rh(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,a),rh(e,t,s)}catch(j){So(e,t,j)}}function rh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){ch(e,t,a)},function(a){return So(e,t,a)}):ch(e,t,n)}function ch(e,t,n){t.status="fulfilled",t.value=n,sh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ih(e,n)))}function So(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,sh(t),t=t.next;while(t!==a)}e.action=null}function sh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oh(e,t){return t}function fh(e,t){if(Re){var n=tt.formState;if(n!==null){e:{var a=De;if(Re){if(nt){t:{for(var c=nt,s=Ru;c.nodeType!==8;){if(!s){c=null;break t}if(c=Mu(c.nextSibling),c===null){c=null;break t}}s=c.data,c=s==="F!"||s==="F"?c:null}if(c){nt=Mu(c.nextSibling),a=c.data==="F!";break e}}fl(a)}a=!1}a&&(t=n[0])}}return n=eu(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oh,lastRenderedState:t},n.queue=a,n=wh.bind(null,De,a),a.dispatch=n,a=Eo(!1),s=ko.bind(null,De,!1,a.queue),a=eu(),c={state:t,dispatch:null,action:e,pending:null},a.queue=c,n=Db.bind(null,De,c,s,n),c.dispatch=n,a.memoizedState=e,[t,n,!1]}function dh(e){var t=bt();return hh(t,et,e)}function hh(e,t,n){if(t=vo(e,t,oh)[0],e=gc(Ln)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=$i(t)}catch(p){throw p===Ma?ic:p}else a=t;t=bt();var c=t.queue,s=c.dispatch;return n!==t.memoizedState&&(De.flags|=2048,Ba(9,{destroy:void 0},Nb.bind(null,c,n),null)),[a,s,e]}function Nb(e,t){e.action=t}function mh(e){var t=bt(),n=et;if(n!==null)return hh(t,n,e);bt(),t=t.memoizedState,n=bt();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Ba(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=De.updateQueue,t===null&&(t=mc(),De.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function ph(){return bt().memoizedState}function bc(e,t,n,a){var c=eu();De.flags|=e,c.memoizedState=Ba(1|t,{destroy:void 0},n,a===void 0?null:a)}function yc(e,t,n,a){var c=bt();a=a===void 0?null:a;var s=c.memoizedState.inst;et!==null&&a!==null&&mo(a,et.memoizedState.deps)?c.memoizedState=Ba(t,s,n,a):(De.flags|=e,c.memoizedState=Ba(1|t,s,n,a))}function gh(e,t){bc(8390656,8,e,t)}function Ao(e,t){yc(2048,8,e,t)}function kb(e){De.flags|=4;var t=De.updateQueue;if(t===null)t=mc(),De.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function bh(e){var t=bt().memoizedState;return kb({ref:t,nextImpl:e}),function(){if((Ze&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function yh(e,t){return yc(4,2,e,t)}function xh(e,t){return yc(4,4,e,t)}function vh(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 _h(e,t,n){n=n!=null?n.concat([e]):null,yc(4,4,vh.bind(null,t,e),n)}function To(){}function Eh(e,t){var n=bt();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&mo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Sh(e,t){var n=bt();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&mo(t,a[1]))return a[0];if(a=e(),ua){Xt(!0);try{e()}finally{Xt(!1)}}return n.memoizedState=[a,t],a}function Co(e,t,n){return n===void 0||(Mn&1073741824)!==0&&(He&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=R1(),De.lanes|=e,Sl|=e,n)}function Ah(e,t,n,a){return gu(n,t)?n:bl.current!==null?(e=Co(e,n,a),gu(e,t)||(_t=!0),e):(Mn&106)===0||(Mn&1073741824)!==0&&(He&261930)===0?(_t=!0,e.memoizedState=n):(e=R1(),De.lanes|=e,Sl|=e,t)}function Th(e,t,n,a,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=Ab(E,a);Qi(e,t,M,_u(e))}else Qi(e,t,a,_u(e))}catch(B){Qi(e,t,{then:function(){},status:"rejected",reason:B},_u())}finally{P.p=s,p!==null&&b.types!==null&&(p.types=b.types),I.T=p}}function wb(){}function Do(e,t,n,a){if(e.tag!==5)throw Error(r(476));var c=Ch(e).queue;Th(e,c,t,Le,n===null?wb:function(){return Dh(e),n(a)})}function Ch(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Le,baseState:Le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:Le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Dh(e){var t=Ch(e);t.next===null&&(t=e.alternate.memoizedState),Qi(e,t.next.queue,{},_u())}function No(){return Ft(li)}function Nh(){return bt().memoizedState}function kh(){return bt().memoizedState}function jb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_u();e=pl(n);var a=gl(t,e,n);a!==null&&(du(a,t,n),Gi(a,t,n)),t={cache:to()},e.payload=t;return}t=t.return}}function Ob(e,t,n){var a=_u();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},xc(e)?jh(t,n):(n=Xs(e,t,n,a),n!==null&&(du(n,e,a),Oh(n,t,a)))}function wh(e,t,n){var a=_u();Qi(e,t,n,a)}function Qi(e,t,n,a){var c={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(xc(e))jh(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,gu(b,p))return Kr(e,t,c,0),tt===null&&Qr(),!1}catch{}if(n=Xs(e,t,c,a),n!==null)return du(n,e,a),Oh(n,t,a),!0}return!1}function ko(e,t,n,a){if(a={lane:2,revertLane:x0(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},xc(e)){if(t)throw Error(r(479))}else t=Xs(e,n,a,2),t!==null&&du(t,e,2)}function xc(e){var t=e.alternate;return e===De||t!==null&&t===De}function jh(e,t){Ua=dc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Oh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ur(e,n)}}var vc={readContext:Ft,use:pc,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useLayoutEffect:mt,useInsertionEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useSyncExternalStore:mt,useId:mt,useHostTransitionStatus:mt,useFormState:mt,useActionState:mt,useOptimistic:mt,useMemoCache:mt,useCacheRefresh:mt,useEffectEvent:mt},Rh={readContext:Ft,use:pc,useCallback:function(e,t){return eu().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:gh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,bc(4194308,4,vh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bc(4194308,4,e,t)},useInsertionEffect:function(e,t){bc(4,2,e,t)},useMemo:function(e,t){var n=eu();t=t===void 0?null:t;var a=e();if(ua){Xt(!0);try{e()}finally{Xt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=eu();if(n!==void 0){var c=n(t);if(ua){Xt(!0);try{n(t)}finally{Xt(!1)}}}else c=t;return a.memoizedState=a.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},a.queue=e,e=e.dispatch=Ob.bind(null,De,e),[a.memoizedState,e]},useRef:function(e){var t=eu();return e={current:e},t.memoizedState=e},useState:function(e){e=Eo(e);var t=e.queue,n=wh.bind(null,De,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:To,useDeferredValue:function(e,t){var n=eu();return Co(n,e,t)},useTransition:function(){var e=Eo(!1);return e=Th.bind(null,De,e.queue,!0,!1),eu().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=De,c=eu();if(Re){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),tt===null)throw Error(r(349));(He&127)!==0||eh(a,t,n)}c.memoizedState=n;var s={value:n,getSnapshot:t};return c.queue=s,gh(uh.bind(null,a,s,e),[e]),a.flags|=2048,Ba(9,{destroy:void 0},th.bind(null,a,s,n,t),null),n},useId:function(){var e=eu(),t=tt.identifierPrefix;if(Re){var n=un,a=tn;n=(a&~(1<<32-ut(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=hc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Tb++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:No,useFormState:fh,useActionState:fh,useOptimistic:function(e){var t=eu();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 eu().memoizedState=jb.bind(null,De)},useEffectEvent:function(e){var t=eu(),n={impl:e};return t.memoizedState=n,function(){if((Ze&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},zh={readContext:Ft,use:pc,useCallback:Eh,useContext:Ft,useEffect:Ao,useImperativeHandle:_h,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:Sh,useReducer:gc,useRef:ph,useState:function(){return gc(Ln)},useDebugValue:To,useDeferredValue:function(e,t){var n=bt();return Ah(n,et.memoizedState,e,t)},useTransition:function(){var e=gc(Ln)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:$i(e),t]},useSyncExternalStore:Wd,useId:Nh,useHostTransitionStatus:No,useFormState:dh,useActionState:dh,useOptimistic:function(e,t){var n=bt();return ah(n,et,e,t)},useMemoCache:xo,useCacheRefresh:kh,useEffectEvent:bh},Rb={readContext:Ft,use:pc,useCallback:Eh,useContext:Ft,useEffect:Ao,useImperativeHandle:_h,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:Sh,useReducer:_o,useRef:ph,useState:function(){return _o(Ln)},useDebugValue:To,useDeferredValue:function(e,t){var n=bt();return et===null?Co(n,e,t):Ah(n,et.memoizedState,e,t)},useTransition:function(){var e=_o(Ln)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:$i(e),t]},useSyncExternalStore:Wd,useId:Nh,useHostTransitionStatus:No,useFormState:mh,useActionState:mh,useOptimistic:function(e,t){var n=bt();return et!==null?ah(n,et,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:xo,useCacheRefresh:kh,useEffectEvent:bh};function wo(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var jo={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=_u(),c=pl(a);c.payload=t,n!=null&&(c.callback=n),t=gl(e,c,a),t!==null&&(du(t,e,a),Gi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=_u(),c=pl(a);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=gl(e,c,a),t!==null&&(du(t,e,a),Gi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_u(),a=pl(n);a.tag=2,t!=null&&(a.callback=t),t=gl(e,a,n),t!==null&&(du(t,e,n),Gi(t,e,n))}};function Mh(e,t,n,a,c,s,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,p):t.prototype&&t.prototype.isPureReactComponent?!Mi(n,a)||!Mi(c,s):!0}function Lh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&jo.enqueueReplaceState(t,t.state,null)}function na(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=te({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function Uh(e){$r(e)}function Fh(e){console.error(e)}function Bh(e){$r(e)}function _c(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Hh(e,t,n){try{var a=e.onCaughtError;a(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=pl(n),n.tag=3,n.payload={element:null},n.callback=function(){_c(e,t)},n}function qh(e){return e=pl(e),e.tag=3,e}function Ih(e,t,n,a){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var s=a.value;e.payload=function(){return c(s)},e.callback=function(){Hh(t,n,a)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Hh(t,n,a),typeof c!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var b=a.stack;this.componentDidCatch(a.value,{componentStack:b!==null?b:""})})}function zb(e,t,n,a,c){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ql(t,n,c,!0),n=Bt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Qt===null?Ic():n.alternate===null&&pt===0&&(pt=3),n.flags&=-257,n.flags|=65536,n.lanes=c,a===rc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),g0(e,a,c)),!1;case 22:return n.flags|=65536,a===rc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),g0(e,a,c)),!1}throw Error(r(435,n.tag))}return g0(e,a,c),Ic(),!1}if(Re)return t=Bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,a!==Js&&(e=Error(r(422),{cause:a}),Fi(wu(e,n)))):(a!==Js&&(t=Error(r(423),{cause:a}),Fi(wu(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,a=wu(a,n),c=Oo(e.stateNode,a,c),ro(e,c),pt!==4&&(pt=2)),!1;var s=Error(r(520),{cause:a});if(s=wu(s,n),nr===null?nr=[s]:nr.push(s),pt!==4&&(pt=2),t===null)return!0;a=wu(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Oo(n.stateNode,a,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"&&(Al===null||!Al.has(s))))return n.flags|=65536,c&=-c,n.lanes|=c,c=qh(c),Ih(c,e,n,a),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)),_t=!1;function Nt(e,t,n,a){t.child=e===null?Xd(t,null,n,a):ta(t,e.child,n,a)}function Gh(e,t,n,a,c){n=n.render;var s=t.ref;if("ref"in a){var p={};for(var b in a)b!=="ref"&&(p[b]=a[b])}else p=a;return Kl(t),a=po(e,t,n,p,s,c),b=go(),e!==null&&!_t?(bo(e,t,c),Un(e,t,c)):(Re&&b&&ec(t),t.flags|=1,Nt(e,t,a,c),t.child)}function Yh(e,t,n,a,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,Vh(e,t,s,a,c)):(e=Pr(n.type,null,a,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,a)&&e.ref===t.ref)return Un(e,t,c)}return t.flags|=1,e=jn(s,a),e.ref=t.ref,e.return=t,t.child=e}function Vh(e,t,n,a,c){if(e!==null){var s=e.memoizedProps;if(Mi(s,a)&&e.ref===t.ref)if(_t=!1,t.pendingProps=a=s,qo(e,c))(e.flags&131072)!==0&&(_t=!0);else return t.lanes=e.lanes,Un(e,t,c)}return zo(e,t,n,a,c)}function Xh(e,t,n,a){var c=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(a=t.child=e.child,c=0;a!==null;)c=c|a.lanes|a.childLanes,a=a.sibling;a=c&~s}else a=0,t.child=null;return Zh(e,t,s,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ac(t,s!==null?s.cachePool:null),s!==null?Qd(t,s):so(),Kd(t);else return a=t.lanes=536870912,Zh(e,t,s!==null?s.baseLanes|n:n,n,a)}else s!==null?(ac(t,s.cachePool),Qd(t,s),xl(),t.memoizedState=null):(e!==null&&ac(t,null),so(),xl());return Nt(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 Zh(e,t,n,a,c){var s=no();return s=s===null?null:{parent:xt._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&ac(t,null),so(),Kd(t),e!==null&&Ql(e,t,a,!0),t.childLanes=c,null}function Ec(e,t){return t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function $h(e,t,n){return ta(t,e.child,null,n),e=Ec(t,t.pendingProps),e.flags|=2,bu(t),t.memoizedState=null,e}function Mb(e,t,n){var a=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(a.mode==="hidden")return e=Ec(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Ki(null,e);if(fo(t),(e=nt)?(e=vm(e,Ru),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sl!==null?{id:tn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},n=jd(e),n.return=t,t.child=n,jt=t,nt=null)):e=null,e===null)throw fl(t);return t.lanes=536870912,null}return Ec(t,a)}var s=e.memoizedState;if(s!==null){var p=s.dehydrated;if(fo(t),c)if(t.flags&256)t.flags&=-257,t=$h(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(_t||Ql(e,t,n,!1),c=(n&e.childLanes)!==0,_t||c){if(bl.current===null){if(a=tt,a!==null&&(p=yi(a,n),p!==0&&p!==s.retryLane))throw s.retryLane=p,Vl(e,p),du(a,e,p),Ro;Ic()}t=$h(e,t,n)}else e=s.treeContext,nt=Mu(p.nextSibling),jt=t,Re=!0,ol=null,Ru=!1,e!==null&&zd(t,e),t=Ec(t,a),t.flags|=134221824;return t}return e=jn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ha(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,a,c){return Kl(t),n=po(e,t,n,a,void 0,c),a=go(),e!==null&&!_t?(bo(e,t,c),Un(e,t,c)):(Re&&a&&ec(t),t.flags|=1,Nt(e,t,n,c),t.child)}function Qh(e,t,n,a,c,s){return Kl(t),t.updateQueue=null,n=Pd(t,a,n,c),Jd(e),a=go(),e!==null&&!_t?(bo(e,t,s),Un(e,t,s)):(Re&&a&&ec(t),t.flags|=1,Nt(e,t,n,s),t.child)}function Kh(e,t,n,a,c){if(Kl(t),t.stateNode===null){var s=wa,p=n.contextType;typeof p=="object"&&p!==null&&(s=Ft(p)),s=new n(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=jo,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},ao(t),p=n.contextType,s.context=typeof p=="object"&&p!==null?Ft(p):wa,s.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(wo(t,n,p,a),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&&jo.enqueueReplaceState(s,s.state,null),Vi(t,a,s,c),Yi(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var b=t.memoizedProps,E=na(n,b);s.props=E;var j=s.context,M=n.contextType;p=wa,typeof M=="object"&&M!==null&&(p=Ft(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)&&Lh(t,s,a,p),ml=!1;var D=t.memoizedState;s.state=D,Vi(t,a,s,c),Yi(),j=t.memoizedState,b||D!==j||ml?(typeof B=="function"&&(wo(t,n,B,a),j=t.memoizedState),(E=ml||Mh(t,n,E,a,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=a,t.memoizedState=j),s.props=a,s.state=j,s.context=p,a=E):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,io(e,t),p=t.memoizedProps,M=na(n,p),s.props=M,B=t.pendingProps,D=s.context,j=n.contextType,E=wa,typeof j=="object"&&j!==null&&(E=Ft(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)&&Lh(t,s,a,E),ml=!1,D=t.memoizedState,s.state=D,Vi(t,a,s,c),Yi();var z=t.memoizedState;p!==B||D!==z||ml||e!==null&&e.dependencies!==null&&nc(e.dependencies)?(typeof b=="function"&&(wo(t,n,b,a),z=t.memoizedState),(M=ml||Mh(t,n,M,a,D,z,E)||e!==null&&e.dependencies!==null&&nc(e.dependencies))?(j||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,z,E),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,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=a,t.memoizedState=z),s.props=a,s.state=z,s.context=E,a=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),a=!1)}return s=a,Ha(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=ta(t,e.child,null,c),t.child=ta(t,null,n,c)):Nt(e,t,n,c),t.memoizedState=s.state,e=t.child):e=Un(e,t,c),e}function Jh(e,t,n,a){return Zl(),t.flags|=256,Nt(e,t,n,a),t.child}var Mo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lo(e){return{baseLanes:e,cachePool:Hd()}}function Uo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=vu),e}function Ph(e,t,n){var a=t.pendingProps,c=!1,s=(t.flags&128)!==0,p;if((p=s)||(p=e!==null&&e.memoizedState===null?!1:(Ht.current&2)!==0),p&&(c=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(c?yl(t):xl(),(e=nt)?(e=vm(e,Ru),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sl!==null?{id:tn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},n=jd(e),n.return=t,t.child=n,jt=t,nt=null)):e=null,e===null)throw fl(t);return L0(e)?t.lanes=32:t.lanes=536870912,null}return s=a.children,a=a.fallback,c?(xl(),c=t.mode,s=Sc({mode:"hidden",children:s},c),a=Xl(a,c,n,null),s.return=t,a.return=t,s.sibling=a,t.child=s,a=t.child,a.memoizedState=Lo(n),a.childLanes=Uo(e,p,n),t.memoizedState=Mo,Ki(null,a)):(yl(t),Fo(t,s))}var b=e.memoizedState;if(b!==null){var E=b.dehydrated;if(E!==null)return Lb(e,t,s,p,a,E,b,n)}return c?(xl(),c=a.fallback,s=t.mode,b=e.child,E=b.sibling,a=jn(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&1206910976,E!==null?c=jn(E,c):(c=Xl(c,s,n,null),c.flags|=2),c.return=t,a.return=t,a.sibling=c,t.child=a,Ki(null,a),a=t.child,c=e.child.memoizedState,c===null?c=Lo(n):(s=c.cachePool,s!==null?(b=xt._currentValue,s=s.parent!==b?{parent:b,pool:b}:s):s=Hd(),c={baseLanes:c.baseLanes|n,cachePool:s}),a.memoizedState=c,a.childLanes=Uo(e,p,n),t.memoizedState=Mo,Ki(e.child,a)):(yl(t),n=e.child,e=n.sibling,n=jn(n,{mode:"visible",children:a.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=Sc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=cu(22,e,null,t),e.lanes=0,e}function Ac(e,t,n){return ta(t,e.child,null,n),e=Fo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lb(e,t,n,a,c,s,p,b){if(n)return t.flags&256?(yl(t),t.flags&=-257,Ac(e,t,b)):t.memoizedState!==null?(xl(),t.child=e.child,t.flags|=128,null):(xl(),s=c.fallback,p=t.mode,c=Sc({mode:"visible",children:c.children},p),s=Xl(s,p,b,null),s.flags|=2,c.return=t,s.return=t,c.sibling=s,t.child=c,ta(t,e.child,null,b),c=t.child,c.memoizedState=Lo(b),c.childLanes=Uo(e,a,b),t.memoizedState=Mo,Ki(null,c));if(yl(t),L0(s)){if(a=s.nextSibling&&s.nextSibling.dataset,a)var E=a.dgst;return a=E,a!==""&&(c=Error(r(419)),c.stack="",c.digest=a,Fi({value:c,source:null,stack:null})),Ac(e,t,b)}if(_t||Ql(e,t,b,!1),a=(b&e.childLanes)!==0,_t||a){if(bl.current!==null)return Ac(e,t,b);if(a=tt,a!==null&&(c=yi(a,b),c!==0&&c!==p.retryLane))throw p.retryLane=c,Vl(e,c),du(a,e,c),Ro;return M0(s)||Ic(),Ac(e,t,b)}return M0(s)?(t.flags|=192,t.child=e.child,null):(e=p.treeContext,nt=Mu(s.nextSibling),jt=t,Re=!0,ol=null,Ru=!1,e!==null&&zd(t,e),t=Fo(t,c.children),t.flags|=134221824,t)}function Wh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),uc(e.return,t,n)}function e1(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&fc(n)===null&&(t=e),e=e.sibling}return t}function Tc(e,t,n,a,c,s){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:c,treeForkCount:s}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=a,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 a=t.pendingProps,c=a.revealOrder,s=a.tail;a=a.children;var p=Ht.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),Nt(e,t,a,n),Bo(e)):Nt(e,t,a,n),a=Re?Ui:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wh(e,n,t);else if(e.tag===19)Wh(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=e1(t.child),n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null,Bo(t)),Tc(t,!0,c,null,s,a);break;case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&fc(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Tc(t,!0,n,null,s,a);break;case"together":Tc(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:n=e1(t.child),n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Tc(t,!1,c,n,s,a)}return t.child}function t1(e,t,n){var a=t.pendingProps;return dl(t,t.type,a.value),Nt(e,t,a.children,n),t.child}function Un(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Sl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ql(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&&nc(e)))}function Ub(e,t,n){switch(t.tag){case 3:st(t,t.stateNode.containerInfo),dl(t,xt,e.memoizedState.cache),Zl();break;case 27:case 5:bn(t);break;case 4:st(t,t.stateNode.containerInfo);break;case 10:dl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,fo(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return yl(t),t.flags|=128,null;a=Ql(e,t,n,!1);var c=t.child.childLanes;return a||(n&c)!==0?Ph(e,t,n):(yl(t),e=Un(e,t,n),e!==null?e.sibling:null)}yl(t);break;case 19:if(t.flags&128)return Ho(e,t,n);if(c=(e.flags&128)!==0,a=(n&t.childLanes)!==0,a||(Ql(e,t,n,!1),a=(n&t.childLanes)!==0),c){if(a)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,Ht.current),a)break;return null;case 22:return t.lanes=0,Xh(e,t,n,t.pendingProps);case 24:dl(t,xt,e.memoizedState.cache)}return Un(e,t,n)}function u1(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)_t=!0;else{if(!qo(e,n)&&(t.flags&128)===0)return _t=!1,Ub(e,t,n);_t=(e.flags&131072)!==0}else _t=!1,Re&&(t.flags&1048576)!==0&&Rd(t,Ui,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Wl(t.elementType),t.type=e,typeof e=="function")Zs(e)?(a=na(e,a),t.tag=1,t=Kh(null,t,e,a,n)):(t.tag=0,t=zo(null,t,e,a,n));else{if(e!=null){var c=e.$$typeof;if(c===K){t.tag=11,t=Gh(null,t,e,a,n);break e}else if(c===Ce){t.tag=14,t=Yh(null,t,e,a,n);break e}else if(c===ye){t.tag=10,t.type=e,t=t1(null,t,n);break e}}throw t=Oe(e)||e,Error(r(306,t,""))}}return t;case 0:return zo(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,c=na(a,t.pendingProps),Kh(e,t,a,c,n);case 3:e:{if(st(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var s=t.memoizedState;c=s.element,io(e,t),Vi(t,a,null,n);var p=t.memoizedState;if(a=p.cache,dl(t,xt,a),a!==s.cache&&eo(t,[xt],n,!0),Yi(),a=p.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Jh(e,t,a,n);break e}else if(a!==c){c=wu(Error(r(424)),t),Fi(c),t=Jh(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,nt=Mu(e.firstChild),jt=t,Re=!0,ol=null,Ru=!0,n=Xd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling;else{if(Zl(),a===c){t=Un(e,t,n);break e}Nt(e,t,a,n)}t=t.child}return t;case 26:return Ha(e,t),e===null?(n=Dm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Re||(t.stateNode=im(t.type,t.pendingProps,X.current,t)):t.memoizedState=Dm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return bn(t),e===null&&Re&&(a=t.stateNode=Sm(t.type,t.pendingProps,X.current),jt=t,Ru=!0,c=nt,Dl(t.type)?(U0=c,nt=Mu(a.firstChild)):nt=c),Nt(e,t,t.pendingProps.children,n),Ha(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((c=a=nt)&&(a=j3(a,t.type,t.pendingProps,Ru),a!==null?(t.stateNode=a,jt=t,nt=Mu(a.firstChild),Ru=!1,c=!0):c=!1),c||fl(t)),bn(t),c=t.type,s=t.pendingProps,p=e!==null?e.memoizedProps:null,a=s.children,N0(c,s)?a=null:p!==null&&N0(c,p)&&(t.flags|=32),t.memoizedState!==null&&(c=po(e,t,Cb,null,null,n),li._currentValue=c),Ha(e,t),Nt(e,t,a,n),t.child;case 6:return e===null&&Re&&((e=n=nt)&&(n=O3(n,t.pendingProps,Ru),n!==null?(t.stateNode=n,jt=t,nt=null,e=!0):e=!1),e||fl(t)),null;case 13:return Ph(e,t,n);case 4:return st(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ta(t,null,a,n):Nt(e,t,a,n),t.child;case 11:return Gh(e,t,t.type,t.pendingProps,n);case 7:return a=t.pendingProps,Ha(e,t),Nt(e,t,a,n),t.child;case 8:return Nt(e,t,t.pendingProps.children,n),t.child;case 12:return Nt(e,t,t.pendingProps.children,n),t.child;case 10:return t1(e,t,n);case 9:return c=t.type._context,a=t.pendingProps.children,Kl(t),c=Ft(c),a=a(c),t.flags|=1,Nt(e,t,a,n),t.child;case 14:return Yh(e,t,t.type,t.pendingProps,n);case 15:return Vh(e,t,t.type,t.pendingProps,n);case 19:return Ho(e,t,n);case 31:return Mb(e,t,n);case 22:return Xh(e,t,n,t.pendingProps);case 24:return Kl(t),a=Ft(xt),e===null?(c=no(),c===null&&(c=tt,s=to(),c.pooledCache=s,s.refCount++,s!==null&&(c.pooledCacheLanes|=n),c=s),t.memoizedState={parent:a,cache:c},ao(t),dl(t,xt,c)):((e.lanes&n)!==0&&(io(e,t),Vi(t,null,null,n),Yi()),c=e.memoizedState,s=t.memoizedState,c.parent!==a?(c={parent:a,cache:a},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),dl(t,xt,a)):(a=s.cache,dl(t,xt,a),a!==c.cache&&eo(t,[xt],n,!0))),Nt(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:Re&&ec(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:Ha(e,t),Nt(e,t,a.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Fn(e){e.flags|=4}function Io(e,t,n,a,c){var s;if((s=(e.mode&32)!==0)&&(s=n===null?jm(t,a):jm(t,a)&&(a.src!==n.src||a.srcSet!==n.srcSet)),s){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(U1())e.flags|=8192;else throw ea=rc,lo}else e.flags&=-16777217}function n1(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Om(t))if(U1())e.flags|=8192;else throw ea=rc,lo}function Cc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Wn():536870912,e.lanes|=t,Va|=t)}function Ji(e,t){if(!Re)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;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 lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,a|=c.subtreeFlags&1206910976,a|=c.flags&1206910976,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Fb(e,t,n){var a=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 lt(t),null;case 1:return lt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),zn(xt),Hu(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ra(t)?Fn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ps())),lt(t),null;case 26:var c=t.type,s=t.memoizedState;return e===null?(Fn(t),s!==null?(lt(t),n1(t,s)):(lt(t),Io(t,c,null,a,n))):s?s!==e.memoizedState?(Fn(t),lt(t),n1(t,s)):(lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Fn(t),lt(t),Io(t,c,e,a,n)),null;case 27:if(yn(t),n=X.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Fn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return lt(t),t.subtreeFlags&=-33554433,null}e=wt.current,Ra(t)?Md(t):(e=Sm(c,a,n),t.stateNode=e,Fn(t))}return lt(t),t.subtreeFlags&=-33554433,null;case 5:if(yn(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Fn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return lt(t),t.subtreeFlags&=-33554433,null}if(s=wt.current,Ra(t))Md(t);else{var p=cr(X.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 a.is=="string"?p.createElement("select",{is:a.is}):p.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?p.createElement(c,{is:a.is}):p.createElement(c)}}s[Ct]=t,s[Zt]=a;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(It(s,c,a),c){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Fn(t)}}return lt(t),t.subtreeFlags&=-33554433,Io(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Fn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=X.current,Ra(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,c=jt,c!==null)switch(c.tag){case 27:case 5:a=c.memoizedProps}e[Ct]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||um(e.nodeValue,n)),e||fl(t,!0)}else e=cr(e).createTextNode(a),e[Ct]=t,t.stateNode=e}return lt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ra(t),n!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Ct]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else n=Ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(bu(t),t):(bu(t),null);if((t.flags&128)!==0)throw Error(r(558))}return lt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Ra(t),a!==null&&a.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[Ct]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),c=!1}else c=Ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(bu(t),t):(bu(t),null)}return bu(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,c=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(c=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==c&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Cc(t,t.updateQueue),lt(t),null);case 4:return Hu(),e===null&&S0(t.stateNode.containerInfo),t.flags|=67108864,lt(t),null;case 10:return zn(t.type),lt(t),null;case 19:if(ho(t),a=t.memoizedState,a===null)return lt(t),null;if(c=(t.flags&128)!==0,s=a.rendering,s===null)if(c)Ji(a,!1);else{if(pt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=fc(e),s!==null){for(t.flags|=128,Ji(a,!1),e=s.updateQueue,t.updateQueue=e,Cc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)wd(n,e),n=n.sibling;return Xi(t,Ht.current&1|2),Re&&On(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&rt()>Fc&&(t.flags|=128,c=!0,Ji(a,!1),t.lanes=4194304)}else{if(!c)if(e=fc(s),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Cc(t,e),Ji(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!s.alternate&&!Re)return lt(t),null}else 2*rt()-a.renderingStartTime>Fc&&n!==536870912&&(t.flags|=128,c=!0,Ji(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}if(a.tail!==null){e=a.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=rt(),e.sibling=null,s=Ht.current,s=c?s&1|2:s&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!n||Re?Xi(t,s):(n=s,ge(Bt,t),ge(Ht,n),Qt===null&&(Qt=t)),Re&&On(t,a.treeForkCount),e}return lt(t),null;case 22:case 23:return bu(t),oo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),n=t.updateQueue,n!==null&&Cc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&ct(Pl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),zn(xt),lt(t),null;case 25:return null;case 30:return t.flags|=33554432,lt(t),null}throw Error(r(156,t.tag))}function Bb(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 zn(xt),Hu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yn(t),null;case 31:if(t.memoizedState!==null){if(bu(t),t.alternate===null)throw Error(r(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(bu(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Zl()}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 zn(t.type),null;case 22:case 23:return bu(t),oo(),e!==null&&ct(Pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return zn(xt),null;case 25:return null;default:return null}}function l1(e,t){switch(Ks(t),t.tag){case 3:zn(xt),Hu();break;case 26:case 27:case 5:yn(t);break;case 4:Hu();break;case 31:t.memoizedState!==null&&bu(t);break;case 13:bu(t);break;case 19:ho(t);break;case 10:zn(t.type);break;case 22:case 23:bu(t),oo(),e!==null&&ct(Pl);break;case 24:zn(xt)}}function Pi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var c=a.next;n=c;do{if((n.tag&e)===e){a=void 0;var s=n.create,p=n.inst;a=s(),p.destroy=a}n=n.next}while(n!==c)}}catch(b){Pe(t,t.return,b)}}function vl(e,t,n){try{var a=t.updateQueue,c=a!==null?a.lastEffect:null;if(c!==null){var s=c.next;a=s;do{if((a.tag&e)===e){var p=a.inst,b=p.destroy;if(b!==void 0){p.destroy=void 0,c=t;var E=n,j=b;try{j()}catch(M){Pe(c,E,M)}}}a=a.next}while(a!==s)}}catch(M){Pe(t,t.return,M)}}function a1(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{$d(t,n)}catch(a){Pe(e,e.return,a)}}}function i1(e,t,n){n.props=na(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Pe(e,t,a)}}function nn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var c=e.stateNode,s=kn(e.memoizedProps,c);(c.ref===null||c.ref.name!==s)&&(c.ref=hm(s)),a=c.ref;break;case 7:if(e.stateNode===null){var p=new Eu(e);x(e.child,!1,k3,p,void 0,void 0),e.stateNode=p}a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(b){Pe(e,t,b)}}function qt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(c){Pe(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){Pe(e,t,c)}else n.current=null}function Dc(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++)xm(e.stateNode,t[n])}function r1(e){for(var t=e.return;t!==null&&(Yo(t)&&xm(e.stateNode,t.stateNode),!Go(t));)t=t.return}function Wi(e){for(var t=e.return;t!==null&&(Yo(t)&&w3(e.stateNode,t.stateNode),!Go(t));)t=t.return}function Go(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,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(c){Pe(e,e.return,c)}}function Xo(e,t,n){try{var a=e.stateNode;f3(a,e.type,n,t),a[Zt]=t}catch(c){Pe(e,e.return,c)}}function c1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function Zo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||c1(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&&Dl(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,a){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=$e)),Dc(e,a),ke=!0;else if(c!==4&&(c===27&&(Dc(e,a),a=null,Dl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for($o(e,t,n,a),e=e.sibling;e!==null;)$o(e,t,n,a),e=e.sibling}function Nc(e,t,n,a){var c=e.tag;if(c===5||c===6)c=e.stateNode,t?n.insertBefore(c,t):n.appendChild(c),Dc(e,a),ke=!0;else if(c!==4&&(c===27&&(Dc(e,a),a=null,Dl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Nc(e,t,n,a),e=e.sibling;e!==null;)Nc(e,t,n,a),e=e.sibling}function s1(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);It(t,a,n),t[Ct]=e,t[Zt]=n}catch(s){Pe(e,e.return,s)}}var kc=!1,yu=null;function o1(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(kc=!0)}var ln=null;function f1(){var e=ln;return ln=null,e}var su=0;function qa(e,t,n,a,c){return su=0,d1(e.child,t,n,a,c)}function d1(e,t,n,a,c){for(var s=!1;e!==null;){if(e.tag===5){var p=e.stateNode;if(a!==null){var b=j0(p);a.push(b),b.view&&(s=!0)}else s||j0(p).view&&(s=!0);kc=!0,fm(p,su===0?t:t+"_"+su,n),su++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&c||d1(e.child,t,n,a,c)&&(s=!0));e=e.sibling}return s}function an(e,t){for(;e!==null;)e.tag===5?dm(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||an(e.child,t)),e=e.sibling}function wc(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(wc(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=wn(t.default,t.share),t!=="none"&&(qa(e,n,t,null,!1)||an(e.child,!1))}e=e.sibling}}function Qo(e,t){if(e.tag===30){var n=e.stateNode,a=e.memoizedProps,c=kn(a,n),s=wn(a.default,n.paired?a.share:a.enter);s!=="none"?qa(e,c,s,null,!1)?(wc(e),n.paired||t||Qa(e,a.onEnter)):an(e.child,!1):wc(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Qo(e,t),e=e.sibling;else wc(e)}function Ko(e){if(yu!==null&&yu.size!==0){var t=yu;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,a=n.name;if(a!=null&&a!=="auto"){var c=t.get(a);if(c!==void 0){var s=wn(n.default,n.share);if(s!=="none"&&(qa(e,a,s,null,!1)?(s=e.stateNode,c.paired=s,s.paired=c,Qa(e,n.onShare)):an(e.child,!1)),t.delete(a),t.size===0)break}}}Ko(e)}e=e.sibling}}}function Jo(e){if(e.tag===30){var t=e.memoizedProps,n=kn(t,e.stateNode),a=yu!==null?yu.get(n):void 0,c=wn(t.default,a!==void 0?t.share:t.exit);c!=="none"&&(qa(e,n,c,null,!1)?a!==void 0?(c=e.stateNode,a.paired=c,c.paired=a,yu.delete(n),Qa(e,t.onShare)):Qa(e,t.onExit):an(e.child,!1)),yu!==null&&Ko(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Jo(e),e=e.sibling;else yu!==null&&Ko(e)}function h1(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=kn(t,e.stateNode);t=wn(t.default,t.update),e.flags&=-5,t!=="none"&&qa(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&h1(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,an(e.child,!1))}Po(e)}e=e.sibling}}function jc(e){if(e.tag===30)e.stateNode.paired=null,an(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 m1(e){for(e=e.child;e!==null;)e.tag===30?an(e.child,!1):(e.subtreeFlags&33554432)!==0&&m1(e),e=e.sibling}function Wo(e,t,n,a,c,s,p){for(var b=!1;t!==null;){if(t.tag===5){var E=t.stateNode;if(s!==null&&su<s.length){var j=s[su],M=j0(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&&fm(E,su===0?n:n+"_"+su,c),b&&(e.flags&4)!==0||(ln===null&&(ln=[]),ln.push(E,su===0?a:a+"_"+su,t.memoizedProps)),su++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&p?e.flags|=t.flags&32:Wo(e,t.child,n,a,c,s,p)&&(b=!0));t=t.sibling}return b}function p1(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,a=e.stateNode,c=kn(n,a),s=wn(n.default,n.update),p;p=e.memoizedState,e.memoizedState=null,a=e;var b=e.child;su=0,c=Wo(a,b,c,c,s,p,!1),(e.flags&4)!==0&&c&&Qa(e,n.onUpdate)}else(e.subtreeFlags&33554432)!==0&&p1(e);e=e.sibling}}var Ot=!1,Qe=!1,rn=!1,e0=!1,g1=typeof WeakSet=="function"?WeakSet:Set,Rt=null,cn=!1,er=!1,Oc=!1,t0=!1;function Hb(e,t,n){if(e=e.containerInfo,C0=ai,e=vd(e),Hs(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var s=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var b=0,E=-1,j=-1,M=0,B=0,D=e,z=null;t:for(;;){for(var le;D!==a||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===a&&++M===s&&(E=b),z===p&&++B===c&&(j=b),(le=D.nextSibling)!==null)break;D=z,z=D.parentNode}D=le}a=E===-1||j===-1?null:{start:E,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(D0={focusedElem:e,selectionRange:a},ai=!1,n=(n&335544064)===n,Rt=t,t=n?9270:1024;Rt!==null;){if(e=Rt,n&&(a=e.deletions,a!==null))for(s=0;s<a.length;s++)n&&Jo(a[s]);if(e.alternate===null&&(e.flags&2)!==0)n&&o1(e),Rc(n);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&n&&Jo(a),Rc(n);continue}else if(a!==null&&a.memoizedState!==null){n&&o1(e),Rc(n);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,Rt=a):(n&&h1(e),Rc(n))}}yu=null}function Rc(e){for(;Rt!==null;){var t=Rt,n=e,a=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((c&1024)!==0&&a!==null){n=void 0,c=a.memoizedProps,a=a.memoizedState;var s=t.stateNode;try{var p=na(t.type,c);n=s.getSnapshotBeforeUpdate(p,a),s.__reactInternalSnapshotBeforeUpdate=n}catch(b){Pe(t,t.return,b)}}break;case 3:if((c&1024)!==0){if(a=t.stateNode.containerInfo,n=a.nodeType,n===9)z0(a);else if(n===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":z0(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&a!==null&&(n=kn(a.memoizedProps,a.stateNode),c=t.memoizedProps,c=wn(c.default,c.update),c!=="none"&&qa(a,n,c,a.memoizedState=[],!0));break;default:if((c&1024)!==0)throw Error(r(163))}if(a=t.sibling,a!==null){a.return=t.return,Rt=a;break}Rt=t.return}}function b1(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:sn(e,n),a&4&&Pi(5,n);break;case 1:if(sn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Pe(n,n.return,p)}else{var c=na(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Pe(n,n.return,p)}}a&64&&a1(n),a&512&&nn(n,n.return);break;case 3:if(sn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{$d(e,t)}catch(p){Pe(n,n.return,p)}}break;case 27:t===null&&a&4&&s1(n);case 26:case 5:sn(e,n),t===null&&a&4&&Vo(n),a&512&&nn(n,n.return);break;case 12:sn(e,n);break;case 31:sn(e,n),a&4&&_1(e,n);break;case 13:sn(e,n),a&4&&E1(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Pb.bind(null,n),R3(e,n))));break;case 22:if(a=n.memoizedState!==null||Ot,!a){var s=t!==null&&t.memoizedState!==null||Qe;t=Ot,c=Qe,Ot=a,(Qe=s)&&!c?(a=2,(n.subtreeFlags&8772)!==0&&(a|=1),Xu(e,n,a)):sn(e,n),Ot=t,Qe=c}break;case 30:sn(e,n),a&512&&nn(n,n.return);break;case 7:a&512&&nn(n,n.return);default:sn(e,n)}}function u0(e,t){for(e=e.child;e!==null;)y1(e,t),e=e.sibling}function y1(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.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){Pe(e,e.return,E)}n0(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ke=!0}catch(E){Pe(e,e.return,E)}break;case 18:try{var b=e.stateNode;t?om(b,!0):om(e.stateNode,!1)}catch(E){Pe(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,a=t;switch(n.tag){case 4:y1(n,a);break e;case 22:n.memoizedState===null&&n0(n,a);break e;default:n0(n,a)}}e=e.sibling}}function x1(e){var t=e.alternate;t!==null&&(e.alternate=null,x1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ul(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 ot=null,ou=!1;function Yu(e,t,n){for(n=n.child;n!==null;)v1(e,t,n),n=n.sibling}function v1(e,t,n){if(we&&typeof we.onCommitFiberUnmount=="function")try{we.onCommitFiberUnmount(he,n)}catch{}switch(n.tag){case 26:Qe||qt(n,t),Yu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Qe&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qe||qt(n,t),Wi(n);var a=ot,c=ou;Dl(n.type)&&(ot=n.stateNode,ou=!1),Yu(e,t,n),Am(n.stateNode,n.type,n.memoizedProps),ot=a,ou=c;break;case 5:Qe||qt(n,t),Wi(n);case 6:if(n.tag===6&&Wi(n),a=ot,c=ou,ot=null,Yu(e,t,n),ot=a,ou=c,ot!==null)if(ou)try{(ot.nodeType===9?ot.body:ot.nodeName==="HTML"?ot.ownerDocument.body:ot).removeChild(n.stateNode),ke=!0}catch(s){Pe(n,t,s)}else try{ot.removeChild(n.stateNode),ke=!0}catch(s){Pe(n,t,s)}break;case 18:ot!==null&&(ou?(e=ot,sm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ii(e)):sm(ot,n.stateNode));break;case 4:a=ot,c=ou,ot=n.stateNode.containerInfo,ou=!0,Yu(e,t,n),ot=a,ou=c;break;case 0:case 11:case 14:case 15:vl(2,n,t),Qe||vl(4,n,t),Yu(e,t,n);break;case 1:Qe||(qt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&i1(n,t,a)),Yu(e,t,n);break;case 21:Yu(e,t,n);break;case 22:Qe=(a=Qe)||n.memoizedState!==null,Yu(e,t,n),Qe=a;break;case 30:qt(n,t),Yu(e,t,n);break;case 7:Qe||qt(n,t),Yu(e,t,n);break;default:Yu(e,t,n)}}function _1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ii(e)}catch(n){Pe(t,t.return,n)}}}function E1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ii(e)}catch(n){Pe(t,t.return,n)}}function qb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new g1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new g1),t;default:throw Error(r(435,e.tag))}}function zc(e,t){var n=qb(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var c=Wb.bind(null,e,a);a.then(c,c)}})}function tu(e,t,n){var a=t.deletions;if(a!==null)for(var c=0;c<a.length;c++){var s=a[c],p=e,b=t,E=b;e:for(;E!==null;){switch(E.tag){case 27:if(Dl(E.type)){ot=E.stateNode,ou=!1;break e}break;case 5:ot=E.stateNode,ou=!1;break e;case 3:case 4:ot=E.stateNode.containerInfo,ou=!0;break e}E=E.return}if(ot===null)throw Error(r(160));v1(p,b,s),ot=null,ou=!1,p=s.alternate,p!==null&&(p.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)S1(t,e,n),t=t.sibling}var Vu=null;function S1(e,t,n){var a=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(c&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var s=0;s<a.length;s++){var p=a[s];p.ref.impl=p.nextImpl}tu(t,e,n),uu(e),c&4&&(vl(3,e,e.return),Pi(3,e),vl(5,e,e.return));break;case 1:tu(t,e,n),uu(e),c&512&&(Qe||a===null||qt(a,a.return)),c&64&&Ot&&(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,tu(t,e,n),uu(e),c&512&&(Qe||a===null||qt(a,a.return)),c&4)if(c=a!==null?a.memoizedState:null,n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null)if(Ot)e.stateNode=im(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,c=s.ownerDocument||s;t:switch(t){case"title":a=c.getElementsByTagName("title")[0],(!a||a[Tn]||a[Ct]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=c.createElement(t),c.head.insertBefore(a,c.querySelector("head > title"))),It(a,t,n),a[Ct]=e,yt(a),t=a;break e;case"link":if(s=wm("link","href",c).get(t+(n.href||""))){for(p=0;p<s.length;p++)if(a=s[p],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(p,1);break t}}a=c.createElement(t),It(a,t,n),c.head.appendChild(a);break;case"meta":if(s=wm("meta","content",c).get(t+(n.content||""))){for(p=0;p<s.length;p++)if(a=s[p],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(p,1);break t}}a=c.createElement(t),It(a,t,n),c.head.appendChild(a);break;default:throw Error(r(468,t))}a[Ct]=e,yt(a),t=a}e.stateNode=t}else Ot||q0(s,e.type,e.stateNode);else e.stateNode=km(s,n,e.memoizedProps);else c!==n?(c===null?(t=a.stateNode,t===null||Qe||t.parentNode.removeChild(t)):c.count--,n===null?Ot||q0(s,e.type,e.stateNode):km(s,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Xo(e,e.memoizedProps,a.memoizedProps);break;case 27:tu(t,e,n),uu(e),c&512&&(Qe||a===null||qt(a,a.return)),a!==null&&c&4&&Xo(e,e.memoizedProps,a.memoizedProps);break;case 5:if(s=rn,rn=!1,tu(t,e,n),rn=s,uu(e),c&512&&(Qe||a===null||qt(a,a.return)),e.flags&32){t=e.stateNode;try{V(t,""),ke=!0}catch(M){Pe(e,e.return,M)}}c&4&&e.stateNode!=null&&(t=e.memoizedProps,Xo(e,t,a!==null?a.memoizedProps:t)),c&1024&&(e0=!0);break;case 6:if(tu(t,e,n),uu(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){Pe(e,e.return,M)}}break;case 3:if(ke=!1,Qc=null,s=Vu,Vu=sr(t.containerInfo),tu(t,e,n),Vu=s,uu(e),c&4&&a!==null&&a.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(M){Pe(e,e.return,M)}e0&&(e0=!1,A1(e)),ke=!1;break;case 4:c=rn,rn=Ot,a=ll(),s=Vu,Vu=sr(e.stateNode.containerInfo),tu(t,e,n),uu(e),Vu=s,ke&&er&&(Oc=!0),ke=a,rn=c;break;case 12:tu(t,e,n),uu(e);break;case 31:tu(t,e,n),uu(e),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,zc(e,t)));break;case 13:tu(t,e,n),uu(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Uc=rt()),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,zc(e,t)));break;case 22:s=e.memoizedState!==null,p=a!==null&&a.memoizedState!==null;var b=Ot,E=Qe,j=rn;Ot=b||s,rn=j||s,Qe=E||p,tu(t,e,n),Qe=E,rn=j,Ot=b,uu(e),c&8192&&(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,!s||a===null||p||Ot||Qe||(t=p||Qe,n=Ot,a=Qe,Ot=s||Ot,Qe=t,_l(e,2),Ot=n,Qe=a),!s&&rn||u0(e,s)),c&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,zc(e,n))));break;case 19:tu(t,e,n),uu(e),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,zc(e,t)));break;case 30:c&512&&(Qe||a===null||qt(a,a.return)),c=ll(),s=er,p=(n&335544064)===n,b=e.memoizedProps,er=p&&wn(b.default,b.update)!=="none",tu(t,e,n),uu(e),p&&a!==null&&ke&&(e.flags|=4),er=s,ke=c;break;case 21:break;case 7:c&512&&(Qe||a===null||qt(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:tu(t,e,n),uu(e)}}function uu(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(c1(a)){n=a;break}a=a.return}a=null;for(var c=e.return;c!==null;){if(Yo(c)){var s=c.stateNode;a===null?a=[s]:a.push(s)}if(Go(c))break;c=c.return}var p=a;if(n==null)throw Error(r(160));switch(n.tag){case 27:var b=n.stateNode,E=Zo(e);Nc(e,E,b,p);break;case 5:var j=n.stateNode;n.flags&32&&(V(j,""),n.flags&=-33);var M=Zo(e);Nc(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){Pe(e,e.return,z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function A1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;A1(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,ai=!0,t.reset(),ai=!1),e=e.sibling}}function Ia(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)T1(t,e),t=t.sibling;else p1(t)}function T1(e,t){var n=e.alternate;if(n===null)Qo(e,!1);else switch(e.tag){case 3:if(t0=cn=!1,f1(),Ia(t,e),!cn&&!Oc){if(e=ln,e!==null)for(var a=0;a<e.length;a+=3){n=e[a];var c=e[a+1];dm(n,e[a+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}ln=null;break;case 5:Ia(t,e);break;case 4:a=cn,cn=!1,Ia(t,e),cn&&(Oc=!0),cn=a;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?Qo(e,!1):Ia(t,e));break;case 30:a=cn,c=f1(),cn=!1,Ia(t,e),cn&&(e.flags|=4);var s=e.memoizedProps,p=e.stateNode;t=kn(s,p),p=kn(n.memoizedProps,p);var b=wn(s.default,s.update);b==="none"?t=!1:(s=n.memoizedState,n.memoizedState=null,n=e.child,su=0,t=Wo(e,n,t,p,b,s,!0),su!==(s===null?0:s.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Qa(e,e.memoizedProps.onUpdate),ln=c):c!==null&&(c.push.apply(c,ln),ln=c),cn=(e.flags&32)!==0?!0:a;break;default:Ia(t,e)}}function sn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)b1(e,t.alternate,t),t=t.sibling}function _l(e,t){for(e=e.child;e!==null;){var n=e,a=t;switch(n.tag){case 0:case 11:case 14:case 15:vl(4,n,n.return),_l(n,a);break;case 1:qt(n,n.return);var c=n.stateNode;typeof c.componentWillUnmount=="function"&&i1(n,n.return,c),_l(n,a);break;case 27:(a&2)!==0&&Am(n.stateNode,n.type,n.memoizedProps);case 5:qt(n,n.return),n.tag!==5&&n.tag!==27||Wi(n),_l(n,a);break;case 6:Wi(n);break;case 26:qt(n,n.return),c=n.stateNode,n.memoizedState!==null||c===null||Qe||c.parentNode.removeChild(c),_l(n,a);break;case 22:n.memoizedState===null&&_l(n,a);break;case 30:qt(n,n.return),_l(n,a);break;case 7:qt(n,n.return);default:_l(n,a)}e=e.sibling}}function Xu(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var a=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),a=s,c=a.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(M){Pe(a,a.return,M)}if(a=s,c=a.updateQueue,c!==null){var E=a.stateNode;try{var j=c.shared.hiddenCallbacks;if(j!==null)for(c.shared.hiddenCallbacks=null,c=0;c<j.length;c++)Zd(j[c],E)}catch(M){Pe(a,a.return,M)}}b&&p&64&&a1(s),nn(s,s.return);break;case 27:(n&2)!==0&&s1(s);case 5:s.tag!==5&&s.tag!==27||r1(s),Xu(c,s,n),b&&a===null&&p&4&&Vo(s),nn(s,s.return);break;case 6:r1(s);break;case 26:E=s.stateNode,s.memoizedState!==null||E===null||Ot||q0(sr(E.ownerDocument),s.type,E),Xu(c,s,n),b&&a===null&&p&4&&Vo(s),nn(s,s.return);break;case 12:Xu(c,s,n);break;case 31:Xu(c,s,n),b&&p&4&&_1(c,s);break;case 13:Xu(c,s,n),b&&p&4&&E1(c,s);break;case 22:s.memoizedState===null&&Xu(c,s,n),nn(s,s.return);break;case 30:Xu(c,s,n),nn(s,s.return);break;case 7:nn(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 zu(e,t,n,a){var c=(n&335544064)===n;if(t.subtreeFlags&(c?10262:10256))for(t=t.child;t!==null;)C1(e,t,n,a),t=t.sibling;else c&&m1(t)}function C1(e,t,n,a){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:zu(e,t,n,a),s&2048&&Pi(9,t);break;case 1:zu(e,t,n,a);break;case 3:zu(e,t,n,a),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){zu(e,t,n,a),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){Pe(t,t.return,j)}}else zu(e,t,n,a);break;case 31:zu(e,t,n,a);break;case 13:zu(e,t,n,a);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?zu(e,t,n,a):tr(e,t)):(c&&b!==null&&b.memoizedState!==null&&jc(t),p._visibility&2?zu(e,t,n,a):(p._visibility|=2,Ga(e,t,n,a,(t.subtreeFlags&10256)!==0||!1))),s&2048&&l0(b,t);break;case 24:zu(e,t,n,a),s&2048&&a0(t.alternate,t);break;case 30:c&&(s=t.alternate,s!==null&&(an(s.child,!0),an(t.child,!0))),zu(e,t,n,a);break;default:zu(e,t,n,a)}}function Ga(e,t,n,a,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,p=t,b=n,E=a,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,a=t,c=a.flags;switch(a.tag){case 22:tr(n,a),c&2048&&l0(a.alternate,a);break;case 24:tr(n,a),c&2048&&a0(a.alternate,a);break;default:tr(n,a)}t=t.sibling}}var la=8192;function aa(e,t,n){if(e.subtreeFlags&la)for(e=e.child;e!==null;)D1(e,t,n),e=e.sibling}function D1(e,t,n){switch(e.tag){case 26:aa(e,t,n),e.flags&la&&(e.memoizedState!==null?Z3(n,Vu,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&zm(n,e)));break;case 5:aa(e,t,n),e.flags&la&&(e=e.stateNode,(t&335544128)===t&&zm(n,e));break;case 3:case 4:var a=Vu;Vu=sr(e.stateNode.containerInfo),aa(e,t,n),Vu=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=la,la=16777216,aa(e,t,n),la=a):aa(e,t,n));break;case 30:if((e.flags&la)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var c=e.stateNode;c.paired=null,yu===null&&(yu=new Map),yu.set(a,c)}aa(e,t,n);break;default:aa(e,t,n)}}function N1(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 a=t[n];Rt=a,w1(a,e)}N1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)k1(e),e=e.sibling}function k1(e){switch(e.tag){case 0:case 11:case 15:ur(e),e.flags&2048&&vl(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,Mc(e)):ur(e);break;default:ur(e)}}function Mc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Rt=a,w1(a,e)}N1(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vl(8,t,t.return),Mc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Mc(t));break;default:Mc(t)}e=e.sibling}}function w1(e,t){for(;Rt!==null;){var n=Rt;switch(n.tag){case 0:case 11:case 15:vl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Bi(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Rt=a;else e:for(n=e;Rt!==null;){a=Rt;var c=a.sibling,s=a.return;if(x1(a),a===n){Rt=null;break e}if(c!==null){c.return=s,Rt=c;break e}Rt=s}}}var Ib={getCacheForType:function(e){var t=Ft(xt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ft(xt).controller.signal}},Gb=typeof WeakMap=="function"?WeakMap:Map,Ze=0,tt=null,Ue=null,He=0,Je=0,xu=null,El=!1,Ya=!1,i0=!1,Bn=0,pt=0,Sl=0,ia=0,Lc=0,vu=0,Va=0,nr=null,fu=null,r0=!1,Uc=0,j1=0,Fc=1/0,Bc=null,Al=null,ht=0,Zu=null,ra=null,on=0,c0=0,s0=null,O1=null,Xa=null,Za=null,$a=null,lr=0,Hc=null;function _u(){return(Ze&2)!==0&&He!==0?He&-He:I.T!==null?x0():xi()}function R1(){if(vu===0)if((He&536870912)===0||Re){var e=Kn;Kn<<=1,(Kn&3932160)===0&&(Kn=262144),vu=e}else vu=536870912;return e=Bt.current,e!==null&&(e.flags|=32),vu}function Qa(e,t){if(t!=null){var n=e.stateNode,a=n.ref;a===null&&(a=n.ref=hm(kn(e.memoizedProps,n))),Za===null&&(Za=[]),Za.push(t.bind(null,a))}}function du(e,t,n){(e===tt&&(Je===2||Je===9)||e.cancelPendingCommit!==null)&&(Ka(e,0),Tl(e,He,vu,!1)),Bl(e,n),((Ze&2)===0||e!==tt)&&(e===tt&&((Ze&2)===0&&(ia|=n),pt===4&&Tl(e,He,vu,!1)),fn(e))}function z1(e,t,n){if((Ze&6)!==0)throw Error(r(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Pn(e,t),c=a?Xb(e,t):f0(e,t,!0),s=a;do{if(c===0){Ya&&!a&&Tl(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!Yb(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&&(Ka(b,p).flags|=256),p=f0(b,p,!1),p!==2&&p!==6){if(i0&&!E){b.errorRecoveryDisabledLanes|=s,ia|=s,c=4;break e}s=fu,fu=c,s!==null&&(fu===null?fu=s:fu.push.apply(fu,s))}c=p}if(s=!1,c!==2)continue}}if(c===1){Ka(e,0),Tl(e,t,0,!0);break}e:{switch(a=e,s=c,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Tl(a,t,vu,!El);break e;case 2:fu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=Uc+300-rt(),10<c)){if(Tl(a,t,vu,!El),Jn(a,0,!0)!==0)break e;on=t,a.timeoutHandle=w0(M1.bind(null,a,n,fu,Bc,r0,t,vu,ia,Va,El,s,"Throttled",-0,0),c);break e}M1(a,n,fu,Bc,r0,t,vu,ia,Va,El,s,null,-0,0)}}break}while(!0);fn(e)}function M1(e,t,n,a,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:$e},yu=null,D1(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?Uc-rt():(s&4194048)===s?j1-rt():0,le=$3(B,le),le!==null)){on=s,e.cancelPendingCommit=le(G1.bind(null,e,t,s,n,a,c,p,b,E,j,M,B,null,D,z)),Tl(e,s,p,!j);return}G1(e,t,s,n,a,c,p,b,E,j,M,B)}function Yb(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var c=n[a],s=c.getSnapshot;c=c.value;try{if(!gu(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 Tl(e,t,n,a){t=ba(e,t),t&=~Lc,t&=~ia,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var c=t;0<c;){var s=31-ut(c),p=1<<s;a[s]=-1,c&=~p}n!==0&&An(e,n,t)}function qc(){return(Ze&6)===0?(ar(0),!1):!0}function o0(){if(Ue!==null){if(Je===0)var e=Ue.return;else e=Ue,Rn=$l=null,yo(e),La=null,Ii=0,e=Ue;for(;e!==null;)l1(e.alternate,e),e=e.return;Ue=null}}function Ka(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,m3(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),on=0,o0(),tt=e,Ue=n=jn(e.current,null),He=t,Je=0,xu=null,El=!1,Ya=Pn(e,t),i0=!1,Va=vu=Lc=ia=Sl=pt=0,fu=nr=null,r0=!1,Bn=ba(e,t),Qr(),n}function L1(e,t){De=null,I.H=vc,t===Ma||t===ic?(t=Gd(),Je=3):t===lo?(t=Gd(),Je=4):Je=t===Ro?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,xu=t,Ue===null&&(pt=1,_c(e,wu(t,e.current)))}function U1(){var e=Bt.current;return e===null?!0:(He&4194048)===He?Qt===null:(He&62914560)===He||(He&536870912)!==0?e===Qt:!1}function F1(){var e=I.H;return I.H=vc,e===null?vc:e}function B1(){var e=I.A;return I.A=Ib,e}function Ic(){pt=4,El||(He&4194048)!==He&&Bt.current!==null||(Ya=!0),(Sl&134217727)===0&&(ia&134217727)===0||tt===null||Tl(tt,He,vu,!1)}function f0(e,t,n){var a=Ze;Ze|=2;var c=F1(),s=B1();(tt!==e||He!==t)&&(Bc=null,Ka(e,t)),t=!1;var p=pt;e:do try{if(Je!==0&&Ue!==null){var b=Ue,E=xu;switch(Je){case 8:o0(),p=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(t=!0);var j=Je;if(Je=0,xu=null,Ja(e,b,E,j),n&&Ya){p=0;break e}break;default:j=Je,Je=0,xu=null,Ja(e,b,E,j)}}Vb(),p=pt;break}catch(M){L1(e,M)}while(!0);return t&&e.shellSuspendCounter++,Rn=$l=null,Ze=a,I.H=c,I.A=s,Ue===null&&(tt=null,He=0,Qr()),p}function Vb(){for(;Ue!==null;)H1(Ue)}function Xb(e,t){var n=Ze;Ze|=2;var a=F1(),c=B1();tt!==e||He!==t?(Bc=null,Fc=rt()+500,Ka(e,t)):Ya=Pn(e,t);e:do try{if(Je!==0&&Ue!==null){t=Ue;var s=xu;t:switch(Je){case 1:Je=0,xu=null,Ja(e,t,s,1);break;case 2:case 9:if(qd(s)){Je=0,xu=null,q1(t);break}t=function(){Je!==2&&Je!==9||tt!==e||(Je=7),fn(e)},s.then(t,t);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:qd(s)?(Je=0,xu=null,q1(t)):(Je=0,xu=null,Ja(e,t,s,7));break;case 5:var p=null;switch(Ue.tag){case 26:p=Ue.memoizedState;case 5:case 27:var b=Ue;if(p?Om(p):b.stateNode.complete){Je=0,xu=null;var E=b.sibling;if(E!==null)Ue=E;else{var j=b.return;j!==null?(Ue=j,Gc(j)):Ue=null}break t}}Je=0,xu=null,Ja(e,t,s,5);break;case 6:Je=0,xu=null,Ja(e,t,s,6);break;case 8:o0(),pt=6;break e;default:throw Error(r(462))}}Zb();break}catch(M){L1(e,M)}while(!0);return Rn=$l=null,I.H=a,I.A=c,Ze=n,Ue!==null?0:(tt=null,He=0,Qr(),pt)}function Zb(){for(;Ue!==null&&!Xn();)H1(Ue)}function H1(e){var t=u1(e.alternate,e,Bn);e.memoizedProps=e.pendingProps,t===null?Gc(e):Ue=t}function q1(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Qh(n,t,t.pendingProps,t.type,void 0,He);break;case 11:t=Qh(n,t,t.pendingProps,t.type.render,t.ref,He);break;case 5:yo(t);var a=t;a===jt&&(Re?(tc(a),a.tag===5&&a.stateNode!=null&&(nt=a.stateNode)):(tc(a),Re=!0));default:l1(n,t),t=Ue=wd(t,Bn),t=u1(n,t,Bn)}e.memoizedProps=e.pendingProps,t===null?Gc(e):Ue=t}function Ja(e,t,n,a){Rn=$l=null,yo(t),La=null,Ii=0;var c=t.return;try{if(zb(e,c,t,n,He)){pt=1,_c(e,wu(n,e.current)),Ue=null;return}}catch(s){if(c!==null)throw Ue=c,s;pt=1,_c(e,wu(n,e.current)),Ue=null;return}t.flags&32768?(Re||a===1?e=!0:Ya||(He&536870912)!==0?e=!1:(El=e=!0,(a===2||a===9||a===3||a===6)&&(a=Bt.current,a!==null&&a.tag===13&&(a.flags|=16384))),I1(t,e)):Gc(t)}function Gc(e){var t=e;do{if((t.flags&32768)!==0){I1(t,El);return}e=t.return;var n=Fb(t.alternate,t,Bn);if(n!==null){Ue=n;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);pt===0&&(pt=5)}function I1(e,t){do{var n=Bb(e.alternate,e);if(n!==null){n.flags&=32767,Ue=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ue=e;return}Ue=e=n}while(e!==null);pt=6,Ue=null}function G1(e,t,n,a,c,s,p,b,E,j,M,B){e.cancelPendingCommit=null;do Yc();while(ht!==0);if((Ze&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));e===tt&&(Ue=tt=null,He=0),ra=t,Zu=e,on=n,s0=c,O1=a,$b(e,t,n,p,b,E,B)}}function $b(e,t,n,a,c,s,p){var b=t.lanes|t.childLanes;if(c0=b,b|=Vs,dt(e,n,b,a,c,s),Za=null,(n&335544064)===n?($a=Eb(e),a=10262):($a=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,e3(lu,function(){return p0(),null})):(e.callbackNode=null,e.callbackPriority=0),kc=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=I.T,I.T=null,c=P.p,P.p=2,s=Ze,Ze|=4;try{Hb(e,t,n)}finally{Ze=s,P.p=c,I.T=a}}ht=1,kc?Xa=v3(p,e.containerInfo,$a,d0,h0,Kb,m0,p0,Qb):(d0(),h0(),m0())}function Qb(e){if(ht!==0){var t=Zu.onRecoverableError;t(e,{componentStack:null})}}function Kb(){ht===3&&(ht=0,T1(ra,Zu),ht=4)}function d0(){if(ht===1){ht=0;var e=Zu,t=ra,n=on,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=I.T,I.T=null;var c=P.p;P.p=2;var s=Ze;Ze|=4;try{er=Oc=!1,S1(t,e,n),n=D0;var p=vd(e.containerInfo),b=n.focusedElem,E=n.selectionRange;if(p!==b&&b&&b.ownerDocument&&xd(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 w=yd(b,de),A=yd(b,Ne);if(w&&A&&(z.rangeCount!==1||z.anchorNode!==w.node||z.anchorOffset!==w.offset||z.focusNode!==A.node||z.focusOffset!==A.offset)){var O=B.createRange();O.setStart(w.node,w.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}}ai=!!C0,D0=C0=null}finally{Ze=s,P.p=c,I.T=a}}e.current=t,ht=2}}function h0(){if(ht===2){ht=0;var e=Zu,t=ra,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=I.T,I.T=null;var a=P.p;P.p=2;var c=Ze;Ze|=4;try{b1(e,t.alternate,t)}finally{Ze=c,P.p=a,I.T=n}}ht=3}}function m0(){if(ht===4||ht===3){ht=0;var e=Xa;Xa=null,Fl();var t=Zu,n=ra,a=on,c=O1,s=(a&335544064)===a?10262:10256;if((n.subtreeFlags&s)!==0||(n.flags&s)!==0?ht=5:(ht=0,ra=Zu=null,Y1(t,t.pendingLanes)),s=t.pendingLanes,s===0&&(Al=null),ya(a),n=n.stateNode,we&&typeof we.onCommitFiberRoot=="function")try{we.onCommitFiberRoot(he,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=Za,p=$a,$a=null,c!==null&&(Za=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);(on&3)!==0&&Yc(),fn(t),s=t.pendingLanes,(a&261930)!==0&&(s&42)!==0?t===Hc?lr++:(lr=0,Hc=t):(lr=0,Hc=null),ar(0)}}function Y1(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Bi(t)))}function Yc(){return Xa!==null&&(Xa.skipTransition(),Xa=null),d0(),h0(),m0(),p0()}function p0(){if(ht!==5)return!1;var e=Zu,t=c0;c0=0;var n=ya(on),a=I.T,c=P.p;try{P.p=32>n?32:n,I.T=null,n=s0,s0=null;var s=Zu,p=on;if(ht=0,ra=Zu=null,on=0,(Ze&6)!==0)throw Error(r(331));var b=Ze;if(Ze|=4,k1(s.current),C1(s,s.current,p,n),Ze=b,ar(0,!1),we&&typeof we.onPostCommitFiberRoot=="function")try{we.onPostCommitFiberRoot(he,s)}catch{}return!0}finally{P.p=c,I.T=a,Y1(e,t)}}function V1(e,t,n){t=wu(n,t),t=Oo(e.stateNode,t,2),e=gl(e,t,2),e!==null&&(Bl(e,2),fn(e))}function Pe(e,t,n){if(e.tag===3)V1(e,e,n);else for(;t!==null;){if(t.tag===3){V1(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Al===null||!Al.has(a))){e=wu(n,e),n=qh(2),a=gl(t,n,2),a!==null&&(Ih(n,a,t,e),Bl(a,2),fn(a));break}}t=t.return}}function g0(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Gb;var c=new Set;a.set(t,c)}else c=a.get(t),c===void 0&&(c=new Set,a.set(t,c));c.has(n)||(i0=!0,c.add(n),e=Jb.bind(null,e,t,n),t.then(e,e))}function Jb(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tt===e&&(He&n)===n&&((pt===4||pt===3&&(He&62914560)===He&&300>rt()-Uc)&&(Ze&2)===0?Ka(e,0):Lc|=n,Va===He&&(Va=0)),fn(e)}function X1(e,t){t===0&&(t=Wn()),e=Vl(e,t),e!==null&&(Bl(e,t),fn(e))}function Pb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),X1(e,n)}function Wb(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),X1(e,n)}function e3(e,t){return Cu(e,t)}var Pa=null,Wa=null,b0=!1,Vc=!1,y0=!1,Cl=0;function fn(e){e!==Wa&&e.next===null&&(Wa===null?Pa=Wa=e:Wa=Wa.next=e),Vc=!0,b0||(b0=!0,u3())}function ar(e,t){if(!y0&&Vc){y0=!0;do for(var n=!1,a=Pa;a!==null;){if(e!==0){var c=a.pendingLanes;if(c===0)var s=0;else{var p=a.suspendedLanes,b=a.pingedLanes;s=(1<<31-ut(42|e)+1)-1,s&=c&~(p&~b),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,K1(a,s))}else s=He,s=Jn(a,a===tt?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||Pn(a,s)||(n=!0,K1(a,s));a=a.next}while(n);y0=!1}}function t3(){Z1()}function Z1(){Vc=b0=!1;var e=0;Cl!==0&&h3()&&(e=Cl);for(var t=rt(),n=null,a=Pa;a!==null;){var c=a.next,s=$1(a,t);s===0?(a.next=null,n===null?Pa=c:n.next=c,c===null&&(Wa=n)):(n=a,(e!==0||(s&3)!==0)&&(Vc=!0)),a=c}ht!==0&&ht!==5||ar(e),Cl!==0&&(Cl=0)}function $1(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,c=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var p=31-ut(s),b=1<<p,E=c[p];E===-1?((b&n)===0||(b&a)!==0)&&(c[p]=Ns(b,t)):E<=t&&(e.expiredLanes|=b),s&=~b}if(t=tt,n=He,n=Jn(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Je===2||Je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Tt(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Pn(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Tt(a),ya(n)){case 2:case 8:n=Sn;break;case 32:n=lu;break;case 268435456:n=Du;break;default:n=lu}return a=Q1.bind(null,e),n=Cu(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Tt(a),e.callbackPriority=2,e.callbackNode=null,2}function Q1(e,t){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Yc()&&e.callbackNode!==n)return null;var a=He;return a=Jn(e,e===tt?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(z1(e,a,t),$1(e,rt()),e.callbackNode!=null&&e.callbackNode===n?Q1.bind(null,e):null)}function K1(e,t){if(Yc())return null;z1(e,t,!0)}function u3(){p3(function(){(Ze&6)!==0?Cu(Zn,t3):Z1()})}function x0(){if(Cl===0){var e=Jl;e===0&&(e=Qn,Qn<<=1,(Qn&261888)===0&&(Qn=256)),Cl=e}return Cl}function J1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ae(e)}function n3(e,t,n,a,c){if(t==="submit"&&n&&n.stateNode===c){var s=J1((c[Zt]||null).action),p=a.submitter;p&&(t=(t=p[Zt]||null)?J1(t.formAction):p.getAttribute("formAction"),t!==null&&(s=t,p=null));var b=new Vr("action","action",null,a,c);e.push({event:b,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Cl!==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],l3=_0.toLowerCase(),a3=_0[0].toUpperCase()+_0.slice(1);Gu(l3,"on"+a3)}Gu(Sd,"onAnimationEnd"),Gu(Ad,"onAnimationIteration"),Gu(Td,"onAnimationStart"),Gu("dblclick","onDoubleClick"),Gu("focusin","onFocus"),Gu("focusout","onBlur"),Gu(mb,"onTransitionRun"),Gu(pb,"onTransitionStart"),Gu(gb,"onTransitionCancel"),Gu(Cd,"onTransitionEnd"),Wu("onMouseEnter",["mouseout","mouseover"]),Wu("onMouseLeave",["mouseout","mouseover"]),Wu("onPointerEnter",["pointerout","pointerover"]),Wu("onPointerLeave",["pointerout","pointerover"]),Pu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pu("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pu("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(" "),i3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ir));function P1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],c=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var p=a.length-1;0<=p;p--){var b=a[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){$r(M)}c.currentTarget=null,s=E}else for(p=0;p<a.length;p++){if(b=a[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){$r(M)}c.currentTarget=null,s=E}}}}function Fe(e,t){var n=t[vi];n===void 0&&(n=t[vi]=new Set);var a=e+"__bubble";n.has(a)||(W1(t,e,2,!1),n.add(a))}function E0(e,t,n){var a=0;t&&(a|=4),W1(n,e,a,t)}var Xc="_reactListening"+Math.random().toString(36).slice(2);function S0(e){if(!e[Xc]){e[Xc]=!0,Si.forEach(function(n){n!=="selectionchange"&&(i3.has(n)||E0(n,!1,e),E0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xc]||(t[Xc]=!0,E0("selectionchange",!1,t))}}function W1(e,t,n,a){switch(Im(t)){case 2:var c=P3;break;case 8:c=W3;break;default:c=G0}n=c.bind(null,t,n,e),c=void 0,!ws||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),a?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,a,c){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var p=a.tag;if(p===3||p===4){var b=a.stateNode.containerInfo;if(b===c)break;if(p===4)for(p=a.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=Cn(b),p===null)return;if(E=p.tag,E===5||E===6||E===26||E===27){a=s=p;continue e}b=b.parentNode}}a=a.return}Wf(function(){var j=s,M=Dt(n),B=[];e:{var D=Dd.get(e);if(D!==void 0){var z=Vr,le=e;switch(e){case"keypress":if(Gr(n)===0)break e;case"keydown":case"keyup":z=Yg;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=ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Og;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Qg;break;case Sd:case Ad:case Td:z=Mg;break;case Cd:z=Jg;break;case"scroll":case"scrollend":z=wg;break;case"wheel":z=Wg;break;case"copy":case"cut":case"paste":z=Ug;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=ld;break;case"submit":z=Zg;break;case"toggle":case"beforetoggle":z=tb}var de=(t&4)!==0,Ne=!de&&(e==="scroll"||e==="scrollend"),w=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||w===null||(F=Ni(A,w),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!==ru&&(le=n.relatedTarget||n.fromElement)&&(Cn(le)||le[Kt]))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?Cn(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=ud,F="onMouseLeave",w="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(de=ld,F="onPointerLeave",w="onPointerEnter",A="pointer"),Ne=D==null?le:ql(D),O=z==null?le:ql(z),le=new de(F,A+"leave",D,n,M),le.target=Ne,le.relatedTarget=O,F=null,Cn(M)===j&&(de=new de(w,A+"enter",z,n,M),de.target=O,de.relatedTarget=Ne,F=de),Ne=F,de=D&&z?ce(D,z,r3):null,D!==null&&em(B,le,D,de,!1),z!==null&&Ne!==null&&em(B,Ne,z,de,!0)))}e:{if(D=j?ql(j):window,z=D.nodeName&&D.nodeName.toLowerCase(),z==="select"||z==="input"&&D.type==="file")var oe=dd;else if(od(D))if(hd)oe=fb;else{oe=sb;var qe=cb}else z=D.nodeName,!z||z.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?j&&q(j.elementType)&&(oe=dd):oe=ob;if(oe&&(oe=oe(e,j))){fd(B,oe,n,M);break e}qe&&qe(e,D,j)}switch(qe=j?ql(j):window,e){case"focusin":(od(qe)||qe.contentEditable==="true")&&(Da=qe,qs=j,Li=null);break;case"focusout":Li=qs=Da=null;break;case"mousedown":Is=!0;break;case"contextmenu":case"mouseup":case"dragend":Is=!1,_d(B,n,M);break;case"selectionchange":if(hb)break;case"keydown":case"keyup":_d(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 Ca?cd(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ve="onCompositionStart");ve&&(ad&&n.locale!=="ko"&&(Ca||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Ca&&(pe=ed()):(rl=M,js="value"in rl?rl.value:rl.textContent,Ca=!0)),qe=Zc(j,ve),0<qe.length&&(ve=new nd(ve,e,null,n,M),B.push({event:ve,listeners:qe}),pe?ve.data=pe:(pe=sd(n),pe!==null&&(ve.data=pe)))),(pe=nb?lb(e,n):ab(e,n))&&(ve=Zc(j,"onBeforeInput"),0<ve.length&&(qe=new nd("onBeforeInput","beforeinput",null,n,M),B.push({event:qe,listeners:ve}),qe.data=pe)),n3(B,e,j,n,M)}P1(B,t)})}function rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zc(e,t){for(var n=t+"Capture",a=[];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&&a.unshift(rr(e,c,s)),c=Ni(e,t),c!=null&&a.push(rr(e,c,s))),e.tag===3)return a;e=e.return}return[]}function r3(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function em(e,t,n,a,c){for(var s=t._reactName,p=[];n!==null&&n!==a;){var b=n,E=b.alternate,j=b.stateNode;if(b=b.tag,E!==null&&E===a)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 c3=/\r\n?/g,s3=/\u0000|\uFFFD/g;function tm(e){return(typeof e=="string"?e:""+e).replace(c3,`
|
|
9
|
+
`).replace(s3,"")}function um(e,t){return t=tm(t),tm(e)===t}function We(e,t,n,a,c,s){switch(n){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||V(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&V(e,""+a);else return;break;case"className":Ea(e,"class",a);break;case"tabIndex":Ea(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ea(e,n,a);break;case"style":G(e,a,s);return;case"data":if(t!=="object"){Ea(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ae(a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(n==="formAction"?(t!=="input"&&We(e,t,"name",c.name,c,null),We(e,t,"formEncType",c.formEncType,c,null),We(e,t,"formMethod",c.formMethod,c,null),We(e,t,"formTarget",c.formTarget,c,null)):(We(e,t,"encType",c.encType,c,null),We(e,t,"method",c.method,c,null),We(e,t,"target",c.target,c,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ae(a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=$e);return;case"onScroll":a!=null&&Fe("scroll",e);return;case"onScrollEnd":a!=null&&Fe("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(c.children!=null)throw Error(r(60));s?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Ae(a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Fe("beforetoggle",e),Fe("toggle",e),$t(e,"popover",a);break;case"xlinkActuate":iu(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":iu(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":iu(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":iu(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":iu(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":iu(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":iu(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":iu(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":iu(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":$t(e,"is",a);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,$t(e,n,a);else return}ke=!0}function T0(e,t,n,a,c,s){switch(n){case"style":G(e,a,s);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(c.children!=null)throw Error(r(60));s?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof a=="string")V(e,a);else if(typeof a=="number"||typeof a=="bigint")V(e,""+a);else return;break;case"onScroll":a!=null&&Fe("scroll",e);return;case"onScrollEnd":a!=null&&Fe("scrollend",e);return;case"onClick":a!=null&&(e.onclick=$e);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Hr.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[Zt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(s,t,c),typeof a=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(s,a,c);break e}ke=!0,n in e?e[n]=a:a===!0?e.setAttribute(n,""):$t(e,n,a)}return}ke=!0}function It(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fe("error",e),Fe("load",e);var a=!1,c=!1,s;for(s in n)if(n.hasOwnProperty(s)){var p=n[s];if(p!=null)switch(s){case"src":a=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:We(e,t,s,p,n,null)}}c&&We(e,t,"srcSet",n.srcSet,n,null),a&&We(e,t,"src",n.src,n,null);return;case"input":Fe("invalid",e);var b=s=p=c=null,E=null,j=null;for(a in n)if(n.hasOwnProperty(a)){var M=n[a];if(M!=null)switch(a){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:We(e,t,a,M,n,null)}}qr(e,s,b,E,j,p,c,!1);return;case"select":Fe("invalid",e),a=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":a=b;default:We(e,t,c,b,n,null)}t=s,n=p,e.multiple=!!a,t!=null?en(e,!!a,t,!1):n!=null&&en(e,!!a,n,!0);return;case"textarea":Fe("invalid",e),s=c=a=null;for(p in n)if(n.hasOwnProperty(p)&&(b=n[p],b!=null))switch(p){case"value":a=b;break;case"defaultValue":c=b;break;case"children":s=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:We(e,t,p,b,n,null)}Aa(e,a,c,s);return;case"option":for(E in n)n.hasOwnProperty(E)&&(a=n[E],a!=null)&&(E==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":We(e,t,E,a,n,null));return;case"dialog":Fe("beforetoggle",e),Fe("toggle",e),Fe("cancel",e),Fe("close",e);break;case"iframe":case"object":Fe("load",e);break;case"video":case"audio":for(a=0;a<ir.length;a++)Fe(ir[a],e);break;case"image":Fe("error",e),Fe("load",e);break;case"details":Fe("toggle",e);break;case"embed":case"source":case"link":Fe("error",e),Fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in n)if(n.hasOwnProperty(j)&&(a=n[j],a!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:We(e,t,j,a,n,null)}return;default:if(q(t)){for(M in n)n.hasOwnProperty(M)&&(a=n[M],a!==void 0&&T0(e,t,M,a,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(a=n[b],a!=null&&We(e,t,b,a,n,null))}var o3={};function f3(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var 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:a.hasOwnProperty(z)||We(e,t,z,null,a,B)}}for(var D in a){var z=a[D];if(B=n[D],a.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&&We(e,t,D,z,a,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:a.hasOwnProperty(s)||We(e,t,s,null,a,E)}for(c in a)if(s=a[c],E=n[c],a.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&&We(e,t,c,s,a,E)}t=b,n=p,a=z,D!=null?en(e,!!n,D,!1):!!a!=!!n&&(t!=null?en(e,!!n,t,!0):en(e,!!n,n?[]:"",!1));return;case"textarea":z=D=null;for(b in n)if(c=n[b],n.hasOwnProperty(b)&&c!=null&&!a.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:We(e,t,b,null,a,c)}for(p in a)if(c=a[p],s=n[p],a.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&&We(e,t,p,c,a,s)}il(e,D,z);return;case"option":for(var le in n)D=n[le],n.hasOwnProperty(le)&&D!=null&&!a.hasOwnProperty(le)&&(le==="selected"?e.selected=!1:We(e,t,le,null,a,D));for(E in a)D=a[E],z=n[E],a.hasOwnProperty(E)&&D!==z&&(D!=null||z!=null)&&(E==="selected"?(D!==z&&(ke=!0),e.selected=D&&typeof D!="function"&&typeof D!="symbol"):We(e,t,E,D,a,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&&!a.hasOwnProperty(de)&&We(e,t,de,null,a,D);for(j in a)if(D=a[j],z=n[j],a.hasOwnProperty(j)&&D!==z&&(D!=null||z!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:We(e,t,j,D,a,z)}return;default:if(q(t)){for(var Ne in n)D=n[Ne],n.hasOwnProperty(Ne)&&D!==void 0&&!a.hasOwnProperty(Ne)&&T0(e,t,Ne,void 0,a,D);for(M in a)D=a[M],z=n[M],!a.hasOwnProperty(M)||D===z||D===void 0&&z===void 0||T0(e,t,M,D,a,z);return}}for(var w in n)D=n[w],n.hasOwnProperty(w)&&D!=null&&!a.hasOwnProperty(w)&&We(e,t,w,null,a,D);for(B in a)D=a[B],z=n[B],!a.hasOwnProperty(B)||D===z||D==null&&z==null||We(e,t,B,D,a,z)}function nm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function d3(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var c=n[a],s=c.transferSize,p=c.initiatorType,b=c.duration;if(s&&b&&nm(p)){for(p=0,b=c.responseEnd,a+=1;a<n.length;a++){var E=n[a],j=E.startTime;if(j>b)break;var M=E.transferSize,B=E.initiatorType;M&&nm(B)&&(E=E.responseEnd,p+=M*(E<b?1:(b-j)/(E-j)))}if(--a,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 lm(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 am(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 im(e,t,n,a){return n=cr(n).createElement(e),n[Ct]=a,n[Zt]=t,It(n,e,t),yt(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 h3(){var e=window.event;return e&&e.type==="popstate"?e===k0?!1:(k0=e,!0):(k0=null,!1)}var w0=typeof setTimeout=="function"?setTimeout:void 0,m3=typeof clearTimeout=="function"?clearTimeout:void 0,rm=typeof Promise=="function"?Promise:void 0,cm=typeof requestAnimationFrame=="function"?requestAnimationFrame:w0,p3=typeof queueMicrotask=="function"?queueMicrotask:typeof rm<"u"?function(e){return rm.resolve(null).then(e).catch(g3)}:w0;function g3(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function sm(e,t){var n=t,a=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(c),ii(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;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[Tn]||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);ii(t)}function om(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function fm(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 a=1;else for(var c=a=0;c<t.length;c++){var s=t[c];0<s.width&&0<s.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function dm(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 b3(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 j0(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return b3(t,n,e)}function y3(e){return e.documentElement.clientHeight}function x3(e){this.addEventListener("load",e),this.addEventListener("error",e)}function v3(e,t,n,a,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;a();var de=[];if(le==="loaded"&&(y3(j),j.fonts.status==="loading"&&de.push(j.fonts.ready)),le=de.length,e!==null)for(var Ne=e.suspenseyImages,w=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(w+=Rm(O),w>Kc){de.length=le;break}O=new Promise(x3.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 w=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,w===void 0)w=oe;else if(w!==oe){A=!1;break}delete F.width,delete F.height,F.transform==="none"&&delete F.transform}A&&Ne!==void 0&&w!==void 0&&(de.setKeyframes(le),A=getComputedStyle(de.target,de.pseudoElement),A.width!==Ne||A.height!==w)&&(A=le[0],A.width=Ne,A.height=w,A=le[le.length-1],A.width=Ne,A.height=w,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{a(),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 a(),c(),p(),null}}function ca(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}ca.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:te({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},ca.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),a=[],c=0;c<n.length;c++){var s=n[c].effect;s!==null&&s.target===e&&s.pseudoElement===t&&a.push(n[c])}return a},ca.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function hm(e){return{name:e,group:new ca("group",e),imagePair:new ca("image-pair",e),old:new ca("old",e),new:new ca("new",e)}}function Eu(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Eu.prototype.addEventListener=function(e,t,n){var a=null,c=null;if(!(n!=null&&typeof n!="boolean"&&(a=n.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var s=this._eventListeners;if(pm(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)}),a!==null&&(c=p.removeEventListener.bind(p,e,t,n),a.addEventListener("abort",c,{once:!0}),c=a.removeEventListener.bind(a,"abort",c)),a=ei(n),s.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:b,cleanup:c}),x(this._fragmentFiber.child,!1,_3,e,b,a)}this._eventListeners=s}};function _3(e,t,n,a){return Q(e).addEventListener(t,n,a),!1}Eu.prototype.removeEventListener=function(e,t,n){var a=this._eventListeners;if(a!==null&&(t=pm(a,e,t,n),t!==-1)){var c=a[t];n=c.attachedListener;var s=c.cleanup;c=ei(c.optionsOrUseCapture),x(this._fragmentFiber.child,!1,E3,e,n,c),a.splice(t,1),s!==null&&s()}};function E3(e,t,n,a){return Q(e).removeEventListener(t,n,a),!1}function ei(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function mm(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function pm(e,t,n,a){if(e.length===0)return-1;a=mm(a);for(var c=0;c<e.length;c++){var s=e[c];if(s.type===t&&s.listener===n&&mm(s.optionsOrUseCapture)===a)return c}return-1}Eu.prototype.dispatchEvent=function(e){var t=k(this._fragmentFiber);if(t===null)return!0;t=Q(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var c=0;c<n.length;c++){var s=n[c];a.addEventListener(s.type,s.attachedListener,ei(s.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),n)for(c=0;c<n.length;c++)s=n[c],a.removeEventListener(s.type,s.attachedListener,ei(s.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)},Eu.prototype.focus=function(e){x(this._fragmentFiber.child,!0,gm,e,void 0,void 0)};function gm(e,t){return e.tag===6?!1:(e=Q(e),z3(e,t))}Eu.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&&!gm(t[n],e);n--);};function O0(e,t){return t.push(e),!1}Eu.prototype.blur=function(){var e=k(this._fragmentFiber);e!==null&&(e=Q(e),e=cr(e).activeElement,e!==null&&x(this._fragmentFiber.child,!1,S3,e,void 0,void 0))};function S3(e,t){return e.tag===6?!1:(e=Q(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Eu.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),x(this._fragmentFiber.child,!1,A3,e,void 0,void 0)};function A3(e,t){return e.tag===6||(e=Q(e),t.observe(e)),!1}Eu.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),x(this._fragmentFiber.child,!1,T3,e,void 0,void 0);for(var n=t=0;n<$u.length;n++){var a=$u[n];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):$u[t++]=a}$u.length=t}};function T3(e,t){return e.tag===6||(e=Q(e),t.unobserve(e)),!1}var $u=[],R0=!1;function C3(e,t,n){$u.push({fragmentInstance:e,observer:t,instance:n}),R0||(R0=!0,M3(function(){R0=!1;var a=$u;$u=[];for(var c=0;c<a.length;c++){var s=a[c];s.observer.unobserve(s.instance)}}))}Eu.prototype.getClientRects=function(){var e=[];return x(this._fragmentFiber.child,!1,D3,e,void 0,void 0),e};function D3(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}Eu.prototype.getRootNode=function(e){var t=k(this._fragmentFiber);return t===null?this:Q(t).getRootNode(e)},Eu.prototype.compareDocumentPosition=function(e){var t=k(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];x(this._fragmentFiber.child,!1,O0,n,void 0,void 0);var a=Q(t);if(n.length===0){if(n=a,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=a=n.compareDocumentPosition(e);return n===e?c=Node.DOCUMENT_POSITION_CONTAINS:a&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:a;if(s==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=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=a&&s&&p&Node.DOCUMENT_POSITION_FOLLOWING&&b&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||s&&c===e||E||b?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!s&&c===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:p,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||N3(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function N3(e,t,n,a,c){var s=Cn(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=k(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===a)&&(t=ce(a,s,W),t===null?t=!1:(x(t,!0,$,s,a),s=J,ee=J=null,t=s!==null)),t):!1}function bm(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)}Eu.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 a=T(this._fragmentFiber);if(a=n?a[1]||a[0]||k(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=Q(a),bm(e,n);return}if(a=Q(a),a.nodeType!==9){if(a.nodeType===11){n="host"in a?a.host:null,n!==null&&n.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=n?t.length-1:0;a!==(n?-1:t.length);){var c=t[a];c.tag===6?(c=Q(c),bm(c,n)):Q(c).scrollIntoView(e),a+=n?-1:1}};function k3(e,t){return e=Q(e),ym(e,t),!1}function ym(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function xm(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var c=n[a];e.addEventListener(c.type,c.attachedListener,ei(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)}),ym(e,t))}function w3(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var c=n[a];e.removeEventListener(c.type,c.attachedListener,ei(c.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(s){typeof s.rootMargin=="string"?C3(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),ul(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function j3(e,t,n,a){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Tn])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=Mu(e.nextSibling),e===null)break}return null}function O3(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Mu(e.nextSibling),e===null))return null;return e}function vm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Mu(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 R3(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Mu(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 _m(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Mu(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Em(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 z3(e,t){function n(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return a}function M3(e){cm(function(){cm(function(t){return e(t)})})}function Sm(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 Am(e,t,n){for(var a in n){var c=n[a];n.hasOwnProperty(a)&&c!=null&&We(e,t,a,null,o3,c)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===$e&&(e.onclick=null),ul(e)}function F0(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ul(e)}var Lu=new Map,Tm=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 Hn=P.d;P.d={f:L3,r:U3,D:F3,C:B3,L:H3,m:q3,X:G3,S:I3,M:Y3};function L3(){var e=Hn.f(),t=qc();return e||t}function U3(e){var t=Dn(e);t!==null&&t.tag===5&&t.type==="form"?Dh(t):Hn.r(e)}var ti=typeof document>"u"?null:document;function Cm(e,t,n){var a=ti;if(a&&typeof t=="string"&&t){var c=Pt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),Tm.has(c)||(Tm.add(c),e={rel:e,crossOrigin:n,href:t},a.querySelector(c)===null&&(t=a.createElement("link"),It(t,"link",e),yt(t),a.head.appendChild(t)))}}function F3(e){Hn.D(e),Cm("dns-prefetch",e,null)}function B3(e,t){Hn.C(e,t),Cm("preconnect",e,t)}function H3(e,t,n){Hn.L(e,t,n);var a=ti;if(a&&e&&t){var c='link[rel="preload"][as="'+Pt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Pt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Pt(n.imageSizes)+'"]')):c+='[href="'+Pt(e)+'"]';var s=c;switch(t){case"style":s=ui(e);break;case"script":s=ni(e)}if(!(Lu.has(s)||(e=te({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Lu.set(s,e),a.querySelector(c)!==null||t==="style"&&a.querySelector(or(s))||t==="script"&&a.querySelector(fr(s))))){var p=a.createElement("link");It(p,"link",e),t==="style"&&(p[tl]=!0,p.onload=p.onerror=function(){Br(p)}),yt(p),a.head.appendChild(p)}}}function q3(e,t){Hn.m(e,t);var n=ti;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Pt(a)+'"][href="'+Pt(e)+'"]',s=c;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=ni(e)}if(!Lu.has(s)&&(e=te({rel:"modulepreload",href:e},t),Lu.set(s,e),n.querySelector(c)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(fr(s)))return}a=n.createElement("link"),It(a,"link",e),yt(a),n.head.appendChild(a)}}}function I3(e,t,n){Hn.S(e,t,n);var a=ti;if(a&&e){var c=nl(a).hoistableStyles,s=ui(e);t=t||"default";var p=c.get(s);if(!p){var b={loading:0,preload:null};if(p=a.querySelector(or(s)))b.loading=5;else{e=te({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Lu.get(s))&&B0(e,n);var E=p=a.createElement("link");yt(E),It(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,$c(p,t,a)}p={type:"stylesheet",instance:p,count:1,state:b},c.set(s,p)}}}function G3(e,t){Hn.X(e,t);var n=ti;if(n&&e){var a=nl(n).hoistableScripts,c=ni(e),s=a.get(c);s||(s=n.querySelector(fr(c)),s||(e=te({src:e,async:!0},t),(t=Lu.get(c))&&H0(e,t),s=n.createElement("script"),yt(s),It(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(c,s))}}function Y3(e,t){Hn.M(e,t);var n=ti;if(n&&e){var a=nl(n).hoistableScripts,c=ni(e),s=a.get(c);s||(s=n.querySelector(fr(c)),s||(e=te({src:e,async:!0,type:"module"},t),(t=Lu.get(c))&&H0(e,t),s=n.createElement("script"),yt(s),It(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(c,s))}}function Dm(e,t,n,a){var c=(c=X.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=ui(n.href),t=nl(c).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ui(n.href);var s=nl(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=Lu.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},Lu.set(e,s)),V3(c,e,s,p.state))),t&&a===null)throw Error(r(528,""));return p}if(t&&a!==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=ni(n),t=nl(c).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function ui(e){return'href="'+Pt(e)+'"'}function or(e){return'link[rel="stylesheet"]['+e+"]"}function Nm(e){return te({},e,{"data-precedence":e.precedence,precedence:null})}function V3(e,t,n,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[tl]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[tl]=!0,t.onload=t.onerror=Br.bind(null,t),It(t,"link",n),yt(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function ni(e){return'[src="'+Pt(e)+'"]'}function fr(e){return"script[async]"+e}function km(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Pt(n.href)+'"]');if(a)return t.instance=a,yt(a),a;var c=te({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),yt(a),It(a,"style",c),$c(a,n.precedence,e),t.instance=a;case"stylesheet":c=ui(n.href);var s=e.querySelector(or(c));if(s)return t.state.loading|=4,t.instance=s,yt(s),s;a=Nm(n),(c=Lu.get(c))&&B0(a,c),s=(e.ownerDocument||e).createElement("link"),yt(s);var p=s;return p._p=new Promise(function(b,E){p.onload=b,p.onerror=E}),It(s,"link",a),t.state.loading|=4,$c(s,n.precedence,e),t.instance=s;case"script":return s=ni(n.src),(c=e.querySelector(fr(s)))?(t.instance=c,yt(c),c):(a=n,(c=Lu.get(s))&&(a=te({},n),H0(a,c)),e=e.ownerDocument||e,c=e.createElement("script"),yt(c),It(c,"link",a),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&&(a=t.instance,t.state.loading|=4,$c(a,n.precedence,e));return t.instance}function $c(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=a.length?a[a.length-1]:null,s=c,p=0;p<a.length;p++){var b=a[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 Qc=null;function wm(e,t,n){if(Qc===null){var a=new Map,c=Qc=new Map;c.set(n,a)}else c=Qc,a=c.get(n),a||(a=new Map,c.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var s=n[c];if(!(s[Tn]||s[Ct]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var p=s.getAttribute(t)||"";p=e+p;var b=a.get(p);b?b.push(s):a.set(p,[s])}}return a}function q0(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function X3(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 jm(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Om(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Rm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function zm(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Rm(t),e.suspenseyImages.push(t)),e=Q3.bind(e),t.decode().then(e,e))}function Z3(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=ui(a.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,yt(s);return}s=t.ownerDocument||t,a=Nm(a),(c=Lu.get(c))&&B0(a,c),s=s.createElement("link"),yt(s);var p=s;p._p=new Promise(function(b,E){p.onload=b,p.onerror=E}),It(s,"link",a),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=dr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Kc=0;function $3(e,t){return e.stylesheets&&e.count===0&&Pc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Pc(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Kc===0&&(Kc=62500*d3());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Pc(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Kc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(c)}}:null}function Mm(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Pc(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function dr(){this.count--,Mm(this)}function Q3(){this.imgCount--,Mm(this)}var Jc=null;function Pc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Jc=new Map,t.forEach(K3,e),Jc=null,dr.call(e))}function K3(e,t){if(!(t.state.loading&4)){var n=Jc.get(e);if(n)var a=n.get(null);else{n=new Map,Jc.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),a=p)}a&&n.set(null,a)}c=t.instance,p=c.getAttribute("data-precedence"),s=n.get(p)||a,s===a&&n.set(null,c),n.set(p,c),this.count++,a=dr.bind(this),c.addEventListener("load",a),c.addEventListener("error",a),s?s.parentNode.insertBefore(c,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var li={$$typeof:ye,Provider:null,Consumer:null,_currentValue:Le,_currentValue2:Le,_threadCount:0};function J3(e,t,n,a,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=a,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 Lm(e,t,n,a,c,s,p,b,E,j,M,B){return e=new J3(e,t,n,p,E,j,M,B,b),t=1,s===!0&&(t|=24),s=cu(3,null,null,t),e.current=s,s.stateNode=e,t=to(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:n,cache:t},ao(s),e}function Um(e){return e?(e=wa,e):wa}function Fm(e,t,n,a,c,s){c=Um(c),a.context===null?a.context=c:a.pendingContext=c,a=pl(t),a.payload={element:n},s=s===void 0?null:s,s!==null&&(a.callback=s),n=gl(e,a,t),n!==null&&(du(n,e,t),Gi(n,e,t))}function Bm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function I0(e,t){Bm(e,t),(e=e.alternate)&&Bm(e,t)}function Hm(e){if(e.tag===13||e.tag===31){var t=Vl(e,67108864);t!==null&&du(t,e,67108864),I0(e,67108864)}}function qm(e){if(e.tag===13||e.tag===31){var t=_u();t=Hl(t);var n=Vl(e,t);n!==null&&du(n,e,t),I0(e,t)}}var ai=!0;function P3(e,t,n,a){var c=I.T;I.T=null;var s=P.p;try{P.p=2,G0(e,t,n,a)}finally{P.p=s,I.T=c}}function W3(e,t,n,a){var c=I.T;I.T=null;var s=P.p;try{P.p=8,G0(e,t,n,a)}finally{P.p=s,I.T=c}}function G0(e,t,n,a){if(ai){var c=Y0(a);if(c===null)A0(e,t,a,Wc,n),Gm(e,a);else if(ty(c,e,t,n,a))a.stopPropagation();else if(Gm(e,a),t&4&&-1<ey.indexOf(e)){for(;c!==null;){var s=Dn(c);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var p=Ju(s.pendingLanes);if(p!==0){var b=s;for(b.pendingLanes|=2,b.entangledLanes|=2;p;){var E=1<<31-ut(p);b.entanglements[1]|=E,p&=~E}fn(s),(Ze&6)===0&&(Fc=rt()+500,ar(0))}}break;case 31:case 13:b=Vl(s,2),b!==null&&du(b,s,2),qc(),I0(s,2)}if(s=Y0(a),s===null&&A0(e,t,a,Wc,n),s===c)break;c=s}c!==null&&a.stopPropagation()}else A0(e,t,a,null,n)}}function Y0(e){return e=Dt(e),V0(e)}var Wc=null;function V0(e){if(Wc=null,e=Cn(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 Wc=e,null}function Im(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(En()){case Zn:return 2;case Sn:return 8;case lu:case Ku:return 32;case Du:return 268435456;default:return 32}default:return 32}}var X0=!1,Nl=null,kl=null,wl=null,hr=new Map,mr=new Map,jl=[],ey="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 Gm(e,t){switch(e){case"focusin":case"focusout":Nl=null;break;case"dragenter":case"dragleave":kl=null;break;case"mouseover":case"mouseout":wl=null;break;case"pointerover":case"pointerout":hr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mr.delete(t.pointerId)}}function pr(e,t,n,a,c,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:s,targetContainers:[c]},t!==null&&(t=Dn(t),t!==null&&Hm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function ty(e,t,n,a,c){switch(t){case"focusin":return Nl=pr(Nl,e,t,n,a,c),!0;case"dragenter":return kl=pr(kl,e,t,n,a,c),!0;case"mouseover":return wl=pr(wl,e,t,n,a,c),!0;case"pointerover":var s=c.pointerId;return hr.set(s,pr(hr.get(s)||null,e,t,n,a,c)),!0;case"gotpointercapture":return s=c.pointerId,mr.set(s,pr(mr.get(s)||null,e,t,n,a,c)),!0}return!1}function Ym(e){var t=Cn(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,Fr(e.priority,function(){qm(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,Fr(e.priority,function(){qm(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 es(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 a=new n.constructor(n.type,n);ru=a,n.target.dispatchEvent(a),ru=null}else return t=Dn(n),t!==null&&Hm(t),e.blockedOn=n,!1;t.shift()}return!0}function Vm(e,t,n){es(e)&&n.delete(t)}function uy(){X0=!1,Nl!==null&&es(Nl)&&(Nl=null),kl!==null&&es(kl)&&(kl=null),wl!==null&&es(wl)&&(wl=null),hr.forEach(Vm),mr.forEach(Vm)}function ts(e,t){e.blockedOn===t&&(e.blockedOn=null,X0||(X0=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,uy)))}var us=null;function Xm(e){us!==e&&(us=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){us===e&&(us=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],c=e[t+2];if(typeof a!="function"){if(V0(a||n)===null)continue;break}var s=Dn(n);s!==null&&(e.splice(t,3),t-=3,Do(s,{pending:!0,data:c,method:n.method,action:a},a,c))}}))}function ii(e){function t(E){return ts(E,e)}Nl!==null&&ts(Nl,e),kl!==null&&ts(kl,e),wl!==null&&ts(wl,e),hr.forEach(t),mr.forEach(t);for(var n=0;n<jl.length;n++){var a=jl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<jl.length&&(n=jl[0],n.blockedOn===null);)Ym(n),n.blockedOn===null&&jl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var c=n[a],s=n[a+1],p=c[Zt]||null;if(typeof s=="function")p||Xm(n);else if(p){var b=null;if(s&&s.hasAttribute("formAction")){if(c=s,p=s[Zt]||null)b=p.formAction;else if(V0(c)!==null)continue}else b=p.action;typeof b=="function"?n[a+1]=b:(n.splice(a,3),a-=3),Xm(n)}}}function Zm(){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),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Z0(e){this._internalRoot=e}ns.prototype.render=Z0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=_u();Fm(n,a,e,t,null,null)},ns.prototype.unmount=Z0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fm(e.current,2,null,e,null,null),qc(),t[Kt]=null}};function ns(e){this._internalRoot=e}ns.prototype.unstable_scheduleHydration=function(e){if(e){var t=xi();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jl.length&&t!==0&&t<jl[n].priority;n++);jl.splice(n,0,e),n===0&&Ym(e)}};var $m=l.version;if($m!=="19.3.1")throw Error(r(527,$m,"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 ny={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ls=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ls.isDisabled&&ls.supportsFiber)try{he=ls.inject(ny),we=ls}catch{}}return br.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,a="",c=Uh,s=Fh,p=Bh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=Lm(e,1,!1,null,null,n,a,null,c,s,p,Zm),e[Kt]=t.current,S0(e),new Z0(t)},br.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var a=!1,c="",s=Uh,p=Fh,b=Bh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!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=Lm(e,1,!0,t,n??null,a,c,E,s,p,b,Zm),t.context=Um(null),n=t.current,a=_u(),a=Hl(a),c=pl(a),c.callback=null,gl(n,c,a),n=a,t.current.lanes=n,Bl(t,n),fn(t),e[Kt]=t.current,S0(e),new ns(t)},br.version="19.3.1",br}var lp;function hy(){if(lp)return K0.exports;lp=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(l){console.error(l)}}return u(),K0.exports=dy(),K0.exports}var my=hy();const py=["select","confirm","input","editor"],gy=new Set(py),d2=["notify","setStatus","setWidget","setTitle","set_editor_text"];new Set(d2);function by(u){return gy.has(u)}const ma=5,yy=4;function xy(u){return u===void 0?!0:u>=yy}function ap(u){const l=[];for(const r of u.split("/"))if(!(r===""||r===".")){if(r===".."){l.pop();continue}l.push(r)}const i=l.join("/");return u.startsWith("/")?`/${i}`:i}function vy(u,l){const i=ap(u),r=ap(l);return i.length===0||r.length===0?!1:i===r?!0:ip(i,r)||ip(r,i)}function ip(u,l){return l==="/"?u!=="/":u.startsWith(`${l}/`)}const _y="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 Ey(u,l){if(l!==void 0)return vy(u,l)?_y:void 0}function pa(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 Sy={},rp=[500,1e3,2e3,3e3,5e3];function Ay(u){if(u!==ma)return`protocol mismatch: the orchestrator speaks v${u} and this UI speaks v${ma}. Reload the UI; if that fails, restart the orchestrator.`}class Ty{#e;#t;#i;#l=0;#a=!1;#r="connecting";#n;constructor(l,i){this.#i=l,this.#t=i}get status(){return this.#r}connect(){this.#a=!1,this.#c()}#c(){this.#u("connecting");let l;try{l=new WebSocket(this.#i)}catch(i){this.#u("closed",i.message);return}this.#e=l,l.onopen=()=>{this.#l=0,this.#u("open")},l.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=Ay(r.protocol);o!==void 0&&this.#t.onEvent({kind:"error",message:o});return}this.#t.onEvent(r)},l.onerror=()=>{},l.onclose=()=>{if(this.#e=void 0,this.#a){this.#u("closed");return}const i=rp[Math.min(this.#l,rp.length-1)];this.#l+=1,this.#u("closed",`reconnecting in ${(i/1e3).toFixed(1)}s`),this.#n=setTimeout(()=>this.#c(),i)}}#u(l,i){this.#r=l,this.#t.onStatus(l,i)}send(l){if(this.#e?.readyState!==WebSocket.OPEN)return!1;const i={dir:"client→orchestrator",protocol:ma,payload:l};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 Cy(){const u=Sy.VITE_PI_CENTRAL_WS;return typeof u=="string"&&u.length>0?u:`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}const ef="pi-central.update-reload",Nf="pi-central.protocol-reload";function Dy(u=document){const l=u.querySelector('script[type="module"][src]')?.getAttribute("src")??"";return/assets\/index-[A-Za-z0-9_-]+\.js/.exec(l)?.[0]}function Ny(u,l,i){const r=l?.ui?.entry;return u===void 0||r===void 0?{action:"none"}:u===r?(i.removeItem(ef),{action:"none"}):i.getItem(ef)===r?{action:"banner",message:"Pi Central was updated while this window was open, and reloading once did not pick up the new UI. Quit the app (⌘Q) and reopen it; if the old version still appears after that, clear this site's data in the browser."}:(i.setItem(ef,r),{action:"reload"})}function ky(){try{const u="pi-central.storage-probe";return sessionStorage.setItem(u,"1"),sessionStorage.removeItem(u),sessionStorage}catch{const u=new Map;return{getItem:l=>u.get(l)??null,setItem:(l,i)=>{u.set(l,i)},removeItem:l=>{u.delete(l)}}}}const wy="protocol mismatch:";function jy(u,l){return l.getItem(Nf)===u?{action:"banner",message:`${u} This window already reloaded once and the halves still disagree, so the fix is on the other side: update and restart the orchestrator, then reload. In an installed app, ⌘Q and reopen is the reload that always works.`}:(l.setItem(Nf,u),{action:"reload"})}function Oy(u,l,i){u?.protocol===l&&i.removeItem(Nf)}const Ry="/assets/logo-icon-BCSgj5RT.svg";function zy(u){return u===void 0?{kind:"follow-end"}:u.pinned?{kind:"follow-end"}:{kind:"restore",scrollTop:u.scrollTop,pinned:!1}}function My(u,l){return u>l}function Ly(u,l){const i=Math.max(0,l.scrollHeight-u.scrollHeight);return l.scrollHeight-l.scrollTop-l.clientHeight-i}function Uy(u,l,i){return Ly(u,l)<i}function tf(u){return Number.isFinite(u.scrollTop)&&Number.isFinite(u.scrollHeight)&&Number.isFinite(u.clientHeight)&&u.scrollHeight>0&&u.clientHeight>0}function cp(u,l){return u&&l}const h2="pi-central.trace";function sp(u){const l={};if(typeof u!="object"||u===null||Array.isArray(u))return l;for(const[i,r]of Object.entries(u))typeof r=="boolean"&&(l[i]=r);return l}function Fy(){try{const u=localStorage.getItem(h2);if(u===null||u==="")return{collapsed:{},markers:{}};const l=JSON.parse(u);if(typeof l!="object"||l===null)return{collapsed:{},markers:{}};const i=l;return{collapsed:sp(i.collapsed),markers:sp(i.markers)}}catch{return{collapsed:{},markers:{}}}}function By(u){try{localStorage.setItem(h2,JSON.stringify({collapsed:u.collapsed,markers:u.markers}))}catch{}}const m2=5e3,Hy=6e4;function qy(u,l,i,r=m2){const o=`${l}\0`,f=[];for(const[h,m]of Object.entries(u.directories)){if(!h.startsWith(o)||m.status!=="loaded")continue;const g=h.slice(o.length);if(m.lastRead===void 0){f.push(g);continue}m.lastRead>i+Hy||i-m.lastRead>=r&&f.push(g)}return f}function Iy(){return{directories:{},files:{},expanded:{},openFile:{},showHidden:{},wrapLines:{}}}function Fu(u,l){return`${u}\0${l}`}function Gy(u){const l=u.indexOf("\0");return{sessionId:u.slice(0,l),path:u.slice(l+1)}}function si(u,l,i){return u.directories[Fu(l,i)]??{status:"unloaded"}}function kf(u,l,i){return u.files[Fu(l,i)]??{status:"unloaded"}}function Yy(u,l,i){return u.expanded[Fu(l,i)]===!0}function Sr(u,l){return u.showHidden[l]===!0}function Vy(u,l){return u.wrapLines[l]!==!1}function Xy(u,l){const i=u.openFile[l];if(i!==void 0)return{path:i,state:kf(u,l,i)}}function Zy(u){return u.kind==="directory"?!0:u.kind==="symlink"&&u.linkTarget==="directory"}function op(u){return u.kind==="symlink"&&u.linkTarget==="missing"}function $y(u,l){return u===""?l:`${u.replace(/\/+$/,"")}/${l}`}function Qy(u,l){switch(l.kind){case"filesLoading":return{...u,directories:{...u.directories,[Fu(l.sessionId,l.path)]:{status:"loading"}}};case"filesLoaded":{const i=Fu(l.sessionId,l.path),r=u.directories[i];return r!==void 0&&r.status==="loaded"&&l.changedAt!==void 0&&r.changedAt===l.changedAt&&r.truncated===l.truncated?u:{...u,directories:{...u.directories,[i]:{status:"loaded",entries:l.entries,truncated:l.truncated,...l.readAt===void 0?{}:{lastRead:l.readAt},...l.changedAt===void 0?{}:{changedAt:l.changedAt}}}}}case"filesFailed":return{...u,directories:{...u.directories,[Fu(l.sessionId,l.path)]:{status:"error",reason:l.reason,...l.code===void 0?{}:{code:l.code},message:l.message}}};case"fileLoading":return{...u,files:{...u.files,[Fu(l.sessionId,l.path)]:{status:"loading"}}};case"fileLoaded":return{...u,files:{...u.files,[Fu(l.sessionId,l.path)]:{status:"loaded",content:l.content,bytes:l.bytes}}};case"fileFailed":return{...u,files:{...u.files,[Fu(l.sessionId,l.path)]:{status:"error",reason:l.reason,...l.code===void 0?{}:{code:l.code},message:l.message}}};case"toggleExpanded":case"setExpanded":{const i=Fu(l.sessionId,l.path),r=l.kind==="toggleExpanded"?u.expanded[i]!==!0:l.expanded;return{...u,expanded:{...u.expanded,[i]:r}}}case"openFile":return{...u,openFile:{...u.openFile,[l.sessionId]:l.path}};case"closeFile":return{...u,openFile:{...u.openFile,[l.sessionId]:void 0}};case"toggleHidden":return{...u,showHidden:{...u.showHidden,[l.sessionId]:u.showHidden[l.sessionId]!==!0}};case"toggleWrap":return{...u,wrapLines:{...u.wrapLines,[l.sessionId]:u.wrapLines[l.sessionId]===!1}};case"invalidateDirectories":{if(l.paths.length===0)return u;const i={...u.directories};let r=!1;for(const o of l.paths){const f=Fu(l.sessionId,o),h=i[f];h===void 0||h.status!=="loaded"||(i[f]={status:"unloaded"},r=!0)}return r?{...u,directories:i}:u}case"invalidateFile":{const i=Fu(l.sessionId,l.path);if(u.files[i]===void 0)return u;const r={...u.files};return delete r[i],{...u,files:r}}case"forgetSession":{const i=`${l.sessionId}\0`,r=v=>Object.fromEntries(Object.entries(v).filter(([x])=>!x.startsWith(i))),{[l.sessionId]:o,...f}=u.openFile,{[l.sessionId]:h,...m}=u.showHidden,{[l.sessionId]:g,...y}=u.wrapLines;return{directories:r(u.directories),files:r(u.files),expanded:r(u.expanded),openFile:f,showHidden:m,wrapLines:y}}}}function fp(u){let l;for(const i of u)i.mtimeMs!==void 0&&(l===void 0||i.mtimeMs>l)&&(l=i.mtimeMs);return l}const Ky=["image/png","image/jpeg","image/gif","image/webp"];function Jy(u){if(u.length===0)return 0;const l=u.endsWith("==")?2:u.endsWith("=")?1:0;return Math.floor(u.length*3/4)-l}function gs(){return{messages:[],tools:[],notices:[]}}function Py(u){if(typeof u=="string")return u.length>0?[{kind:"text",text:u,complete:!0}]:[];if(!Array.isArray(u))return[];const l=[];for(const i of u){if(typeof i!="object"||i===null)continue;const r=i;if(r.type==="text"&&typeof r.text=="string")l.push({kind:"text",text:r.text,complete:!0});else if(r.type==="thinking"&&typeof r.thinking=="string")l.push({kind:"thinking",text:r.thinking,complete:!0});else if(r.type==="image")l.push(p2(r,l.length));else if(r.type==="toolCall"||r.type==="tool_use"||r.type==="tool_call"){const o=r.arguments??r.input;l.push({kind:"toolcall",contentIndex:l.length,...r.id!==void 0?{id:r.id}:{},...r.name!==void 0?{name:r.name}:{},argsText:"",...o!==void 0?{args:o}:{},complete:!0})}}return l}function p2(u,l){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":Ky.includes(f)?void 0:"unsupported-type";return{kind:"image",contentIndex:l,type:o,base64:r,...h!==void 0?{refused:h}:{}}}function Wy(u,l,i){return`${u}\0${l}\0${i}`}function dp(u){if(!Array.isArray(u))return[];const l=[];for(const i of u){if(typeof i!="object"||i===null)continue;const r=i;r.type==="image"&&l.push(p2(r,l.length))}return l}function uf(u,l){const i=u.findIndex(r=>r.toolCallId===l.toolCallId);return i===-1?[...u,l]:u.map((r,o)=>o!==i?r:{...r,toolName:r.toolName&&r.toolName!=="tool"?r.toolName:l.toolName,args:r.args??l.args,result:l.result.length>r.result.length?l.result:r.result,...r.images!==void 0&&r.images.length>0?{}:l.images!==void 0&&l.images.length>0?{images:l.images}:{},isError:r.isError||l.isError,running:l.running?!0:l.durationMs!==void 0||l.result.length>0?!1:r.running,durationMs:r.durationMs??l.durationMs,afterMessage:r.afterMessage})}function sa(u,l,i){for(;u.length<=l;)u.push({kind:"text",text:"",complete:!1});const r=u[l];if(r===void 0||r.kind==="text"&&r.text===""&&!r.complete&&i().kind!=="text"){const o=i();return u[l]=o,o}return r}function g2(u){const l=u.messages[u.messages.length-1];return l?.role==="assistant"?l:void 0}function b2(u,l){const i=String(l.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(l.reason??"unknown"),startedAt:Date.now()}],r;case"compaction_end":{const o=l.result;return r.notices=nf(r.notices,"compaction",f=>({...f,ended:{aborted:l.aborted===!0,willRetry:l.willRetry===!0,...typeof l.errorMessage=="string"?{errorMessage:l.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(l.attempt??1),maxAttempts:Number(l.maxAttempts??1),delayMs:Number(l.delayMs??0),errorMessage:String(l.errorMessage??"")}],r;case"auto_retry_end":return r.notices=nf(r.notices,"retry",o=>({...o,ended:{success:l.success===!0,...typeof l.finalError=="string"?{finalError:l.finalError}:{}}})),r;case"summarization_retry_scheduled":return r.notices=[...r.notices,{kind:"summarization",source:"unknown",attempt:Number(l.attempt??1),maxAttempts:Number(l.maxAttempts??1),...typeof l.errorMessage=="string"?{errorMessage:l.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(l.source??"unknown")})),o||(r.notices=[...r.notices,{kind:"summarization",source:String(l.source??"unknown"),attempt:1,maxAttempts:1,finished:!1}]),r}case"summarization_retry_finished":return r.notices=nf(r.notices,"summarization",o=>({...o,finished:!0})),r;case"message_start":{const f=l.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=l.assistantMessageEvent;if(!o)return r;const f=l.usage;if(f){const h=g2(r);h&&(r.messages[r.messages.length-1]={...h,usage:f})}return e6(r,o)}case"message_end":{const o=l.message,f=o?.role;if(f==="system")return r;if(f==="toolResult"||f==="bashExecution"){const y=o?.toolCallId??`history-${r.tools.length}`,v=dp(o?.content);return r.tools=uf(r.tools,{toolCallId:y,toolName:o?.toolName??(f==="bashExecution"?"bash":"tool"),args:o?.command!==void 0?{command:o.command}:void 0,result:Ar(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=Py(o?.content),m=o?t6(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:u6(f),blocks:h,complete:!0,streaming:!1}),r}case"tool_execution_start":{const o=String(l.toolCallId??"");return r.tools=uf(r.tools,{toolCallId:o,toolName:String(l.toolName??""),args:l.args,result:"",isError:!1,running:!0,startedAt:Date.now(),afterMessage:r.messages.length}),r}case"tool_execution_update":{const o=String(l.toolCallId??"");return r.tools=r.tools.map(f=>f.toolCallId===o?{...f,result:Ar(l.partialResult)}:f),r}case"tool_execution_end":{const o=String(l.toolCallId??""),f=dp(l.result);let h=!1;return r.tools=r.tools.map(m=>m.toolCallId!==o?m:(h=!0,{...m,result:Ar(l.result),...f.length>0?{images:f}:{},isError:l.isError===!0,running:!1,...typeof l.durationMs=="number"?{durationMs:l.durationMs}:{}})),h||(r.tools=uf(r.tools,{toolCallId:o,toolName:String(l.toolName??""),args:l.args,result:Ar(l.result),...f.length>0?{images:f}:{},isError:l.isError===!0,running:!1,...typeof l.durationMs=="number"?{durationMs:l.durationMs}:{},startedAt:Date.now(),afterMessage:r.messages.length})),r}default:return r}}function e6(u,l){const i=String(l.type??""),r=typeof l.contentIndex=="number"?l.contentIndex:0,o=g2(u);if(!o)return u;const f=[...u.messages],h=[...o.blocks],m=g=>{f[f.length-1]=g};switch(i){case"text_start":sa(h,r,()=>({kind:"text",text:"",complete:!1}));break;case"text_delta":{const g=sa(h,r,()=>({kind:"text",text:"",complete:!1}));g.kind==="text"&&(h[r]={...g,text:g.text+String(l.delta??"")});break}case"text_end":{const g=String(l.content??"");sa(h,r,()=>({kind:"text",text:"",complete:!1})),h[r]={kind:"text",text:g,complete:!0};break}case"thinking_start":sa(h,r,()=>({kind:"thinking",text:"",complete:!1}));break;case"thinking_delta":{const g=sa(h,r,()=>({kind:"thinking",text:"",complete:!1}));g.kind==="thinking"&&(h[r]={...g,text:g.text+String(l.delta??"")});break}case"thinking_end":{h[r]={kind:"thinking",text:String(l.content??""),complete:!0};break}case"toolcall_start":{const g={kind:"toolcall",contentIndex:r,argsText:"",complete:!1,...l.id!==void 0?{id:String(l.id)}:{},...l.toolName!==void 0?{name:String(l.toolName)}:{}};sa(h,r,()=>g),h[r]=g;break}case"toolcall_delta":{const g=h[r];g?.kind==="toolcall"&&(h[r]={...g,argsText:g.argsText+String(l.delta??"")});break}case"toolcall_end":{const g=h[r],y=l.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=sa(h,r,()=>({kind:"text",text:"",complete:!1})),y=String(l.reason??l.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 Ar(u){if(u==null)return"";if(typeof u=="string")return u;if(Array.isArray(u))return u.map(l=>{if(typeof l=="string")return l;if(typeof l=="object"&&l!==null){const i=l;if(typeof i.text=="string")return i.text}return""}).filter(Boolean).join(`
|
|
12
|
+
`);if(typeof u=="object"){const l=u;if(typeof l.text=="string")return l.text;if(typeof l.output=="string")return l.output;if(l.content!==void 0)return Ar(l.content);try{return JSON.stringify(u,null,2)}catch{return String(u)}}return String(u)}function t6(u){const l=u.stopReason;if(l!=="error"&&l!=="aborted")return;const i=u.errorMessage?.trim();return`⚠ ${l==="aborted"?"This response was interrupted.":"This response did not complete."}${i?` ${i}`:""}`}function u6(u){switch(u){case"user":return"user";case"system":return"system";case"toolResult":case"bashExecution":return"tool";default:return"assistant"}}function n6(u){let l=gs();for(const i of u)typeof i!="object"||i===null||(l=b2(l,{type:"message_end",message:i}));return l6(l)}function l6(u){const l=new Map;if(u.messages.forEach((f,h)=>{for(const m of f.blocks)m.kind!=="toolcall"||m.id===void 0||l.set(m.id,{name:m.name,args:m.args,index:h})}),l.size===0)return u;const i=new Set(u.tools.map(f=>f.toolCallId)),r=u.tools.map(f=>{const h=l.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 l)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 a6(u,l=5){const i=u.length;if(i===0)return[];const r=u.slice(Math.max(0,i-l));return[...u.filter(f=>f.running&&!r.includes(f)),...r]}function i6(u){const l=u.args;if(l==null)return"";if(typeof l=="string")return l;if(typeof l=="object"){const i=l;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(l)}function nf(u,l,i){for(let r=u.length-1;r>=0;r-=1){const o=u[r];if(o.kind!==l||("ended"in o?o.ended!==void 0:o.finished===!0))continue;const h=[...u];return h[r]=i(o),h}return u}function r6(u){return u.kind==="summarization"?!u.finished:u.ended===void 0}const hp="pi-central.roster",Bf=200;function bs(u){return typeof u!="string"||u.length===0||u.length>4096||u.includes("\0")?!1:u.startsWith("/")}function mp(u,l){if(typeof u!="string")return;const i=u.trim();if(i.length!==0)return i.length>l?i.slice(0,l):i}function c6(u){const l={};return u.sessionId!==void 0&&(l.sessionId=u.sessionId),u.cwd!==void 0&&(l.cwd=u.cwd),u.name!==void 0&&(l.name=u.name),u.scratch!==void 0&&(l.scratch=u.scratch),l}function s6(u){if(u===null||u==="")return[];let l;try{l=JSON.parse(u)}catch{return[]}const i=Array.isArray(l)?l:typeof l=="object"&&l!==null&&Array.isArray(l.entries)?l.entries:[],r=new Set,o=[];for(const f of i){if(o.length>=Bf)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=mp(h.sessionId,128);y!==void 0&&(g.sessionId=y),bs(h.cwd)&&(g.cwd=h.cwd);const v=mp(h.name,200);v!==void 0&&(g.name=v),typeof h.scratch=="boolean"&&(g.scratch=h.scratch),o.push(g)}return o}function o6(u){return JSON.stringify(u.slice(0,Bf))}function f6(u,l){if(!bs(l.path))return[...u];const i=u.findIndex(r=>r.path===l.path);if(i>=0){const r=[...u];return r[i]={...u[i],...c6(l)},r}return[l,...u].slice(0,Bf)}function d6(u,l){return u.filter(i=>i.path!==l)}function y2(u){if(!bs(u.sessionFile))return;const l={path:u.sessionFile};return u.sessionId&&(l.sessionId=u.sessionId),u.cwd&&(l.cwd=u.cwd),u.name&&(l.name=u.name),l.scratch=u.scratch,l}function h6(u,l){const i=new Map;for(const f of l)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 l){const h=f.sessionFile;if(h!==void 0&&o.has(h))continue;const m=y2(f)??{path:`live:${f.id}`,name:f.name,cwd:f.cwd};r.push({entry:m,session:f})}return r}function m6(u){return u.session===void 0?"stopped":u.session.state}function p6(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 g6(u){return["needs","failed","running","idle","stopped"].map(i=>({group:i,rows:u.filter(r=>p6(r)===i)})).filter(i=>i.rows.length>0)}function b6(u,l){if(u!==void 0)return l.find(i=>i.sessionFile===u.path)}function x2(){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 y6=20;function x6(u,l){if(l.kind==="queueRestored"){const{[l.sessionId]:i,...r}=u.restoredQueue;return{...u,restoredQueue:r}}if(l.kind==="expectNewSession")return u.focusNextNewSession?u:{...u,focusNextNewSession:!0};if(l.kind==="dismissError")return u.errors.length===0?u:{...u,errors:u.errors.slice(1)};if(l.kind==="loadRoster")return{...u,roster:l.entries};if(l.kind==="remember")return{...u,roster:f6(u.roster,l.entry)};if(l.kind==="forget")return{...u,roster:d6(u.roster,l.path)};if(l.kind==="queuePrompt")return{...u,pendingPrompt:{path:l.path,message:l.message,...l.behavior?{behavior:l.behavior}:{}}};if(l.kind==="clearPendingPrompt")return u.pendingPrompt===void 0?u:{...u,pendingPrompt:void 0};if(l.kind==="focusRow"){const i=u.live.some(o=>o.id===l.key),r=u.roster.some(o=>o.path===l.key);return!i&&!r||u.focusedId===l.key?u:{...u,focusedId:l.key}}return v6(u,l)}function v6(u,l){switch(l.kind){case"snapshot":{const r=u.focusedId&&l.live.some(o=>o.id===u.focusedId)?u.focusedId:l.live[0]?.id;return{...u,live:l.live,history:l.history,historyTotal:l.historyTotal,home:l.home,installationRoot:l.installationRoot,install:l.install,focusedId:r,ready:!0}}case"session":{const i=u.live.findIndex(g=>g.id===l.session.id),r=i===-1?[...u.live,l.session]:u.live.map(g=>g.id===l.session.id?l.session:g),o=i===-1,f=u.focusNextNewSession&&o?l.session.id:u.focusedId??l.session.id,h=l.session.sessionFile,m=u.history.map(g=>g.path===h?{...g,...l.session.name?{name:l.session.name}:{}}:g);return{...u,live:r,history:m,focusedId:f,focusNextNewSession:o?!1:u.focusNextNewSession}}case"record":{const i=u.transcripts[l.sessionId]??gs();return{...u,transcripts:{...u.transcripts,[l.sessionId]:b2(i,l.record)}}}case"transcript":{const{[l.sessionId]:i,...r}=u.transcriptErrors;return{...u,transcripts:{...u.transcripts,[l.sessionId]:n6(l.messages)},transcriptErrors:r}}case"transcriptError":return{...u,transcriptErrors:{...u.transcriptErrors,[l.sessionId]:l.message}};case"models":{const{[l.sessionId]:i,...r}=u.modelErrors;return{...u,models:{...u.models,[l.sessionId]:l.models},modelErrors:r}}case"modelsError":return{...u,modelErrors:{...u.modelErrors,[l.sessionId]:l.message}};case"thinkingLevels":{const{[l.sessionId]:i,...r}=u.thinkingLevelErrors;return{...u,thinkingLevels:{...u.thinkingLevels,[l.sessionId]:l.levels},thinkingLevelErrors:r}}case"thinkingLevelsError":return{...u,thinkingLevelErrors:{...u.thinkingLevelErrors,[l.sessionId]:l.message}};case"queue":return{...u,queues:{...u.queues,[l.sessionId]:{steering:l.steering,followUp:l.followUp}}};case"queueCleared":{const i=[...l.steering,...l.followUp];return{...u,queues:{...u.queues,[l.sessionId]:{steering:[],followUp:[]}},restoredQueue:{...u.restoredQueue,[l.sessionId]:i}}}case"history":return{...u,history:l.history,historyTotal:l.total,ready:!0};case"files":case"file":case"fileError":return u;case"error":return{...u,focusNextNewSession:!1,errors:[l.message,...u.errors].slice(0,y6)}}}function _6(u){const l=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(l).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 E6(u){return u.live.some(l=>l.mode==="direct")}function S6(u){return u.live.find(l=>l.id===u.focusedId)}function A6(u,l){return l?u.transcripts[l]??gs():gs()}function T6(u){return u.live.reduce((l,i)=>l+i.dialogs.length,0)}function C6(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 D6(u,l){if(!l)return{steering:[],followUp:[],total:0,textsKnown:!0};const i=u.queues[l.id],r=i?.steering??[],o=i?.followUp??[],f=i!==void 0&&r.length+o.length>=l.pending;return{steering:r,followUp:o,total:l.pending,textsKnown:f}}function N6(u,l,i=200){const r=l.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 v2(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 k6(u){const l=[];for(const i of u){const r=l.at(-1);r&&r.provider===i.provider?r.models.push(i):l.push({provider:i.provider,models:[i]})}return l}function _2(u,l){return u.model===l.id&&(u.provider===void 0||u.provider===l.provider)}function E2(u){return u===null||!Number.isFinite(u)?"—":u===0?"$0.00":u<1?`$${u.toFixed(4)}`:`$${u.toFixed(2)}`}function wf(u){return u===null||!Number.isFinite(u)?"—":u<1e3?`${u}`:u<1e6?`${(u/1e3).toFixed(1)}k`:`${(u/1e6).toFixed(1)}M`}function jf(u){if(u===null||!Number.isFinite(u))return"ctx —";const l=Math.round(u);return l>=80?`ctx ${l}% full`:`ctx ${l}%`}function w6(u,l=Date.now()){const i=Math.max(0,Math.floor((l-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 S2(u,l){if(u.length<=l)return u;const i=l-1,r=Math.ceil(i*.55),o=i-r;return`${u.slice(0,r)}…${u.slice(u.length-o)}`}function hi(u,l=34,i){let r=u;return i&&i.length>1&&r.startsWith(i)&&(r=`~${r.slice(i.length)}`),S2(r,l)}function A2(u,l,i){const r=u?.trim(),o=r===void 0||r.length===0||/^(undefined|null)$/i.test(r)||/^s\d+$/.test(r);return l?o?"Scratch session":r:o?i:r}function vs(u){return A2(u.name,u.scratch,u.id)}function T2(u,l){return u.scratch?`scratch · ${u.id}`:hi(u.cwd,34,l)}function j6(u,l,i=70){return u.scratch?`${T2(u,l)} · ${hi(u.cwd,i,l)}`:hi(u.cwd,i,l)}async function O6(u){try{return await navigator.clipboard.writeText(u),!0}catch{return!1}}const R6=[{key:"needs",label:"Needs you"},{key:"failed",label:"Failed"},{key:"running",label:"Running"},{key:"idle",label:"Idle"},{key:"stopped",label:"Stopped"}];function z6({rows:u,focusedId:l,onFocusRow:i,onForgetRow:r,onRetryRow:o,retryAvailable:f,onStartSession:h,onOpenDirectory:m,home:g,historyTotal:y,openAsDrawer:v=!1,onCloseDrawer:x}){const[k,R]=N.useState(""),T=N.useMemo(()=>{const Q=k.trim().toLowerCase();return Q.length===0?u:u.filter(J=>{const ee=C2(J).toLowerCase(),ue=(J.entry.cwd??"").toLowerCase(),$=J.session?.id.toLowerCase()??"";return ee.includes(Q)||ue.includes(Q)||$.includes(Q)})},[u,k]),ne=N.useMemo(()=>g6(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:k,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 “",k,"”."]}):ne.map(Q=>d.jsxs("section",{"aria-label":pp(Q.group),children:[d.jsxs("h3",{className:"group-header",children:[d.jsx("span",{children:pp(Q.group)}),d.jsx("span",{className:"count",children:Q.rows.length})]}),Q.rows.map(J=>d.jsx(U6,{row:J,focused:gp(J)===l,onFocus:()=>i(J),onForget:()=>r(J),onRetry:()=>o(J),retryAvailable:f,home:g},gp(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 pp(u){return R6.find(l=>l.key===u)?.label??u}function gp(u){return u.session?.id??u.entry.path}function C2(u){return u.session!==void 0?vs(u.session):A2(u.entry.name,u.entry.scratch===!0,L6(u.entry.path))}function M6(u){return u.split(`
|
|
13
|
+
`)[0]??u}function L6(u){return(u.split("/").filter(i=>i.length>0).pop()??u).replace(/\.jsonl$/,"")}function U6({row:u,focused:l,onFocus:i,onForget:r,onRetry:o,retryAvailable:f,home:h}){const m=u.session,g=m?.dialogs[0]?.message??m?.dialogs[0]?.title,y=m6(u),v=u.entry.cwd===void 0?"directory unknown":hi(u.entry.cwd,34,h);return d.jsxs("div",{className:`rail-row state-${y}${l?" is-focused":""}`,children:[d.jsxs("button",{type:"button",className:"rail-row-main","aria-current":l?"true":void 0,onClick:i,children:[d.jsxs("span",{className:"r1",children:[d.jsx("span",{className:"name",children:C2(u)}),m?.scratch&&d.jsx("span",{className:"chip chip-scratch",children:"scratch"}),d.jsx("span",{className:`chip chip-${y}`,children:m===void 0?"stopped":v2(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:T2(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:jf(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: ",M6(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 F6({following:u,onToggle:l}){return d.jsxs("button",{type:"button",className:"follow-toggle","aria-pressed":u,onClick:l,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 Dr=260,_s=120,B6=.7;function Hf(u){return!Number.isFinite(u)||u<=0?Dr:Math.max(_s,Math.round(u*B6))}function oi(u,l){if(!Number.isFinite(u))return Dr;const i=Hf(l);return Math.round(Math.min(i,Math.max(_s,u)))}function H6(u,l,i){return oi(u-l,i)}function q6(u,l,i){switch(u){case"ArrowUp":return oi(l+24,i);case"ArrowDown":return oi(l-24,i);case"Home":return oi(_s,i);case"End":return oi(Hf(i),i)}}const Of="pi-central.trace.order";function D2(u){return u==="newest"?"newest":"oldest"}function I6(u,l){return l==="newest"?[...u].reverse():u}const G6=3,Y6=[".png",".jpg",".jpeg",".gif",".webp"],V6=/[A-Za-z0-9_./@-]+/g;function X6(u){let l=u.replace(/^@+/,"");for(;;){const i=l.replace(/[),.;:!?'"\]]+$/,"");if(i===l)break;l=i}return l.replace(/^['"[(]+/,"")}function Z6(u){if(u.length===0||u.length>200)return!1;const l=u.toLowerCase();return!(!Y6.some(i=>l.endsWith(i))||/^[a-z][a-z0-9+.-]*:/i.test(l)||l.startsWith("/")||l.startsWith("~")||l.split("/").includes(".."))}function $6(u){if(u.length===0)return[];if(u.includes("\0"))return[];const l=[];for(const i of u.matchAll(V6)){const r=X6(i[0]);if(Z6(r)&&!l.includes(r)&&(l.push(r),l.length>=G6))break}return l}function Q6(u){return u.kind==="text"&&(u.text??"").trim().length>0}function K6(u){return u.kind==="image"}function J6(u,l){return u.text.trim().length>0?!0:!u.complete&&l.streaming}function P6(u){const l=new Map;for(const i of u){const r=l.get(i.afterMessage);r===void 0?l.set(i.afterMessage,[i]):r.push(i)}return l}function W6(u){const l=[],i=P6(u.tools);let r=[];const o=()=>{r.length!==0&&(l.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;l.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(!J6(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(K6(v)){r.length>0&&(y(),o()),g.push(x);return}Q6(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(),l}function ex(u,l){if(u.every(o=>o.kind!=="tool"))return[];const i=new Map(l.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 N2(u,l){return l.map(i=>u.blocks[i]).map(i=>i?.kind==="text"?i.text:"").filter(i=>i.length>0)}function tx(u,l){const i=[];for(const r of l){const o=u.blocks[r];o?.kind==="image"&&i.push({index:r,block:o})}return i}function k2(u,l){const i=ex(u,l),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 ux(u){const l=(o,f)=>`${o} ${f}${o===1?"":"s"}`,i=[];u.failed>0&&i.push(`${l(u.failed,"call")} failed`),u.noResult>0&&i.push(`${l(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:`${l(u.tools,"tool call")} recorded`,...r?{detail:r}:{}}:u.thinking>0?{primary:l(u.thinking,"thinking block"),...r?{detail:r}:{}}:{primary:"Activity"}}function bp(u){const l=u.args,i=u.toolName||"tool";if(l==null)return i;const r=typeof l=="object"?l:void 0;if(r===void 0){const o=String(l).replace(/\s+/g," ").trim();return o.length>0?`${i} ${yp(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} ${nx(f)}`:`${i} ${yp(w2(f),52)}`}return i}function nx(u){let l=w2(u);for(let h=0;h<4;h+=1){const m=/^\s*cd\s+(?:"[^"]*"|'[^']*'|[^&;]+?)\s*(?:&&|;)\s*(.+)$/.exec(l);if(m===null)break;l=m[1].trim()}const i=70;if(l.length<=i)return l;const r=i-1,o=Math.ceil(r*.55),f=r-o;return`${l.slice(0,o).trimEnd()}…${l.slice(l.length-f).trimStart()}`}function lx(u,l=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<=l)return h;const m=l-1,g=Math.ceil(m*.45),y=m-g;return`${h.slice(0,g).trimEnd()}…${h.slice(h.length-y).trimStart()}`}function w2(u){return u.split(`
|
|
16
|
+
`)[0].replace(/\s+/g," ").trim()}function yp(u,l){if(u.length<=l)return u;const i=u.slice(0,l),r=i.lastIndexOf(" ");return`${(r>l*.6?i.slice(0,r):i).trimEnd()}…`}function ax(u,l,i){if(i)return!0;const r=k2(u,l);return r.failed>0||r.noResult>0||j2(r)}function j2(u){return u.running.length>0||u.liveThinking}const ix="modulepreload",rx=function(u){return"/"+u},xp={},ps=function(l,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=rx(y),y in xp)return;xp[y]=!0;const v=y.endsWith(".css"),x=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${x}`))return;const k=document.createElement("link");if(k.rel=v?"stylesheet":ix,v||(k.as="script"),k.crossOrigin="",k.href=y,m&&k.setAttribute("nonce",m),document.head.appendChild(k),v)return new Promise((R,T)=>{k.addEventListener("load",R),k.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 l().catch(f)})},cx="github-dark-default";let as,is;async function O2(){return as||(is||(is=ps(()=>import("./grammar-map-C3CccWB0.js"),[]).then(u=>(as=u.grammars,as)).catch(()=>(is=void 0,{}))),is)}let rs,cs;const sx=new Set,lf=new Map;function R2(u){return u.trim().toLowerCase()}async function z2(u){if(u.length===0)return;const l=await O2(),i=u.replace(/[^a-z0-9]/g,"");return[`../../../node_modules/@shikijs/langs/dist/${u}.mjs`,`../../../node_modules/@shikijs/langs/dist/${i}.mjs`].find(o=>l[o]!==void 0)}async function ox(u){return await z2(R2(u))!==void 0}async function fx(u){const l=lf.get(u);if(l)return l;const i=await z2(u),r=i?(await O2())[i]:void 0;if(!r)return;const o=r().then(f=>f,()=>{lf.delete(u)});return lf.set(u,o),o}async function dx(){return rs||(cs||(cs=(async()=>{try{const[{createHighlighterCore:u},{createJavaScriptRegexEngine:l},i]=await Promise.all([ps(()=>import("./core-CcaQSRDK.js"),[]),ps(()=>import("./engine-javascript-CuxHA8oH.js"),[]),ps(()=>import("./github-dark-default-Cuk6v7N8.js"),[])]);return rs=await u({themes:[i],langs:[],engine:l()}),rs}catch{cs=void 0;return}})()),cs)}function hx(u){return typeof u=="number"&&(u&1)===1}async function mx(u,l){if(u.length===0)return;const i=R2(l);if(!await ox(i))return;const r=await dx();if(r)try{if(!r.getLoadedLanguages().includes(i)){const f=await fx(i);if(!f)return;await r.loadLanguage(f.default),sx.add(i)}const{tokens:o}=r.codeToTokens(u,{lang:i,theme:cx});return{lang:i,lines:o.map(f=>f.map(h=>({text:h.content,...h.color!==void 0?{color:h.color}:{},...hx(h.fontStyle)?{italic:!0}:{}})))}}catch{return}}function px(u){if(!u)return;const l=u.replace(/^#/,"").toLowerCase(),i=l.length===3?l.split("").map(r=>r+r).join(""):l;return/^[0-9a-f]{6}$/.test(i)?`tk-${i}`:void 0}function gx(u){return N.createElement("pre",{className:`shiki shiki-${u.lang}`},N.createElement("code",null,u.lines.map((l,i)=>N.createElement("span",{className:"line",key:i},l.length===0?`
|
|
17
|
+
`:[...l.map((r,o)=>N.createElement("span",{key:o,className:[px(r.color),r.italic?"tk-i":void 0].filter(Boolean).join(" ")||void 0},r.text)),`
|
|
18
|
+
`]))))}const bx=/^(`{3,}|~{3,})\s*([^`\s]*)\s*$/;function yx(u){if(!u.includes("```")&&!u.includes("~~~"))return[{kind:"prose",text:u}];const l=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<l.length;f+=1){const h=l[f]??"",m=bx.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<l.length;x+=1){const R=(l[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:l.slice(f+1,v).join(`
|
|
21
|
+
`)}),f=v}return o(),i.length>0?i:[{kind:"prose",text:u}]}function xx(u){const l=new Set;for(const i of u)i.kind==="code"&&i.lang.length>0&&l.add(i.lang);return[...l].sort()}const vp={};function vx(u){let l=vp[u];if(l)return l;l=vp[u]=[];for(let i=0;i<128;i++){const r=String.fromCharCode(i);l.push(r)}for(let i=0;i<u.length;i++){const r=u.charCodeAt(i);l[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return l}function mi(u,l){typeof l!="string"&&(l=mi.defaultChars);const i=vx(l);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 _p={};function _x(u){let l=_p[u];if(l)return l;l=_p[u]=[];for(let i=0;i<128;i++){const r=String.fromCharCode(i);/^[0-9a-z]$/i.test(r)?l.push(r):l.push("%"+("0"+i.toString(16).toUpperCase()).slice(-2))}for(let i=0;i<u.length;i++)l[u.charCodeAt(i)]=u[i];return l}function zr(u,l,i){typeof l!="string"&&(i=l,l=zr.defaultChars),typeof i>"u"&&(i=!0);const r=_x(l);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}zr.defaultChars=";/?:@&=+$,-_.!~*'()#";zr.componentChars="-_.!~*'()";function qf(u){let l="";return l+=u.protocol||"",l+=u.slashes?"//":"",l+=u.auth?u.auth+"@":"",u.hostname&&u.hostname.indexOf(":")!==-1?l+="["+u.hostname+"]":l+=u.hostname||"",l+=u.port?":"+u.port:"",l+=u.pathname||"",l+=u.search||"",l+=u.hash||"",l}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 Ex=/^([a-z0-9.+-]+:)/i,Sx=/:[0-9]*$/,Ax=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Tx=["<",">",'"',"`"," ","\r",`
|
|
22
|
+
`," "],Cx=["{","}","|","\\","^","`"].concat(Tx),Dx=["'"].concat(Cx),Ep=["%","/","?",";","#"].concat(Dx),Sp=["/","?","#"],Nx=255,Ap=/^[+a-z0-9A-Z_-]{0,63}$/,kx=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Tp={javascript:!0,"javascript:":!0},Cp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function If(u,l){if(u&&u instanceof ys)return u;const i=new ys;return i.parse(u,l),i}ys.prototype.parse=function(u,l){let i,r,o,f=u;if(f=f.trim(),!l&&u.split("#").length===1){const y=Ax.exec(f);if(y)return this.pathname=y[1],y[2]&&(this.search=y[2]),this}let h=Ex.exec(f);if(h&&(h=h[0],i=h.toLowerCase(),this.protocol=h,f=f.substr(h.length)),(l||h||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=f.substr(0,2)==="//",o&&!(h&&Tp[h])&&(f=f.substr(2),this.slashes=!0)),!Tp[h]&&(o||h&&!Cp[h])){let y=-1;for(let T=0;T<Sp.length;T++)r=f.indexOf(Sp[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<Ep.length;T++)r=f.indexOf(Ep[T]),r!==-1&&(y===-1||r<y)&&(y=r);y===-1&&(y=f.length),f[y-1]===":"&&y--;const k=f.slice(0,y);f=f.slice(y),this.parseHost(k),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(Ap)){let ee="";for(let ue=0,$=J.length;ue<$;ue++)J.charCodeAt(ue)>127?ee+="x":ee+=J[ue];if(!ee.match(Ap)){const ue=T.slice(0,ne),$=T.slice(ne+1),W=J.match(kx);W&&(ue.push(W[1]),$.unshift(W[2])),$.length&&(f=$.join(".")+f),this.hostname=ue.join(".");break}}}}this.hostname.length>Nx&&(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),Cp[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ys.prototype.parseHost=function(u){let l=Sx.exec(u);l&&(l=l[0],l!==":"&&(this.port=l.substr(1)),u=u.substr(0,u.length-l.length)),u&&(this.hostname=u)};const wx=Object.freeze(Object.defineProperty({__proto__:null,decode:mi,encode:zr,format:qf,parse:If},Symbol.toStringTag,{value:"Module"})),M2=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,L2=/[\0-\x1F\x7F-\x9F]/,jx=/[\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]/,Gf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,U2=/[\$\+<->\^`\|~\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]/,F2=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Ox=Object.freeze(Object.defineProperty({__proto__:null,Any:M2,Cc:L2,Cf:jx,P:Gf,S:U2,Z:F2},Symbol.toStringTag,{value:"Module"})),Rx=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),zx=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(u=>u.charCodeAt(0)));var af;const Mx=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]]),Lx=(af=String.fromCodePoint)!==null&&af!==void 0?af:function(u){let l="";return u>65535&&(u-=65536,l+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),l+=String.fromCharCode(u),l};function Ux(u){var l;return u>=55296&&u<=57343||u>1114111?65533:(l=Mx.get(u))!==null&&l!==void 0?l:u}var Mt;(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"})(Mt||(Mt={}));const Fx=32;var Ll;(function(u){u[u.VALUE_LENGTH=49152]="VALUE_LENGTH",u[u.BRANCH_LENGTH=16256]="BRANCH_LENGTH",u[u.JUMP_TABLE=127]="JUMP_TABLE"})(Ll||(Ll={}));function Rf(u){return u>=Mt.ZERO&&u<=Mt.NINE}function Bx(u){return u>=Mt.UPPER_A&&u<=Mt.UPPER_F||u>=Mt.LOWER_A&&u<=Mt.LOWER_F}function Hx(u){return u>=Mt.UPPER_A&&u<=Mt.UPPER_Z||u>=Mt.LOWER_A&&u<=Mt.LOWER_Z||Rf(u)}function qx(u){return u===Mt.EQUALS||Hx(u)}var zt;(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"})(zt||(zt={}));var Yn;(function(u){u[u.Legacy=0]="Legacy",u[u.Strict=1]="Strict",u[u.Attribute=2]="Attribute"})(Yn||(Yn={}));class Ix{constructor(l,i,r){this.decodeTree=l,this.emitCodePoint=i,this.errors=r,this.state=zt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Yn.Strict}startEntity(l){this.decodeMode=l,this.state=zt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(l,i){switch(this.state){case zt.EntityStart:return l.charCodeAt(i)===Mt.NUM?(this.state=zt.NumericStart,this.consumed+=1,this.stateNumericStart(l,i+1)):(this.state=zt.NamedEntity,this.stateNamedEntity(l,i));case zt.NumericStart:return this.stateNumericStart(l,i);case zt.NumericDecimal:return this.stateNumericDecimal(l,i);case zt.NumericHex:return this.stateNumericHex(l,i);case zt.NamedEntity:return this.stateNamedEntity(l,i)}}stateNumericStart(l,i){return i>=l.length?-1:(l.charCodeAt(i)|Fx)===Mt.LOWER_X?(this.state=zt.NumericHex,this.consumed+=1,this.stateNumericHex(l,i+1)):(this.state=zt.NumericDecimal,this.stateNumericDecimal(l,i))}addToNumericResult(l,i,r,o){if(i!==r){const f=r-i;this.result=this.result*Math.pow(o,f)+parseInt(l.substr(i,f),o),this.consumed+=f}}stateNumericHex(l,i){const r=i;for(;i<l.length;){const o=l.charCodeAt(i);if(Rf(o)||Bx(o))i+=1;else return this.addToNumericResult(l,r,i,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(l,r,i,16),-1}stateNumericDecimal(l,i){const r=i;for(;i<l.length;){const o=l.charCodeAt(i);if(Rf(o))i+=1;else return this.addToNumericResult(l,r,i,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(l,r,i,10),-1}emitNumericEntity(l,i){var r;if(this.consumed<=i)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(l===Mt.SEMI)this.consumed+=1;else if(this.decodeMode===Yn.Strict)return 0;return this.emitCodePoint(Ux(this.result),this.consumed),this.errors&&(l!==Mt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(l,i){const{decodeTree:r}=this;let o=r[this.treeIndex],f=(o&Ll.VALUE_LENGTH)>>14;for(;i<l.length;i++,this.excess++){const h=l.charCodeAt(i);if(this.treeIndex=Gx(r,o,this.treeIndex+Math.max(1,f),h),this.treeIndex<0)return this.result===0||this.decodeMode===Yn.Attribute&&(f===0||qx(h))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],f=(o&Ll.VALUE_LENGTH)>>14,f!==0){if(h===Mt.SEMI)return this.emitNamedEntityData(this.treeIndex,f,this.consumed+this.excess);this.decodeMode!==Yn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var l;const{result:i,decodeTree:r}=this,o=(r[i]&Ll.VALUE_LENGTH)>>14;return this.emitNamedEntityData(i,o,this.consumed),(l=this.errors)===null||l===void 0||l.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(l,i,r){const{decodeTree:o}=this;return this.emitCodePoint(i===1?o[l]&~Ll.VALUE_LENGTH:o[l+1],r),i===3&&this.emitCodePoint(o[l+2],r),r}end(){var l;switch(this.state){case zt.NamedEntity:return this.result!==0&&(this.decodeMode!==Yn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case zt.NumericDecimal:return this.emitNumericEntity(0,2);case zt.NumericHex:return this.emitNumericEntity(0,3);case zt.NumericStart:return(l=this.errors)===null||l===void 0||l.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case zt.EntityStart:return 0}}}function B2(u){let l="";const i=new Ix(u,r=>l+=Lx(r));return function(o,f){let h=0,m=0;for(;(m=o.indexOf("&",m))>=0;){l+=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=l+o.slice(h);return l="",g}}function Gx(u,l,i,r){const o=(l&Ll.BRANCH_LENGTH)>>7,f=l&Ll.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 H2=B2(Rx);B2(zx);function Yx(u,l=Yn.Legacy){return H2(u,l)}function Vx(u){return H2(u,Yn.Strict)}function Xx(u){return Object.prototype.toString.call(u)}function Yf(u){return Xx(u)==="[object String]"}const Zx=Object.prototype.hasOwnProperty;function $x(u,l){return Zx.call(u,l)}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 Qx(u,l,i){return[].concat(u.slice(0,l),i,u.slice(l+1))}function Vf(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 Nr(u){if(u>65535){u-=65536;const l=55296+(u>>10),i=56320+(u&1023);return String.fromCharCode(l,i)}return String.fromCharCode(u)}const q2=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Kx=/&([a-z#][a-z0-9]{1,31});/gi,Jx=new RegExp(q2.source+"|"+Kx.source,"gi"),Px=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Wx(u,l){if(l.charCodeAt(0)===35&&Px.test(l)){const r=l[1].toLowerCase()==="x"?parseInt(l.slice(2),16):parseInt(l.slice(1),10);return Vf(r)?Nr(r):u}const i=Yx(u);return i!==u?i:u}function ev(u){return u.indexOf("\\")<0?u:u.replace(q2,"$1")}function pi(u){return u.indexOf("\\")<0&&u.indexOf("&")<0?u:u.replace(Jx,function(l,i,r){return i||Wx(l,r)})}const tv=/[&<>"]/,uv=/[&<>"]/g,nv={"&":"&","<":"<",">":">",'"':"""};function lv(u){return nv[u]}function Ul(u){return tv.test(u)?u.replace(uv,lv):u}const av=/[.?*+^$[\]\\(){}|-]/g;function iv(u){return u.replace(av,"\\$&")}function at(u){switch(u){case 9:case 32:return!0}return!1}function kr(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 I2(u){return Gf.test(u)||U2.test(u)}function wr(u){return I2(Nr(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 Dp(u){return u===32||u===9||u===10||u===13}function As(u){let l=0;for(;l<u.length&&Dp(u.charCodeAt(l));l++);let i=u.length-1;for(;i>=l&&Dp(u.charCodeAt(i));i--);return u.slice(l,i+1)}const rv={mdurl:wx,ucmicro:Ox},cv=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Qx,asciiTrim:As,assign:Es,escapeHtml:Ul,escapeRE:iv,fromCodePoint:Nr,has:$x,isMdAsciiPunct:jr,isPunctChar:I2,isPunctCharCode:wr,isSpace:at,isString:Yf,isValidEntityCode:Vf,isWhiteSpace:kr,lib:rv,normalizeReference:Ss,unescapeAll:pi,unescapeMd:ev},Symbol.toStringTag,{value:"Module"}));function sv(u,l,i){let r,o,f,h;const m=u.posMax,g=u.pos;for(u.pos=l+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 ov(u,l,i){let r,o=l;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(l+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 l===o||h!==0||(f.str=pi(u.slice(l,o)),f.pos=o,f.ok=!0),f}function fv(u,l,i,r){let o,f=l;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;l++,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(l,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(l,f)),h}const dv=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:ov,parseLinkLabel:sv,parseLinkTitle:fv},Symbol.toStringTag,{value:"Module"})),mn={};mn.code_inline=function(u,l,i,r,o){const f=u[l];return"<code"+o.renderAttrs(f)+">"+Ul(f.content)+"</code>"};mn.code_block=function(u,l,i,r,o){const f=u[l];return"<pre"+o.renderAttrs(f)+"><code>"+Ul(u[l].content)+`</code></pre>
|
|
23
|
+
`};mn.fence=function(u,l,i,r,o){const f=u[l],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)||Ul(f.content):y=Ul(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 k={attrs:x};return`<pre><code${o.renderAttrs(k)}>${y}</code></pre>
|
|
25
|
+
`}return`<pre><code${o.renderAttrs(f)}>${y}</code></pre>
|
|
26
|
+
`};mn.image=function(u,l,i,r,o){const f=u[l];return f.attrs[f.attrIndex("alt")][1]=o.renderInlineAsText(f.children,i,r),o.renderToken(u,l,i)};mn.hardbreak=function(u,l,i){return i.xhtmlOut?`<br />
|
|
27
|
+
`:`<br>
|
|
28
|
+
`};mn.softbreak=function(u,l,i){return i.breaks?i.xhtmlOut?`<br />
|
|
29
|
+
`:`<br>
|
|
30
|
+
`:`
|
|
31
|
+
`};mn.text=function(u,l){return Ul(u[l].content)};mn.html_block=function(u,l){return u[l].content};mn.html_inline=function(u,l){return u[l].content};function gi(){this.rules=Es({},mn)}gi.prototype.renderAttrs=function(l){let i,r,o;if(!l.attrs)return"";for(o="",i=0,r=l.attrs.length;i<r;i++)o+=" "+Ul(l.attrs[i][0])+'="'+Ul(l.attrs[i][1])+'"';return o};gi.prototype.renderToken=function(l,i,r){const o=l[i];let f="";if(o.hidden)return"";o.block&&o.nesting!==-1&&i&&l[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<l.length)){const m=l[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,l,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,l,i,this):r+=this.renderToken(u,f,l)}return r};gi.prototype.renderInlineAsText=function(u,l,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,l,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,l,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,l,i):typeof o[m]<"u"?r+=o[m](u,f,l,i,this):r+=this.renderToken(u,f,l,i)}return r};function mu(){this.__rules__=[],this.__cache__=null}mu.prototype.__find__=function(u){for(let l=0;l<this.__rules__.length;l++)if(this.__rules__[l].name===u)return l;return-1};mu.prototype.__compile__=function(){const u=this,l=[""];u.__rules__.forEach(function(i){i.enabled&&i.alt.forEach(function(r){l.indexOf(r)<0&&l.push(r)})}),u.__cache__={},l.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))})})};mu.prototype.at=function(u,l,i){const r=this.__find__(u),o=i||{};if(r===-1)throw new Error("Parser rule not found: "+u);this.__rules__[r].fn=l,this.__rules__[r].alt=o.alt||[],this.__cache__=null};mu.prototype.before=function(u,l,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:l,enabled:!0,fn:i,alt:f.alt||[]}),this.__cache__=null};mu.prototype.after=function(u,l,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:l,enabled:!0,fn:i,alt:f.alt||[]}),this.__cache__=null};mu.prototype.push=function(u,l,i){const r=i||{};this.__rules__.push({name:u,enabled:!0,fn:l,alt:r.alt||[]}),this.__cache__=null};mu.prototype.enable=function(u,l){Array.isArray(u)||(u=[u]);const i=[];return u.forEach(function(r){const o=this.__find__(r);if(o<0){if(l)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,i.push(r)},this),this.__cache__=null,i};mu.prototype.enableOnly=function(u,l){Array.isArray(u)||(u=[u]),this.__rules__.forEach(function(i){i.enabled=!1}),this.enable(u,l)};mu.prototype.disable=function(u,l){Array.isArray(u)||(u=[u]);const i=[];return u.forEach(function(r){const o=this.__find__(r);if(o<0){if(l)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,i.push(r)},this),this.__cache__=null,i};mu.prototype.getRules=function(u){return this.__cache__===null&&this.__compile__(),this.__cache__[u]||[]};function Qu(u,l,i){this.type=u,this.tag=l,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(l){if(!this.attrs)return-1;const i=this.attrs;for(let r=0,o=i.length;r<o;r++)if(i[r][0]===l)return r;return-1};Qu.prototype.attrPush=function(l){this.attrs?this.attrs.push(l):this.attrs=[l]};Qu.prototype.attrSet=function(l,i){const r=this.attrIndex(l),o=[l,i];r<0?this.attrPush(o):this.attrs[r]=o};Qu.prototype.attrGet=function(l){const i=this.attrIndex(l);let r=null;return i>=0&&(r=this.attrs[i][1]),r};Qu.prototype.attrJoin=function(l,i){const r=this.attrIndex(l);r<0?this.attrPush([l,i]):this.attrs[r][1]=this.attrs[r][1]+" "+i};function G2(u,l,i){this.src=u,this.env=i,this.tokens=[],this.inlineMode=!1,this.md=l}G2.prototype.Token=Qu;const hv=/\r\n?|\n/g,mv=/\0/g;function pv(u){let l;l=u.src.replace(hv,`
|
|
35
|
+
`),l=l.replace(mv,"�"),u.src=l}function gv(u){let l;u.inlineMode?(l=new u.Token("inline","",0),l.content=u.src,l.map=[0,1],l.children=[],u.tokens.push(l)):u.md.block.parse(u.src,u.md,u.env,u.tokens)}function bv(u){const l=u.tokens;for(let i=0,r=l.length;i<r;i++){const o=l[i];o.type==="inline"&&u.md.inline.parse(o.content,u.md,u.env,o.children)}}function yv(u){return/^<a[>\s]/i.test(u)}function xv(u){return/^<\/a\s*>/i.test(u)}function vv(u){const l=u.tokens;if(u.md.options.linkify)for(let i=0,r=l.length;i<r;i++){if(l[i].type!=="inline"||!u.md.linkify.pretest(l[i].content))continue;const o=l[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"&&(yv(g.content)&&h>0&&h--,xv(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 k=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=k,x.push(ce)}const ue=new u.Token("link_open","a",1);ue.attrs=[["href",Q]],ue.level=k++,ue.markup="linkify",ue.info="auto",x.push(ue);const $=new u.Token("text","",0);$.content=J,$.level=k,x.push($);const W=new u.Token("link_close","a",-1);W.level=--k,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=k,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 k=f[y];if(k?.index===x){for(const R of k.nodes)g[v++]=R;y++}else g[v++]=o[x]}l[i].children=g}}}const Y2=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,_v=/\((c|tm|r)\)/i,Ev=/\((c|tm|r)\)/ig,Sv={c:"©",r:"®",tm:"™"};function Av(u,l){return Sv[l.toLowerCase()]}function Tv(u){let l=0;for(let i=u.length-1;i>=0;i--){const r=u[i];r.type==="text"&&!l&&(r.content=r.content.replace(Ev,Av)),r.type==="link_open"&&r.info==="auto"&&l--,r.type==="link_close"&&r.info==="auto"&&l++}}function Cv(u){let l=0;for(let i=u.length-1;i>=0;i--){const r=u[i];r.type==="text"&&!l&&Y2.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"&&l--,r.type==="link_close"&&r.info==="auto"&&l++}}function Dv(u){let l;if(u.md.options.typographer)for(l=u.tokens.length-1;l>=0;l--)u.tokens[l].type==="inline"&&(_v.test(u.tokens[l].content)&&Tv(u.tokens[l].children),Y2.test(u.tokens[l].content)&&Cv(u.tokens[l].children))}const Nv=/['"]/,Np=/['"]/g,kp="’",kv=1e3;function wp(u,l,i){for(;u.length>i;){const r=u.pop();r.isSingleQuote?l.single=r.prevSameQuoteIdx:l.double=r.prevSameQuoteIdx}}function ss(u,l,i,r){u[l]||(u[l]=[]),u[l].push({pos:i,ch:r})}function wv(u,l){let i="",r=0;l.sort((o,f)=>o.pos-f.pos);for(let o=0;o<l.length;o++){const f=l[o];i+=u.slice(r,f.pos)+f.ch,r=f.pos+1}return i+u.slice(r)}function jv(u,l){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(wp(r,o,i+1),m.type!=="text")continue;const y=m.content;let v=0;const x=y.length;e:for(;v<x;){Np.lastIndex=v;const k=Np.exec(y);if(!k)break;let R=!0,T=!0;v=k.index+1;const ne=k[0]==="'";let Q=32;if(k.index-1>=0)Q=y.charCodeAt(k.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)||wr(Q),ue=jr(J)||wr(J),$=kr(Q),W=kr(J);if(W?R=!1:ue&&($||ee||(R=!1)),$?T=!1:ee&&(W||ue||(T=!1)),J===34&&k[0]==='"'&&Q>=48&&Q<=57&&(T=R=!1),R&&T&&(R=ee,T=ue),!R&&!T){ne&&ss(f,h,k.index,kp);continue}if(T&&(i=ne?o.single:o.double,i>=0&&r[i].level===g)){const ce=r[i];let te,ie;ne?(te=l.md.options.quotes[2],ie=l.md.options.quotes[3]):(te=l.md.options.quotes[0],ie=l.md.options.quotes[1]),ss(f,h,k.index,ie),ss(f,ce.tokenIdx,ce.contentPos,te),wp(r,o,i);continue e}if(R){if(r.length>=kv)return;r.push({tokenIdx:h,contentPos:k.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&&ss(f,h,k.index,kp)}}Object.keys(f).forEach(function(h){u[h].content=wv(u[h].content,f[h])})}function Ov(u){if(u.md.options.typographer)for(let l=u.tokens.length-1;l>=0;l--)u.tokens[l].type!=="inline"||!Nv.test(u.tokens[l].content)||jv(u.tokens[l].children,u)}function Rv(u){let l,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(l=0;l<m;l++)h[l].type==="text_special"&&(h[l].type="text");for(l=i=0;l<m;l++)h[l].type==="text"&&l+1<m&&h[l+1].type==="text"?h[l+1].content=h[l].content+h[l+1].content:(l!==i&&(h[i]=h[l]),i++);l!==i&&(h.length=i)}}const rf=[["normalize",pv],["block",gv],["inline",bv],["linkify",vv],["replacements",Dv],["smartquotes",Ov],["text_join",Rv]];function Xf(){this.ruler=new mu;for(let u=0;u<rf.length;u++)this.ruler.push(rf[u][0],rf[u][1])}Xf.prototype.process=function(u){const l=this.ruler.getRules("");for(let i=0,r=l.length;i<r;i++)l[i](u)};Xf.prototype.State=G2;function pn(u,l,i,r){this.src=u,this.md=l,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(at(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}pn.prototype.push=function(u,l,i){const r=new Qu(u,l,i);return r.block=!0,i<0&&this.level--,r.level=this.level,i>0&&this.level++,this.tokens.push(r),r};pn.prototype.isEmpty=function(l){return this.bMarks[l]+this.tShift[l]>=this.eMarks[l]};pn.prototype.skipEmptyLines=function(l){for(let i=this.lineMax;l<i&&!(this.bMarks[l]+this.tShift[l]<this.eMarks[l]);l++);return l};pn.prototype.skipSpaces=function(l){for(let i=this.src.length;l<i;l++){const r=this.src.charCodeAt(l);if(!at(r))break}return l};pn.prototype.skipSpacesBack=function(l,i){if(l<=i)return l;for(;l>i;)if(!at(this.src.charCodeAt(--l)))return l+1;return l};pn.prototype.skipChars=function(l,i){for(let r=this.src.length;l<r&&this.src.charCodeAt(l)===i;l++);return l};pn.prototype.skipCharsBack=function(l,i,r){if(l<=r)return l;for(;l>r;)if(i!==this.src.charCodeAt(--l))return l+1;return l};pn.prototype.getLines=function(l,i,r,o){if(l>=i)return"";const f=new Array(i-l);for(let h=0,m=l;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 k=this.src.charCodeAt(v);if(at(k))k===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("")};pn.prototype.Token=Qu;const zv=65536;function cf(u,l){const i=u.bMarks[l]+u.tShift[l],r=u.eMarks[l];return u.src.slice(i,r)}function jp(u){const l=[],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):(l.push(m+u.substring(h,r)),m="",h=r+1)),f=o===92,r++,o=u.charCodeAt(r);return l.push(m+u.substring(h)),l}function Mv(u,l,i,r){if(l+2>i)return!1;let o=l+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&&!at(m)||h===45&&at(m))return!1;for(;f<u.eMarks[o];){const $=u.src.charCodeAt(f);if($!==124&&$!==45&&$!==58&&!at($))return!1;f++}let g=cf(u,l+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=cf(u,l).trim(),g.indexOf("|")===-1||u.sCount[l]-u.blkIndent>=4)return!1;y=jp(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 k=u.parentType;u.parentType="table";const R=u.md.block.ruler.getRules("blockquote"),T=u.push("table_open","table",1),ne=[l,0];T.map=ne;const Q=u.push("thead_open","thead",1);Q.map=[l,l+1];const J=u.push("tr_open","tr",1);J.map=[l,l+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=l+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=cf(u,o).trim(),!g)||u.sCount[o]-u.blkIndent>=4||(y=jp(g),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),ue+=x-y.length,ue>zv))break;if(o===l+2){const ce=u.push("tbody_open","tbody",1);ce.map=ee=[l+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=k,u.line=o,!0}function Lv(u,l,i){if(u.sCount[l]-u.blkIndent<4)return!1;let r=l+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(l,o,4+u.blkIndent,!1)+`
|
|
36
|
+
`,f.map=[l,u.line],!0}function Uv(u,l,i,r){let o=u.bMarks[l]+u.tShift[l],f=u.eMarks[l];if(u.sCount[l]-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=l,k=!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)))){k=!0;break}g=u.sCount[l],u.line=x+(k?1:0);const R=u.push("fence","code",0);return R.info=v,R.content=u.getLines(l+1,x,g,!0),R.markup=y,R.map=[l,u.line],!0}function Fv(u,l,i,r){let o=u.bMarks[l]+u.tShift[l],f=u.eMarks[l];const h=u.lineMax;if(u.sCount[l]-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"),k=u.parentType;u.parentType="blockquote";let R=!1,T;for(T=l;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 Ye=u.src.charCodeAt(o);if(at(Ye))Ye===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=[l,0];Q.map=J,u.md.block.tokenize(u,l,T);const ee=u.push("blockquote_close","blockquote",-1);ee.markup=">",u.lineMax=h,u.parentType=k,J[1]=u.line;for(let ue=0;ue<v.length;ue++)u.bMarks[ue+l]=m[ue],u.tShift[ue+l]=v[ue],u.sCount[ue+l]=y[ue],u.bsCount[ue+l]=g[ue];return u.blkIndent=ne,!0}function Bv(u,l,i,r){const o=u.eMarks[l];if(u.sCount[l]-u.blkIndent>=4)return!1;let f=u.bMarks[l]+u.tShift[l];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&&!at(y))return!1;y===h&&m++}if(m<3)return!1;if(r)return!0;u.line=l+1;const g=u.push("hr","hr",0);return g.map=[l,u.line],g.markup=Array(m+1).join(String.fromCharCode(h)),!0}function Op(u,l){const i=u.eMarks[l];let r=u.bMarks[l]+u.tShift[l];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(!at(f))return-1}return r}function Rp(u,l){const i=u.bMarks[l]+u.tShift[l],r=u.eMarks[l];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),!at(f))?-1:o}function Hv(u,l){const i=u.level+2;for(let r=l+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 qv(u,l,i,r){let o,f,h,m,g=l,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,k,R;if((R=Rp(u,g))>=0){if(x=!0,h=u.bMarks[g]+u.tShift[g],k=Number(u.src.slice(h,R-1)),v&&k!==1)return!1}else if((R=Op(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),k!==1&&(m.attrs=[["start",k]])):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 Ye=[g,0];m.map=Ye,x&&(m.info=u.src.slice(h,R-1));const Ve=u.tight,_e=u.tShift[g],Te=u.sCount[g],Ke=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=Ke,u.tShift[g]=_e,u.sCount[g]=Te,u.tight=Ve,m=u.push("list_item_close","li",-1),m.markup=String.fromCharCode(T),g=u.line,Ye[1]=g,g>=i||u.sCount[g]<u.blkIndent||u.sCount[g]-u.blkIndent>=4)break;let Be=!1;for(let ye=0,K=ee.length;ye<K;ye++)if(ee[ye](u,g,i,!0)){Be=!0;break}if(Be)break;if(x){if(R=Rp(u,g),R<0)break;h=u.bMarks[g]+u.tShift[g]}else if(R=Op(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&&Hv(u,ne),!0}const sf=999;function Iv(u){let l=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&&(l--,i++)}return l}function yr(u,l){return Math.min(u.eMarks[l]+1,u.src.length)}function os(u,l){const i=u.lineMax;if(l>=i||u.isEmpty(l))return-1;let r=!1;if(u.sCount[l]-u.blkIndent>3&&(r=!0),u.sCount[l]<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,l,i,!0)){h=!0;break}if(u.parentType=f,h)return-1}return u.bMarks[l]+u.tShift[l]}function Gv(u,l,i,r){const o=u.src;let f=u.bMarks[l]+u.tShift[l],h=l+1;if(u.sCount[l]-u.blkIndent>=4||o.charCodeAt(f)!==91)return!1;let m=yr(u,l),g="",y=-1,v=++f;for(;f<m;){if(g.length+f-v>sf*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=os(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>sf&&Iv(g)>sf))return!1;for(f=y+2;f<m;){const $=o.charCodeAt(f);if($===10){const W=os(u,h);if(W<0)break;f=W,m=yr(u,h++)}else if(at($))f++;else break}const x=u.md.helpers.parseLinkDestination(o,f,m);if(!x.ok)return!1;const k=u.md.normalizeLink(x.str);if(!u.md.validateLink(k))return!1;f=x.pos;const R=f,T=m,ne=h;for(;f<m;){const $=o.charCodeAt(f);if($===10){const W=os(u,h);if(W<0)break;f=W,m=yr(u,h++)}else if(at($))f++;else break}const Q=f;let J=u.md.helpers.parseLinkTitle(o,f,m);for(;J.can_continue;){const $=os(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(!at($))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(!at($))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:k}),u.line=h),!0):!1}const Yv=["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"],Vv="[a-zA-Z_:][a-zA-Z0-9:._-]*",Xv="[^\"'=<>`\\x00-\\x20]+",Zv="'[^']*'",$v='"[^"]*"',Qv="(?:"+Xv+"|"+Zv+"|"+$v+")",Kv="(?:\\s+"+Vv+"(?:\\s*=\\s*"+Qv+")?)",Jv="<[A-Za-z][A-Za-z0-9\\-]*"+Kv+"*\\s*\\/?>",Pv="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",V2=new RegExp("^(?:"+Jv+"|"+Pv+")"),oa=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Yv.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(V2.source+"\\s*$"),/^$/,!1]];function Wv(u,l,i,r){let o=u.bMarks[l]+u.tShift[l],f=u.eMarks[l];if(u.sCount[l]-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<oa.length&&!oa[m][0].test(h);m++);if(m===oa.length)return!1;if(r)return oa[m][2];let g=l+1;const y=oa[m][1].test("");if(!oa[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),oa[m][1].test(h)){h.length!==0&&g++;break}}u.line=g;const v=u.push("html_block","",0);return v.map=[l,g],v.content=u.getLines(l,g,u.blkIndent,!0),!0}function e4(u,l,i,r){let o=u.bMarks[l]+u.tShift[l],f=u.eMarks[l];if(u.sCount[l]-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&&!at(h))return!1;if(r)return!0;f=u.skipSpacesBack(f,o);const g=u.skipCharsBack(f,35,o);g>o&&at(u.src.charCodeAt(g-1))&&(f=g),u.line=l+1;const y=u.push("heading_open","h"+String(m),1);y.markup="########".slice(0,m),y.map=[l,u.line];const v=u.push("inline","",0);v.content=As(u.src.slice(o,f)),v.map=[l,u.line],v.children=[];const x=u.push("heading_close","h"+String(m),-1);return x.markup="########".slice(0,m),!0}function t4(u,l,i){const r=u.md.block.ruler.getRules("paragraph");if(u.sCount[l]-u.blkIndent>=4)return!1;const o=u.parentType;u.parentType="paragraph";let f=0,h,m=l+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 k=!1;for(let R=0,T=r.length;R<T;R++)if(r[R](u,m,i,!0)){k=!0;break}if(k)break}if(!f)return u.parentType=o,!1;const g=As(u.getLines(l,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=[l,u.line];const v=u.push("inline","",0);v.content=g,v.map=[l,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 u4(u,l,i){const r=u.md.block.ruler.getRules("paragraph"),o=u.parentType;let f=l+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(l,f,u.blkIndent,!1));u.line=f;const m=u.push("paragraph_open","p",1);m.map=[l,u.line];const g=u.push("inline","",0);return g.content=h,g.map=[l,u.line],g.children=[],u.push("paragraph_close","p",-1),u.parentType=o,!0}const fs=[["table",Mv,["paragraph","reference"]],["code",Lv],["fence",Uv,["paragraph","reference","blockquote","list"]],["blockquote",Fv,["paragraph","reference","blockquote","list"]],["hr",Bv,["paragraph","reference","blockquote","list"]],["list",qv,["paragraph","reference","blockquote"]],["reference",Gv],["html_block",Wv,["paragraph","reference","blockquote"]],["heading",e4,["paragraph","reference","blockquote"]],["lheading",t4],["paragraph",u4]];function Ts(){this.ruler=new mu;for(let u=0;u<fs.length;u++)this.ruler.push(fs[u][0],fs[u][1],{alt:(fs[u][2]||[]).slice()})}Ts.prototype.tokenize=function(u,l,i){const r=this.ruler.getRules(""),o=r.length,f=u.md.options.maxNesting;let h=l,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,l,i,r){if(!u)return;const o=new this.State(u,l,i,r);this.tokenize(o,o.line,o.lineMax)};Ts.prototype.State=pn;function Mr(u,l,i,r){this.src=u,this.env=i,this.md=l,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}Mr.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};Mr.prototype.push=function(u,l,i){this.pending&&this.pushPending();const r=new Qu(u,l,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};Mr.prototype.scanDelims=function(u,l){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)||wr(o),y=jr(m)||wr(m),v=kr(o),x=kr(m),k=!x&&(!y||v||g),R=!v&&(!g||x||y);return{can_open:k&&(l||!R||g),can_close:R&&(l||!k||y),length:h}};Mr.prototype.Token=Qu;function n4(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 l4(u,l){let i=u.pos;for(;i<u.posMax&&!n4(u.src.charCodeAt(i));)i++;return i===u.pos?!1:(l||(u.pending+=u.src.slice(u.pos,i)),u.pos=i,!0)}function a4(u){return u>=65&&u<=90||u>=97&&u<=122}function i4(u){return u>=65&&u<=90||u>=97&&u<=122||u>=48&&u<=57||u===43||u===45||u===46}function r4(u,l){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&&i4(u.src.charCodeAt(f-1));)f--;if(f===i||!a4(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(!l){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 k=u.push("text","",0);k.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 c4(u,l){let i=u.pos;if(u.src.charCodeAt(i)!==10)return!1;const r=u.pending.length-1,o=u.posMax;if(!l)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&&at(u.src.charCodeAt(i));)i++;return u.pos=i,!0}const Zf=[];for(let u=0;u<256;u++)Zf.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u){Zf[u.charCodeAt(0)]=1});function s4(u,l){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(l||u.push("hardbreak","br",0),i++;i<r&&(o=u.src.charCodeAt(i),!!at(o));)i++;return u.pos=i,!0}if(o===32){if(!l){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(!l){const m=u.push("text_special","",0);o<256&&Zf[o]!==0?m.content=f:m.content=h,m.markup=h,m.info="escape"}return u.pos=i+1,!0}function o4(u,l){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 l||(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(!l){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,l||(u.pending+=h),u.pos+=m,!0}function f4(u,l){const i=u.pos,r=u.src.charCodeAt(i);if(l||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 zp(u,l){let i;const r=[],o=l.length;for(let f=0;f<o;f++){const h=l[f];if(h.marker!==126||h.end===-1)continue;const m=l[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 d4(u){const l=u.tokens_meta,i=u.tokens_meta.length;zp(u,u.delimiters);for(let r=0;r<i;r++)l[r]&&l[r].delimiters&&zp(u,l[r].delimiters)}const X2={tokenize:f4,postProcess:d4};function h4(u,l){const i=u.pos,r=u.src.charCodeAt(i);if(l||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 Mp(u,l){const i=l.length;for(let r=i-1;r>=0;r--){const o=l[r];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const f=l[o.end],h=r>0&&l[r-1].end===o.end+1&&l[r-1].marker===o.marker&&l[r-1].token===o.token-1&&l[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[l[r-1].token].content="",u.tokens[l[o.end+1].token].content="",r--)}}function m4(u){const l=u.tokens_meta,i=u.tokens_meta.length;Mp(u,u.delimiters);for(let r=0;r<i;r++)l[r]&&l[r].delimiters&&Mp(u,l[r].delimiters)}const Z2={tokenize:h4,postProcess:m4};function p4(u,l){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,k=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),!(!at(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),!(!at(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),!(!at(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(k,R)),f=u.env.references[Ss(r)],!f)return u.pos=v,!1;h=f.href,m=f.title}if(!l){u.pos=k,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 g4(u,l){let i,r,o,f,h,m,g,y,v="";const x=u.pos,k=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<k&&u.src.charCodeAt(f)===40){for(f++;f<k&&(i=u.src.charCodeAt(f),!(!at(i)&&i!==10));f++);if(f>=k)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<k&&(i=u.src.charCodeAt(f),!(!at(i)&&i!==10));f++);if(m=u.md.helpers.parseLinkTitle(u.src,f,u.posMax),f<k&&y!==f&&m.ok)for(g=m.str,f=m.pos;f<k&&(i=u.src.charCodeAt(f),!(!at(i)&&i!==10));f++);else g="";if(f>=k||u.src.charCodeAt(f)!==41)return u.pos=x,!1;f++}else{if(typeof u.env.references>"u")return!1;if(f<k&&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(!l){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=k,!0}const b4=/^([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])?)*)$/,y4=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function x4(u,l){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(y4.test(f)){const h=u.md.normalizeLink(f);if(!u.md.validateLink(h))return!1;if(!l){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(b4.test(f)){const h=u.md.normalizeLink("mailto:"+f);if(!u.md.validateLink(h))return!1;if(!l){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 v4(u){return/^<a[>\s]/i.test(u)}function _4(u){return/^<\/a\s*>/i.test(u)}function $2(u){const l=u|32;return l>=97&&l<=122}function E4(u,l){const i=u.src;let r,o;if(i.startsWith("<!--",l)){if(i.startsWith(">",l+4))return l+5;if(i.startsWith("->",l+4))return l+6;r=l+4,o="-->"}else if(i.startsWith("<![CDATA[",l))r=l+9,o="]]>";else if(i.charCodeAt(l+1)===63)r=l+2,o="?>";else if($2(i.charCodeAt(l+2)))r=l+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 S4(u,l){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=E4(u,r);else if(f===47||$2(f)){const h=u.src.slice(r).match(V2);o=h?r+h[0].length:-1}else return!1;if(o<0)return!1;if(!l){const h=u.push("html_inline","",0);h.content=u.src.slice(r,o),v4(h.content)&&u.linkLevel++,_4(h.content)&&u.linkLevel--}return u.pos=o,!0}const A4=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,T4=/^&([a-z][a-z0-9]{1,31});/i;function C4(u,l){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(A4);if(f){if(!l){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=Vf(h)?Nr(h):Nr(65533),m.markup=f[0],m.info="entity"}return u.pos+=f[0].length,!0}}else{const f=u.src.slice(i).match(T4);if(f){const h=Vx(f[0]);if(h!==f[0]){if(!l){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 Lp(u){const l={},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;l.hasOwnProperty(m.marker)||(l[m.marker]=[-1,-1,-1,-1,-1,-1]);const g=l[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 k=!1;if((x.close||m.open)&&(x.length+m.length)%3===0&&(x.length%3!==0||m.length%3!==0)&&(k=!0),!k){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&&(l[m.marker][(m.open?3:0)+(m.length||0)%3]=v)}}function D4(u){const l=u.tokens_meta,i=u.tokens_meta.length;Lp(u.delimiters);for(let r=0;r<i;r++)l[r]&&l[r].delimiters&&Lp(l[r].delimiters)}function N4(u){let l,i,r=0;const o=u.tokens,f=u.tokens.length;for(l=i=0;l<f;l++)o[l].nesting<0&&r--,o[l].level=r,o[l].nesting>0&&r++,o[l].type==="text"&&l+1<f&&o[l+1].type==="text"?o[l+1].content=o[l].content+o[l+1].content:(l!==i&&(o[i]=o[l]),i++);l!==i&&(o.length=i)}const of=[["text",l4],["linkify",r4],["newline",c4],["escape",s4],["backticks",o4],["strikethrough",X2.tokenize],["emphasis",Z2.tokenize],["link",p4],["image",g4],["autolink",x4],["html_inline",S4],["entity",C4]],ff=[["balance_pairs",D4],["strikethrough",X2.postProcess],["emphasis",Z2.postProcess],["fragments_join",N4]];function Lr(){this.ruler=new mu;for(let u=0;u<of.length;u++)this.ruler.push(of[u][0],of[u][1]);this.ruler2=new mu;for(let u=0;u<ff.length;u++)this.ruler2.push(ff[u][0],ff[u][1])}Lr.prototype.skipToken=function(u){const l=u.pos,i=this.ruler.getRules(""),r=i.length,o=u.md.options.maxNesting,f=u.cache;if(typeof f[l]<"u"){u.pos=f[l];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(l>=u.pos)throw new Error("inline rule didn't increment state.pos");break}}else u.pos=u.posMax;h||u.pos++,f[l]=u.pos};Lr.prototype.tokenize=function(u){const l=this.ruler.getRules(""),i=l.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=l[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()};Lr.prototype.parse=function(u,l,i,r){const o=new this.State(u,l,i,r);this.tokenize(o);const f=this.ruler2.getRules(""),h=f.length;for(let m=0;m<h;m++)f[m](o)};Lr.prototype.State=Mr;function k4(u){const l={};u=u||{},l.src_Any=M2.source,l.src_Cc=L2.source,l.src_Z=F2.source,l.src_P=Gf.source,l.src_ZPCc=[l.src_Z,l.src_P,l.src_Cc].join("|"),l.src_ZCc=[l.src_Z,l.src_Cc].join("|");const i="[><|]";return l.src_pseudo_letter=`(?:(?!${i}|${l.src_ZPCc})${l.src_Any})`,l.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]?)",l.src_auth=`(?:(?:(?!${l.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,l.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",l.src_host_terminator=`(?=$|${i}|${l.src_ZPCc})(?!${u["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${l.src_ZPCc}))`,l.src_path=`(?:[/?#](?:(?!${l.src_ZCc}|${i}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${l.src_ZCc}|\\]).)*\\]|\\((?:(?!${l.src_ZCc}|[)]).)*\\)|\\{(?:(?!${l.src_ZCc}|[}]).)*\\}|\\"(?:(?!${l.src_ZCc}|["]).)+\\"|\\'(?:(?!${l.src_ZCc}|[']).)+\\'|\\'(?=${l.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${l.src_ZCc}|[.]|$)|`+(u["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${l.src_ZCc}|$)|;(?!${l.src_ZCc}|$)|\\!+(?!${l.src_ZCc}|[!]|$)|\\?(?!${l.src_ZCc}|[?]|$))+|\\/)?`,l.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',l.src_xn="xn--[a-z0-9\\-]{1,59}",l.src_domain_root="(?:"+l.src_xn+`|${l.src_pseudo_letter}{1,63})`,l.src_domain="(?:"+l.src_xn+`|(?:${l.src_pseudo_letter})|(?:${l.src_pseudo_letter}(?:-|${l.src_pseudo_letter}){0,61}${l.src_pseudo_letter}))`,l.src_host=`(?:(?:(?:(?:${l.src_domain})\\.)*${l.src_domain}))`,l.tpl_host_fuzzy="(?:"+l.src_ip4+`|(?:(?:(?:${l.src_domain})\\.)+(?:%TLDS%)))`,l.tpl_host_no_ip_fuzzy=`(?:(?:(?:${l.src_domain})\\.)+(?:%TLDS%))`,l.src_host_strict=l.src_host+l.src_host_terminator,l.tpl_host_fuzzy_strict=l.tpl_host_fuzzy+l.src_host_terminator,l.src_host_port_strict=l.src_host+l.src_port+l.src_host_terminator,l.tpl_host_port_fuzzy_strict=l.tpl_host_fuzzy+l.src_port+l.src_host_terminator,l.tpl_host_port_no_ip_fuzzy_strict=l.tpl_host_no_ip_fuzzy+l.src_port+l.src_host_terminator,l.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${l.src_ZPCc}|>|$))`,l.tpl_email_fuzzy=`(^|${i}|"|\\(|${l.src_ZCc})(${l.src_email_name}@${l.tpl_host_fuzzy_strict})`,l.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${l.src_ZPCc}))((?![$+<=>^\`||])${l.tpl_host_port_fuzzy_strict}${l.src_path})`,l.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${l.src_ZPCc}))((?![$+<=>^\`||])${l.tpl_host_port_no_ip_fuzzy_strict}${l.src_path})`,l}function zf(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 w4(u){return Cs(u)==="[object String]"}function j4(u){return Cs(u)==="[object Object]"}function O4(u){return Cs(u)==="[object RegExp]"}function Up(u){return Cs(u)==="[object Function]"}function R4(u){return u.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Q2={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function z4(u){return Object.keys(u||{}).reduce(function(l,i){return l||Q2.hasOwnProperty(i)},!1)}const M4={"http:":{validate:function(u,l,i){const r=u.slice(l);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,l,i){const r=u.slice(l);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)?l>=3&&u[l-3]===":"||l>=3&&u[l-3]==="/"?0:r.match(i.re.no_http)[0].length:0}},"mailto:":{validate:function(u,l,i){const r=u.slice(l);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}}},L4="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]",U4="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function F4(u){return function(l,i){const r=l.slice(i);return u.test(r)?r.match(u)[0].length:0}}function Fp(){return function(u,l){l.normalize(u)}}function xs(u){const l=u.re=k4(u.__opts__),i=u.__tlds__.slice();u.onCompile(),u.__tlds_replaced__||i.push(L4),i.push(l.src_xn),l.src_tlds=i.join("|");function r(m){return m.replace("%TLDS%",l.src_tlds)}l.email_fuzzy=RegExp(r(l.tpl_email_fuzzy),"i"),l.email_fuzzy_global=RegExp(r(l.tpl_email_fuzzy),"ig"),l.link_fuzzy=RegExp(r(l.tpl_link_fuzzy),"i"),l.link_fuzzy_global=RegExp(r(l.tpl_link_fuzzy),"ig"),l.link_no_ip_fuzzy=RegExp(r(l.tpl_link_no_ip_fuzzy),"i"),l.link_no_ip_fuzzy_global=RegExp(r(l.tpl_link_no_ip_fuzzy),"ig"),l.host_fuzzy_test=RegExp(r(l.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,j4(g)){O4(g.validate)?y.validate=F4(g.validate):Up(g.validate)?y.validate=g.validate:f(m,g),Up(g.normalize)?y.normalize=g.normalize:g.normalize?f(m,g):y.normalize=Fp();return}if(w4(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:Fp()};const h=Object.keys(u.__compiled__).filter(function(m){return m.length>0&&u.__compiled__[m]}).map(R4).join("|");u.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${l.src_ZPCc}))(${h})`,"i"),u.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${l.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 K2(u,l,i,r){const o=u.slice(i,r);this.schema=l.toLowerCase(),this.index=i,this.lastIndex=r,this.raw=o,this.text=o,this.url=o}function Au(u,l){if(!(this instanceof Au))return new Au(u,l);l||z4(u)&&(l=u,u={}),this.__opts__=zf({},Q2,l),this.__schemas__=zf({},M4,u),this.__compiled__={},this.__tlds__=U4,this.__tlds_replaced__=!1,this.re={},xs(this)}Au.prototype.add=function(l,i){return this.__schemas__[l]=i,xs(this),this};Au.prototype.set=function(l){return this.__opts__=zf(this.__opts__,l),this};Au.prototype.test=function(l){if(!l.length)return!1;let i,r;if(this.re.schema_test.test(l)){for(r=this.re.schema_search,r.lastIndex=0;(i=r.exec(l))!==null;)if(this.testSchemaAt(l,i[2],r.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&l.search(this.re.host_fuzzy_test)>=0&&l.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&l.indexOf("@")>=0&&l.match(this.re.email_fuzzy)!==null)};Au.prototype.pretest=function(l){return this.re.pretest.test(l)};Au.prototype.testSchemaAt=function(l,i,r){return this.__compiled__[i.toLowerCase()]?this.__compiled__[i.toLowerCase()].validate(l,r,this):0};Au.prototype.match=function(l){const i=[],r=[],o=[],f=[];let h,m,g;function y(k,R){return k?R?k.index!==R.index?k.index<R.index?k:R:k.lastIndex>=R.lastIndex?k:R:k:R}if(!l.length)return null;if(this.re.schema_test.test(l))for(g=this.re.schema_search,g.lastIndex=0;(h=g.exec(l))!==null;)m=this.testSchemaAt(l,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(l))!==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(l))!==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 k=[r[v[0]],f[v[1]],o[v[2]]],R=y(y(k[0],k[1]),k[2]);if(!R)break;if(R===k[0]?v[0]++:R===k[1]?v[1]++:v[2]++,R.index<x)continue;const T=new K2(l,R.schema,R.index,R.lastIndex);this.__compiled__[T.schema].normalize(T,this),i.push(T),x=R.lastIndex}return i.length?i:null};Au.prototype.matchAtStart=function(l){if(!l.length)return null;const i=this.re.schema_at_start.exec(l);if(!i)return null;const r=this.testSchemaAt(l,i[2],i[0].length);if(!r)return null;const o=new K2(l,i[2],i.index+i[1].length,i.index+i[0].length+r);return this.__compiled__[o.schema].normalize(o,this),o};Au.prototype.tlds=function(l,i){return l=Array.isArray(l)?l:[l],i?(this.__tlds__=this.__tlds__.concat(l).sort().filter(function(r,o,f){return r!==f[o-1]}).reverse(),xs(this),this):(this.__tlds__=l.slice(),this.__tlds_replaced__=!0,xs(this),this)};Au.prototype.normalize=function(l){l.schema||(l.url=`http://${l.url}`),l.schema==="mailto:"&&!/^mailto:/i.test(l.url)&&(l.url=`mailto:${l.url}`)};Au.prototype.onCompile=function(){};const fi=2147483647,dn=36,$f=1,Or=26,B4=38,H4=700,J2=72,P2=128,W2="-",q4=/^xn--/,I4=/[^\0-\x7F]/,G4=/[\x2E\u3002\uFF0E\uFF61]/g,Y4={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},df=dn-$f,hn=Math.floor,hf=String.fromCharCode;function zl(u){throw new RangeError(Y4[u])}function V4(u,l){const i=[];let r=u.length;for(;r--;)i[r]=l(u[r]);return i}function eg(u,l){const i=u.split("@");let r="";i.length>1&&(r=i[0]+"@",u=i[1]),u=u.replace(G4,".");const o=u.split("."),f=V4(o,l).join(".");return r+f}function tg(u){const l=[];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?l.push(((o&1023)<<10)+(f&1023)+65536):(l.push(o),i--)}else l.push(o)}return l}const X4=u=>String.fromCodePoint(...u),Z4=function(u){return u>=48&&u<58?26+(u-48):u>=65&&u<91?u-65:u>=97&&u<123?u-97:dn},Bp=function(u,l){return u+22+75*(u<26)-((l!=0)<<5)},ug=function(u,l,i){let r=0;for(u=i?hn(u/H4):u>>1,u+=hn(u/l);u>df*Or>>1;r+=dn)u=hn(u/df);return hn(r+(df+1)*u/(u+B4))},ng=function(u){const l=[],i=u.length;let r=0,o=P2,f=J2,h=u.lastIndexOf(W2);h<0&&(h=0);for(let m=0;m<h;++m)u.charCodeAt(m)>=128&&zl("not-basic"),l.push(u.charCodeAt(m));for(let m=h>0?h+1:0;m<i;){const g=r;for(let v=1,x=dn;;x+=dn){m>=i&&zl("invalid-input");const k=Z4(u.charCodeAt(m++));k>=dn&&zl("invalid-input"),k>hn((fi-r)/v)&&zl("overflow"),r+=k*v;const R=x<=f?$f:x>=f+Or?Or:x-f;if(k<R)break;const T=dn-R;v>hn(fi/T)&&zl("overflow"),v*=T}const y=l.length+1;f=ug(r-g,y,g==0),hn(r/y)>fi-o&&zl("overflow"),o+=hn(r/y),r%=y,l.splice(r++,0,o)}return String.fromCodePoint(...l)},lg=function(u){const l=[];u=tg(u);const i=u.length;let r=P2,o=0,f=J2;for(const g of u)g<128&&l.push(hf(g));const h=l.length;let m=h;for(h&&l.push(W2);m<i;){let g=fi;for(const v of u)v>=r&&v<g&&(g=v);const y=m+1;g-r>hn((fi-o)/y)&&zl("overflow"),o+=(g-r)*y,r=g;for(const v of u)if(v<r&&++o>fi&&zl("overflow"),v===r){let x=o;for(let k=dn;;k+=dn){const R=k<=f?$f:k>=f+Or?Or:k-f;if(x<R)break;const T=x-R,ne=dn-R;l.push(hf(Bp(R+T%ne,0))),x=hn(T/ne)}l.push(hf(Bp(x,0))),f=ug(o,y,m===h),o=0,++m}++o,++r}return l.join("")},$4=function(u){return eg(u,function(l){return q4.test(l)?ng(l.slice(4).toLowerCase()):l})},Q4=function(u){return eg(u,function(l){return I4.test(l)?"xn--"+lg(l):l})},ag={version:"2.3.1",ucs2:{decode:tg,encode:X4},decode:ng,encode:lg,toASCII:Q4,toUnicode:$4},K4={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},J4={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"]}}},P4={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"]}}},W4={default:K4,zero:J4,commonmark:P4},e8=/^(vbscript|javascript|file|data):/,t8=/^data:image\/(gif|png|jpeg|webp);/;function u8(u){const l=u.trim().toLowerCase();return e8.test(l)?t8.test(l):!0}const ig=["http:","https:","mailto:"];function n8(u){const l=If(u,!0);if(l.hostname&&(!l.protocol||ig.indexOf(l.protocol)>=0))try{l.hostname=ag.toASCII(l.hostname)}catch{}return zr(qf(l))}function l8(u){const l=If(u,!0);if(l.hostname&&(!l.protocol||ig.indexOf(l.protocol)>=0))try{l.hostname=ag.toUnicode(l.hostname)}catch{}return mi(qf(l),mi.defaultChars+"%")}function Bu(u,l){if(!(this instanceof Bu))return new Bu(u,l);l||Yf(u)||(l=u||{},u="default"),this.inline=new Lr,this.block=new Ts,this.core=new Xf,this.renderer=new gi,this.linkify=new Au,this.validateLink=u8,this.normalizeLink=n8,this.normalizeLinkText=l8,this.utils=cv,this.helpers=Es({},dv),this.options={},this.configure(u),l&&this.set(l)}Bu.prototype.set=function(u){return Es(this.options,u),this};Bu.prototype.configure=function(u){const l=this;if(Yf(u)){const i=u;if(u=W4[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&&l.set(u.options),u.components&&Object.keys(u.components).forEach(function(i){u.components[i].rules&&l[i].ruler.enableOnly(u.components[i].rules),u.components[i].rules2&&l[i].ruler2.enableOnly(u.components[i].rules2)}),this};Bu.prototype.enable=function(u,l){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&&!l)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Bu.prototype.disable=function(u,l){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&&!l)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Bu.prototype.use=function(u){const l=[this].concat(Array.prototype.slice.call(arguments,1));return u.apply(u,l),this};Bu.prototype.parse=function(u,l){if(typeof u!="string")throw new Error("Input data should be a String");const i=new this.core.State(u,this,l);return this.core.process(i),i.tokens};Bu.prototype.render=function(u,l){return l=l||{},this.renderer.render(this.parse(u,l),this.options,l)};Bu.prototype.parseInline=function(u,l){const i=new this.core.State(u,this,l);return i.inlineMode=!0,this.core.process(i),i.tokens};Bu.prototype.renderInline=function(u,l){return l=l||{},this.renderer.render(this.parseInline(u,l),this.options,l)};function Hp(u,l){(l==null||l>u.length)&&(l=u.length);for(var i=0,r=Array(l);i<l;i++)r[i]=u[i];return r}function a8(u){if(Array.isArray(u))return u}function i8(u,l){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,l!==0)for(;!(g=(r=f.call(i)).done)&&(m.push(r.value),m.length!==l);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 r8(){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 c8(u,l){return a8(u)||i8(u,l)||s8(u,l)||r8()}function s8(u,l){if(u){if(typeof u=="string")return Hp(u,l);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)?Hp(u,l):void 0}}const rg=Object.entries,qp=Object.setPrototypeOf,o8=Object.isFrozen,cg=Object.getPrototypeOf,sg=Object.getOwnPropertyDescriptor;let Lt=Object.freeze,Vt=Object.seal,ci=Object.create,og=typeof Reflect<"u"&&Reflect,Mf=og.apply,Lf=og.construct;Lt||(Lt=function(l){return l});Vt||(Vt=function(l){return l});Mf||(Mf=function(l,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 l.apply(i,o)});Lf||(Lf=function(l){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 l(...r)});const qn=ft(Array.prototype.forEach),f8=ft(Array.prototype.lastIndexOf),Ip=ft(Array.prototype.pop),xr=ft(Array.prototype.push),d8=ft(Array.prototype.slice),h8=ft(Array.prototype.splice),di=Array.isArray,mf=fg(Set),pf=ft(Set.prototype.add),vr=ft(Set.prototype.has),da=ft(String.prototype.toLowerCase),gf=ft(String.prototype.toString),Gp=ft(String.prototype.match),_r=ft(String.prototype.replace),Yp=ft(String.prototype.indexOf),m8=ft(String.prototype.trim),p8=ft(Number.prototype.toString),g8=ft(Boolean.prototype.toString),Vp=typeof BigInt>"u"?null:ft(BigInt.prototype.toString),Xp=typeof Symbol>"u"?null:ft(Symbol.prototype.toString),hu=ft(Object.prototype.hasOwnProperty),Er=ft(Object.prototype.toString),Yt=ft(RegExp.prototype.test),In=fg(TypeError);function ft(u){return function(l){l instanceof RegExp&&(l.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 Mf(u,l,r)}}function fg(u){return function(){for(var l=arguments.length,i=new Array(l),r=0;r<l;r++)i[r]=arguments[r];return Lf(u,i)}}function Xe(u,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:da;if(qp&&qp(u,null),!di(l))return u;let r=l.length;for(;r--;){let o=l[r];if(typeof o=="string"){const f=i(o);f!==o&&(o8(l)||(l[r]=f),o=f)}u[o]=!0}return u}function b8(u){for(let l=0;l<u.length;l++)hu(u,l)||(u[l]=null);return u}function Su(u){const l=ci(null);for(const r of rg(u)){var i=c8(r,2);const o=i[0],f=i[1];hu(u,o)&&(di(f)?l[o]=b8(f):f&&typeof f=="object"&&f.constructor===Object?l[o]=Su(f):l[o]=f)}return l}function y8(u){switch(typeof u){case"string":return u;case"number":return p8(u);case"boolean":return g8(u);case"bigint":return Vp?Vp(u):"0";case"symbol":return Xp?Xp(u):"Symbol()";case"undefined":return Er(u);case"function":case"object":{if(u===null)return Er(u);const l=u,i=Uu(l,"toString");if(typeof i=="function"){const r=i(l);return typeof r=="string"?r:Er(r)}return Er(u)}default:return Er(u)}}function Uu(u,l){for(;u!==null;){const r=sg(u,l);if(r){if(r.get)return ft(r.get);if(typeof r.value=="function")return ft(r.value)}u=cg(u)}function i(){return null}return i}function x8(u,l){for(;u!==null;){const i=sg(u,l);if(i)return i.get?ft(i.get):null;u=cg(u)}return null}function v8(u){try{return Yt(u,""),!0}catch{return!1}}const Zp=Lt(["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"]),bf=Lt(["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"]),yf=Lt(["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"]),_8=Lt(["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"]),xf=Lt(["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"]),E8=Lt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$p=Lt(["#text"]),Qp=Lt(["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"]),vf=Lt(["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"]),Kp=Lt(["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"]),ds=Lt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),S8=Vt(/{{[\w\W]*|^[\w\W]*}}/g),A8=Vt(/<%[\w\W]*|^[\w\W]*%>/g),T8=Vt(/\${[\w\W]*/g),C8=Vt(/^data-[\-\w.\u00B7-\uFFFF]+$/),D8=Vt(/^aria-[\-\w]+$/),Jp=Vt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),N8=Vt(/^(?:\w+script|data):/i),k8=Vt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),w8=Vt(/^html$/i),j8=Vt(/^[a-z][.\w]*(-[.\w]+)+$/i),_f=Vt(/<[/\w!]/g),Pp=Vt(/<[/\w]/g),O8=Vt(/<\/no(script|embed|frames)/i),Wp=Vt(/\/>/i),St={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},R8=Lt(Xe({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),z8=function(){return typeof window>"u"?null:window},M8=function(l,i){if(typeof l!="object"||typeof l.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 l.createPolicy(f,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},e2=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Rl=function(l,i,r,o){return hu(l,i)&&di(l[i])?Xe(o.base?Su(o.base):{},l[i],o.transform):r},Ef=function(l,i,r){const o=hu(l,i)?l[i]:void 0;return o&&typeof o=="object"?Su(o):r()};function dg(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z8();const l=V=>dg(V);if(l.version="3.4.17",l.removed=[],!u||!u.document||u.document.nodeType!==St.document||!u.Element)return l.isSupported=!1,l;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,k=Uu(x,"cloneNode"),R=Uu(x,"remove"),T=Uu(x,"removeAttributeNode"),ne=Uu(x,"nextSibling"),Q=Uu(x,"childNodes"),J=Uu(x,"parentNode"),ee=Uu(x,"shadowRoot"),ue=Uu(x,"attributes"),$=h&&h.prototype?Uu(h.prototype,"nodeType"):null,W=h&&h.prototype?Uu(h.prototype,"nodeName"):null,ce=h&&h.prototype?Uu(h.prototype,"ownerDocument"):null,te=function(_){return $?$(_):_.nodeType},ie=function(_){return W?W(_):_.nodeName},Ye=x8(x,"namespaceURI"),Ve=function(_){return Ye?Ye(_):_.namespaceURI};if(typeof f=="function"){const V=i.createElement("template");V.content&&V.content.ownerDocument&&(i=V.content.ownerDocument)}let _e,Te="",Ke,Be=!1,ye=0;const K=function(){if(ye>0)throw In('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 _e.createHTML(_)}finally{ye--}},ae=function(_){K(),ye++;try{return _e.createScriptURL(_)}finally{ye--}},Ce=function(){return Be||(Ke=M8(v,o),Be=!0),Ke},be=i,Ie=be.implementation,L=be.createNodeIterator,se=be.createDocumentFragment,S=be.getElementsByTagName,H=r.importNode;let Z=e2();l.isSupported=typeof rg=="function"&&typeof J=="function"&&Ie&&Ie.createHTMLDocument!==void 0;const fe=S8,je=A8,Oe=T8,Me=C8,I=D8,P=N8,Le=k8,kt=j8;let Tu=Jp,ze=null;const ct=Xe({},[...Zp,...bf,...yf,...xf,...$p]);let ge=null;const wt=Xe({},[...Qp,...vf,...Kp,...ds]);let Se=Object.seal(ci(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}})),X=null,gn=null;const st=Object.seal(ci(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Hu=!0,bn=!0,yn=!1,qu=!0,nu=!1,At=!0,it=!1,xn=!1,Vn=null,vn=null,_n=!1,Cu=!1,Tt=!1,Xn=!1,Fl=!0,rt=!1;const En="user-content-";let Zn=!0,Sn=!1,lu=null,Ku={},Du=null;const U=Xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Y=null;const he=Xe({},["audio","video","img","source","image","track"]);let we=null;const Xt=Xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ut="http://www.w3.org/1998/Math/MathML",au="http://www.w3.org/2000/svg",Nu="http://www.w3.org/1999/xhtml";let $n=Nu,Qn=!1,Kn=null;const ga=Xe({},[ut,au,Nu],gf),Ju=Lt(["mi","mo","mn","ms","mtext"]);let Jn=Xe({},Ju);const Pn=Lt(["annotation-xml"]);let ba=Xe({},Pn);const Ns=Xe({},["title","style","font","a","script"]);let Wn=null;const bi=["application/xhtml+xml","text/html"],Bl="text/html";let dt=null,An=null;const Ur=i.createElement("form"),yi=function(_){return _ instanceof RegExp||_ instanceof Function},Hl=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(An&&An===_)return;(!_||typeof _!="object")&&(_={}),_=Su(_),Wn=bi.indexOf(_.PARSER_MEDIA_TYPE)===-1?Bl:_.PARSER_MEDIA_TYPE,dt=Wn==="application/xhtml+xml"?gf:da,ze=Rl(_,"ALLOWED_TAGS",ct,{transform:dt}),ge=Rl(_,"ALLOWED_ATTR",wt,{transform:dt}),Kn=Rl(_,"ALLOWED_NAMESPACES",ga,{transform:gf}),we=Rl(_,"ADD_URI_SAFE_ATTR",Xt,{transform:dt,base:Xt}),Y=Rl(_,"ADD_DATA_URI_TAGS",he,{transform:dt,base:he}),Du=Rl(_,"FORBID_CONTENTS",U,{transform:dt}),X=Rl(_,"FORBID_TAGS",Su({}),{transform:dt}),gn=Rl(_,"FORBID_ATTR",Su({}),{transform:dt}),Ku=hu(_,"USE_PROFILES")?_.USE_PROFILES&&typeof _.USE_PROFILES=="object"?Su(_.USE_PROFILES):_.USE_PROFILES:!1,Hu=_.ALLOW_ARIA_ATTR!==!1,bn=_.ALLOW_DATA_ATTR!==!1,yn=_.ALLOW_UNKNOWN_PROTOCOLS||!1,qu=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,nu=_.SAFE_FOR_TEMPLATES||!1,At=_.SAFE_FOR_XML!==!1,it=_.WHOLE_DOCUMENT||!1,Cu=_.RETURN_DOM||!1,Tt=_.RETURN_DOM_FRAGMENT||!1,Xn=_.RETURN_TRUSTED_TYPE||!1,_n=_.FORCE_BODY||!1,Fl=_.SANITIZE_DOM!==!1,rt=_.SANITIZE_NAMED_PROPS||!1,Zn=_.KEEP_CONTENT!==!1,Sn=_.IN_PLACE||!1,Tu=v8(_.ALLOWED_URI_REGEXP)?_.ALLOWED_URI_REGEXP:Jp,$n=typeof _.NAMESPACE=="string"?_.NAMESPACE:Nu,Jn=Ef(_,"MATHML_TEXT_INTEGRATION_POINTS",()=>Xe({},Ju)),ba=Ef(_,"HTML_INTEGRATION_POINTS",()=>Xe({},Pn));const C=Ef(_,"CUSTOM_ELEMENT_HANDLING",()=>ci(null));if(Se=ci(null),hu(C,"tagNameCheck")&&yi(C.tagNameCheck)&&(Se.tagNameCheck=C.tagNameCheck),hu(C,"attributeNameCheck")&&yi(C.attributeNameCheck)&&(Se.attributeNameCheck=C.attributeNameCheck),hu(C,"allowCustomizedBuiltInElements")&&typeof C.allowCustomizedBuiltInElements=="boolean"&&(Se.allowCustomizedBuiltInElements=C.allowCustomizedBuiltInElements),Vt(Se),nu&&(bn=!1),Tt&&(Cu=!0),Ku&&(ze=Xe({},$p),ge=ci(null),Ku.html===!0&&(Xe(ze,Zp),Xe(ge,Qp)),Ku.svg===!0&&(Xe(ze,bf),Xe(ge,vf),Xe(ge,ds)),Ku.svgFilters===!0&&(Xe(ze,yf),Xe(ge,vf),Xe(ge,ds)),Ku.mathMl===!0&&(Xe(ze,xf),Xe(ge,Kp),Xe(ge,ds))),st.tagCheck=null,st.attributeCheck=null,hu(_,"ADD_TAGS")&&(typeof _.ADD_TAGS=="function"?st.tagCheck=_.ADD_TAGS:di(_.ADD_TAGS)&&(ze===ct&&(ze=Su(ze)),Xe(ze,_.ADD_TAGS,dt))),hu(_,"ADD_ATTR")&&(typeof _.ADD_ATTR=="function"?st.attributeCheck=_.ADD_ATTR:di(_.ADD_ATTR)&&(ge===wt&&(ge=Su(ge)),Xe(ge,_.ADD_ATTR,dt))),hu(_,"ADD_FORBID_CONTENTS")&&di(_.ADD_FORBID_CONTENTS)&&(Du===U&&(Du=Su(Du)),Xe(Du,_.ADD_FORBID_CONTENTS,dt)),Zn&&(ze["#text"]=!0),it&&Xe(ze,["html","head","body"]),ze.table&&(Xe(ze,["tbody"]),delete X.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw In('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw In('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const G=_e;_e=_.TRUSTED_TYPES_POLICY;try{Te=re("")}catch(q){throw _e=G,q}}else _.TRUSTED_TYPES_POLICY===null?(_e=void 0,Te=""):(_e===void 0&&(_e=Ce()),_e&&typeof Te=="string"&&(Te=re("")));Lt&&Lt(_),An=_},ya=Xe({},[...bf,...yf,..._8]),xi=Xe({},[...xf,...E8]),Fr=function(_,C,G){return C.namespaceURI===Nu?_==="svg":C.namespaceURI===ut?_==="svg"&&(G==="annotation-xml"||Jn[G]):!!ya[_]},Iu=function(_,C,G){return C.namespaceURI===Nu?_==="math":C.namespaceURI===au?_==="math"&&ba[G]:!!xi[_]},Ct=function(_,C,G){return C.namespaceURI===au&&!ba[G]||C.namespaceURI===ut&&!Jn[G]?!1:!xi[_]&&(Ns[_]||!ya[_])},Zt=function(_){const C=Ve(_),G=da(ie(_)),q=J(_);let me,xe;return q&&te(q)===St.element?(me={namespaceURI:Ve(q)},xe=da(ie(q))):(me={namespaceURI:$n},xe="template"),Kn[C]?C===au?Fr(G,me,xe):C===ut?Iu(G,me,xe):C===Nu?Ct(G,me,xe):!!(Wn==="application/xhtml+xml"&&Kn[C]):!1},Kt=function(_){xr(l.removed,{element:_});try{J(_).removeChild(_)}catch{if(R(_),!J(_))throw In("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,G){try{T(_,C)}catch{try{_.removeAttribute(G)}catch{}}},_i=function(_){tl(_);const C=Q(_);C&&qn(d8(C),q=>{try{R(q)}catch{}});const G=te(_)===St.element?ue(_):null;if(G)for(let q=G.length-1;q>=0;--q){const me=G[q],xe=me&&me.name;typeof xe=="string"&&vi(_,me,xe)}},el=function(_,C,G){if(!G)try{G=C.getAttributeNode(_)}catch{G=null}xr(l.removed,{attribute:G||null,from:C});try{G?T(C,G):C.removeAttribute(_)}catch{try{C.removeAttribute(_)}catch{}}if(_==="is")if(Cu||Tt)try{Kt(C)}catch{}else try{C.setAttribute(_,"")}catch{}},Ei=function(_){const C=ue(_);if(C)for(let G=C.length-1;G>=0;--G){const q=C[G],me=q&&q.name;typeof me!="string"||ge[dt(me)]||vi(_,q,me)}},Tn=function(_,C){let G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const q=[_];for(;q.length>0;){const me=q.pop();if(C(me)===!1)continue;if(G&&te(me)===St.element){const Ae=ee(me);ke(Ae)&&q.push(Ae)}const xe=Q(me);if(xe)for(let Ae=xe.length-1;Ae>=0;--Ae)q.push(xe[Ae])}},tl=function(_){Tn(_,C=>{te(C)===St.element&&Ei(C)})},ul=function(_){const C=[];return Tn(_,G=>{C.push(G)},!0),C},Cn=function(_,C){const G=mf();qn(ul(_),q=>{te(q)===St.element&&pf(G,q)}),qn(C,q=>{te(q)===St.element&&!vr(G,q)&&Ei(q)})},Dn=function(_,C){let G=!1;return qn(l.removed,q=>{q.element&&(G=G||q.element===_,tl(q.element))}),Cn(_,C),G},ql=8,nl=function(_,C){const G=lu;let q=null;const me=()=>(q||(q=mf(),qn(C,xe=>{pf(q,xe)})),q);for(let xe=0;;xe++){const Ae=ul(_),$e=[_];let ru=!1;if(qn(Ae,Dt=>{te(Dt)===St.documentFragment?xr($e,Dt):!ru&&!vr(G,Dt)&&(ru=vr(me(),Dt))}),!ru)return;if(xe>=ql)throw In("the tree kept changing during in-place sanitization; refusing to return it");qn($e,(Dt,gt)=>{yt(Dt,gt>0,_,me())})}},yt=function(_,C,G,q){const me=Wu(_);let xe;for(;xe=me.nextNode();)!vr(q,xe)||vr(lu,xe)||(C&&$t(Z.uponSanitizeShadowNode,xe,null),Il(xe,G),en(xe,G),ke(xe.content)&&il(xe.content))},Br=function(_){lu&&pf(lu,_)},Si=function(_,C){return At?_==="patchsrc"?!0:_==="for"&&C!=="label"&&C!=="output":!1},Hr=function(_){At&&Tn(_,C=>{const G=te(C);if(G===St.processingInstruction||G===St.comment&&Yt(Pp,C.data)){try{R(C)}catch{}return!1}if(G===St.element){const q=C,me=dt(ie(C));try{q.hasAttribute&&q.hasAttribute("patchsrc")&&q.removeAttribute("patchsrc"),q.hasAttribute&&q.hasAttribute("for")&&Si("for",me)&&q.removeAttribute("for")}catch{}}return!0})},Pu=function(_){let C=null,G=null;if(_n)_="<remove></remove>"+_;else{const xe=Gp(_,/^[\r\n\t ]+/);G=xe&&xe[0]}Wn==="application/xhtml+xml"&&$n===Nu&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const q=_e?re(_):_;if($n===Nu)try{C=new y().parseFromString(q,Wn)}catch{}if(!C||!C.documentElement){C=Ie.createDocument($n,"template",null);try{C.documentElement.innerHTML=Qn?Te:q}catch{}}const me=C.body||C.documentElement;return _&&G&&me.insertBefore(i.createTextNode(G),me.childNodes[0]||null),$n===Nu?S.call(C,it?"html":"body")[0]:it?C.documentElement:me},Wu=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)},xa=function(_){return _=_r(_,fe," "),_=_r(_,je," "),_=_r(_,Oe," "),_},va=function(_){var C;Ai(_);const G=(C=_.querySelectorAll)===null||C===void 0?void 0:C.call(_,"template");G&&qn(G,q=>{ke(q.content)&&va(q.content)})},Ai=function(_){_.normalize();const C=ce?ce(_):_.ownerDocument,G=L.call(C||_,_,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let q=G.nextNode();for(;q;)q.data=xa(q.data),q=G.nextNode()},_a=function(_){const C=W?W(_):null;return typeof C!="string"||dt(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 $(_)===St.documentFragment}catch{return!1}},ll=function(_){if(!$||typeof _!="object"||_===null)return!1;try{return typeof $(_)=="number"}catch{return!1}};function $t(V,_,C){V.length!==0&&qn(V,G=>{G.call(l,_,C,An)})}const Ea=function(_,C){return!!(At&&_.hasChildNodes()&&!ll(_.firstElementChild)&&Yt(_f,_.textContent)&&Yt(_f,_.innerHTML)||At&&R8[C]&&te(_)===St.element&&Ve(_)===Nu&&(ll(_.firstElementChild)||typeof _.textContent=="string"&&Yt(_f,_.textContent))||_.nodeType===St.processingInstruction||At&&_.nodeType===St.comment&&Yt(Pp,_.data))},iu=function(_,C){if(_ instanceof RegExp)return Yt(_,C);if(_ instanceof Function){for(var G=arguments.length,q=new Array(G>2?G-2:0),me=2;me<G;me++)q[me-2]=arguments[me];return!!_(C,...q)}return!1},Jt=function(_,C,G){if(!X[C]&&Pt(C)&&iu(Se.tagNameCheck,C))return!1;if(Zn&&!Du[C]&&!Du[da(C)]){const q=J(_),me=Q(_);if(me&&q){const xe=me.length;for(let Ae=xe-1;Ae>=0;--Ae){const $e=_===G?k(me[Ae],!0):me[Ae];q.insertBefore($e,ne(_))}}}return Kt(_),!0},Ti=function(_,C,G,q){return _.length===0?C:C===G||C===q?Su(C):C},al=function(_,C){return _===C||J(_)!==null?!1:(Sn&&tl(_),!0)},Il=function(_,C){if(Br(_),$t(Z.beforeSanitizeElements,_,null),al(_,C))return!0;if(_a(_))return Kt(_),!0;const G=dt(ie(_));if(ze=Ti(Z.uponSanitizeElement,ze,ct,Vn),$t(Z.uponSanitizeElement,_,{tagName:G,allowedTags:ze}),al(_,C))return!0;if(Ea(_,G))return Kt(_),!0;if(X[G]||!(st.tagCheck instanceof Function&&st.tagCheck(G))&&!ze[G]){const q=Jt(_,G,C);return q===!1&&($t(Z.afterSanitizeElements,_,null),al(_,C))?!0:q}if(te(_)===St.element&&!Zt(_)||(G==="noscript"||G==="noembed"||G==="noframes")&&Yt(O8,_.innerHTML))return Kt(_),!0;if(nu&&_.nodeType===St.text){const q=xa(_.textContent);_.textContent!==q&&(xr(l.removed,{element:_.cloneNode()}),_.textContent=q)}return $t(Z.afterSanitizeElements,_,null),al(_,C)},Ci=function(_,C,G){if(gn[C]||Si(C,_)||Fl&&(C==="id"||C==="name")&&(G in i||G in Ur))return!1;const q=ge[C]||st.attributeCheck instanceof Function&&st.attributeCheck(C,_);return bn&&Yt(Me,C)||Hu&&Yt(I,C)?!0:q?we[C]||Yt(Tu,_r(G,Le,""))||(C==="src"||C==="xlink:href"||C==="href")&&_!=="script"&&Yp(G,"data:")===0&&Y[_]||yn&&!Yt(P,_r(G,Le,""))?!0:!G:Pt(_)&&iu(Se.tagNameCheck,_)&&iu(Se.attributeNameCheck,C,_)||C==="is"&&Se.allowCustomizedBuiltInElements&&iu(Se.tagNameCheck,G)},ks=Xe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Pt=function(_){return!ks[da(_)]&&Yt(kt,_)},Di=function(_,C,G,q){if(_e&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!G)switch(v.getAttributeType(_,C)){case"TrustedHTML":return re(q);case"TrustedScriptURL":return ae(q)}return q},qr=function(_,C,G,q){try{return G?_.setAttributeNS(G,C,q):_.setAttribute(C,q),_a(_)?(Kt(_),!1):!0}catch{return el(C,_),!1}},Sa=function(_,C){return At&&Yt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,C)?!0:da(_)==="attributename"&&Gp(C,"href")!==null},en=function(_,C){if($t(Z.beforeSanitizeAttributes,_,null),al(_,C))return;const G=_.attributes;if(!G||_a(_))return;ge=Ti(Z.uponSanitizeAttribute,ge,wt,vn);const q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ge,forceKeepAttr:void 0};let me=G.length;const xe=dt(_.nodeName);for(;me--;){const Ae=G[me],$e=Ae.name,ru=Ae.namespaceURI,Dt=Ae.value,gt=dt($e),pu=Dt;let Ut=$e==="value"?pu:m8(pu),Ta=!1;if(q.attrName=gt,q.attrValue=Ut,q.keepAttr=!0,q.forceKeepAttr=void 0,$t(Z.uponSanitizeAttribute,_,q),Ut=q.attrValue,rt&&(gt==="id"||gt==="name")&&Yp(Ut,En)!==0&&(el($e,_,Ae),Ut=En+Ut,Ta=!0),Sa($e,Ut)){el($e,_,Ae);continue}if(!q.forceKeepAttr){if(!q.keepAttr){el($e,_,Ae);continue}if(!qu&&Yt(Wp,Ut)){el($e,_,Ae);continue}if(nu&&(Ut=xa(Ut)),!Ci(xe,gt,Ut)){el($e,_,Ae);continue}Ut=Di(xe,gt,ru,Ut),Ut!==pu&&qr(_,$e,ru,Ut)&&Ta&&Ip(l.removed)}}$t(Z.afterSanitizeAttributes,_,null),al(_,C)},il=function(_){let C=null;const G=Wu(_);for($t(Z.beforeSanitizeShadowDOM,_,null);C=G.nextNode();)if($t(Z.uponSanitizeShadowNode,C,null),Il(C,_),en(C,_),ke(C.content)&&il(C.content),te(C)===St.element){const q=ee(C);ke(q)&&(Aa(q),il(q))}nu&&Ai(_),$t(Z.afterSanitizeShadowDOM,_,null)},Aa=function(_){const C=[{node:_,shadow:null}];for(;C.length>0;){const G=C.pop();if(G.shadow){il(G.shadow);continue}const q=G.node,me=te(q)===St.element,xe=Q(q);if(xe)for(let Ae=xe.length-1;Ae>=0;--Ae)C.push({node:xe[Ae],shadow:null});if(me){const Ae=W?W(q):null;if(typeof Ae=="string"&&dt(Ae)==="template"){const $e=q.content;ke($e)&&C.push({node:$e,shadow:null})}}if(me){const Ae=ee(q);ke(Ae)&&C.push({node:null,shadow:Ae},{node:Ae,shadow:null})}}};return l.sanitize=function(V){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,G=null,q=null,me=null;if(Qn=!V,Qn&&(V="<!-->"),typeof V!="string"&&!ll(V)&&(V=y8(V),typeof V!="string"))throw In("dirty is not a string, aborting");if(!l.isSupported)return V;xn?(ze=Vn,ge=vn):Hl(_),(Z.uponSanitizeElement.length>0||Z.uponSanitizeAttribute.length>0)&&(ze=Su(ze)),Z.uponSanitizeAttribute.length>0&&(ge=Su(ge)),l.removed=[];const xe=Sn&&typeof V!="string"&&ll(V);let Ae=[];const $e=lu;if(xe){Hr(V);const gt=ie(V);if(typeof gt=="string"){const pu=dt(gt);if(!ze[pu]||X[pu])throw _i(V),In("root node is forbidden and cannot be sanitized in-place")}if(_a(V))throw _i(V),In("root node is clobbered and cannot be sanitized in-place");Ae=ul(V),lu=mf()}else if(ll(V))C=Pu("<!---->"),G=C.ownerDocument.importNode(V,!0),G.nodeType===St.element&&G.nodeName==="BODY"||G.nodeName==="HTML"?C=G:C.appendChild(G),Aa(C);else{if(!Cu&&!nu&&!it&&V.indexOf("<")===-1)return _e&&Xn?re(V):V;if(C=Pu(V),!C)return Cu?null:Xn?Te:""}C&&_n&&Kt(C.firstChild);const ru=xe?V:C;try{xe&&Aa(V);const gt=Wu(ru);for(;q=gt.nextNode();)Il(q,ru),en(q,ru),ke(q.content)&&il(q.content);xe&&nl(V,Ae)}catch(gt){throw xe&&(_i(V),Dn(V,Ae)),gt}finally{lu=$e}if(xe){if(Dn(V,Ae))throw In("a node selected for removal could not be safely returned; refusing to sanitize in place");return nu&&va(V),V}if(Cu){if(nu&&va(C),Tt)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 Dt=it?C.outerHTML:C.innerHTML;return it&&ze["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&Yt(w8,C.ownerDocument.doctype.name)&&(Dt="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
|
|
38
|
+
`+Dt),nu&&(Dt=xa(Dt)),_e&&Xn?re(Dt):Dt},l.setConfig=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hl(V),xn=!0,Vn=ze,vn=ge},l.clearConfig=function(){An=null,xn=!1,Vn=null,vn=null,_e=Ke,Te=""},l.isValidAttribute=function(V,_,C){An||Hl({});const G=dt(V),q=dt(_);return typeof C=="string"&&(Sa(_,C)||!qu&&Yt(Wp,C))?!1:Ci(G,q,C)},l.addHook=function(V,_){typeof _=="function"&&hu(Z,V)&&xr(Z[V],_)},l.removeHook=function(V,_){if(hu(Z,V)){if(_!==void 0){const C=f8(Z[V],_);return C===-1?void 0:h8(Z[V],C,1)[0]}return Ip(Z[V])}},l.removeHooks=function(V){hu(Z,V)&&(Z[V]=[])},l.removeAllHooks=function(){Z=e2()},l}var L8=dg();let Sf;function U8(){if(Sf)return Sf;const u=L8,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"))}),Sf=i,i}const F8=new Bu({html:!1,linkify:!0,breaks:!1,typographer:!1}),B8=4e6,H8=2e4,fa=new Map;let Af=0;function q8(u){if(!u)return"";const l=u.length<=H8;if(l){const r=fa.get(u);if(r!==void 0)return fa.delete(u),fa.set(u,r),r}const i=I8(u);if(l)for(fa.set(u,i),Af+=u.length+i.length;Af>B8;){const r=fa.keys().next();if(r.done===!0)break;const o=fa.get(r.value)??"";Af-=r.value.length+o.length,fa.delete(r.value)}return i}function I8(u){return U8().sanitize(F8.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 t2({text:u,streaming:l=!1}){const i=N.useMemo(()=>q8(u),[u]);return d.jsx("div",{className:"prose",dangerouslySetInnerHTML:{__html:i},"data-streaming":l||void 0})}const G8=N.memo(function({code:l,lang:i}){const[r,o]=N.useState(void 0),[f,h]=N.useState("pending");N.useEffect(()=>{if(i.length===0){h("unavailable");return}let g=!0;return mx(l,i).then(y=>{g&&(o(y),h(y?"highlighted":"unavailable"))}),()=>{g=!1}},[l,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:gx(r)}):d.jsx("pre",{className:"code-plain",children:d.jsx("code",{children:l})})]})}),Y8=N.memo(function({text:l,streaming:i=!1}){const r=N.useMemo(()=>yx(l),[l]),o=N.useMemo(()=>xx(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(t2,{text:h.text},`p${m}`):d.jsx(G8,{code:h.code,lang:h.lang},`c${m}`))}):d.jsx(t2,{text:l,streaming:i})}),V8=24,Gn=new Map;function X8(u){const l=atob(u),i=new Uint8Array(new ArrayBuffer(l.length));for(let r=0;r<l.length;r+=1)i[r]=l.charCodeAt(r);return i}function Z8(u,l,i){const r=Gn.get(u);if(r!==void 0&&r.type===l)return Gn.delete(u),Gn.set(u,r),r.url;r!==void 0&&(URL.revokeObjectURL(r.url),Gn.delete(u));const o=new Blob([X8(i)],{type:l}),f=URL.createObjectURL(o);for(Gn.set(u,{url:f,type:l});Gn.size>V8;){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 hg(u,l,i){const[r,o]=N.useState(()=>u2(u,l,i));return N.useEffect(()=>{const f=u2(u,l,i);o(f)},[u,l,i]),r}function u2(u,l,i){if(i.length!==0)try{return Z8(u,l,i)}catch{return}}function mg({block:u,identity:l,role:i}){const[r,o]=N.useState(!1),f=u.refused,h=Jy(u.base64),m=h>0?pa(h):"no data",g=hg(l,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 $8({path:u,state:l,identity:i}){const[r,o]=N.useState(!1);return l.status==="unloaded"?null:l.status==="loading"?d.jsxs("p",{className:"turn-image-ref is-pending",role:"status",children:["Reading ",d.jsx("span",{className:"mono",children:u}),"…"]}):l.status==="error"?d.jsxs("p",{className:"turn-image-ref is-refused",role:"note",children:[d.jsx("span",{className:"mono",children:u})," —"," ",l.reason==="not-found"?"this file is not in the session's directory.":l.reason==="binary"?"this file is not an image this view can draw.":l.reason==="escapes-cwd"||l.reason==="absolute-path"?"this path is outside the session's directory, so it was refused.":l.reason==="permission"?"this file could not be read: permission denied.":l.message,l.code!==void 0&&d.jsxs("span",{className:"turn-image-ref-code mono",children:[" ",l.code]})]}):l.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(Q8,{path:u,type:l.content.type,base64:l.content.base64,bytes:l.bytes,identity:i,expanded:r,onToggle:()=>o(f=>!f)})}function Q8({path:u,type:l,base64:i,bytes:r,identity:o,expanded:f,onToggle:h}){const[m,g]=N.useState(!1),y=hg(o,l,m?"":i);return N.useEffect(()=>{g(!1)},[i,l]),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 ",l," 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})," · ",l," · ",pa(r),d.jsx("span",{className:"turn-image-ref-hint",children:f?"click to collapse":"click to enlarge"})]})]})}function K8({parts:u,tools:l,open:i,onToggle:r,live:o,onOpenTool:f}){const h=k2(u,l),m=ux(h),g=o&&j2(h),y=new Map(l.map(x=>[x.toolCallId,x])),v=[];for(const x of u){if(x.kind==="thinking"){v.push({kind:"thinking",part:x});continue}const k=y.get(x.toolCallId);k!==void 0&&v.push({kind:"tool",part:x,tool:k})}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"}),n2(x.part.text).length>0&&d.jsx("span",{className:"activity-thought-gist",children:n2(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:bp(x.tool),children:bp(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 n2(u){const l=u.replace(/\s+/g," ").trim();if(l.length===0)return"";const i=96;if(l.length<=i)return l;const r=l.slice(0,i),o=r.lastIndexOf(" ");return`${(o>i*.5?r.slice(0,o):r).replace(/[,;:.\u2014-]+$/,"")}…`}function J8(u){const l=u.ended;if(!l)return"Compacting context…";if(l.aborted)return"Context compaction stopped.";if(l.errorMessage!==void 0)return`Context compaction failed: ${l.errorMessage}`;if(l.willRetry)return"Context compaction failed; retrying…";const i=u.tokensBefore,r=u.tokensAfter;return typeof i=="number"&&typeof r=="number"?`Context compacted: ${wf(i)} → ${wf(r)} tokens.`:"Context compacted."}function P8(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 W8({notice:u}){const l=r6(u);if(u.kind==="compaction"){const r=P8(u.reason);return d.jsxs("div",{className:"run-notice","data-kind":"compaction","data-open":l||void 0,children:[d.jsx("span",{className:"notice-glyph","aria-hidden":"true",children:l?"◐":u.ended?.aborted||u.ended?.errorMessage?"✕":"✓"}),d.jsx("span",{className:"notice-text",children:J8(u)}),l&&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":l||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 e_({notices:u}){return u===void 0||u.length===0?null:d.jsx("div",{className:"run-notices",children:u.map((l,i)=>d.jsx(W8,{notice:l},`${l.kind}-${i}`))})}const pg=80;function t_(u,l=pg){const{scrollHeight:i,scrollTop:r,clientHeight:o}=u;return!Number.isFinite(i)||!Number.isFinite(r)||!Number.isFinite(o)||o<=0?!0:i-r-o<l}function u_({initialScroll:u,onScrollMemory:l,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:k,showMarkers:R=!0,activityOpen:T={},onToggleActivity:ne=()=>{},onToggleAutoFollow:Q,header:J,footer:ee,historyError:ue}){const $=N.useRef(null),W=N.useRef(null),ce=N.useRef(!0),[te,ie]=N.useState(!0),Ye=N.useRef(l);Ye.current=l;const Ve=N.useRef(void 0);N.useEffect(()=>{const L=W.current;if(!L)return;const se=()=>{const S={scrollTop:L.scrollTop,scrollHeight:L.scrollHeight,clientHeight:L.clientHeight},H=Ve.current;tf(S)&&(Ve.current=S);const Z=H!==void 0&&tf(H)?Uy(H,S,pg):t_(L);Te.current||(ce.current=Z,ie(Z),tf(S)&&Ye.current?.({scrollTop:S.scrollTop,pinned:Z}))};return L.addEventListener("scroll",se,{passive:!0}),se(),Te.current=!1,()=>L.removeEventListener("scroll",se)},[]);const _e=N.useRef(void 0),Te=N.useRef(!0);N.useLayoutEffect(()=>{const L=zy(u);if(L.kind==="follow-end"){ce.current=!0,ie(!0);return}ce.current=L.pinned,ie(L.pinned),_e.current={scrollTop:L.scrollTop,pinned:L.pinned}},[]),N.useLayoutEffect(()=>{const L=_e.current;if(!L)return;const se=W.current;se&&My(se.scrollHeight,se.clientHeight)&&(se.scrollTop=L.scrollTop,_e.current=void 0)});const Ke=N.useRef(g);N.useEffect(()=>{if(Ke.current===g)return;Ke.current=g,ce.current=!0,ie(!0);const L=W.current;L&&(L.scrollTop=L.scrollHeight)},[g]),N.useEffect(()=>{cp(y,ce.current)&&$.current?.scrollIntoView({block:"end"})});const Be=N.useRef(null);N.useEffect(()=>{const L=Be.current;if(L===null||typeof ResizeObserver>"u")return;const se=new ResizeObserver(()=>{if(!cp(y,ce.current))return;const S=W.current;S!==null&&(S.scrollTop=S.scrollHeight)});return se.observe(L),()=>se.disconnect()},[y]);const ye=N.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=N.useMemo(()=>W6(i),[i]),be=N.useMemo(()=>{const L=[];for(const se of i.messages){if(se.role!=="user")continue;const S=N2(se,se.blocks.map((Z,fe)=>fe).filter(Z=>se.blocks[Z]?.kind==="text")).join(`
|
|
39
|
+
`),H=$6(S);H.length>0&&L.push({messageId:se.id,paths:H})}return L},[i]),Ie=N.useCallback(L=>be.find(se=>se.messageId===L)?.paths,[be]);return N.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:Be,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"?ax(L.parts,i.tools,R)?d.jsx(K8,{parts:L.parts,tools:i.tools,live:r,onOpenTool:k,open:T[L.key]??!1,onToggle:se=>ne(L.key,se)},L.key):null:d.jsx(n_,{entry:L,sessionId:o,previews:h,referenced:Ie(L.message.id)},L.key))}),d.jsx(e_,{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 n_=N.memo(function({entry:l,sessionId:i,previews:r,referenced:o}){const{message:f}=l,h=f.role==="user"?"You":f.role==="assistant"?"Assistant":f.role,m=N2(f,l.textIndexes),g=tx(f,l.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(Y8,{text:y,streaming:f.streaming&&v===m.length-1},`${l.key}:${l.textIndexes[v]??v}`)),g.map(({index:y,block:v})=>d.jsx(mg,{block:v,identity:Wy(i,f.id,y),role:f.role},`${l.key}:image:${y}`)),o!==void 0&&r!==void 0&&o.map(y=>d.jsx($8,{path:y,state:r(y),identity:`${i}\0${f.id}\0ref\0${y}`},`${l.key}:ref:${y}`))]})},l_);function l_(u,l){return u.sessionId!==l.sessionId||u.entry.message!==l.entry.message||u.previews!==l.previews||u.referenced!==l.referenced?!1:l2(u.entry.textIndexes,l.entry.textIndexes)&&l2(u.entry.imageIndexes,l.entry.imageIndexes)}function l2(u,l){return u===l?!0:u.length!==l.length?!1:u.every((i,r)=>i===l[r])}const gg=3*1024*1024,Cr=4,bg=6*1024*1024,yg=["image/png","image/jpeg","image/gif","image/webp"];function a2(u,l={}){switch(u){case"unsupported-type":return`${l.type??"that file"} cannot be attached — PNG, JPEG, GIF and WebP only`;case"too-large":return`that image is ${hs(l.bytes??0)}, above the ${hs(gg)} limit — downscale it and paste again`;case"too-many":return`a prompt can carry ${Cr} images — remove one to add another`;case"batch-too-large":return`these images total ${hs(l.bytes??0)} encoded, above the ${hs(bg)} limit for one prompt — remove one or downscale them`}}function hs(u){return!Number.isFinite(u)||u<=0?"an unknown size":`${(u/(1024*1024)).toFixed(1)} MB`}function xg(u){if(u.length===0)return 0;const l=u.endsWith("==")?2:u.endsWith("=")?1:0;return Math.floor(u.length*3/4)-l}function a_(u,l,i){const r=l.mediaType.toLowerCase();if(!yg.includes(r))return{ok:!1,reason:"unsupported-type"};const o=xg(l.data);return o>gg?{ok:!1,reason:"too-large"}:u.length>=Cr?{ok:!1,reason:"too-many"}:u.reduce((h,m)=>h+m.data.length,0)+l.data.length>bg?{ok:!1,reason:"batch-too-large"}:{ok:!0,attachments:[...u,{id:i,mediaType:r,data:l.data,bytes:o,label:l.label}]}}function i_(u,l){return u.filter(i=>i.id!==l)}function i2(u,l){return u.trim().length>0||l.length>0}function r_(u){return u===void 0?"unknown":u.includes("image")?"yes":"no"}function c_(u){return u.map(({mediaType:l,data:i})=>({mediaType:l,data:i}))}const s_=1568,r2=.85;function c2(u){if(u===null)return[];const l=[];for(const i of Array.from(u.files??[]))i.type.startsWith("image/")&&l.push(i);if(l.length>0)return l;for(const i of Array.from(u.items??[])){if(i.kind!=="file")continue;const r=i.getAsFile();r!==null&&r.type.startsWith("image/")&&l.push(r)}return l}async function o_(u,l){try{const i=await f_(u);if(i===null)return null;const{width:r,height:o}=d_(i.width,i.height,s_),f=u.type==="image/png"||u.type==="image/gif"?"image/png":"image/jpeg",h=await h_(i,r,o,f);return i.close!==void 0&&i.close(),{mediaType:f,data:h,label:l??(u.name.length>0?u.name:"pasted image")}}catch{return null}}async function f_(u){if(typeof createImageBitmap=="function"){const i=await createImageBitmap(u);return{width:i.width,height:i.height,close:()=>i.close(),bitmap:i}}const l=URL.createObjectURL(u);try{const i=new Image;return i.src=l,await i.decode(),{width:i.naturalWidth,height:i.naturalHeight,element:i}}finally{setTimeout(()=>URL.revokeObjectURL(l),0)}}function d_(u,l,i){if(!Number.isFinite(u)||!Number.isFinite(l)||u<=0||l<=0)return{width:0,height:0};const r=Math.max(u,l);if(r<=i)return{width:Math.round(u),height:Math.round(l)};const o=i/r;return{width:Math.max(1,Math.round(u*o)),height:Math.max(1,Math.round(l*o))}}async function h_(u,l,i,r){if(l<=0||i<=0)throw new Error("nothing to draw");const o=typeof OffscreenCanvas=="function"?new OffscreenCanvas(l,i):Object.assign(document.createElement("canvas"),{width:l,height:i}),f=o.getContext("2d");if(f===null)throw new Error("no 2d context");f.drawImage(u.bitmap??u.element,0,0,l,i);const h=o instanceof OffscreenCanvas?await o.convertToBlob({type:r,quality:r2}):await new Promise(m=>o.toBlob(m,r,r2));if(h===null)throw new Error("encode failed");return(await m_(h)).replace(/^data:[^;]+;base64,/,"")}function m_(u){return new Promise((l,i)=>{const r=new FileReader;r.onload=()=>l(String(r.result??"")),r.onerror=()=>i(new Error("could not read the encoded image")),r.readAsDataURL(u)})}const Tf=[{value:"oldest",label:"Oldest first",hint:"the order the calls happened in"},{value:"newest",label:"Newest first",hint:"most recent at the top"}];function p_({order:u,onOrder:l}){const[i,r]=N.useState(!1),o=N.useRef(null),f=N.useRef(null),h=N.useId(),m=g=>{r(!1),o.current?.focus()};return N.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 k=x.indexOf(document.activeElement),R=v.key==="ArrowDown"?1:-1,T=k===-1?R===1?0:x.length-1:(k+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]),N.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: ${Tf.find(g=>g.value===u)?.label??"Oldest first"}`,title:`Order: ${Tf.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:Tf.map(g=>d.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":u===g.value,className:"trace-order-item",onClick:()=>{l(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 g_({tools:u,selectedId:l,onSelect:i,collapsed:r=!1,onToggleCollapsed:o,showMarkers:f,onToggleMarkers:h,variant:m="drawer",order:g,onOrder:y,detailHeight:v,onDetailHeight:x,onResetDetailHeight:k}){const R=m==="panel",T=N.useRef(null),ne=N.useRef(!0),Q=u.filter(L=>L.running),J=u.length,[ee,ue]=N.useState(()=>{try{return D2(localStorage.getItem(Of))}catch{return"oldest"}}),$=g??ee,W=N.useCallback(L=>{y!==void 0?y(L):ue(L)},[y]),[ce,te]=N.useState(Dr),ie=v??ce,Ye=N.useCallback(L=>{x!==void 0?x(L):te(L)},[x]),Ve=N.useRef(0),_e=N.useCallback(L=>{L!==null&&(Ve.current=L.getBoundingClientRect().height)},[]),Te=I6(u,$),Ke=N.useRef(void 0);function Be(L){L.preventDefault(),L.currentTarget.setPointerCapture(L.pointerId),Ke.current={pointerId:L.pointerId,startY:L.clientY,startHeight:ie}}function ye(L){const se=Ke.current;se===void 0||se.pointerId!==L.pointerId||Ye(H6(se.startHeight,L.clientY-se.startY,Ve.current))}function K(L){Ke.current!==void 0&&(Ke.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(),Ye(q6(L.key,ie,Ve.current)))}if(N.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)},[]),N.useEffect(()=>{if(ne.current&&!r){const L=T.current;L&&(L.scrollTop=L.scrollHeight)}},[J,Q.length,r]),N.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===l),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,l,i,r]),J===0)return null;const ae=u.find(L=>L.toolCallId===l),Ce=a6(u,5),be=new Set(Ce.map(L=>L.toolCallId)),Ie=!R&&r?[]:Te;return d.jsxs("section",{className:`trace is-${m}`,"aria-label":"Tool trace",ref:_e,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(p_,{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:Ie.map(L=>d.jsxs("button",{type:"button",className:["trace-row",L.running?"running":"",L.isError?"failed":"",L.toolCallId===l?"selected":"",L.unfinished?"unfinished":"",be.has(L.toolCallId)?"recent":""].filter(Boolean).join(" "),onClick:()=>i(L.toolCallId===l?void 0:L.toolCallId),"aria-current":L.toolCallId===l?"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"} ${i6(L)}`,children:lx(L)}),d.jsx("span",{className:"t-time mono",children:L.running?"running":L.isError?"failed":L.unfinished?"no result":L.durationMs!==void 0?b_(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":Hf(Ve.current),"aria-valuetext":`${ie} pixels`,tabIndex:0,onPointerDown:Be,onPointerMove:ye,onPointerUp:K,onPointerCancel:K,onKeyDown:re,onDoubleClick:()=>k?.()}),(R||!r)&&ae&&d.jsxs("div",{className:"trace-detail is-quarantined",style:R?{height:oi(ie,Ve.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(mg,{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:y_(ae.args)})]})]})]})}function b_(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 y_(u){try{const l=JSON.stringify(u,null,2);return l===void 0?String(u):l}catch{return String(u)}}function x_(u,l=72){const i=u.replace(/\s+/g," ").trim();if(i.length===0)return"(empty message)";if(i.length<=l)return i;const r=i.slice(0,l),o=r.lastIndexOf(" ");return`${(o>l*.6?r.slice(0,o):r).trimEnd()}…`}function v_(u){const l=[],i=(f,h)=>{h.length!==0&&l.push({kind:f,when:f==="steer"?"now":"then",text:x_(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:l,unknownCount:o,total:u.total}}function __({sheetOpen:u,pickerOpen:l=!1,streaming:i}){return l?"close-picker":u?"close-sheet":i?"clear-and-stop":"noop"}function E_({queue:u,onOpenSheet:l}){const i=v_(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:l,"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 Cf=8;function S_({queue:u,onClearQueueAndStop:l,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:A_(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:s2(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:s2(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:l,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 A_(u){const{steering:l,followUp:i}=u;if(l.length+i.length===0&&u.total>0)return`${u.total} queued message${u.total===1?"":"s"}.`;const o=[];return l.length>0&&o.push(`${l.length} steers this run`),i.length>0&&o.push(`${i.length} run${i.length===1?"s":""} after it finishes`),`${o.join("; ")}.`}function s2(u){const l=u.trim();if(l.length===0)return"(empty message)";const i=l.split(`
|
|
40
|
+
`);if(i.length<=Cf&&l.length<=900)return l;const r=i.slice(0,Cf).join(`
|
|
41
|
+
`),o=i.length>Cf?`${i.length} lines`:`${l.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 T_({queue:u,onClose:l,onClearQueueAndStop:i}){const r=N.useRef(null),o=N.useId();return N.useEffect(()=>{const f=h=>{const m=h.target;m!==null&&r.current?.contains(m)!==!0&&m.closest?.(".queue-rail-open")===null&&l()};return document.addEventListener("pointerdown",f,!0),()=>document.removeEventListener("pointerdown",f,!0)},[l]),N.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(S_,{queue:u,onClearQueueAndStop:i,onClose:l})]})}function C_({attachments:u,onRemove:l}){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(D_,{attachment:i,onRemove:l},i.id)),u.length>=Cr&&d.jsxs("li",{className:"attach-limit",role:"status",children:[Cr," of ",Cr," — remove one to add another"]})]})}function D_({attachment:u,onRemove:l}){const[i,r]=N.useState(!1),o=N.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 N.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()," · ",pa(u.bytes)]})]}),d.jsx("button",{type:"button",className:"attach-remove",onClick:()=>l(u.id),"aria-label":`Remove ${u.label}`,title:`Remove ${u.label}`,children:"Remove"})]})}const N_=200;function k_(u,l){if(l<=0||l>u.length)return;const i=u.lastIndexOf(`
|
|
44
|
+
`,l-1)+1;let r=l-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==='"')||l-r-1>N_?void 0:{start:r,query:u.slice(r+1,l)}}if(/\s/.test(o))return;r-=1}}function w_(u){const l=u.lastIndexOf("/");return l===-1?{directory:"",tail:u}:{directory:u.slice(0,l),tail:u.slice(l+1)}}function j_(u,l){const i=u.name.toLowerCase(),r=l.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 O_=new Set(["node_modules",".git",".svn"]);function R_(u,l,i=8){const{directory:r,tail:o}=w_(u.query),f=[];for(const h of l??[]){if(O_.has(h.name))continue;const m=j_(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 z_(u,l,i,r){const o=i.continues?`${i.value}/`:`${i.value} `,f=u.slice(0,l.start),h=u.slice(r);return{text:`${f}@${o}${h}`,caret:l.start+1+o.length}}function M_(u,l,i=0){if(l.height<=0)return;const r=u.top,o=u.top+u.height,f=l.scrollTop+i,h=l.scrollTop+l.height-i;if(!(r>=f&&o<=h))return u.height>l.height-i*2||r<f?Math.max(0,r-i):Math.max(0,o-l.height+i)}function L_(u,l,i){return l<=0?0:((u+i)%l+l)%l}function U_({directory:u,completions:l,loading:i,selected:r,onChoose:o}){const f=N.useRef(null),h=l.length;return N.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=M_({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]}),l.length>0&&d.jsxs("span",{className:"mention-count",children:[l.length," match",l.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"]})]}),l.length>0?d.jsx("ul",{className:"mention-list",role:"listbox",id:"mention-options","aria-label":"Files to mention",ref:f,children:l.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 F_=Object.freeze([]),B_=()=>{},H_=()=>{};function q_({session:u,state:l,unavailableReason:i,onSend:r,onClearQueueAndStop:o,onRestored:f,restored:h,draft:m,onDraftChange:g,attachments:y=F_,onAttach:v=B_,onRemoveAttachment:x=H_,canAttach:k="unknown",notice:R,listDirectory:T,directoryEntries:ne,follow:Q}){const J=N.useRef(null),ee=u?.state==="streaming",ue=i!==void 0,[$,W]=N.useState(!1),ce=N.useRef(null),te=D6(l,u),[ie,Ye]=N.useState(0),[Ve,_e]=N.useState(void 0),[Te,Ke]=N.useState(0),Be=k_(m,ie),ye=Be!==void 0&&T!==void 0&&ne!==void 0&&Ve!==Be.start,K=Be===void 0?"":Be.query.includes("/")?Be.query.slice(0,Be.query.lastIndexOf("/")):"",re=ne?.(K),ae=Be===void 0?[]:R_(Be,re);N.useEffect(()=>{!ye||T===void 0||re===void 0&&T(K)},[ye,T,K,re]);const Ce=ae.map(I=>I.value).join("\0");N.useEffect(()=>{Ke(0)},[Ce]),N.useEffect(()=>{if(h.length===0)return;const I=h.filter(Le=>Le.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]),N.useEffect(()=>{const I=P=>{if(P.key!=="Escape")return;const Le=__({sheetOpen:$,pickerOpen:ye,streaming:ee});if(Le==="close-picker"){P.preventDefault(),_e(Be?.start);return}if(Le==="close-sheet"){P.preventDefault(),W(!1),ce.current?.focus();return}Le==="clear-and-stop"&&(P.preventDefault(),o(),Ie(!0))};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[$,ee,o]),N.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,Ie]=N.useState(!1);N.useEffect(()=>{if(be&&!ee){const I=setTimeout(()=>Ie(!1),6e3);return()=>clearTimeout(I)}},[be,ee]);const L=()=>{const I=m.trim();!i2(I,y)||ue||(r(I,"steer"),g(""))},se=I=>{if(k==="no")return;const P=c2(I.clipboardData);P.length!==0&&(I.preventDefault(),v(P))},[S,H]=N.useState(!1),Z=I=>{k!=="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),k==="no")return;const P=c2(I.dataTransfer);P.length!==0&&(I.preventDefault(),v(P))},Oe=I=>{if(Be===void 0)return;const P=z_(m,Be,I,ie);g(P.text),_e(void 0),Ke(0),requestAnimationFrame(()=>{const Le=J.current;Le!==null&&(Le.focus(),Le.setSelectionRange(P.caret,P.caret),Ye(P.caret))})},Me=I=>{if(ye){if(I.key==="ArrowDown"||I.key==="ArrowUp"){I.preventDefault(),Ke(P=>L_(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(),Oe(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();i2(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(E_,{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),Ye(I.target.selectionStart),_e(void 0)},onKeyDown:Me,onPaste:se,onSelect:I=>Ye(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(C_,{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(U_,{directory:K,completions:ae,loading:re===void 0,selected:Te,onChoose:Oe}),$&&te.total>0&&d.jsx(T_,{queue:te,onClose:()=>{W(!1),ce.current?.focus()},onClearQueueAndStop:()=>{W(!1),o(),Ie(!0)}})]})}function I_({dialogs:u,onAnswer:l}){const i=new Set(d2),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(G_,{dialog:o,onAnswer:l},o.id)]})}function G_({dialog:u,onAnswer:l}){const[i,r]=N.useState(u.prefill??""),o=N.useRef(null),f=N.useRef(null);N.useEffect(()=>{f.current?.focus()},[]),N.useEffect(()=>{const m=y=>{y.key==="Escape"&&(y.stopPropagation(),y.preventDefault(),l(u.id,{cancelled:!0}))},g=o.current;return g?.addEventListener("keydown",m),()=>g?.removeEventListener("keydown",m)},[u.id,l]);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:()=>l(u.id,{confirmed:!0}),children:"Allow once"}),d.jsx("button",{type:"button",className:"btn",onClick:()=>l(u.id,{confirmed:!1}),children:"Deny"}),d.jsx("button",{type:"button",className:"btn btn-ghost",onClick:()=>l(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:()=>l(u.id,{value:m}),children:m},m)),d.jsx("button",{type:"button",className:"btn btn-ghost",style:{marginTop:6},onClick:()=>l(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(),l(u.id,{value:i}))}}),d.jsxs("div",{className:"dialog-actions",children:[d.jsx("button",{type:"button",className:"btn",onClick:()=>l(u.id,{value:i}),children:"Submit"}),d.jsx("button",{type:"button",className:"btn btn-ghost",onClick:()=>l(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:()=>l(u.id,{value:i}),children:"Submit"}),d.jsx("button",{type:"button",className:"btn btn-ghost",onClick:()=>l(u.id,{cancelled:!0}),children:"Cancel request"})]})]}),!by(u.method)&&d.jsx("div",{className:"dialog-actions",children:d.jsx("button",{type:"button",className:"btn",onClick:()=>l(u.id,{cancelled:!0}),children:"Cancel request"})})]})}function Ml({text:u,label:l}){const[i,r]=N.useState(!1);return d.jsx("button",{type:"button",className:"copy",title:`Copy ${l}`,onClick:async()=>{const o=await O6(u);r(o),setTimeout(()=>r(!1),1500)},children:i?"Copied":`Copy ${l}`})}function Y_({session:u,home:l,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,l)}),d.jsx(Ml,{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,l)}),d.jsx(Ml,{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(Ml,{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(Ml,{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(Ml,{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:wf(u.tokensTotal)}),d.jsx("dt",{children:"Cost"}),d.jsx("dd",{children:E2(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(V_,{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 V_({current:u,onRename:l}){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&&l(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 vg(){return{commit:"46fcea9",builtAt:"2026-11-01T17:38:54.255Z"}}function X_(u=vg()){const l=u.builtAt==="unknown"?"unknown build time":u.builtAt.slice(0,16).replace("T"," ");return`${u.commit} · ${l}`}const _g=13,Eg=18,Sg=15,Ag=50,Uf=100,Qf=80,Rr="fill",o2="pi-central.reading";function Tr(){return{sizePx:Sg,measure:Qf}}function Tg(u){return Number.isFinite(u)?Math.min(Eg,Math.max(_g,Math.round(u))):Sg}function Cg(u){if(u===Rr)return Rr;const l=Number(u);return Number.isFinite(l)?Math.min(Uf,Math.max(Ag,Math.round(l))):Qf}function Z_(u){const l=Tr();if(u===null||u==="")return l;let i;try{i=JSON.parse(u)}catch{return l}if(typeof i!="object"||i===null)return l;const r=i;return{sizePx:Tg(typeof r.sizePx=="number"?r.sizePx:l.sizePx),measure:Cg(typeof r.measure=="number"||typeof r.measure=="string"?r.measure:l.measure)}}function $_(u){return JSON.stringify(u)}function Q_(u){return{"--reading-size":`${u.sizePx}px`,"--reading-measure":u.measure===Rr?"none":`${u.measure}ch`}}function ri({label:u,value:l,copyable:i=!1,monospace:r=!1,note:o}){const f=l===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":l}),i&&!f&&d.jsx(Ml,{text:l,label:u.toLowerCase()}),o!==void 0&&d.jsx("span",{className:"settings-note",children:o})]})]})}const K_=[{id:"display",label:"Display"},{id:"about",label:"About"}];function J_({install:u,ready:l,onClose:i,initialSection:r="display"}){const o=N.useRef(null),[f,h]=N.useState(r);N.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!==ma;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:l?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:K_.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(P_,{}):d.jsxs(d.Fragment,{children:[d.jsxs("section",{children:[d.jsx("h4",{children:"This build"}),d.jsxs("dl",{className:"kv",children:[d.jsx(ri,{label:"Version",value:u?.version}),d.jsx(ri,{label:"UI build",value:X_(),note:vg().commit==="dev"?"built outside a git checkout, so there is no commit to name":void 0}),d.jsx(ri,{label:"Protocol",value:m===void 0?void 0:`v${m}`,note:m===void 0?void 0:g?`MISMATCH — this UI speaks v${ma}. One half is out of date; see docs/DOGFOODING.md.`:`matches this UI (v${ma})`})]})]}),d.jsxs("section",{children:[d.jsx("h4",{children:"Where things live"}),d.jsxs("dl",{className:"kv",children:[d.jsx(ri,{label:"Sessions",value:u?.sessionsRoot,copyable:!0,monospace:!0}),d.jsx(ri,{label:"Workspaces",value:u?.workspaceRoot,copyable:!0,monospace:!0}),d.jsx(ri,{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 P_(){const[u,l]=N.useState(()=>{try{return Z_(localStorage.getItem(o2))}catch{return Tr()}});N.useEffect(()=>{const r=document.documentElement;for(const[o,f]of Object.entries(Q_(u)))r.style.setProperty(o,f);try{localStorage.setItem(o2,$_(u))}catch{}},[u]);const i=u.measure===Rr;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:()=>l(Tr()),disabled:u.sizePx===Tr().sizePx&&u.measure===Tr().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:_g,max:Eg,step:1,value:u.sizePx,"aria-label":"Transcript text size in pixels",onChange:r=>l(o=>({...o,sizePx:Tg(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:Ag,max:Uf,step:2,value:i?Uf:u.measure,disabled:i,"aria-label":"Transcript line length in characters",onChange:r=>l(o=>({...o,measure:Cg(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=>l(o=>({...o,measure:r.target.checked?Rr:Qf}))}),"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 Kf({path:u,reason:l,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:W_(l)}),d.jsx("span",{className:"filetree-error-detail",children:r}),i!==void 0&&d.jsx("span",{className:"filetree-kind",children:i})]})}function W_(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 e5(u){const l=atob(u),i=new Uint8Array(new ArrayBuffer(l.length));for(let r=0;r<l.length;r+=1)i[r]=l.charCodeAt(r);return i}function t5({path:u,type:l,base64:i,bytes:r}){const[o,f]=N.useState(void 0),[h,m]=N.useState(!1),g=N.useMemo(()=>new Blob([e5(i)],{type:l}),[i,l]);return N.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 ",l," 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:[l," · ",pa(r)]})]})}function u5({path:u,state:l,wrapped:i,onToggleWrap:r,onClose:o}){const f=l.status==="loaded"&&l.content.kind==="text"?l.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}),l.status==="loaded"&&d.jsx("span",{className:"filepane-meta",children:l.content.kind==="text"?`${h.length} line${h.length===1?"":"s"} · ${pa(l.bytes)}`:pa(l.bytes)}),d.jsx(Ml,{text:u,label:`path ${u}`}),l.status==="loaded"&&l.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"})]}),l.status==="unloaded"||l.status==="loading"?d.jsx("p",{className:"filetree-note",role:"status",children:"Reading…"}):l.status==="error"?d.jsx(Kf,{path:u,reason:l.reason,code:l.code,message:l.message}):d.jsx(d.Fragment,{children:l.content.kind==="image"?d.jsx(t5,{path:u,type:l.content.type,base64:l.content.base64,bytes:l.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 n5({sessionId:u,state:l,cwd:i,onExpand:r,onCollapse:o,onToggleHidden:f,onOpenFile:h}){const m=Sr(l,u),g=si(l,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(Kf,{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(Dg,{sessionId:u,parent:"",entry:y,state:l,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 Dg({sessionId:u,parent:l,entry:i,state:r,depth:o,onExpand:f,onCollapse:h,onOpenFile:m}){const g=$y(l,i.name),y=Zy(i),v=y&&Yy(r,u,g),x=y&&v?si(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"&&!op(i)&&d.jsx("span",{className:"filetree-kind",children:"link"}),op(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:pa(i.size)})]}),x!==void 0&&d.jsx(l5,{files:r,directory:x,sessionId:u,parent:g,depth:o+1,onExpand:f,onCollapse:h,onOpenFile:m})]})}function l5({files:u,directory:l,sessionId:i,parent:r,depth:o,onExpand:f,onCollapse:h,onOpenFile:m}){return l.status==="loading"||l.status==="unloaded"?d.jsx("p",{className:"filetree-note",role:"status",style:{paddingLeft:`${o*12}px`},children:"Reading…"}):l.status==="error"?d.jsx(Kf,{path:r,reason:l.reason,code:l.code,message:l.message,depth:o}):l.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:l.entries.map(g=>d.jsx(Dg,{sessionId:i,parent:r,entry:g,state:u,depth:o,onExpand:f,onCollapse:h,onOpenFile:m},g.name))}),l.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 a5({sessionId:u,files:l,cwd:i,onExpand:r,onCollapse:o,onToggleHidden:f,wrapped:h,onToggleWrap:m,onOpenFile:g,onCloseFile:y}){const v=Xy(l,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(n5,{sessionId:u,state:l,cwd:i,onExpand:r,onCollapse:o,onToggleHidden:f,onOpenFile:g})}),v&&d.jsx("div",{className:"files-doc",children:d.jsx(u5,{path:v.path,state:v.state,wrapped:h,onToggleWrap:m,onClose:y})})]})]})}const Ds=280,i5=.6,r5=1200,Jf=360,c5=720;function Pf(u){return Math.min(r5,Math.max(Ds,u*i5))}function ha(u,l){return Number.isFinite(u)?Math.round(Math.min(Pf(l),Math.max(Ds,u))):Jf}function s5(u,l,i){switch(u){case"ArrowLeft":return ha(l+16,i);case"ArrowRight":return ha(l-16,i);case"Home":return ha(Ds,i);case"End":return ha(Pf(i),i)}}const ms="pi-central.panel";function Ng(){return{width:Jf,mode:"session",userSized:!1,collapsed:!0}}function o5(u){const l=Ng();if(u===null||u==="")return l;let i;try{i=JSON.parse(u)}catch{return l}if(typeof i!="object"||i===null)return l;const r=i,o=r.mode,f=o==="files"?"files":o==="trace"?"trace":"session";return{width:typeof r.width=="number"?r.width:l.width,mode:f,userSized:r.userSized===!0,collapsed:r.collapsed!==!1}}function Df(u){return JSON.stringify(u)}const f5=[{mode:"session",label:"Session"},{mode:"files",label:"Files"},{mode:"trace",label:"Trace"}];function d5({mode:u,onMode:l,width:i,onWidth:r,viewportWidth:o,resizable:f=!0,onCommit:h,children:m}){const g=N.useRef(void 0),y=Pf(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(ha(ne.startWidth-(T.clientX-ne.startX),o),!0)}function k(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(s5(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:f5.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:()=>l(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:k,onPointerCancel:k,onKeyDown:R,onDoubleClick:()=>{r(Jf,!1),h?.()}})]})}function h5({collapsed:u,onToggle:l}){return d.jsx("button",{type:"button",className:"btn btn-quiet","aria-expanded":!u,onClick:l,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 m5=44;function p5({session:u,models:l,error:i,onRequest:r,onSelect:o,thinking:f}){const h=N.useRef(null),m=N.useRef(!1),g=()=>{m.current=!0};N.useEffect(()=>{if(!(!m.current||l===void 0)){m.current=!1;try{h.current?.showPicker()}catch{}}},[l]);const[y,v]=N.useState(!1),x=()=>{y||(v(!0),r())},k=u.state!=="starting"&&u.state!=="stopped"&&u.state!=="failed",R=y&&l===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=l?.find(ee=>_2(u,ee)),Q=ne?ne.name??ne.id:T,J=S2(ne?ne.name??ne.id:u.model??"—",m5);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${k?"":" is-disabled"}`,"aria-hidden":"true",title:Q,children:J}),d.jsxs("select",{id:`model-${u.id}`,ref:h,className:"picker-select",title:Q,value:l===void 0?"":g5(u,l),disabled:!k,onMouseDown:ee=>{l===void 0&&(ee.preventDefault(),x(),g())},onKeyDown:ee=>{l===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:[l===void 0&&d.jsx("option",{value:"",children:u.model??"—"}),l!==void 0&&l.length===0&&d.jsx("option",{value:"",children:"no models available"}),l!==void 0&&k6(l).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 g5(u,l){const i=l.find(r=>_2(u,r));return i?`${i.provider}/${i.id}`:""}function b5({installationRoot:u,initialPath:l="",onClose:i,onOpen:r}){const[o,f]=N.useState(l),h=N.useRef(null);N.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=N.useMemo(()=>{if(m.length===0)return"Enter a directory.";if(!m.startsWith("/"))return"Enter an absolute path, starting with /."},[m]),y=N.useMemo(()=>{if(g===void 0)return Ey(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 y5({value:u,onCommit:l}){const[i,r]=N.useState(!1),[o,f]=N.useState(u),h=N.useRef(null);N.useEffect(()=>{i&&(h.current?.focus(),h.current?.select())},[i]);const m=()=>{const v=o.trim();r(!1),!(v.length===0||v===u)&&l(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 x5({value:u,onCommit:l,label:i,className:r}){const o=y5({value:u,onCommit:l});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 v5(u){return`${u.provider??"?"}/${u.model??"?"}@${u.thinkingLevel??"?"}`}function _5({session:u,levels:l,error:i,onRequest:r,onSelect:o}){const[f,h]=N.useState(void 0),m=v5(u),g=u.state!=="starting"&&u.state!=="stopped"&&u.state!=="failed";N.useEffect(()=>{!g||f===m||(h(m),r())},[g,m,f,r]);const y=l!==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&&l.includes(v)?v:"",disabled:!g||!y,onChange:x=>{x.target.value!==""&&o(x.target.value)},children:[(!y||!l.includes(v))&&d.jsx("option",{value:"",children:v}),y&&l.map(x=>d.jsx("option",{value:x,children:x},x))]}),!y&&d.jsx("span",{className:"picker-note",children:"reading the levels…"})]})}const E5=80;function S5({percent:u,showLabel:l=!0}){if(u===null||!Number.isFinite(u))return d.jsx("span",{className:"context-meter is-unknown",children:jf(null)});const i=Math.max(0,Math.min(100,u)),r=i>=E5;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}%`}})}),l&&d.jsx("span",{className:"context-meter-label mono",children:jf(i)})]})}function A5({session:u,home:l,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(x5,{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:v2(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:j6(u,l)})]}),d.jsxs("div",{className:"header-stats",children:[d.jsx(S5,{percent:u.contextPercent}),d.jsx("span",{className:"header-cost mono",title:"Total cost reported for this session",children:E2(u.cost)})]}),x.length>0&&d.jsx("div",{className:"warnings",role:"note",children:x.map((k,R)=>d.jsxs("span",{children:["⚠ ",k]},R))}),d.jsx("div",{className:"picker picker-grid",children:d.jsx(p5,{session:u,models:i,error:r,onRequest:o,onSelect:f,thinking:d.jsx(_5,{session:u,levels:h.levels,error:h.error,onRequest:m,onSelect:g})})})]})}function T5({history:u,historyTotal:l,onResume:i,home:r}){const[o,f]=N.useState(""),[h,m]=N.useState(void 0),g=N6(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",l>u.length&&d.jsxs(d.Fragment,{children:[" · searching the ",u.length," most recent of ",l]})]}),g.map(y=>d.jsx(C5,{session:y,home:r,onSelect:()=>{if(!y.cwdExists){m(y);return}i(y)}},y.path))]}),h&&d.jsx(D5,{session:h,onDismiss:()=>m(void 0)})]})}function C5({session:u,home:l,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:N5(u.cwd,l)}),d.jsx("p",{className:"first",children:u.firstMessage||"(no messages)"}),d.jsxs("span",{className:"meta",children:[d.jsx("span",{children:w6(u.modifiedMs)}),d.jsxs("span",{children:[u.messageCount," msgs"]}),d.jsx("span",{children:k5(u.bytes)})]})]})}function D5({session:u,onDismiss:l}){return d.jsx("div",{className:"modal-backdrop",onClick:l,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:l,children:"Close"}),d.jsx(Ml,{text:u.cwd,label:"path"})]})]})})}function N5(u,l){return l&&u.startsWith(l)?`~${u.slice(l.length)}`:u}function k5(u){return u<1024?`${u} B`:u<1024*1024?`${(u/1024).toFixed(1)} KB`:`${(u/(1024*1024)).toFixed(1)} MB`}const w5=1024;function j5(){const[u,l]=N.useReducer(x6,void 0,x2),[i,r]=N.useState("connecting"),[o,f]=N.useState(void 0),[h,m]=N.useState("sessions"),[g,y]=N.useState(!1),[v,x]=N.useState(void 0),[k,R]=N.useState(!1),T=N.useRef(null),[ne,Q]=N.useState({}),[J,ee]=N.useState({}),ue=N.useRef(0),[$,W]=N.useState({}),[ce,te]=N.useState(0),[ie,Ye]=N.useState(!0),Ve=N.useRef(new Map),[_e,Te]=N.useState(()=>Fy().markers),[Ke,Be]=N.useState({}),[ye,K]=N.useState({}),[re,ae]=N.useState(()=>{try{return D2(localStorage.getItem(Of))}catch{return"oldest"}}),[Ce,be]=N.useState(Dr),[Ie,L]=N.useState(()=>{try{return o5(localStorage.getItem(ms))}catch{return Ng()}}),[se,S]=N.useState(()=>typeof window>"u"?1440:window.innerWidth),[H,Z]=N.useState(!1),fe=se<w5;N.useEffect(()=>{const U=()=>{S(window.innerWidth),L(Y=>({...Y,width:ha(Y.width,window.innerWidth)}))};return window.addEventListener("resize",U),()=>window.removeEventListener("resize",U)},[]),N.useEffect(()=>{fe||Z(!1)},[fe]),N.useEffect(()=>{if(!H)return;const U=Y=>{Y.key==="Escape"&&(Y.stopPropagation(),Z(!1))};return window.addEventListener("keydown",U,{capture:!0}),()=>window.removeEventListener("keydown",U,{capture:!0})},[H]),N.useEffect(()=>{By({collapsed:{},markers:_e})},[_e]),N.useEffect(()=>{try{localStorage.setItem(Of,re)}catch{}},[re]);const je=N.useCallback((U,Y)=>{L(he=>({...he,width:U,userSized:Y}))},[]),Oe=N.useCallback(()=>{L(U=>{const Y={...U,collapsed:!U.collapsed};try{localStorage.setItem(ms,Df(Y))}catch{}return Y})},[]),Me=N.useCallback(()=>{L(U=>{try{localStorage.setItem(ms,Df(U))}catch{}return U})},[]),I=N.useCallback(U=>{L(Y=>{const he=U==="files"&&!Y.userSized?ha(c5,se):Y.width,we={...Y,mode:U,width:he};try{localStorage.setItem(ms,Df(we))}catch{}return we})},[se]),[P,Le]=N.useReducer(Qy,void 0,Iy),kt=N.useRef(P);kt.current=P;const Tu=N.useRef(void 0),[ze,ct]=N.useState(void 0),ge=N.useMemo(()=>Dy(),[]),wt=N.useMemo(()=>ky(),[]);N.useEffect(()=>{const U=new Ty(Cy(),{onEvent:Y=>{if(Y.kind==="snapshot"){const he=Ny(ge,Y.install,wt);if(he.action==="reload"){location.reload();return}he.action==="banner"&&ct(he.message),Oy(Y.install,ma,wt)}if(Y.kind==="error"&&Y.message.startsWith(wy)){const he=jy(Y.message,wt);if(he.action==="reload"){location.reload();return}he.action==="banner"&&ct(he.message);return}switch(l(Y),Y.kind){case"files":Le({kind:"filesLoaded",sessionId:Y.sessionId,path:Y.path,entries:Y.entries,truncated:Y.truncated,readAt:Date.now(),...fp(Y.entries)===void 0?{}:{changedAt:fp(Y.entries)}});break;case"file":Le({kind:"fileLoaded",sessionId:Y.sessionId,path:Y.path,bytes:Y.bytes,content:Y.content});break;case"fileError":Y.request==="list"?Le({kind:"filesFailed",sessionId:Y.sessionId,path:Y.path,reason:Y.reason,...Y.code===void 0?{}:{code:Y.code},message:Y.message}):Le({kind:"fileFailed",sessionId:Y.sessionId,path:Y.path,reason:Y.reason,...Y.code===void 0?{}:{code:Y.code},message:Y.message});break}},onStatus:(Y,he)=>{r(Y),f(he)}});return Tu.current=U,U.connect(),()=>U.disconnect()},[]);const Se=N.useCallback(U=>{const Y=Tu.current?.send(U);return Y||l({kind:"error",message:"Not connected to the orchestrator. Nothing was sent."}),Y},[]),X=S6(u),gn=N.useCallback((U,Y)=>{if(!X)return;const he=X.id;Be(we=>({...we,[he]:{...we[he]??{},[U]:Y}}))},[X]),st=N.useCallback((U,Y,he)=>{Le({kind:"filesLoading",sessionId:U,path:Y}),Se({kind:"listFiles",sessionId:U,path:Y,includeHidden:he})},[Se]),Hu=N.useCallback(U=>{X&&(Le({kind:"setExpanded",sessionId:X.id,path:U,expanded:!0}),si(kt.current,X.id,U).status!=="loaded"&&st(X.id,U,Sr(kt.current,X.id)))},[X,st]),bn=N.useCallback(async(U,Y)=>{let he=qu.current[U]??[];for(const we of Y){const Xt=yg.includes(we.type)?await o_(we):null;if(Xt===null){W(au=>({...au,[U]:a2("unsupported-type",{type:we.type||we.name})})),ee(au=>({...au,[U]:he}));return}ue.current+=1;const ut=a_(he,Xt,`a${ue.current}`);if(!ut.ok){W(au=>({...au,[U]:a2(ut.reason,{bytes:xg(Xt.data)})})),ee(au=>({...au,[U]:he}));return}he=ut.attachments}ee(we=>({...we,[U]:he})),W(we=>({...we,[U]:void 0}))},[]),yn=N.useCallback((U,Y)=>{ee(he=>({...he,[U]:i_(he[U]??[],Y)}))},[]),qu=N.useRef(J);qu.current=J;const nu=N.useCallback(U=>{X&&(Le({kind:"openFile",sessionId:X.id,path:U}),Le({kind:"fileLoading",sessionId:X.id,path:U}),Se({kind:"readFile",sessionId:X.id,path:U}))},[X,Se]),At=N.useCallback((U,Y)=>{kf(kt.current,U,Y).status==="unloaded"&&(Le({kind:"fileLoading",sessionId:U,path:Y}),Se({kind:"readFile",sessionId:U,path:Y}))},[Se]),it=X?.id,xn=N.useCallback(U=>{it!==void 0&&si(kt.current,it,U).status==="unloaded"&&st(it,U,!1)},[it,st]),Vn=N.useCallback(U=>{if(it===void 0)return;const Y=si(P,it,U);if(Y.status==="loaded")return Y.entries.filter(he=>he.kind==="file"||he.kind==="directory").map(he=>({name:he.name,kind:he.kind}))},[it,P]),vn=N.useCallback(U=>{it!==void 0&&At(it,U)},[it,At]),_n=N.useCallback(U=>it===void 0?{status:"unloaded"}:kf(P,it,U),[it,P]),Cu=N.useCallback(()=>{if(!X)return;const U=X.id,Y=!Sr(kt.current,U);Le({kind:"toggleHidden",sessionId:U});const he=`${U}\0`;for(const we of Object.keys(kt.current.directories))we.startsWith(he)&&st(U,we.slice(he.length),Y)},[X,st]),Tt=X?.id;N.useEffect(()=>{Tt&&si(kt.current,Tt,"").status==="unloaded"&&st(Tt,"",Sr(kt.current,Tt))},[Tt,st]);const Xn=u.live.map(U=>U.id).join("\0");N.useEffect(()=>{const U=new Set(u.live.map(Y=>Y.id));for(const Y of Object.keys(kt.current.directories)){const{sessionId:he}=Gy(Y);U.has(he)||Le({kind:"forgetSession",sessionId:he})}},[Xn]),N.useEffect(()=>{if(!Tt)return;const U=()=>{if(document.visibilityState==="hidden")return;const he=qy(kt.current,Tt,Date.now());for(const we of he)st(Tt,we,Sr(kt.current,Tt))},Y=setInterval(U,m2/2);return document.addEventListener("visibilitychange",U),()=>{clearInterval(Y),document.removeEventListener("visibilitychange",U)}},[Tt,st]);const Fl=A6(u,X?.id),rt=_6(u),En=u.home,Zn=E6(u);N.useEffect(()=>{const U=Y=>{const he=Y.metaKey||Y.ctrlKey;he&&Y.key.toLowerCase()==="n"&&(Y.preventDefault(),Se({kind:"start"})),he&&Y.shiftKey&&Y.key.toLowerCase()==="o"&&(Y.preventDefault(),y(!0))};return window.addEventListener("keydown",U),()=>window.removeEventListener("keydown",U)},[Se]),N.useEffect(()=>{l({kind:"loadRoster",entries:s6(localStorage.getItem(hp))})},[]),N.useEffect(()=>{for(const U of u.live){const Y=y2(U);Y!==void 0&&l({kind:"remember",entry:Y})}},[u.live]),N.useEffect(()=>{try{localStorage.setItem(hp,o6(u.roster))}catch{}},[u.roster]),N.useEffect(()=>{const U=u.pendingPrompt;if(U===void 0)return;const Y=b6(U,u.live);Y!==void 0&&(l({kind:"clearPendingPrompt"}),l({kind:"focusRow",key:Y.id}),Se(Y.state==="streaming"&&U.behavior!==void 0?{kind:"prompt",sessionId:Y.id,message:U.message,behavior:U.behavior}:{kind:"prompt",sessionId:Y.id,message:U.message}),te(he=>he+1))},[u.pendingPrompt,u.live,Se]);const Sn=N.useCallback(U=>{X&&Se({kind:"rename",sessionId:X.id,name:U})},[X,Se]),lu=N.useCallback(()=>{l({kind:"expectNewSession"}),Se({kind:"start"})},[Se]),Ku=N.useCallback(U=>{l({kind:"expectNewSession"}),Se({kind:"start",cwd:U}),y(!1),m("sessions")},[Se]),Du=N.useCallback((U,Y)=>{X&&Se({kind:"answerDialog",sessionId:X.id,dialogId:U,answer:Y})},[X,Se]);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:Ry,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:[rt.total," session",rt.total===1?"":"s"]}),rt.running>0&&d.jsxs("span",{children:[rt.running," running"]}),rt.scratch>0&&d.jsxs("span",{children:[rt.scratch," scratch"]}),rt.needs>0&&d.jsxs("span",{className:"fleet-needs",children:[rt.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(h5,{collapsed:Ie.collapsed,onToggle:Oe}),d.jsx("button",{type:"button",className:"btn btn-quiet",ref:T,onClick:()=>R(!0),children:"Settings"})]})]}),Zn&&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."})]}),ze!==void 0&&d.jsxs("div",{className:"direct-banner",role:"alert",children:[d.jsx("strong",{children:"Update available"}),d.jsx("span",{children:ze}),d.jsx("button",{type:"button",className:"btn",onClick:()=>location.reload(),children:"Reload now"})]}),u.errors.length>0&&d.jsx(F5,{message:u.errors[0],onDismiss:()=>l({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:Ie.collapsed?"panes is-collapsed":"panes",style:{"--panel-width":`${Ie.width}px`},children:[d.jsx(z6,{rows:h6(u.roster,u.live),focusedId:u.focusedId,openAsDrawer:H,onCloseDrawer:()=>Z(!1),onFocusRow:U=>{l({kind:"focusRow",key:L5(U)}),m("sessions"),Z(!1)},onForgetRow:U=>l({kind:"forget",path:U.entry.path}),retryAvailable:xy(u.install?.protocol),onRetryRow:U=>{U.session!==void 0&&Se({kind:"retry",sessionId:U.session.id})},onStartSession:lu,onOpenDirectory:()=>y(!0),home:En,historyTotal:u.historyTotal}),h==="history"?d.jsx("main",{className:"column",children:d.jsx(T5,{history:u.history,historyTotal:u.historyTotal,home:En,onResume:U=>{l({kind:"expectNewSession"}),Se({kind:"resume",path:U.path}),m("sessions")}})}):d.jsx("main",{className:"column",children:d.jsx(U5,{session:X,preview:X?vn:O5,previews:X?_n:R5,attachments:X?J[X.id]??f2:f2,onAttach:U=>{X&&bn(X.id,U)},onRemoveAttachment:U=>{X&&yn(X.id,U)},attachNotice:X?$[X.id]:void 0,listMentionDirectory:X?xn:z5,mentionEntries:X?Vn:M5,showMarkers:X?_e[X.id]!==!1:!0,activityOpen:X?Ke[X.id]??{}:{},onToggleActivity:gn,onInspectTool:U=>{X!==void 0&&(K(Y=>({...Y,[X.id]:U})),L(Y=>({...Y,collapsed:!1,mode:"trace"})))},onToggleMarkers:()=>X&&Te(U=>({...U,[X.id]:U[X.id]===!1})),transcript:Fl,home:En,historyError:u.transcriptErrors[X?.id??""],followToken:ce,autoFollow:ie,onToggleAutoFollow:()=>Ye(U=>!U),scrollMemory:Ve,models:X?u.models[X.id]:void 0,modelError:X?u.modelErrors[X.id]:void 0,onRename:Sn,onAnswer:Du,onRequestModels:()=>{X&&Se({kind:"listModels",sessionId:X.id})},onSelectModel:(U,Y)=>{X&&Se({kind:"setModel",sessionId:X.id,provider:U,modelId:Y})},thinking:{levels:X?u.thinkingLevels[X.id]:void 0,error:X?u.thinkingLevelErrors[X.id]:void 0},onRequestThinkingLevels:()=>{X&&Se({kind:"listThinkingLevels",sessionId:X.id})},onSelectThinkingLevel:U=>{X&&Se({kind:"setThinkingLevel",sessionId:X.id,level:U})},onSend:(U,Y)=>{if(!X)return;const he=X.id,we=c_(qu.current[he]??[]);Se({kind:"prompt",sessionId:he,message:U,...X.state==="streaming"?{behavior:Y}:{},...we.length>0?{images:we}:{}})&&we.length>0&&ee(ut=>({...ut,[he]:[]})),te(ut=>ut+1)},onClearQueueAndStop:()=>{X&&Se({kind:"clearQueue",sessionId:X.id,andStop:!0})},state:u,restored:X?u.restoredQueue[X.id]??[]:[],onRestored:()=>{X&&l({kind:"queueRestored",sessionId:X.id})},draft:X?ne[X.id]??"":"",onDraftChange:U=>{X&&Q(Y=>({...Y,[X.id]:U}))}},X?.id)}),!Ie.collapsed&&d.jsx(d5,{mode:Ie.mode,onMode:I,width:Ie.width,onWidth:je,viewportWidth:se,onCommit:Me,children:Ie.mode==="trace"?X?d.jsx(g_,{tools:Fl.tools,selectedId:ye[X.id],onSelect:U=>K(Y=>({...Y,[X.id]:U})),showMarkers:_e[X.id]!==!1,onToggleMarkers:()=>Te(U=>({...U,[X.id]:U[X.id]===!1})),variant:"panel",order:re,onOrder:ae,detailHeight:Ce,onDetailHeight:be,onResetDetailHeight:()=>be(Dr)}):d.jsx("p",{className:"panel-empty",children:"Select a session to see what it ran."}):Ie.mode==="session"?d.jsx(Y_,{session:h==="sessions"?X:void 0,home:En,onStop:()=>X&&x(X),onRename:Sn}):X?d.jsx(a5,{sessionId:X.id,files:P,cwd:X.cwd,onExpand:Hu,onCollapse:U=>Le({kind:"setExpanded",sessionId:X.id,path:U,expanded:!1}),onToggleHidden:Cu,wrapped:Vy(P,X.id),onToggleWrap:()=>Le({kind:"toggleWrap",sessionId:X.id}),onOpenFile:nu,onCloseFile:()=>Le({kind:"closeFile",sessionId:X.id})}):d.jsx("p",{className:"panel-empty",children:"Select a session to browse its working directory."})})]}),k&&d.jsx(J_,{install:u.install,ready:u.ready,onClose:()=>{R(!1),T.current?.focus()}}),g&&d.jsx(b5,{installationRoot:u.installationRoot,onClose:()=>y(!1),onOpen:Ku}),v&&d.jsx(B5,{session:v,onCancel:()=>x(void 0),onConfirm:()=>{Se({kind:"stop",sessionId:v.id}),x(void 0)}})]})}const O5=()=>{},R5=()=>({status:"unloaded"}),f2=Object.freeze([]),z5=()=>{},M5=()=>{};function L5(u){return u.session?.id??u.entry.path}function U5({session:u,preview:l,previews:i,attachments:r,onAttach:o,onRemoveAttachment:f,attachNotice:h,listMentionDirectory:m,mentionEntries:g,transcript:y,home:v,historyError:x,models:k,modelError:R,onAnswer:T,onRename:ne,onRequestModels:Q,onSelectModel:J,thinking:ee,onRequestThinkingLevels:ue,onSelectThinkingLevel:$,onSend:W,onClearQueueAndStop:ce,followToken:te,autoFollow:ie,showMarkers:Ye,activityOpen:Ve,onToggleActivity:_e,onInspectTool:Te,onToggleMarkers:Ke,onToggleAutoFollow:Be,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 Ie=u.state==="streaming",L=r_(k?.find(se=>se.id===u.model)?.input??k?.find(se=>se.name===u.model)?.input);return d.jsxs(d.Fragment,{children:[d.jsx(I_,{dialogs:u.dialogs,onAnswer:T}),d.jsx(u_,{initialScroll:ye.current.get(u.id),onScrollMemory:se=>ye.current.set(u.id,se),followToken:te,autoFollow:ie,transcript:y,busy:Ie,sessionId:u.id,preview:l,previews:i,sessionLabel:vs(u),expectedCount:u.messageCount,showMarkers:Ye,activityOpen:Ve,onToggleActivity:_e,onToggleAutoFollow:Be,historyError:x,onOpenTool:se=>Te(se),header:d.jsx(A5,{session:u,home:v,models:k,modelError:R,onRequestModels:Q,onSelectModel:J,thinking:ee,onRequestThinkingLevels:ue,onSelectThinkingLevel:$,onRename:ne,busy:Ie,warnings:u.warnings}),footer:T6({...x2(),live:[u]})>0?void 0:d.jsx(q_,{session:u,state:ae,unavailableReason:C6(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:Be===void 0?void 0:d.jsx(F6,{following:ie,onToggle:Be})})})]})}function F5({message:u,onDismiss:l}){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:l,children:"Dismiss"})})]})}function B5({session:u,onCancel:l,onConfirm:i}){const r=N.useRef(null);return N.useEffect(()=>{r.current?.focus();const o=f=>{f.key==="Escape"&&l()};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[l]),d.jsx("div",{className:"modal-backdrop",onClick:l,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:l,children:"Keep running"})]})]})})}const kg=document.getElementById("root");if(!kg)throw new Error("missing #root");my.createRoot(kg).render(d.jsx(N.StrictMode,{children:d.jsx(j5,{})}));"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(()=>{})});export{ps as _};
|