pi-webapp 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function r(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=r(s);fetch(s.href,u)}})();function O1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ua={exports:{}},nl={},Wa={exports:{}},ze={};/**
1
+ (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function i(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=i(s);fetch(s.href,u)}})();function q1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ka={exports:{}},al={},Ya={exports:{}},Ae={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var U0;function S4(){if(U0)return ze;U0=1;var t=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=y&&z[y]||z["@@iterator"],typeof z=="function"?z:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,N={};function b(z,Q,j){this.props=z,this.context=Q,this.refs=N,this.updater=j||C}b.prototype.isReactComponent={},b.prototype.setState=function(z,Q){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,Q,"setState")},b.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function _(){}_.prototype=b.prototype;function T(z,Q,j){this.props=z,this.context=Q,this.refs=N,this.updater=j||C}var I=T.prototype=new _;I.constructor=T,k(I,b.prototype),I.isPureReactComponent=!0;var U=Array.isArray,Z=Object.prototype.hasOwnProperty,F={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function Y(z,Q,j){var xe,_e={},he=null,X=null;if(Q!=null)for(xe in Q.ref!==void 0&&(X=Q.ref),Q.key!==void 0&&(he=""+Q.key),Q)Z.call(Q,xe)&&!W.hasOwnProperty(xe)&&(_e[xe]=Q[xe]);var ye=arguments.length-2;if(ye===1)_e.children=j;else if(1<ye){for(var Se=Array(ye),Oe=0;Oe<ye;Oe++)Se[Oe]=arguments[Oe+2];_e.children=Se}if(z&&z.defaultProps)for(xe in ye=z.defaultProps,ye)_e[xe]===void 0&&(_e[xe]=ye[xe]);return{$$typeof:t,type:z,key:he,ref:X,props:_e,_owner:F.current}}function ee(z,Q){return{$$typeof:t,type:z.type,key:Q,ref:z.ref,props:z.props,_owner:z._owner}}function S(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function $(z){var Q={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(j){return Q[j]})}var K=/\/+/g;function q(z,Q){return typeof z=="object"&&z!==null&&z.key!=null?$(""+z.key):Q.toString(36)}function A(z,Q,j,xe,_e){var he=typeof z;(he==="undefined"||he==="boolean")&&(z=null);var X=!1;if(z===null)X=!0;else switch(he){case"string":case"number":X=!0;break;case"object":switch(z.$$typeof){case t:case i:X=!0}}if(X)return X=z,_e=_e(X),z=xe===""?"."+q(X,0):xe,U(_e)?(j="",z!=null&&(j=z.replace(K,"$&/")+"/"),A(_e,Q,j,"",function(Oe){return Oe})):_e!=null&&(S(_e)&&(_e=ee(_e,j+(!_e.key||X&&X.key===_e.key?"":(""+_e.key).replace(K,"$&/")+"/")+z)),Q.push(_e)),1;if(X=0,xe=xe===""?".":xe+":",U(z))for(var ye=0;ye<z.length;ye++){he=z[ye];var Se=xe+q(he,ye);X+=A(he,Q,j,Se,_e)}else if(Se=v(z),typeof Se=="function")for(z=Se.call(z),ye=0;!(he=z.next()).done;)he=he.value,Se=xe+q(he,ye++),X+=A(he,Q,j,Se,_e);else if(he==="object")throw Q=String(z),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.");return X}function D(z,Q,j){if(z==null)return z;var xe=[],_e=0;return A(z,xe,"","",function(he){return Q.call(j,he,_e++)}),xe}function ie(z){if(z._status===-1){var Q=z._result;Q=Q(),Q.then(function(j){(z._status===0||z._status===-1)&&(z._status=1,z._result=j)},function(j){(z._status===0||z._status===-1)&&(z._status=2,z._result=j)}),z._status===-1&&(z._status=0,z._result=Q)}if(z._status===1)return z._result.default;throw z._result}var ce={current:null},V={transition:null},le={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:V,ReactCurrentOwner:F};function E(){throw Error("act(...) is not supported in production builds of React.")}return ze.Children={map:D,forEach:function(z,Q,j){D(z,function(){Q.apply(this,arguments)},j)},count:function(z){var Q=0;return D(z,function(){Q++}),Q},toArray:function(z){return D(z,function(Q){return Q})||[]},only:function(z){if(!S(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},ze.Component=b,ze.Fragment=r,ze.Profiler=s,ze.PureComponent=T,ze.StrictMode=o,ze.Suspense=h,ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=le,ze.act=E,ze.cloneElement=function(z,Q,j){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var xe=k({},z.props),_e=z.key,he=z.ref,X=z._owner;if(Q!=null){if(Q.ref!==void 0&&(he=Q.ref,X=F.current),Q.key!==void 0&&(_e=""+Q.key),z.type&&z.type.defaultProps)var ye=z.type.defaultProps;for(Se in Q)Z.call(Q,Se)&&!W.hasOwnProperty(Se)&&(xe[Se]=Q[Se]===void 0&&ye!==void 0?ye[Se]:Q[Se])}var Se=arguments.length-2;if(Se===1)xe.children=j;else if(1<Se){ye=Array(Se);for(var Oe=0;Oe<Se;Oe++)ye[Oe]=arguments[Oe+2];xe.children=ye}return{$$typeof:t,type:z.type,key:_e,ref:he,props:xe,_owner:X}},ze.createContext=function(z){return z={$$typeof:c,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:u,_context:z},z.Consumer=z},ze.createElement=Y,ze.createFactory=function(z){var Q=Y.bind(null,z);return Q.type=z,Q},ze.createRef=function(){return{current:null}},ze.forwardRef=function(z){return{$$typeof:f,render:z}},ze.isValidElement=S,ze.lazy=function(z){return{$$typeof:x,_payload:{_status:-1,_result:z},_init:ie}},ze.memo=function(z,Q){return{$$typeof:m,type:z,compare:Q===void 0?null:Q}},ze.startTransition=function(z){var Q=V.transition;V.transition={};try{z()}finally{V.transition=Q}},ze.unstable_act=E,ze.useCallback=function(z,Q){return ce.current.useCallback(z,Q)},ze.useContext=function(z){return ce.current.useContext(z)},ze.useDebugValue=function(){},ze.useDeferredValue=function(z){return ce.current.useDeferredValue(z)},ze.useEffect=function(z,Q){return ce.current.useEffect(z,Q)},ze.useId=function(){return ce.current.useId()},ze.useImperativeHandle=function(z,Q,j){return ce.current.useImperativeHandle(z,Q,j)},ze.useInsertionEffect=function(z,Q){return ce.current.useInsertionEffect(z,Q)},ze.useLayoutEffect=function(z,Q){return ce.current.useLayoutEffect(z,Q)},ze.useMemo=function(z,Q){return ce.current.useMemo(z,Q)},ze.useReducer=function(z,Q,j){return ce.current.useReducer(z,Q,j)},ze.useRef=function(z){return ce.current.useRef(z)},ze.useState=function(z){return ce.current.useState(z)},ze.useSyncExternalStore=function(z,Q,j){return ce.current.useSyncExternalStore(z,Q,j)},ze.useTransition=function(){return ce.current.useTransition()},ze.version="18.3.1",ze}var W0;function B1(){return W0||(W0=1,Wa.exports=S4()),Wa.exports}/**
9
+ */var X0;function R4(){if(X0)return Ae;X0=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function v(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,P={};function R(A,K,N){this.props=A,this.context=K,this.refs=P,this.updater=N||C}R.prototype.isReactComponent={},R.prototype.setState=function(A,K){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,K,"setState")},R.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function j(){}j.prototype=R.prototype;function V(A,K,N){this.props=A,this.context=K,this.refs=P,this.updater=N||C}var b=V.prototype=new j;b.constructor=V,k(b,R.prototype),b.isPureReactComponent=!0;var $=Array.isArray,B=Object.prototype.hasOwnProperty,T={current:null},ee={key:!0,ref:!0,__self:!0,__source:!0};function ie(A,K,N){var ge,ve={},fe=null,Ne=null;if(K!=null)for(ge in K.ref!==void 0&&(Ne=K.ref),K.key!==void 0&&(fe=""+K.key),K)B.call(K,ge)&&!ee.hasOwnProperty(ge)&&(ve[ge]=K[ge]);var Ee=arguments.length-2;if(Ee===1)ve.children=N;else if(1<Ee){for(var ze=Array(Ee),Ue=0;Ue<Ee;Ue++)ze[Ue]=arguments[Ue+2];ve.children=ze}if(A&&A.defaultProps)for(ge in Ee=A.defaultProps,Ee)ve[ge]===void 0&&(ve[ge]=Ee[ge]);return{$$typeof:e,type:A,key:fe,ref:Ne,props:ve,_owner:T.current}}function Y(A,K){return{$$typeof:e,type:A.type,key:K,ref:A.ref,props:A.props,_owner:A._owner}}function D(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function L(A){var K={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(N){return K[N]})}var Z=/\/+/g;function te(A,K){return typeof A=="object"&&A!==null&&A.key!=null?L(""+A.key):K.toString(36)}function W(A,K,N,ge,ve){var fe=typeof A;(fe==="undefined"||fe==="boolean")&&(A=null);var Ne=!1;if(A===null)Ne=!0;else switch(fe){case"string":case"number":Ne=!0;break;case"object":switch(A.$$typeof){case e:case r:Ne=!0}}if(Ne)return Ne=A,ve=ve(Ne),A=ge===""?"."+te(Ne,0):ge,$(ve)?(N="",A!=null&&(N=A.replace(Z,"$&/")+"/"),W(ve,K,N,"",function(Ue){return Ue})):ve!=null&&(D(ve)&&(ve=Y(ve,N+(!ve.key||Ne&&Ne.key===ve.key?"":(""+ve.key).replace(Z,"$&/")+"/")+A)),K.push(ve)),1;if(Ne=0,ge=ge===""?".":ge+":",$(A))for(var Ee=0;Ee<A.length;Ee++){fe=A[Ee];var ze=ge+te(fe,Ee);Ne+=W(fe,K,N,ze,ve)}else if(ze=v(A),typeof ze=="function")for(A=ze.call(A),Ee=0;!(fe=A.next()).done;)fe=fe.value,ze=ge+te(fe,Ee++),Ne+=W(fe,K,N,ze,ve);else if(fe==="object")throw K=String(A),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.");return Ne}function O(A,K,N){if(A==null)return A;var ge=[],ve=0;return W(A,ge,"","",function(fe){return K.call(N,fe,ve++)}),ge}function I(A){if(A._status===-1){var K=A._result;K=K(),K.then(function(N){(A._status===0||A._status===-1)&&(A._status=1,A._result=N)},function(N){(A._status===0||A._status===-1)&&(A._status=2,A._result=N)}),A._status===-1&&(A._status=0,A._result=K)}if(A._status===1)return A._result.default;throw A._result}var J={current:null},z={transition:null},ne={ReactCurrentDispatcher:J,ReactCurrentBatchConfig:z,ReactCurrentOwner:T};function S(){throw Error("act(...) is not supported in production builds of React.")}return Ae.Children={map:O,forEach:function(A,K,N){O(A,function(){K.apply(this,arguments)},N)},count:function(A){var K=0;return O(A,function(){K++}),K},toArray:function(A){return O(A,function(K){return K})||[]},only:function(A){if(!D(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Ae.Component=R,Ae.Fragment=i,Ae.Profiler=s,Ae.PureComponent=V,Ae.StrictMode=o,Ae.Suspense=p,Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,Ae.act=S,Ae.cloneElement=function(A,K,N){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var ge=k({},A.props),ve=A.key,fe=A.ref,Ne=A._owner;if(K!=null){if(K.ref!==void 0&&(fe=K.ref,Ne=T.current),K.key!==void 0&&(ve=""+K.key),A.type&&A.type.defaultProps)var Ee=A.type.defaultProps;for(ze in K)B.call(K,ze)&&!ee.hasOwnProperty(ze)&&(ge[ze]=K[ze]===void 0&&Ee!==void 0?Ee[ze]:K[ze])}var ze=arguments.length-2;if(ze===1)ge.children=N;else if(1<ze){Ee=Array(ze);for(var Ue=0;Ue<ze;Ue++)Ee[Ue]=arguments[Ue+2];ge.children=Ee}return{$$typeof:e,type:A.type,key:ve,ref:fe,props:ge,_owner:Ne}},Ae.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:u,_context:A},A.Consumer=A},Ae.createElement=ie,Ae.createFactory=function(A){var K=ie.bind(null,A);return K.type=A,K},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(A){return{$$typeof:f,render:A}},Ae.isValidElement=D,Ae.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:I}},Ae.memo=function(A,K){return{$$typeof:m,type:A,compare:K===void 0?null:K}},Ae.startTransition=function(A){var K=z.transition;z.transition={};try{A()}finally{z.transition=K}},Ae.unstable_act=S,Ae.useCallback=function(A,K){return J.current.useCallback(A,K)},Ae.useContext=function(A){return J.current.useContext(A)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(A){return J.current.useDeferredValue(A)},Ae.useEffect=function(A,K){return J.current.useEffect(A,K)},Ae.useId=function(){return J.current.useId()},Ae.useImperativeHandle=function(A,K,N){return J.current.useImperativeHandle(A,K,N)},Ae.useInsertionEffect=function(A,K){return J.current.useInsertionEffect(A,K)},Ae.useLayoutEffect=function(A,K){return J.current.useLayoutEffect(A,K)},Ae.useMemo=function(A,K){return J.current.useMemo(A,K)},Ae.useReducer=function(A,K,N){return J.current.useReducer(A,K,N)},Ae.useRef=function(A){return J.current.useRef(A)},Ae.useState=function(A){return J.current.useState(A)},Ae.useSyncExternalStore=function(A,K,N){return J.current.useSyncExternalStore(A,K,N)},Ae.useTransition=function(){return J.current.useTransition()},Ae.version="18.3.1",Ae}var J0;function Z1(){return J0||(J0=1,Ya.exports=R4()),Ya.exports}/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var q0;function E4(){if(q0)return nl;q0=1;var t=B1(),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(f,h,m){var x,y={},v=null,C=null;m!==void 0&&(v=""+m),h.key!==void 0&&(v=""+h.key),h.ref!==void 0&&(C=h.ref);for(x in h)o.call(h,x)&&!u.hasOwnProperty(x)&&(y[x]=h[x]);if(f&&f.defaultProps)for(x in h=f.defaultProps,h)y[x]===void 0&&(y[x]=h[x]);return{$$typeof:i,type:f,key:v,ref:C,props:y,_owner:s.current}}return nl.Fragment=r,nl.jsx=c,nl.jsxs=c,nl}var Z0;function b4(){return Z0||(Z0=1,Ua.exports=E4()),Ua.exports}var d=b4(),Po={},qa={exports:{}},Ut={},Za={exports:{}},Qa={};/**
17
+ */var e2;function A4(){if(e2)return al;e2=1;var e=Z1(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(f,p,m){var y,x={},v=null,C=null;m!==void 0&&(v=""+m),p.key!==void 0&&(v=""+p.key),p.ref!==void 0&&(C=p.ref);for(y in p)o.call(p,y)&&!u.hasOwnProperty(y)&&(x[y]=p[y]);if(f&&f.defaultProps)for(y in p=f.defaultProps,p)x[y]===void 0&&(x[y]=p[y]);return{$$typeof:r,type:f,key:v,ref:C,props:x,_owner:s.current}}return al.Fragment=i,al.jsx=d,al.jsxs=d,al}var t2;function F4(){return t2||(t2=1,Ka.exports=A4()),Ka.exports}var c=F4(),Oo={},Xa={exports:{}},Gt={},Ja={exports:{}},e1={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Q0;function j4(){return Q0||(Q0=1,(function(t){function i(V,le){var E=V.length;V.push(le);e:for(;0<E;){var z=E-1>>>1,Q=V[z];if(0<s(Q,le))V[z]=le,V[E]=Q,E=z;else break e}}function r(V){return V.length===0?null:V[0]}function o(V){if(V.length===0)return null;var le=V[0],E=V.pop();if(E!==le){V[0]=E;e:for(var z=0,Q=V.length,j=Q>>>1;z<j;){var xe=2*(z+1)-1,_e=V[xe],he=xe+1,X=V[he];if(0>s(_e,E))he<Q&&0>s(X,_e)?(V[z]=X,V[he]=E,z=he):(V[z]=_e,V[xe]=E,z=xe);else if(he<Q&&0>s(X,E))V[z]=X,V[he]=E,z=he;else break e}}return le}function s(V,le){var E=V.sortIndex-le.sortIndex;return E!==0?E:V.id-le.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();t.unstable_now=function(){return c.now()-f}}var h=[],m=[],x=1,y=null,v=3,C=!1,k=!1,N=!1,b=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(V){for(var le=r(m);le!==null;){if(le.callback===null)o(m);else if(le.startTime<=V)o(m),le.sortIndex=le.expirationTime,i(h,le);else break;le=r(m)}}function U(V){if(N=!1,I(V),!k)if(r(h)!==null)k=!0,ie(Z);else{var le=r(m);le!==null&&ce(U,le.startTime-V)}}function Z(V,le){k=!1,N&&(N=!1,_(Y),Y=-1),C=!0;var E=v;try{for(I(le),y=r(h);y!==null&&(!(y.expirationTime>le)||V&&!$());){var z=y.callback;if(typeof z=="function"){y.callback=null,v=y.priorityLevel;var Q=z(y.expirationTime<=le);le=t.unstable_now(),typeof Q=="function"?y.callback=Q:y===r(h)&&o(h),I(le)}else o(h);y=r(h)}if(y!==null)var j=!0;else{var xe=r(m);xe!==null&&ce(U,xe.startTime-le),j=!1}return j}finally{y=null,v=E,C=!1}}var F=!1,W=null,Y=-1,ee=5,S=-1;function $(){return!(t.unstable_now()-S<ee)}function K(){if(W!==null){var V=t.unstable_now();S=V;var le=!0;try{le=W(!0,V)}finally{le?q():(F=!1,W=null)}}else F=!1}var q;if(typeof T=="function")q=function(){T(K)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,D=A.port2;A.port1.onmessage=K,q=function(){D.postMessage(null)}}else q=function(){b(K,0)};function ie(V){W=V,F||(F=!0,q())}function ce(V,le){Y=b(function(){V(t.unstable_now())},le)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(V){V.callback=null},t.unstable_continueExecution=function(){k||C||(k=!0,ie(Z))},t.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<V?Math.floor(1e3/V):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_getFirstCallbackNode=function(){return r(h)},t.unstable_next=function(V){switch(v){case 1:case 2:case 3:var le=3;break;default:le=v}var E=v;v=le;try{return V()}finally{v=E}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(V,le){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var E=v;v=V;try{return le()}finally{v=E}},t.unstable_scheduleCallback=function(V,le,E){var z=t.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?z+E:z):E=z,V){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=E+Q,V={id:x++,callback:le,priorityLevel:V,startTime:E,expirationTime:Q,sortIndex:-1},E>z?(V.sortIndex=E,i(m,V),r(h)===null&&V===r(m)&&(N?(_(Y),Y=-1):N=!0,ce(U,E-z))):(V.sortIndex=Q,i(h,V),k||C||(k=!0,ie(Z))),V},t.unstable_shouldYield=$,t.unstable_wrapCallback=function(V){var le=v;return function(){var E=v;v=le;try{return V.apply(this,arguments)}finally{v=E}}}})(Qa)),Qa}var G0;function L4(){return G0||(G0=1,Za.exports=j4()),Za.exports}/**
25
+ */var n2;function O4(){return n2||(n2=1,(function(e){function r(z,ne){var S=z.length;z.push(ne);e:for(;0<S;){var A=S-1>>>1,K=z[A];if(0<s(K,ne))z[A]=ne,z[S]=K,S=A;else break e}}function i(z){return z.length===0?null:z[0]}function o(z){if(z.length===0)return null;var ne=z[0],S=z.pop();if(S!==ne){z[0]=S;e:for(var A=0,K=z.length,N=K>>>1;A<N;){var ge=2*(A+1)-1,ve=z[ge],fe=ge+1,Ne=z[fe];if(0>s(ve,S))fe<K&&0>s(Ne,ve)?(z[A]=Ne,z[fe]=S,A=fe):(z[A]=ve,z[ge]=S,A=ge);else if(fe<K&&0>s(Ne,S))z[A]=Ne,z[fe]=S,A=fe;else break e}}return ne}function s(z,ne){var S=z.sortIndex-ne.sortIndex;return S!==0?S:z.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],y=1,x=null,v=3,C=!1,k=!1,P=!1,R=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(z){for(var ne=i(m);ne!==null;){if(ne.callback===null)o(m);else if(ne.startTime<=z)o(m),ne.sortIndex=ne.expirationTime,r(p,ne);else break;ne=i(m)}}function $(z){if(P=!1,b(z),!k)if(i(p)!==null)k=!0,I(B);else{var ne=i(m);ne!==null&&J($,ne.startTime-z)}}function B(z,ne){k=!1,P&&(P=!1,j(ie),ie=-1),C=!0;var S=v;try{for(b(ne),x=i(p);x!==null&&(!(x.expirationTime>ne)||z&&!L());){var A=x.callback;if(typeof A=="function"){x.callback=null,v=x.priorityLevel;var K=A(x.expirationTime<=ne);ne=e.unstable_now(),typeof K=="function"?x.callback=K:x===i(p)&&o(p),b(ne)}else o(p);x=i(p)}if(x!==null)var N=!0;else{var ge=i(m);ge!==null&&J($,ge.startTime-ne),N=!1}return N}finally{x=null,v=S,C=!1}}var T=!1,ee=null,ie=-1,Y=5,D=-1;function L(){return!(e.unstable_now()-D<Y)}function Z(){if(ee!==null){var z=e.unstable_now();D=z;var ne=!0;try{ne=ee(!0,z)}finally{ne?te():(T=!1,ee=null)}}else T=!1}var te;if(typeof V=="function")te=function(){V(Z)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,O=W.port2;W.port1.onmessage=Z,te=function(){O.postMessage(null)}}else te=function(){R(Z,0)};function I(z){ee=z,T||(T=!0,te())}function J(z,ne){ie=R(function(){z(e.unstable_now())},ne)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){k||C||(k=!0,I(B))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(z){switch(v){case 1:case 2:case 3:var ne=3;break;default:ne=v}var S=v;v=ne;try{return z()}finally{v=S}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,ne){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var S=v;v=z;try{return ne()}finally{v=S}},e.unstable_scheduleCallback=function(z,ne,S){var A=e.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?A+S:A):S=A,z){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=S+K,z={id:y++,callback:ne,priorityLevel:z,startTime:S,expirationTime:K,sortIndex:-1},S>A?(z.sortIndex=S,r(m,z),i(p)===null&&z===i(m)&&(P?(j(ie),ie=-1):P=!0,J($,S-A))):(z.sortIndex=K,r(p,z),k||C||(k=!0,I(B))),z},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(z){var ne=v;return function(){var S=v;v=ne;try{return z.apply(this,arguments)}finally{v=S}}}})(e1)),e1}var r2;function $4(){return r2||(r2=1,Ja.exports=O4()),Ja.exports}/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,64 +30,64 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Y0;function N4(){if(Y0)return Ut;Y0=1;var t=B1(),i=L4();function r(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function u(e,n){c(e,n),c(e+"Capture",n)}function c(e,n){for(s[e]=n,e=0;e<n.length;e++)o.add(n[e])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,m=/^[: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]*$/,x={},y={};function v(e){return h.call(y,e)?!0:h.call(x,e)?!1:m.test(e)?y[e]=!0:(x[e]=!0,!1)}function C(e,n,l,a){if(l!==null&&l.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return a?!1:l!==null?!l.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function k(e,n,l,a){if(n===null||typeof n>"u"||C(e,n,l,a))return!0;if(a)return!1;if(l!==null)switch(l.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function N(e,n,l,a,p,g,w){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=a,this.attributeNamespace=p,this.mustUseProperty=l,this.propertyName=e,this.type=n,this.sanitizeURL=g,this.removeEmptyString=w}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new N(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];b[n]=new N(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new N(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new N(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){b[e]=new N(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){b[e]=new N(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){b[e]=new N(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){b[e]=new N(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){b[e]=new N(e,5,!1,e.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function T(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(_,T);b[n]=new N(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(_,T);b[n]=new N(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(_,T);b[n]=new N(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){b[e]=new N(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){b[e]=new N(e,1,!1,e.toLowerCase(),null,!0,!0)});function I(e,n,l,a){var p=b.hasOwnProperty(n)?b[n]:null;(p!==null?p.type!==0:a||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(k(n,l,p,a)&&(l=null),a||p===null?v(n)&&(l===null?e.removeAttribute(n):e.setAttribute(n,""+l)):p.mustUseProperty?e[p.propertyName]=l===null?p.type===3?!1:"":l:(n=p.attributeName,a=p.attributeNamespace,l===null?e.removeAttribute(n):(p=p.type,l=p===3||p===4&&l===!0?"":""+l,a?e.setAttributeNS(a,n,l):e.setAttribute(n,l))))}var U=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Z=Symbol.for("react.element"),F=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),ee=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),$=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),ce=Symbol.for("react.offscreen"),V=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=V&&e[V]||e["@@iterator"],typeof e=="function"?e:null)}var E=Object.assign,z;function Q(e){if(z===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);z=n&&n[1]||""}return`
34
- `+z+e}var j=!1;function xe(e,n){if(!e||j)return"";j=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(H){var a=H}Reflect.construct(e,[],n)}else{try{n.call()}catch(H){a=H}e.call(n.prototype)}else{try{throw Error()}catch(H){a=H}e()}}catch(H){if(H&&a&&typeof H.stack=="string"){for(var p=H.stack.split(`
33
+ */var i2;function B4(){if(i2)return Gt;i2=1;var e=Z1(),r=$4();function i(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,l=1;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function u(t,n){d(t,n),d(t+"Capture",n)}function d(t,n){for(s[t]=n,t=0;t<n.length;t++)o.add(n[t])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[: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]*$/,y={},x={};function v(t){return p.call(x,t)?!0:p.call(y,t)?!1:m.test(t)?x[t]=!0:(y[t]=!0,!1)}function C(t,n,l,a){if(l!==null&&l.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return a?!1:l!==null?!l.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function k(t,n,l,a){if(n===null||typeof n>"u"||C(t,n,l,a))return!0;if(a)return!1;if(l!==null)switch(l.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function P(t,n,l,a,h,g,w){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=a,this.attributeNamespace=h,this.mustUseProperty=l,this.propertyName=t,this.type=n,this.sanitizeURL=g,this.removeEmptyString=w}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){R[t]=new P(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var n=t[0];R[n]=new P(n,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){R[t]=new P(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){R[t]=new P(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){R[t]=new P(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){R[t]=new P(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){R[t]=new P(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){R[t]=new P(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){R[t]=new P(t,5,!1,t.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function V(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var n=t.replace(j,V);R[n]=new P(n,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var n=t.replace(j,V);R[n]=new P(n,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var n=t.replace(j,V);R[n]=new P(n,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){R[t]=new P(t,1,!1,t.toLowerCase(),null,!1,!1)}),R.xlinkHref=new P("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){R[t]=new P(t,1,!1,t.toLowerCase(),null,!0,!0)});function b(t,n,l,a){var h=R.hasOwnProperty(n)?R[n]:null;(h!==null?h.type!==0:a||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(k(n,l,h,a)&&(l=null),a||h===null?v(n)&&(l===null?t.removeAttribute(n):t.setAttribute(n,""+l)):h.mustUseProperty?t[h.propertyName]=l===null?h.type===3?!1:"":l:(n=h.attributeName,a=h.attributeNamespace,l===null?t.removeAttribute(n):(h=h.type,l=h===3||h===4&&l===!0?"":""+l,a?t.setAttributeNS(a,n,l):t.setAttribute(n,l))))}var $=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,B=Symbol.for("react.element"),T=Symbol.for("react.portal"),ee=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),L=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),J=Symbol.for("react.offscreen"),z=Symbol.iterator;function ne(t){return t===null||typeof t!="object"?null:(t=z&&t[z]||t["@@iterator"],typeof t=="function"?t:null)}var S=Object.assign,A;function K(t){if(A===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);A=n&&n[1]||""}return`
34
+ `+A+t}var N=!1;function ge(t,n){if(!t||N)return"";N=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(G){var a=G}Reflect.construct(t,[],n)}else{try{n.call()}catch(G){a=G}t.call(n.prototype)}else{try{throw Error()}catch(G){a=G}t()}}catch(G){if(G&&a&&typeof G.stack=="string"){for(var h=G.stack.split(`
35
35
  `),g=a.stack.split(`
36
- `),w=p.length-1,L=g.length-1;1<=w&&0<=L&&p[w]!==g[L];)L--;for(;1<=w&&0<=L;w--,L--)if(p[w]!==g[L]){if(w!==1||L!==1)do if(w--,L--,0>L||p[w]!==g[L]){var P=`
37
- `+p[w].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=w&&0<=L);break}}}finally{j=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?Q(e):""}function _e(e){switch(e.tag){case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 2:case 15:return e=xe(e.type,!1),e;case 11:return e=xe(e.type.render,!1),e;case 1:return e=xe(e.type,!0),e;default:return""}}function he(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case F:return"Portal";case ee:return"Profiler";case Y:return"StrictMode";case q:return"Suspense";case A:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case K:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case D:return n=e.displayName||null,n!==null?n:he(e.type)||"Memo";case ie:n=e._payload,e=e._init;try{return he(e(n))}catch{}}return null}function X(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(n);case 8:return n===Y?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function ye(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Se(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Oe(e){var n=Se(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),a=""+e[n];if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,g=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return p.call(this)},set:function(w){a=""+w,g.call(this,w)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(w){a=""+w},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Ct(e){e._valueTracker||(e._valueTracker=Oe(e))}function It(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),a="";return e&&(a=Se(e)?e.checked?"true":"false":e.value),e=a,e!==l?(n.setValue(e),!0):!1}function J(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 je(e,n){var l=n.checked;return E({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??e._wrapperState.initialChecked})}function Me(e,n){var l=n.defaultValue==null?"":n.defaultValue,a=n.checked!=null?n.checked:n.defaultChecked;l=ye(n.value!=null?n.value:l),e._wrapperState={initialChecked:a,initialValue:l,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Ue(e,n){n=n.checked,n!=null&&I(e,"checked",n,!1)}function qe(e,n){Ue(e,n);var l=ye(n.value),a=n.type;if(l!=null)a==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+l):e.value!==""+l&&(e.value=""+l);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Ae(e,n.type,l):n.hasOwnProperty("defaultValue")&&Ae(e,n.type,ye(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Mt(e,n,l){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var a=n.type;if(!(a!=="submit"&&a!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,l||n===e.value||(e.value=n),e.defaultValue=n}l=e.name,l!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,l!==""&&(e.name=l)}function Ae(e,n,l){(n!=="number"||J(e.ownerDocument)!==e)&&(l==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+l&&(e.defaultValue=""+l))}var Tt=Array.isArray;function Ft(e,n,l,a){if(e=e.options,n){n={};for(var p=0;p<l.length;p++)n["$"+l[p]]=!0;for(l=0;l<e.length;l++)p=n.hasOwnProperty("$"+e[l].value),e[l].selected!==p&&(e[l].selected=p),p&&a&&(e[l].defaultSelected=!0)}else{for(l=""+ye(l),n=null,p=0;p<e.length;p++){if(e[p].value===l){e[p].selected=!0,a&&(e[p].defaultSelected=!0);return}n!==null||e[p].disabled||(n=e[p])}n!==null&&(n.selected=!0)}}function Cn(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(r(91));return E({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hr(e,n){var l=n.value;if(l==null){if(l=n.children,n=n.defaultValue,l!=null){if(n!=null)throw Error(r(92));if(Tt(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),l=n}e._wrapperState={initialValue:ye(l)}}function mr(e,n){var l=ye(n.value),a=ye(n.defaultValue);l!=null&&(l=""+l,l!==e.value&&(e.value=l),n.defaultValue==null&&e.defaultValue!==l&&(e.defaultValue=l)),a!=null&&(e.defaultValue=""+a)}function Br(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function G(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?G(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ke,Ee=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,l,a,p){MSApp.execUnsafeLocalFunction(function(){return e(n,l,a,p)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(ke=ke||document.createElement("div"),ke.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=ke.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Pe(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var st={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jt=["Webkit","ms","Moz","O"];Object.keys(st).forEach(function(e){Jt.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),st[n]=st[e]})});function ae(e,n,l){return n==null||typeof n=="boolean"||n===""?"":l||typeof n!="number"||n===0||st.hasOwnProperty(e)&&st[e]?(""+n).trim():n+"px"}function Ie(e,n){e=e.style;for(var l in n)if(n.hasOwnProperty(l)){var a=l.indexOf("--")===0,p=ae(l,n[l],a);l==="float"&&(l="cssFloat"),a?e.setProperty(l,p):e[l]=p}}var Ze=E({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function We(e,n){if(n){if(Ze[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(r(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(r(61))}if(n.style!=null&&typeof n.style!="object")throw Error(r(62))}}function Pt(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";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 Ye=null;function gr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mn=null,Tn=null,wn=null;function Sl(e){if(e=$i(e)){if(typeof Mn!="function")throw Error(r(280));var n=e.stateNode;n&&(n=Zl(n),Mn(e.stateNode,e.type,n))}}function xi(e){Tn?wn?wn.push(e):wn=[e]:Tn=e}function vi(){if(Tn){var e=Tn,n=wn;if(wn=Tn=null,Sl(e),n)for(e=0;e<n.length;e++)Sl(n[e])}}function yr(e,n){return e(n)}function du(){}var ss=!1;function fu(e,n,l){if(ss)return e(n,l);ss=!0;try{return yr(e,n,l)}finally{ss=!1,(Tn!==null||wn!==null)&&(du(),vi())}}function Ci(e,n){var l=e.stateNode;if(l===null)return null;var a=Zl(l);if(a===null)return null;l=a[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,n,typeof l));return l}var as=!1;if(f)try{var wi={};Object.defineProperty(wi,"passive",{get:function(){as=!0}}),window.addEventListener("test",wi,wi),window.removeEventListener("test",wi,wi)}catch{as=!1}function Nd(e,n,l,a,p,g,w,L,P){var H=Array.prototype.slice.call(arguments,3);try{n.apply(l,H)}catch(ne){this.onError(ne)}}var ki=!1,El=null,bl=!1,us=null,Id={onError:function(e){ki=!0,El=e}};function Md(e,n,l,a,p,g,w,L,P){ki=!1,El=null,Nd.apply(Id,arguments)}function Td(e,n,l,a,p,g,w,L,P){if(Md.apply(this,arguments),ki){if(ki){var H=El;ki=!1,El=null}else throw Error(r(198));bl||(bl=!0,us=H)}}function xr(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function pu(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function hu(e){if(xr(e)!==e)throw Error(r(188))}function Pd(e){var n=e.alternate;if(!n){if(n=xr(e),n===null)throw Error(r(188));return n!==e?null:e}for(var l=e,a=n;;){var p=l.return;if(p===null)break;var g=p.alternate;if(g===null){if(a=p.return,a!==null){l=a;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===l)return hu(p),e;if(g===a)return hu(p),n;g=g.sibling}throw Error(r(188))}if(l.return!==a.return)l=p,a=g;else{for(var w=!1,L=p.child;L;){if(L===l){w=!0,l=p,a=g;break}if(L===a){w=!0,a=p,l=g;break}L=L.sibling}if(!w){for(L=g.child;L;){if(L===l){w=!0,l=g,a=p;break}if(L===a){w=!0,a=g,l=p;break}L=L.sibling}if(!w)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:n}function mu(e){return e=Pd(e),e!==null?gu(e):null}function gu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=gu(e);if(n!==null)return n;e=e.sibling}return null}var yu=i.unstable_scheduleCallback,xu=i.unstable_cancelCallback,zd=i.unstable_shouldYield,Dd=i.unstable_requestPaint,lt=i.unstable_now,Rd=i.unstable_getCurrentPriorityLevel,cs=i.unstable_ImmediatePriority,vu=i.unstable_UserBlockingPriority,jl=i.unstable_NormalPriority,Ad=i.unstable_LowPriority,Cu=i.unstable_IdlePriority,Ll=null,kn=null;function Fd(e){if(kn&&typeof kn.onCommitFiberRoot=="function")try{kn.onCommitFiberRoot(Ll,e,void 0,(e.current.flags&128)===128)}catch{}}var cn=Math.clz32?Math.clz32:$d,Od=Math.log,Bd=Math.LN2;function $d(e){return e>>>=0,e===0?32:31-(Od(e)/Bd|0)|0}var Nl=64,Il=4194304;function _i(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ml(e,n){var l=e.pendingLanes;if(l===0)return 0;var a=0,p=e.suspendedLanes,g=e.pingedLanes,w=l&268435455;if(w!==0){var L=w&~p;L!==0?a=_i(L):(g&=w,g!==0&&(a=_i(g)))}else w=l&~p,w!==0?a=_i(w):g!==0&&(a=_i(g));if(a===0)return 0;if(n!==0&&n!==a&&(n&p)===0&&(p=a&-a,g=n&-n,p>=g||p===16&&(g&4194240)!==0))return n;if((a&4)!==0&&(a|=l&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=a;0<n;)l=31-cn(n),p=1<<l,a|=e[l],n&=~p;return a}function Hd(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vd(e,n){for(var l=e.suspendedLanes,a=e.pingedLanes,p=e.expirationTimes,g=e.pendingLanes;0<g;){var w=31-cn(g),L=1<<w,P=p[w];P===-1?((L&l)===0||(L&a)!==0)&&(p[w]=Hd(L,n)):P<=n&&(e.expiredLanes|=L),g&=~L}}function ds(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wu(){var e=Nl;return Nl<<=1,(Nl&4194240)===0&&(Nl=64),e}function fs(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function Si(e,n,l){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-cn(n),e[n]=l}function Ud(e,n){var l=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<l;){var p=31-cn(l),g=1<<p;n[p]=0,a[p]=-1,e[p]=-1,l&=~g}}function ps(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var a=31-cn(l),p=1<<a;p&n|e[a]&n&&(e[a]|=n),l&=~p}}var He=0;function ku(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var _u,hs,Su,Eu,bu,ms=!1,Tl=[],Un=null,Wn=null,qn=null,Ei=new Map,bi=new Map,Zn=[],Wd="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 submit".split(" ");function ju(e,n){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":qn=null;break;case"pointerover":case"pointerout":Ei.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":bi.delete(n.pointerId)}}function ji(e,n,l,a,p,g){return e===null||e.nativeEvent!==g?(e={blockedOn:n,domEventName:l,eventSystemFlags:a,nativeEvent:g,targetContainers:[p]},n!==null&&(n=$i(n),n!==null&&hs(n)),e):(e.eventSystemFlags|=a,n=e.targetContainers,p!==null&&n.indexOf(p)===-1&&n.push(p),e)}function qd(e,n,l,a,p){switch(n){case"focusin":return Un=ji(Un,e,n,l,a,p),!0;case"dragenter":return Wn=ji(Wn,e,n,l,a,p),!0;case"mouseover":return qn=ji(qn,e,n,l,a,p),!0;case"pointerover":var g=p.pointerId;return Ei.set(g,ji(Ei.get(g)||null,e,n,l,a,p)),!0;case"gotpointercapture":return g=p.pointerId,bi.set(g,ji(bi.get(g)||null,e,n,l,a,p)),!0}return!1}function Lu(e){var n=vr(e.target);if(n!==null){var l=xr(n);if(l!==null){if(n=l.tag,n===13){if(n=pu(l),n!==null){e.blockedOn=n,bu(e.priority,function(){Su(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pl(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=ys(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Ye=a,l.target.dispatchEvent(a),Ye=null}else return n=$i(l),n!==null&&hs(n),e.blockedOn=l,!1;n.shift()}return!0}function Nu(e,n,l){Pl(e)&&l.delete(n)}function Zd(){ms=!1,Un!==null&&Pl(Un)&&(Un=null),Wn!==null&&Pl(Wn)&&(Wn=null),qn!==null&&Pl(qn)&&(qn=null),Ei.forEach(Nu),bi.forEach(Nu)}function Li(e,n){e.blockedOn===n&&(e.blockedOn=null,ms||(ms=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Zd)))}function Ni(e){function n(p){return Li(p,e)}if(0<Tl.length){Li(Tl[0],e);for(var l=1;l<Tl.length;l++){var a=Tl[l];a.blockedOn===e&&(a.blockedOn=null)}}for(Un!==null&&Li(Un,e),Wn!==null&&Li(Wn,e),qn!==null&&Li(qn,e),Ei.forEach(n),bi.forEach(n),l=0;l<Zn.length;l++)a=Zn[l],a.blockedOn===e&&(a.blockedOn=null);for(;0<Zn.length&&(l=Zn[0],l.blockedOn===null);)Lu(l),l.blockedOn===null&&Zn.shift()}var $r=U.ReactCurrentBatchConfig,zl=!0;function Qd(e,n,l,a){var p=He,g=$r.transition;$r.transition=null;try{He=1,gs(e,n,l,a)}finally{He=p,$r.transition=g}}function Gd(e,n,l,a){var p=He,g=$r.transition;$r.transition=null;try{He=4,gs(e,n,l,a)}finally{He=p,$r.transition=g}}function gs(e,n,l,a){if(zl){var p=ys(e,n,l,a);if(p===null)zs(e,n,a,Dl,l),ju(e,a);else if(qd(p,e,n,l,a))a.stopPropagation();else if(ju(e,a),n&4&&-1<Wd.indexOf(e)){for(;p!==null;){var g=$i(p);if(g!==null&&_u(g),g=ys(e,n,l,a),g===null&&zs(e,n,a,Dl,l),g===p)break;p=g}p!==null&&a.stopPropagation()}else zs(e,n,a,null,l)}}var Dl=null;function ys(e,n,l,a){if(Dl=null,e=gr(a),e=vr(e),e!==null)if(n=xr(e),n===null)e=null;else if(l=n.tag,l===13){if(e=pu(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Dl=e,null}function Iu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Rd()){case cs:return 1;case vu:return 4;case jl:case Ad:return 16;case Cu:return 536870912;default:return 16}default:return 16}}var Qn=null,xs=null,Rl=null;function Mu(){if(Rl)return Rl;var e,n=xs,l=n.length,a,p="value"in Qn?Qn.value:Qn.textContent,g=p.length;for(e=0;e<l&&n[e]===p[e];e++);var w=l-e;for(a=1;a<=w&&n[l-a]===p[g-a];a++);return Rl=p.slice(e,1<a?1-a:void 0)}function Al(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Fl(){return!0}function Tu(){return!1}function Zt(e){function n(l,a,p,g,w){this._reactName=l,this._targetInst=p,this.type=a,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var L in e)e.hasOwnProperty(L)&&(l=e[L],this[L]=l?l(g):g[L]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Fl:Tu,this.isPropagationStopped=Tu,this}return E(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Fl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fl)},persist:function(){},isPersistent:Fl}),n}var Hr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vs=Zt(Hr),Ii=E({},Hr,{view:0,detail:0}),Yd=Zt(Ii),Cs,ws,Mi,Ol=E({},Ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_s,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!==Mi&&(Mi&&e.type==="mousemove"?(Cs=e.screenX-Mi.screenX,ws=e.screenY-Mi.screenY):ws=Cs=0,Mi=e),Cs)},movementY:function(e){return"movementY"in e?e.movementY:ws}}),Pu=Zt(Ol),Kd=E({},Ol,{dataTransfer:0}),Xd=Zt(Kd),Jd=E({},Ii,{relatedTarget:0}),ks=Zt(Jd),ef=E({},Hr,{animationName:0,elapsedTime:0,pseudoElement:0}),tf=Zt(ef),nf=E({},Hr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rf=Zt(nf),lf=E({},Hr,{data:0}),zu=Zt(lf),of={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sf={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"},af={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uf(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=af[e])?!!n[e]:!1}function _s(){return uf}var cf=E({},Ii,{key:function(e){if(e.key){var n=of[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Al(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_s,charCode:function(e){return e.type==="keypress"?Al(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Al(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),df=Zt(cf),ff=E({},Ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Du=Zt(ff),pf=E({},Ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_s}),hf=Zt(pf),mf=E({},Hr,{propertyName:0,elapsedTime:0,pseudoElement:0}),gf=Zt(mf),yf=E({},Ol,{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}),xf=Zt(yf),vf=[9,13,27,32],Ss=f&&"CompositionEvent"in window,Ti=null;f&&"documentMode"in document&&(Ti=document.documentMode);var Cf=f&&"TextEvent"in window&&!Ti,Ru=f&&(!Ss||Ti&&8<Ti&&11>=Ti),Au=" ",Fu=!1;function Ou(e,n){switch(e){case"keyup":return vf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vr=!1;function wf(e,n){switch(e){case"compositionend":return Bu(n);case"keypress":return n.which!==32?null:(Fu=!0,Au);case"textInput":return e=n.data,e===Au&&Fu?null:e;default:return null}}function kf(e,n){if(Vr)return e==="compositionend"||!Ss&&Ou(e,n)?(e=Mu(),Rl=xs=Qn=null,Vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Ru&&n.locale!=="ko"?null:n.data;default:return null}}var _f={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 $u(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!_f[e.type]:n==="textarea"}function Hu(e,n,l,a){xi(a),n=Ul(n,"onChange"),0<n.length&&(l=new vs("onChange","change",null,l,a),e.push({event:l,listeners:n}))}var Pi=null,zi=null;function Sf(e){oc(e,0)}function Bl(e){var n=Qr(e);if(It(n))return e}function Ef(e,n){if(e==="change")return n}var Vu=!1;if(f){var Es;if(f){var bs="oninput"in document;if(!bs){var Uu=document.createElement("div");Uu.setAttribute("oninput","return;"),bs=typeof Uu.oninput=="function"}Es=bs}else Es=!1;Vu=Es&&(!document.documentMode||9<document.documentMode)}function Wu(){Pi&&(Pi.detachEvent("onpropertychange",qu),zi=Pi=null)}function qu(e){if(e.propertyName==="value"&&Bl(zi)){var n=[];Hu(n,zi,e,gr(e)),fu(Sf,n)}}function bf(e,n,l){e==="focusin"?(Wu(),Pi=n,zi=l,Pi.attachEvent("onpropertychange",qu)):e==="focusout"&&Wu()}function jf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bl(zi)}function Lf(e,n){if(e==="click")return Bl(n)}function Nf(e,n){if(e==="input"||e==="change")return Bl(n)}function If(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var dn=typeof Object.is=="function"?Object.is:If;function Di(e,n){if(dn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),a=Object.keys(n);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var p=l[a];if(!h.call(n,p)||!dn(e[p],n[p]))return!1}return!0}function Zu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qu(e,n){var l=Zu(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=n&&a>=n)return{node:l,offset:n-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Zu(l)}}function Gu(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Gu(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Yu(){for(var e=window,n=J();n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=J(e.document)}return n}function js(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Mf(e){var n=Yu(),l=e.focusedElem,a=e.selectionRange;if(n!==l&&l&&l.ownerDocument&&Gu(l.ownerDocument.documentElement,l)){if(a!==null&&js(l)){if(n=a.start,e=a.end,e===void 0&&(e=n),"selectionStart"in l)l.selectionStart=n,l.selectionEnd=Math.min(e,l.value.length);else if(e=(n=l.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var p=l.textContent.length,g=Math.min(a.start,p);a=a.end===void 0?g:Math.min(a.end,p),!e.extend&&g>a&&(p=a,a=g,g=p),p=Qu(l,g);var w=Qu(l,a);p&&w&&(e.rangeCount!==1||e.anchorNode!==p.node||e.anchorOffset!==p.offset||e.focusNode!==w.node||e.focusOffset!==w.offset)&&(n=n.createRange(),n.setStart(p.node,p.offset),e.removeAllRanges(),g>a?(e.addRange(n),e.extend(w.node,w.offset)):(n.setEnd(w.node,w.offset),e.addRange(n)))}}for(n=[],e=l;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<n.length;l++)e=n[l],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Tf=f&&"documentMode"in document&&11>=document.documentMode,Ur=null,Ls=null,Ri=null,Ns=!1;function Ku(e,n,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ns||Ur==null||Ur!==J(a)||(a=Ur,"selectionStart"in a&&js(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}),Ri&&Di(Ri,a)||(Ri=a,a=Ul(Ls,"onSelect"),0<a.length&&(n=new vs("onSelect","select",null,n,l),e.push({event:n,listeners:a}),n.target=Ur)))}function $l(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var Wr={animationend:$l("Animation","AnimationEnd"),animationiteration:$l("Animation","AnimationIteration"),animationstart:$l("Animation","AnimationStart"),transitionend:$l("Transition","TransitionEnd")},Is={},Xu={};f&&(Xu=document.createElement("div").style,"AnimationEvent"in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),"TransitionEvent"in window||delete Wr.transitionend.transition);function Hl(e){if(Is[e])return Is[e];if(!Wr[e])return e;var n=Wr[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in Xu)return Is[e]=n[l];return e}var Ju=Hl("animationend"),ec=Hl("animationiteration"),tc=Hl("animationstart"),nc=Hl("transitionend"),rc=new Map,ic="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Gn(e,n){rc.set(e,n),u(n,[e])}for(var Ms=0;Ms<ic.length;Ms++){var Ts=ic[Ms],Pf=Ts.toLowerCase(),zf=Ts[0].toUpperCase()+Ts.slice(1);Gn(Pf,"on"+zf)}Gn(Ju,"onAnimationEnd"),Gn(ec,"onAnimationIteration"),Gn(tc,"onAnimationStart"),Gn("dblclick","onDoubleClick"),Gn("focusin","onFocus"),Gn("focusout","onBlur"),Gn(nc,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ai="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(" "),Df=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ai));function lc(e,n,l){var a=e.type||"unknown-event";e.currentTarget=l,Td(a,n,void 0,e),e.currentTarget=null}function oc(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],p=a.event;a=a.listeners;e:{var g=void 0;if(n)for(var w=a.length-1;0<=w;w--){var L=a[w],P=L.instance,H=L.currentTarget;if(L=L.listener,P!==g&&p.isPropagationStopped())break e;lc(p,L,H),g=P}else for(w=0;w<a.length;w++){if(L=a[w],P=L.instance,H=L.currentTarget,L=L.listener,P!==g&&p.isPropagationStopped())break e;lc(p,L,H),g=P}}}if(bl)throw e=us,bl=!1,us=null,e}function Xe(e,n){var l=n[Bs];l===void 0&&(l=n[Bs]=new Set);var a=e+"__bubble";l.has(a)||(sc(n,e,2,!1),l.add(a))}function Ps(e,n,l){var a=0;n&&(a|=4),sc(l,e,a,n)}var Vl="_reactListening"+Math.random().toString(36).slice(2);function Fi(e){if(!e[Vl]){e[Vl]=!0,o.forEach(function(l){l!=="selectionchange"&&(Df.has(l)||Ps(l,!1,e),Ps(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Vl]||(n[Vl]=!0,Ps("selectionchange",!1,n))}}function sc(e,n,l,a){switch(Iu(n)){case 1:var p=Qd;break;case 4:p=Gd;break;default:p=gs}l=p.bind(null,n,l,e),p=void 0,!as||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(p=!0),a?p!==void 0?e.addEventListener(n,l,{capture:!0,passive:p}):e.addEventListener(n,l,!0):p!==void 0?e.addEventListener(n,l,{passive:p}):e.addEventListener(n,l,!1)}function zs(e,n,l,a,p){var g=a;if((n&1)===0&&(n&2)===0&&a!==null)e:for(;;){if(a===null)return;var w=a.tag;if(w===3||w===4){var L=a.stateNode.containerInfo;if(L===p||L.nodeType===8&&L.parentNode===p)break;if(w===4)for(w=a.return;w!==null;){var P=w.tag;if((P===3||P===4)&&(P=w.stateNode.containerInfo,P===p||P.nodeType===8&&P.parentNode===p))return;w=w.return}for(;L!==null;){if(w=vr(L),w===null)return;if(P=w.tag,P===5||P===6){a=g=w;continue e}L=L.parentNode}}a=a.return}fu(function(){var H=g,ne=gr(l),re=[];e:{var te=rc.get(e);if(te!==void 0){var de=vs,pe=e;switch(e){case"keypress":if(Al(l)===0)break e;case"keydown":case"keyup":de=df;break;case"focusin":pe="focus",de=ks;break;case"focusout":pe="blur",de=ks;break;case"beforeblur":case"afterblur":de=ks;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":de=Pu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=Xd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=hf;break;case Ju:case ec:case tc:de=tf;break;case nc:de=gf;break;case"scroll":de=Yd;break;case"wheel":de=xf;break;case"copy":case"cut":case"paste":de=rf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=Du}var me=(n&4)!==0,ot=!me&&e==="scroll",O=me?te!==null?te+"Capture":null:te;me=[];for(var R=H,B;R!==null;){B=R;var se=B.stateNode;if(B.tag===5&&se!==null&&(B=se,O!==null&&(se=Ci(R,O),se!=null&&me.push(Oi(R,se,B)))),ot)break;R=R.return}0<me.length&&(te=new de(te,pe,null,l,ne),re.push({event:te,listeners:me}))}}if((n&7)===0){e:{if(te=e==="mouseover"||e==="pointerover",de=e==="mouseout"||e==="pointerout",te&&l!==Ye&&(pe=l.relatedTarget||l.fromElement)&&(vr(pe)||pe[Pn]))break e;if((de||te)&&(te=ne.window===ne?ne:(te=ne.ownerDocument)?te.defaultView||te.parentWindow:window,de?(pe=l.relatedTarget||l.toElement,de=H,pe=pe?vr(pe):null,pe!==null&&(ot=xr(pe),pe!==ot||pe.tag!==5&&pe.tag!==6)&&(pe=null)):(de=null,pe=H),de!==pe)){if(me=Pu,se="onMouseLeave",O="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(me=Du,se="onPointerLeave",O="onPointerEnter",R="pointer"),ot=de==null?te:Qr(de),B=pe==null?te:Qr(pe),te=new me(se,R+"leave",de,l,ne),te.target=ot,te.relatedTarget=B,se=null,vr(ne)===H&&(me=new me(O,R+"enter",pe,l,ne),me.target=B,me.relatedTarget=ot,se=me),ot=se,de&&pe)t:{for(me=de,O=pe,R=0,B=me;B;B=qr(B))R++;for(B=0,se=O;se;se=qr(se))B++;for(;0<R-B;)me=qr(me),R--;for(;0<B-R;)O=qr(O),B--;for(;R--;){if(me===O||O!==null&&me===O.alternate)break t;me=qr(me),O=qr(O)}me=null}else me=null;de!==null&&ac(re,te,de,me,!1),pe!==null&&ot!==null&&ac(re,ot,pe,me,!0)}}e:{if(te=H?Qr(H):window,de=te.nodeName&&te.nodeName.toLowerCase(),de==="select"||de==="input"&&te.type==="file")var ge=Ef;else if($u(te))if(Vu)ge=Nf;else{ge=jf;var ve=bf}else(de=te.nodeName)&&de.toLowerCase()==="input"&&(te.type==="checkbox"||te.type==="radio")&&(ge=Lf);if(ge&&(ge=ge(e,H))){Hu(re,ge,l,ne);break e}ve&&ve(e,te,H),e==="focusout"&&(ve=te._wrapperState)&&ve.controlled&&te.type==="number"&&Ae(te,"number",te.value)}switch(ve=H?Qr(H):window,e){case"focusin":($u(ve)||ve.contentEditable==="true")&&(Ur=ve,Ls=H,Ri=null);break;case"focusout":Ri=Ls=Ur=null;break;case"mousedown":Ns=!0;break;case"contextmenu":case"mouseup":case"dragend":Ns=!1,Ku(re,l,ne);break;case"selectionchange":if(Tf)break;case"keydown":case"keyup":Ku(re,l,ne)}var Ce;if(Ss)e:{switch(e){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else Vr?Ou(e,l)&&(be="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(be="onCompositionStart");be&&(Ru&&l.locale!=="ko"&&(Vr||be!=="onCompositionStart"?be==="onCompositionEnd"&&Vr&&(Ce=Mu()):(Qn=ne,xs="value"in Qn?Qn.value:Qn.textContent,Vr=!0)),ve=Ul(H,be),0<ve.length&&(be=new zu(be,e,null,l,ne),re.push({event:be,listeners:ve}),Ce?be.data=Ce:(Ce=Bu(l),Ce!==null&&(be.data=Ce)))),(Ce=Cf?wf(e,l):kf(e,l))&&(H=Ul(H,"onBeforeInput"),0<H.length&&(ne=new zu("onBeforeInput","beforeinput",null,l,ne),re.push({event:ne,listeners:H}),ne.data=Ce))}oc(re,n)})}function Oi(e,n,l){return{instance:e,listener:n,currentTarget:l}}function Ul(e,n){for(var l=n+"Capture",a=[];e!==null;){var p=e,g=p.stateNode;p.tag===5&&g!==null&&(p=g,g=Ci(e,l),g!=null&&a.unshift(Oi(e,g,p)),g=Ci(e,n),g!=null&&a.push(Oi(e,g,p))),e=e.return}return a}function qr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ac(e,n,l,a,p){for(var g=n._reactName,w=[];l!==null&&l!==a;){var L=l,P=L.alternate,H=L.stateNode;if(P!==null&&P===a)break;L.tag===5&&H!==null&&(L=H,p?(P=Ci(l,g),P!=null&&w.unshift(Oi(l,P,L))):p||(P=Ci(l,g),P!=null&&w.push(Oi(l,P,L)))),l=l.return}w.length!==0&&e.push({event:n,listeners:w})}var Rf=/\r\n?/g,Af=/\u0000|\uFFFD/g;function uc(e){return(typeof e=="string"?e:""+e).replace(Rf,`
38
- `).replace(Af,"")}function Wl(e,n,l){if(n=uc(n),uc(e)!==n&&l)throw Error(r(425))}function ql(){}var Ds=null,Rs=null;function As(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Fs=typeof setTimeout=="function"?setTimeout:void 0,Ff=typeof clearTimeout=="function"?clearTimeout:void 0,cc=typeof Promise=="function"?Promise:void 0,Of=typeof queueMicrotask=="function"?queueMicrotask:typeof cc<"u"?function(e){return cc.resolve(null).then(e).catch(Bf)}:Fs;function Bf(e){setTimeout(function(){throw e})}function Os(e,n){var l=n,a=0;do{var p=l.nextSibling;if(e.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"){if(a===0){e.removeChild(p),Ni(n);return}a--}else l!=="$"&&l!=="$?"&&l!=="$!"||a++;l=p}while(l);Ni(n)}function Yn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function dc(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(n===0)return e;n--}else l==="/$"&&n++}e=e.previousSibling}return null}var Zr=Math.random().toString(36).slice(2),_n="__reactFiber$"+Zr,Bi="__reactProps$"+Zr,Pn="__reactContainer$"+Zr,Bs="__reactEvents$"+Zr,$f="__reactListeners$"+Zr,Hf="__reactHandles$"+Zr;function vr(e){var n=e[_n];if(n)return n;for(var l=e.parentNode;l;){if(n=l[Pn]||l[_n]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=dc(e);e!==null;){if(l=e[_n])return l;e=dc(e)}return n}e=l,l=e.parentNode}return null}function $i(e){return e=e[_n]||e[Pn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Zl(e){return e[Bi]||null}var $s=[],Gr=-1;function Kn(e){return{current:e}}function Je(e){0>Gr||(e.current=$s[Gr],$s[Gr]=null,Gr--)}function Ke(e,n){Gr++,$s[Gr]=e.current,e.current=n}var Xn={},_t=Kn(Xn),Ot=Kn(!1),Cr=Xn;function Yr(e,n){var l=e.type.contextTypes;if(!l)return Xn;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===n)return a.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in l)p[g]=n[g];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=p),p}function Bt(e){return e=e.childContextTypes,e!=null}function Ql(){Je(Ot),Je(_t)}function fc(e,n,l){if(_t.current!==Xn)throw Error(r(168));Ke(_t,n),Ke(Ot,l)}function pc(e,n,l){var a=e.stateNode;if(n=n.childContextTypes,typeof a.getChildContext!="function")return l;a=a.getChildContext();for(var p in a)if(!(p in n))throw Error(r(108,X(e)||"Unknown",p));return E({},l,a)}function Gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xn,Cr=_t.current,Ke(_t,e),Ke(Ot,Ot.current),!0}function hc(e,n,l){var a=e.stateNode;if(!a)throw Error(r(169));l?(e=pc(e,n,Cr),a.__reactInternalMemoizedMergedChildContext=e,Je(Ot),Je(_t),Ke(_t,e)):Je(Ot),Ke(Ot,l)}var zn=null,Yl=!1,Hs=!1;function mc(e){zn===null?zn=[e]:zn.push(e)}function Vf(e){Yl=!0,mc(e)}function Jn(){if(!Hs&&zn!==null){Hs=!0;var e=0,n=He;try{var l=zn;for(He=1;e<l.length;e++){var a=l[e];do a=a(!0);while(a!==null)}zn=null,Yl=!1}catch(p){throw zn!==null&&(zn=zn.slice(e+1)),yu(cs,Jn),p}finally{He=n,Hs=!1}}return null}var Kr=[],Xr=0,Kl=null,Xl=0,en=[],tn=0,wr=null,Dn=1,Rn="";function kr(e,n){Kr[Xr++]=Xl,Kr[Xr++]=Kl,Kl=e,Xl=n}function gc(e,n,l){en[tn++]=Dn,en[tn++]=Rn,en[tn++]=wr,wr=e;var a=Dn;e=Rn;var p=32-cn(a)-1;a&=~(1<<p),l+=1;var g=32-cn(n)+p;if(30<g){var w=p-p%5;g=(a&(1<<w)-1).toString(32),a>>=w,p-=w,Dn=1<<32-cn(n)+p|l<<p|a,Rn=g+e}else Dn=1<<g|l<<p|a,Rn=e}function Vs(e){e.return!==null&&(kr(e,1),gc(e,1,0))}function Us(e){for(;e===Kl;)Kl=Kr[--Xr],Kr[Xr]=null,Xl=Kr[--Xr],Kr[Xr]=null;for(;e===wr;)wr=en[--tn],en[tn]=null,Rn=en[--tn],en[tn]=null,Dn=en[--tn],en[tn]=null}var Qt=null,Gt=null,et=!1,fn=null;function yc(e,n){var l=on(5,null,null,0);l.elementType="DELETED",l.stateNode=n,l.return=e,n=e.deletions,n===null?(e.deletions=[l],e.flags|=16):n.push(l)}function xc(e,n){switch(e.tag){case 5:var l=e.type;return n=n.nodeType!==1||l.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Qt=e,Gt=Yn(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Qt=e,Gt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(l=wr!==null?{id:Dn,overflow:Rn}:null,e.memoizedState={dehydrated:n,treeContext:l,retryLane:1073741824},l=on(18,null,null,0),l.stateNode=n,l.return=e,e.child=l,Qt=e,Gt=null,!0):!1;default:return!1}}function Ws(e){return(e.mode&1)!==0&&(e.flags&128)===0}function qs(e){if(et){var n=Gt;if(n){var l=n;if(!xc(e,n)){if(Ws(e))throw Error(r(418));n=Yn(l.nextSibling);var a=Qt;n&&xc(e,n)?yc(a,l):(e.flags=e.flags&-4097|2,et=!1,Qt=e)}}else{if(Ws(e))throw Error(r(418));e.flags=e.flags&-4097|2,et=!1,Qt=e}}}function vc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qt=e}function Jl(e){if(e!==Qt)return!1;if(!et)return vc(e),et=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!As(e.type,e.memoizedProps)),n&&(n=Gt)){if(Ws(e))throw Cc(),Error(r(418));for(;n;)yc(e,n),n=Yn(n.nextSibling)}if(vc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"){if(n===0){Gt=Yn(e.nextSibling);break e}n--}else l!=="$"&&l!=="$!"&&l!=="$?"||n++}e=e.nextSibling}Gt=null}}else Gt=Qt?Yn(e.stateNode.nextSibling):null;return!0}function Cc(){for(var e=Gt;e;)e=Yn(e.nextSibling)}function Jr(){Gt=Qt=null,et=!1}function Zs(e){fn===null?fn=[e]:fn.push(e)}var Uf=U.ReactCurrentBatchConfig;function Hi(e,n,l){if(e=l.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(r(309));var a=l.stateNode}if(!a)throw Error(r(147,e));var p=a,g=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===g?n.ref:(n=function(w){var L=p.refs;w===null?delete L[g]:L[g]=w},n._stringRef=g,n)}if(typeof e!="string")throw Error(r(284));if(!l._owner)throw Error(r(290,e))}return e}function eo(e,n){throw e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function wc(e){var n=e._init;return n(e._payload)}function kc(e){function n(O,R){if(e){var B=O.deletions;B===null?(O.deletions=[R],O.flags|=16):B.push(R)}}function l(O,R){if(!e)return null;for(;R!==null;)n(O,R),R=R.sibling;return null}function a(O,R){for(O=new Map;R!==null;)R.key!==null?O.set(R.key,R):O.set(R.index,R),R=R.sibling;return O}function p(O,R){return O=sr(O,R),O.index=0,O.sibling=null,O}function g(O,R,B){return O.index=B,e?(B=O.alternate,B!==null?(B=B.index,B<R?(O.flags|=2,R):B):(O.flags|=2,R)):(O.flags|=1048576,R)}function w(O){return e&&O.alternate===null&&(O.flags|=2),O}function L(O,R,B,se){return R===null||R.tag!==6?(R=Fa(B,O.mode,se),R.return=O,R):(R=p(R,B),R.return=O,R)}function P(O,R,B,se){var ge=B.type;return ge===W?ne(O,R,B.props.children,se,B.key):R!==null&&(R.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ie&&wc(ge)===R.type)?(se=p(R,B.props),se.ref=Hi(O,R,B),se.return=O,se):(se=Eo(B.type,B.key,B.props,null,O.mode,se),se.ref=Hi(O,R,B),se.return=O,se)}function H(O,R,B,se){return R===null||R.tag!==4||R.stateNode.containerInfo!==B.containerInfo||R.stateNode.implementation!==B.implementation?(R=Oa(B,O.mode,se),R.return=O,R):(R=p(R,B.children||[]),R.return=O,R)}function ne(O,R,B,se,ge){return R===null||R.tag!==7?(R=Ir(B,O.mode,se,ge),R.return=O,R):(R=p(R,B),R.return=O,R)}function re(O,R,B){if(typeof R=="string"&&R!==""||typeof R=="number")return R=Fa(""+R,O.mode,B),R.return=O,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case Z:return B=Eo(R.type,R.key,R.props,null,O.mode,B),B.ref=Hi(O,null,R),B.return=O,B;case F:return R=Oa(R,O.mode,B),R.return=O,R;case ie:var se=R._init;return re(O,se(R._payload),B)}if(Tt(R)||le(R))return R=Ir(R,O.mode,B,null),R.return=O,R;eo(O,R)}return null}function te(O,R,B,se){var ge=R!==null?R.key:null;if(typeof B=="string"&&B!==""||typeof B=="number")return ge!==null?null:L(O,R,""+B,se);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Z:return B.key===ge?P(O,R,B,se):null;case F:return B.key===ge?H(O,R,B,se):null;case ie:return ge=B._init,te(O,R,ge(B._payload),se)}if(Tt(B)||le(B))return ge!==null?null:ne(O,R,B,se,null);eo(O,B)}return null}function de(O,R,B,se,ge){if(typeof se=="string"&&se!==""||typeof se=="number")return O=O.get(B)||null,L(R,O,""+se,ge);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case Z:return O=O.get(se.key===null?B:se.key)||null,P(R,O,se,ge);case F:return O=O.get(se.key===null?B:se.key)||null,H(R,O,se,ge);case ie:var ve=se._init;return de(O,R,B,ve(se._payload),ge)}if(Tt(se)||le(se))return O=O.get(B)||null,ne(R,O,se,ge,null);eo(R,se)}return null}function pe(O,R,B,se){for(var ge=null,ve=null,Ce=R,be=R=0,vt=null;Ce!==null&&be<B.length;be++){Ce.index>be?(vt=Ce,Ce=null):vt=Ce.sibling;var Be=te(O,Ce,B[be],se);if(Be===null){Ce===null&&(Ce=vt);break}e&&Ce&&Be.alternate===null&&n(O,Ce),R=g(Be,R,be),ve===null?ge=Be:ve.sibling=Be,ve=Be,Ce=vt}if(be===B.length)return l(O,Ce),et&&kr(O,be),ge;if(Ce===null){for(;be<B.length;be++)Ce=re(O,B[be],se),Ce!==null&&(R=g(Ce,R,be),ve===null?ge=Ce:ve.sibling=Ce,ve=Ce);return et&&kr(O,be),ge}for(Ce=a(O,Ce);be<B.length;be++)vt=de(Ce,O,be,B[be],se),vt!==null&&(e&&vt.alternate!==null&&Ce.delete(vt.key===null?be:vt.key),R=g(vt,R,be),ve===null?ge=vt:ve.sibling=vt,ve=vt);return e&&Ce.forEach(function(ar){return n(O,ar)}),et&&kr(O,be),ge}function me(O,R,B,se){var ge=le(B);if(typeof ge!="function")throw Error(r(150));if(B=ge.call(B),B==null)throw Error(r(151));for(var ve=ge=null,Ce=R,be=R=0,vt=null,Be=B.next();Ce!==null&&!Be.done;be++,Be=B.next()){Ce.index>be?(vt=Ce,Ce=null):vt=Ce.sibling;var ar=te(O,Ce,Be.value,se);if(ar===null){Ce===null&&(Ce=vt);break}e&&Ce&&ar.alternate===null&&n(O,Ce),R=g(ar,R,be),ve===null?ge=ar:ve.sibling=ar,ve=ar,Ce=vt}if(Be.done)return l(O,Ce),et&&kr(O,be),ge;if(Ce===null){for(;!Be.done;be++,Be=B.next())Be=re(O,Be.value,se),Be!==null&&(R=g(Be,R,be),ve===null?ge=Be:ve.sibling=Be,ve=Be);return et&&kr(O,be),ge}for(Ce=a(O,Ce);!Be.done;be++,Be=B.next())Be=de(Ce,O,be,Be.value,se),Be!==null&&(e&&Be.alternate!==null&&Ce.delete(Be.key===null?be:Be.key),R=g(Be,R,be),ve===null?ge=Be:ve.sibling=Be,ve=Be);return e&&Ce.forEach(function(_4){return n(O,_4)}),et&&kr(O,be),ge}function ot(O,R,B,se){if(typeof B=="object"&&B!==null&&B.type===W&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case Z:e:{for(var ge=B.key,ve=R;ve!==null;){if(ve.key===ge){if(ge=B.type,ge===W){if(ve.tag===7){l(O,ve.sibling),R=p(ve,B.props.children),R.return=O,O=R;break e}}else if(ve.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ie&&wc(ge)===ve.type){l(O,ve.sibling),R=p(ve,B.props),R.ref=Hi(O,ve,B),R.return=O,O=R;break e}l(O,ve);break}else n(O,ve);ve=ve.sibling}B.type===W?(R=Ir(B.props.children,O.mode,se,B.key),R.return=O,O=R):(se=Eo(B.type,B.key,B.props,null,O.mode,se),se.ref=Hi(O,R,B),se.return=O,O=se)}return w(O);case F:e:{for(ve=B.key;R!==null;){if(R.key===ve)if(R.tag===4&&R.stateNode.containerInfo===B.containerInfo&&R.stateNode.implementation===B.implementation){l(O,R.sibling),R=p(R,B.children||[]),R.return=O,O=R;break e}else{l(O,R);break}else n(O,R);R=R.sibling}R=Oa(B,O.mode,se),R.return=O,O=R}return w(O);case ie:return ve=B._init,ot(O,R,ve(B._payload),se)}if(Tt(B))return pe(O,R,B,se);if(le(B))return me(O,R,B,se);eo(O,B)}return typeof B=="string"&&B!==""||typeof B=="number"?(B=""+B,R!==null&&R.tag===6?(l(O,R.sibling),R=p(R,B),R.return=O,O=R):(l(O,R),R=Fa(B,O.mode,se),R.return=O,O=R),w(O)):l(O,R)}return ot}var ei=kc(!0),_c=kc(!1),to=Kn(null),no=null,ti=null,Qs=null;function Gs(){Qs=ti=no=null}function Ys(e){var n=to.current;Je(to),e._currentValue=n}function Ks(e,n,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,a!==null&&(a.childLanes|=n)):a!==null&&(a.childLanes&n)!==n&&(a.childLanes|=n),e===l)break;e=e.return}}function ni(e,n){no=e,Qs=ti=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&($t=!0),e.firstContext=null)}function nn(e){var n=e._currentValue;if(Qs!==e)if(e={context:e,memoizedValue:n,next:null},ti===null){if(no===null)throw Error(r(308));ti=e,no.dependencies={lanes:0,firstContext:e}}else ti=ti.next=e;return n}var _r=null;function Xs(e){_r===null?_r=[e]:_r.push(e)}function Sc(e,n,l,a){var p=n.interleaved;return p===null?(l.next=l,Xs(n)):(l.next=p.next,p.next=l),n.interleaved=l,An(e,a)}function An(e,n){e.lanes|=n;var l=e.alternate;for(l!==null&&(l.lanes|=n),l=e,e=e.return;e!==null;)e.childLanes|=n,l=e.alternate,l!==null&&(l.childLanes|=n),l=e,e=e.return;return l.tag===3?l.stateNode:null}var er=!1;function Js(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ec(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function tr(e,n,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Fe&2)!==0){var p=a.pending;return p===null?n.next=n:(n.next=p.next,p.next=n),a.pending=n,An(e,l)}return p=a.interleaved,p===null?(n.next=n,Xs(a)):(n.next=p.next,p.next=n),a.interleaved=n,An(e,l)}function ro(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194240)!==0)){var a=n.lanes;a&=e.pendingLanes,l|=a,n.lanes=l,ps(e,l)}}function bc(e,n){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var p=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var w={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};g===null?p=g=w:g=g.next=w,l=l.next}while(l!==null);g===null?p=g=n:g=g.next=n}else p=g=n;l={baseState:a.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:a.shared,effects:a.effects},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}function io(e,n,l,a){var p=e.updateQueue;er=!1;var g=p.firstBaseUpdate,w=p.lastBaseUpdate,L=p.shared.pending;if(L!==null){p.shared.pending=null;var P=L,H=P.next;P.next=null,w===null?g=H:w.next=H,w=P;var ne=e.alternate;ne!==null&&(ne=ne.updateQueue,L=ne.lastBaseUpdate,L!==w&&(L===null?ne.firstBaseUpdate=H:L.next=H,ne.lastBaseUpdate=P))}if(g!==null){var re=p.baseState;w=0,ne=H=P=null,L=g;do{var te=L.lane,de=L.eventTime;if((a&te)===te){ne!==null&&(ne=ne.next={eventTime:de,lane:0,tag:L.tag,payload:L.payload,callback:L.callback,next:null});e:{var pe=e,me=L;switch(te=n,de=l,me.tag){case 1:if(pe=me.payload,typeof pe=="function"){re=pe.call(de,re,te);break e}re=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=me.payload,te=typeof pe=="function"?pe.call(de,re,te):pe,te==null)break e;re=E({},re,te);break e;case 2:er=!0}}L.callback!==null&&L.lane!==0&&(e.flags|=64,te=p.effects,te===null?p.effects=[L]:te.push(L))}else de={eventTime:de,lane:te,tag:L.tag,payload:L.payload,callback:L.callback,next:null},ne===null?(H=ne=de,P=re):ne=ne.next=de,w|=te;if(L=L.next,L===null){if(L=p.shared.pending,L===null)break;te=L,L=te.next,te.next=null,p.lastBaseUpdate=te,p.shared.pending=null}}while(!0);if(ne===null&&(P=re),p.baseState=P,p.firstBaseUpdate=H,p.lastBaseUpdate=ne,n=p.shared.interleaved,n!==null){p=n;do w|=p.lane,p=p.next;while(p!==n)}else g===null&&(p.shared.lanes=0);br|=w,e.lanes=w,e.memoizedState=re}}function jc(e,n,l){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var a=e[n],p=a.callback;if(p!==null){if(a.callback=null,a=l,typeof p!="function")throw Error(r(191,p));p.call(a)}}}var Vi={},Sn=Kn(Vi),Ui=Kn(Vi),Wi=Kn(Vi);function Sr(e){if(e===Vi)throw Error(r(174));return e}function ea(e,n){switch(Ke(Wi,n),Ke(Ui,e),Ke(Sn,Vi),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ue(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=ue(n,e)}Je(Sn),Ke(Sn,n)}function ri(){Je(Sn),Je(Ui),Je(Wi)}function Lc(e){Sr(Wi.current);var n=Sr(Sn.current),l=ue(n,e.type);n!==l&&(Ke(Ui,e),Ke(Sn,l))}function ta(e){Ui.current===e&&(Je(Sn),Je(Ui))}var tt=Kn(0);function lo(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oo=U.ReactCurrentDispatcher,ia=U.ReactCurrentBatchConfig,Er=0,nt=null,ft=null,yt=null,so=!1,qi=!1,Zi=0,Wf=0;function St(){throw Error(r(321))}function la(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!dn(e[l],n[l]))return!1;return!0}function oa(e,n,l,a,p,g){if(Er=g,nt=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,oo.current=e===null||e.memoizedState===null?Gf:Yf,e=l(a,p),qi){g=0;do{if(qi=!1,Zi=0,25<=g)throw Error(r(301));g+=1,yt=ft=null,n.updateQueue=null,oo.current=Kf,e=l(a,p)}while(qi)}if(oo.current=co,n=ft!==null&&ft.next!==null,Er=0,yt=ft=nt=null,so=!1,n)throw Error(r(300));return e}function sa(){var e=Zi!==0;return Zi=0,e}function En(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?nt.memoizedState=yt=e:yt=yt.next=e,yt}function rn(){if(ft===null){var e=nt.alternate;e=e!==null?e.memoizedState:null}else e=ft.next;var n=yt===null?nt.memoizedState:yt.next;if(n!==null)yt=n,ft=e;else{if(e===null)throw Error(r(310));ft=e,e={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},yt===null?nt.memoizedState=yt=e:yt=yt.next=e}return yt}function Qi(e,n){return typeof n=="function"?n(e):n}function aa(e){var n=rn(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=ft,p=a.baseQueue,g=l.pending;if(g!==null){if(p!==null){var w=p.next;p.next=g.next,g.next=w}a.baseQueue=p=g,l.pending=null}if(p!==null){g=p.next,a=a.baseState;var L=w=null,P=null,H=g;do{var ne=H.lane;if((Er&ne)===ne)P!==null&&(P=P.next={lane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),a=H.hasEagerState?H.eagerState:e(a,H.action);else{var re={lane:ne,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null};P===null?(L=P=re,w=a):P=P.next=re,nt.lanes|=ne,br|=ne}H=H.next}while(H!==null&&H!==g);P===null?w=a:P.next=L,dn(a,n.memoizedState)||($t=!0),n.memoizedState=a,n.baseState=w,n.baseQueue=P,l.lastRenderedState=a}if(e=l.interleaved,e!==null){p=e;do g=p.lane,nt.lanes|=g,br|=g,p=p.next;while(p!==e)}else p===null&&(l.lanes=0);return[n.memoizedState,l.dispatch]}function ua(e){var n=rn(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,p=l.pending,g=n.memoizedState;if(p!==null){l.pending=null;var w=p=p.next;do g=e(g,w.action),w=w.next;while(w!==p);dn(g,n.memoizedState)||($t=!0),n.memoizedState=g,n.baseQueue===null&&(n.baseState=g),l.lastRenderedState=g}return[g,a]}function Nc(){}function Ic(e,n){var l=nt,a=rn(),p=n(),g=!dn(a.memoizedState,p);if(g&&(a.memoizedState=p,$t=!0),a=a.queue,ca(Pc.bind(null,l,a,e),[e]),a.getSnapshot!==n||g||yt!==null&&yt.memoizedState.tag&1){if(l.flags|=2048,Gi(9,Tc.bind(null,l,a,p,n),void 0,null),xt===null)throw Error(r(349));(Er&30)!==0||Mc(l,n,p)}return p}function Mc(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=nt.updateQueue,n===null?(n={lastEffect:null,stores:null},nt.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function Tc(e,n,l,a){n.value=l,n.getSnapshot=a,zc(n)&&Dc(e)}function Pc(e,n,l){return l(function(){zc(n)&&Dc(e)})}function zc(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!dn(e,l)}catch{return!0}}function Dc(e){var n=An(e,1);n!==null&&gn(n,e,1,-1)}function Rc(e){var n=En();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qi,lastRenderedState:e},n.queue=e,e=e.dispatch=Qf.bind(null,nt,e),[n.memoizedState,e]}function Gi(e,n,l,a){return e={tag:e,create:n,destroy:l,deps:a,next:null},n=nt.updateQueue,n===null?(n={lastEffect:null,stores:null},nt.updateQueue=n,n.lastEffect=e.next=e):(l=n.lastEffect,l===null?n.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,n.lastEffect=e)),e}function Ac(){return rn().memoizedState}function ao(e,n,l,a){var p=En();nt.flags|=e,p.memoizedState=Gi(1|n,l,void 0,a===void 0?null:a)}function uo(e,n,l,a){var p=rn();a=a===void 0?null:a;var g=void 0;if(ft!==null){var w=ft.memoizedState;if(g=w.destroy,a!==null&&la(a,w.deps)){p.memoizedState=Gi(n,l,g,a);return}}nt.flags|=e,p.memoizedState=Gi(1|n,l,g,a)}function Fc(e,n){return ao(8390656,8,e,n)}function ca(e,n){return uo(2048,8,e,n)}function Oc(e,n){return uo(4,2,e,n)}function Bc(e,n){return uo(4,4,e,n)}function $c(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Hc(e,n,l){return l=l!=null?l.concat([e]):null,uo(4,4,$c.bind(null,n,e),l)}function da(){}function Vc(e,n){var l=rn();n=n===void 0?null:n;var a=l.memoizedState;return a!==null&&n!==null&&la(n,a[1])?a[0]:(l.memoizedState=[e,n],e)}function Uc(e,n){var l=rn();n=n===void 0?null:n;var a=l.memoizedState;return a!==null&&n!==null&&la(n,a[1])?a[0]:(e=e(),l.memoizedState=[e,n],e)}function Wc(e,n,l){return(Er&21)===0?(e.baseState&&(e.baseState=!1,$t=!0),e.memoizedState=l):(dn(l,n)||(l=wu(),nt.lanes|=l,br|=l,e.baseState=!0),n)}function qf(e,n){var l=He;He=l!==0&&4>l?l:4,e(!0);var a=ia.transition;ia.transition={};try{e(!1),n()}finally{He=l,ia.transition=a}}function qc(){return rn().memoizedState}function Zf(e,n,l){var a=lr(e);if(l={lane:a,action:l,hasEagerState:!1,eagerState:null,next:null},Zc(e))Qc(n,l);else if(l=Sc(e,n,l,a),l!==null){var p=Dt();gn(l,e,a,p),Gc(l,n,a)}}function Qf(e,n,l){var a=lr(e),p={lane:a,action:l,hasEagerState:!1,eagerState:null,next:null};if(Zc(e))Qc(n,p);else{var g=e.alternate;if(e.lanes===0&&(g===null||g.lanes===0)&&(g=n.lastRenderedReducer,g!==null))try{var w=n.lastRenderedState,L=g(w,l);if(p.hasEagerState=!0,p.eagerState=L,dn(L,w)){var P=n.interleaved;P===null?(p.next=p,Xs(n)):(p.next=P.next,P.next=p),n.interleaved=p;return}}catch{}finally{}l=Sc(e,n,p,a),l!==null&&(p=Dt(),gn(l,e,a,p),Gc(l,n,a))}}function Zc(e){var n=e.alternate;return e===nt||n!==null&&n===nt}function Qc(e,n){qi=so=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function Gc(e,n,l){if((l&4194240)!==0){var a=n.lanes;a&=e.pendingLanes,l|=a,n.lanes=l,ps(e,l)}}var co={readContext:nn,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useInsertionEffect:St,useLayoutEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useMutableSource:St,useSyncExternalStore:St,useId:St,unstable_isNewReconciler:!1},Gf={readContext:nn,useCallback:function(e,n){return En().memoizedState=[e,n===void 0?null:n],e},useContext:nn,useEffect:Fc,useImperativeHandle:function(e,n,l){return l=l!=null?l.concat([e]):null,ao(4194308,4,$c.bind(null,n,e),l)},useLayoutEffect:function(e,n){return ao(4194308,4,e,n)},useInsertionEffect:function(e,n){return ao(4,2,e,n)},useMemo:function(e,n){var l=En();return n=n===void 0?null:n,e=e(),l.memoizedState=[e,n],e},useReducer:function(e,n,l){var a=En();return n=l!==void 0?l(n):n,a.memoizedState=a.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Zf.bind(null,nt,e),[a.memoizedState,e]},useRef:function(e){var n=En();return e={current:e},n.memoizedState=e},useState:Rc,useDebugValue:da,useDeferredValue:function(e){return En().memoizedState=e},useTransition:function(){var e=Rc(!1),n=e[0];return e=qf.bind(null,e[1]),En().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,l){var a=nt,p=En();if(et){if(l===void 0)throw Error(r(407));l=l()}else{if(l=n(),xt===null)throw Error(r(349));(Er&30)!==0||Mc(a,n,l)}p.memoizedState=l;var g={value:l,getSnapshot:n};return p.queue=g,Fc(Pc.bind(null,a,g,e),[e]),a.flags|=2048,Gi(9,Tc.bind(null,a,g,l,n),void 0,null),l},useId:function(){var e=En(),n=xt.identifierPrefix;if(et){var l=Rn,a=Dn;l=(a&~(1<<32-cn(a)-1)).toString(32)+l,n=":"+n+"R"+l,l=Zi++,0<l&&(n+="H"+l.toString(32)),n+=":"}else l=Wf++,n=":"+n+"r"+l.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Yf={readContext:nn,useCallback:Vc,useContext:nn,useEffect:ca,useImperativeHandle:Hc,useInsertionEffect:Oc,useLayoutEffect:Bc,useMemo:Uc,useReducer:aa,useRef:Ac,useState:function(){return aa(Qi)},useDebugValue:da,useDeferredValue:function(e){var n=rn();return Wc(n,ft.memoizedState,e)},useTransition:function(){var e=aa(Qi)[0],n=rn().memoizedState;return[e,n]},useMutableSource:Nc,useSyncExternalStore:Ic,useId:qc,unstable_isNewReconciler:!1},Kf={readContext:nn,useCallback:Vc,useContext:nn,useEffect:ca,useImperativeHandle:Hc,useInsertionEffect:Oc,useLayoutEffect:Bc,useMemo:Uc,useReducer:ua,useRef:Ac,useState:function(){return ua(Qi)},useDebugValue:da,useDeferredValue:function(e){var n=rn();return ft===null?n.memoizedState=e:Wc(n,ft.memoizedState,e)},useTransition:function(){var e=ua(Qi)[0],n=rn().memoizedState;return[e,n]},useMutableSource:Nc,useSyncExternalStore:Ic,useId:qc,unstable_isNewReconciler:!1};function pn(e,n){if(e&&e.defaultProps){n=E({},n),e=e.defaultProps;for(var l in e)n[l]===void 0&&(n[l]=e[l]);return n}return n}function fa(e,n,l,a){n=e.memoizedState,l=l(a,n),l=l==null?n:E({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var fo={isMounted:function(e){return(e=e._reactInternals)?xr(e)===e:!1},enqueueSetState:function(e,n,l){e=e._reactInternals;var a=Dt(),p=lr(e),g=Fn(a,p);g.payload=n,l!=null&&(g.callback=l),n=tr(e,g,p),n!==null&&(gn(n,e,p,a),ro(n,e,p))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var a=Dt(),p=lr(e),g=Fn(a,p);g.tag=1,g.payload=n,l!=null&&(g.callback=l),n=tr(e,g,p),n!==null&&(gn(n,e,p,a),ro(n,e,p))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=Dt(),a=lr(e),p=Fn(l,a);p.tag=2,n!=null&&(p.callback=n),n=tr(e,p,a),n!==null&&(gn(n,e,a,l),ro(n,e,a))}};function Yc(e,n,l,a,p,g,w){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,g,w):n.prototype&&n.prototype.isPureReactComponent?!Di(l,a)||!Di(p,g):!0}function Kc(e,n,l){var a=!1,p=Xn,g=n.contextType;return typeof g=="object"&&g!==null?g=nn(g):(p=Bt(n)?Cr:_t.current,a=n.contextTypes,g=(a=a!=null)?Yr(e,p):Xn),n=new n(l,g),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=fo,e.stateNode=n,n._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=p,e.__reactInternalMemoizedMaskedChildContext=g),n}function Xc(e,n,l,a){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,a),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,a),n.state!==e&&fo.enqueueReplaceState(n,n.state,null)}function pa(e,n,l,a){var p=e.stateNode;p.props=l,p.state=e.memoizedState,p.refs={},Js(e);var g=n.contextType;typeof g=="object"&&g!==null?p.context=nn(g):(g=Bt(n)?Cr:_t.current,p.context=Yr(e,g)),p.state=e.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(fa(e,n,g,l),p.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(n=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),n!==p.state&&fo.enqueueReplaceState(p,p.state,null),io(e,l,p,a),p.state=e.memoizedState),typeof p.componentDidMount=="function"&&(e.flags|=4194308)}function ii(e,n){try{var l="",a=n;do l+=_e(a),a=a.return;while(a);var p=l}catch(g){p=`
36
+ `),w=h.length-1,M=g.length-1;1<=w&&0<=M&&h[w]!==g[M];)M--;for(;1<=w&&0<=M;w--,M--)if(h[w]!==g[M]){if(w!==1||M!==1)do if(w--,M--,0>M||h[w]!==g[M]){var F=`
37
+ `+h[w].replace(" at new "," at ");return t.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",t.displayName)),F}while(1<=w&&0<=M);break}}}finally{N=!1,Error.prepareStackTrace=l}return(t=t?t.displayName||t.name:"")?K(t):""}function ve(t){switch(t.tag){case 5:return K(t.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return t=ge(t.type,!1),t;case 11:return t=ge(t.type.render,!1),t;case 1:return t=ge(t.type,!0),t;default:return""}}function fe(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ee:return"Fragment";case T:return"Portal";case Y:return"Profiler";case ie:return"StrictMode";case te:return"Suspense";case W:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case L:return(t.displayName||"Context")+".Consumer";case D:return(t._context.displayName||"Context")+".Provider";case Z:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case O:return n=t.displayName||null,n!==null?n:fe(t.type)||"Memo";case I:n=t._payload,t=t._init;try{return fe(t(n))}catch{}}return null}function Ne(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(n);case 8:return n===ie?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Ee(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ze(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ue(t){var n=ze(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),a=""+t[n];if(!t.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,g=l.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return h.call(this)},set:function(w){a=""+w,g.call(this,w)}}),Object.defineProperty(t,n,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(w){a=""+w},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function Oe(t){t._valueTracker||(t._valueTracker=Ue(t))}function rt(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var l=n.getValue(),a="";return t&&(a=ze(t)?t.checked?"true":"false":t.value),t=a,t!==l?(n.setValue(t),!0):!1}function Et(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Rt(t,n){var l=n.checked;return S({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??t._wrapperState.initialChecked})}function At(t,n){var l=n.defaultValue==null?"":n.defaultValue,a=n.checked!=null?n.checked:n.defaultChecked;l=Ee(n.value!=null?n.value:l),t._wrapperState={initialChecked:a,initialValue:l,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function jt(t,n){n=n.checked,n!=null&&b(t,"checked",n,!1)}function Ft(t,n){jt(t,n);var l=Ee(n.value),a=n.type;if(l!=null)a==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+l):t.value!==""+l&&(t.value=""+l);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}n.hasOwnProperty("value")?re(t,n.type,l):n.hasOwnProperty("defaultValue")&&re(t,n.type,Ee(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(t.defaultChecked=!!n.defaultChecked)}function gn(t,n,l){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var a=n.type;if(!(a!=="submit"&&a!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+t._wrapperState.initialValue,l||n===t.value||(t.value=n),t.defaultValue=n}l=t.name,l!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,l!==""&&(t.name=l)}function re(t,n,l){(n!=="number"||Et(t.ownerDocument)!==t)&&(l==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+l&&(t.defaultValue=""+l))}var be=Array.isArray;function Q(t,n,l,a){if(t=t.options,n){n={};for(var h=0;h<l.length;h++)n["$"+l[h]]=!0;for(l=0;l<t.length;l++)h=n.hasOwnProperty("$"+t[l].value),t[l].selected!==h&&(t[l].selected=h),h&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Ee(l),n=null,h=0;h<t.length;h++){if(t[h].value===l){t[h].selected=!0,a&&(t[h].defaultSelected=!0);return}n!==null||t[h].disabled||(n=t[h])}n!==null&&(n.selected=!0)}}function xe(t,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return S({},n,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Me(t,n){var l=n.value;if(l==null){if(l=n.children,n=n.defaultValue,l!=null){if(n!=null)throw Error(i(92));if(be(l)){if(1<l.length)throw Error(i(93));l=l[0]}n=l}n==null&&(n=""),l=n}t._wrapperState={initialValue:Ee(l)}}function st(t,n){var l=Ee(n.value),a=Ee(n.defaultValue);l!=null&&(l=""+l,l!==t.value&&(t.value=l),n.defaultValue==null&&t.defaultValue!==l&&(t.defaultValue=l)),a!=null&&(t.defaultValue=""+a)}function He(t){var n=t.textContent;n===t._wrapperState.initialValue&&n!==""&&n!==null&&(t.value=n)}function X(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ae(t,n){return t==null||t==="http://www.w3.org/1999/xhtml"?X(n):t==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var we,je=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,l,a,h){MSApp.execUnsafeLocalFunction(function(){return t(n,l,a,h)})}:t})(function(t,n){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=n;else{for(we=we||document.createElement("div"),we.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=we.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;n.firstChild;)t.appendChild(n.firstChild)}});function Re(t,n){if(n){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=n;return}}t.textContent=n}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ln=["Webkit","ms","Moz","O"];Object.keys(ft).forEach(function(t){ln.forEach(function(n){n=n+t.charAt(0).toUpperCase()+t.substring(1),ft[n]=ft[t]})});function de(t,n,l){return n==null||typeof n=="boolean"||n===""?"":l||typeof n!="number"||n===0||ft.hasOwnProperty(t)&&ft[t]?(""+n).trim():n+"px"}function Te(t,n){t=t.style;for(var l in n)if(n.hasOwnProperty(l)){var a=l.indexOf("--")===0,h=de(l,n[l],a);l==="float"&&(l="cssFloat"),a?t.setProperty(l,h):t[l]=h}}var Ge=S({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qe(t,n){if(n){if(Ge[t]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function Ot(t,n){if(t.indexOf("-")===-1)return typeof n.is=="string";switch(t){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 Xe=null;function _r(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var An=null,Fn=null,jn=null;function Il(t){if(t=Zi(t)){if(typeof An!="function")throw Error(i(280));var n=t.stateNode;n&&(n=Jl(n),An(t.stateNode,t.type,n))}}function Si(t){Fn?jn?jn.push(t):jn=[t]:Fn=t}function bi(){if(Fn){var t=Fn,n=jn;if(jn=Fn=null,Il(t),n)for(t=0;t<n.length;t++)Il(n[t])}}function Sr(t,n){return t(n)}function vu(){}var ps=!1;function Cu(t,n,l){if(ps)return t(n,l);ps=!0;try{return Sr(t,n,l)}finally{ps=!1,(Fn!==null||jn!==null)&&(vu(),bi())}}function Ei(t,n){var l=t.stateNode;if(l===null)return null;var a=Jl(l);if(a===null)return null;l=a[n];e:switch(n){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)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(i(231,n,typeof l));return l}var hs=!1;if(f)try{var ji={};Object.defineProperty(ji,"passive",{get:function(){hs=!0}}),window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{hs=!1}function B3(t,n,l,a,h,g,w,M,F){var G=Array.prototype.slice.call(arguments,3);try{n.apply(l,G)}catch(oe){this.onError(oe)}}var Li=!1,Pl=null,Ml=!1,ms=null,H3={onError:function(t){Li=!0,Pl=t}};function V3(t,n,l,a,h,g,w,M,F){Li=!1,Pl=null,B3.apply(H3,arguments)}function U3(t,n,l,a,h,g,w,M,F){if(V3.apply(this,arguments),Li){if(Li){var G=Pl;Li=!1,Pl=null}else throw Error(i(198));Ml||(Ml=!0,ms=G)}}function br(t){var n=t,l=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(l=n.return),t=n.return;while(t)}return n.tag===3?l:null}function wu(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function ku(t){if(br(t)!==t)throw Error(i(188))}function W3(t){var n=t.alternate;if(!n){if(n=br(t),n===null)throw Error(i(188));return n!==t?null:t}for(var l=t,a=n;;){var h=l.return;if(h===null)break;var g=h.alternate;if(g===null){if(a=h.return,a!==null){l=a;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===l)return ku(h),t;if(g===a)return ku(h),n;g=g.sibling}throw Error(i(188))}if(l.return!==a.return)l=h,a=g;else{for(var w=!1,M=h.child;M;){if(M===l){w=!0,l=h,a=g;break}if(M===a){w=!0,a=h,l=g;break}M=M.sibling}if(!w){for(M=g.child;M;){if(M===l){w=!0,l=g,a=h;break}if(M===a){w=!0,a=g,l=h;break}M=M.sibling}if(!w)throw Error(i(189))}}if(l.alternate!==a)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?t:n}function _u(t){return t=W3(t),t!==null?Su(t):null}function Su(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=Su(t);if(n!==null)return n;t=t.sibling}return null}var bu=r.unstable_scheduleCallback,Eu=r.unstable_cancelCallback,q3=r.unstable_shouldYield,Z3=r.unstable_requestPaint,ct=r.unstable_now,Q3=r.unstable_getCurrentPriorityLevel,gs=r.unstable_ImmediatePriority,ju=r.unstable_UserBlockingPriority,Tl=r.unstable_NormalPriority,G3=r.unstable_LowPriority,Lu=r.unstable_IdlePriority,zl=null,Ln=null;function K3(t){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{Ln.onCommitFiberRoot(zl,t,void 0,(t.current.flags&128)===128)}catch{}}var xn=Math.clz32?Math.clz32:J3,Y3=Math.log,X3=Math.LN2;function J3(t){return t>>>=0,t===0?32:31-(Y3(t)/X3|0)|0}var Dl=64,Rl=4194304;function Ni(t){switch(t&-t){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: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Al(t,n){var l=t.pendingLanes;if(l===0)return 0;var a=0,h=t.suspendedLanes,g=t.pingedLanes,w=l&268435455;if(w!==0){var M=w&~h;M!==0?a=Ni(M):(g&=w,g!==0&&(a=Ni(g)))}else w=l&~h,w!==0?a=Ni(w):g!==0&&(a=Ni(g));if(a===0)return 0;if(n!==0&&n!==a&&(n&h)===0&&(h=a&-a,g=n&-n,h>=g||h===16&&(g&4194240)!==0))return n;if((a&4)!==0&&(a|=l&16),n=t.entangledLanes,n!==0)for(t=t.entanglements,n&=a;0<n;)l=31-xn(n),h=1<<l,a|=t[l],n&=~h;return a}function ef(t,n){switch(t){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tf(t,n){for(var l=t.suspendedLanes,a=t.pingedLanes,h=t.expirationTimes,g=t.pendingLanes;0<g;){var w=31-xn(g),M=1<<w,F=h[w];F===-1?((M&l)===0||(M&a)!==0)&&(h[w]=ef(M,n)):F<=n&&(t.expiredLanes|=M),g&=~M}}function xs(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Nu(){var t=Dl;return Dl<<=1,(Dl&4194240)===0&&(Dl=64),t}function ys(t){for(var n=[],l=0;31>l;l++)n.push(t);return n}function Ii(t,n,l){t.pendingLanes|=n,n!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,n=31-xn(n),t[n]=l}function nf(t,n){var l=t.pendingLanes&~n;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=n,t.mutableReadLanes&=n,t.entangledLanes&=n,n=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<l;){var h=31-xn(l),g=1<<h;n[h]=0,a[h]=-1,t[h]=-1,l&=~g}}function vs(t,n){var l=t.entangledLanes|=n;for(t=t.entanglements;l;){var a=31-xn(l),h=1<<a;h&n|t[a]&n&&(t[a]|=n),l&=~h}}var qe=0;function Iu(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Pu,Cs,Mu,Tu,zu,ws=!1,Fl=[],Yn=null,Xn=null,Jn=null,Pi=new Map,Mi=new Map,er=[],rf="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 submit".split(" ");function Du(t,n){switch(t){case"focusin":case"focusout":Yn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":Pi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mi.delete(n.pointerId)}}function Ti(t,n,l,a,h,g){return t===null||t.nativeEvent!==g?(t={blockedOn:n,domEventName:l,eventSystemFlags:a,nativeEvent:g,targetContainers:[h]},n!==null&&(n=Zi(n),n!==null&&Cs(n)),t):(t.eventSystemFlags|=a,n=t.targetContainers,h!==null&&n.indexOf(h)===-1&&n.push(h),t)}function lf(t,n,l,a,h){switch(n){case"focusin":return Yn=Ti(Yn,t,n,l,a,h),!0;case"dragenter":return Xn=Ti(Xn,t,n,l,a,h),!0;case"mouseover":return Jn=Ti(Jn,t,n,l,a,h),!0;case"pointerover":var g=h.pointerId;return Pi.set(g,Ti(Pi.get(g)||null,t,n,l,a,h)),!0;case"gotpointercapture":return g=h.pointerId,Mi.set(g,Ti(Mi.get(g)||null,t,n,l,a,h)),!0}return!1}function Ru(t){var n=Er(t.target);if(n!==null){var l=br(n);if(l!==null){if(n=l.tag,n===13){if(n=wu(l),n!==null){t.blockedOn=n,zu(t.priority,function(){Mu(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ol(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var l=_s(t.domEventName,t.eventSystemFlags,n[0],t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Xe=a,l.target.dispatchEvent(a),Xe=null}else return n=Zi(l),n!==null&&Cs(n),t.blockedOn=l,!1;n.shift()}return!0}function Au(t,n,l){Ol(t)&&l.delete(n)}function of(){ws=!1,Yn!==null&&Ol(Yn)&&(Yn=null),Xn!==null&&Ol(Xn)&&(Xn=null),Jn!==null&&Ol(Jn)&&(Jn=null),Pi.forEach(Au),Mi.forEach(Au)}function zi(t,n){t.blockedOn===n&&(t.blockedOn=null,ws||(ws=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,of)))}function Di(t){function n(h){return zi(h,t)}if(0<Fl.length){zi(Fl[0],t);for(var l=1;l<Fl.length;l++){var a=Fl[l];a.blockedOn===t&&(a.blockedOn=null)}}for(Yn!==null&&zi(Yn,t),Xn!==null&&zi(Xn,t),Jn!==null&&zi(Jn,t),Pi.forEach(n),Mi.forEach(n),l=0;l<er.length;l++)a=er[l],a.blockedOn===t&&(a.blockedOn=null);for(;0<er.length&&(l=er[0],l.blockedOn===null);)Ru(l),l.blockedOn===null&&er.shift()}var Zr=$.ReactCurrentBatchConfig,$l=!0;function sf(t,n,l,a){var h=qe,g=Zr.transition;Zr.transition=null;try{qe=1,ks(t,n,l,a)}finally{qe=h,Zr.transition=g}}function af(t,n,l,a){var h=qe,g=Zr.transition;Zr.transition=null;try{qe=4,ks(t,n,l,a)}finally{qe=h,Zr.transition=g}}function ks(t,n,l,a){if($l){var h=_s(t,n,l,a);if(h===null)$s(t,n,a,Bl,l),Du(t,a);else if(lf(h,t,n,l,a))a.stopPropagation();else if(Du(t,a),n&4&&-1<rf.indexOf(t)){for(;h!==null;){var g=Zi(h);if(g!==null&&Pu(g),g=_s(t,n,l,a),g===null&&$s(t,n,a,Bl,l),g===h)break;h=g}h!==null&&a.stopPropagation()}else $s(t,n,a,null,l)}}var Bl=null;function _s(t,n,l,a){if(Bl=null,t=_r(a),t=Er(t),t!==null)if(n=br(t),n===null)t=null;else if(l=n.tag,l===13){if(t=wu(n),t!==null)return t;t=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null);return Bl=t,null}function Fu(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Q3()){case gs:return 1;case ju:return 4;case Tl:case G3:return 16;case Lu:return 536870912;default:return 16}default:return 16}}var tr=null,Ss=null,Hl=null;function Ou(){if(Hl)return Hl;var t,n=Ss,l=n.length,a,h="value"in tr?tr.value:tr.textContent,g=h.length;for(t=0;t<l&&n[t]===h[t];t++);var w=l-t;for(a=1;a<=w&&n[l-a]===h[g-a];a++);return Hl=h.slice(t,1<a?1-a:void 0)}function Vl(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function Ul(){return!0}function $u(){return!1}function Xt(t){function n(l,a,h,g,w){this._reactName=l,this._targetInst=h,this.type=a,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var M in t)t.hasOwnProperty(M)&&(l=t[M],this[M]=l?l(g):g[M]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ul:$u,this.isPropagationStopped=$u,this}return S(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ul)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ul)},persist:function(){},isPersistent:Ul}),n}var Qr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bs=Xt(Qr),Ri=S({},Qr,{view:0,detail:0}),uf=Xt(Ri),Es,js,Ai,Wl=S({},Ri,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ns,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ai&&(Ai&&t.type==="mousemove"?(Es=t.screenX-Ai.screenX,js=t.screenY-Ai.screenY):js=Es=0,Ai=t),Es)},movementY:function(t){return"movementY"in t?t.movementY:js}}),Bu=Xt(Wl),cf=S({},Wl,{dataTransfer:0}),df=Xt(cf),ff=S({},Ri,{relatedTarget:0}),Ls=Xt(ff),pf=S({},Qr,{animationName:0,elapsedTime:0,pseudoElement:0}),hf=Xt(pf),mf=S({},Qr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),gf=Xt(mf),xf=S({},Qr,{data:0}),Hu=Xt(xf),yf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vf={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"},Cf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wf(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=Cf[t])?!!n[t]:!1}function Ns(){return wf}var kf=S({},Ri,{key:function(t){if(t.key){var n=yf[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Vl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?vf[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ns,charCode:function(t){return t.type==="keypress"?Vl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Vl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),_f=Xt(kf),Sf=S({},Wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vu=Xt(Sf),bf=S({},Ri,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ns}),Ef=Xt(bf),jf=S({},Qr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lf=Xt(jf),Nf=S({},Wl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),If=Xt(Nf),Pf=[9,13,27,32],Is=f&&"CompositionEvent"in window,Fi=null;f&&"documentMode"in document&&(Fi=document.documentMode);var Mf=f&&"TextEvent"in window&&!Fi,Uu=f&&(!Is||Fi&&8<Fi&&11>=Fi),Wu=" ",qu=!1;function Zu(t,n){switch(t){case"keyup":return Pf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qu(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Gr=!1;function Tf(t,n){switch(t){case"compositionend":return Qu(n);case"keypress":return n.which!==32?null:(qu=!0,Wu);case"textInput":return t=n.data,t===Wu&&qu?null:t;default:return null}}function zf(t,n){if(Gr)return t==="compositionend"||!Is&&Zu(t,n)?(t=Ou(),Hl=Ss=tr=null,Gr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Uu&&n.locale!=="ko"?null:n.data;default:return null}}var Df={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 Gu(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!Df[t.type]:n==="textarea"}function Ku(t,n,l,a){Si(a),n=Kl(n,"onChange"),0<n.length&&(l=new bs("onChange","change",null,l,a),t.push({event:l,listeners:n}))}var Oi=null,$i=null;function Rf(t){hc(t,0)}function ql(t){var n=ei(t);if(rt(n))return t}function Af(t,n){if(t==="change")return n}var Yu=!1;if(f){var Ps;if(f){var Ms="oninput"in document;if(!Ms){var Xu=document.createElement("div");Xu.setAttribute("oninput","return;"),Ms=typeof Xu.oninput=="function"}Ps=Ms}else Ps=!1;Yu=Ps&&(!document.documentMode||9<document.documentMode)}function Ju(){Oi&&(Oi.detachEvent("onpropertychange",ec),$i=Oi=null)}function ec(t){if(t.propertyName==="value"&&ql($i)){var n=[];Ku(n,$i,t,_r(t)),Cu(Rf,n)}}function Ff(t,n,l){t==="focusin"?(Ju(),Oi=n,$i=l,Oi.attachEvent("onpropertychange",ec)):t==="focusout"&&Ju()}function Of(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ql($i)}function $f(t,n){if(t==="click")return ql(n)}function Bf(t,n){if(t==="input"||t==="change")return ql(n)}function Hf(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var yn=typeof Object.is=="function"?Object.is:Hf;function Bi(t,n){if(yn(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var l=Object.keys(t),a=Object.keys(n);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var h=l[a];if(!p.call(n,h)||!yn(t[h],n[h]))return!1}return!0}function tc(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function nc(t,n){var l=tc(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=n&&a>=n)return{node:l,offset:n-t};t=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=tc(l)}}function rc(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?rc(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function ic(){for(var t=window,n=Et();n instanceof t.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)t=n.contentWindow;else break;n=Et(t.document)}return n}function Ts(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function Vf(t){var n=ic(),l=t.focusedElem,a=t.selectionRange;if(n!==l&&l&&l.ownerDocument&&rc(l.ownerDocument.documentElement,l)){if(a!==null&&Ts(l)){if(n=a.start,t=a.end,t===void 0&&(t=n),"selectionStart"in l)l.selectionStart=n,l.selectionEnd=Math.min(t,l.value.length);else if(t=(n=l.ownerDocument||document)&&n.defaultView||window,t.getSelection){t=t.getSelection();var h=l.textContent.length,g=Math.min(a.start,h);a=a.end===void 0?g:Math.min(a.end,h),!t.extend&&g>a&&(h=a,a=g,g=h),h=nc(l,g);var w=nc(l,a);h&&w&&(t.rangeCount!==1||t.anchorNode!==h.node||t.anchorOffset!==h.offset||t.focusNode!==w.node||t.focusOffset!==w.offset)&&(n=n.createRange(),n.setStart(h.node,h.offset),t.removeAllRanges(),g>a?(t.addRange(n),t.extend(w.node,w.offset)):(n.setEnd(w.node,w.offset),t.addRange(n)))}}for(n=[],t=l;t=t.parentNode;)t.nodeType===1&&n.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<n.length;l++)t=n[l],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Uf=f&&"documentMode"in document&&11>=document.documentMode,Kr=null,zs=null,Hi=null,Ds=!1;function lc(t,n,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ds||Kr==null||Kr!==Et(a)||(a=Kr,"selectionStart"in a&&Ts(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}),Hi&&Bi(Hi,a)||(Hi=a,a=Kl(zs,"onSelect"),0<a.length&&(n=new bs("onSelect","select",null,n,l),t.push({event:n,listeners:a}),n.target=Kr)))}function Zl(t,n){var l={};return l[t.toLowerCase()]=n.toLowerCase(),l["Webkit"+t]="webkit"+n,l["Moz"+t]="moz"+n,l}var Yr={animationend:Zl("Animation","AnimationEnd"),animationiteration:Zl("Animation","AnimationIteration"),animationstart:Zl("Animation","AnimationStart"),transitionend:Zl("Transition","TransitionEnd")},Rs={},oc={};f&&(oc=document.createElement("div").style,"AnimationEvent"in window||(delete Yr.animationend.animation,delete Yr.animationiteration.animation,delete Yr.animationstart.animation),"TransitionEvent"in window||delete Yr.transitionend.transition);function Ql(t){if(Rs[t])return Rs[t];if(!Yr[t])return t;var n=Yr[t],l;for(l in n)if(n.hasOwnProperty(l)&&l in oc)return Rs[t]=n[l];return t}var sc=Ql("animationend"),ac=Ql("animationiteration"),uc=Ql("animationstart"),cc=Ql("transitionend"),dc=new Map,fc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function nr(t,n){dc.set(t,n),u(n,[t])}for(var As=0;As<fc.length;As++){var Fs=fc[As],Wf=Fs.toLowerCase(),qf=Fs[0].toUpperCase()+Fs.slice(1);nr(Wf,"on"+qf)}nr(sc,"onAnimationEnd"),nr(ac,"onAnimationIteration"),nr(uc,"onAnimationStart"),nr("dblclick","onDoubleClick"),nr("focusin","onFocus"),nr("focusout","onBlur"),nr(cc,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vi="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(" "),Zf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vi));function pc(t,n,l){var a=t.type||"unknown-event";t.currentTarget=l,U3(a,n,void 0,t),t.currentTarget=null}function hc(t,n){n=(n&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],h=a.event;a=a.listeners;e:{var g=void 0;if(n)for(var w=a.length-1;0<=w;w--){var M=a[w],F=M.instance,G=M.currentTarget;if(M=M.listener,F!==g&&h.isPropagationStopped())break e;pc(h,M,G),g=F}else for(w=0;w<a.length;w++){if(M=a[w],F=M.instance,G=M.currentTarget,M=M.listener,F!==g&&h.isPropagationStopped())break e;pc(h,M,G),g=F}}}if(Ml)throw t=ms,Ml=!1,ms=null,t}function et(t,n){var l=n[qs];l===void 0&&(l=n[qs]=new Set);var a=t+"__bubble";l.has(a)||(mc(n,t,2,!1),l.add(a))}function Os(t,n,l){var a=0;n&&(a|=4),mc(l,t,a,n)}var Gl="_reactListening"+Math.random().toString(36).slice(2);function Ui(t){if(!t[Gl]){t[Gl]=!0,o.forEach(function(l){l!=="selectionchange"&&(Zf.has(l)||Os(l,!1,t),Os(l,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Gl]||(n[Gl]=!0,Os("selectionchange",!1,n))}}function mc(t,n,l,a){switch(Fu(n)){case 1:var h=sf;break;case 4:h=af;break;default:h=ks}l=h.bind(null,n,l,t),h=void 0,!hs||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(h=!0),a?h!==void 0?t.addEventListener(n,l,{capture:!0,passive:h}):t.addEventListener(n,l,!0):h!==void 0?t.addEventListener(n,l,{passive:h}):t.addEventListener(n,l,!1)}function $s(t,n,l,a,h){var g=a;if((n&1)===0&&(n&2)===0&&a!==null)e:for(;;){if(a===null)return;var w=a.tag;if(w===3||w===4){var M=a.stateNode.containerInfo;if(M===h||M.nodeType===8&&M.parentNode===h)break;if(w===4)for(w=a.return;w!==null;){var F=w.tag;if((F===3||F===4)&&(F=w.stateNode.containerInfo,F===h||F.nodeType===8&&F.parentNode===h))return;w=w.return}for(;M!==null;){if(w=Er(M),w===null)return;if(F=w.tag,F===5||F===6){a=g=w;continue e}M=M.parentNode}}a=a.return}Cu(function(){var G=g,oe=_r(l),se=[];e:{var le=dc.get(t);if(le!==void 0){var pe=bs,me=t;switch(t){case"keypress":if(Vl(l)===0)break e;case"keydown":case"keyup":pe=_f;break;case"focusin":me="focus",pe=Ls;break;case"focusout":me="blur",pe=Ls;break;case"beforeblur":case"afterblur":pe=Ls;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=Bu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=df;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=Ef;break;case sc:case ac:case uc:pe=hf;break;case cc:pe=Lf;break;case"scroll":pe=uf;break;case"wheel":pe=If;break;case"copy":case"cut":case"paste":pe=gf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=Vu}var ye=(n&4)!==0,dt=!ye&&t==="scroll",U=ye?le!==null?le+"Capture":null:le;ye=[];for(var H=G,q;H!==null;){q=H;var ce=q.stateNode;if(q.tag===5&&ce!==null&&(q=ce,U!==null&&(ce=Ei(H,U),ce!=null&&ye.push(Wi(H,ce,q)))),dt)break;H=H.return}0<ye.length&&(le=new pe(le,me,null,l,oe),se.push({event:le,listeners:ye}))}}if((n&7)===0){e:{if(le=t==="mouseover"||t==="pointerover",pe=t==="mouseout"||t==="pointerout",le&&l!==Xe&&(me=l.relatedTarget||l.fromElement)&&(Er(me)||me[On]))break e;if((pe||le)&&(le=oe.window===oe?oe:(le=oe.ownerDocument)?le.defaultView||le.parentWindow:window,pe?(me=l.relatedTarget||l.toElement,pe=G,me=me?Er(me):null,me!==null&&(dt=br(me),me!==dt||me.tag!==5&&me.tag!==6)&&(me=null)):(pe=null,me=G),pe!==me)){if(ye=Bu,ce="onMouseLeave",U="onMouseEnter",H="mouse",(t==="pointerout"||t==="pointerover")&&(ye=Vu,ce="onPointerLeave",U="onPointerEnter",H="pointer"),dt=pe==null?le:ei(pe),q=me==null?le:ei(me),le=new ye(ce,H+"leave",pe,l,oe),le.target=dt,le.relatedTarget=q,ce=null,Er(oe)===G&&(ye=new ye(U,H+"enter",me,l,oe),ye.target=q,ye.relatedTarget=dt,ce=ye),dt=ce,pe&&me)t:{for(ye=pe,U=me,H=0,q=ye;q;q=Xr(q))H++;for(q=0,ce=U;ce;ce=Xr(ce))q++;for(;0<H-q;)ye=Xr(ye),H--;for(;0<q-H;)U=Xr(U),q--;for(;H--;){if(ye===U||U!==null&&ye===U.alternate)break t;ye=Xr(ye),U=Xr(U)}ye=null}else ye=null;pe!==null&&gc(se,le,pe,ye,!1),me!==null&&dt!==null&&gc(se,dt,me,ye,!0)}}e:{if(le=G?ei(G):window,pe=le.nodeName&&le.nodeName.toLowerCase(),pe==="select"||pe==="input"&&le.type==="file")var Ce=Af;else if(Gu(le))if(Yu)Ce=Bf;else{Ce=Of;var ke=Ff}else(pe=le.nodeName)&&pe.toLowerCase()==="input"&&(le.type==="checkbox"||le.type==="radio")&&(Ce=$f);if(Ce&&(Ce=Ce(t,G))){Ku(se,Ce,l,oe);break e}ke&&ke(t,le,G),t==="focusout"&&(ke=le._wrapperState)&&ke.controlled&&le.type==="number"&&re(le,"number",le.value)}switch(ke=G?ei(G):window,t){case"focusin":(Gu(ke)||ke.contentEditable==="true")&&(Kr=ke,zs=G,Hi=null);break;case"focusout":Hi=zs=Kr=null;break;case"mousedown":Ds=!0;break;case"contextmenu":case"mouseup":case"dragend":Ds=!1,lc(se,l,oe);break;case"selectionchange":if(Uf)break;case"keydown":case"keyup":lc(se,l,oe)}var _e;if(Is)e:{switch(t){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Gr?Zu(t,l)&&(Le="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Le="onCompositionStart");Le&&(Uu&&l.locale!=="ko"&&(Gr||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Gr&&(_e=Ou()):(tr=oe,Ss="value"in tr?tr.value:tr.textContent,Gr=!0)),ke=Kl(G,Le),0<ke.length&&(Le=new Hu(Le,t,null,l,oe),se.push({event:Le,listeners:ke}),_e?Le.data=_e:(_e=Qu(l),_e!==null&&(Le.data=_e)))),(_e=Mf?Tf(t,l):zf(t,l))&&(G=Kl(G,"onBeforeInput"),0<G.length&&(oe=new Hu("onBeforeInput","beforeinput",null,l,oe),se.push({event:oe,listeners:G}),oe.data=_e))}hc(se,n)})}function Wi(t,n,l){return{instance:t,listener:n,currentTarget:l}}function Kl(t,n){for(var l=n+"Capture",a=[];t!==null;){var h=t,g=h.stateNode;h.tag===5&&g!==null&&(h=g,g=Ei(t,l),g!=null&&a.unshift(Wi(t,g,h)),g=Ei(t,n),g!=null&&a.push(Wi(t,g,h))),t=t.return}return a}function Xr(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function gc(t,n,l,a,h){for(var g=n._reactName,w=[];l!==null&&l!==a;){var M=l,F=M.alternate,G=M.stateNode;if(F!==null&&F===a)break;M.tag===5&&G!==null&&(M=G,h?(F=Ei(l,g),F!=null&&w.unshift(Wi(l,F,M))):h||(F=Ei(l,g),F!=null&&w.push(Wi(l,F,M)))),l=l.return}w.length!==0&&t.push({event:n,listeners:w})}var Qf=/\r\n?/g,Gf=/\u0000|\uFFFD/g;function xc(t){return(typeof t=="string"?t:""+t).replace(Qf,`
38
+ `).replace(Gf,"")}function Yl(t,n,l){if(n=xc(n),xc(t)!==n&&l)throw Error(i(425))}function Xl(){}var Bs=null,Hs=null;function Vs(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Us=typeof setTimeout=="function"?setTimeout:void 0,Kf=typeof clearTimeout=="function"?clearTimeout:void 0,yc=typeof Promise=="function"?Promise:void 0,Yf=typeof queueMicrotask=="function"?queueMicrotask:typeof yc<"u"?function(t){return yc.resolve(null).then(t).catch(Xf)}:Us;function Xf(t){setTimeout(function(){throw t})}function Ws(t,n){var l=n,a=0;do{var h=l.nextSibling;if(t.removeChild(l),h&&h.nodeType===8)if(l=h.data,l==="/$"){if(a===0){t.removeChild(h),Di(n);return}a--}else l!=="$"&&l!=="$?"&&l!=="$!"||a++;l=h}while(l);Di(n)}function rr(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return t}function vc(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(n===0)return t;n--}else l==="/$"&&n++}t=t.previousSibling}return null}var Jr=Math.random().toString(36).slice(2),Nn="__reactFiber$"+Jr,qi="__reactProps$"+Jr,On="__reactContainer$"+Jr,qs="__reactEvents$"+Jr,Jf="__reactListeners$"+Jr,e4="__reactHandles$"+Jr;function Er(t){var n=t[Nn];if(n)return n;for(var l=t.parentNode;l;){if(n=l[On]||l[Nn]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(t=vc(t);t!==null;){if(l=t[Nn])return l;t=vc(t)}return n}t=l,l=t.parentNode}return null}function Zi(t){return t=t[Nn]||t[On],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function ei(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Jl(t){return t[qi]||null}var Zs=[],ti=-1;function ir(t){return{current:t}}function tt(t){0>ti||(t.current=Zs[ti],Zs[ti]=null,ti--)}function Je(t,n){ti++,Zs[ti]=t.current,t.current=n}var lr={},Lt=ir(lr),Ut=ir(!1),jr=lr;function ni(t,n){var l=t.type.contextTypes;if(!l)return lr;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===n)return a.__reactInternalMemoizedMaskedChildContext;var h={},g;for(g in l)h[g]=n[g];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=n,t.__reactInternalMemoizedMaskedChildContext=h),h}function Wt(t){return t=t.childContextTypes,t!=null}function eo(){tt(Ut),tt(Lt)}function Cc(t,n,l){if(Lt.current!==lr)throw Error(i(168));Je(Lt,n),Je(Ut,l)}function wc(t,n,l){var a=t.stateNode;if(n=n.childContextTypes,typeof a.getChildContext!="function")return l;a=a.getChildContext();for(var h in a)if(!(h in n))throw Error(i(108,Ne(t)||"Unknown",h));return S({},l,a)}function to(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||lr,jr=Lt.current,Je(Lt,t),Je(Ut,Ut.current),!0}function kc(t,n,l){var a=t.stateNode;if(!a)throw Error(i(169));l?(t=wc(t,n,jr),a.__reactInternalMemoizedMergedChildContext=t,tt(Ut),tt(Lt),Je(Lt,t)):tt(Ut),Je(Ut,l)}var $n=null,no=!1,Qs=!1;function _c(t){$n===null?$n=[t]:$n.push(t)}function t4(t){no=!0,_c(t)}function or(){if(!Qs&&$n!==null){Qs=!0;var t=0,n=qe;try{var l=$n;for(qe=1;t<l.length;t++){var a=l[t];do a=a(!0);while(a!==null)}$n=null,no=!1}catch(h){throw $n!==null&&($n=$n.slice(t+1)),bu(gs,or),h}finally{qe=n,Qs=!1}}return null}var ri=[],ii=0,ro=null,io=0,on=[],sn=0,Lr=null,Bn=1,Hn="";function Nr(t,n){ri[ii++]=io,ri[ii++]=ro,ro=t,io=n}function Sc(t,n,l){on[sn++]=Bn,on[sn++]=Hn,on[sn++]=Lr,Lr=t;var a=Bn;t=Hn;var h=32-xn(a)-1;a&=~(1<<h),l+=1;var g=32-xn(n)+h;if(30<g){var w=h-h%5;g=(a&(1<<w)-1).toString(32),a>>=w,h-=w,Bn=1<<32-xn(n)+h|l<<h|a,Hn=g+t}else Bn=1<<g|l<<h|a,Hn=t}function Gs(t){t.return!==null&&(Nr(t,1),Sc(t,1,0))}function Ks(t){for(;t===ro;)ro=ri[--ii],ri[ii]=null,io=ri[--ii],ri[ii]=null;for(;t===Lr;)Lr=on[--sn],on[sn]=null,Hn=on[--sn],on[sn]=null,Bn=on[--sn],on[sn]=null}var Jt=null,en=null,nt=!1,vn=null;function bc(t,n){var l=dn(5,null,null,0);l.elementType="DELETED",l.stateNode=n,l.return=t,n=t.deletions,n===null?(t.deletions=[l],t.flags|=16):n.push(l)}function Ec(t,n){switch(t.tag){case 5:var l=t.type;return n=n.nodeType!==1||l.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(t.stateNode=n,Jt=t,en=rr(n.firstChild),!0):!1;case 6:return n=t.pendingProps===""||n.nodeType!==3?null:n,n!==null?(t.stateNode=n,Jt=t,en=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(l=Lr!==null?{id:Bn,overflow:Hn}:null,t.memoizedState={dehydrated:n,treeContext:l,retryLane:1073741824},l=dn(18,null,null,0),l.stateNode=n,l.return=t,t.child=l,Jt=t,en=null,!0):!1;default:return!1}}function Ys(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Xs(t){if(nt){var n=en;if(n){var l=n;if(!Ec(t,n)){if(Ys(t))throw Error(i(418));n=rr(l.nextSibling);var a=Jt;n&&Ec(t,n)?bc(a,l):(t.flags=t.flags&-4097|2,nt=!1,Jt=t)}}else{if(Ys(t))throw Error(i(418));t.flags=t.flags&-4097|2,nt=!1,Jt=t}}}function jc(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Jt=t}function lo(t){if(t!==Jt)return!1;if(!nt)return jc(t),nt=!0,!1;var n;if((n=t.tag!==3)&&!(n=t.tag!==5)&&(n=t.type,n=n!=="head"&&n!=="body"&&!Vs(t.type,t.memoizedProps)),n&&(n=en)){if(Ys(t))throw Lc(),Error(i(418));for(;n;)bc(t,n),n=rr(n.nextSibling)}if(jc(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"){if(n===0){en=rr(t.nextSibling);break e}n--}else l!=="$"&&l!=="$!"&&l!=="$?"||n++}t=t.nextSibling}en=null}}else en=Jt?rr(t.stateNode.nextSibling):null;return!0}function Lc(){for(var t=en;t;)t=rr(t.nextSibling)}function li(){en=Jt=null,nt=!1}function Js(t){vn===null?vn=[t]:vn.push(t)}var n4=$.ReactCurrentBatchConfig;function Qi(t,n,l){if(t=l.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(i(309));var a=l.stateNode}if(!a)throw Error(i(147,t));var h=a,g=""+t;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===g?n.ref:(n=function(w){var M=h.refs;w===null?delete M[g]:M[g]=w},n._stringRef=g,n)}if(typeof t!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,t))}return t}function oo(t,n){throw t=Object.prototype.toString.call(n),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}function Nc(t){var n=t._init;return n(t._payload)}function Ic(t){function n(U,H){if(t){var q=U.deletions;q===null?(U.deletions=[H],U.flags|=16):q.push(H)}}function l(U,H){if(!t)return null;for(;H!==null;)n(U,H),H=H.sibling;return null}function a(U,H){for(U=new Map;H!==null;)H.key!==null?U.set(H.key,H):U.set(H.index,H),H=H.sibling;return U}function h(U,H){return U=hr(U,H),U.index=0,U.sibling=null,U}function g(U,H,q){return U.index=q,t?(q=U.alternate,q!==null?(q=q.index,q<H?(U.flags|=2,H):q):(U.flags|=2,H)):(U.flags|=1048576,H)}function w(U){return t&&U.alternate===null&&(U.flags|=2),U}function M(U,H,q,ce){return H===null||H.tag!==6?(H=Ua(q,U.mode,ce),H.return=U,H):(H=h(H,q),H.return=U,H)}function F(U,H,q,ce){var Ce=q.type;return Ce===ee?oe(U,H,q.props.children,ce,q.key):H!==null&&(H.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===I&&Nc(Ce)===H.type)?(ce=h(H,q.props),ce.ref=Qi(U,H,q),ce.return=U,ce):(ce=Po(q.type,q.key,q.props,null,U.mode,ce),ce.ref=Qi(U,H,q),ce.return=U,ce)}function G(U,H,q,ce){return H===null||H.tag!==4||H.stateNode.containerInfo!==q.containerInfo||H.stateNode.implementation!==q.implementation?(H=Wa(q,U.mode,ce),H.return=U,H):(H=h(H,q.children||[]),H.return=U,H)}function oe(U,H,q,ce,Ce){return H===null||H.tag!==7?(H=Ar(q,U.mode,ce,Ce),H.return=U,H):(H=h(H,q),H.return=U,H)}function se(U,H,q){if(typeof H=="string"&&H!==""||typeof H=="number")return H=Ua(""+H,U.mode,q),H.return=U,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case B:return q=Po(H.type,H.key,H.props,null,U.mode,q),q.ref=Qi(U,null,H),q.return=U,q;case T:return H=Wa(H,U.mode,q),H.return=U,H;case I:var ce=H._init;return se(U,ce(H._payload),q)}if(be(H)||ne(H))return H=Ar(H,U.mode,q,null),H.return=U,H;oo(U,H)}return null}function le(U,H,q,ce){var Ce=H!==null?H.key:null;if(typeof q=="string"&&q!==""||typeof q=="number")return Ce!==null?null:M(U,H,""+q,ce);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case B:return q.key===Ce?F(U,H,q,ce):null;case T:return q.key===Ce?G(U,H,q,ce):null;case I:return Ce=q._init,le(U,H,Ce(q._payload),ce)}if(be(q)||ne(q))return Ce!==null?null:oe(U,H,q,ce,null);oo(U,q)}return null}function pe(U,H,q,ce,Ce){if(typeof ce=="string"&&ce!==""||typeof ce=="number")return U=U.get(q)||null,M(H,U,""+ce,Ce);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case B:return U=U.get(ce.key===null?q:ce.key)||null,F(H,U,ce,Ce);case T:return U=U.get(ce.key===null?q:ce.key)||null,G(H,U,ce,Ce);case I:var ke=ce._init;return pe(U,H,q,ke(ce._payload),Ce)}if(be(ce)||ne(ce))return U=U.get(q)||null,oe(H,U,ce,Ce,null);oo(H,ce)}return null}function me(U,H,q,ce){for(var Ce=null,ke=null,_e=H,Le=H=0,_t=null;_e!==null&&Le<q.length;Le++){_e.index>Le?(_t=_e,_e=null):_t=_e.sibling;var Ve=le(U,_e,q[Le],ce);if(Ve===null){_e===null&&(_e=_t);break}t&&_e&&Ve.alternate===null&&n(U,_e),H=g(Ve,H,Le),ke===null?Ce=Ve:ke.sibling=Ve,ke=Ve,_e=_t}if(Le===q.length)return l(U,_e),nt&&Nr(U,Le),Ce;if(_e===null){for(;Le<q.length;Le++)_e=se(U,q[Le],ce),_e!==null&&(H=g(_e,H,Le),ke===null?Ce=_e:ke.sibling=_e,ke=_e);return nt&&Nr(U,Le),Ce}for(_e=a(U,_e);Le<q.length;Le++)_t=pe(_e,U,Le,q[Le],ce),_t!==null&&(t&&_t.alternate!==null&&_e.delete(_t.key===null?Le:_t.key),H=g(_t,H,Le),ke===null?Ce=_t:ke.sibling=_t,ke=_t);return t&&_e.forEach(function(mr){return n(U,mr)}),nt&&Nr(U,Le),Ce}function ye(U,H,q,ce){var Ce=ne(q);if(typeof Ce!="function")throw Error(i(150));if(q=Ce.call(q),q==null)throw Error(i(151));for(var ke=Ce=null,_e=H,Le=H=0,_t=null,Ve=q.next();_e!==null&&!Ve.done;Le++,Ve=q.next()){_e.index>Le?(_t=_e,_e=null):_t=_e.sibling;var mr=le(U,_e,Ve.value,ce);if(mr===null){_e===null&&(_e=_t);break}t&&_e&&mr.alternate===null&&n(U,_e),H=g(mr,H,Le),ke===null?Ce=mr:ke.sibling=mr,ke=mr,_e=_t}if(Ve.done)return l(U,_e),nt&&Nr(U,Le),Ce;if(_e===null){for(;!Ve.done;Le++,Ve=q.next())Ve=se(U,Ve.value,ce),Ve!==null&&(H=g(Ve,H,Le),ke===null?Ce=Ve:ke.sibling=Ve,ke=Ve);return nt&&Nr(U,Le),Ce}for(_e=a(U,_e);!Ve.done;Le++,Ve=q.next())Ve=pe(_e,U,Le,Ve.value,ce),Ve!==null&&(t&&Ve.alternate!==null&&_e.delete(Ve.key===null?Le:Ve.key),H=g(Ve,H,Le),ke===null?Ce=Ve:ke.sibling=Ve,ke=Ve);return t&&_e.forEach(function(D4){return n(U,D4)}),nt&&Nr(U,Le),Ce}function dt(U,H,q,ce){if(typeof q=="object"&&q!==null&&q.type===ee&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case B:e:{for(var Ce=q.key,ke=H;ke!==null;){if(ke.key===Ce){if(Ce=q.type,Ce===ee){if(ke.tag===7){l(U,ke.sibling),H=h(ke,q.props.children),H.return=U,U=H;break e}}else if(ke.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===I&&Nc(Ce)===ke.type){l(U,ke.sibling),H=h(ke,q.props),H.ref=Qi(U,ke,q),H.return=U,U=H;break e}l(U,ke);break}else n(U,ke);ke=ke.sibling}q.type===ee?(H=Ar(q.props.children,U.mode,ce,q.key),H.return=U,U=H):(ce=Po(q.type,q.key,q.props,null,U.mode,ce),ce.ref=Qi(U,H,q),ce.return=U,U=ce)}return w(U);case T:e:{for(ke=q.key;H!==null;){if(H.key===ke)if(H.tag===4&&H.stateNode.containerInfo===q.containerInfo&&H.stateNode.implementation===q.implementation){l(U,H.sibling),H=h(H,q.children||[]),H.return=U,U=H;break e}else{l(U,H);break}else n(U,H);H=H.sibling}H=Wa(q,U.mode,ce),H.return=U,U=H}return w(U);case I:return ke=q._init,dt(U,H,ke(q._payload),ce)}if(be(q))return me(U,H,q,ce);if(ne(q))return ye(U,H,q,ce);oo(U,q)}return typeof q=="string"&&q!==""||typeof q=="number"?(q=""+q,H!==null&&H.tag===6?(l(U,H.sibling),H=h(H,q),H.return=U,U=H):(l(U,H),H=Ua(q,U.mode,ce),H.return=U,U=H),w(U)):l(U,H)}return dt}var oi=Ic(!0),Pc=Ic(!1),so=ir(null),ao=null,si=null,ea=null;function ta(){ea=si=ao=null}function na(t){var n=so.current;tt(so),t._currentValue=n}function ra(t,n,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,a!==null&&(a.childLanes|=n)):a!==null&&(a.childLanes&n)!==n&&(a.childLanes|=n),t===l)break;t=t.return}}function ai(t,n){ao=t,ea=si=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&n)!==0&&(qt=!0),t.firstContext=null)}function an(t){var n=t._currentValue;if(ea!==t)if(t={context:t,memoizedValue:n,next:null},si===null){if(ao===null)throw Error(i(308));si=t,ao.dependencies={lanes:0,firstContext:t}}else si=si.next=t;return n}var Ir=null;function ia(t){Ir===null?Ir=[t]:Ir.push(t)}function Mc(t,n,l,a){var h=n.interleaved;return h===null?(l.next=l,ia(n)):(l.next=h.next,h.next=l),n.interleaved=l,Vn(t,a)}function Vn(t,n){t.lanes|=n;var l=t.alternate;for(l!==null&&(l.lanes|=n),l=t,t=t.return;t!==null;)t.childLanes|=n,l=t.alternate,l!==null&&(l.childLanes|=n),l=t,t=t.return;return l.tag===3?l.stateNode:null}var sr=!1;function la(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Tc(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Un(t,n){return{eventTime:t,lane:n,tag:0,payload:null,callback:null,next:null}}function ar(t,n,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Be&2)!==0){var h=a.pending;return h===null?n.next=n:(n.next=h.next,h.next=n),a.pending=n,Vn(t,l)}return h=a.interleaved,h===null?(n.next=n,ia(a)):(n.next=h.next,h.next=n),a.interleaved=n,Vn(t,l)}function uo(t,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194240)!==0)){var a=n.lanes;a&=t.pendingLanes,l|=a,n.lanes=l,vs(t,l)}}function zc(t,n){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var h=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var w={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};g===null?h=g=w:g=g.next=w,l=l.next}while(l!==null);g===null?h=g=n:g=g.next=n}else h=g=n;l={baseState:a.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:a.shared,effects:a.effects},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=n:t.next=n,l.lastBaseUpdate=n}function co(t,n,l,a){var h=t.updateQueue;sr=!1;var g=h.firstBaseUpdate,w=h.lastBaseUpdate,M=h.shared.pending;if(M!==null){h.shared.pending=null;var F=M,G=F.next;F.next=null,w===null?g=G:w.next=G,w=F;var oe=t.alternate;oe!==null&&(oe=oe.updateQueue,M=oe.lastBaseUpdate,M!==w&&(M===null?oe.firstBaseUpdate=G:M.next=G,oe.lastBaseUpdate=F))}if(g!==null){var se=h.baseState;w=0,oe=G=F=null,M=g;do{var le=M.lane,pe=M.eventTime;if((a&le)===le){oe!==null&&(oe=oe.next={eventTime:pe,lane:0,tag:M.tag,payload:M.payload,callback:M.callback,next:null});e:{var me=t,ye=M;switch(le=n,pe=l,ye.tag){case 1:if(me=ye.payload,typeof me=="function"){se=me.call(pe,se,le);break e}se=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ye.payload,le=typeof me=="function"?me.call(pe,se,le):me,le==null)break e;se=S({},se,le);break e;case 2:sr=!0}}M.callback!==null&&M.lane!==0&&(t.flags|=64,le=h.effects,le===null?h.effects=[M]:le.push(M))}else pe={eventTime:pe,lane:le,tag:M.tag,payload:M.payload,callback:M.callback,next:null},oe===null?(G=oe=pe,F=se):oe=oe.next=pe,w|=le;if(M=M.next,M===null){if(M=h.shared.pending,M===null)break;le=M,M=le.next,le.next=null,h.lastBaseUpdate=le,h.shared.pending=null}}while(!0);if(oe===null&&(F=se),h.baseState=F,h.firstBaseUpdate=G,h.lastBaseUpdate=oe,n=h.shared.interleaved,n!==null){h=n;do w|=h.lane,h=h.next;while(h!==n)}else g===null&&(h.shared.lanes=0);Tr|=w,t.lanes=w,t.memoizedState=se}}function Dc(t,n,l){if(t=n.effects,n.effects=null,t!==null)for(n=0;n<t.length;n++){var a=t[n],h=a.callback;if(h!==null){if(a.callback=null,a=l,typeof h!="function")throw Error(i(191,h));h.call(a)}}}var Gi={},In=ir(Gi),Ki=ir(Gi),Yi=ir(Gi);function Pr(t){if(t===Gi)throw Error(i(174));return t}function oa(t,n){switch(Je(Yi,n),Je(Ki,t),Je(In,Gi),t=n.nodeType,t){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ae(null,"");break;default:t=t===8?n.parentNode:n,n=t.namespaceURI||null,t=t.tagName,n=ae(n,t)}tt(In),Je(In,n)}function ui(){tt(In),tt(Ki),tt(Yi)}function Rc(t){Pr(Yi.current);var n=Pr(In.current),l=ae(n,t.type);n!==l&&(Je(Ki,t),Je(In,l))}function sa(t){Ki.current===t&&(tt(In),tt(Ki))}var it=ir(0);function fo(t){for(var n=t;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var aa=[];function ua(){for(var t=0;t<aa.length;t++)aa[t]._workInProgressVersionPrimary=null;aa.length=0}var po=$.ReactCurrentDispatcher,ca=$.ReactCurrentBatchConfig,Mr=0,lt=null,gt=null,wt=null,ho=!1,Xi=!1,Ji=0,r4=0;function Nt(){throw Error(i(321))}function da(t,n){if(n===null)return!1;for(var l=0;l<n.length&&l<t.length;l++)if(!yn(t[l],n[l]))return!1;return!0}function fa(t,n,l,a,h,g){if(Mr=g,lt=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,po.current=t===null||t.memoizedState===null?s4:a4,t=l(a,h),Xi){g=0;do{if(Xi=!1,Ji=0,25<=g)throw Error(i(301));g+=1,wt=gt=null,n.updateQueue=null,po.current=u4,t=l(a,h)}while(Xi)}if(po.current=xo,n=gt!==null&&gt.next!==null,Mr=0,wt=gt=lt=null,ho=!1,n)throw Error(i(300));return t}function pa(){var t=Ji!==0;return Ji=0,t}function Pn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?lt.memoizedState=wt=t:wt=wt.next=t,wt}function un(){if(gt===null){var t=lt.alternate;t=t!==null?t.memoizedState:null}else t=gt.next;var n=wt===null?lt.memoizedState:wt.next;if(n!==null)wt=n,gt=t;else{if(t===null)throw Error(i(310));gt=t,t={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},wt===null?lt.memoizedState=wt=t:wt=wt.next=t}return wt}function el(t,n){return typeof n=="function"?n(t):n}function ha(t){var n=un(),l=n.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var a=gt,h=a.baseQueue,g=l.pending;if(g!==null){if(h!==null){var w=h.next;h.next=g.next,g.next=w}a.baseQueue=h=g,l.pending=null}if(h!==null){g=h.next,a=a.baseState;var M=w=null,F=null,G=g;do{var oe=G.lane;if((Mr&oe)===oe)F!==null&&(F=F.next={lane:0,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),a=G.hasEagerState?G.eagerState:t(a,G.action);else{var se={lane:oe,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};F===null?(M=F=se,w=a):F=F.next=se,lt.lanes|=oe,Tr|=oe}G=G.next}while(G!==null&&G!==g);F===null?w=a:F.next=M,yn(a,n.memoizedState)||(qt=!0),n.memoizedState=a,n.baseState=w,n.baseQueue=F,l.lastRenderedState=a}if(t=l.interleaved,t!==null){h=t;do g=h.lane,lt.lanes|=g,Tr|=g,h=h.next;while(h!==t)}else h===null&&(l.lanes=0);return[n.memoizedState,l.dispatch]}function ma(t){var n=un(),l=n.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var a=l.dispatch,h=l.pending,g=n.memoizedState;if(h!==null){l.pending=null;var w=h=h.next;do g=t(g,w.action),w=w.next;while(w!==h);yn(g,n.memoizedState)||(qt=!0),n.memoizedState=g,n.baseQueue===null&&(n.baseState=g),l.lastRenderedState=g}return[g,a]}function Ac(){}function Fc(t,n){var l=lt,a=un(),h=n(),g=!yn(a.memoizedState,h);if(g&&(a.memoizedState=h,qt=!0),a=a.queue,ga(Bc.bind(null,l,a,t),[t]),a.getSnapshot!==n||g||wt!==null&&wt.memoizedState.tag&1){if(l.flags|=2048,tl(9,$c.bind(null,l,a,h,n),void 0,null),kt===null)throw Error(i(349));(Mr&30)!==0||Oc(l,n,h)}return h}function Oc(t,n,l){t.flags|=16384,t={getSnapshot:n,value:l},n=lt.updateQueue,n===null?(n={lastEffect:null,stores:null},lt.updateQueue=n,n.stores=[t]):(l=n.stores,l===null?n.stores=[t]:l.push(t))}function $c(t,n,l,a){n.value=l,n.getSnapshot=a,Hc(n)&&Vc(t)}function Bc(t,n,l){return l(function(){Hc(n)&&Vc(t)})}function Hc(t){var n=t.getSnapshot;t=t.value;try{var l=n();return!yn(t,l)}catch{return!0}}function Vc(t){var n=Vn(t,1);n!==null&&_n(n,t,1,-1)}function Uc(t){var n=Pn();return typeof t=="function"&&(t=t()),n.memoizedState=n.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:t},n.queue=t,t=t.dispatch=o4.bind(null,lt,t),[n.memoizedState,t]}function tl(t,n,l,a){return t={tag:t,create:n,destroy:l,deps:a,next:null},n=lt.updateQueue,n===null?(n={lastEffect:null,stores:null},lt.updateQueue=n,n.lastEffect=t.next=t):(l=n.lastEffect,l===null?n.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,n.lastEffect=t)),t}function Wc(){return un().memoizedState}function mo(t,n,l,a){var h=Pn();lt.flags|=t,h.memoizedState=tl(1|n,l,void 0,a===void 0?null:a)}function go(t,n,l,a){var h=un();a=a===void 0?null:a;var g=void 0;if(gt!==null){var w=gt.memoizedState;if(g=w.destroy,a!==null&&da(a,w.deps)){h.memoizedState=tl(n,l,g,a);return}}lt.flags|=t,h.memoizedState=tl(1|n,l,g,a)}function qc(t,n){return mo(8390656,8,t,n)}function ga(t,n){return go(2048,8,t,n)}function Zc(t,n){return go(4,2,t,n)}function Qc(t,n){return go(4,4,t,n)}function Gc(t,n){if(typeof n=="function")return t=t(),n(t),function(){n(null)};if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function Kc(t,n,l){return l=l!=null?l.concat([t]):null,go(4,4,Gc.bind(null,n,t),l)}function xa(){}function Yc(t,n){var l=un();n=n===void 0?null:n;var a=l.memoizedState;return a!==null&&n!==null&&da(n,a[1])?a[0]:(l.memoizedState=[t,n],t)}function Xc(t,n){var l=un();n=n===void 0?null:n;var a=l.memoizedState;return a!==null&&n!==null&&da(n,a[1])?a[0]:(t=t(),l.memoizedState=[t,n],t)}function Jc(t,n,l){return(Mr&21)===0?(t.baseState&&(t.baseState=!1,qt=!0),t.memoizedState=l):(yn(l,n)||(l=Nu(),lt.lanes|=l,Tr|=l,t.baseState=!0),n)}function i4(t,n){var l=qe;qe=l!==0&&4>l?l:4,t(!0);var a=ca.transition;ca.transition={};try{t(!1),n()}finally{qe=l,ca.transition=a}}function e0(){return un().memoizedState}function l4(t,n,l){var a=fr(t);if(l={lane:a,action:l,hasEagerState:!1,eagerState:null,next:null},t0(t))n0(n,l);else if(l=Mc(t,n,l,a),l!==null){var h=Bt();_n(l,t,a,h),r0(l,n,a)}}function o4(t,n,l){var a=fr(t),h={lane:a,action:l,hasEagerState:!1,eagerState:null,next:null};if(t0(t))n0(n,h);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=n.lastRenderedReducer,g!==null))try{var w=n.lastRenderedState,M=g(w,l);if(h.hasEagerState=!0,h.eagerState=M,yn(M,w)){var F=n.interleaved;F===null?(h.next=h,ia(n)):(h.next=F.next,F.next=h),n.interleaved=h;return}}catch{}finally{}l=Mc(t,n,h,a),l!==null&&(h=Bt(),_n(l,t,a,h),r0(l,n,a))}}function t0(t){var n=t.alternate;return t===lt||n!==null&&n===lt}function n0(t,n){Xi=ho=!0;var l=t.pending;l===null?n.next=n:(n.next=l.next,l.next=n),t.pending=n}function r0(t,n,l){if((l&4194240)!==0){var a=n.lanes;a&=t.pendingLanes,l|=a,n.lanes=l,vs(t,l)}}var xo={readContext:an,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useInsertionEffect:Nt,useLayoutEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useMutableSource:Nt,useSyncExternalStore:Nt,useId:Nt,unstable_isNewReconciler:!1},s4={readContext:an,useCallback:function(t,n){return Pn().memoizedState=[t,n===void 0?null:n],t},useContext:an,useEffect:qc,useImperativeHandle:function(t,n,l){return l=l!=null?l.concat([t]):null,mo(4194308,4,Gc.bind(null,n,t),l)},useLayoutEffect:function(t,n){return mo(4194308,4,t,n)},useInsertionEffect:function(t,n){return mo(4,2,t,n)},useMemo:function(t,n){var l=Pn();return n=n===void 0?null:n,t=t(),l.memoizedState=[t,n],t},useReducer:function(t,n,l){var a=Pn();return n=l!==void 0?l(n):n,a.memoizedState=a.baseState=n,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=l4.bind(null,lt,t),[a.memoizedState,t]},useRef:function(t){var n=Pn();return t={current:t},n.memoizedState=t},useState:Uc,useDebugValue:xa,useDeferredValue:function(t){return Pn().memoizedState=t},useTransition:function(){var t=Uc(!1),n=t[0];return t=i4.bind(null,t[1]),Pn().memoizedState=t,[n,t]},useMutableSource:function(){},useSyncExternalStore:function(t,n,l){var a=lt,h=Pn();if(nt){if(l===void 0)throw Error(i(407));l=l()}else{if(l=n(),kt===null)throw Error(i(349));(Mr&30)!==0||Oc(a,n,l)}h.memoizedState=l;var g={value:l,getSnapshot:n};return h.queue=g,qc(Bc.bind(null,a,g,t),[t]),a.flags|=2048,tl(9,$c.bind(null,a,g,l,n),void 0,null),l},useId:function(){var t=Pn(),n=kt.identifierPrefix;if(nt){var l=Hn,a=Bn;l=(a&~(1<<32-xn(a)-1)).toString(32)+l,n=":"+n+"R"+l,l=Ji++,0<l&&(n+="H"+l.toString(32)),n+=":"}else l=r4++,n=":"+n+"r"+l.toString(32)+":";return t.memoizedState=n},unstable_isNewReconciler:!1},a4={readContext:an,useCallback:Yc,useContext:an,useEffect:ga,useImperativeHandle:Kc,useInsertionEffect:Zc,useLayoutEffect:Qc,useMemo:Xc,useReducer:ha,useRef:Wc,useState:function(){return ha(el)},useDebugValue:xa,useDeferredValue:function(t){var n=un();return Jc(n,gt.memoizedState,t)},useTransition:function(){var t=ha(el)[0],n=un().memoizedState;return[t,n]},useMutableSource:Ac,useSyncExternalStore:Fc,useId:e0,unstable_isNewReconciler:!1},u4={readContext:an,useCallback:Yc,useContext:an,useEffect:ga,useImperativeHandle:Kc,useInsertionEffect:Zc,useLayoutEffect:Qc,useMemo:Xc,useReducer:ma,useRef:Wc,useState:function(){return ma(el)},useDebugValue:xa,useDeferredValue:function(t){var n=un();return gt===null?n.memoizedState=t:Jc(n,gt.memoizedState,t)},useTransition:function(){var t=ma(el)[0],n=un().memoizedState;return[t,n]},useMutableSource:Ac,useSyncExternalStore:Fc,useId:e0,unstable_isNewReconciler:!1};function Cn(t,n){if(t&&t.defaultProps){n=S({},n),t=t.defaultProps;for(var l in t)n[l]===void 0&&(n[l]=t[l]);return n}return n}function ya(t,n,l,a){n=t.memoizedState,l=l(a,n),l=l==null?n:S({},n,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var yo={isMounted:function(t){return(t=t._reactInternals)?br(t)===t:!1},enqueueSetState:function(t,n,l){t=t._reactInternals;var a=Bt(),h=fr(t),g=Un(a,h);g.payload=n,l!=null&&(g.callback=l),n=ar(t,g,h),n!==null&&(_n(n,t,h,a),uo(n,t,h))},enqueueReplaceState:function(t,n,l){t=t._reactInternals;var a=Bt(),h=fr(t),g=Un(a,h);g.tag=1,g.payload=n,l!=null&&(g.callback=l),n=ar(t,g,h),n!==null&&(_n(n,t,h,a),uo(n,t,h))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var l=Bt(),a=fr(t),h=Un(l,a);h.tag=2,n!=null&&(h.callback=n),n=ar(t,h,a),n!==null&&(_n(n,t,a,l),uo(n,t,a))}};function i0(t,n,l,a,h,g,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,g,w):n.prototype&&n.prototype.isPureReactComponent?!Bi(l,a)||!Bi(h,g):!0}function l0(t,n,l){var a=!1,h=lr,g=n.contextType;return typeof g=="object"&&g!==null?g=an(g):(h=Wt(n)?jr:Lt.current,a=n.contextTypes,g=(a=a!=null)?ni(t,h):lr),n=new n(l,g),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=yo,t.stateNode=n,n._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=h,t.__reactInternalMemoizedMaskedChildContext=g),n}function o0(t,n,l,a){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,a),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,a),n.state!==t&&yo.enqueueReplaceState(n,n.state,null)}function va(t,n,l,a){var h=t.stateNode;h.props=l,h.state=t.memoizedState,h.refs={},la(t);var g=n.contextType;typeof g=="object"&&g!==null?h.context=an(g):(g=Wt(n)?jr:Lt.current,h.context=ni(t,g)),h.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(ya(t,n,g,l),h.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(n=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),n!==h.state&&yo.enqueueReplaceState(h,h.state,null),co(t,l,h,a),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308)}function ci(t,n){try{var l="",a=n;do l+=ve(a),a=a.return;while(a);var h=l}catch(g){h=`
39
39
  Error generating stack: `+g.message+`
40
- `+g.stack}return{value:e,source:n,stack:p,digest:null}}function ha(e,n,l){return{value:e,source:null,stack:l??null,digest:n??null}}function ma(e,n){try{console.error(n.value)}catch(l){setTimeout(function(){throw l})}}var Xf=typeof WeakMap=="function"?WeakMap:Map;function Jc(e,n,l){l=Fn(-1,l),l.tag=3,l.payload={element:null};var a=n.value;return l.callback=function(){vo||(vo=!0,Ia=a),ma(e,n)},l}function e0(e,n,l){l=Fn(-1,l),l.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var p=n.value;l.payload=function(){return a(p)},l.callback=function(){ma(e,n)}}var g=e.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(l.callback=function(){ma(e,n),typeof a!="function"&&(rr===null?rr=new Set([this]):rr.add(this));var w=n.stack;this.componentDidCatch(n.value,{componentStack:w!==null?w:""})}),l}function t0(e,n,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Xf;var p=new Set;a.set(n,p)}else p=a.get(n),p===void 0&&(p=new Set,a.set(n,p));p.has(l)||(p.add(l),e=f4.bind(null,e,n,l),n.then(e,e))}function n0(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function r0(e,n,l,a,p){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(n=Fn(-1,1),n.tag=2,tr(l,n,1))),l.lanes|=1),e):(e.flags|=65536,e.lanes=p,e)}var Jf=U.ReactCurrentOwner,$t=!1;function zt(e,n,l,a){n.child=e===null?_c(n,null,l,a):ei(n,e.child,l,a)}function i0(e,n,l,a,p){l=l.render;var g=n.ref;return ni(n,p),a=oa(e,n,l,a,g,p),l=sa(),e!==null&&!$t?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~p,On(e,n,p)):(et&&l&&Vs(n),n.flags|=1,zt(e,n,a,p),n.child)}function l0(e,n,l,a,p){if(e===null){var g=l.type;return typeof g=="function"&&!Aa(g)&&g.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(n.tag=15,n.type=g,o0(e,n,g,a,p)):(e=Eo(l.type,null,a,n,n.mode,p),e.ref=n.ref,e.return=n,n.child=e)}if(g=e.child,(e.lanes&p)===0){var w=g.memoizedProps;if(l=l.compare,l=l!==null?l:Di,l(w,a)&&e.ref===n.ref)return On(e,n,p)}return n.flags|=1,e=sr(g,a),e.ref=n.ref,e.return=n,n.child=e}function o0(e,n,l,a,p){if(e!==null){var g=e.memoizedProps;if(Di(g,a)&&e.ref===n.ref)if($t=!1,n.pendingProps=a=g,(e.lanes&p)!==0)(e.flags&131072)!==0&&($t=!0);else return n.lanes=e.lanes,On(e,n,p)}return ga(e,n,l,a,p)}function s0(e,n,l){var a=n.pendingProps,p=a.children,g=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ke(oi,Yt),Yt|=l;else{if((l&1073741824)===0)return e=g!==null?g.baseLanes|l:l,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Ke(oi,Yt),Yt|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=g!==null?g.baseLanes:l,Ke(oi,Yt),Yt|=a}else g!==null?(a=g.baseLanes|l,n.memoizedState=null):a=l,Ke(oi,Yt),Yt|=a;return zt(e,n,p,l),n.child}function a0(e,n){var l=n.ref;(e===null&&l!==null||e!==null&&e.ref!==l)&&(n.flags|=512,n.flags|=2097152)}function ga(e,n,l,a,p){var g=Bt(l)?Cr:_t.current;return g=Yr(n,g),ni(n,p),l=oa(e,n,l,a,g,p),a=sa(),e!==null&&!$t?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~p,On(e,n,p)):(et&&a&&Vs(n),n.flags|=1,zt(e,n,l,p),n.child)}function u0(e,n,l,a,p){if(Bt(l)){var g=!0;Gl(n)}else g=!1;if(ni(n,p),n.stateNode===null)ho(e,n),Kc(n,l,a),pa(n,l,a,p),a=!0;else if(e===null){var w=n.stateNode,L=n.memoizedProps;w.props=L;var P=w.context,H=l.contextType;typeof H=="object"&&H!==null?H=nn(H):(H=Bt(l)?Cr:_t.current,H=Yr(n,H));var ne=l.getDerivedStateFromProps,re=typeof ne=="function"||typeof w.getSnapshotBeforeUpdate=="function";re||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(L!==a||P!==H)&&Xc(n,w,a,H),er=!1;var te=n.memoizedState;w.state=te,io(n,a,w,p),P=n.memoizedState,L!==a||te!==P||Ot.current||er?(typeof ne=="function"&&(fa(n,l,ne,a),P=n.memoizedState),(L=er||Yc(n,l,L,a,te,P,H))?(re||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(n.flags|=4194308)):(typeof w.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=a,n.memoizedState=P),w.props=a,w.state=P,w.context=H,a=L):(typeof w.componentDidMount=="function"&&(n.flags|=4194308),a=!1)}else{w=n.stateNode,Ec(e,n),L=n.memoizedProps,H=n.type===n.elementType?L:pn(n.type,L),w.props=H,re=n.pendingProps,te=w.context,P=l.contextType,typeof P=="object"&&P!==null?P=nn(P):(P=Bt(l)?Cr:_t.current,P=Yr(n,P));var de=l.getDerivedStateFromProps;(ne=typeof de=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(L!==re||te!==P)&&Xc(n,w,a,P),er=!1,te=n.memoizedState,w.state=te,io(n,a,w,p);var pe=n.memoizedState;L!==re||te!==pe||Ot.current||er?(typeof de=="function"&&(fa(n,l,de,a),pe=n.memoizedState),(H=er||Yc(n,l,H,a,te,pe,P)||!1)?(ne||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(a,pe,P),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(a,pe,P)),typeof w.componentDidUpdate=="function"&&(n.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof w.componentDidUpdate!="function"||L===e.memoizedProps&&te===e.memoizedState||(n.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||L===e.memoizedProps&&te===e.memoizedState||(n.flags|=1024),n.memoizedProps=a,n.memoizedState=pe),w.props=a,w.state=pe,w.context=P,a=H):(typeof w.componentDidUpdate!="function"||L===e.memoizedProps&&te===e.memoizedState||(n.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||L===e.memoizedProps&&te===e.memoizedState||(n.flags|=1024),a=!1)}return ya(e,n,l,a,g,p)}function ya(e,n,l,a,p,g){a0(e,n);var w=(n.flags&128)!==0;if(!a&&!w)return p&&hc(n,l,!1),On(e,n,g);a=n.stateNode,Jf.current=n;var L=w&&typeof l.getDerivedStateFromError!="function"?null:a.render();return n.flags|=1,e!==null&&w?(n.child=ei(n,e.child,null,g),n.child=ei(n,null,L,g)):zt(e,n,L,g),n.memoizedState=a.state,p&&hc(n,l,!0),n.child}function c0(e){var n=e.stateNode;n.pendingContext?fc(e,n.pendingContext,n.pendingContext!==n.context):n.context&&fc(e,n.context,!1),ea(e,n.containerInfo)}function d0(e,n,l,a,p){return Jr(),Zs(p),n.flags|=256,zt(e,n,l,a),n.child}var xa={dehydrated:null,treeContext:null,retryLane:0};function va(e){return{baseLanes:e,cachePool:null,transitions:null}}function f0(e,n,l){var a=n.pendingProps,p=tt.current,g=!1,w=(n.flags&128)!==0,L;if((L=w)||(L=e!==null&&e.memoizedState===null?!1:(p&2)!==0),L?(g=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(p|=1),Ke(tt,p&1),e===null)return qs(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(w=a.children,e=a.fallback,g?(a=n.mode,g=n.child,w={mode:"hidden",children:w},(a&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=w):g=bo(w,a,0,null),e=Ir(e,a,l,null),g.return=n,e.return=n,g.sibling=e,n.child=g,n.child.memoizedState=va(l),n.memoizedState=xa,e):Ca(n,w));if(p=e.memoizedState,p!==null&&(L=p.dehydrated,L!==null))return e4(e,n,w,a,L,p,l);if(g){g=a.fallback,w=n.mode,p=e.child,L=p.sibling;var P={mode:"hidden",children:a.children};return(w&1)===0&&n.child!==p?(a=n.child,a.childLanes=0,a.pendingProps=P,n.deletions=null):(a=sr(p,P),a.subtreeFlags=p.subtreeFlags&14680064),L!==null?g=sr(L,g):(g=Ir(g,w,l,null),g.flags|=2),g.return=n,a.return=n,a.sibling=g,n.child=a,a=g,g=n.child,w=e.child.memoizedState,w=w===null?va(l):{baseLanes:w.baseLanes|l,cachePool:null,transitions:w.transitions},g.memoizedState=w,g.childLanes=e.childLanes&~l,n.memoizedState=xa,a}return g=e.child,e=g.sibling,a=sr(g,{mode:"visible",children:a.children}),(n.mode&1)===0&&(a.lanes=l),a.return=n,a.sibling=null,e!==null&&(l=n.deletions,l===null?(n.deletions=[e],n.flags|=16):l.push(e)),n.child=a,n.memoizedState=null,a}function Ca(e,n){return n=bo({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function po(e,n,l,a){return a!==null&&Zs(a),ei(n,e.child,null,l),e=Ca(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function e4(e,n,l,a,p,g,w){if(l)return n.flags&256?(n.flags&=-257,a=ha(Error(r(422))),po(e,n,w,a)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(g=a.fallback,p=n.mode,a=bo({mode:"visible",children:a.children},p,0,null),g=Ir(g,p,w,null),g.flags|=2,a.return=n,g.return=n,a.sibling=g,n.child=a,(n.mode&1)!==0&&ei(n,e.child,null,w),n.child.memoizedState=va(w),n.memoizedState=xa,g);if((n.mode&1)===0)return po(e,n,w,null);if(p.data==="$!"){if(a=p.nextSibling&&p.nextSibling.dataset,a)var L=a.dgst;return a=L,g=Error(r(419)),a=ha(g,a,void 0),po(e,n,w,a)}if(L=(w&e.childLanes)!==0,$t||L){if(a=xt,a!==null){switch(w&-w){case 4:p=2;break;case 16:p=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(a.suspendedLanes|w))!==0?0:p,p!==0&&p!==g.retryLane&&(g.retryLane=p,An(e,p),gn(a,e,p,-1))}return Ra(),a=ha(Error(r(421))),po(e,n,w,a)}return p.data==="$?"?(n.flags|=128,n.child=e.child,n=p4.bind(null,e),p._reactRetry=n,null):(e=g.treeContext,Gt=Yn(p.nextSibling),Qt=n,et=!0,fn=null,e!==null&&(en[tn++]=Dn,en[tn++]=Rn,en[tn++]=wr,Dn=e.id,Rn=e.overflow,wr=n),n=Ca(n,a.children),n.flags|=4096,n)}function p0(e,n,l){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n),Ks(e.return,n,l)}function wa(e,n,l,a,p){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:p}:(g.isBackwards=n,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=l,g.tailMode=p)}function h0(e,n,l){var a=n.pendingProps,p=a.revealOrder,g=a.tail;if(zt(e,n,a.children,l),a=tt.current,(a&2)!==0)a=a&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&p0(e,l,n);else if(e.tag===19)p0(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Ke(tt,a),(n.mode&1)===0)n.memoizedState=null;else switch(p){case"forwards":for(l=n.child,p=null;l!==null;)e=l.alternate,e!==null&&lo(e)===null&&(p=l),l=l.sibling;l=p,l===null?(p=n.child,n.child=null):(p=l.sibling,l.sibling=null),wa(n,!1,p,l,g);break;case"backwards":for(l=null,p=n.child,n.child=null;p!==null;){if(e=p.alternate,e!==null&&lo(e)===null){n.child=p;break}e=p.sibling,p.sibling=l,l=p,p=e}wa(n,!0,l,null,g);break;case"together":wa(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ho(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function On(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),br|=n.lanes,(l&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,l=sr(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=sr(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function t4(e,n,l){switch(n.tag){case 3:c0(n),Jr();break;case 5:Lc(n);break;case 1:Bt(n.type)&&Gl(n);break;case 4:ea(n,n.stateNode.containerInfo);break;case 10:var a=n.type._context,p=n.memoizedProps.value;Ke(to,a._currentValue),a._currentValue=p;break;case 13:if(a=n.memoizedState,a!==null)return a.dehydrated!==null?(Ke(tt,tt.current&1),n.flags|=128,null):(l&n.child.childLanes)!==0?f0(e,n,l):(Ke(tt,tt.current&1),e=On(e,n,l),e!==null?e.sibling:null);Ke(tt,tt.current&1);break;case 19:if(a=(l&n.childLanes)!==0,(e.flags&128)!==0){if(a)return h0(e,n,l);n.flags|=128}if(p=n.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Ke(tt,tt.current),a)break;return null;case 22:case 23:return n.lanes=0,s0(e,n,l)}return On(e,n,l)}var m0,ka,g0,y0;m0=function(e,n){for(var l=n.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},ka=function(){},g0=function(e,n,l,a){var p=e.memoizedProps;if(p!==a){e=n.stateNode,Sr(Sn.current);var g=null;switch(l){case"input":p=je(e,p),a=je(e,a),g=[];break;case"select":p=E({},p,{value:void 0}),a=E({},a,{value:void 0}),g=[];break;case"textarea":p=Cn(e,p),a=Cn(e,a),g=[];break;default:typeof p.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=ql)}We(l,a);var w;l=null;for(H in p)if(!a.hasOwnProperty(H)&&p.hasOwnProperty(H)&&p[H]!=null)if(H==="style"){var L=p[H];for(w in L)L.hasOwnProperty(w)&&(l||(l={}),l[w]="")}else H!=="dangerouslySetInnerHTML"&&H!=="children"&&H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&H!=="autoFocus"&&(s.hasOwnProperty(H)?g||(g=[]):(g=g||[]).push(H,null));for(H in a){var P=a[H];if(L=p!=null?p[H]:void 0,a.hasOwnProperty(H)&&P!==L&&(P!=null||L!=null))if(H==="style")if(L){for(w in L)!L.hasOwnProperty(w)||P&&P.hasOwnProperty(w)||(l||(l={}),l[w]="");for(w in P)P.hasOwnProperty(w)&&L[w]!==P[w]&&(l||(l={}),l[w]=P[w])}else l||(g||(g=[]),g.push(H,l)),l=P;else H==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,L=L?L.__html:void 0,P!=null&&L!==P&&(g=g||[]).push(H,P)):H==="children"?typeof P!="string"&&typeof P!="number"||(g=g||[]).push(H,""+P):H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&(s.hasOwnProperty(H)?(P!=null&&H==="onScroll"&&Xe("scroll",e),g||L===P||(g=[])):(g=g||[]).push(H,P))}l&&(g=g||[]).push("style",l);var H=g;(n.updateQueue=H)&&(n.flags|=4)}},y0=function(e,n,l,a){l!==a&&(n.flags|=4)};function Yi(e,n){if(!et)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Et(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(n)for(var p=e.child;p!==null;)l|=p.lanes|p.childLanes,a|=p.subtreeFlags&14680064,a|=p.flags&14680064,p.return=e,p=p.sibling;else for(p=e.child;p!==null;)l|=p.lanes|p.childLanes,a|=p.subtreeFlags,a|=p.flags,p.return=e,p=p.sibling;return e.subtreeFlags|=a,e.childLanes=l,n}function n4(e,n,l){var a=n.pendingProps;switch(Us(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(n),null;case 1:return Bt(n.type)&&Ql(),Et(n),null;case 3:return a=n.stateNode,ri(),Je(Ot),Je(_t),ra(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Jl(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,fn!==null&&(Pa(fn),fn=null))),ka(e,n),Et(n),null;case 5:ta(n);var p=Sr(Wi.current);if(l=n.type,e!==null&&n.stateNode!=null)g0(e,n,l,a,p),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!a){if(n.stateNode===null)throw Error(r(166));return Et(n),null}if(e=Sr(Sn.current),Jl(n)){a=n.stateNode,l=n.type;var g=n.memoizedProps;switch(a[_n]=n,a[Bi]=g,e=(n.mode&1)!==0,l){case"dialog":Xe("cancel",a),Xe("close",a);break;case"iframe":case"object":case"embed":Xe("load",a);break;case"video":case"audio":for(p=0;p<Ai.length;p++)Xe(Ai[p],a);break;case"source":Xe("error",a);break;case"img":case"image":case"link":Xe("error",a),Xe("load",a);break;case"details":Xe("toggle",a);break;case"input":Me(a,g),Xe("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!g.multiple},Xe("invalid",a);break;case"textarea":hr(a,g),Xe("invalid",a)}We(l,g),p=null;for(var w in g)if(g.hasOwnProperty(w)){var L=g[w];w==="children"?typeof L=="string"?a.textContent!==L&&(g.suppressHydrationWarning!==!0&&Wl(a.textContent,L,e),p=["children",L]):typeof L=="number"&&a.textContent!==""+L&&(g.suppressHydrationWarning!==!0&&Wl(a.textContent,L,e),p=["children",""+L]):s.hasOwnProperty(w)&&L!=null&&w==="onScroll"&&Xe("scroll",a)}switch(l){case"input":Ct(a),Mt(a,g,!0);break;case"textarea":Ct(a),Br(a);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(a.onclick=ql)}a=p,n.updateQueue=a,a!==null&&(n.flags|=4)}else{w=p.nodeType===9?p:p.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=G(l)),e==="http://www.w3.org/1999/xhtml"?l==="script"?(e=w.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=w.createElement(l,{is:a.is}):(e=w.createElement(l),l==="select"&&(w=e,a.multiple?w.multiple=!0:a.size&&(w.size=a.size))):e=w.createElementNS(e,l),e[_n]=n,e[Bi]=a,m0(e,n,!1,!1),n.stateNode=e;e:{switch(w=Pt(l,a),l){case"dialog":Xe("cancel",e),Xe("close",e),p=a;break;case"iframe":case"object":case"embed":Xe("load",e),p=a;break;case"video":case"audio":for(p=0;p<Ai.length;p++)Xe(Ai[p],e);p=a;break;case"source":Xe("error",e),p=a;break;case"img":case"image":case"link":Xe("error",e),Xe("load",e),p=a;break;case"details":Xe("toggle",e),p=a;break;case"input":Me(e,a),p=je(e,a),Xe("invalid",e);break;case"option":p=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},p=E({},a,{value:void 0}),Xe("invalid",e);break;case"textarea":hr(e,a),p=Cn(e,a),Xe("invalid",e);break;default:p=a}We(l,p),L=p;for(g in L)if(L.hasOwnProperty(g)){var P=L[g];g==="style"?Ie(e,P):g==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&Ee(e,P)):g==="children"?typeof P=="string"?(l!=="textarea"||P!=="")&&Pe(e,P):typeof P=="number"&&Pe(e,""+P):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(s.hasOwnProperty(g)?P!=null&&g==="onScroll"&&Xe("scroll",e):P!=null&&I(e,g,P,w))}switch(l){case"input":Ct(e),Mt(e,a,!1);break;case"textarea":Ct(e),Br(e);break;case"option":a.value!=null&&e.setAttribute("value",""+ye(a.value));break;case"select":e.multiple=!!a.multiple,g=a.value,g!=null?Ft(e,!!a.multiple,g,!1):a.defaultValue!=null&&Ft(e,!!a.multiple,a.defaultValue,!0);break;default:typeof p.onClick=="function"&&(e.onclick=ql)}switch(l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Et(n),null;case 6:if(e&&n.stateNode!=null)y0(e,n,e.memoizedProps,a);else{if(typeof a!="string"&&n.stateNode===null)throw Error(r(166));if(l=Sr(Wi.current),Sr(Sn.current),Jl(n)){if(a=n.stateNode,l=n.memoizedProps,a[_n]=n,(g=a.nodeValue!==l)&&(e=Qt,e!==null))switch(e.tag){case 3:Wl(a.nodeValue,l,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Wl(a.nodeValue,l,(e.mode&1)!==0)}g&&(n.flags|=4)}else a=(l.nodeType===9?l:l.ownerDocument).createTextNode(a),a[_n]=n,n.stateNode=a}return Et(n),null;case 13:if(Je(tt),a=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(et&&Gt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Cc(),Jr(),n.flags|=98560,g=!1;else if(g=Jl(n),a!==null&&a.dehydrated!==null){if(e===null){if(!g)throw Error(r(318));if(g=n.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[_n]=n}else Jr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Et(n),g=!1}else fn!==null&&(Pa(fn),fn=null),g=!0;if(!g)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=l,n):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(tt.current&1)!==0?pt===0&&(pt=3):Ra())),n.updateQueue!==null&&(n.flags|=4),Et(n),null);case 4:return ri(),ka(e,n),e===null&&Fi(n.stateNode.containerInfo),Et(n),null;case 10:return Ys(n.type._context),Et(n),null;case 17:return Bt(n.type)&&Ql(),Et(n),null;case 19:if(Je(tt),g=n.memoizedState,g===null)return Et(n),null;if(a=(n.flags&128)!==0,w=g.rendering,w===null)if(a)Yi(g,!1);else{if(pt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(w=lo(e),w!==null){for(n.flags|=128,Yi(g,!1),a=w.updateQueue,a!==null&&(n.updateQueue=a,n.flags|=4),n.subtreeFlags=0,a=l,l=n.child;l!==null;)g=l,e=a,g.flags&=14680066,w=g.alternate,w===null?(g.childLanes=0,g.lanes=e,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=w.childLanes,g.lanes=w.lanes,g.child=w.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=w.memoizedProps,g.memoizedState=w.memoizedState,g.updateQueue=w.updateQueue,g.type=w.type,e=w.dependencies,g.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),l=l.sibling;return Ke(tt,tt.current&1|2),n.child}e=e.sibling}g.tail!==null&&lt()>si&&(n.flags|=128,a=!0,Yi(g,!1),n.lanes=4194304)}else{if(!a)if(e=lo(w),e!==null){if(n.flags|=128,a=!0,l=e.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),Yi(g,!0),g.tail===null&&g.tailMode==="hidden"&&!w.alternate&&!et)return Et(n),null}else 2*lt()-g.renderingStartTime>si&&l!==1073741824&&(n.flags|=128,a=!0,Yi(g,!1),n.lanes=4194304);g.isBackwards?(w.sibling=n.child,n.child=w):(l=g.last,l!==null?l.sibling=w:n.child=w,g.last=w)}return g.tail!==null?(n=g.tail,g.rendering=n,g.tail=n.sibling,g.renderingStartTime=lt(),n.sibling=null,l=tt.current,Ke(tt,a?l&1|2:l&1),n):(Et(n),null);case 22:case 23:return Da(),a=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(n.flags|=8192),a&&(n.mode&1)!==0?(Yt&1073741824)!==0&&(Et(n),n.subtreeFlags&6&&(n.flags|=8192)):Et(n),null;case 24:return null;case 25:return null}throw Error(r(156,n.tag))}function r4(e,n){switch(Us(n),n.tag){case 1:return Bt(n.type)&&Ql(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ri(),Je(Ot),Je(_t),ra(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return ta(n),null;case 13:if(Je(tt),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));Jr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Je(tt),null;case 4:return ri(),null;case 10:return Ys(n.type._context),null;case 22:case 23:return Da(),null;case 24:return null;default:return null}}var mo=!1,bt=!1,i4=typeof WeakSet=="function"?WeakSet:Set,fe=null;function li(e,n){var l=e.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(a){it(e,n,a)}else l.current=null}function _a(e,n,l){try{l()}catch(a){it(e,n,a)}}var x0=!1;function l4(e,n){if(Ds=zl,e=Yu(),js(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var p=a.anchorOffset,g=a.focusNode;a=a.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var w=0,L=-1,P=-1,H=0,ne=0,re=e,te=null;t:for(;;){for(var de;re!==l||p!==0&&re.nodeType!==3||(L=w+p),re!==g||a!==0&&re.nodeType!==3||(P=w+a),re.nodeType===3&&(w+=re.nodeValue.length),(de=re.firstChild)!==null;)te=re,re=de;for(;;){if(re===e)break t;if(te===l&&++H===p&&(L=w),te===g&&++ne===a&&(P=w),(de=re.nextSibling)!==null)break;re=te,te=re.parentNode}re=de}l=L===-1||P===-1?null:{start:L,end:P}}else l=null}l=l||{start:0,end:0}}else l=null;for(Rs={focusedElem:e,selectionRange:l},zl=!1,fe=n;fe!==null;)if(n=fe,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,fe=e;else for(;fe!==null;){n=fe;try{var pe=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var me=pe.memoizedProps,ot=pe.memoizedState,O=n.stateNode,R=O.getSnapshotBeforeUpdate(n.elementType===n.type?me:pn(n.type,me),ot);O.__reactInternalSnapshotBeforeUpdate=R}break;case 3:var B=n.stateNode.containerInfo;B.nodeType===1?B.textContent="":B.nodeType===9&&B.documentElement&&B.removeChild(B.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(se){it(n,n.return,se)}if(e=n.sibling,e!==null){e.return=n.return,fe=e;break}fe=n.return}return pe=x0,x0=!1,pe}function Ki(e,n,l){var a=n.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var p=a=a.next;do{if((p.tag&e)===e){var g=p.destroy;p.destroy=void 0,g!==void 0&&_a(n,l,g)}p=p.next}while(p!==a)}}function go(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var l=n=n.next;do{if((l.tag&e)===e){var a=l.create;l.destroy=a()}l=l.next}while(l!==n)}}function Sa(e){var n=e.ref;if(n!==null){var l=e.stateNode;switch(e.tag){case 5:e=l;break;default:e=l}typeof n=="function"?n(e):n.current=e}}function v0(e){var n=e.alternate;n!==null&&(e.alternate=null,v0(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[_n],delete n[Bi],delete n[Bs],delete n[$f],delete n[Hf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function C0(e){return e.tag===5||e.tag===3||e.tag===4}function w0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C0(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.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 Ea(e,n,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?l.nodeType===8?l.parentNode.insertBefore(e,n):l.insertBefore(e,n):(l.nodeType===8?(n=l.parentNode,n.insertBefore(e,l)):(n=l,n.appendChild(e)),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=ql));else if(a!==4&&(e=e.child,e!==null))for(Ea(e,n,l),e=e.sibling;e!==null;)Ea(e,n,l),e=e.sibling}function ba(e,n,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(ba(e,n,l),e=e.sibling;e!==null;)ba(e,n,l),e=e.sibling}var wt=null,hn=!1;function nr(e,n,l){for(l=l.child;l!==null;)k0(e,n,l),l=l.sibling}function k0(e,n,l){if(kn&&typeof kn.onCommitFiberUnmount=="function")try{kn.onCommitFiberUnmount(Ll,l)}catch{}switch(l.tag){case 5:bt||li(l,n);case 6:var a=wt,p=hn;wt=null,nr(e,n,l),wt=a,hn=p,wt!==null&&(hn?(e=wt,l=l.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)):wt.removeChild(l.stateNode));break;case 18:wt!==null&&(hn?(e=wt,l=l.stateNode,e.nodeType===8?Os(e.parentNode,l):e.nodeType===1&&Os(e,l),Ni(e)):Os(wt,l.stateNode));break;case 4:a=wt,p=hn,wt=l.stateNode.containerInfo,hn=!0,nr(e,n,l),wt=a,hn=p;break;case 0:case 11:case 14:case 15:if(!bt&&(a=l.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){p=a=a.next;do{var g=p,w=g.destroy;g=g.tag,w!==void 0&&((g&2)!==0||(g&4)!==0)&&_a(l,n,w),p=p.next}while(p!==a)}nr(e,n,l);break;case 1:if(!bt&&(li(l,n),a=l.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=l.memoizedProps,a.state=l.memoizedState,a.componentWillUnmount()}catch(L){it(l,n,L)}nr(e,n,l);break;case 21:nr(e,n,l);break;case 22:l.mode&1?(bt=(a=bt)||l.memoizedState!==null,nr(e,n,l),bt=a):nr(e,n,l);break;default:nr(e,n,l)}}function _0(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new i4),n.forEach(function(a){var p=h4.bind(null,e,a);l.has(a)||(l.add(a),a.then(p,p))})}}function mn(e,n){var l=n.deletions;if(l!==null)for(var a=0;a<l.length;a++){var p=l[a];try{var g=e,w=n,L=w;e:for(;L!==null;){switch(L.tag){case 5:wt=L.stateNode,hn=!1;break e;case 3:wt=L.stateNode.containerInfo,hn=!0;break e;case 4:wt=L.stateNode.containerInfo,hn=!0;break e}L=L.return}if(wt===null)throw Error(r(160));k0(g,w,p),wt=null,hn=!1;var P=p.alternate;P!==null&&(P.return=null),p.return=null}catch(H){it(p,n,H)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)S0(n,e),n=n.sibling}function S0(e,n){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mn(n,e),bn(e),a&4){try{Ki(3,e,e.return),go(3,e)}catch(me){it(e,e.return,me)}try{Ki(5,e,e.return)}catch(me){it(e,e.return,me)}}break;case 1:mn(n,e),bn(e),a&512&&l!==null&&li(l,l.return);break;case 5:if(mn(n,e),bn(e),a&512&&l!==null&&li(l,l.return),e.flags&32){var p=e.stateNode;try{Pe(p,"")}catch(me){it(e,e.return,me)}}if(a&4&&(p=e.stateNode,p!=null)){var g=e.memoizedProps,w=l!==null?l.memoizedProps:g,L=e.type,P=e.updateQueue;if(e.updateQueue=null,P!==null)try{L==="input"&&g.type==="radio"&&g.name!=null&&Ue(p,g),Pt(L,w);var H=Pt(L,g);for(w=0;w<P.length;w+=2){var ne=P[w],re=P[w+1];ne==="style"?Ie(p,re):ne==="dangerouslySetInnerHTML"?Ee(p,re):ne==="children"?Pe(p,re):I(p,ne,re,H)}switch(L){case"input":qe(p,g);break;case"textarea":mr(p,g);break;case"select":var te=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!g.multiple;var de=g.value;de!=null?Ft(p,!!g.multiple,de,!1):te!==!!g.multiple&&(g.defaultValue!=null?Ft(p,!!g.multiple,g.defaultValue,!0):Ft(p,!!g.multiple,g.multiple?[]:"",!1))}p[Bi]=g}catch(me){it(e,e.return,me)}}break;case 6:if(mn(n,e),bn(e),a&4){if(e.stateNode===null)throw Error(r(162));p=e.stateNode,g=e.memoizedProps;try{p.nodeValue=g}catch(me){it(e,e.return,me)}}break;case 3:if(mn(n,e),bn(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ni(n.containerInfo)}catch(me){it(e,e.return,me)}break;case 4:mn(n,e),bn(e);break;case 13:mn(n,e),bn(e),p=e.child,p.flags&8192&&(g=p.memoizedState!==null,p.stateNode.isHidden=g,!g||p.alternate!==null&&p.alternate.memoizedState!==null||(Na=lt())),a&4&&_0(e);break;case 22:if(ne=l!==null&&l.memoizedState!==null,e.mode&1?(bt=(H=bt)||ne,mn(n,e),bt=H):mn(n,e),bn(e),a&8192){if(H=e.memoizedState!==null,(e.stateNode.isHidden=H)&&!ne&&(e.mode&1)!==0)for(fe=e,ne=e.child;ne!==null;){for(re=fe=ne;fe!==null;){switch(te=fe,de=te.child,te.tag){case 0:case 11:case 14:case 15:Ki(4,te,te.return);break;case 1:li(te,te.return);var pe=te.stateNode;if(typeof pe.componentWillUnmount=="function"){a=te,l=te.return;try{n=a,pe.props=n.memoizedProps,pe.state=n.memoizedState,pe.componentWillUnmount()}catch(me){it(a,l,me)}}break;case 5:li(te,te.return);break;case 22:if(te.memoizedState!==null){j0(re);continue}}de!==null?(de.return=te,fe=de):j0(re)}ne=ne.sibling}e:for(ne=null,re=e;;){if(re.tag===5){if(ne===null){ne=re;try{p=re.stateNode,H?(g=p.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(L=re.stateNode,P=re.memoizedProps.style,w=P!=null&&P.hasOwnProperty("display")?P.display:null,L.style.display=ae("display",w))}catch(me){it(e,e.return,me)}}}else if(re.tag===6){if(ne===null)try{re.stateNode.nodeValue=H?"":re.memoizedProps}catch(me){it(e,e.return,me)}}else if((re.tag!==22&&re.tag!==23||re.memoizedState===null||re===e)&&re.child!==null){re.child.return=re,re=re.child;continue}if(re===e)break e;for(;re.sibling===null;){if(re.return===null||re.return===e)break e;ne===re&&(ne=null),re=re.return}ne===re&&(ne=null),re.sibling.return=re.return,re=re.sibling}}break;case 19:mn(n,e),bn(e),a&4&&_0(e);break;case 21:break;default:mn(n,e),bn(e)}}function bn(e){var n=e.flags;if(n&2){try{e:{for(var l=e.return;l!==null;){if(C0(l)){var a=l;break e}l=l.return}throw Error(r(160))}switch(a.tag){case 5:var p=a.stateNode;a.flags&32&&(Pe(p,""),a.flags&=-33);var g=w0(e);ba(e,g,p);break;case 3:case 4:var w=a.stateNode.containerInfo,L=w0(e);Ea(e,L,w);break;default:throw Error(r(161))}}catch(P){it(e,e.return,P)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function o4(e,n,l){fe=e,E0(e)}function E0(e,n,l){for(var a=(e.mode&1)!==0;fe!==null;){var p=fe,g=p.child;if(p.tag===22&&a){var w=p.memoizedState!==null||mo;if(!w){var L=p.alternate,P=L!==null&&L.memoizedState!==null||bt;L=mo;var H=bt;if(mo=w,(bt=P)&&!H)for(fe=p;fe!==null;)w=fe,P=w.child,w.tag===22&&w.memoizedState!==null?L0(p):P!==null?(P.return=w,fe=P):L0(p);for(;g!==null;)fe=g,E0(g),g=g.sibling;fe=p,mo=L,bt=H}b0(e)}else(p.subtreeFlags&8772)!==0&&g!==null?(g.return=p,fe=g):b0(e)}}function b0(e){for(;fe!==null;){var n=fe;if((n.flags&8772)!==0){var l=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:bt||go(5,n);break;case 1:var a=n.stateNode;if(n.flags&4&&!bt)if(l===null)a.componentDidMount();else{var p=n.elementType===n.type?l.memoizedProps:pn(n.type,l.memoizedProps);a.componentDidUpdate(p,l.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var g=n.updateQueue;g!==null&&jc(n,g,a);break;case 3:var w=n.updateQueue;if(w!==null){if(l=null,n.child!==null)switch(n.child.tag){case 5:l=n.child.stateNode;break;case 1:l=n.child.stateNode}jc(n,w,l)}break;case 5:var L=n.stateNode;if(l===null&&n.flags&4){l=L;var P=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&l.focus();break;case"img":P.src&&(l.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var H=n.alternate;if(H!==null){var ne=H.memoizedState;if(ne!==null){var re=ne.dehydrated;re!==null&&Ni(re)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}bt||n.flags&512&&Sa(n)}catch(te){it(n,n.return,te)}}if(n===e){fe=null;break}if(l=n.sibling,l!==null){l.return=n.return,fe=l;break}fe=n.return}}function j0(e){for(;fe!==null;){var n=fe;if(n===e){fe=null;break}var l=n.sibling;if(l!==null){l.return=n.return,fe=l;break}fe=n.return}}function L0(e){for(;fe!==null;){var n=fe;try{switch(n.tag){case 0:case 11:case 15:var l=n.return;try{go(4,n)}catch(P){it(n,l,P)}break;case 1:var a=n.stateNode;if(typeof a.componentDidMount=="function"){var p=n.return;try{a.componentDidMount()}catch(P){it(n,p,P)}}var g=n.return;try{Sa(n)}catch(P){it(n,g,P)}break;case 5:var w=n.return;try{Sa(n)}catch(P){it(n,w,P)}}}catch(P){it(n,n.return,P)}if(n===e){fe=null;break}var L=n.sibling;if(L!==null){L.return=n.return,fe=L;break}fe=n.return}}var s4=Math.ceil,yo=U.ReactCurrentDispatcher,ja=U.ReactCurrentOwner,ln=U.ReactCurrentBatchConfig,Fe=0,xt=null,at=null,kt=0,Yt=0,oi=Kn(0),pt=0,Xi=null,br=0,xo=0,La=0,Ji=null,Ht=null,Na=0,si=1/0,Bn=null,vo=!1,Ia=null,rr=null,Co=!1,ir=null,wo=0,el=0,Ma=null,ko=-1,_o=0;function Dt(){return(Fe&6)!==0?lt():ko!==-1?ko:ko=lt()}function lr(e){return(e.mode&1)===0?1:(Fe&2)!==0&&kt!==0?kt&-kt:Uf.transition!==null?(_o===0&&(_o=wu()),_o):(e=He,e!==0||(e=window.event,e=e===void 0?16:Iu(e.type)),e)}function gn(e,n,l,a){if(50<el)throw el=0,Ma=null,Error(r(185));Si(e,l,a),((Fe&2)===0||e!==xt)&&(e===xt&&((Fe&2)===0&&(xo|=l),pt===4&&or(e,kt)),Vt(e,a),l===1&&Fe===0&&(n.mode&1)===0&&(si=lt()+500,Yl&&Jn()))}function Vt(e,n){var l=e.callbackNode;Vd(e,n);var a=Ml(e,e===xt?kt:0);if(a===0)l!==null&&xu(l),e.callbackNode=null,e.callbackPriority=0;else if(n=a&-a,e.callbackPriority!==n){if(l!=null&&xu(l),n===1)e.tag===0?Vf(I0.bind(null,e)):mc(I0.bind(null,e)),Of(function(){(Fe&6)===0&&Jn()}),l=null;else{switch(ku(a)){case 1:l=cs;break;case 4:l=vu;break;case 16:l=jl;break;case 536870912:l=Cu;break;default:l=jl}l=F0(l,N0.bind(null,e))}e.callbackPriority=n,e.callbackNode=l}}function N0(e,n){if(ko=-1,_o=0,(Fe&6)!==0)throw Error(r(327));var l=e.callbackNode;if(ai()&&e.callbackNode!==l)return null;var a=Ml(e,e===xt?kt:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||n)n=So(e,a);else{n=a;var p=Fe;Fe|=2;var g=T0();(xt!==e||kt!==n)&&(Bn=null,si=lt()+500,Lr(e,n));do try{c4();break}catch(L){M0(e,L)}while(!0);Gs(),yo.current=g,Fe=p,at!==null?n=0:(xt=null,kt=0,n=pt)}if(n!==0){if(n===2&&(p=ds(e),p!==0&&(a=p,n=Ta(e,p))),n===1)throw l=Xi,Lr(e,0),or(e,a),Vt(e,lt()),l;if(n===6)or(e,a);else{if(p=e.current.alternate,(a&30)===0&&!a4(p)&&(n=So(e,a),n===2&&(g=ds(e),g!==0&&(a=g,n=Ta(e,g))),n===1))throw l=Xi,Lr(e,0),or(e,a),Vt(e,lt()),l;switch(e.finishedWork=p,e.finishedLanes=a,n){case 0:case 1:throw Error(r(345));case 2:Nr(e,Ht,Bn);break;case 3:if(or(e,a),(a&130023424)===a&&(n=Na+500-lt(),10<n)){if(Ml(e,0)!==0)break;if(p=e.suspendedLanes,(p&a)!==a){Dt(),e.pingedLanes|=e.suspendedLanes&p;break}e.timeoutHandle=Fs(Nr.bind(null,e,Ht,Bn),n);break}Nr(e,Ht,Bn);break;case 4:if(or(e,a),(a&4194240)===a)break;for(n=e.eventTimes,p=-1;0<a;){var w=31-cn(a);g=1<<w,w=n[w],w>p&&(p=w),a&=~g}if(a=p,a=lt()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*s4(a/1960))-a,10<a){e.timeoutHandle=Fs(Nr.bind(null,e,Ht,Bn),a);break}Nr(e,Ht,Bn);break;case 5:Nr(e,Ht,Bn);break;default:throw Error(r(329))}}}return Vt(e,lt()),e.callbackNode===l?N0.bind(null,e):null}function Ta(e,n){var l=Ji;return e.current.memoizedState.isDehydrated&&(Lr(e,n).flags|=256),e=So(e,n),e!==2&&(n=Ht,Ht=l,n!==null&&Pa(n)),e}function Pa(e){Ht===null?Ht=e:Ht.push.apply(Ht,e)}function a4(e){for(var n=e;;){if(n.flags&16384){var l=n.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var a=0;a<l.length;a++){var p=l[a],g=p.getSnapshot;p=p.value;try{if(!dn(g(),p))return!1}catch{return!1}}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function or(e,n){for(n&=~La,n&=~xo,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var l=31-cn(n),a=1<<l;e[l]=-1,n&=~a}}function I0(e){if((Fe&6)!==0)throw Error(r(327));ai();var n=Ml(e,0);if((n&1)===0)return Vt(e,lt()),null;var l=So(e,n);if(e.tag!==0&&l===2){var a=ds(e);a!==0&&(n=a,l=Ta(e,a))}if(l===1)throw l=Xi,Lr(e,0),or(e,n),Vt(e,lt()),l;if(l===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,Nr(e,Ht,Bn),Vt(e,lt()),null}function za(e,n){var l=Fe;Fe|=1;try{return e(n)}finally{Fe=l,Fe===0&&(si=lt()+500,Yl&&Jn())}}function jr(e){ir!==null&&ir.tag===0&&(Fe&6)===0&&ai();var n=Fe;Fe|=1;var l=ln.transition,a=He;try{if(ln.transition=null,He=1,e)return e()}finally{He=a,ln.transition=l,Fe=n,(Fe&6)===0&&Jn()}}function Da(){Yt=oi.current,Je(oi)}function Lr(e,n){e.finishedWork=null,e.finishedLanes=0;var l=e.timeoutHandle;if(l!==-1&&(e.timeoutHandle=-1,Ff(l)),at!==null)for(l=at.return;l!==null;){var a=l;switch(Us(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Ql();break;case 3:ri(),Je(Ot),Je(_t),ra();break;case 5:ta(a);break;case 4:ri();break;case 13:Je(tt);break;case 19:Je(tt);break;case 10:Ys(a.type._context);break;case 22:case 23:Da()}l=l.return}if(xt=e,at=e=sr(e.current,null),kt=Yt=n,pt=0,Xi=null,La=xo=br=0,Ht=Ji=null,_r!==null){for(n=0;n<_r.length;n++)if(l=_r[n],a=l.interleaved,a!==null){l.interleaved=null;var p=a.next,g=l.pending;if(g!==null){var w=g.next;g.next=p,a.next=w}l.pending=a}_r=null}return e}function M0(e,n){do{var l=at;try{if(Gs(),oo.current=co,so){for(var a=nt.memoizedState;a!==null;){var p=a.queue;p!==null&&(p.pending=null),a=a.next}so=!1}if(Er=0,yt=ft=nt=null,qi=!1,Zi=0,ja.current=null,l===null||l.return===null){pt=1,Xi=n,at=null;break}e:{var g=e,w=l.return,L=l,P=n;if(n=kt,L.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var H=P,ne=L,re=ne.tag;if((ne.mode&1)===0&&(re===0||re===11||re===15)){var te=ne.alternate;te?(ne.updateQueue=te.updateQueue,ne.memoizedState=te.memoizedState,ne.lanes=te.lanes):(ne.updateQueue=null,ne.memoizedState=null)}var de=n0(w);if(de!==null){de.flags&=-257,r0(de,w,L,g,n),de.mode&1&&t0(g,H,n),n=de,P=H;var pe=n.updateQueue;if(pe===null){var me=new Set;me.add(P),n.updateQueue=me}else pe.add(P);break e}else{if((n&1)===0){t0(g,H,n),Ra();break e}P=Error(r(426))}}else if(et&&L.mode&1){var ot=n0(w);if(ot!==null){(ot.flags&65536)===0&&(ot.flags|=256),r0(ot,w,L,g,n),Zs(ii(P,L));break e}}g=P=ii(P,L),pt!==4&&(pt=2),Ji===null?Ji=[g]:Ji.push(g),g=w;do{switch(g.tag){case 3:g.flags|=65536,n&=-n,g.lanes|=n;var O=Jc(g,P,n);bc(g,O);break e;case 1:L=P;var R=g.type,B=g.stateNode;if((g.flags&128)===0&&(typeof R.getDerivedStateFromError=="function"||B!==null&&typeof B.componentDidCatch=="function"&&(rr===null||!rr.has(B)))){g.flags|=65536,n&=-n,g.lanes|=n;var se=e0(g,L,n);bc(g,se);break e}}g=g.return}while(g!==null)}z0(l)}catch(ge){n=ge,at===l&&l!==null&&(at=l=l.return);continue}break}while(!0)}function T0(){var e=yo.current;return yo.current=co,e===null?co:e}function Ra(){(pt===0||pt===3||pt===2)&&(pt=4),xt===null||(br&268435455)===0&&(xo&268435455)===0||or(xt,kt)}function So(e,n){var l=Fe;Fe|=2;var a=T0();(xt!==e||kt!==n)&&(Bn=null,Lr(e,n));do try{u4();break}catch(p){M0(e,p)}while(!0);if(Gs(),Fe=l,yo.current=a,at!==null)throw Error(r(261));return xt=null,kt=0,pt}function u4(){for(;at!==null;)P0(at)}function c4(){for(;at!==null&&!zd();)P0(at)}function P0(e){var n=A0(e.alternate,e,Yt);e.memoizedProps=e.pendingProps,n===null?z0(e):at=n,ja.current=null}function z0(e){var n=e;do{var l=n.alternate;if(e=n.return,(n.flags&32768)===0){if(l=n4(l,n,Yt),l!==null){at=l;return}}else{if(l=r4(l,n),l!==null){l.flags&=32767,at=l;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{pt=6,at=null;return}}if(n=n.sibling,n!==null){at=n;return}at=n=e}while(n!==null);pt===0&&(pt=5)}function Nr(e,n,l){var a=He,p=ln.transition;try{ln.transition=null,He=1,d4(e,n,l,a)}finally{ln.transition=p,He=a}return null}function d4(e,n,l,a){do ai();while(ir!==null);if((Fe&6)!==0)throw Error(r(327));l=e.finishedWork;var p=e.finishedLanes;if(l===null)return null;if(e.finishedWork=null,e.finishedLanes=0,l===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var g=l.lanes|l.childLanes;if(Ud(e,g),e===xt&&(at=xt=null,kt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Co||(Co=!0,F0(jl,function(){return ai(),null})),g=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||g){g=ln.transition,ln.transition=null;var w=He;He=1;var L=Fe;Fe|=4,ja.current=null,l4(e,l),S0(l,e),Mf(Rs),zl=!!Ds,Rs=Ds=null,e.current=l,o4(l),Dd(),Fe=L,He=w,ln.transition=g}else e.current=l;if(Co&&(Co=!1,ir=e,wo=p),g=e.pendingLanes,g===0&&(rr=null),Fd(l.stateNode),Vt(e,lt()),n!==null)for(a=e.onRecoverableError,l=0;l<n.length;l++)p=n[l],a(p.value,{componentStack:p.stack,digest:p.digest});if(vo)throw vo=!1,e=Ia,Ia=null,e;return(wo&1)!==0&&e.tag!==0&&ai(),g=e.pendingLanes,(g&1)!==0?e===Ma?el++:(el=0,Ma=e):el=0,Jn(),null}function ai(){if(ir!==null){var e=ku(wo),n=ln.transition,l=He;try{if(ln.transition=null,He=16>e?16:e,ir===null)var a=!1;else{if(e=ir,ir=null,wo=0,(Fe&6)!==0)throw Error(r(331));var p=Fe;for(Fe|=4,fe=e.current;fe!==null;){var g=fe,w=g.child;if((fe.flags&16)!==0){var L=g.deletions;if(L!==null){for(var P=0;P<L.length;P++){var H=L[P];for(fe=H;fe!==null;){var ne=fe;switch(ne.tag){case 0:case 11:case 15:Ki(8,ne,g)}var re=ne.child;if(re!==null)re.return=ne,fe=re;else for(;fe!==null;){ne=fe;var te=ne.sibling,de=ne.return;if(v0(ne),ne===H){fe=null;break}if(te!==null){te.return=de,fe=te;break}fe=de}}}var pe=g.alternate;if(pe!==null){var me=pe.child;if(me!==null){pe.child=null;do{var ot=me.sibling;me.sibling=null,me=ot}while(me!==null)}}fe=g}}if((g.subtreeFlags&2064)!==0&&w!==null)w.return=g,fe=w;else e:for(;fe!==null;){if(g=fe,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Ki(9,g,g.return)}var O=g.sibling;if(O!==null){O.return=g.return,fe=O;break e}fe=g.return}}var R=e.current;for(fe=R;fe!==null;){w=fe;var B=w.child;if((w.subtreeFlags&2064)!==0&&B!==null)B.return=w,fe=B;else e:for(w=R;fe!==null;){if(L=fe,(L.flags&2048)!==0)try{switch(L.tag){case 0:case 11:case 15:go(9,L)}}catch(ge){it(L,L.return,ge)}if(L===w){fe=null;break e}var se=L.sibling;if(se!==null){se.return=L.return,fe=se;break e}fe=L.return}}if(Fe=p,Jn(),kn&&typeof kn.onPostCommitFiberRoot=="function")try{kn.onPostCommitFiberRoot(Ll,e)}catch{}a=!0}return a}finally{He=l,ln.transition=n}}return!1}function D0(e,n,l){n=ii(l,n),n=Jc(e,n,1),e=tr(e,n,1),n=Dt(),e!==null&&(Si(e,1,n),Vt(e,n))}function it(e,n,l){if(e.tag===3)D0(e,e,l);else for(;n!==null;){if(n.tag===3){D0(n,e,l);break}else if(n.tag===1){var a=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(rr===null||!rr.has(a))){e=ii(l,e),e=e0(n,e,1),n=tr(n,e,1),e=Dt(),n!==null&&(Si(n,1,e),Vt(n,e));break}}n=n.return}}function f4(e,n,l){var a=e.pingCache;a!==null&&a.delete(n),n=Dt(),e.pingedLanes|=e.suspendedLanes&l,xt===e&&(kt&l)===l&&(pt===4||pt===3&&(kt&130023424)===kt&&500>lt()-Na?Lr(e,0):La|=l),Vt(e,n)}function R0(e,n){n===0&&((e.mode&1)===0?n=1:(n=Il,Il<<=1,(Il&130023424)===0&&(Il=4194304)));var l=Dt();e=An(e,n),e!==null&&(Si(e,n,l),Vt(e,l))}function p4(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),R0(e,l)}function h4(e,n){var l=0;switch(e.tag){case 13:var a=e.stateNode,p=e.memoizedState;p!==null&&(l=p.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(r(314))}a!==null&&a.delete(n),R0(e,l)}var A0;A0=function(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps||Ot.current)$t=!0;else{if((e.lanes&l)===0&&(n.flags&128)===0)return $t=!1,t4(e,n,l);$t=(e.flags&131072)!==0}else $t=!1,et&&(n.flags&1048576)!==0&&gc(n,Xl,n.index);switch(n.lanes=0,n.tag){case 2:var a=n.type;ho(e,n),e=n.pendingProps;var p=Yr(n,_t.current);ni(n,l),p=oa(null,n,a,e,p,l);var g=sa();return n.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Bt(a)?(g=!0,Gl(n)):g=!1,n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Js(n),p.updater=fo,n.stateNode=p,p._reactInternals=n,pa(n,a,e,l),n=ya(null,n,a,!0,g,l)):(n.tag=0,et&&g&&Vs(n),zt(null,n,p,l),n=n.child),n;case 16:a=n.elementType;e:{switch(ho(e,n),e=n.pendingProps,p=a._init,a=p(a._payload),n.type=a,p=n.tag=g4(a),e=pn(a,e),p){case 0:n=ga(null,n,a,e,l);break e;case 1:n=u0(null,n,a,e,l);break e;case 11:n=i0(null,n,a,e,l);break e;case 14:n=l0(null,n,a,pn(a.type,e),l);break e}throw Error(r(306,a,""))}return n;case 0:return a=n.type,p=n.pendingProps,p=n.elementType===a?p:pn(a,p),ga(e,n,a,p,l);case 1:return a=n.type,p=n.pendingProps,p=n.elementType===a?p:pn(a,p),u0(e,n,a,p,l);case 3:e:{if(c0(n),e===null)throw Error(r(387));a=n.pendingProps,g=n.memoizedState,p=g.element,Ec(e,n),io(n,a,null,l);var w=n.memoizedState;if(a=w.element,g.isDehydrated)if(g={element:a,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},n.updateQueue.baseState=g,n.memoizedState=g,n.flags&256){p=ii(Error(r(423)),n),n=d0(e,n,a,l,p);break e}else if(a!==p){p=ii(Error(r(424)),n),n=d0(e,n,a,l,p);break e}else for(Gt=Yn(n.stateNode.containerInfo.firstChild),Qt=n,et=!0,fn=null,l=_c(n,null,a,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Jr(),a===p){n=On(e,n,l);break e}zt(e,n,a,l)}n=n.child}return n;case 5:return Lc(n),e===null&&qs(n),a=n.type,p=n.pendingProps,g=e!==null?e.memoizedProps:null,w=p.children,As(a,p)?w=null:g!==null&&As(a,g)&&(n.flags|=32),a0(e,n),zt(e,n,w,l),n.child;case 6:return e===null&&qs(n),null;case 13:return f0(e,n,l);case 4:return ea(n,n.stateNode.containerInfo),a=n.pendingProps,e===null?n.child=ei(n,null,a,l):zt(e,n,a,l),n.child;case 11:return a=n.type,p=n.pendingProps,p=n.elementType===a?p:pn(a,p),i0(e,n,a,p,l);case 7:return zt(e,n,n.pendingProps,l),n.child;case 8:return zt(e,n,n.pendingProps.children,l),n.child;case 12:return zt(e,n,n.pendingProps.children,l),n.child;case 10:e:{if(a=n.type._context,p=n.pendingProps,g=n.memoizedProps,w=p.value,Ke(to,a._currentValue),a._currentValue=w,g!==null)if(dn(g.value,w)){if(g.children===p.children&&!Ot.current){n=On(e,n,l);break e}}else for(g=n.child,g!==null&&(g.return=n);g!==null;){var L=g.dependencies;if(L!==null){w=g.child;for(var P=L.firstContext;P!==null;){if(P.context===a){if(g.tag===1){P=Fn(-1,l&-l),P.tag=2;var H=g.updateQueue;if(H!==null){H=H.shared;var ne=H.pending;ne===null?P.next=P:(P.next=ne.next,ne.next=P),H.pending=P}}g.lanes|=l,P=g.alternate,P!==null&&(P.lanes|=l),Ks(g.return,l,n),L.lanes|=l;break}P=P.next}}else if(g.tag===10)w=g.type===n.type?null:g.child;else if(g.tag===18){if(w=g.return,w===null)throw Error(r(341));w.lanes|=l,L=w.alternate,L!==null&&(L.lanes|=l),Ks(w,l,n),w=g.sibling}else w=g.child;if(w!==null)w.return=g;else for(w=g;w!==null;){if(w===n){w=null;break}if(g=w.sibling,g!==null){g.return=w.return,w=g;break}w=w.return}g=w}zt(e,n,p.children,l),n=n.child}return n;case 9:return p=n.type,a=n.pendingProps.children,ni(n,l),p=nn(p),a=a(p),n.flags|=1,zt(e,n,a,l),n.child;case 14:return a=n.type,p=pn(a,n.pendingProps),p=pn(a.type,p),l0(e,n,a,p,l);case 15:return o0(e,n,n.type,n.pendingProps,l);case 17:return a=n.type,p=n.pendingProps,p=n.elementType===a?p:pn(a,p),ho(e,n),n.tag=1,Bt(a)?(e=!0,Gl(n)):e=!1,ni(n,l),Kc(n,a,p),pa(n,a,p,l),ya(null,n,a,!0,e,l);case 19:return h0(e,n,l);case 22:return s0(e,n,l)}throw Error(r(156,n.tag))};function F0(e,n){return yu(e,n)}function m4(e,n,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,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 on(e,n,l,a){return new m4(e,n,l,a)}function Aa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g4(e){if(typeof e=="function")return Aa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===K)return 11;if(e===D)return 14}return 2}function sr(e,n){var l=e.alternate;return l===null?(l=on(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function Eo(e,n,l,a,p,g){var w=2;if(a=e,typeof e=="function")Aa(e)&&(w=1);else if(typeof e=="string")w=5;else e:switch(e){case W:return Ir(l.children,p,g,n);case Y:w=8,p|=8;break;case ee:return e=on(12,l,n,p|2),e.elementType=ee,e.lanes=g,e;case q:return e=on(13,l,n,p),e.elementType=q,e.lanes=g,e;case A:return e=on(19,l,n,p),e.elementType=A,e.lanes=g,e;case ce:return bo(l,p,g,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case S:w=10;break e;case $:w=9;break e;case K:w=11;break e;case D:w=14;break e;case ie:w=16,a=null;break e}throw Error(r(130,e==null?e:typeof e,""))}return n=on(w,l,n,p),n.elementType=e,n.type=a,n.lanes=g,n}function Ir(e,n,l,a){return e=on(7,e,a,n),e.lanes=l,e}function bo(e,n,l,a){return e=on(22,e,a,n),e.elementType=ce,e.lanes=l,e.stateNode={isHidden:!1},e}function Fa(e,n,l){return e=on(6,e,null,n),e.lanes=l,e}function Oa(e,n,l){return n=on(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function y4(e,n,l,a,p){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fs(0),this.expirationTimes=fs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fs(0),this.identifierPrefix=a,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Ba(e,n,l,a,p,g,w,L,P){return e=new y4(e,n,l,L,P),n===1?(n=1,g===!0&&(n|=8)):n=0,g=on(3,null,null,n),e.current=g,g.stateNode=e,g.memoizedState={element:a,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Js(g),e}function x4(e,n,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:a==null?null:""+a,children:e,containerInfo:n,implementation:l}}function O0(e){if(!e)return Xn;e=e._reactInternals;e:{if(xr(e)!==e||e.tag!==1)throw Error(r(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Bt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(r(171))}if(e.tag===1){var l=e.type;if(Bt(l))return pc(e,l,n)}return n}function B0(e,n,l,a,p,g,w,L,P){return e=Ba(l,a,!0,e,p,g,w,L,P),e.context=O0(null),l=e.current,a=Dt(),p=lr(l),g=Fn(a,p),g.callback=n??null,tr(l,g,p),e.current.lanes=p,Si(e,p,a),Vt(e,a),e}function jo(e,n,l,a){var p=n.current,g=Dt(),w=lr(p);return l=O0(l),n.context===null?n.context=l:n.pendingContext=l,n=Fn(g,w),n.payload={element:e},a=a===void 0?null:a,a!==null&&(n.callback=a),e=tr(p,n,w),e!==null&&(gn(e,p,w,g),ro(e,p,w)),w}function Lo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function $0(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function $a(e,n){$0(e,n),(e=e.alternate)&&$0(e,n)}function v4(){return null}var H0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ha(e){this._internalRoot=e}No.prototype.render=Ha.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));jo(e,n,null,null)},No.prototype.unmount=Ha.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;jr(function(){jo(null,e,null,null)}),n[Pn]=null}};function No(e){this._internalRoot=e}No.prototype.unstable_scheduleHydration=function(e){if(e){var n=Eu();e={blockedOn:null,target:e,priority:n};for(var l=0;l<Zn.length&&n!==0&&n<Zn[l].priority;l++);Zn.splice(l,0,e),l===0&&Lu(e)}};function Va(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Io(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function V0(){}function C4(e,n,l,a,p){if(p){if(typeof a=="function"){var g=a;a=function(){var H=Lo(w);g.call(H)}}var w=B0(n,a,e,0,null,!1,!1,"",V0);return e._reactRootContainer=w,e[Pn]=w.current,Fi(e.nodeType===8?e.parentNode:e),jr(),w}for(;p=e.lastChild;)e.removeChild(p);if(typeof a=="function"){var L=a;a=function(){var H=Lo(P);L.call(H)}}var P=Ba(e,0,!1,null,null,!1,!1,"",V0);return e._reactRootContainer=P,e[Pn]=P.current,Fi(e.nodeType===8?e.parentNode:e),jr(function(){jo(n,P,l,a)}),P}function Mo(e,n,l,a,p){var g=l._reactRootContainer;if(g){var w=g;if(typeof p=="function"){var L=p;p=function(){var P=Lo(w);L.call(P)}}jo(n,w,e,p)}else w=C4(l,n,e,p,a);return Lo(w)}_u=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var l=_i(n.pendingLanes);l!==0&&(ps(n,l|1),Vt(n,lt()),(Fe&6)===0&&(si=lt()+500,Jn()))}break;case 13:jr(function(){var a=An(e,1);if(a!==null){var p=Dt();gn(a,e,1,p)}}),$a(e,1)}},hs=function(e){if(e.tag===13){var n=An(e,134217728);if(n!==null){var l=Dt();gn(n,e,134217728,l)}$a(e,134217728)}},Su=function(e){if(e.tag===13){var n=lr(e),l=An(e,n);if(l!==null){var a=Dt();gn(l,e,n,a)}$a(e,n)}},Eu=function(){return He},bu=function(e,n){var l=He;try{return He=e,n()}finally{He=l}},Mn=function(e,n,l){switch(n){case"input":if(qe(e,l),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<l.length;n++){var a=l[n];if(a!==e&&a.form===e.form){var p=Zl(a);if(!p)throw Error(r(90));It(a),qe(a,p)}}}break;case"textarea":mr(e,l);break;case"select":n=l.value,n!=null&&Ft(e,!!l.multiple,n,!1)}},yr=za,du=jr;var w4={usingClientEntryPoint:!1,Events:[$i,Qr,Zl,xi,vi,za]},tl={findFiberByHostInstance:vr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},k4={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=mu(e),e===null?null:e.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||v4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var To=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!To.isDisabled&&To.supportsFiber)try{Ll=To.inject(k4),kn=To}catch{}}return Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w4,Ut.createPortal=function(e,n){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Va(n))throw Error(r(200));return x4(e,n,null,l)},Ut.createRoot=function(e,n){if(!Va(e))throw Error(r(299));var l=!1,a="",p=H0;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(p=n.onRecoverableError)),n=Ba(e,1,!1,null,null,l,!1,a,p),e[Pn]=n.current,Fi(e.nodeType===8?e.parentNode:e),new Ha(n)},Ut.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=mu(n),e=e===null?null:e.stateNode,e},Ut.flushSync=function(e){return jr(e)},Ut.hydrate=function(e,n,l){if(!Io(n))throw Error(r(200));return Mo(null,e,n,!0,l)},Ut.hydrateRoot=function(e,n,l){if(!Va(e))throw Error(r(405));var a=l!=null&&l.hydratedSources||null,p=!1,g="",w=H0;if(l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onRecoverableError!==void 0&&(w=l.onRecoverableError)),n=B0(n,null,e,1,l??null,p,!1,g,w),e[Pn]=n.current,Fi(e),a)for(e=0;e<a.length;e++)l=a[e],p=l._getVersion,p=p(l._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[l,p]:n.mutableSourceEagerHydrationData.push(l,p);return new No(n)},Ut.render=function(e,n,l){if(!Io(n))throw Error(r(200));return Mo(null,e,n,!1,l)},Ut.unmountComponentAtNode=function(e){if(!Io(e))throw Error(r(40));return e._reactRootContainer?(jr(function(){Mo(null,null,e,!1,function(){e._reactRootContainer=null,e[Pn]=null})}),!0):!1},Ut.unstable_batchedUpdates=za,Ut.unstable_renderSubtreeIntoContainer=function(e,n,l,a){if(!Io(l))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Mo(e,n,l,!1,a)},Ut.version="18.3.1-next-f1338f8080-20240426",Ut}var K0;function o3(){if(K0)return qa.exports;K0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),qa.exports=N4(),qa.exports}var X0;function I4(){if(X0)return Po;X0=1;var t=o3();return Po.createRoot=t.createRoot,Po.hydrateRoot=t.hydrateRoot,Po}var M4=I4(),M=B1();const T4=400,P4=264,z4=420,D4=280,R4=56,A4=1024,J0=300,F4=.7,O4=.45;function e2(t,i,r){return Math.min(r,Math.max(i,Math.round(t)))}function t2(t,i,r){const o=i===0?R4:e2(i,P4,z4),s=t-o-T4,u=r===0||s<J0?0:Math.min(s,e2(r,J0,t*F4));return{sidebar:o,center:Math.max(0,t-o-u),rightbar:u}}function B4({useSessions:t,usePanelInfo:i,productTitle:r}){const o=i(u=>u.activePanelId===null),s=t(u=>{var f;const c=u.current;return!o||c===void 0||(f=u.byId[c])==null?void 0:f.title});return M.useEffect(()=>(document.title=s===void 0?r:`${s} — ${r}`,()=>{document.title=r}),[r,s]),null}const $4="_frame_mhsk6_1",H4="_sidebarCol_mhsk6_24",V4="_centerCol_mhsk6_31",U4="_handle_mhsk6_44",W4="_rightbarCol_mhsk6_83",q4="_overlayLayer_mhsk6_89",hi={frame:$4,sidebarCol:H4,centerCol:V4,handle:U4,rightbarCol:W4,overlayLayer:q4};function Z4(t){return d.jsx("div",{className:hi.centerCol,children:t.children})}function Q4({usePanelInfo:t,renderSlot:i}){const r=t(o=>o.activePanelId);return i("main",{},{entryKey:r??"conversation"})}function G4(t){return d.jsx("div",{className:hi.rightbarCol,"data-rightbar-col":!0,children:t.children})}function n2(t){const[i,r]=M.useState(!1),o=M.useRef(0),s=M.useRef(0),u=M.useRef(null),c=M.useRef(null),f=M.useRef({onStart:t.onStart,onDrag:t.onDrag,onEnd:t.onEnd});f.current={onStart:t.onStart,onDrag:t.onDrag,onEnd:t.onEnd};const h=M.useCallback(()=>{const C=c.current;C!==null&&(c.current=null,u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),C.element.hasPointerCapture(C.id)&&C.element.releasePointerCapture(C.id),r(!1),f.current.onEnd())},[]);M.useEffect(()=>h,[h]);const m=M.useCallback(C=>{C.button!==0||c.current!==null||(C.preventDefault(),C.currentTarget.setPointerCapture(C.pointerId),c.current={element:C.currentTarget,id:C.pointerId},o.current=C.clientX,s.current=C.clientX,f.current.onStart(),r(!0))},[]),x=M.useCallback(C=>{var k;((k=c.current)==null?void 0:k.id)===C.pointerId&&(s.current=C.clientX,u.current??(u.current=requestAnimationFrame(()=>{u.current=null,f.current.onDrag(s.current-o.current)})))},[]),y=M.useCallback(C=>{var k;((k=c.current)==null?void 0:k.id)===C.pointerId&&(f.current.onDrag(C.clientX-o.current),h())},[h]),v=M.useCallback(C=>{var k;((k=c.current)==null?void 0:k.id)===C.pointerId&&h()},[h]);return d.jsx("div",{className:hi.handle,style:{left:t.left},"data-side":t.side,"data-dragging":i||void 0,onPointerDown:m,onPointerMove:x,onPointerUp:y,onPointerCancel:v,onLostPointerCapture:v})}function Y4({useStore:t,useSessions:i,usePanelInfo:r,actions:o,renderSlot:s,t:u}){const c=t(A=>A.layoutInfo),f=M.useRef(null),h=c.viewportWidth;M.useLayoutEffect(()=>{const A=f.current;if(A===null)return;let D=null,ie=!1;const ce=()=>{const le=A.getBoundingClientRect().width;le>0&&o.setViewportWidth(le)};ce();const V=new ResizeObserver(()=>{ie||(D??(D=requestAnimationFrame(()=>{D=null,ce()})))});return V.observe(A),()=>{ie=!0,V.disconnect(),D!==null&&cancelAnimationFrame(D)}},[o]);const m=h<A4,x=m?!c.narrowExpanded:c.sidebar===0,y=x?0:c.sidebar===0?D4:c.sidebar,v=c.rightbar??h*O4,C=t2(h,!c.rightbarShown&&m?0:y,v),k=t2(h,y,c.rightbarTrack?v:0),N=M.useRef(k);N.current=k;const b=M.useRef(C.rightbar);b.current=C.rightbar;const _=M.useRef(0),T=M.useRef(0),[I,U]=M.useState(!1),Z=M.useCallback(()=>{U(!1)},[]),F=M.useCallback(()=>{_.current=N.current.sidebar,U(!0)},[]),W=M.useCallback(A=>{o.setSidebar(_.current+A)},[o]),Y=M.useCallback(()=>{T.current=b.current,U(!0)},[]),ee=M.useCallback(A=>{o.setRightbar(T.current-A)},[o]),S=u("brand.localBuild"),$=M.useMemo(()=>s("sidebar",{collapsed:x,width:k.sidebar}),[s,x,k.sidebar]),K=M.useMemo(()=>d.jsx(Q4,{usePanelInfo:r,renderSlot:s}),[r,s]),q=M.useMemo(()=>s("shell.overlay",{}),[s]);return d.jsxs("div",{ref:f,className:hi.frame,style:{gridTemplateColumns:`${k.sidebar}px minmax(0, 1fr) ${k.rightbar}px`},"data-sidebar-collapsed":x||void 0,"data-rightbar-collapsed":k.rightbar===0||void 0,"data-rightbar-fullscreen":c.rightbarFullscreen||void 0,"data-rightbar-instant":c.rightbarInstant||void 0,"data-dragging":I||void 0,children:[d.jsx(B4,{productTitle:S,useSessions:i,usePanelInfo:r}),d.jsx("div",{className:hi.sidebarCol,children:$}),d.jsxs(d.Fragment,{children:[d.jsx(Z4,{children:K}),d.jsx(G4,{children:s("rightbar",{width:C.rightbar,viewportWidth:h,canShow:C.rightbar>0})})]}),d.jsx("div",{className:hi.overlayLayer,"data-shell-overlay":!0,children:q}),!x&&d.jsx(n2,{side:"sidebar",left:k.sidebar,onStart:F,onDrag:W,onEnd:Z}),c.rightbarShown&&!c.rightbarFullscreen&&C.rightbar>0&&d.jsx(n2,{side:"rightbar",left:h-C.rightbar,onStart:Y,onDrag:ee,onEnd:Z})]})}function s3(t){var i,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(i=0;i<s;i++)t[i]&&(r=s3(t[i]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function rt(){for(var t,i,r=0,o="",s=arguments.length;r<s;r++)(t=arguments[r])&&(i=s3(t))&&(o&&(o+=" "),o+=i);return o}const K4=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
40
+ `+g.stack}return{value:t,source:n,stack:h,digest:null}}function Ca(t,n,l){return{value:t,source:null,stack:l??null,digest:n??null}}function wa(t,n){try{console.error(n.value)}catch(l){setTimeout(function(){throw l})}}var c4=typeof WeakMap=="function"?WeakMap:Map;function s0(t,n,l){l=Un(-1,l),l.tag=3,l.payload={element:null};var a=n.value;return l.callback=function(){bo||(bo=!0,Ra=a),wa(t,n)},l}function a0(t,n,l){l=Un(-1,l),l.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var h=n.value;l.payload=function(){return a(h)},l.callback=function(){wa(t,n)}}var g=t.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(l.callback=function(){wa(t,n),typeof a!="function"&&(cr===null?cr=new Set([this]):cr.add(this));var w=n.stack;this.componentDidCatch(n.value,{componentStack:w!==null?w:""})}),l}function u0(t,n,l){var a=t.pingCache;if(a===null){a=t.pingCache=new c4;var h=new Set;a.set(n,h)}else h=a.get(n),h===void 0&&(h=new Set,a.set(n,h));h.has(l)||(h.add(l),t=S4.bind(null,t,n,l),n.then(t,t))}function c0(t){do{var n;if((n=t.tag===13)&&(n=t.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return t;t=t.return}while(t!==null);return null}function d0(t,n,l,a,h){return(t.mode&1)===0?(t===n?t.flags|=65536:(t.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(n=Un(-1,1),n.tag=2,ar(l,n,1))),l.lanes|=1),t):(t.flags|=65536,t.lanes=h,t)}var d4=$.ReactCurrentOwner,qt=!1;function $t(t,n,l,a){n.child=t===null?Pc(n,null,l,a):oi(n,t.child,l,a)}function f0(t,n,l,a,h){l=l.render;var g=n.ref;return ai(n,h),a=fa(t,n,l,a,g,h),l=pa(),t!==null&&!qt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~h,Wn(t,n,h)):(nt&&l&&Gs(n),n.flags|=1,$t(t,n,a,h),n.child)}function p0(t,n,l,a,h){if(t===null){var g=l.type;return typeof g=="function"&&!Va(g)&&g.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(n.tag=15,n.type=g,h0(t,n,g,a,h)):(t=Po(l.type,null,a,n,n.mode,h),t.ref=n.ref,t.return=n,n.child=t)}if(g=t.child,(t.lanes&h)===0){var w=g.memoizedProps;if(l=l.compare,l=l!==null?l:Bi,l(w,a)&&t.ref===n.ref)return Wn(t,n,h)}return n.flags|=1,t=hr(g,a),t.ref=n.ref,t.return=n,n.child=t}function h0(t,n,l,a,h){if(t!==null){var g=t.memoizedProps;if(Bi(g,a)&&t.ref===n.ref)if(qt=!1,n.pendingProps=a=g,(t.lanes&h)!==0)(t.flags&131072)!==0&&(qt=!0);else return n.lanes=t.lanes,Wn(t,n,h)}return ka(t,n,l,a,h)}function m0(t,n,l){var a=n.pendingProps,h=a.children,g=t!==null?t.memoizedState:null;if(a.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(fi,tn),tn|=l;else{if((l&1073741824)===0)return t=g!==null?g.baseLanes|l:l,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:t,cachePool:null,transitions:null},n.updateQueue=null,Je(fi,tn),tn|=t,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=g!==null?g.baseLanes:l,Je(fi,tn),tn|=a}else g!==null?(a=g.baseLanes|l,n.memoizedState=null):a=l,Je(fi,tn),tn|=a;return $t(t,n,h,l),n.child}function g0(t,n){var l=n.ref;(t===null&&l!==null||t!==null&&t.ref!==l)&&(n.flags|=512,n.flags|=2097152)}function ka(t,n,l,a,h){var g=Wt(l)?jr:Lt.current;return g=ni(n,g),ai(n,h),l=fa(t,n,l,a,g,h),a=pa(),t!==null&&!qt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~h,Wn(t,n,h)):(nt&&a&&Gs(n),n.flags|=1,$t(t,n,l,h),n.child)}function x0(t,n,l,a,h){if(Wt(l)){var g=!0;to(n)}else g=!1;if(ai(n,h),n.stateNode===null)Co(t,n),l0(n,l,a),va(n,l,a,h),a=!0;else if(t===null){var w=n.stateNode,M=n.memoizedProps;w.props=M;var F=w.context,G=l.contextType;typeof G=="object"&&G!==null?G=an(G):(G=Wt(l)?jr:Lt.current,G=ni(n,G));var oe=l.getDerivedStateFromProps,se=typeof oe=="function"||typeof w.getSnapshotBeforeUpdate=="function";se||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(M!==a||F!==G)&&o0(n,w,a,G),sr=!1;var le=n.memoizedState;w.state=le,co(n,a,w,h),F=n.memoizedState,M!==a||le!==F||Ut.current||sr?(typeof oe=="function"&&(ya(n,l,oe,a),F=n.memoizedState),(M=sr||i0(n,l,M,a,le,F,G))?(se||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(n.flags|=4194308)):(typeof w.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=a,n.memoizedState=F),w.props=a,w.state=F,w.context=G,a=M):(typeof w.componentDidMount=="function"&&(n.flags|=4194308),a=!1)}else{w=n.stateNode,Tc(t,n),M=n.memoizedProps,G=n.type===n.elementType?M:Cn(n.type,M),w.props=G,se=n.pendingProps,le=w.context,F=l.contextType,typeof F=="object"&&F!==null?F=an(F):(F=Wt(l)?jr:Lt.current,F=ni(n,F));var pe=l.getDerivedStateFromProps;(oe=typeof pe=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(M!==se||le!==F)&&o0(n,w,a,F),sr=!1,le=n.memoizedState,w.state=le,co(n,a,w,h);var me=n.memoizedState;M!==se||le!==me||Ut.current||sr?(typeof pe=="function"&&(ya(n,l,pe,a),me=n.memoizedState),(G=sr||i0(n,l,G,a,le,me,F)||!1)?(oe||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(a,me,F),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(a,me,F)),typeof w.componentDidUpdate=="function"&&(n.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof w.componentDidUpdate!="function"||M===t.memoizedProps&&le===t.memoizedState||(n.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===t.memoizedProps&&le===t.memoizedState||(n.flags|=1024),n.memoizedProps=a,n.memoizedState=me),w.props=a,w.state=me,w.context=F,a=G):(typeof w.componentDidUpdate!="function"||M===t.memoizedProps&&le===t.memoizedState||(n.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===t.memoizedProps&&le===t.memoizedState||(n.flags|=1024),a=!1)}return _a(t,n,l,a,g,h)}function _a(t,n,l,a,h,g){g0(t,n);var w=(n.flags&128)!==0;if(!a&&!w)return h&&kc(n,l,!1),Wn(t,n,g);a=n.stateNode,d4.current=n;var M=w&&typeof l.getDerivedStateFromError!="function"?null:a.render();return n.flags|=1,t!==null&&w?(n.child=oi(n,t.child,null,g),n.child=oi(n,null,M,g)):$t(t,n,M,g),n.memoizedState=a.state,h&&kc(n,l,!0),n.child}function y0(t){var n=t.stateNode;n.pendingContext?Cc(t,n.pendingContext,n.pendingContext!==n.context):n.context&&Cc(t,n.context,!1),oa(t,n.containerInfo)}function v0(t,n,l,a,h){return li(),Js(h),n.flags|=256,$t(t,n,l,a),n.child}var Sa={dehydrated:null,treeContext:null,retryLane:0};function ba(t){return{baseLanes:t,cachePool:null,transitions:null}}function C0(t,n,l){var a=n.pendingProps,h=it.current,g=!1,w=(n.flags&128)!==0,M;if((M=w)||(M=t!==null&&t.memoizedState===null?!1:(h&2)!==0),M?(g=!0,n.flags&=-129):(t===null||t.memoizedState!==null)&&(h|=1),Je(it,h&1),t===null)return Xs(n),t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((n.mode&1)===0?n.lanes=1:t.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(w=a.children,t=a.fallback,g?(a=n.mode,g=n.child,w={mode:"hidden",children:w},(a&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=w):g=Mo(w,a,0,null),t=Ar(t,a,l,null),g.return=n,t.return=n,g.sibling=t,n.child=g,n.child.memoizedState=ba(l),n.memoizedState=Sa,t):Ea(n,w));if(h=t.memoizedState,h!==null&&(M=h.dehydrated,M!==null))return f4(t,n,w,a,M,h,l);if(g){g=a.fallback,w=n.mode,h=t.child,M=h.sibling;var F={mode:"hidden",children:a.children};return(w&1)===0&&n.child!==h?(a=n.child,a.childLanes=0,a.pendingProps=F,n.deletions=null):(a=hr(h,F),a.subtreeFlags=h.subtreeFlags&14680064),M!==null?g=hr(M,g):(g=Ar(g,w,l,null),g.flags|=2),g.return=n,a.return=n,a.sibling=g,n.child=a,a=g,g=n.child,w=t.child.memoizedState,w=w===null?ba(l):{baseLanes:w.baseLanes|l,cachePool:null,transitions:w.transitions},g.memoizedState=w,g.childLanes=t.childLanes&~l,n.memoizedState=Sa,a}return g=t.child,t=g.sibling,a=hr(g,{mode:"visible",children:a.children}),(n.mode&1)===0&&(a.lanes=l),a.return=n,a.sibling=null,t!==null&&(l=n.deletions,l===null?(n.deletions=[t],n.flags|=16):l.push(t)),n.child=a,n.memoizedState=null,a}function Ea(t,n){return n=Mo({mode:"visible",children:n},t.mode,0,null),n.return=t,t.child=n}function vo(t,n,l,a){return a!==null&&Js(a),oi(n,t.child,null,l),t=Ea(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function f4(t,n,l,a,h,g,w){if(l)return n.flags&256?(n.flags&=-257,a=Ca(Error(i(422))),vo(t,n,w,a)):n.memoizedState!==null?(n.child=t.child,n.flags|=128,null):(g=a.fallback,h=n.mode,a=Mo({mode:"visible",children:a.children},h,0,null),g=Ar(g,h,w,null),g.flags|=2,a.return=n,g.return=n,a.sibling=g,n.child=a,(n.mode&1)!==0&&oi(n,t.child,null,w),n.child.memoizedState=ba(w),n.memoizedState=Sa,g);if((n.mode&1)===0)return vo(t,n,w,null);if(h.data==="$!"){if(a=h.nextSibling&&h.nextSibling.dataset,a)var M=a.dgst;return a=M,g=Error(i(419)),a=Ca(g,a,void 0),vo(t,n,w,a)}if(M=(w&t.childLanes)!==0,qt||M){if(a=kt,a!==null){switch(w&-w){case 4:h=2;break;case 16:h=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(a.suspendedLanes|w))!==0?0:h,h!==0&&h!==g.retryLane&&(g.retryLane=h,Vn(t,h),_n(a,t,h,-1))}return Ha(),a=Ca(Error(i(421))),vo(t,n,w,a)}return h.data==="$?"?(n.flags|=128,n.child=t.child,n=b4.bind(null,t),h._reactRetry=n,null):(t=g.treeContext,en=rr(h.nextSibling),Jt=n,nt=!0,vn=null,t!==null&&(on[sn++]=Bn,on[sn++]=Hn,on[sn++]=Lr,Bn=t.id,Hn=t.overflow,Lr=n),n=Ea(n,a.children),n.flags|=4096,n)}function w0(t,n,l){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n),ra(t.return,n,l)}function ja(t,n,l,a,h){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:h}:(g.isBackwards=n,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=l,g.tailMode=h)}function k0(t,n,l){var a=n.pendingProps,h=a.revealOrder,g=a.tail;if($t(t,n,a.children,l),a=it.current,(a&2)!==0)a=a&1|2,n.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&w0(t,l,n);else if(t.tag===19)w0(t,l,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(Je(it,a),(n.mode&1)===0)n.memoizedState=null;else switch(h){case"forwards":for(l=n.child,h=null;l!==null;)t=l.alternate,t!==null&&fo(t)===null&&(h=l),l=l.sibling;l=h,l===null?(h=n.child,n.child=null):(h=l.sibling,l.sibling=null),ja(n,!1,h,l,g);break;case"backwards":for(l=null,h=n.child,n.child=null;h!==null;){if(t=h.alternate,t!==null&&fo(t)===null){n.child=h;break}t=h.sibling,h.sibling=l,l=h,h=t}ja(n,!0,l,null,g);break;case"together":ja(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Co(t,n){(n.mode&1)===0&&t!==null&&(t.alternate=null,n.alternate=null,n.flags|=2)}function Wn(t,n,l){if(t!==null&&(n.dependencies=t.dependencies),Tr|=n.lanes,(l&n.childLanes)===0)return null;if(t!==null&&n.child!==t.child)throw Error(i(153));if(n.child!==null){for(t=n.child,l=hr(t,t.pendingProps),n.child=l,l.return=n;t.sibling!==null;)t=t.sibling,l=l.sibling=hr(t,t.pendingProps),l.return=n;l.sibling=null}return n.child}function p4(t,n,l){switch(n.tag){case 3:y0(n),li();break;case 5:Rc(n);break;case 1:Wt(n.type)&&to(n);break;case 4:oa(n,n.stateNode.containerInfo);break;case 10:var a=n.type._context,h=n.memoizedProps.value;Je(so,a._currentValue),a._currentValue=h;break;case 13:if(a=n.memoizedState,a!==null)return a.dehydrated!==null?(Je(it,it.current&1),n.flags|=128,null):(l&n.child.childLanes)!==0?C0(t,n,l):(Je(it,it.current&1),t=Wn(t,n,l),t!==null?t.sibling:null);Je(it,it.current&1);break;case 19:if(a=(l&n.childLanes)!==0,(t.flags&128)!==0){if(a)return k0(t,n,l);n.flags|=128}if(h=n.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Je(it,it.current),a)break;return null;case 22:case 23:return n.lanes=0,m0(t,n,l)}return Wn(t,n,l)}var _0,La,S0,b0;_0=function(t,n){for(var l=n.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},La=function(){},S0=function(t,n,l,a){var h=t.memoizedProps;if(h!==a){t=n.stateNode,Pr(In.current);var g=null;switch(l){case"input":h=Rt(t,h),a=Rt(t,a),g=[];break;case"select":h=S({},h,{value:void 0}),a=S({},a,{value:void 0}),g=[];break;case"textarea":h=xe(t,h),a=xe(t,a),g=[];break;default:typeof h.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Xl)}Qe(l,a);var w;l=null;for(G in h)if(!a.hasOwnProperty(G)&&h.hasOwnProperty(G)&&h[G]!=null)if(G==="style"){var M=h[G];for(w in M)M.hasOwnProperty(w)&&(l||(l={}),l[w]="")}else G!=="dangerouslySetInnerHTML"&&G!=="children"&&G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&G!=="autoFocus"&&(s.hasOwnProperty(G)?g||(g=[]):(g=g||[]).push(G,null));for(G in a){var F=a[G];if(M=h!=null?h[G]:void 0,a.hasOwnProperty(G)&&F!==M&&(F!=null||M!=null))if(G==="style")if(M){for(w in M)!M.hasOwnProperty(w)||F&&F.hasOwnProperty(w)||(l||(l={}),l[w]="");for(w in F)F.hasOwnProperty(w)&&M[w]!==F[w]&&(l||(l={}),l[w]=F[w])}else l||(g||(g=[]),g.push(G,l)),l=F;else G==="dangerouslySetInnerHTML"?(F=F?F.__html:void 0,M=M?M.__html:void 0,F!=null&&M!==F&&(g=g||[]).push(G,F)):G==="children"?typeof F!="string"&&typeof F!="number"||(g=g||[]).push(G,""+F):G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&(s.hasOwnProperty(G)?(F!=null&&G==="onScroll"&&et("scroll",t),g||M===F||(g=[])):(g=g||[]).push(G,F))}l&&(g=g||[]).push("style",l);var G=g;(n.updateQueue=G)&&(n.flags|=4)}},b0=function(t,n,l,a){l!==a&&(n.flags|=4)};function nl(t,n){if(!nt)switch(t.tailMode){case"hidden":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function It(t){var n=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(n)for(var h=t.child;h!==null;)l|=h.lanes|h.childLanes,a|=h.subtreeFlags&14680064,a|=h.flags&14680064,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)l|=h.lanes|h.childLanes,a|=h.subtreeFlags,a|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=a,t.childLanes=l,n}function h4(t,n,l){var a=n.pendingProps;switch(Ks(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return It(n),null;case 1:return Wt(n.type)&&eo(),It(n),null;case 3:return a=n.stateNode,ui(),tt(Ut),tt(Lt),ua(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(lo(n)?n.flags|=4:t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,vn!==null&&(Oa(vn),vn=null))),La(t,n),It(n),null;case 5:sa(n);var h=Pr(Yi.current);if(l=n.type,t!==null&&n.stateNode!=null)S0(t,n,l,a,h),t.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!a){if(n.stateNode===null)throw Error(i(166));return It(n),null}if(t=Pr(In.current),lo(n)){a=n.stateNode,l=n.type;var g=n.memoizedProps;switch(a[Nn]=n,a[qi]=g,t=(n.mode&1)!==0,l){case"dialog":et("cancel",a),et("close",a);break;case"iframe":case"object":case"embed":et("load",a);break;case"video":case"audio":for(h=0;h<Vi.length;h++)et(Vi[h],a);break;case"source":et("error",a);break;case"img":case"image":case"link":et("error",a),et("load",a);break;case"details":et("toggle",a);break;case"input":At(a,g),et("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!g.multiple},et("invalid",a);break;case"textarea":Me(a,g),et("invalid",a)}Qe(l,g),h=null;for(var w in g)if(g.hasOwnProperty(w)){var M=g[w];w==="children"?typeof M=="string"?a.textContent!==M&&(g.suppressHydrationWarning!==!0&&Yl(a.textContent,M,t),h=["children",M]):typeof M=="number"&&a.textContent!==""+M&&(g.suppressHydrationWarning!==!0&&Yl(a.textContent,M,t),h=["children",""+M]):s.hasOwnProperty(w)&&M!=null&&w==="onScroll"&&et("scroll",a)}switch(l){case"input":Oe(a),gn(a,g,!0);break;case"textarea":Oe(a),He(a);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(a.onclick=Xl)}a=h,n.updateQueue=a,a!==null&&(n.flags|=4)}else{w=h.nodeType===9?h:h.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=X(l)),t==="http://www.w3.org/1999/xhtml"?l==="script"?(t=w.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=w.createElement(l,{is:a.is}):(t=w.createElement(l),l==="select"&&(w=t,a.multiple?w.multiple=!0:a.size&&(w.size=a.size))):t=w.createElementNS(t,l),t[Nn]=n,t[qi]=a,_0(t,n,!1,!1),n.stateNode=t;e:{switch(w=Ot(l,a),l){case"dialog":et("cancel",t),et("close",t),h=a;break;case"iframe":case"object":case"embed":et("load",t),h=a;break;case"video":case"audio":for(h=0;h<Vi.length;h++)et(Vi[h],t);h=a;break;case"source":et("error",t),h=a;break;case"img":case"image":case"link":et("error",t),et("load",t),h=a;break;case"details":et("toggle",t),h=a;break;case"input":At(t,a),h=Rt(t,a),et("invalid",t);break;case"option":h=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},h=S({},a,{value:void 0}),et("invalid",t);break;case"textarea":Me(t,a),h=xe(t,a),et("invalid",t);break;default:h=a}Qe(l,h),M=h;for(g in M)if(M.hasOwnProperty(g)){var F=M[g];g==="style"?Te(t,F):g==="dangerouslySetInnerHTML"?(F=F?F.__html:void 0,F!=null&&je(t,F)):g==="children"?typeof F=="string"?(l!=="textarea"||F!=="")&&Re(t,F):typeof F=="number"&&Re(t,""+F):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(s.hasOwnProperty(g)?F!=null&&g==="onScroll"&&et("scroll",t):F!=null&&b(t,g,F,w))}switch(l){case"input":Oe(t),gn(t,a,!1);break;case"textarea":Oe(t),He(t);break;case"option":a.value!=null&&t.setAttribute("value",""+Ee(a.value));break;case"select":t.multiple=!!a.multiple,g=a.value,g!=null?Q(t,!!a.multiple,g,!1):a.defaultValue!=null&&Q(t,!!a.multiple,a.defaultValue,!0);break;default:typeof h.onClick=="function"&&(t.onclick=Xl)}switch(l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return It(n),null;case 6:if(t&&n.stateNode!=null)b0(t,n,t.memoizedProps,a);else{if(typeof a!="string"&&n.stateNode===null)throw Error(i(166));if(l=Pr(Yi.current),Pr(In.current),lo(n)){if(a=n.stateNode,l=n.memoizedProps,a[Nn]=n,(g=a.nodeValue!==l)&&(t=Jt,t!==null))switch(t.tag){case 3:Yl(a.nodeValue,l,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Yl(a.nodeValue,l,(t.mode&1)!==0)}g&&(n.flags|=4)}else a=(l.nodeType===9?l:l.ownerDocument).createTextNode(a),a[Nn]=n,n.stateNode=a}return It(n),null;case 13:if(tt(it),a=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(nt&&en!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Lc(),li(),n.flags|=98560,g=!1;else if(g=lo(n),a!==null&&a.dehydrated!==null){if(t===null){if(!g)throw Error(i(318));if(g=n.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[Nn]=n}else li(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;It(n),g=!1}else vn!==null&&(Oa(vn),vn=null),g=!0;if(!g)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=l,n):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(n.child.flags|=8192,(n.mode&1)!==0&&(t===null||(it.current&1)!==0?xt===0&&(xt=3):Ha())),n.updateQueue!==null&&(n.flags|=4),It(n),null);case 4:return ui(),La(t,n),t===null&&Ui(n.stateNode.containerInfo),It(n),null;case 10:return na(n.type._context),It(n),null;case 17:return Wt(n.type)&&eo(),It(n),null;case 19:if(tt(it),g=n.memoizedState,g===null)return It(n),null;if(a=(n.flags&128)!==0,w=g.rendering,w===null)if(a)nl(g,!1);else{if(xt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(w=fo(t),w!==null){for(n.flags|=128,nl(g,!1),a=w.updateQueue,a!==null&&(n.updateQueue=a,n.flags|=4),n.subtreeFlags=0,a=l,l=n.child;l!==null;)g=l,t=a,g.flags&=14680066,w=g.alternate,w===null?(g.childLanes=0,g.lanes=t,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=w.childLanes,g.lanes=w.lanes,g.child=w.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=w.memoizedProps,g.memoizedState=w.memoizedState,g.updateQueue=w.updateQueue,g.type=w.type,t=w.dependencies,g.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l=l.sibling;return Je(it,it.current&1|2),n.child}t=t.sibling}g.tail!==null&&ct()>pi&&(n.flags|=128,a=!0,nl(g,!1),n.lanes=4194304)}else{if(!a)if(t=fo(w),t!==null){if(n.flags|=128,a=!0,l=t.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),nl(g,!0),g.tail===null&&g.tailMode==="hidden"&&!w.alternate&&!nt)return It(n),null}else 2*ct()-g.renderingStartTime>pi&&l!==1073741824&&(n.flags|=128,a=!0,nl(g,!1),n.lanes=4194304);g.isBackwards?(w.sibling=n.child,n.child=w):(l=g.last,l!==null?l.sibling=w:n.child=w,g.last=w)}return g.tail!==null?(n=g.tail,g.rendering=n,g.tail=n.sibling,g.renderingStartTime=ct(),n.sibling=null,l=it.current,Je(it,a?l&1|2:l&1),n):(It(n),null);case 22:case 23:return Ba(),a=n.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(n.flags|=8192),a&&(n.mode&1)!==0?(tn&1073741824)!==0&&(It(n),n.subtreeFlags&6&&(n.flags|=8192)):It(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function m4(t,n){switch(Ks(n),n.tag){case 1:return Wt(n.type)&&eo(),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return ui(),tt(Ut),tt(Lt),ua(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 5:return sa(n),null;case 13:if(tt(it),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(i(340));li()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return tt(it),null;case 4:return ui(),null;case 10:return na(n.type._context),null;case 22:case 23:return Ba(),null;case 24:return null;default:return null}}var wo=!1,Pt=!1,g4=typeof WeakSet=="function"?WeakSet:Set,he=null;function di(t,n){var l=t.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(a){at(t,n,a)}else l.current=null}function Na(t,n,l){try{l()}catch(a){at(t,n,a)}}var E0=!1;function x4(t,n){if(Bs=$l,t=ic(),Ts(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var h=a.anchorOffset,g=a.focusNode;a=a.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var w=0,M=-1,F=-1,G=0,oe=0,se=t,le=null;t:for(;;){for(var pe;se!==l||h!==0&&se.nodeType!==3||(M=w+h),se!==g||a!==0&&se.nodeType!==3||(F=w+a),se.nodeType===3&&(w+=se.nodeValue.length),(pe=se.firstChild)!==null;)le=se,se=pe;for(;;){if(se===t)break t;if(le===l&&++G===h&&(M=w),le===g&&++oe===a&&(F=w),(pe=se.nextSibling)!==null)break;se=le,le=se.parentNode}se=pe}l=M===-1||F===-1?null:{start:M,end:F}}else l=null}l=l||{start:0,end:0}}else l=null;for(Hs={focusedElem:t,selectionRange:l},$l=!1,he=n;he!==null;)if(n=he,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,he=t;else for(;he!==null;){n=he;try{var me=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(me!==null){var ye=me.memoizedProps,dt=me.memoizedState,U=n.stateNode,H=U.getSnapshotBeforeUpdate(n.elementType===n.type?ye:Cn(n.type,ye),dt);U.__reactInternalSnapshotBeforeUpdate=H}break;case 3:var q=n.stateNode.containerInfo;q.nodeType===1?q.textContent="":q.nodeType===9&&q.documentElement&&q.removeChild(q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ce){at(n,n.return,ce)}if(t=n.sibling,t!==null){t.return=n.return,he=t;break}he=n.return}return me=E0,E0=!1,me}function rl(t,n,l){var a=n.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var h=a=a.next;do{if((h.tag&t)===t){var g=h.destroy;h.destroy=void 0,g!==void 0&&Na(n,l,g)}h=h.next}while(h!==a)}}function ko(t,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var l=n=n.next;do{if((l.tag&t)===t){var a=l.create;l.destroy=a()}l=l.next}while(l!==n)}}function Ia(t){var n=t.ref;if(n!==null){var l=t.stateNode;switch(t.tag){case 5:t=l;break;default:t=l}typeof n=="function"?n(t):n.current=t}}function j0(t){var n=t.alternate;n!==null&&(t.alternate=null,j0(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&(delete n[Nn],delete n[qi],delete n[qs],delete n[Jf],delete n[e4])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function L0(t){return t.tag===5||t.tag===3||t.tag===4}function N0(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||L0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Pa(t,n,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,n?l.nodeType===8?l.parentNode.insertBefore(t,n):l.insertBefore(t,n):(l.nodeType===8?(n=l.parentNode,n.insertBefore(t,l)):(n=l,n.appendChild(t)),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=Xl));else if(a!==4&&(t=t.child,t!==null))for(Pa(t,n,l),t=t.sibling;t!==null;)Pa(t,n,l),t=t.sibling}function Ma(t,n,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,n?l.insertBefore(t,n):l.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(Ma(t,n,l),t=t.sibling;t!==null;)Ma(t,n,l),t=t.sibling}var St=null,wn=!1;function ur(t,n,l){for(l=l.child;l!==null;)I0(t,n,l),l=l.sibling}function I0(t,n,l){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(zl,l)}catch{}switch(l.tag){case 5:Pt||di(l,n);case 6:var a=St,h=wn;St=null,ur(t,n,l),St=a,wn=h,St!==null&&(wn?(t=St,l=l.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)):St.removeChild(l.stateNode));break;case 18:St!==null&&(wn?(t=St,l=l.stateNode,t.nodeType===8?Ws(t.parentNode,l):t.nodeType===1&&Ws(t,l),Di(t)):Ws(St,l.stateNode));break;case 4:a=St,h=wn,St=l.stateNode.containerInfo,wn=!0,ur(t,n,l),St=a,wn=h;break;case 0:case 11:case 14:case 15:if(!Pt&&(a=l.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){h=a=a.next;do{var g=h,w=g.destroy;g=g.tag,w!==void 0&&((g&2)!==0||(g&4)!==0)&&Na(l,n,w),h=h.next}while(h!==a)}ur(t,n,l);break;case 1:if(!Pt&&(di(l,n),a=l.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=l.memoizedProps,a.state=l.memoizedState,a.componentWillUnmount()}catch(M){at(l,n,M)}ur(t,n,l);break;case 21:ur(t,n,l);break;case 22:l.mode&1?(Pt=(a=Pt)||l.memoizedState!==null,ur(t,n,l),Pt=a):ur(t,n,l);break;default:ur(t,n,l)}}function P0(t){var n=t.updateQueue;if(n!==null){t.updateQueue=null;var l=t.stateNode;l===null&&(l=t.stateNode=new g4),n.forEach(function(a){var h=E4.bind(null,t,a);l.has(a)||(l.add(a),a.then(h,h))})}}function kn(t,n){var l=n.deletions;if(l!==null)for(var a=0;a<l.length;a++){var h=l[a];try{var g=t,w=n,M=w;e:for(;M!==null;){switch(M.tag){case 5:St=M.stateNode,wn=!1;break e;case 3:St=M.stateNode.containerInfo,wn=!0;break e;case 4:St=M.stateNode.containerInfo,wn=!0;break e}M=M.return}if(St===null)throw Error(i(160));I0(g,w,h),St=null,wn=!1;var F=h.alternate;F!==null&&(F.return=null),h.return=null}catch(G){at(h,n,G)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)M0(n,t),n=n.sibling}function M0(t,n){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(kn(n,t),Mn(t),a&4){try{rl(3,t,t.return),ko(3,t)}catch(ye){at(t,t.return,ye)}try{rl(5,t,t.return)}catch(ye){at(t,t.return,ye)}}break;case 1:kn(n,t),Mn(t),a&512&&l!==null&&di(l,l.return);break;case 5:if(kn(n,t),Mn(t),a&512&&l!==null&&di(l,l.return),t.flags&32){var h=t.stateNode;try{Re(h,"")}catch(ye){at(t,t.return,ye)}}if(a&4&&(h=t.stateNode,h!=null)){var g=t.memoizedProps,w=l!==null?l.memoizedProps:g,M=t.type,F=t.updateQueue;if(t.updateQueue=null,F!==null)try{M==="input"&&g.type==="radio"&&g.name!=null&&jt(h,g),Ot(M,w);var G=Ot(M,g);for(w=0;w<F.length;w+=2){var oe=F[w],se=F[w+1];oe==="style"?Te(h,se):oe==="dangerouslySetInnerHTML"?je(h,se):oe==="children"?Re(h,se):b(h,oe,se,G)}switch(M){case"input":Ft(h,g);break;case"textarea":st(h,g);break;case"select":var le=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!g.multiple;var pe=g.value;pe!=null?Q(h,!!g.multiple,pe,!1):le!==!!g.multiple&&(g.defaultValue!=null?Q(h,!!g.multiple,g.defaultValue,!0):Q(h,!!g.multiple,g.multiple?[]:"",!1))}h[qi]=g}catch(ye){at(t,t.return,ye)}}break;case 6:if(kn(n,t),Mn(t),a&4){if(t.stateNode===null)throw Error(i(162));h=t.stateNode,g=t.memoizedProps;try{h.nodeValue=g}catch(ye){at(t,t.return,ye)}}break;case 3:if(kn(n,t),Mn(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Di(n.containerInfo)}catch(ye){at(t,t.return,ye)}break;case 4:kn(n,t),Mn(t);break;case 13:kn(n,t),Mn(t),h=t.child,h.flags&8192&&(g=h.memoizedState!==null,h.stateNode.isHidden=g,!g||h.alternate!==null&&h.alternate.memoizedState!==null||(Da=ct())),a&4&&P0(t);break;case 22:if(oe=l!==null&&l.memoizedState!==null,t.mode&1?(Pt=(G=Pt)||oe,kn(n,t),Pt=G):kn(n,t),Mn(t),a&8192){if(G=t.memoizedState!==null,(t.stateNode.isHidden=G)&&!oe&&(t.mode&1)!==0)for(he=t,oe=t.child;oe!==null;){for(se=he=oe;he!==null;){switch(le=he,pe=le.child,le.tag){case 0:case 11:case 14:case 15:rl(4,le,le.return);break;case 1:di(le,le.return);var me=le.stateNode;if(typeof me.componentWillUnmount=="function"){a=le,l=le.return;try{n=a,me.props=n.memoizedProps,me.state=n.memoizedState,me.componentWillUnmount()}catch(ye){at(a,l,ye)}}break;case 5:di(le,le.return);break;case 22:if(le.memoizedState!==null){D0(se);continue}}pe!==null?(pe.return=le,he=pe):D0(se)}oe=oe.sibling}e:for(oe=null,se=t;;){if(se.tag===5){if(oe===null){oe=se;try{h=se.stateNode,G?(g=h.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(M=se.stateNode,F=se.memoizedProps.style,w=F!=null&&F.hasOwnProperty("display")?F.display:null,M.style.display=de("display",w))}catch(ye){at(t,t.return,ye)}}}else if(se.tag===6){if(oe===null)try{se.stateNode.nodeValue=G?"":se.memoizedProps}catch(ye){at(t,t.return,ye)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===t)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===t)break e;for(;se.sibling===null;){if(se.return===null||se.return===t)break e;oe===se&&(oe=null),se=se.return}oe===se&&(oe=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:kn(n,t),Mn(t),a&4&&P0(t);break;case 21:break;default:kn(n,t),Mn(t)}}function Mn(t){var n=t.flags;if(n&2){try{e:{for(var l=t.return;l!==null;){if(L0(l)){var a=l;break e}l=l.return}throw Error(i(160))}switch(a.tag){case 5:var h=a.stateNode;a.flags&32&&(Re(h,""),a.flags&=-33);var g=N0(t);Ma(t,g,h);break;case 3:case 4:var w=a.stateNode.containerInfo,M=N0(t);Pa(t,M,w);break;default:throw Error(i(161))}}catch(F){at(t,t.return,F)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function y4(t,n,l){he=t,T0(t)}function T0(t,n,l){for(var a=(t.mode&1)!==0;he!==null;){var h=he,g=h.child;if(h.tag===22&&a){var w=h.memoizedState!==null||wo;if(!w){var M=h.alternate,F=M!==null&&M.memoizedState!==null||Pt;M=wo;var G=Pt;if(wo=w,(Pt=F)&&!G)for(he=h;he!==null;)w=he,F=w.child,w.tag===22&&w.memoizedState!==null?R0(h):F!==null?(F.return=w,he=F):R0(h);for(;g!==null;)he=g,T0(g),g=g.sibling;he=h,wo=M,Pt=G}z0(t)}else(h.subtreeFlags&8772)!==0&&g!==null?(g.return=h,he=g):z0(t)}}function z0(t){for(;he!==null;){var n=he;if((n.flags&8772)!==0){var l=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:Pt||ko(5,n);break;case 1:var a=n.stateNode;if(n.flags&4&&!Pt)if(l===null)a.componentDidMount();else{var h=n.elementType===n.type?l.memoizedProps:Cn(n.type,l.memoizedProps);a.componentDidUpdate(h,l.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var g=n.updateQueue;g!==null&&Dc(n,g,a);break;case 3:var w=n.updateQueue;if(w!==null){if(l=null,n.child!==null)switch(n.child.tag){case 5:l=n.child.stateNode;break;case 1:l=n.child.stateNode}Dc(n,w,l)}break;case 5:var M=n.stateNode;if(l===null&&n.flags&4){l=M;var F=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":F.autoFocus&&l.focus();break;case"img":F.src&&(l.src=F.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var G=n.alternate;if(G!==null){var oe=G.memoizedState;if(oe!==null){var se=oe.dehydrated;se!==null&&Di(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Pt||n.flags&512&&Ia(n)}catch(le){at(n,n.return,le)}}if(n===t){he=null;break}if(l=n.sibling,l!==null){l.return=n.return,he=l;break}he=n.return}}function D0(t){for(;he!==null;){var n=he;if(n===t){he=null;break}var l=n.sibling;if(l!==null){l.return=n.return,he=l;break}he=n.return}}function R0(t){for(;he!==null;){var n=he;try{switch(n.tag){case 0:case 11:case 15:var l=n.return;try{ko(4,n)}catch(F){at(n,l,F)}break;case 1:var a=n.stateNode;if(typeof a.componentDidMount=="function"){var h=n.return;try{a.componentDidMount()}catch(F){at(n,h,F)}}var g=n.return;try{Ia(n)}catch(F){at(n,g,F)}break;case 5:var w=n.return;try{Ia(n)}catch(F){at(n,w,F)}}}catch(F){at(n,n.return,F)}if(n===t){he=null;break}var M=n.sibling;if(M!==null){M.return=n.return,he=M;break}he=n.return}}var v4=Math.ceil,_o=$.ReactCurrentDispatcher,Ta=$.ReactCurrentOwner,cn=$.ReactCurrentBatchConfig,Be=0,kt=null,pt=null,bt=0,tn=0,fi=ir(0),xt=0,il=null,Tr=0,So=0,za=0,ll=null,Zt=null,Da=0,pi=1/0,qn=null,bo=!1,Ra=null,cr=null,Eo=!1,dr=null,jo=0,ol=0,Aa=null,Lo=-1,No=0;function Bt(){return(Be&6)!==0?ct():Lo!==-1?Lo:Lo=ct()}function fr(t){return(t.mode&1)===0?1:(Be&2)!==0&&bt!==0?bt&-bt:n4.transition!==null?(No===0&&(No=Nu()),No):(t=qe,t!==0||(t=window.event,t=t===void 0?16:Fu(t.type)),t)}function _n(t,n,l,a){if(50<ol)throw ol=0,Aa=null,Error(i(185));Ii(t,l,a),((Be&2)===0||t!==kt)&&(t===kt&&((Be&2)===0&&(So|=l),xt===4&&pr(t,bt)),Qt(t,a),l===1&&Be===0&&(n.mode&1)===0&&(pi=ct()+500,no&&or()))}function Qt(t,n){var l=t.callbackNode;tf(t,n);var a=Al(t,t===kt?bt:0);if(a===0)l!==null&&Eu(l),t.callbackNode=null,t.callbackPriority=0;else if(n=a&-a,t.callbackPriority!==n){if(l!=null&&Eu(l),n===1)t.tag===0?t4(F0.bind(null,t)):_c(F0.bind(null,t)),Yf(function(){(Be&6)===0&&or()}),l=null;else{switch(Iu(a)){case 1:l=gs;break;case 4:l=ju;break;case 16:l=Tl;break;case 536870912:l=Lu;break;default:l=Tl}l=q0(l,A0.bind(null,t))}t.callbackPriority=n,t.callbackNode=l}}function A0(t,n){if(Lo=-1,No=0,(Be&6)!==0)throw Error(i(327));var l=t.callbackNode;if(hi()&&t.callbackNode!==l)return null;var a=Al(t,t===kt?bt:0);if(a===0)return null;if((a&30)!==0||(a&t.expiredLanes)!==0||n)n=Io(t,a);else{n=a;var h=Be;Be|=2;var g=$0();(kt!==t||bt!==n)&&(qn=null,pi=ct()+500,Dr(t,n));do try{k4();break}catch(M){O0(t,M)}while(!0);ta(),_o.current=g,Be=h,pt!==null?n=0:(kt=null,bt=0,n=xt)}if(n!==0){if(n===2&&(h=xs(t),h!==0&&(a=h,n=Fa(t,h))),n===1)throw l=il,Dr(t,0),pr(t,a),Qt(t,ct()),l;if(n===6)pr(t,a);else{if(h=t.current.alternate,(a&30)===0&&!C4(h)&&(n=Io(t,a),n===2&&(g=xs(t),g!==0&&(a=g,n=Fa(t,g))),n===1))throw l=il,Dr(t,0),pr(t,a),Qt(t,ct()),l;switch(t.finishedWork=h,t.finishedLanes=a,n){case 0:case 1:throw Error(i(345));case 2:Rr(t,Zt,qn);break;case 3:if(pr(t,a),(a&130023424)===a&&(n=Da+500-ct(),10<n)){if(Al(t,0)!==0)break;if(h=t.suspendedLanes,(h&a)!==a){Bt(),t.pingedLanes|=t.suspendedLanes&h;break}t.timeoutHandle=Us(Rr.bind(null,t,Zt,qn),n);break}Rr(t,Zt,qn);break;case 4:if(pr(t,a),(a&4194240)===a)break;for(n=t.eventTimes,h=-1;0<a;){var w=31-xn(a);g=1<<w,w=n[w],w>h&&(h=w),a&=~g}if(a=h,a=ct()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*v4(a/1960))-a,10<a){t.timeoutHandle=Us(Rr.bind(null,t,Zt,qn),a);break}Rr(t,Zt,qn);break;case 5:Rr(t,Zt,qn);break;default:throw Error(i(329))}}}return Qt(t,ct()),t.callbackNode===l?A0.bind(null,t):null}function Fa(t,n){var l=ll;return t.current.memoizedState.isDehydrated&&(Dr(t,n).flags|=256),t=Io(t,n),t!==2&&(n=Zt,Zt=l,n!==null&&Oa(n)),t}function Oa(t){Zt===null?Zt=t:Zt.push.apply(Zt,t)}function C4(t){for(var n=t;;){if(n.flags&16384){var l=n.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var a=0;a<l.length;a++){var h=l[a],g=h.getSnapshot;h=h.value;try{if(!yn(g(),h))return!1}catch{return!1}}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function pr(t,n){for(n&=~za,n&=~So,t.suspendedLanes|=n,t.pingedLanes&=~n,t=t.expirationTimes;0<n;){var l=31-xn(n),a=1<<l;t[l]=-1,n&=~a}}function F0(t){if((Be&6)!==0)throw Error(i(327));hi();var n=Al(t,0);if((n&1)===0)return Qt(t,ct()),null;var l=Io(t,n);if(t.tag!==0&&l===2){var a=xs(t);a!==0&&(n=a,l=Fa(t,a))}if(l===1)throw l=il,Dr(t,0),pr(t,n),Qt(t,ct()),l;if(l===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=n,Rr(t,Zt,qn),Qt(t,ct()),null}function $a(t,n){var l=Be;Be|=1;try{return t(n)}finally{Be=l,Be===0&&(pi=ct()+500,no&&or())}}function zr(t){dr!==null&&dr.tag===0&&(Be&6)===0&&hi();var n=Be;Be|=1;var l=cn.transition,a=qe;try{if(cn.transition=null,qe=1,t)return t()}finally{qe=a,cn.transition=l,Be=n,(Be&6)===0&&or()}}function Ba(){tn=fi.current,tt(fi)}function Dr(t,n){t.finishedWork=null,t.finishedLanes=0;var l=t.timeoutHandle;if(l!==-1&&(t.timeoutHandle=-1,Kf(l)),pt!==null)for(l=pt.return;l!==null;){var a=l;switch(Ks(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&eo();break;case 3:ui(),tt(Ut),tt(Lt),ua();break;case 5:sa(a);break;case 4:ui();break;case 13:tt(it);break;case 19:tt(it);break;case 10:na(a.type._context);break;case 22:case 23:Ba()}l=l.return}if(kt=t,pt=t=hr(t.current,null),bt=tn=n,xt=0,il=null,za=So=Tr=0,Zt=ll=null,Ir!==null){for(n=0;n<Ir.length;n++)if(l=Ir[n],a=l.interleaved,a!==null){l.interleaved=null;var h=a.next,g=l.pending;if(g!==null){var w=g.next;g.next=h,a.next=w}l.pending=a}Ir=null}return t}function O0(t,n){do{var l=pt;try{if(ta(),po.current=xo,ho){for(var a=lt.memoizedState;a!==null;){var h=a.queue;h!==null&&(h.pending=null),a=a.next}ho=!1}if(Mr=0,wt=gt=lt=null,Xi=!1,Ji=0,Ta.current=null,l===null||l.return===null){xt=1,il=n,pt=null;break}e:{var g=t,w=l.return,M=l,F=n;if(n=bt,M.flags|=32768,F!==null&&typeof F=="object"&&typeof F.then=="function"){var G=F,oe=M,se=oe.tag;if((oe.mode&1)===0&&(se===0||se===11||se===15)){var le=oe.alternate;le?(oe.updateQueue=le.updateQueue,oe.memoizedState=le.memoizedState,oe.lanes=le.lanes):(oe.updateQueue=null,oe.memoizedState=null)}var pe=c0(w);if(pe!==null){pe.flags&=-257,d0(pe,w,M,g,n),pe.mode&1&&u0(g,G,n),n=pe,F=G;var me=n.updateQueue;if(me===null){var ye=new Set;ye.add(F),n.updateQueue=ye}else me.add(F);break e}else{if((n&1)===0){u0(g,G,n),Ha();break e}F=Error(i(426))}}else if(nt&&M.mode&1){var dt=c0(w);if(dt!==null){(dt.flags&65536)===0&&(dt.flags|=256),d0(dt,w,M,g,n),Js(ci(F,M));break e}}g=F=ci(F,M),xt!==4&&(xt=2),ll===null?ll=[g]:ll.push(g),g=w;do{switch(g.tag){case 3:g.flags|=65536,n&=-n,g.lanes|=n;var U=s0(g,F,n);zc(g,U);break e;case 1:M=F;var H=g.type,q=g.stateNode;if((g.flags&128)===0&&(typeof H.getDerivedStateFromError=="function"||q!==null&&typeof q.componentDidCatch=="function"&&(cr===null||!cr.has(q)))){g.flags|=65536,n&=-n,g.lanes|=n;var ce=a0(g,M,n);zc(g,ce);break e}}g=g.return}while(g!==null)}H0(l)}catch(Ce){n=Ce,pt===l&&l!==null&&(pt=l=l.return);continue}break}while(!0)}function $0(){var t=_o.current;return _o.current=xo,t===null?xo:t}function Ha(){(xt===0||xt===3||xt===2)&&(xt=4),kt===null||(Tr&268435455)===0&&(So&268435455)===0||pr(kt,bt)}function Io(t,n){var l=Be;Be|=2;var a=$0();(kt!==t||bt!==n)&&(qn=null,Dr(t,n));do try{w4();break}catch(h){O0(t,h)}while(!0);if(ta(),Be=l,_o.current=a,pt!==null)throw Error(i(261));return kt=null,bt=0,xt}function w4(){for(;pt!==null;)B0(pt)}function k4(){for(;pt!==null&&!q3();)B0(pt)}function B0(t){var n=W0(t.alternate,t,tn);t.memoizedProps=t.pendingProps,n===null?H0(t):pt=n,Ta.current=null}function H0(t){var n=t;do{var l=n.alternate;if(t=n.return,(n.flags&32768)===0){if(l=h4(l,n,tn),l!==null){pt=l;return}}else{if(l=m4(l,n),l!==null){l.flags&=32767,pt=l;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{xt=6,pt=null;return}}if(n=n.sibling,n!==null){pt=n;return}pt=n=t}while(n!==null);xt===0&&(xt=5)}function Rr(t,n,l){var a=qe,h=cn.transition;try{cn.transition=null,qe=1,_4(t,n,l,a)}finally{cn.transition=h,qe=a}return null}function _4(t,n,l,a){do hi();while(dr!==null);if((Be&6)!==0)throw Error(i(327));l=t.finishedWork;var h=t.finishedLanes;if(l===null)return null;if(t.finishedWork=null,t.finishedLanes=0,l===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var g=l.lanes|l.childLanes;if(nf(t,g),t===kt&&(pt=kt=null,bt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Eo||(Eo=!0,q0(Tl,function(){return hi(),null})),g=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||g){g=cn.transition,cn.transition=null;var w=qe;qe=1;var M=Be;Be|=4,Ta.current=null,x4(t,l),M0(l,t),Vf(Hs),$l=!!Bs,Hs=Bs=null,t.current=l,y4(l),Z3(),Be=M,qe=w,cn.transition=g}else t.current=l;if(Eo&&(Eo=!1,dr=t,jo=h),g=t.pendingLanes,g===0&&(cr=null),K3(l.stateNode),Qt(t,ct()),n!==null)for(a=t.onRecoverableError,l=0;l<n.length;l++)h=n[l],a(h.value,{componentStack:h.stack,digest:h.digest});if(bo)throw bo=!1,t=Ra,Ra=null,t;return(jo&1)!==0&&t.tag!==0&&hi(),g=t.pendingLanes,(g&1)!==0?t===Aa?ol++:(ol=0,Aa=t):ol=0,or(),null}function hi(){if(dr!==null){var t=Iu(jo),n=cn.transition,l=qe;try{if(cn.transition=null,qe=16>t?16:t,dr===null)var a=!1;else{if(t=dr,dr=null,jo=0,(Be&6)!==0)throw Error(i(331));var h=Be;for(Be|=4,he=t.current;he!==null;){var g=he,w=g.child;if((he.flags&16)!==0){var M=g.deletions;if(M!==null){for(var F=0;F<M.length;F++){var G=M[F];for(he=G;he!==null;){var oe=he;switch(oe.tag){case 0:case 11:case 15:rl(8,oe,g)}var se=oe.child;if(se!==null)se.return=oe,he=se;else for(;he!==null;){oe=he;var le=oe.sibling,pe=oe.return;if(j0(oe),oe===G){he=null;break}if(le!==null){le.return=pe,he=le;break}he=pe}}}var me=g.alternate;if(me!==null){var ye=me.child;if(ye!==null){me.child=null;do{var dt=ye.sibling;ye.sibling=null,ye=dt}while(ye!==null)}}he=g}}if((g.subtreeFlags&2064)!==0&&w!==null)w.return=g,he=w;else e:for(;he!==null;){if(g=he,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:rl(9,g,g.return)}var U=g.sibling;if(U!==null){U.return=g.return,he=U;break e}he=g.return}}var H=t.current;for(he=H;he!==null;){w=he;var q=w.child;if((w.subtreeFlags&2064)!==0&&q!==null)q.return=w,he=q;else e:for(w=H;he!==null;){if(M=he,(M.flags&2048)!==0)try{switch(M.tag){case 0:case 11:case 15:ko(9,M)}}catch(Ce){at(M,M.return,Ce)}if(M===w){he=null;break e}var ce=M.sibling;if(ce!==null){ce.return=M.return,he=ce;break e}he=M.return}}if(Be=h,or(),Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot(zl,t)}catch{}a=!0}return a}finally{qe=l,cn.transition=n}}return!1}function V0(t,n,l){n=ci(l,n),n=s0(t,n,1),t=ar(t,n,1),n=Bt(),t!==null&&(Ii(t,1,n),Qt(t,n))}function at(t,n,l){if(t.tag===3)V0(t,t,l);else for(;n!==null;){if(n.tag===3){V0(n,t,l);break}else if(n.tag===1){var a=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(cr===null||!cr.has(a))){t=ci(l,t),t=a0(n,t,1),n=ar(n,t,1),t=Bt(),n!==null&&(Ii(n,1,t),Qt(n,t));break}}n=n.return}}function S4(t,n,l){var a=t.pingCache;a!==null&&a.delete(n),n=Bt(),t.pingedLanes|=t.suspendedLanes&l,kt===t&&(bt&l)===l&&(xt===4||xt===3&&(bt&130023424)===bt&&500>ct()-Da?Dr(t,0):za|=l),Qt(t,n)}function U0(t,n){n===0&&((t.mode&1)===0?n=1:(n=Rl,Rl<<=1,(Rl&130023424)===0&&(Rl=4194304)));var l=Bt();t=Vn(t,n),t!==null&&(Ii(t,n,l),Qt(t,l))}function b4(t){var n=t.memoizedState,l=0;n!==null&&(l=n.retryLane),U0(t,l)}function E4(t,n){var l=0;switch(t.tag){case 13:var a=t.stateNode,h=t.memoizedState;h!==null&&(l=h.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(n),U0(t,l)}var W0;W0=function(t,n,l){if(t!==null)if(t.memoizedProps!==n.pendingProps||Ut.current)qt=!0;else{if((t.lanes&l)===0&&(n.flags&128)===0)return qt=!1,p4(t,n,l);qt=(t.flags&131072)!==0}else qt=!1,nt&&(n.flags&1048576)!==0&&Sc(n,io,n.index);switch(n.lanes=0,n.tag){case 2:var a=n.type;Co(t,n),t=n.pendingProps;var h=ni(n,Lt.current);ai(n,l),h=fa(null,n,a,t,h,l);var g=pa();return n.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Wt(a)?(g=!0,to(n)):g=!1,n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,la(n),h.updater=yo,n.stateNode=h,h._reactInternals=n,va(n,a,t,l),n=_a(null,n,a,!0,g,l)):(n.tag=0,nt&&g&&Gs(n),$t(null,n,h,l),n=n.child),n;case 16:a=n.elementType;e:{switch(Co(t,n),t=n.pendingProps,h=a._init,a=h(a._payload),n.type=a,h=n.tag=L4(a),t=Cn(a,t),h){case 0:n=ka(null,n,a,t,l);break e;case 1:n=x0(null,n,a,t,l);break e;case 11:n=f0(null,n,a,t,l);break e;case 14:n=p0(null,n,a,Cn(a.type,t),l);break e}throw Error(i(306,a,""))}return n;case 0:return a=n.type,h=n.pendingProps,h=n.elementType===a?h:Cn(a,h),ka(t,n,a,h,l);case 1:return a=n.type,h=n.pendingProps,h=n.elementType===a?h:Cn(a,h),x0(t,n,a,h,l);case 3:e:{if(y0(n),t===null)throw Error(i(387));a=n.pendingProps,g=n.memoizedState,h=g.element,Tc(t,n),co(n,a,null,l);var w=n.memoizedState;if(a=w.element,g.isDehydrated)if(g={element:a,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},n.updateQueue.baseState=g,n.memoizedState=g,n.flags&256){h=ci(Error(i(423)),n),n=v0(t,n,a,l,h);break e}else if(a!==h){h=ci(Error(i(424)),n),n=v0(t,n,a,l,h);break e}else for(en=rr(n.stateNode.containerInfo.firstChild),Jt=n,nt=!0,vn=null,l=Pc(n,null,a,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(li(),a===h){n=Wn(t,n,l);break e}$t(t,n,a,l)}n=n.child}return n;case 5:return Rc(n),t===null&&Xs(n),a=n.type,h=n.pendingProps,g=t!==null?t.memoizedProps:null,w=h.children,Vs(a,h)?w=null:g!==null&&Vs(a,g)&&(n.flags|=32),g0(t,n),$t(t,n,w,l),n.child;case 6:return t===null&&Xs(n),null;case 13:return C0(t,n,l);case 4:return oa(n,n.stateNode.containerInfo),a=n.pendingProps,t===null?n.child=oi(n,null,a,l):$t(t,n,a,l),n.child;case 11:return a=n.type,h=n.pendingProps,h=n.elementType===a?h:Cn(a,h),f0(t,n,a,h,l);case 7:return $t(t,n,n.pendingProps,l),n.child;case 8:return $t(t,n,n.pendingProps.children,l),n.child;case 12:return $t(t,n,n.pendingProps.children,l),n.child;case 10:e:{if(a=n.type._context,h=n.pendingProps,g=n.memoizedProps,w=h.value,Je(so,a._currentValue),a._currentValue=w,g!==null)if(yn(g.value,w)){if(g.children===h.children&&!Ut.current){n=Wn(t,n,l);break e}}else for(g=n.child,g!==null&&(g.return=n);g!==null;){var M=g.dependencies;if(M!==null){w=g.child;for(var F=M.firstContext;F!==null;){if(F.context===a){if(g.tag===1){F=Un(-1,l&-l),F.tag=2;var G=g.updateQueue;if(G!==null){G=G.shared;var oe=G.pending;oe===null?F.next=F:(F.next=oe.next,oe.next=F),G.pending=F}}g.lanes|=l,F=g.alternate,F!==null&&(F.lanes|=l),ra(g.return,l,n),M.lanes|=l;break}F=F.next}}else if(g.tag===10)w=g.type===n.type?null:g.child;else if(g.tag===18){if(w=g.return,w===null)throw Error(i(341));w.lanes|=l,M=w.alternate,M!==null&&(M.lanes|=l),ra(w,l,n),w=g.sibling}else w=g.child;if(w!==null)w.return=g;else for(w=g;w!==null;){if(w===n){w=null;break}if(g=w.sibling,g!==null){g.return=w.return,w=g;break}w=w.return}g=w}$t(t,n,h.children,l),n=n.child}return n;case 9:return h=n.type,a=n.pendingProps.children,ai(n,l),h=an(h),a=a(h),n.flags|=1,$t(t,n,a,l),n.child;case 14:return a=n.type,h=Cn(a,n.pendingProps),h=Cn(a.type,h),p0(t,n,a,h,l);case 15:return h0(t,n,n.type,n.pendingProps,l);case 17:return a=n.type,h=n.pendingProps,h=n.elementType===a?h:Cn(a,h),Co(t,n),n.tag=1,Wt(a)?(t=!0,to(n)):t=!1,ai(n,l),l0(n,a,h),va(n,a,h,l),_a(null,n,a,!0,t,l);case 19:return k0(t,n,l);case 22:return m0(t,n,l)}throw Error(i(156,n.tag))};function q0(t,n){return bu(t,n)}function j4(t,n,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,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 dn(t,n,l,a){return new j4(t,n,l,a)}function Va(t){return t=t.prototype,!(!t||!t.isReactComponent)}function L4(t){if(typeof t=="function")return Va(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Z)return 11;if(t===O)return 14}return 2}function hr(t,n){var l=t.alternate;return l===null?(l=dn(t.tag,n,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=n,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&14680064,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,n=t.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l}function Po(t,n,l,a,h,g){var w=2;if(a=t,typeof t=="function")Va(t)&&(w=1);else if(typeof t=="string")w=5;else e:switch(t){case ee:return Ar(l.children,h,g,n);case ie:w=8,h|=8;break;case Y:return t=dn(12,l,n,h|2),t.elementType=Y,t.lanes=g,t;case te:return t=dn(13,l,n,h),t.elementType=te,t.lanes=g,t;case W:return t=dn(19,l,n,h),t.elementType=W,t.lanes=g,t;case J:return Mo(l,h,g,n);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case D:w=10;break e;case L:w=9;break e;case Z:w=11;break e;case O:w=14;break e;case I:w=16,a=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return n=dn(w,l,n,h),n.elementType=t,n.type=a,n.lanes=g,n}function Ar(t,n,l,a){return t=dn(7,t,a,n),t.lanes=l,t}function Mo(t,n,l,a){return t=dn(22,t,a,n),t.elementType=J,t.lanes=l,t.stateNode={isHidden:!1},t}function Ua(t,n,l){return t=dn(6,t,null,n),t.lanes=l,t}function Wa(t,n,l){return n=dn(4,t.children!==null?t.children:[],t.key,n),n.lanes=l,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function N4(t,n,l,a,h){this.tag=n,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ys(0),this.expirationTimes=ys(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ys(0),this.identifierPrefix=a,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function qa(t,n,l,a,h,g,w,M,F){return t=new N4(t,n,l,M,F),n===1?(n=1,g===!0&&(n|=8)):n=0,g=dn(3,null,null,n),t.current=g,g.stateNode=t,g.memoizedState={element:a,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},la(g),t}function I4(t,n,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:a==null?null:""+a,children:t,containerInfo:n,implementation:l}}function Z0(t){if(!t)return lr;t=t._reactInternals;e:{if(br(t)!==t||t.tag!==1)throw Error(i(170));var n=t;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Wt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(t.tag===1){var l=t.type;if(Wt(l))return wc(t,l,n)}return n}function Q0(t,n,l,a,h,g,w,M,F){return t=qa(l,a,!0,t,h,g,w,M,F),t.context=Z0(null),l=t.current,a=Bt(),h=fr(l),g=Un(a,h),g.callback=n??null,ar(l,g,h),t.current.lanes=h,Ii(t,h,a),Qt(t,a),t}function To(t,n,l,a){var h=n.current,g=Bt(),w=fr(h);return l=Z0(l),n.context===null?n.context=l:n.pendingContext=l,n=Un(g,w),n.payload={element:t},a=a===void 0?null:a,a!==null&&(n.callback=a),t=ar(h,n,w),t!==null&&(_n(t,h,w,g),uo(t,h,w)),w}function zo(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function G0(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<n?l:n}}function Za(t,n){G0(t,n),(t=t.alternate)&&G0(t,n)}function P4(){return null}var K0=typeof reportError=="function"?reportError:function(t){console.error(t)};function Qa(t){this._internalRoot=t}Do.prototype.render=Qa.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(i(409));To(t,n,null,null)},Do.prototype.unmount=Qa.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;zr(function(){To(null,t,null,null)}),n[On]=null}};function Do(t){this._internalRoot=t}Do.prototype.unstable_scheduleHydration=function(t){if(t){var n=Tu();t={blockedOn:null,target:t,priority:n};for(var l=0;l<er.length&&n!==0&&n<er[l].priority;l++);er.splice(l,0,t),l===0&&Ru(t)}};function Ga(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ro(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Y0(){}function M4(t,n,l,a,h){if(h){if(typeof a=="function"){var g=a;a=function(){var G=zo(w);g.call(G)}}var w=Q0(n,a,t,0,null,!1,!1,"",Y0);return t._reactRootContainer=w,t[On]=w.current,Ui(t.nodeType===8?t.parentNode:t),zr(),w}for(;h=t.lastChild;)t.removeChild(h);if(typeof a=="function"){var M=a;a=function(){var G=zo(F);M.call(G)}}var F=qa(t,0,!1,null,null,!1,!1,"",Y0);return t._reactRootContainer=F,t[On]=F.current,Ui(t.nodeType===8?t.parentNode:t),zr(function(){To(n,F,l,a)}),F}function Ao(t,n,l,a,h){var g=l._reactRootContainer;if(g){var w=g;if(typeof h=="function"){var M=h;h=function(){var F=zo(w);M.call(F)}}To(n,w,t,h)}else w=M4(l,n,t,h,a);return zo(w)}Pu=function(t){switch(t.tag){case 3:var n=t.stateNode;if(n.current.memoizedState.isDehydrated){var l=Ni(n.pendingLanes);l!==0&&(vs(n,l|1),Qt(n,ct()),(Be&6)===0&&(pi=ct()+500,or()))}break;case 13:zr(function(){var a=Vn(t,1);if(a!==null){var h=Bt();_n(a,t,1,h)}}),Za(t,1)}},Cs=function(t){if(t.tag===13){var n=Vn(t,134217728);if(n!==null){var l=Bt();_n(n,t,134217728,l)}Za(t,134217728)}},Mu=function(t){if(t.tag===13){var n=fr(t),l=Vn(t,n);if(l!==null){var a=Bt();_n(l,t,n,a)}Za(t,n)}},Tu=function(){return qe},zu=function(t,n){var l=qe;try{return qe=t,n()}finally{qe=l}},An=function(t,n,l){switch(n){case"input":if(Ft(t,l),n=l.name,l.type==="radio"&&n!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<l.length;n++){var a=l[n];if(a!==t&&a.form===t.form){var h=Jl(a);if(!h)throw Error(i(90));rt(a),Ft(a,h)}}}break;case"textarea":st(t,l);break;case"select":n=l.value,n!=null&&Q(t,!!l.multiple,n,!1)}},Sr=$a,vu=zr;var T4={usingClientEntryPoint:!1,Events:[Zi,ei,Jl,Si,bi,$a]},sl={findFiberByHostInstance:Er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},z4={bundleType:sl.bundleType,version:sl.version,rendererPackageName:sl.rendererPackageName,rendererConfig:sl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=_u(t),t===null?null:t.stateNode},findFiberByHostInstance:sl.findFiberByHostInstance||P4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fo.isDisabled&&Fo.supportsFiber)try{zl=Fo.inject(z4),Ln=Fo}catch{}}return Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T4,Gt.createPortal=function(t,n){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ga(n))throw Error(i(200));return I4(t,n,null,l)},Gt.createRoot=function(t,n){if(!Ga(t))throw Error(i(299));var l=!1,a="",h=K0;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(h=n.onRecoverableError)),n=qa(t,1,!1,null,null,l,!1,a,h),t[On]=n.current,Ui(t.nodeType===8?t.parentNode:t),new Qa(n)},Gt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=_u(n),t=t===null?null:t.stateNode,t},Gt.flushSync=function(t){return zr(t)},Gt.hydrate=function(t,n,l){if(!Ro(n))throw Error(i(200));return Ao(null,t,n,!0,l)},Gt.hydrateRoot=function(t,n,l){if(!Ga(t))throw Error(i(405));var a=l!=null&&l.hydratedSources||null,h=!1,g="",w=K0;if(l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onRecoverableError!==void 0&&(w=l.onRecoverableError)),n=Q0(n,null,t,1,l??null,h,!1,g,w),t[On]=n.current,Ui(t),a)for(t=0;t<a.length;t++)l=a[t],h=l._getVersion,h=h(l._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[l,h]:n.mutableSourceEagerHydrationData.push(l,h);return new Do(n)},Gt.render=function(t,n,l){if(!Ro(n))throw Error(i(200));return Ao(null,t,n,!1,l)},Gt.unmountComponentAtNode=function(t){if(!Ro(t))throw Error(i(40));return t._reactRootContainer?(zr(function(){Ao(null,null,t,!1,function(){t._reactRootContainer=null,t[On]=null})}),!0):!1},Gt.unstable_batchedUpdates=$a,Gt.unstable_renderSubtreeIntoContainer=function(t,n,l,a){if(!Ro(l))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return Ao(t,n,l,!1,a)},Gt.version="18.3.1-next-f1338f8080-20240426",Gt}var l2;function gd(){if(l2)return Xa.exports;l2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Xa.exports=B4(),Xa.exports}var o2;function H4(){if(o2)return Oo;o2=1;var e=gd();return Oo.createRoot=e.createRoot,Oo.hydrateRoot=e.hydrateRoot,Oo}var V4=H4(),E=Z1();const U4=400,W4=264,q4=420,Z4=280,Q4=56,G4=1024,s2=300,K4=.7,Y4=.45;function a2(e,r,i){return Math.min(i,Math.max(r,Math.round(e)))}function u2(e,r,i){const o=r===0?Q4:a2(r,W4,q4),s=e-o-U4,u=i===0||s<s2?0:Math.min(s,a2(i,s2,e*K4));return{sidebar:o,center:Math.max(0,e-o-u),rightbar:u}}function X4({productTitle:e}){return E.useEffect(()=>(document.title=e,()=>{document.title=e}),[e]),null}const J4="_frame_mhsk6_1",e5="_sidebarCol_mhsk6_24",t5="_centerCol_mhsk6_31",n5="_handle_mhsk6_44",r5="_rightbarCol_mhsk6_83",i5="_overlayLayer_mhsk6_89",Ci={frame:J4,sidebarCol:e5,centerCol:t5,handle:n5,rightbarCol:r5,overlayLayer:i5};function l5(e){return c.jsx("div",{className:Ci.centerCol,children:e.children})}function o5({usePanelInfo:e,renderSlot:r}){const i=e(o=>o.activePanelId);return r("main",{},{entryKey:i??"conversation"})}function s5(e){return c.jsx("div",{className:Ci.rightbarCol,"data-rightbar-col":!0,children:e.children})}function c2(e){const[r,i]=E.useState(!1),o=E.useRef(0),s=E.useRef(0),u=E.useRef(null),d=E.useRef(null),f=E.useRef({onStart:e.onStart,onDrag:e.onDrag,onEnd:e.onEnd});f.current={onStart:e.onStart,onDrag:e.onDrag,onEnd:e.onEnd};const p=E.useCallback(()=>{const C=d.current;C!==null&&(d.current=null,u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),C.element.hasPointerCapture(C.id)&&C.element.releasePointerCapture(C.id),i(!1),f.current.onEnd())},[]);E.useEffect(()=>p,[p]);const m=E.useCallback(C=>{C.button!==0||d.current!==null||(C.preventDefault(),C.currentTarget.setPointerCapture(C.pointerId),d.current={element:C.currentTarget,id:C.pointerId},o.current=C.clientX,s.current=C.clientX,f.current.onStart(),i(!0))},[]),y=E.useCallback(C=>{var k;((k=d.current)==null?void 0:k.id)===C.pointerId&&(s.current=C.clientX,u.current??(u.current=requestAnimationFrame(()=>{u.current=null,f.current.onDrag(s.current-o.current)})))},[]),x=E.useCallback(C=>{var k;((k=d.current)==null?void 0:k.id)===C.pointerId&&(f.current.onDrag(C.clientX-o.current),p())},[p]),v=E.useCallback(C=>{var k;((k=d.current)==null?void 0:k.id)===C.pointerId&&p()},[p]);return c.jsx("div",{className:Ci.handle,style:{left:e.left},"data-side":e.side,"data-dragging":r||void 0,onPointerDown:m,onPointerMove:y,onPointerUp:x,onPointerCancel:v,onLostPointerCapture:v})}function a5({useStore:e,usePanelInfo:r,actions:i,renderSlot:o,t:s}){const u=e(te=>te.layoutInfo),d=E.useRef(null),f=u.viewportWidth;E.useLayoutEffect(()=>{const te=d.current;if(te===null)return;let W=null,O=!1;const I=()=>{const z=te.getBoundingClientRect().width;z>0&&i.setViewportWidth(z)};I();const J=new ResizeObserver(()=>{O||(W??(W=requestAnimationFrame(()=>{W=null,I()})))});return J.observe(te),()=>{O=!0,J.disconnect(),W!==null&&cancelAnimationFrame(W)}},[i]);const p=f<G4,m=p?!u.narrowExpanded:u.sidebar===0,y=m?0:u.sidebar===0?Z4:u.sidebar,x=u.rightbar??f*Y4,v=u2(f,!u.rightbarShown&&p?0:y,x),C=u2(f,y,u.rightbarTrack?x:0),k=E.useRef(C);k.current=C;const P=E.useRef(v.rightbar);P.current=v.rightbar;const R=E.useRef(0),j=E.useRef(0),[V,b]=E.useState(!1),$=E.useCallback(()=>{b(!1)},[]),B=E.useCallback(()=>{R.current=k.current.sidebar,b(!0)},[]),T=E.useCallback(te=>{i.setSidebar(R.current+te)},[i]),ee=E.useCallback(()=>{j.current=P.current,b(!0)},[]),ie=E.useCallback(te=>{i.setRightbar(j.current-te)},[i]),Y=s("brand.localBuild"),D=E.useMemo(()=>o("sidebar",{collapsed:m,width:C.sidebar}),[o,m,C.sidebar]),L=E.useMemo(()=>c.jsx(o5,{usePanelInfo:r,renderSlot:o}),[r,o]),Z=E.useMemo(()=>o("shell.overlay",{}),[o]);return c.jsxs("div",{ref:d,className:Ci.frame,style:{gridTemplateColumns:`${C.sidebar}px minmax(0, 1fr) ${C.rightbar}px`},"data-sidebar-collapsed":m||void 0,"data-rightbar-collapsed":C.rightbar===0||void 0,"data-rightbar-fullscreen":u.rightbarFullscreen||void 0,"data-rightbar-instant":u.rightbarInstant||void 0,"data-dragging":V||void 0,children:[c.jsx(X4,{productTitle:Y}),c.jsx("div",{className:Ci.sidebarCol,children:D}),c.jsxs(c.Fragment,{children:[c.jsx(l5,{children:L}),c.jsx(s5,{children:o("rightbar",{width:v.rightbar,viewportWidth:f,canShow:v.rightbar>0})})]}),c.jsx("div",{className:Ci.overlayLayer,"data-shell-overlay":!0,children:Z}),!m&&c.jsx(c2,{side:"sidebar",left:C.sidebar,onStart:B,onDrag:T,onEnd:$}),u.rightbarShown&&!u.rightbarFullscreen&&v.rightbar>0&&c.jsx(c2,{side:"rightbar",left:f-v.rightbar,onStart:ee,onDrag:ie,onEnd:$})]})}function xd(e){var r,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(i=xd(e[r]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function ot(){for(var e,r,i=0,o="",s=arguments.length;i<s;i++)(e=arguments[i])&&(r=xd(e))&&(o&&(o+=" "),o+=r);return o}const u5=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
41
41
  <title>pi-webapp</title>
42
42
  <path d="M5.2 9.1c0-1.5 1.2-2.7 2.7-2.7h16.2c1.5 0 2.7 1.2 2.7 2.7v1.1H5.2V9.1Z" fill="#172943"/>
43
43
  <path d="M8.7 10.2h3.8v12.6c0 2.5-1.8 4.3-4.3 4.3h-.5V10.2h1Z" fill="#172943"/>
44
44
  <path d="M20.7 10.2h3.8v12.3c0 1 .6 1.6 1.6 1.6h1.2v3h-1.4c-3.3 0-5.2-1.9-5.2-4.6V10.2Z" fill="#172943"/>
45
45
  </svg>
46
- `,X4=`data:image/svg+xml,${encodeURIComponent(K4)}`;function Zo({size:t=24,className:i}){return d.jsx("img",{src:X4,width:t,height:t,className:i,alt:"","aria-hidden":"true"})}const J4="_bubble_1nw3t_1",e5={bubble:J4};function k1({label:t,side:i="right",delayMs:r=0,disabled:o=!1,maxWidth:s,children:u}){const c=M.useRef(null),f=u.ref,h=M.useCallback(W=>{c.current=W,typeof f=="function"?f(W):f!=null&&(f.current=W)},[f]),[m,x]=M.useState(null),[y,v]=M.useState(i),C=M.useRef(null),k=m===null?null:typeof t=="function"?t():t,N=m===null?0:y==="right"?m.top+(m.bottom-m.top)/2:y==="top"?m.top-8:m.bottom+8,b=12;M.useLayoutEffect(()=>{if(m===null)return;const W=()=>{const Y=C.current;if(Y===null)return;Y.style.left=`${m.x}px`;const ee=Y.getBoundingClientRect();let S=0;if(ee.right>window.innerWidth-b&&(S=window.innerWidth-b-ee.right),ee.left+S<b&&(S=b-ee.left),Y.style.left=`${m.x+S}px`,i==="right")return;const $=m.bottom+8+ee.height<=window.innerHeight-b,K=m.top-8-ee.height>=b;y==="bottom"&&!$&&K&&v("top"),y==="top"&&!K&&$&&v("bottom")};return W(),window.addEventListener("resize",W),()=>{window.removeEventListener("resize",W)}},[y,m,k,i]);const _=M.useRef(null),T=M.useRef({hover:!1,focus:!1}),I=M.useCallback(()=>{_.current!==null&&(clearTimeout(_.current),_.current=null)},[]);M.useEffect(()=>(o&&(I(),T.current={hover:!1,focus:!1},x(null)),I),[I,o]);const U=()=>{if(o)return;const W=c.current;if(W===null)return;const Y=W.getBoundingClientRect();v(i),x({x:i==="right"?Y.right+10:Y.left+Y.width/2,top:Y.top,bottom:Y.bottom})},Z=()=>{if(I(),r<=0){U();return}_.current=setTimeout(()=>{_.current=null,U()},r)},F=()=>{I(),!T.current.hover&&!T.current.focus&&x(null)};return d.jsxs(d.Fragment,{children:[M.cloneElement(u,{ref:h,onMouseEnter:W=>{var Y,ee;(ee=(Y=u.props).onMouseEnter)==null||ee.call(Y,W),T.current.hover=!0,Z()},onMouseLeave:W=>{var Y,ee;(ee=(Y=u.props).onMouseLeave)==null||ee.call(Y,W),T.current.hover=!1,I(),x(null)},onFocus:W=>{var Y,ee;(ee=(Y=u.props).onFocus)==null||ee.call(Y,W),T.current.focus=!0,I(),U()},onBlur:W=>{var Y,ee;(ee=(Y=u.props).onBlur)==null||ee.call(Y,W),T.current.focus=!1,F()}}),m!==null&&d.jsx("span",{ref:C,className:e5.bubble,"data-side":y,style:{left:m.x,top:N,...s===void 0?{}:{maxWidth:s}},role:"tooltip",children:k})]})}const t5="_dot_1cjbl_3",n5="_matrix_1cjbl_4",r5="_cell_1cjbl_62",Ga={dot:t5,matrix:n5,cell:r5},r2=[[0,0],[4,0],[8,0],[8,4],[8,8],[4,8],[0,8],[0,4]];function $1({state:t,size:i=10,className:r}){return t==="ongoing"?d.jsx("svg",{className:rt(Ga.matrix,r),"data-state":"ongoing",width:i,height:i,viewBox:"0 0 10 10",shapeRendering:"crispEdges","aria-hidden":"true",children:r2.map(([o,s],u)=>d.jsx("rect",{className:Ga.cell,x:o,y:s,width:"2",height:"2",style:{animationDelay:`${(u-r2.length)*125}ms`}},`${o}-${s}`))}):d.jsx("span",{className:rt(Ga.dot,r),"data-state":t,style:{width:i,height:i},"aria-hidden":"true"})}const i5=({size:t=16,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M8.00003 0.3237C3.76075 0.3237 0.32373 3.76072 0.32373 8C0.32373 9.17603 0.589121 10.2922 1.0632 11.2901L1.35291 11.8989L2.5705 11.3205L2.28079 10.7117C1.89079 9.89074 1.67301 8.97167 1.67301 8C1.67301 4.50546 4.50549 1.67298 8.00003 1.67298C11.4946 1.67298 14.3271 4.50546 14.3271 8C14.3271 11.4945 11.4946 14.327 8.00003 14.327C7.28473 14.327 6.76077 14.277 6.29621 14.1487C5.83857 14.0224 5.40441 13.8109 4.88514 13.4488C4.12569 12.919 3.03778 12.7316 2.141 13.2978L2.12682 13.307L2.11264 13.3171L1.34886 13.854L1.79659 15.188L2.86122 14.4384C3.19068 14.2305 3.68325 14.2542 4.11326 14.5539C4.72789 14.9826 5.30042 15.2724 5.93762 15.4484C6.56803 15.6224 7.22776 15.6763 8.00003 15.6763C12.2393 15.6763 15.6763 12.2393 15.6763 8C15.6763 3.76072 12.2393 0.3237 8.00003 0.3237ZM7.32033 4.82535V7.32536H4.82538V8.67464H7.32033V11.1747H8.6696V8.67464H11.1747V7.32536H8.6696V4.82535H7.32033Z",fill:"currentColor"})}),a3=({size:t=16,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M11.894845 6.647401C11.894845 3.725463 9.534486 1.356779 6.623219 1.35657C3.711786 1.35657 1.351635 3.725338 1.351635 6.647401C1.351843 9.569296 3.711911 11.938273 6.623219 11.938273C9.534361 11.938064 11.894637 9.569171 11.894845 6.647401ZM13.245462 6.647401C13.245254 10.317935 10.280401 13.293613 6.623219 13.293821C2.965871 13.293821 0.000204 10.31806 0 6.647401C0 2.976574 2.965746 0 6.623219 0C10.280526 0.000205 13.245462 2.9767 13.245462 6.647401Z",fill:"currentColor"}),d.jsx("path",{d:"M16.000417 15.041079L15.044449 16.000433L11.530434 12.473588L12.486298 11.514234L16.000417 15.041079Z",fill:"currentColor"})]}),l5=({size:t=14,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsxs("g",{clipPath:"url(#clip0_2580_121189)",children:[d.jsx("path",{d:"M12.1192 4.91016C11.9392 4.52714 11.7007 4.1292 11.4483 3.78809C11.385 3.70258 11.3517 3.68409 11.2462 3.67383C10.7419 3.6248 10.2318 3.69454 9.72662 3.64551C9.29108 3.60318 8.93739 3.40341 8.67682 3.05176C8.38762 2.66127 8.19217 2.20926 7.90338 1.81934C7.83985 1.73359 7.80848 1.71542 7.70221 1.70508C7.24758 1.6609 6.7511 1.66104 6.29791 1.70508C6.19164 1.71542 6.16027 1.73359 6.09674 1.81934C5.80775 2.20954 5.61248 2.66131 5.3233 3.05176C5.06273 3.40341 4.70904 3.60318 4.2735 3.64551C3.76831 3.69454 3.25825 3.6248 2.75397 3.67383C2.6484 3.68409 2.61509 3.70258 2.55182 3.78809C2.30019 4.12814 2.06125 4.52646 1.88092 4.91016C1.83256 5.01309 1.83242 5.04912 1.88092 5.15235C2.07954 5.57482 2.37449 5.94529 2.5733 6.36817C2.76971 6.78606 2.76964 7.21293 2.5733 7.63086C2.37462 8.05374 2.07947 8.42453 1.88092 8.84668C1.83235 8.95004 1.83257 8.98695 1.88092 9.08985C2.06098 9.47285 2.2994 9.87079 2.55182 10.2119C2.61509 10.2974 2.6484 10.3159 2.75397 10.3262C3.25879 10.3753 3.76834 10.3055 4.2735 10.3545C4.70904 10.3968 5.06273 10.5966 5.3233 10.9482C5.6125 11.3387 5.80795 11.7907 6.09674 12.1807C6.16027 12.2664 6.19164 12.2846 6.29791 12.2949C6.7511 12.339 7.24758 12.3391 7.70221 12.2949C7.80848 12.2846 7.83985 12.2664 7.90338 12.1807C8.19237 11.7905 8.38764 11.3387 8.67682 10.9482C8.93739 10.5966 9.29108 10.3968 9.72662 10.3545C10.2318 10.3055 10.7419 10.3752 11.2462 10.3262C11.3517 10.3159 11.385 10.2974 11.4483 10.2119C11.7007 9.87079 11.9391 9.47285 12.1192 9.08985C12.1675 8.98695 12.1678 8.95004 12.1192 8.84668C11.9205 8.42428 11.6255 8.05377 11.4268 7.63086C11.2305 7.21293 11.2304 6.78606 11.4268 6.36817C11.6256 5.94531 11.9207 5.5746 12.1192 5.15235C12.1677 5.04912 12.1676 5.01309 12.1192 4.91016ZM13.2051 5.66309C13.0064 6.08573 12.7114 6.45579 12.5128 6.87793C12.4642 6.98123 12.4645 7.01829 12.5128 7.1211C12.7112 7.54328 13.0064 7.91405 13.2051 8.33692C13.4015 8.75487 13.4015 9.18169 13.2051 9.59961C12.9911 10.0551 12.7109 10.5221 12.4122 10.9258C12.1522 11.277 11.7974 11.4782 11.3624 11.5205C10.8573 11.5696 10.3477 11.4999 9.84283 11.5488C9.73621 11.5592 9.70429 11.5772 9.64069 11.6631C9.35229 12.0526 9.15705 12.5044 8.86823 12.8945C8.60854 13.2452 8.25275 13.447 7.81842 13.4893C7.28749 13.5409 6.71096 13.5407 6.1817 13.4893C5.74737 13.447 5.39158 13.2452 5.1319 12.8945C4.84312 12.5045 4.64808 12.0529 4.35944 11.6631C4.29583 11.5772 4.26392 11.5592 4.15729 11.5488C3.65283 11.5 3.14295 11.5696 2.63776 11.5205C2.20274 11.4782 1.84796 11.277 1.58795 10.9258C1.28834 10.5209 1.00864 10.0543 0.794982 9.59961C0.598644 9.18169 0.598598 8.75487 0.794982 8.33692C0.993688 7.91405 1.28889 7.54328 1.48737 7.1211C1.53567 7.01829 1.53593 6.98123 1.48737 6.87793C1.28887 6.45603 0.993667 6.08569 0.794982 5.66309C0.598535 5.24516 0.59869 4.81829 0.794982 4.40039C1.00898 3.94492 1.28922 3.47791 1.58795 3.07422C1.84796 2.723 2.20274 2.5218 2.63776 2.47949C3.14295 2.43038 3.65283 2.50003 4.15729 2.45117C4.26391 2.44081 4.29583 2.4228 4.35944 2.33692C4.64783 1.94742 4.84308 1.49557 5.1319 1.10547C5.39158 0.754835 5.74737 0.553005 6.1817 0.510744C6.71263 0.459147 7.28917 0.459309 7.81842 0.510744C8.25275 0.553005 8.60854 0.754835 8.86823 1.10547C9.157 1.49551 9.35204 1.94708 9.64069 2.33692C9.70429 2.4228 9.73621 2.44081 9.84283 2.45117C10.3477 2.50007 10.8573 2.43039 11.3624 2.47949C11.7974 2.5218 12.1522 2.723 12.4122 3.07422C12.7118 3.47909 12.9915 3.94567 13.2051 4.40039C13.4014 4.81829 13.4016 5.24516 13.2051 5.66309Z",fill:"currentColor"}),d.jsx("path",{d:"M7.9317 7C7.9317 6.48569 7.51438 6.06836 7.00006 6.06836C6.48575 6.06836 6.06842 6.48569 6.06842 7C6.06842 7.51432 6.48575 7.93164 7.00006 7.93164C7.51438 7.93164 7.9317 7.51432 7.9317 7ZM9.13092 7C9.13092 8.17706 8.17712 9.13086 7.00006 9.13086C5.823 9.13086 4.8692 8.17706 4.8692 7C4.8692 5.82294 5.823 4.86914 7.00006 4.86914C8.17712 4.86914 9.13092 5.82294 9.13092 7Z",fill:"currentColor"})]}),d.jsx("defs",{children:d.jsx("clipPath",{id:"clip0_2580_121189",children:d.jsx("rect",{width:14,height:14,fill:"currentColor"})})})]}),u3=({size:t=16,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsxs("g",{clipPath:"url(#clip0_1450_63327)",children:[d.jsx("path",{d:"M14.0861 5.51366C13.8717 5.0575 13.588 4.58542 13.2889 4.18108C13.208 4.07172 13.1596 4.04373 13.0243 4.03054C12.4277 3.97255 11.8245 4.05527 11.2269 3.9972C10.7224 3.94816 10.3133 3.71661 10.0115 3.30919C9.66986 2.84777 9.43973 2.31343 9.09824 1.85234C9.01771 1.74365 8.96805 1.71589 8.83354 1.70282C8.29432 1.65044 7.70402 1.65061 7.16656 1.70282C7.03205 1.71589 6.98239 1.74365 6.90186 1.85234C6.56067 2.31303 6.33025 2.84774 5.98855 3.30919C5.68681 3.71661 5.27774 3.94816 4.77317 3.9972C4.17564 4.05527 3.57239 3.97255 2.97585 4.03054C2.84046 4.04373 2.79208 4.07172 2.71115 4.18108C2.41212 4.58542 2.12835 5.0575 1.91403 5.51366C1.85299 5.64359 1.85286 5.7018 1.91403 5.8319C2.14865 6.33077 2.49748 6.76892 2.73237 7.26854C2.9594 7.7515 2.96041 8.24717 2.73338 8.73044C2.49837 9.23061 2.14891 9.66837 1.91403 10.1681C1.85291 10.2982 1.85299 10.3564 1.91403 10.4863C2.12856 10.9429 2.41185 11.4142 2.71115 11.8189C2.79208 11.9283 2.84046 11.9563 2.97585 11.9694C3.57239 12.0274 4.17564 11.9447 4.77317 12.0028C5.27774 12.0518 5.68681 12.2834 5.98855 12.6908C6.33024 13.1522 6.56037 13.6866 6.90186 14.1476C6.98239 14.2563 7.03205 14.2841 7.16656 14.2972C7.70402 14.3494 8.29432 14.3495 8.83354 14.2972C8.96805 14.2841 9.01771 14.2563 9.09824 14.1476C9.43944 13.687 9.66985 13.1522 10.0115 12.6908C10.3133 12.2834 10.7224 12.0518 11.2269 12.0028C11.8244 11.9447 12.4271 12.0275 13.0243 11.9694C13.1596 11.9563 13.208 11.9283 13.2889 11.8189C13.5891 11.4131 13.872 10.942 14.0861 10.4863C14.1471 10.3564 14.1472 10.2982 14.0861 10.1681C13.8513 9.66861 13.5017 9.23061 13.2667 8.73044C13.0397 8.24717 13.0407 7.7515 13.2677 7.26854C13.5026 6.7689 13.8513 6.33106 14.0861 5.8319C14.1472 5.7018 14.1471 5.64359 14.0861 5.51366ZM15.3035 6.40373C15.0685 6.90359 14.7188 7.34119 14.4841 7.84037C14.4231 7.97025 14.423 8.02855 14.4841 8.15861C14.7189 8.65833 15.0685 9.09611 15.3035 9.59626C15.5308 10.0801 15.5308 10.5744 15.3035 11.0582C15.052 11.5933 14.7225 12.1426 14.37 12.6191C14.0685 13.0265 13.6581 13.259 13.1536 13.3081C12.5566 13.366 11.9541 13.2835 11.3573 13.3414C11.2228 13.3545 11.1731 13.3823 11.0926 13.491C10.7511 13.9521 10.521 14.4864 10.1793 14.9478C9.87828 15.3542 9.46719 15.5869 8.96387 15.6358C8.34008 15.6964 7.66194 15.6966 7.03623 15.6358C6.53291 15.5869 6.12182 15.3542 5.82084 14.9478C5.47911 14.4863 5.24878 13.9517 4.90753 13.491C4.82701 13.3823 4.77734 13.3545 4.64284 13.3414C4.04647 13.2835 3.44373 13.366 2.84653 13.3081C2.34201 13.259 1.93164 13.0265 1.63013 12.6191C1.27867 12.144 0.948453 11.5941 0.696621 11.0582C0.469315 10.5744 0.469279 10.0801 0.696621 9.59626C0.931628 9.09613 1.2813 8.65807 1.51597 8.15861C1.57708 8.02855 1.57702 7.97025 1.51597 7.84037C1.28117 7.34095 0.931635 6.9036 0.696621 6.40373C0.469213 5.91992 0.469367 5.42562 0.696621 4.94183C0.948441 4.40587 1.27868 3.85598 1.63013 3.38092C1.93164 2.97349 2.34201 2.74095 2.84653 2.6919C3.44353 2.63397 4.04599 2.71649 4.64284 2.65856C4.77734 2.64549 4.82701 2.61774 4.90753 2.50904C5.24905 2.04792 5.47913 1.51362 5.82084 1.05219C6.12182 0.645806 6.53291 0.413119 7.03623 0.364178C7.66002 0.303556 8.33816 0.303369 8.96387 0.364178C9.46719 0.413119 9.87828 0.645806 10.1793 1.05219C10.521 1.51365 10.7513 2.04828 11.0926 2.50904C11.1731 2.61774 11.2228 2.64549 11.3573 2.65856C11.9541 2.71649 12.5566 2.63397 13.1536 2.6919C13.6581 2.74095 14.0685 2.97349 14.37 3.38092C14.7214 3.85598 15.0517 4.40587 15.3035 4.94183C15.5307 5.42562 15.5309 5.91992 15.3035 6.40373Z",fill:"currentColor"}),d.jsx("path",{d:"M9.13764 7.99999C9.13764 7.3715 8.62855 6.8624 8.00005 6.8624C7.37155 6.8624 6.86246 7.3715 6.86246 7.99999C6.86246 8.62849 7.37155 9.13759 8.00005 9.13759C8.62855 9.13759 9.13764 8.62849 9.13764 7.99999ZM10.4834 7.99999C10.4834 9.37126 9.37132 10.4833 8.00005 10.4833C6.62878 10.4833 5.51674 9.37126 5.51674 7.99999C5.51674 6.62873 6.62878 5.51669 8.00005 5.51669C9.37132 5.51669 10.4834 6.62873 10.4834 7.99999Z",fill:"currentColor"})]}),d.jsx("defs",{children:d.jsx("clipPath",{id:"clip0_1450_63327",children:d.jsx("rect",{width:16,height:16,fill:"currentColor"})})})]}),o5=({size:t=16,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.67272 0.522841C10.8339 0.522841 11.76 0.522714 12.4963 0.602493C13.2453 0.683657 13.8789 0.854248 14.4264 1.25197C14.7504 1.48739 15.0355 1.77247 15.2709 2.0965C15.6686 2.64394 15.8392 3.27758 15.9204 4.02655C16.0002 4.7629 16 5.68895 16 6.85014V9.14986C16 10.3111 16.0002 11.2371 15.9204 11.9735C15.8392 12.7224 15.6686 13.3561 15.2709 13.9035C15.0355 14.2275 14.7504 14.5126 14.4264 14.748C13.8789 15.1458 13.2453 15.3163 12.4963 15.3975C11.76 15.4773 10.8339 15.4772 9.67272 15.4772H6.3273C5.16611 15.4772 4.24006 15.4773 3.50371 15.3975C2.75474 15.3163 2.1211 15.1458 1.57366 14.748C1.24963 14.5126 0.964549 14.2275 0.729131 13.9035C0.331407 13.3561 0.160817 12.7224 0.0796529 11.9735C-0.000126137 11.2371 1.25338e-09 10.3111 1.25338e-09 9.14986V6.85014C1.25329e-09 5.68895 -0.000126137 4.7629 0.0796529 4.02655C0.160817 3.27758 0.331407 2.64394 0.729131 2.0965C0.964549 1.77247 1.24963 1.48739 1.57366 1.25197C2.1211 0.854248 2.75474 0.683657 3.50371 0.602493C4.24006 0.522714 5.16611 0.522841 6.3273 0.522841H9.67272ZM5.54303 1.88715V14.1118C5.78636 14.1128 6.04709 14.1169 6.3273 14.1169H9.67272C10.8639 14.1169 11.7032 14.1164 12.3493 14.0465C12.9824 13.9779 13.3497 13.8494 13.6268 13.6482C13.8354 13.4966 14.0195 13.3125 14.1711 13.1039C14.3723 12.8268 14.5007 12.4595 14.5693 11.8264C14.6393 11.1803 14.6398 10.341 14.6398 9.14986V6.85014C14.6398 5.65896 14.6393 4.81967 14.5693 4.1736C14.5007 3.54048 14.3723 3.17318 14.1711 2.89609C14.0195 2.68747 13.8354 2.50337 13.6268 2.35179C13.3497 2.1506 12.9824 2.02212 12.3493 1.95353C11.7032 1.88358 10.8639 1.88307 9.67272 1.88307H6.3273C6.04709 1.88307 5.78636 1.8862 5.54303 1.88715ZM4.1828 1.91166C3.99125 1.9216 3.8148 1.93577 3.65076 1.95353C3.01764 2.02212 2.65034 2.1506 2.37325 2.35179C2.16463 2.50337 1.98052 2.68747 1.82895 2.89609C1.62776 3.17318 1.49928 3.54048 1.43069 4.1736C1.36074 4.81967 1.36023 5.65896 1.36023 6.85014V9.14986C1.36023 10.341 1.36074 11.1803 1.43069 11.8264C1.49928 12.4595 1.62776 12.8268 1.82895 13.1039C1.98052 13.3125 2.16463 13.4966 2.37325 13.6482C2.65034 13.8494 3.01764 13.9779 3.65076 14.0465C3.81478 14.0642 3.99127 14.0774 4.1828 14.0873V1.91166Z",fill:"currentColor"})}),H1=({size:t=16,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M8.64453 1.5V7.34961H14.5V8.65039H8.64453V14.5H7.34473V8.65039H1.5V7.34961H7.34473V1.5H8.64453Z",fill:"currentColor"})}),_1=({size:t=16,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M15.0498 3.92579L8.49512 12.3818C8.25774 12.6881 8.04517 12.9645 7.84668 13.1689C7.63957 13.3823 7.38732 13.5841 7.04492 13.6719C6.86373 13.7183 6.6757 13.7346 6.48926 13.7197C6.13666 13.6915 5.8528 13.5355 5.6123 13.3604C5.38201 13.1926 5.12573 12.9567 4.83984 12.6953L1.03125 9.21289L1.96875 8.1875L5.77734 11.6699C6.08684 11.9529 6.27773 12.1249 6.43066 12.2363C6.50183 12.2882 6.54699 12.3135 6.57324 12.3252C6.58525 12.3305 6.59269 12.3322 6.5957 12.333C6.59802 12.3336 6.59961 12.334 6.59961 12.334C6.63317 12.3367 6.66758 12.3335 6.7002 12.3252C6.7002 12.3252 6.70211 12.3251 6.7041 12.3242C6.70698 12.3229 6.71348 12.319 6.72461 12.3115C6.74849 12.2956 6.78843 12.2642 6.84961 12.2012C6.98138 12.0654 7.13957 11.8628 7.39648 11.5313L13.9502 3.07422L15.0498 3.92579Z",fill:"currentColor"})}),gl=({size:t=14,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M11.8486 5.5L11.4238 5.92383L8.69727 8.65137C8.44157 8.90706 8.21562 9.13382 8.01172 9.29785C7.79912 9.46883 7.55595 9.61756 7.25 9.66602C7.08435 9.69222 6.91565 9.69222 6.75 9.66602C6.44405 9.61756 6.20088 9.46883 5.98828 9.29785C5.78438 9.13382 5.55843 8.90706 5.30273 8.65137L2.57617 5.92383L2.15137 5.5L3 4.65137L3.42383 5.07617L6.15137 7.80273C6.42595 8.07732 6.59876 8.24849 6.74023 8.3623C6.87291 8.46904 6.92272 8.47813 6.9375 8.48047C6.97895 8.48703 7.02105 8.48703 7.0625 8.48047C7.07728 8.47813 7.12709 8.46904 7.25977 8.3623C7.40124 8.24849 7.57405 8.07732 7.84863 7.80273L10.5762 5.07617L11 4.65137L11.8486 5.5Z",fill:"currentColor"})}),Qo=({size:t=14,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M5.5 2.15137L5.92383 2.57617L8.65137 5.30273C8.90706 5.55843 9.13382 5.78438 9.29785 5.98828C9.46883 6.20088 9.61756 6.44405 9.66602 6.75C9.69222 6.91565 9.69222 7.08435 9.66602 7.25C9.61756 7.55595 9.46883 7.79912 9.29785 8.01172C9.13382 8.21561 8.90706 8.44157 8.65137 8.69727L5.92383 11.4238L5.5 11.8486L4.65137 11L5.07617 10.5762L7.80273 7.84863C8.07732 7.57405 8.24849 7.40124 8.3623 7.25977C8.46904 7.12709 8.47813 7.07728 8.48047 7.0625C8.48703 7.02105 8.48703 6.97895 8.48047 6.9375C8.47813 6.92272 8.46904 6.87291 8.3623 6.74023C8.24848 6.59876 8.07732 6.42595 7.80273 6.15137L5.07617 3.42383L4.65137 3L5.5 2.15137Z",fill:"currentColor"})}),ts=({size:t=16,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M14.1168 13.197L13.197 14.1167L1.8833 2.80303L2.80309 1.88324L14.1168 13.197Z",fill:"currentColor"}),d.jsx("path",{d:"M13.197 1.88326L14.1168 2.80305L2.80309 14.1168L1.8833 13.197L13.197 1.88326Z",fill:"currentColor"})]}),V1=({size:t=14,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M10.6074 4.40278L8.00975 6.99973L10.6074 9.59739L9.59736 10.6074L6.9997 8.00978L4.40274 10.6074L3.3927 9.59739L5.98966 6.99973L3.3927 4.40278L4.40274 3.39273L6.9997 5.98969L9.59736 3.39273L10.6074 4.40278Z",fill:"currentColor"})}),s5=({size:t=16,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M6.14929 4.02032C7.11197 4.02032 7.87983 4.02016 8.49597 4.07598C9.12128 4.13269 9.65792 4.25188 10.1415 4.53106C10.7202 4.8653 11.2008 5.3459 11.535 5.92462C11.8142 6.40818 11.9334 6.94481 11.9901 7.57012C12.0459 8.18625 12.0458 8.95419 12.0458 9.9168C12.0458 10.8795 12.0459 11.6473 11.9901 12.2635C11.9334 12.8888 11.8142 13.4254 11.535 13.909C11.2008 14.4877 10.7202 14.9683 10.1415 15.3025C9.65792 15.5817 9.12128 15.7009 8.49597 15.7576C7.87984 15.8134 7.11196 15.8133 6.14929 15.8133C5.18667 15.8133 4.41874 15.8134 3.80261 15.7576C3.1773 15.7009 2.64067 15.5817 2.1571 15.3025C1.5784 14.9683 1.09778 14.4877 0.76355 13.909C0.484366 13.4254 0.365184 12.8888 0.308472 12.2635C0.252649 11.6473 0.252808 10.8795 0.252808 9.9168C0.252808 8.95418 0.252664 8.18625 0.308472 7.57012C0.365184 6.94481 0.484366 6.40818 0.76355 5.92462C1.09777 5.34589 1.57839 4.86529 2.1571 4.53106C2.64067 4.25188 3.1773 4.13269 3.80261 4.07598C4.41874 4.02017 5.18666 4.02032 6.14929 4.02032ZM6.14929 5.37774C5.16181 5.37774 4.46634 5.37761 3.92566 5.42657C3.39434 5.47472 3.07859 5.56574 2.83582 5.70587C2.4632 5.92106 2.15354 6.2307 1.93835 6.60333C1.79823 6.8461 1.70721 7.16185 1.65906 7.69317C1.6101 8.23385 1.61023 8.92933 1.61023 9.9168C1.61023 10.9043 1.61009 11.5998 1.65906 12.1404C1.70721 12.6717 1.79823 12.9875 1.93835 13.2303C2.15356 13.6029 2.46321 13.9126 2.83582 14.1277C3.07859 14.2679 3.39434 14.3589 3.92566 14.407C4.46634 14.456 5.16182 14.4559 6.14929 14.4559C7.13682 14.4559 7.83224 14.456 8.37292 14.407C8.90425 14.3589 9.21999 14.2679 9.46277 14.1277C9.83535 13.9126 10.145 13.6029 10.3602 13.2303C10.5004 12.9875 10.5914 12.6717 10.6395 12.1404C10.6885 11.5998 10.6884 10.9043 10.6884 9.9168C10.6884 8.92934 10.6885 8.23384 10.6395 7.69317C10.5914 7.16185 10.5004 6.8461 10.3602 6.60333C10.1451 6.23071 9.83536 5.92107 9.46277 5.70587C9.21999 5.56574 8.90424 5.47472 8.37292 5.42657C7.83224 5.3776 7.13682 5.37774 6.14929 5.37774ZM9.80164 0.367975C10.7638 0.367975 11.5314 0.36788 12.1473 0.423639C12.7726 0.480307 13.3093 0.598759 13.7928 0.877741C14.3717 1.21192 14.8521 1.69355 15.1864 2.27227C15.4655 2.75574 15.5857 3.29164 15.6425 3.9168C15.6983 4.53301 15.6971 5.3016 15.6971 6.26446V7.82989C15.6971 8.29264 15.6989 8.58993 15.6649 8.84844C15.4668 10.3525 14.401 11.5738 12.9833 11.9988V10.5467C13.6973 10.1903 14.2105 9.49662 14.3192 8.67169C14.3387 8.52347 14.3407 8.3358 14.3407 7.82989V6.26446C14.3407 5.27706 14.3398 4.58149 14.2909 4.04083C14.2428 3.50968 14.1526 3.19372 14.0126 2.95098C13.7974 2.57849 13.4876 2.26869 13.1151 2.05352C12.8724 1.91347 12.5564 1.82237 12.0253 1.77423C11.4847 1.72528 10.7888 1.7254 9.80164 1.7254H7.71472C6.7562 1.72558 5.92665 2.27697 5.52332 3.07891H4.07019C4.54221 1.51132 5.9932 0.368186 7.71472 0.367975H9.80164Z",fill:"currentColor"})}),a5=({size:t=16,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M9.94076 1.34942C10.7047 0.90231 11.6503 0.902415 12.4143 1.34942C12.7061 1.52015 12.9688 1.79118 13.3104 2.13284C13.6521 2.47448 13.9231 2.73721 14.0939 3.02894C14.5408 3.79294 14.5409 4.73856 14.0939 5.50251C13.9231 5.79415 13.652 6.05704 13.3104 6.39861L6.65932 13.0497C6.28068 13.4284 6.00695 13.7108 5.66543 13.9097C5.32391 14.1085 4.94315 14.2074 4.42705 14.3498L3.24394 14.6761C2.77527 14.8054 2.34538 14.9262 2.00131 14.9684C1.65196 15.0112 1.17964 15.0013 0.810764 14.6325C0.441921 14.2637 0.432107 13.7913 0.47486 13.442C0.517035 13.0979 0.6379 12.668 0.767181 12.1993L1.09352 11.0162C1.23588 10.5001 1.33481 10.1193 1.5336 9.77784C1.7325 9.43632 2.0149 9.1626 2.39355 8.78395L9.04466 2.13284C9.38625 1.79126 9.64911 1.52016 9.94076 1.34942ZM15.5427 14.8398H7.55223L8.96707 13.425H15.5427V14.8398ZM3.39382 9.78422C2.965 10.213 2.84244 10.3436 2.75709 10.49C2.67183 10.6366 2.61862 10.8079 2.45733 11.3925L2.13099 12.5756C2.00183 13.0439 1.92194 13.3419 1.88863 13.5536C2.10041 13.5204 2.39872 13.4416 2.86764 13.3123L4.05075 12.9859C4.63544 12.8246 4.80669 12.7715 4.95323 12.6862C5.09968 12.6008 5.23022 12.4783 5.65905 12.0494L10.721 6.98644L8.45577 4.72121L3.39382 9.78422ZM11.7 2.57079C11.3774 2.38198 10.9777 2.38198 10.6551 2.57079C10.5602 2.62647 10.4487 2.72931 10.0449 3.13311L9.45604 3.72094L11.7213 5.98617L12.3102 5.39833C12.7139 4.99457 12.8168 4.88307 12.8725 4.78818C13.0613 4.46561 13.0612 4.06585 12.8725 3.74326C12.8169 3.64827 12.7146 3.53752 12.3102 3.13311C11.9057 2.72863 11.795 2.6264 11.7 2.57079Z",fill:"currentColor"})}),u5=({size:t=14,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M7.06431 5.93342C7.68763 5.93342 8.19307 6.43904 8.19322 7.06233C8.19322 7.68573 7.68772 8.19123 7.06431 8.19123C6.44099 8.19113 5.9354 7.68567 5.9354 7.06233C5.93555 6.43911 6.44108 5.93353 7.06431 5.93342Z",fill:"currentColor"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.6815 0.963693C10.1169 0.447019 11.6266 0.374829 12.5633 1.31135C13.5 2.24805 13.4277 3.75776 12.911 5.19319C12.7126 5.74431 12.4386 6.31796 12.0965 6.89729C12.4969 7.54638 12.8141 8.19018 13.036 8.80647C13.5527 10.2419 13.6251 11.7516 12.6883 12.6883C11.7516 13.625 10.242 13.5527 8.8065 13.036C8.19022 12.8141 7.54641 12.4969 6.89732 12.0965C6.31797 12.4386 5.74435 12.7125 5.19322 12.911C3.75777 13.4276 2.2481 13.5 1.31138 12.5633C0.374859 11.6266 0.447049 10.1168 0.963724 8.68147C1.17185 8.10338 1.46321 7.50063 1.82896 6.8924C1.52182 6.35711 1.27235 5.82825 1.08872 5.31819C0.572068 3.88278 0.499714 2.37306 1.43638 1.43635C2.37308 0.499655 3.8828 0.572044 5.31822 1.08869C5.82828 1.27232 6.35715 1.5218 6.89243 1.82893C7.50066 1.46318 8.10341 1.17181 8.6815 0.963693ZM11.3573 8.01154C10.9083 8.62253 10.3901 9.22873 9.80943 9.8094C9.22877 10.3901 8.62255 10.9083 8.01158 11.3572C8.4257 11.5841 8.8287 11.7688 9.21275 11.9071C10.5456 12.3868 11.4246 12.2547 11.8397 11.8397C12.2548 11.4246 12.3869 10.5456 11.9071 9.21272C11.7688 8.82866 11.5841 8.42568 11.3573 8.01154ZM2.56529 8.02912C2.37344 8.39322 2.21495 8.74796 2.09263 9.08772C1.61291 10.4204 1.74512 11.2995 2.16001 11.7147C2.57505 12.1297 3.45415 12.2618 4.78697 11.7821C5.11057 11.6656 5.44786 11.5164 5.7938 11.3367C5.249 10.9223 4.70922 10.4533 4.19029 9.9344C3.57578 9.31987 3.03169 8.67633 2.56529 8.02912ZM6.90708 3.2469C6.24065 3.70479 5.5646 4.26321 4.91392 4.91389C4.26325 5.56456 3.70482 6.24063 3.24693 6.90705C3.72674 7.63325 4.32777 8.37459 5.03892 9.08576C5.64943 9.69627 6.28183 10.2265 6.90806 10.6678C7.59368 10.2025 8.2908 9.63076 8.96079 8.96076C9.6308 8.29075 10.2025 7.59366 10.6678 6.90803C10.2265 6.2818 9.69631 5.6494 9.08579 5.03889C8.37462 4.32773 7.63328 3.72672 6.90708 3.2469ZM11.7147 2.15998C11.2996 1.74509 10.4204 1.61288 9.08775 2.0926C8.74835 2.21479 8.39382 2.37271 8.03013 2.56428C8.67728 3.03065 9.31995 3.5758 9.93443 4.19026C10.4534 4.7092 10.9223 5.24896 11.3368 5.79377C11.5164 5.44785 11.6656 5.11052 11.7821 4.78694C12.2618 3.45416 12.1297 2.57502 11.7147 2.15998ZM4.91197 2.2176C3.57922 1.73788 2.70004 1.86995 2.28501 2.28498C1.87001 2.70003 1.73791 3.5792 2.21763 4.91194C2.31709 5.18822 2.44112 5.47427 2.58677 5.7674C3.01931 5.1887 3.51474 4.6158 4.06529 4.06526C4.61584 3.5147 5.18872 3.01928 5.76743 2.58674C5.47431 2.4411 5.18824 2.31706 4.91197 2.2176Z",fill:"currentColor"})]}),c5=({size:t=16,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M5.5498 9.75V5H6.9502V9.75C6.9502 10.3299 7.4201 10.7998 8 10.7998C8.5799 10.7998 9.0498 10.3299 9.0498 9.75V4.5C9.0498 2.9536 7.7964 1.7002 6.25 1.7002C4.7036 1.7002 3.4502 2.9536 3.4502 4.5V9.75C3.4502 12.2629 5.4871 14.2998 8 14.2998C10.5129 14.2998 12.5498 12.2629 12.5498 9.75V4H13.9502V9.75C13.9502 13.0361 11.2861 15.7002 8 15.7002C4.71391 15.7002 2.0498 13.0361 2.0498 9.75V4.5C2.04981 2.1804 3.9304 0.299806 6.25 0.299805C8.5696 0.299805 10.4502 2.1804 10.4502 4.5V9.75C10.4502 11.1031 9.3531 12.2002 8 12.2002C6.6469 12.2002 5.5498 11.1031 5.5498 9.75Z",fill:"currentColor"})}),d5=({size:t=16,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.3368 1.53569L11.931 4.43172H14.8086V5.79673H11.7404L11.1962 9.67859H14.2839V11.0436H11.0056L10.4994 14.6529L9.14873 14.4643L9.62731 11.0436H5.75876L5.25252 14.6529L3.90186 14.4643L4.38043 11.0436H1.69141V9.67859H4.57104L5.11417 5.79673H2.21609V4.43172H5.30581L5.73724 1.34713L7.08995 1.53569L6.68414 4.43172H10.5527L10.9841 1.34713L12.3368 1.53569ZM5.94937 9.67859H9.81791L10.361 5.79673H6.49353L5.94937 9.67859Z",fill:"currentColor"})}),f5=({size:t=16,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",children:d.jsx("path",{transform:"translate(1.292 1.3)",d:"M10.3232 9.18164C11.2868 9.18164 12.0985 9.82833 12.3506 10.7109L13.415 10.7109L13.415 11.8711L12.3496 11.8711C12.0971 12.7532 11.2864 13.3994 10.3232 13.3994C9.36031 13.3992 8.55012 12.7531 8.29785 11.8711L0 11.8711L0 10.7109L8.29688 10.7109C8.54876 9.82845 9.35988 9.18186 10.3232 9.18164ZM10.3232 10.3418C9.7999 10.3421 9.37534 10.7667 9.375 11.29C9.375 11.8137 9.79969 12.239 10.3232 12.2393C10.847 12.2393 11.2725 11.8138 11.2725 11.29C11.2721 10.7666 10.8468 10.3418 10.3232 10.3418ZM12.4326 11.291C12.4326 11.3549 12.4284 11.418 12.4229 11.4805C12.4287 11.4181 12.4326 11.355 12.4326 11.291ZM8.21484 11.2832C8.21484 11.2856 8.21484 11.2886 8.21484 11.291L8.21484 11.29C8.21484 11.2878 8.21484 11.2855 8.21484 11.2832ZM3.08301 4.59082C4.04605 4.59095 4.85696 5.23717 5.10938 6.11914L13.415 6.11914L13.415 7.2793L5.11035 7.2793C4.85833 8.16202 4.04648 8.80846 3.08301 8.80859C2.11972 8.80843 1.30963 8.16179 1.05762 7.2793L0 7.2793L0 6.11914L1.05762 6.11914C1.30994 5.23728 2.12006 4.59098 3.08301 4.59082ZM3.08301 5.75098C2.55962 5.75117 2.13512 6.17587 2.13477 6.69922C2.13477 7.22287 2.5594 7.64824 3.08301 7.64844C3.60665 7.64828 4.03223 7.2229 4.03223 6.69922C4.03187 6.17585 3.60643 5.75113 3.08301 5.75098ZM5.19238 6.69922C5.19238 6.763 5.18816 6.82633 5.18262 6.88867C5.18846 6.82629 5.19238 6.76313 5.19238 6.69922C5.19236 6.63495 5.18853 6.57152 5.18262 6.50879C5.18826 6.57154 5.19236 6.635 5.19238 6.69922ZM0.982422 6.52344C0.977382 6.58136 0.97463 6.63999 0.974609 6.69922C0.974609 6.75775 0.977496 6.81579 0.982422 6.87305C0.977758 6.81579 0.974609 6.75767 0.974609 6.69922C0.974628 6.64 0.977618 6.58142 0.982422 6.52344ZM10.3232 0C11.2869 0 12.0986 0.646596 12.3506 1.5293L13.415 1.5293L13.415 2.68945L12.3496 2.68945C12.363 2.64266 12.3754 2.59488 12.3857 2.54688C12.1838 3.50118 11.3376 4.21777 10.3232 4.21777C9.36037 4.21756 8.55018 3.57139 8.29785 2.68945L0 2.68945L0 1.5293L8.29688 1.5293C8.5487 0.646717 9.35981 0.00021854 10.3232 0ZM10.3232 1.16016C9.79984 1.16042 9.37524 1.58499 9.375 2.1084C9.375 2.63201 9.79969 3.05735 10.3232 3.05762C10.847 3.05762 11.2725 2.63217 11.2725 2.1084C11.2722 1.58483 10.8469 1.16016 10.3232 1.16016ZM12.4229 2.29883C12.4287 2.23641 12.4326 2.17331 12.4326 2.10938C12.4326 2.17327 12.4284 2.23638 12.4229 2.29883ZM8.21484 2.10938L8.21484 2.1084L8.21484 2.10938ZM8.22266 1.93359C8.21785 1.98897 8.21506 2.04499 8.21484 2.10156C8.21503 2.04501 8.2181 1.98902 8.22266 1.93359ZM8.22266 11.1162C8.2179 11.1713 8.21507 11.227 8.21484 11.2832C8.21504 11.227 8.21814 11.1713 8.22266 11.1162Z",fill:"currentColor"})}),p5=({size:t=16,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",children:[d.jsx("path",{transform:"translate(9.52 2.52)",d:"M3.55246 0L3.55246 2.44252L6 2.44252L6 3.55748L3.55246 3.55748L3.55246 6L2.43834 6L2.43834 3.55748L0 3.55748L0 2.44252L2.43834 2.44252L2.43834 0L3.55246 0Z",fill:"currentColor"}),d.jsx("path",{transform:"translate(0.3496 2.35)",d:"M4.76367 0C5.36861 1.80598e-05 5.93113 0.310294 6.25488 0.821289L6.78027 1.64941C6.79685 1.67558 6.81791 1.69775 6.83887 1.71973C6.72186 2.15521 6.65702 2.61192 6.65137 3.08301C6.25601 2.96045 5.90909 2.70478 5.68164 2.3457L5.15723 1.5166C5.07183 1.38189 4.92318 1.3008 4.76367 1.30078L2.32422 1.30078C1.7589 1.30078 1.30078 1.7589 1.30078 2.32422L1.30078 10.1338C1.30078 10.6991 1.7589 11.1572 2.32422 11.1572L11.9766 11.1572C12.5419 11.1572 13 10.6991 13 10.1338L13 8.58398C13.4545 8.5135 13.8903 8.38748 14.3008 8.21289L14.3008 10.1338C14.3008 11.4171 13.2598 12.458 11.9766 12.458L2.32422 12.458C1.04093 12.458 0 11.4171 0 10.1338L0 2.32422C0 1.04093 1.04093 0 2.32422 0L4.76367 0Z",fill:"currentColor"})]}),U1=({size:t=16,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",children:[d.jsx("path",{d:"M5.19629 1.57104C5.81144 1.5711 6.38623 1.8786 6.72754 2.39038L7.19922 3.09839C7.28454 3.22635 7.42824 3.30344 7.58203 3.30347H12.1699C13.5039 3.30348 14.5859 4.38548 14.5859 5.71948V6.62671C15.2694 7.02689 15.6605 7.85012 15.4385 8.68726L14.3848 12.658C14.1037 13.7164 13.1449 14.4527 12.0498 14.4529H2.91699C1.51651 14.4529 0.451662 13.2814 0.501954 11.9519V3.98706C0.501954 2.65305 1.58396 1.57104 2.91797 1.57104H5.19629ZM3.7793 7.75562C3.30994 7.75562 2.89883 8.07153 2.77832 8.52515L1.91602 11.7722C1.74167 12.4291 2.23734 13.073 2.91699 13.073H12.0498C12.5191 13.0728 12.9304 12.757 13.0508 12.3035L14.1045 8.33374C14.1819 8.04202 13.9619 7.756 13.6602 7.75562H3.7793ZM2.91797 2.9519C2.34625 2.9519 1.88281 3.41534 1.88281 3.98706V7.2937C2.33068 6.7269 3.02249 6.37476 3.7793 6.37476H13.2051V5.71948C13.2051 5.14777 12.7416 4.68434 12.1699 4.68433H7.58203C6.96675 4.6843 6.39209 4.37595 6.05078 3.86401L5.5791 3.15601C5.49379 3.02821 5.34995 2.95196 5.19629 2.9519H2.91797Z",fill:"currentColor"}),d.jsx("path",{opacity:"0.2",d:"M13.6602 7.75525C13.9618 7.7556 14.1815 8.04179 14.1045 8.33337L13.0508 12.3031C12.9304 12.7567 12.5191 13.0725 12.0498 13.0726H2.91701C2.23744 13.0725 1.7417 12.4287 1.91603 11.7719L2.77834 8.52478C2.89898 8.07146 3.31018 7.75532 3.77931 7.75525H13.6602ZM5.1963 2.95154C5.34985 2.95159 5.49377 3.02803 5.57912 3.15564L6.0508 3.86365C6.39205 4.37553 6.96685 4.68385 7.58205 4.68396H12.1699C12.7416 4.68396 13.2049 5.14754 13.2051 5.71912V6.37439H3.77931C3.02267 6.37444 2.33067 6.72671 1.88283 7.29333V3.98669C1.88299 3.4152 2.34649 2.95168 2.91798 2.95154H5.1963Z",fill:"currentColor"})]}),h5=({size:t=16,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",children:d.jsx("path",{transform:"translate(1.5 2.429)",d:"M5.05582 0.518756L4.50669 0.86654L5.05582 0.518756ZM13 9.4837L13.65 9.4837L13.65 3.53962L13 3.53962L12.35 3.53962L12.35 9.4837L13 9.4837ZM11.3264 1.86603L11.3264 1.21603L6.52313 1.21603L6.52313 1.86603L6.52313 2.51603L11.3264 2.51603L11.3264 1.86603ZM5.58054 1.34727L6.12968 0.999489L5.60495 0.170972L5.05582 0.518756L4.50669 0.86654L5.03141 1.69506L5.58054 1.34727ZM4.11323 1.23058e-13L4.11323 -0.65L1.67359 -0.65L1.67359 5.00699e-14L1.67359 0.65L4.11323 0.65L4.11323 1.23058e-13ZM0 1.67359L-0.65 1.67359L-0.65 9.4837L0 9.4837L0.65 9.4837L0.65 1.67359L0 1.67359ZM11.3264 11.1573L11.3264 10.5073L1.67359 10.5073L1.67359 11.1573L1.67359 11.8073L11.3264 11.8073L11.3264 11.1573ZM0 9.4837L-0.65 9.4837C-0.65 10.767 0.390308 11.8073 1.67359 11.8073L1.67359 11.1573L1.67359 10.5073C1.10828 10.5073 0.65 10.049 0.65 9.4837L0 9.4837ZM1.67359 5.00699e-14L1.67359 -0.65C0.390307 -0.65 -0.65 0.390309 -0.65 1.67359L0 1.67359L0.65 1.67359C0.65 1.10828 1.10828 0.65 1.67359 0.65L1.67359 5.00699e-14ZM5.05582 0.518756L5.60495 0.170972C5.28121 -0.340193 4.71829 -0.65 4.11323 -0.65L4.11323 1.23058e-13L4.11323 0.65C4.27282 0.65 4.4213 0.731715 4.50669 0.86654L5.05582 0.518756ZM6.52313 1.86603L6.52313 1.21603C6.36354 1.21603 6.21507 1.13431 6.12968 0.999489L5.58054 1.34727L5.03141 1.69506C5.35515 2.20622 5.91808 2.51603 6.52313 2.51603L6.52313 1.86603ZM13 3.53962L13.65 3.53962C13.65 2.25634 12.6097 1.21603 11.3264 1.21603L11.3264 1.86603L11.3264 2.51603C11.8917 2.51603 12.35 2.97431 12.35 3.53962L13 3.53962ZM13 9.4837L12.35 9.4837C12.35 10.049 11.8917 10.5073 11.3264 10.5073L11.3264 11.1573L11.3264 11.8073C12.6097 11.8073 13.65 10.767 13.65 9.4837L13 9.4837Z",fill:"currentColor"})}),m5=({size:t=16,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M11.3496 8C11.3496 6.14985 9.85015 4.65039 8 4.65039C6.14985 4.65039 4.65039 6.14985 4.65039 8C4.65039 9.85015 6.14985 11.3496 8 11.3496C9.85015 11.3496 11.3496 9.85015 11.3496 8ZM12.6504 8C12.6504 10.5681 10.5681 12.6504 8 12.6504C5.43188 12.6504 3.34961 10.5681 3.34961 8C3.34961 5.43188 5.43188 3.34961 8 3.34961C10.5681 3.34961 12.6504 5.43188 12.6504 8Z",fill:"currentColor"}),d.jsx("path",{d:"M8.65039 0.5V2.5H7.34961V0.5H8.65039Z",fill:"currentColor"}),d.jsx("path",{d:"M8.65039 13.5V15.5H7.34961V13.5H8.65039Z",fill:"currentColor"}),d.jsx("path",{d:"M3.15808 2.24035L4.57229 3.65456L3.6525 4.57435L2.23829 3.16014L3.15808 2.24035Z",fill:"currentColor"}),d.jsx("path",{d:"M12.3505 11.4327L13.7647 12.8469L12.8449 13.7667L11.4307 12.3525L12.3505 11.4327Z",fill:"currentColor"}),d.jsx("path",{d:"M2.24537 12.8469L3.65958 11.4327L4.57937 12.3525L3.16516 13.7667L2.24537 12.8469Z",fill:"currentColor"}),d.jsx("path",{d:"M11.4377 3.65455L12.852 2.24033L13.7718 3.16012L12.3575 4.57434L11.4377 3.65455Z",fill:"currentColor"}),d.jsx("path",{d:"M0.5 7.35461H2.5V8.6554H0.5L0.5 7.35461Z",fill:"currentColor"}),d.jsx("path",{d:"M13.5 7.35461H15.5V8.6554H13.5V7.35461Z",fill:"currentColor"})]}),g5=({size:t=16,className:i})=>d.jsx("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M13.2764 9.52324C12.5607 9.97754 11.7177 10.242 10.7812 10.242C8.11386 10.2419 5.95042 8.07997 5.9502 5.41289C5.9502 4.48128 6.21453 3.61071 6.67188 2.87285C4.30332 3.4658 2.54992 5.60845 2.5498 8.16093C2.5498 11.1712 4.99103 13.6102 8 13.6102C10.5383 13.6102 12.6709 11.8724 13.2764 9.52324ZM7.05078 5.41289C7.051 7.47224 8.72116 9.1423 10.7812 9.14238C11.9248 9.14238 12.887 8.63397 13.5781 7.8084C13.7266 7.63106 13.9701 7.56547 14.1875 7.64433C14.4049 7.72329 14.5497 7.9297 14.5498 8.16093C14.5498 11.7766 11.6161 14.7098 8 14.7098C4.38402 14.7098 1.4502 11.7792 1.4502 8.16093C1.45033 4.54322 4.3812 1.61015 8 1.61015C8.23027 1.61015 8.43585 1.75352 8.51562 1.96953C8.59536 2.18554 8.53241 2.42829 8.35742 2.57793C7.55573 3.26311 7.05078 4.27876 7.05078 5.41289Z",fill:"currentColor"})}),y5=({size:t=16,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M12.1665 13.5811V14.7803H3.66651V13.5811H12.1665Z",fill:"currentColor"}),d.jsx("path",{d:"M13.4453 7.02379C13.4453 6.04702 13.4452 5.3616 13.3887 4.83434C13.3333 4.31828 13.2302 4.02378 13.0723 3.80309C12.9446 3.62475 12.7877 3.46883 12.6094 3.34117C12.3887 3.18328 12.0942 3.08007 11.5781 3.02477C11.0508 2.96829 10.3655 2.96715 9.38867 2.96715H6.61035C5.63359 2.96715 4.94816 2.96827 4.4209 3.02477C3.90486 3.0801 3.61034 3.18321 3.38965 3.34117C3.21143 3.46878 3.05534 3.62487 2.92774 3.80309C2.76977 4.02377 2.66667 4.3183 2.61133 4.83434C2.55483 5.3616 2.55371 6.04702 2.55371 7.02379C2.55371 8.0006 2.55485 8.68596 2.61133 9.21324C2.66663 9.72936 2.76983 10.0238 2.92774 10.2445C3.0554 10.4228 3.21131 10.5797 3.38965 10.7074C3.61034 10.8654 3.90484 10.9685 4.4209 11.0238C4.94816 11.0803 5.63359 11.0804 6.61035 11.0804H9.38867C10.3654 11.0804 11.0508 11.0803 11.5781 11.0238C12.0941 10.9685 12.3887 10.8652 12.6094 10.7074C12.7877 10.5797 12.9446 10.4229 13.0723 10.2445C13.2301 10.0238 13.3334 9.72927 13.3887 9.21324C13.4452 8.68596 13.4453 8.00058 13.4453 7.02379ZM14.6455 7.02379C14.6455 7.97428 14.646 8.73509 14.5811 9.34117C14.5149 9.95828 14.3756 10.4858 14.0479 10.9437C13.8436 11.229 13.5938 11.4788 13.3086 11.683C12.8507 12.0108 12.3232 12.15 11.7061 12.2162C11.1 12.2811 10.3391 12.2806 9.38867 12.2806H6.61035C5.66018 12.2806 4.89991 12.2811 4.29395 12.2162C3.67684 12.15 3.14935 12.0108 2.69141 11.683C2.40613 11.4788 2.15639 11.229 1.95215 10.9437C1.62436 10.4858 1.4841 9.95828 1.41797 9.34117C1.35305 8.73511 1.35449 7.97424 1.35449 7.02379C1.35449 6.07366 1.35308 5.31333 1.41797 4.70738C1.4841 4.09028 1.62436 3.56279 1.95215 3.10485C2.15638 2.81956 2.40613 2.56982 2.69141 2.36559C3.14935 2.03779 3.67684 1.89753 4.29395 1.83141C4.8999 1.76652 5.66022 1.76793 6.61035 1.76793H9.38867C10.3391 1.76793 11.1 1.76649 11.7061 1.83141C12.3232 1.89753 12.8507 2.03779 13.3086 2.36559C13.5939 2.56982 13.8436 2.81957 14.0479 3.10485C14.3756 3.56279 14.5149 4.09028 14.5811 4.70738C14.646 5.31335 14.6455 6.07362 14.6455 7.02379Z",fill:"currentColor"})]}),c3=({size:t=16,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0997 8.54554C12.2905 8.54989 12.3541 8.58056 12.4535 8.74614L12.8849 9.46387C12.9851 9.63071 13.0464 9.66013 13.2388 9.66447H14.1138C14.3417 9.66448 14.3512 9.66937 14.4686 9.86507L14.892 10.5717C14.9942 10.7422 14.9948 10.8247 14.892 10.9961L14.4756 11.6906C14.3741 11.8677 14.3694 11.9379 14.4756 12.115L14.892 12.8096C14.9942 12.9801 14.9947 13.0625 14.892 13.234L14.4686 13.9406C14.3643 14.1028 14.3063 14.1354 14.1138 14.1412H13.2388C13.0465 14.1456 12.985 14.1752 12.8849 14.3418L12.4535 15.0595C12.353 15.2195 12.2895 15.2558 12.0997 15.2601H11.2237C10.9962 15.2601 10.9871 15.2548 10.8699 15.0595L10.4384 14.3418C10.3383 14.175 10.2767 14.1456 10.0846 14.1412H9.2096C9.01854 14.1355 8.95761 14.1006 8.85477 13.9406L8.43139 13.234C8.32562 13.0576 8.33148 12.9862 8.43139 12.8096L8.84771 12.115C8.95165 11.9416 8.94659 11.863 8.84771 11.6906L8.43139 10.9961C8.32767 10.8232 8.33411 10.7437 8.43139 10.5717L8.85477 9.86507C8.95447 9.69891 9.01875 9.67017 9.2096 9.66447H10.0846C10.2741 9.66441 10.3414 9.62547 10.4384 9.46387L10.8699 8.74614C10.987 8.55106 10.9963 8.54554 11.2237 8.54554H12.0997ZM11.6612 10.232C11.3326 10.7798 10.8155 11.0948 10.1743 11.106C10.4443 11.61 10.4425 12.1976 10.1743 12.6987C10.803 12.7096 11.3391 13.0359 11.6612 13.5727C11.9855 13.0323 12.5131 12.7098 13.148 12.6987C12.879 12.196 12.8789 11.6086 13.148 11.106C12.5076 11.0948 11.9894 10.7794 11.6612 10.232Z",fill:"currentColor"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.51205 0.790627C9.19055 0.790649 10.7401 1.0691 11.892 1.54364C12.4664 1.78029 12.9719 2.07885 13.3436 2.4408C13.7171 2.80467 13.9916 3.27253 13.9918 3.82384V7.90442C13.6067 7.69532 13.1907 7.53597 12.7529 7.43366V5.66454C12.4928 5.82898 12.2028 5.97601 11.892 6.10405C10.74 6.57865 9.19071 6.85706 7.51205 6.85706C5.8337 6.85703 4.285 6.57852 3.13309 6.10405C2.82215 5.97593 2.53164 5.8291 2.27121 5.66454V7.4135C2.27134 7.75678 2.6066 8.27106 3.62502 8.73405C4.58641 9.17097 5.95762 9.45591 7.50499 9.45681C7.24582 9.83133 7.03684 10.2434 6.88706 10.6826C5.44388 10.6162 4.12516 10.3216 3.11192 9.86104C2.81708 9.72698 2.53185 9.56866 2.27121 9.38928V11.2542C2.27158 11.5974 2.60697 12.1109 3.62502 12.5737C4.41933 12.9347 5.4937 13.1898 6.71569 13.2693C6.80349 13.7128 6.9513 14.1345 7.14814 14.5273C5.60324 14.4862 4.18593 14.1889 3.11192 13.7007C2.01039 13.1998 1.03366 12.3814 1.03333 11.2542V3.82384C1.03352 3.27273 1.30721 2.80461 1.68049 2.4408C2.05211 2.07893 2.55887 1.78026 3.13309 1.54364C4.28492 1.06926 5.83393 0.790683 7.51205 0.790627ZM7.51205 2.02851C5.95492 2.02857 4.57354 2.29079 3.60486 2.68979C3.11958 2.88977 2.76667 3.11253 2.5454 3.32788C2.32671 3.54101 2.2714 3.7089 2.27121 3.82384C2.27121 3.93882 2.32624 4.10625 2.5454 4.3198C2.76667 4.53527 3.11927 4.75781 3.60486 4.9579C4.5736 5.35699 5.95467 5.61914 7.51205 5.61918C9.06942 5.61918 10.4505 5.35695 11.4192 4.9579C11.9051 4.75773 12.2584 4.53536 12.4797 4.3198C12.6988 4.10627 12.7529 3.93882 12.7529 3.82384C12.7527 3.70889 12.6984 3.54104 12.4797 3.32788C12.2584 3.11239 11.9049 2.88989 11.4192 2.68979C10.4505 2.29079 9.06925 2.02853 7.51205 2.02851Z",fill:"currentColor"})]}),S1=({size:t=16,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("ellipse",{cx:"8",cy:"3.6",rx:"5.75",ry:"2.4",stroke:"currentColor",strokeWidth:"1.25"}),d.jsx("path",{d:"M2.25 3.6V12.3A5.75 2.4 0 0 0 13.75 12.3V3.6",stroke:"currentColor",strokeWidth:"1.25"}),d.jsx("path",{d:"M2.25 7.95A5.75 2.4 0 0 0 13.75 7.95",stroke:"currentColor",strokeWidth:"1.25"})]}),x5=({size:t=16,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M12.5113 15.4067C12.4395 15.6249 12.1308 15.6249 12.059 15.4067L11.643 14.1416C11.454 13.567 11.0033 13.1164 10.4288 12.9274L9.16369 12.5113C8.94544 12.4395 8.94544 12.1308 9.16369 12.059L10.4288 11.643C11.0033 11.454 11.454 11.0033 11.643 10.4288L12.059 9.16369C12.1308 8.94544 12.4395 8.94544 12.5113 9.16369L12.9274 10.4288C13.1164 11.0033 13.567 11.454 14.1416 11.643L15.4067 12.059C15.6249 12.1308 15.6249 12.4395 15.4067 12.5113L14.1416 12.9274C13.567 13.1164 13.1164 13.567 12.9274 14.1416L12.5113 15.4067Z",fill:"currentColor"}),d.jsx("path",{d:"M9.02246 0.546878C9.9822 0.546878 10.7564 0.545403 11.374 0.612307C12.0042 0.680586 12.5515 0.826244 13.0273 1.17188C13.3052 1.37376 13.5501 1.61868 13.752 1.89649C14.0975 2.37225 14.2432 2.91984 14.3115 3.54981C14.3784 4.16727 14.377 4.94206 14.377 5.90137V8.51367C13.9611 8.29533 13.5071 8.13985 13.0273 8.06055V5.90137C13.0273 4.9121 13.0259 4.22322 12.9688 3.69532C12.9129 3.18044 12.8098 2.89782 12.6592 2.69043C12.5406 2.52724 12.3966 2.38326 12.2334 2.26465C12.026 2.11404 11.7437 2.0109 11.2285 1.95508C10.7005 1.89789 10.0122 1.89649 9.02246 1.89649H6.55371C5.56395 1.89649 4.87569 1.89787 4.34766 1.95508C3.83242 2.01092 3.55022 2.11398 3.34278 2.26465C3.17953 2.38329 3.03564 2.52719 2.91699 2.69043C2.76642 2.89782 2.66325 3.18042 2.60742 3.69532C2.55027 4.22322 2.54883 4.9121 2.54883 5.90137V10.0986C2.54883 11.0878 2.55031 11.7768 2.60742 12.3047C2.66326 12.8196 2.76642 13.1032 2.91699 13.3105C3.03558 13.4736 3.17966 13.6178 3.34278 13.7363C3.5502 13.8869 3.83265 13.9901 4.34766 14.0459C4.87568 14.1031 5.56398 14.1035 6.55371 14.1035H8.08399C8.27443 14.6025 8.55077 15.0585 8.89551 15.4541H6.55371C5.59402 15.4541 4.81976 15.4546 4.20215 15.3877C3.57204 15.3194 3.02468 15.1738 2.54883 14.8281C2.27111 14.6263 2.02606 14.3813 1.82422 14.1035C1.47883 13.6278 1.33293 13.08 1.26465 12.4502C1.19783 11.8327 1.19922 11.0579 1.19922 10.0986V5.90137C1.19922 4.94206 1.1978 4.16727 1.26465 3.54981C1.33295 2.91984 1.47867 2.37225 1.82422 1.89649C2.02613 1.61864 2.27098 1.37379 2.54883 1.17188C3.02472 0.826181 3.57197 0.6806 4.20215 0.612307C4.81976 0.545393 5.594 0.546877 6.55371 0.546878H9.02246ZM9.19629 9.14649H4.5459V7.84571H9.19629V9.14649ZM11.0303 6.10645H4.5459V4.80567H11.0303V6.10645Z",fill:"currentColor"})]}),v5=({size:t=20,className:i})=>d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8659 2.05975C17.2603 2.05995 18.3913 3.19096 18.3914 4.58527V5.4874C18.3914 6.02747 18.2192 6.52672 17.9303 6.93735C17.9336 6.96524 17.9388 6.99318 17.9388 7.02195V12.8884C17.9388 13.6345 17.9395 14.2379 17.8996 14.7254C17.8642 15.1593 17.7936 15.5499 17.6373 15.9141L17.5654 16.0685C17.278 16.6328 16.8405 17.1046 16.3038 17.434L16.0679 17.5661C15.66 17.7739 15.2196 17.8598 14.7237 17.9003C14.2362 17.9401 13.6327 17.9405 12.8867 17.9405H7.11122C6.36511 17.9405 5.76171 17.9401 5.27418 17.9003C4.84051 17.8649 4.44949 17.7952 4.08545 17.6391L3.93104 17.5661C3.36673 17.2785 2.89392 16.8414 2.56465 16.3044L2.43245 16.0685C2.22473 15.6608 2.13878 15.2211 2.09825 14.7254C2.05841 14.2379 2.05912 13.6345 2.05912 12.8884V7.02195C2.05912 6.99284 2.06422 6.96449 2.06758 6.93629C1.77931 6.52592 1.60858 6.02687 1.60858 5.4874V4.58527C1.60876 3.19084 2.73962 2.05975 4.1341 2.05975H15.8659ZM16.4984 7.92936C16.296 7.98169 16.0847 8.01288 15.8659 8.01291H4.1341C3.91478 8.01291 3.70246 7.98194 3.49955 7.92936V12.8884C3.49955 13.6582 3.50053 14.1927 3.53445 14.608C3.56769 15.0146 3.62923 15.244 3.71635 15.415L3.7925 15.5514C3.98339 15.8627 4.25749 16.1165 4.58464 16.2833L4.72529 16.3435C4.88095 16.3993 5.08638 16.4402 5.39158 16.4651C5.80685 16.4991 6.34138 16.5001 7.11122 16.5001H12.8867C13.6564 16.5001 14.1911 16.499 14.6063 16.4651C15.0128 16.432 15.2423 16.3703 15.4133 16.2833L15.5508 16.2061C15.8618 16.0152 16.116 15.7419 16.2827 15.415L16.3429 15.2732C16.3985 15.1177 16.4396 14.9128 16.4645 14.608C16.4985 14.1927 16.4984 13.6583 16.4984 12.8884V7.92936ZM4.1341 3.50019C3.53511 3.50019 3.0492 3.98631 3.04902 4.58527V5.4874C3.04902 6.08649 3.535 6.57248 4.1341 6.57248H15.8659C16.4648 6.57228 16.951 6.08638 16.951 5.4874V4.58527C16.9509 3.98644 16.4647 3.50038 15.8659 3.50019H4.1341Z",fill:"currentColor"}),d.jsx("path",{d:"M12.7962 12.5661V11.0832H7.20548V12.5661L12.7962 12.5661Z",fill:"currentColor"})]}),C5="_root_1axg2_9",w5="_collapsed_1axg2_6",k5="_quietBars_1axg2_20",_5="_fading_1axg2_4",S5="_wide_1axg2_53",E5="_railIn_1axg2_64",b5="_iconButton_1axg2_66",j5="_newSession_1axg2_67",L5="_panelList_1axg2_68",N5="_regionArea_1axg2_69",I5="_footArea_1axg2_73",M5="_logoRow_1axg2_91",T5="_brand_1axg2_115",P5="_brandIdentity_1axg2_130",z5="_brandMark_1axg2_138",D5="_brandName_1axg2_145",R5="_fallbackBrandName_1axg2_157",A5="_toggle_1axg2_208",F5="_panelIcon_1axg2_208",O5="_railMark_1axg2_216",B5="_newSessionLabel_1axg2_290",$5="_panelRow_1axg2_308",H5="_panelActive_1axg2_330",V5="_panelGlyph_1axg2_341",U5="_panelTitle_1axg2_348",W5="_settingsArea_1axg2_396",q5="_footerActions_1axg2_397",Ve={root:C5,collapsed:w5,quietBars:k5,fading:_5,wide:S5,railIn:E5,iconButton:b5,newSession:j5,panelList:L5,regionArea:N5,footArea:I5,logoRow:M5,brand:T5,brandIdentity:P5,brandMark:z5,brandName:D5,fallbackBrandName:R5,toggle:A5,panelIcon:F5,railMark:O5,newSessionLabel:B5,panelRow:$5,panelActive:H5,panelGlyph:V5,panelTitle:U5,settingsArea:W5,footerActions:q5},Z5=150,Q5=2e3;function G5({id:t,label:i,wide:r,usePanelInfo:o,selectPanel:s,renderSlot:u}){const c=o(f=>f.activePanelId===t);return d.jsx(k1,{label:i,delayMs:500,disabled:r,children:d.jsxs("button",{type:"button",className:rt(Ve.panelRow,c&&Ve.panelActive),"aria-label":i,"aria-current":c?"page":void 0,onClick:()=>{s(t)},children:[d.jsx("span",{className:Ve.panelGlyph,"aria-hidden":"true",children:u("sidebar.panellist",{size:r?16:18,active:c},{only:t})}),r&&d.jsx("span",{className:rt(Ve.panelTitle,Ve.wide),children:i})]})})}function Y5({collapsed:t,width:i,startSession:r,toggleSidebar:o,selectPanel:s,usePanels:u,usePanelInfo:c,t:f,renderSlot:h}){const m=u(Z=>Z),[x,y]=M.useState(t);M.useEffect(()=>{if(!t){y(!1);return}const Z=window.setTimeout(()=>{y(!0)},Z5);return()=>{window.clearTimeout(Z)}},[t]);const v=!t||!x,C=M.useRef(i);t||(C.current=i);const k=M.useRef(!t);t||(k.current=!0);const N=M.useRef(null),[b,_]=M.useState(!1),T=M.useRef(void 0),I=()=>{T.current===void 0&&(T.current=window.setTimeout(()=>{T.current=void 0,_(!1)},Q5))},U=()=>{window.clearTimeout(T.current),T.current=void 0};return M.useEffect(()=>{if(!b)return;const Z=F=>{var ee;const W=(ee=N.current)==null?void 0:ee.getBoundingClientRect();if(W===void 0)return;F.clientX>=W.left&&F.clientX<W.right&&F.clientY>=W.top&&F.clientY<W.bottom?U():I()};return document.addEventListener("pointermove",Z),()=>{document.removeEventListener("pointermove",Z),U()}},[b]),d.jsxs("div",{ref:N,className:rt(Ve.root,!v&&Ve.collapsed,!v&&k.current&&Ve.railIn,t&&v&&Ve.fading,!b&&Ve.quietBars),style:v?{width:t?C.current:i}:void 0,onPointerEnter:()=>{U(),_(!0)},onPointerLeave:()=>{I()},children:[d.jsxs("div",{className:Ve.logoRow,children:[v&&d.jsx("button",{type:"button",className:rt(Ve.brand,Ve.wide),"aria-label":f("session.new.label"),onClick:()=>{r()},children:d.jsxs("span",{className:Ve.brandIdentity,"aria-hidden":"true",children:[d.jsx("span",{className:Ve.brandMark,children:h("sidebar.brand.mark",{size:24},{fallback:d.jsx(Zo,{size:24})})}),d.jsx("span",{className:Ve.brandName,children:h("sidebar.brand.name",{},{fallback:d.jsx("span",{className:Ve.fallbackBrandName,children:f("brand.localBuild")})})})]})}),d.jsx(k1,{label:f(t?"toggle.open":"toggle.collapse"),delayMs:500,children:d.jsxs("button",{type:"button",className:rt(Ve.iconButton,Ve.toggle),"aria-label":f(t?"toggle.open":"toggle.collapse"),onClick:()=>{o()},children:[!v&&d.jsx("span",{className:Ve.railMark,"aria-hidden":"true",children:h("sidebar.brand.mark",{size:24},{fallback:d.jsx(Zo,{size:24})})}),d.jsx(o5,{className:Ve.panelIcon,size:v?16:18})]})})]}),d.jsx(k1,{label:f("session.new.label"),delayMs:500,disabled:v,children:d.jsxs("button",{type:"button",className:Ve.newSession,"aria-label":f("session.new.label"),onClick:()=>{r()},children:[d.jsx(i5,{size:v?14:18}),v&&d.jsx("span",{className:rt(Ve.newSessionLabel,Ve.wide),children:f("session.new")})]})}),m.length>0&&d.jsx("nav",{className:Ve.panelList,"aria-label":f("panels.label"),children:m.map(({id:Z,label:F})=>d.jsx(G5,{id:Z,label:F,wide:v,usePanelInfo:c,selectPanel:s,renderSlot:h},Z))}),d.jsx("div",{className:Ve.regionArea,children:h("sidebar.workspaces",{wide:v,expandSidebar:()=>{t&&o()}})}),d.jsxs("div",{className:Ve.footArea,children:[d.jsx("div",{className:Ve.footerActions,children:h("sidebar.footer.action",{wide:v})}),d.jsx("div",{className:Ve.settingsArea,children:h("sidebar.settings",{wide:v})})]})]})}const K5="_root_xhk35_5",X5="_stack_xhk35_15",J5="_headline_xhk35_29",e6="_titleGroup_xhk35_51",t6="_previewBadge_xhk35_62",n6="_logoFrame_xhk35_77",r6="_logo_xhk35_77",i6="_body_xhk35_98",l6="_workspace_xhk35_114",o6="_workspaceLabel_xhk35_160",xn={root:K5,stack:X5,headline:J5,titleGroup:e6,previewBadge:t6,logoFrame:n6,logo:r6,body:i6,workspace:l6,workspaceLabel:o6};function s6({t,renderSlot:i,children:r}){return d.jsxs("div",{className:xn.root,children:[d.jsxs("div",{className:xn.stack,children:[d.jsxs("div",{className:xn.headline,children:[d.jsx("span",{className:xn.logoFrame,children:i("conversation.hero.brand.mark",{size:34,className:xn.logo},{fallback:d.jsx(Zo,{size:34,className:xn.logo})})}),d.jsxs("span",{className:xn.titleGroup,children:[d.jsx("span",{children:t("hero.headline")}),d.jsx("span",{className:xn.previewBadge,children:t("hero.preview")})]})]}),d.jsx("div",{className:xn.body})]}),r]})}const a6="_root_5w0r3_1",u6="_header_5w0r3_42",c6="_titleRow_5w0r3_56",d6="_titleCluster_5w0r3_63",f6="_crumbs_5w0r3_71",p6="_crumb_5w0r3_71",h6="_crumbCurrent_5w0r3_118",m6="_headerActions_5w0r3_124",g6="_tabs_5w0r3_161",y6="_tab_5w0r3_38",x6="_tabActive_5w0r3_199",v6="_viewArea_5w0r3_207",C6="_composerStack_5w0r3_294",w6="_composerSeat_5w0r3_305",k6="_body_5w0r3_215",_6="_scrollBody_5w0r3_341",S6="_composerHero_5w0r3_442",E6="_heroWorkspaceRow_5w0r3_455",ut={root:a6,header:u6,titleRow:c6,titleCluster:d6,crumbs:f6,crumb:p6,crumbCurrent:h6,headerActions:m6,tabs:g6,tab:y6,tabActive:x6,viewArea:v6,composerStack:C6,composerSeat:w6,body:k6,scrollBody:_6,composerHero:S6,heroWorkspaceRow:E6},b6="_root_6nf6e_2",j6="_hero_6nf6e_20",L6="_card_6nf6e_39",N6="_scroll_6nf6e_125",I6="_grow_6nf6e_143",M6="_row_6nf6e_248",T6="_tools_6nf6e_266",P6="_trailing_6nf6e_268",z6="_add_6nf6e_297",D6="_primary_6nf6e_355",sn={root:b6,hero:j6,card:L6,scroll:N6,grow:I6,row:M6,tools:T6,trailing:P6,add:z6,primary:D6},R6="_root_14jhb_1",A6="_scroll_14jhb_9",F6="_column_14jhb_37",Ya={root:R6,scroll:A6,column:F6},O6="_userRow_1dwc7_4",B6="_userStack_1dwc7_11",$6="_bubble_1dwc7_23",H6="_attachmentRow_1dwc7_296",V6="_fileCard_1dwc7_304",U6="_fileIcon_1dwc7_318",W6="_fileContent_1dwc7_324",q6="_fileName_1dwc7_331",Z6="_fileMeta_1dwc7_341",$n={userRow:O6,userStack:B6,bubble:$6,attachmentRow:H6,fileCard:V6,fileIcon:U6,fileContent:W6,fileName:q6,fileMeta:Z6};function Q6(t,i){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const G6=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Y6=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,K6={};function i2(t,i){return(K6.jsx?Y6:G6).test(t)}const X6=/[ \t\n\f\r]/g;function J6(t){return typeof t=="object"?t.type==="text"?l2(t.value):!1:l2(t)}function l2(t){return t.replace(X6,"")===""}class Cl{constructor(i,r,o){this.normal=r,this.property=i,o&&(this.space=o)}}Cl.prototype.normal={};Cl.prototype.property={};Cl.prototype.space=void 0;function d3(t,i){const r={},o={};for(const s of t)Object.assign(r,s.property),Object.assign(o,s.normal);return new Cl(r,o,i)}function E1(t){return t.toLowerCase()}class qt{constructor(i,r){this.attribute=r,this.property=i}}qt.prototype.attribute="";qt.prototype.booleanish=!1;qt.prototype.boolean=!1;qt.prototype.commaOrSpaceSeparated=!1;qt.prototype.commaSeparated=!1;qt.prototype.defined=!1;qt.prototype.mustUseProperty=!1;qt.prototype.number=!1;qt.prototype.overloadedBoolean=!1;qt.prototype.property="";qt.prototype.spaceSeparated=!1;qt.prototype.space=void 0;let e8=0;const Le=Or(),dt=Or(),b1=Or(),oe=Or(),Qe=Or(),Ar=Or(),Kt=Or();function Or(){return 2**++e8}const j1=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:dt,commaOrSpaceSeparated:Kt,commaSeparated:Ar,number:oe,overloadedBoolean:b1,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),Ka=Object.keys(j1);class W1 extends qt{constructor(i,r,o,s){let u=-1;if(super(i,r),o2(this,"space",s),typeof o=="number")for(;++u<Ka.length;){const c=Ka[u];o2(this,Ka[u],(o&j1[c])===j1[c])}}}W1.prototype.defined=!0;function o2(t,i,r){r&&(t[i]=r)}function gi(t){const i={},r={};for(const[o,s]of Object.entries(t.properties)){const u=new W1(o,t.transform(t.attributes||{},o),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(o)&&(u.mustUseProperty=!0),i[o]=u,r[E1(o)]=o,r[E1(u.attribute)]=o}return new Cl(i,r,t.space)}const f3=gi({properties:{ariaActiveDescendant:null,ariaAtomic:dt,ariaAutoComplete:null,ariaBusy:dt,ariaChecked:dt,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:Qe,ariaCurrent:null,ariaDescribedBy:Qe,ariaDetails:null,ariaDisabled:dt,ariaDropEffect:Qe,ariaErrorMessage:null,ariaExpanded:dt,ariaFlowTo:Qe,ariaGrabbed:dt,ariaHasPopup:null,ariaHidden:dt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qe,ariaLevel:oe,ariaLive:null,ariaModal:dt,ariaMultiLine:dt,ariaMultiSelectable:dt,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:dt,ariaReadOnly:dt,ariaRelevant:null,ariaRequired:dt,ariaRoleDescription:Qe,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:dt,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null},transform(t,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()}});function p3(t,i){return i in t?t[i]:i}function h3(t,i){return p3(t,i.toLowerCase())}const t8=gi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ar,acceptCharset:Qe,accessKey:Qe,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alpha:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:Qe,autoFocus:Le,autoPlay:Le,blocking:Qe,capture:null,charSet:null,checked:Le,cite:null,className:Qe,closedBy:null,colorSpace:null,cols:oe,colSpan:oe,command:null,commandFor:null,content:null,contentEditable:dt,controls:Le,controlsList:Qe,coords:oe|Ar,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:b1,draggable:dt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:Qe,height:oe,hidden:b1,high:oe,href:null,hrefLang:null,htmlFor:Qe,httpEquiv:Qe,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:Qe,itemRef:Qe,itemScope:Le,itemType:Qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Le,optimum:oe,pattern:null,ping:Qe,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:Qe,required:Le,reversed:Le,rows:oe,rowSpan:oe,sandbox:Qe,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootCustomElementRegistry:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shadowRootSerializable:Le,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:dt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:dt,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:dt,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Le,disablePictureInPicture:Le,disableRemotePlayback:Le,exportParts:Ar,part:Qe,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:h3}),n8=gi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Kt,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:Qe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ar,g2:Ar,glyphName:Ar,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:Kt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:oe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kt,rev:Kt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kt,requiredFeatures:Kt,requiredFonts:Kt,requiredFormats:Kt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:Kt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kt,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:p3}),m3=gi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,i){return"xlink:"+i.slice(5).toLowerCase()}}),g3=gi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:h3}),y3=gi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,i){return"xml:"+i.slice(3).toLowerCase()}}),r8={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},i8=/[A-Z]/g,s2=/-[a-z]/g,l8=/^data[-\w.:]+$/i;function o8(t,i){const r=E1(i);let o=i,s=qt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&l8.test(i)){if(i.charAt(4)==="-"){const u=i.slice(5).replace(s2,a8);o="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=i.slice(4);if(!s2.test(u)){let c=u.replace(i8,s8);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}s=W1}return new s(o,i)}function s8(t){return"-"+t.toLowerCase()}function a8(t){return t.charAt(1).toUpperCase()}const u8=d3([f3,t8,m3,g3,y3],"html"),q1=d3([f3,n8,m3,g3,y3],"svg");function c8(t){return t.join(" ").trim()}var ui={},Xa,a2;function d8(){if(a2)return Xa;a2=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
47
- `,m="/",x="*",y="",v="comment",C="declaration";function k(b,_){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];_=_||{};var T=1,I=1;function U(A){var D=A.match(i);D&&(T+=D.length);var ie=A.lastIndexOf(h);I=~ie?A.length-ie:I+A.length}function Z(){var A={line:T,column:I};return function(D){return D.position=new F(A),ee(),D}}function F(A){this.start=A,this.end={line:T,column:I},this.source=_.source}F.prototype.content=b;function W(A){var D=new Error(_.source+":"+T+":"+I+": "+A);if(D.reason=A,D.filename=_.source,D.line=T,D.column=I,D.source=b,!_.silent)throw D}function Y(A){var D=A.exec(b);if(D){var ie=D[0];return U(ie),b=b.slice(ie.length),D}}function ee(){Y(r)}function S(A){var D;for(A=A||[];D=$();)D!==!1&&A.push(D);return A}function $(){var A=Z();if(!(m!=b.charAt(0)||x!=b.charAt(1))){for(var D=2;y!=b.charAt(D)&&(x!=b.charAt(D)||m!=b.charAt(D+1));)++D;if(D+=2,y===b.charAt(D-1))return W("End of comment missing");var ie=b.slice(2,D-2);return I+=2,U(ie),b=b.slice(D),I+=2,A({type:v,comment:ie})}}function K(){var A=Z(),D=Y(o);if(D){if($(),!Y(s))return W("property missing ':'");var ie=Y(u),ce=A({type:C,property:N(D[0].replace(t,y)),value:ie?N(ie[0].replace(t,y)):y});return Y(c),ce}}function q(){var A=[];S(A);for(var D;D=K();)D!==!1&&(A.push(D),S(A));return A}return ee(),q()}function N(b){return b?b.replace(f,y):y}return Xa=k,Xa}var u2;function f8(){if(u2)return ui;u2=1;var t=ui&&ui.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ui,"__esModule",{value:!0}),ui.default=r;const i=t(d8());function r(o,s){let u=null;if(!o||typeof o!="string")return u;const c=(0,i.default)(o),f=typeof s=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:m,value:x}=h;f?s(m,x,h):x&&(u=u||{},u[m]=x)}),u}return ui}var rl={},c2;function p8(){if(c2)return rl;c2=1,Object.defineProperty(rl,"__esModule",{value:!0}),rl.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,u=function(m){return!m||r.test(m)||t.test(m)},c=function(m,x){return x.toUpperCase()},f=function(m,x){return"".concat(x,"-")},h=function(m,x){return x===void 0&&(x={}),u(m)?m:(m=m.toLowerCase(),x.reactCompat?m=m.replace(s,f):m=m.replace(o,f),m.replace(i,c))};return rl.camelCase=h,rl}var il,d2;function h8(){if(d2)return il;d2=1;var t=il&&il.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},i=t(f8()),r=p8();function o(s,u){var c={};return!s||typeof s!="string"||(0,i.default)(s,function(f,h){f&&h&&(c[(0,r.camelCase)(f,u)]=h)}),c}return o.default=o,il=o,il}var m8=h8();const g8=O1(m8),x3=v3("end"),Z1=v3("start");function v3(t){return i;function i(r){const o=r&&r.position&&r.position[t]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function y8(t){const i=Z1(t),r=x3(t);if(i&&r)return{start:i,end:r}}function fl(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?f2(t.position):"start"in t||"end"in t?f2(t):"line"in t||"column"in t?L1(t):""}function L1(t){return p2(t&&t.line)+":"+p2(t&&t.column)}function f2(t){return L1(t&&t.start)+"-"+L1(t&&t.end)}function p2(t){return t&&typeof t=="number"?t:1}class Nt extends Error{constructor(i,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let s="",u={},c=!1;if(r&&("line"in r&&"column"in r?u={place:r}:"start"in r&&"end"in r?u={place:r}:"type"in r?u={ancestors:[r],place:r.position}:u={...r}),typeof i=="string"?s=i:!u.cause&&i&&(c=!0,s=i.message,u.cause=i),!u.ruleId&&!u.source&&typeof o=="string"){const h=o.indexOf(":");h===-1?u.ruleId=o:(u.source=o.slice(0,h),u.ruleId=o.slice(h+1))}if(!u.place&&u.ancestors&&u.ancestors){const h=u.ancestors[u.ancestors.length-1];h&&(u.place=h.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=fl(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Nt.prototype.file="";Nt.prototype.name="";Nt.prototype.reason="";Nt.prototype.message="";Nt.prototype.stack="";Nt.prototype.column=void 0;Nt.prototype.line=void 0;Nt.prototype.ancestors=void 0;Nt.prototype.cause=void 0;Nt.prototype.fatal=void 0;Nt.prototype.place=void 0;Nt.prototype.ruleId=void 0;Nt.prototype.source=void 0;const Q1={}.hasOwnProperty,x8=new Map,v8=/[A-Z]/g,C8=new Set(["table","tbody","thead","tfoot","tr"]),w8=new Set(["td","th"]),C3="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function k8(t,i){if(!i||i.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=i.filePath||void 0;let o;if(i.development){if(typeof i.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=I8(r,i.jsxDEV)}else{if(typeof i.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof i.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=N8(r,i.jsx,i.jsxs)}const s={Fragment:i.Fragment,ancestors:[],components:i.components||{},create:o,elementAttributeNameCase:i.elementAttributeNameCase||"react",evaluater:i.createEvaluater?i.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:i.ignoreInvalidStyle||!1,passKeys:i.passKeys!==!1,passNode:i.passNode||!1,schema:i.space==="svg"?q1:u8,stylePropertyNameCase:i.stylePropertyNameCase||"dom",tableCellAlignToStyle:i.tableCellAlignToStyle!==!1},u=w3(s,t,void 0);return u&&typeof u!="string"?u:s.create(t,s.Fragment,{children:u||void 0},void 0)}function w3(t,i,r){if(i.type==="element")return _8(t,i,r);if(i.type==="mdxFlowExpression"||i.type==="mdxTextExpression")return S8(t,i);if(i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement")return b8(t,i,r);if(i.type==="mdxjsEsm")return E8(t,i);if(i.type==="root")return j8(t,i,r);if(i.type==="text")return L8(t,i)}function _8(t,i,r){const o=t.schema;let s=o;i.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=q1,t.schema=s),t.ancestors.push(i);const u=_3(t,i.tagName,!1),c=M8(t,i);let f=Y1(t,i);return C8.has(i.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!J6(h):!0})),k3(t,c,u,i),G1(c,f),t.ancestors.pop(),t.schema=o,t.create(i,u,c,r)}function S8(t,i){if(i.data&&i.data.estree&&t.evaluater){const o=i.data.estree.body[0];return o.type,t.evaluater.evaluateExpression(o.expression)}yl(t,i.position)}function E8(t,i){if(i.data&&i.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(i.data.estree);yl(t,i.position)}function b8(t,i,r){const o=t.schema;let s=o;i.name==="svg"&&o.space==="html"&&(s=q1,t.schema=s),t.ancestors.push(i);const u=i.name===null?t.Fragment:_3(t,i.name,!0),c=T8(t,i),f=Y1(t,i);return k3(t,c,u,i),G1(c,f),t.ancestors.pop(),t.schema=o,t.create(i,u,c,r)}function j8(t,i,r){const o={};return G1(o,Y1(t,i)),t.create(i,t.Fragment,o,r)}function L8(t,i){return i.value}function k3(t,i,r,o){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(i.node=o)}function G1(t,i){if(i.length>0){const r=i.length>1?i:i[0];r&&(t.children=r)}}function N8(t,i,r){return o;function o(s,u,c,f){const m=Array.isArray(c.children)?r:i;return f?m(u,c,f):m(u,c)}}function I8(t,i){return r;function r(o,s,u,c){const f=Array.isArray(u.children),h=Z1(o);return i(s,u,c,f,{columnNumber:h?h.column-1:void 0,fileName:t,lineNumber:h?h.line:void 0},void 0)}}function M8(t,i){const r={};let o,s;for(s in i.properties)if(s!=="children"&&Q1.call(i.properties,s)){const u=P8(t,s,i.properties[s]);if(u){const[c,f]=u;t.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&w8.has(i.tagName)?o=f:r[c]=f}}if(o){const u=r.style||(r.style={});u[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function T8(t,i){const r={};for(const o of i.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&t.evaluater){const u=o.data.estree.body[0];u.type;const c=u.expression;c.type;const f=c.properties[0];f.type,Object.assign(r,t.evaluater.evaluateExpression(f.argument))}else yl(t,i.position);else{const s=o.name;let u;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&t.evaluater){const f=o.value.data.estree.body[0];f.type,u=t.evaluater.evaluateExpression(f.expression)}else yl(t,i.position);else u=o.value===null?!0:o.value;r[s]=u}return r}function Y1(t,i){const r=[];let o=-1;const s=t.passKeys?new Map:x8;for(;++o<i.children.length;){const u=i.children[o];let c;if(t.passKeys){const h=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(h){const m=s.get(h)||0;c=h+"-"+m,s.set(h,m+1)}}const f=w3(t,u,c);f!==void 0&&r.push(f)}return r}function P8(t,i,r){const o=o8(t.schema,i);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?Q6(r):c8(r)),o.property==="style"){let s=typeof r=="object"?r:z8(t,String(r));return t.stylePropertyNameCase==="css"&&(s=D8(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&o.space?r8[o.property]||o.property:o.attribute,r]}}function z8(t,i){try{return g8(i,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const o=r,s=new Nt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=C3+"#cannot-parse-style-attribute",s}}function _3(t,i,r){let o;if(!r)o={type:"Literal",value:i};else if(i.includes(".")){const s=i.split(".");let u=-1,c;for(;++u<s.length;){const f=i2(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}o=c}else o=i2(i)&&!/^[a-z]/.test(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};if(o.type==="Literal"){const s=o.value;return Q1.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(o);yl(t)}function yl(t,i){const r=new Nt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:i,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=C3+"#cannot-handle-mdx-estrees-without-createevaluater",r}function D8(t){const i={};let r;for(r in t)Q1.call(t,r)&&(i[R8(r)]=t[r]);return i}function R8(t){let i=t.replace(v8,A8);return i.slice(0,3)==="ms-"&&(i="-"+i),i}function A8(t){return"-"+t.toLowerCase()}const Ja={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},F8={};function K1(t,i){const r=F8,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return S3(t,o,s)}function S3(t,i,r){if(O8(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(i&&"alt"in t&&t.alt)return t.alt;if("children"in t)return h2(t.children,i,r)}return Array.isArray(t)?h2(t,i,r):""}function h2(t,i,r){const o=[];let s=-1;for(;++s<t.length;)o[s]=S3(t[s],i,r);return o.join("")}function O8(t){return!!(t&&typeof t=="object")}const m2=document.createElement("i");function X1(t){const i="&"+t+";";m2.innerHTML=i;const r=m2.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===i?!1:r}function Xt(t,i,r,o){const s=t.length;let u=0,c;if(i<0?i=-i>s?0:s+i:i=i>s?s:i,r=r>0?r:0,o.length<1e4)c=Array.from(o),c.unshift(i,r),t.splice(...c);else for(r&&t.splice(i,r);u<o.length;)c=o.slice(u,u+1e4),c.unshift(i,0),t.splice(...c),u+=1e4,i+=1e4}function un(t,i){return t.length>0?(Xt(t,t.length,0,i),t):i}const g2={}.hasOwnProperty;function E3(t){const i={};let r=-1;for(;++r<t.length;)B8(i,t[r]);return i}function B8(t,i){let r;for(r in i){const s=(g2.call(t,r)?t[r]:void 0)||(t[r]={}),u=i[r];let c;if(u)for(c in u){g2.call(s,c)||(s[c]=[]);const f=u[c];$8(s[c],Array.isArray(f)?f:f?[f]:[])}}}function $8(t,i){let r=-1;const o=[];for(;++r<i.length;)(i[r].add==="after"?t:o).push(i[r]);Xt(t,0,0,o)}function b3(t,i){const r=Number.parseInt(t,i);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function vn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const At=pr(/[A-Za-z]/),Lt=pr(/[\dA-Za-z]/),H8=pr(/[#-'*+\--9=?A-Z^-~]/);function Go(t){return t!==null&&(t<32||t===127)}const N1=pr(/\d/),V8=pr(/[\dA-Fa-f]/),U8=pr(/[!-/:-@[-`{-~]/);function we(t){return t!==null&&t<-2}function Ge(t){return t!==null&&(t<0||t===32)}function De(t){return t===-2||t===-1||t===32}const ns=pr(new RegExp("\\p{P}|\\p{S}","u")),Fr=pr(/\s/);function pr(t){return i;function i(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function yi(t){const i=[];let r=-1,o=0,s=0;for(;++r<t.length;){const u=t.charCodeAt(r);let c="";if(u===37&&Lt(t.charCodeAt(r+1))&&Lt(t.charCodeAt(r+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const f=t.charCodeAt(r+1);u<56320&&f>56319&&f<57344?(c=String.fromCharCode(u,f),s=1):c="�"}else c=String.fromCharCode(u);c&&(i.push(t.slice(o,r),encodeURIComponent(c)),o=r+s+1,c=""),s&&(r+=s,s=0)}return i.join("")+t.slice(o)}function Re(t,i,r,o){const s=o?o-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(h){return De(h)?(t.enter(r),f(h)):i(h)}function f(h){return De(h)&&u++<s?(t.consume(h),f):(t.exit(r),i(h))}}const W8={tokenize:q8};function q8(t){const i=t.attempt(this.parser.constructs.contentInitial,o,s);let r;return i;function o(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),Re(t,i,"linePrefix")}function s(f){return t.enter("paragraph"),u(f)}function u(f){const h=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,c(f)}function c(f){if(f===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(f);return}return we(f)?(t.consume(f),t.exit("chunkText"),u):(t.consume(f),c)}}const Z8={tokenize:Q8},y2={tokenize:G8};function Q8(t){const i=this,r=[];let o=0,s,u,c;return f;function f(I){if(o<r.length){const U=r[o];return i.containerState=U[1],t.attempt(U[0].continuation,h,m)(I)}return m(I)}function h(I){if(o++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,s&&T();const U=i.events.length;let Z=U,F;for(;Z--;)if(i.events[Z][0]==="exit"&&i.events[Z][1].type==="chunkFlow"){F=i.events[Z][1].end;break}_(o);let W=U;for(;W<i.events.length;)i.events[W][1].end={...F},W++;return Xt(i.events,Z+1,0,i.events.slice(U)),i.events.length=W,m(I)}return f(I)}function m(I){if(o===r.length){if(!s)return v(I);if(s.currentConstruct&&s.currentConstruct.concrete)return k(I);i.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return i.containerState={},t.check(y2,x,y)(I)}function x(I){return s&&T(),_(o),v(I)}function y(I){return i.parser.lazy[i.now().line]=o!==r.length,c=i.now().offset,k(I)}function v(I){return i.containerState={},t.attempt(y2,C,k)(I)}function C(I){return o++,r.push([i.currentConstruct,i.containerState]),v(I)}function k(I){if(I===null){s&&T(),_(0),t.consume(I);return}return s=s||i.parser.flow(i.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:u}),N(I)}function N(I){if(I===null){b(t.exit("chunkFlow"),!0),_(0),t.consume(I);return}return we(I)?(t.consume(I),b(t.exit("chunkFlow")),o=0,i.interrupt=void 0,f):(t.consume(I),N)}function b(I,U){const Z=i.sliceStream(I);if(U&&Z.push(null),I.previous=u,u&&(u.next=I),u=I,s.defineSkip(I.start),s.write(Z),i.parser.lazy[I.start.line]){let F=s.events.length;for(;F--;)if(s.events[F][1].start.offset<c&&(!s.events[F][1].end||s.events[F][1].end.offset>c))return;const W=i.events.length;let Y=W,ee,S;for(;Y--;)if(i.events[Y][0]==="exit"&&i.events[Y][1].type==="chunkFlow"){if(ee){S=i.events[Y][1].end;break}ee=!0}for(_(o),F=W;F<i.events.length;)i.events[F][1].end={...S},F++;Xt(i.events,Y+1,0,i.events.slice(W)),i.events.length=F}}function _(I){let U=r.length;for(;U-- >I;){const Z=r[U];i.containerState=Z[1],Z[0].exit.call(i,t)}r.length=I}function T(){s.write([null]),u=void 0,s=void 0,i.containerState._closeFlow=void 0}}function G8(t,i,r){return Re(t,t.attempt(this.parser.constructs.document,i,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function mi(t){if(t===null||Ge(t)||Fr(t))return 1;if(ns(t))return 2}function rs(t,i,r){const o=[];let s=-1;for(;++s<t.length;){const u=t[s].resolveAll;u&&!o.includes(u)&&(i=u(i,r),o.push(u))}return i}const I1={name:"attention",resolveAll:Y8,tokenize:K8};function Y8(t,i){let r=-1,o,s,u,c,f,h,m,x;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(o=r;o--;)if(t[o][0]==="exit"&&t[o][1].type==="attentionSequence"&&t[o][1]._open&&i.sliceSerialize(t[o][1]).charCodeAt(0)===i.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[o][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[o][1].end.offset-t[o][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;h=t[o][1].end.offset-t[o][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const y={...t[o][1].end},v={...t[r][1].start};x2(y,-h),x2(v,h),c={type:h>1?"strongSequence":"emphasisSequence",start:y,end:{...t[o][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:v},u={type:h>1?"strongText":"emphasisText",start:{...t[o][1].end},end:{...t[r][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},t[o][1].end={...c.start},t[r][1].start={...f.end},m=[],t[o][1].end.offset-t[o][1].start.offset&&(m=un(m,[["enter",t[o][1],i],["exit",t[o][1],i]])),m=un(m,[["enter",s,i],["enter",c,i],["exit",c,i],["enter",u,i]]),m=un(m,rs(i.parser.constructs.insideSpan.null,t.slice(o+1,r),i)),m=un(m,[["exit",u,i],["enter",f,i],["exit",f,i],["exit",s,i]]),t[r][1].end.offset-t[r][1].start.offset?(x=2,m=un(m,[["enter",t[r][1],i],["exit",t[r][1],i]])):x=0,Xt(t,o-1,r-o+3,m),r=o+m.length-x-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function K8(t,i){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,s=mi(o);let u;return c;function c(h){return u=h,t.enter("attentionSequence"),f(h)}function f(h){if(h===u)return t.consume(h),f;const m=t.exit("attentionSequence"),x=mi(h),y=!x||x===2&&s||r.includes(h),v=!s||s===2&&x||r.includes(o);return m._open=!!(u===42?y:y&&(s||!v)),m._close=!!(u===42?v:v&&(x||!y)),i(h)}}function x2(t,i){t.column+=i,t.offset+=i,t._bufferIndex+=i}const X8={name:"autolink",tokenize:J8};function J8(t,i,r){let o=0;return s;function s(C){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),u}function u(C){return At(C)?(t.consume(C),c):C===64?r(C):m(C)}function c(C){return C===43||C===45||C===46||Lt(C)?(o=1,f(C)):m(C)}function f(C){return C===58?(t.consume(C),o=0,h):(C===43||C===45||C===46||Lt(C))&&o++<32?(t.consume(C),f):(o=0,m(C))}function h(C){return C===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),i):C===null||C===32||C===60||Go(C)?r(C):(t.consume(C),h)}function m(C){return C===64?(t.consume(C),x):H8(C)?(t.consume(C),m):r(C)}function x(C){return Lt(C)?y(C):r(C)}function y(C){return C===46?(t.consume(C),o=0,x):C===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),i):v(C)}function v(C){if((C===45||Lt(C))&&o++<63){const k=C===45?v:y;return t.consume(C),k}return r(C)}}const wl={partial:!0,tokenize:ep};function ep(t,i,r){return o;function o(u){return De(u)?Re(t,s,"linePrefix")(u):s(u)}function s(u){return u===null||we(u)?i(u):r(u)}}const j3={continuation:{tokenize:np},exit:rp,name:"blockQuote",tokenize:tp};function tp(t,i,r){const o=this;return s;function s(c){if(c===62){const f=o.containerState;return f.open||(t.enter("blockQuote",{_container:!0}),f.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),u}return r(c)}function u(c){return De(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),i):(t.exit("blockQuotePrefix"),i(c))}}function np(t,i,r){const o=this;return s;function s(c){return De(c)?Re(t,u,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return t.attempt(j3,i,r)(c)}}function rp(t){t.exit("blockQuote")}const L3={name:"characterEscape",tokenize:ip};function ip(t,i,r){return o;function o(u){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(u),t.exit("escapeMarker"),s}function s(u){return U8(u)?(t.enter("characterEscapeValue"),t.consume(u),t.exit("characterEscapeValue"),t.exit("characterEscape"),i):r(u)}}const N3={name:"characterReference",tokenize:lp};function lp(t,i,r){const o=this;let s=0,u,c;return f;function f(y){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),h}function h(y){return y===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(y),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),u=31,c=Lt,x(y))}function m(y){return y===88||y===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(y),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),u=6,c=V8,x):(t.enter("characterReferenceValue"),u=7,c=N1,x(y))}function x(y){if(y===59&&s){const v=t.exit("characterReferenceValue");return c===Lt&&!X1(o.sliceSerialize(v))?r(y):(t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),t.exit("characterReference"),i)}return c(y)&&s++<u?(t.consume(y),x):r(y)}}const v2={partial:!0,tokenize:sp},C2={concrete:!0,name:"codeFenced",tokenize:op};function op(t,i,r){const o=this,s={partial:!0,tokenize:Z};let u=0,c=0,f;return h;function h(F){return m(F)}function m(F){const W=o.events[o.events.length-1];return u=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,f=F,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),x(F)}function x(F){return F===f?(c++,t.consume(F),x):c<3?r(F):(t.exit("codeFencedFenceSequence"),De(F)?Re(t,y,"whitespace")(F):y(F))}function y(F){return F===null||we(F)?(t.exit("codeFencedFence"),o.interrupt?i(F):t.check(v2,N,U)(F)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(F))}function v(F){return F===null||we(F)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),y(F)):De(F)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Re(t,C,"whitespace")(F)):F===96&&F===f?r(F):(t.consume(F),v)}function C(F){return F===null||we(F)?y(F):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),k(F))}function k(F){return F===null||we(F)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),y(F)):F===96&&F===f?r(F):(t.consume(F),k)}function N(F){return t.attempt(s,U,b)(F)}function b(F){return t.enter("lineEnding"),t.consume(F),t.exit("lineEnding"),_}function _(F){return u>0&&De(F)?Re(t,T,"linePrefix",u+1)(F):T(F)}function T(F){return F===null||we(F)?t.check(v2,N,U)(F):(t.enter("codeFlowValue"),I(F))}function I(F){return F===null||we(F)?(t.exit("codeFlowValue"),T(F)):(t.consume(F),I)}function U(F){return t.exit("codeFenced"),i(F)}function Z(F,W,Y){let ee=0;return S;function S(D){return F.enter("lineEnding"),F.consume(D),F.exit("lineEnding"),$}function $(D){return F.enter("codeFencedFence"),De(D)?Re(F,K,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):K(D)}function K(D){return D===f?(F.enter("codeFencedFenceSequence"),q(D)):Y(D)}function q(D){return D===f?(ee++,F.consume(D),q):ee>=c?(F.exit("codeFencedFenceSequence"),De(D)?Re(F,A,"whitespace")(D):A(D)):Y(D)}function A(D){return D===null||we(D)?(F.exit("codeFencedFence"),W(D)):Y(D)}}}function sp(t,i,r){const o=this;return s;function s(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),u)}function u(c){return o.parser.lazy[o.now().line]?r(c):i(c)}}const e1={name:"codeIndented",tokenize:up},ap={partial:!0,tokenize:cp};function up(t,i,r){const o=this;return s;function s(m){return t.enter("codeIndented"),Re(t,u,"linePrefix",5)(m)}function u(m){const x=o.events[o.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?c(m):r(m)}function c(m){return m===null?h(m):we(m)?t.attempt(ap,c,h)(m):(t.enter("codeFlowValue"),f(m))}function f(m){return m===null||we(m)?(t.exit("codeFlowValue"),c(m)):(t.consume(m),f)}function h(m){return t.exit("codeIndented"),i(m)}}function cp(t,i,r){const o=this;return s;function s(c){return o.parser.lazy[o.now().line]?r(c):we(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):Re(t,u,"linePrefix",5)(c)}function u(c){const f=o.events[o.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?i(c):we(c)?s(c):r(c)}}const dp={name:"codeText",previous:pp,resolve:fp,tokenize:hp};function fp(t){let i=t.length-4,r=3,o,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[i][1].type==="lineEnding"||t[i][1].type==="space")){for(o=r;++o<i;)if(t[o][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[i][1].type="codeTextPadding",r+=2,i-=2;break}}for(o=r-1,i++;++o<=i;)s===void 0?o!==i&&t[o][1].type!=="lineEnding"&&(s=o):(o===i||t[o][1].type==="lineEnding")&&(t[s][1].type="codeTextData",o!==s+2&&(t[s][1].end=t[o-1][1].end,t.splice(s+2,o-s-2),i-=o-s-2,o=s+2),s=void 0);return t}function pp(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function hp(t,i,r){let o=0,s,u;return c;function c(y){return t.enter("codeText"),t.enter("codeTextSequence"),f(y)}function f(y){return y===96?(t.consume(y),o++,f):(t.exit("codeTextSequence"),h(y))}function h(y){return y===null?r(y):y===32?(t.enter("space"),t.consume(y),t.exit("space"),h):y===96?(u=t.enter("codeTextSequence"),s=0,x(y)):we(y)?(t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),h):(t.enter("codeTextData"),m(y))}function m(y){return y===null||y===32||y===96||we(y)?(t.exit("codeTextData"),h(y)):(t.consume(y),m)}function x(y){return y===96?(t.consume(y),s++,x):s===o?(t.exit("codeTextSequence"),t.exit("codeText"),i(y)):(u.type="codeTextData",m(y))}}class mp{constructor(i){this.left=i?[...i]:[],this.right=[]}get(i){if(i<0||i>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+i+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return i<this.left.length?this.left[i]:this.right[this.right.length-i+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(i,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(i,o):i>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(i,r,o){const s=r||0;this.setCursor(Math.trunc(i));const u=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&ll(this.left,o),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(i){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(i)}pushMany(i){this.setCursor(Number.POSITIVE_INFINITY),ll(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),ll(this.right,i.reverse())}setCursor(i){if(!(i===this.left.length||i>this.left.length&&this.right.length===0||i<0&&this.left.length===0))if(i<this.left.length){const r=this.left.splice(i,Number.POSITIVE_INFINITY);ll(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);ll(this.left,r.reverse())}}}function ll(t,i){let r=0;if(i.length<1e4)t.push(...i);else for(;r<i.length;)t.push(...i.slice(r,r+1e4)),r+=1e4}function I3(t){const i={};let r=-1,o,s,u,c,f,h,m;const x=new mp(t);for(;++r<x.length;){for(;r in i;)r=i[r];if(o=x.get(r),r&&o[1].type==="chunkFlow"&&x.get(r-1)[1].type==="listItemPrefix"&&(h=o[1]._tokenizer.events,u=0,u<h.length&&h[u][1].type==="lineEndingBlank"&&(u+=2),u<h.length&&h[u][1].type==="content"))for(;++u<h.length&&h[u][1].type!=="content";)h[u][1].type==="chunkText"&&(h[u][1]._isInFirstContentOfListItem=!0,u++);if(o[0]==="enter")o[1].contentType&&(Object.assign(i,gp(x,r)),r=i[r],m=!0);else if(o[1]._container){for(u=r,s=void 0;u--;)if(c=x.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(x.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(o[1].end={...x.get(s)[1].start},f=x.slice(s,r),f.unshift(o),x.splice(s,r-s+1,f))}}return Xt(t,0,Number.POSITIVE_INFINITY,x.slice(0)),!m}function gp(t,i){const r=t.get(i)[1],o=t.get(i)[2];let s=i-1;const u=[];let c=r._tokenizer;c||(c=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,h=[],m={};let x,y,v=-1,C=r,k=0,N=0;const b=[N];for(;C;){for(;t.get(++s)[1]!==C;);u.push(s),C._tokenizer||(x=o.sliceStream(C),C.next||x.push(null),y&&c.defineSkip(C.start),C._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(x),C._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=C,C=C.next}for(C=r;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(N=v+1,b.push(N),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(c.events=[],C?(C._tokenizer=void 0,C.previous=void 0):b.pop(),v=b.length;v--;){const _=f.slice(b[v],b[v+1]),T=u.pop();h.push([T,T+_.length-1]),t.splice(T,2,_)}for(h.reverse(),v=-1;++v<h.length;)m[k+h[v][0]]=k+h[v][1],k+=h[v][1]-h[v][0]-1;return m}const yp={resolve:vp,tokenize:Cp},xp={partial:!0,tokenize:wp};function vp(t){return I3(t),t}function Cp(t,i){let r;return o;function o(f){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?u(f):we(f)?t.check(xp,c,u)(f):(t.consume(f),s)}function u(f){return t.exit("chunkContent"),t.exit("content"),i(f)}function c(f){return t.consume(f),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function wp(t,i,r){const o=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Re(t,u,"linePrefix")}function u(c){if(c===null||we(c))return r(c);const f=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?i(c):t.interrupt(o.parser.constructs.flow,r,i)(c)}}function M3(t,i,r,o,s,u,c,f,h){const m=h||Number.POSITIVE_INFINITY;let x=0;return y;function y(_){return _===60?(t.enter(o),t.enter(s),t.enter(u),t.consume(_),t.exit(u),v):_===null||_===32||_===41||Go(_)?r(_):(t.enter(o),t.enter(c),t.enter(f),t.enter("chunkString",{contentType:"string"}),N(_))}function v(_){return _===62?(t.enter(u),t.consume(_),t.exit(u),t.exit(s),t.exit(o),i):(t.enter(f),t.enter("chunkString",{contentType:"string"}),C(_))}function C(_){return _===62?(t.exit("chunkString"),t.exit(f),v(_)):_===null||_===60||we(_)?r(_):(t.consume(_),_===92?k:C)}function k(_){return _===60||_===62||_===92?(t.consume(_),C):C(_)}function N(_){return!x&&(_===null||_===41||Ge(_))?(t.exit("chunkString"),t.exit(f),t.exit(c),t.exit(o),i(_)):x<m&&_===40?(t.consume(_),x++,N):_===41?(t.consume(_),x--,N):_===null||_===32||_===40||Go(_)?r(_):(t.consume(_),_===92?b:N)}function b(_){return _===40||_===41||_===92?(t.consume(_),N):N(_)}}function T3(t,i,r,o,s,u){const c=this;let f=0,h;return m;function m(C){return t.enter(o),t.enter(s),t.consume(C),t.exit(s),t.enter(u),x}function x(C){return f>999||C===null||C===91||C===93&&!h||C===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?r(C):C===93?(t.exit(u),t.enter(s),t.consume(C),t.exit(s),t.exit(o),i):we(C)?(t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),x):(t.enter("chunkString",{contentType:"string"}),y(C))}function y(C){return C===null||C===91||C===93||we(C)||f++>999?(t.exit("chunkString"),x(C)):(t.consume(C),h||(h=!De(C)),C===92?v:y)}function v(C){return C===91||C===92||C===93?(t.consume(C),f++,y):y(C)}}function P3(t,i,r,o,s,u){let c;return f;function f(v){return v===34||v===39||v===40?(t.enter(o),t.enter(s),t.consume(v),t.exit(s),c=v===40?41:v,h):r(v)}function h(v){return v===c?(t.enter(s),t.consume(v),t.exit(s),t.exit(o),i):(t.enter(u),m(v))}function m(v){return v===c?(t.exit(u),h(c)):v===null?r(v):we(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Re(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),x(v))}function x(v){return v===c||v===null||we(v)?(t.exit("chunkString"),m(v)):(t.consume(v),v===92?y:x)}function y(v){return v===c||v===92?(t.consume(v),x):x(v)}}function pl(t,i){let r;return o;function o(s){return we(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,o):De(s)?Re(t,o,r?"linePrefix":"lineSuffix")(s):i(s)}}const kp={name:"definition",tokenize:Sp},_p={partial:!0,tokenize:Ep};function Sp(t,i,r){const o=this;let s;return u;function u(C){return t.enter("definition"),c(C)}function c(C){return T3.call(o,t,f,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function f(C){return s=vn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),C===58?(t.enter("definitionMarker"),t.consume(C),t.exit("definitionMarker"),h):r(C)}function h(C){return Ge(C)?pl(t,m)(C):m(C)}function m(C){return M3(t,x,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function x(C){return t.attempt(_p,y,y)(C)}function y(C){return De(C)?Re(t,v,"whitespace")(C):v(C)}function v(C){return C===null||we(C)?(t.exit("definition"),o.parser.defined.push(s),i(C)):r(C)}}function Ep(t,i,r){return o;function o(f){return Ge(f)?pl(t,s)(f):r(f)}function s(f){return P3(t,u,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return De(f)?Re(t,c,"whitespace")(f):c(f)}function c(f){return f===null||we(f)?i(f):r(f)}}const bp={name:"hardBreakEscape",tokenize:jp};function jp(t,i,r){return o;function o(u){return t.enter("hardBreakEscape"),t.consume(u),s}function s(u){return we(u)?(t.exit("hardBreakEscape"),i(u)):r(u)}}const Lp={name:"headingAtx",resolve:Np,tokenize:Ip};function Np(t,i){let r=t.length-2,o=3,s,u;return t[o][1].type==="whitespace"&&(o+=2),r-2>o&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&t[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(s={type:"atxHeadingText",start:t[o][1].start,end:t[r][1].end},u={type:"chunkText",start:t[o][1].start,end:t[r][1].end,contentType:"text"},Xt(t,o,r-o+1,[["enter",s,i],["enter",u,i],["exit",u,i],["exit",s,i]])),t}function Ip(t,i,r){let o=0;return s;function s(x){return t.enter("atxHeading"),u(x)}function u(x){return t.enter("atxHeadingSequence"),c(x)}function c(x){return x===35&&o++<6?(t.consume(x),c):x===null||Ge(x)?(t.exit("atxHeadingSequence"),f(x)):r(x)}function f(x){return x===35?(t.enter("atxHeadingSequence"),h(x)):x===null||we(x)?(t.exit("atxHeading"),i(x)):De(x)?Re(t,f,"whitespace")(x):(t.enter("atxHeadingText"),m(x))}function h(x){return x===35?(t.consume(x),h):(t.exit("atxHeadingSequence"),f(x))}function m(x){return x===null||x===35||Ge(x)?(t.exit("atxHeadingText"),f(x)):(t.consume(x),m)}}const Mp=["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"],w2=["pre","script","style","textarea"],Tp={concrete:!0,name:"htmlFlow",resolveTo:Dp,tokenize:Rp},Pp={partial:!0,tokenize:Fp},zp={partial:!0,tokenize:Ap};function Dp(t){let i=t.length;for(;i--&&!(t[i][0]==="enter"&&t[i][1].type==="htmlFlow"););return i>1&&t[i-2][1].type==="linePrefix"&&(t[i][1].start=t[i-2][1].start,t[i+1][1].start=t[i-2][1].start,t.splice(i-2,2)),t}function Rp(t,i,r){const o=this;let s,u,c,f,h;return m;function m(j){return x(j)}function x(j){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(j),y}function y(j){return j===33?(t.consume(j),v):j===47?(t.consume(j),u=!0,N):j===63?(t.consume(j),s=3,o.interrupt?i:E):At(j)?(t.consume(j),c=String.fromCharCode(j),b):r(j)}function v(j){return j===45?(t.consume(j),s=2,C):j===91?(t.consume(j),s=5,f=0,k):At(j)?(t.consume(j),s=4,o.interrupt?i:E):r(j)}function C(j){return j===45?(t.consume(j),o.interrupt?i:E):r(j)}function k(j){const xe="CDATA[";return j===xe.charCodeAt(f++)?(t.consume(j),f===xe.length?o.interrupt?i:K:k):r(j)}function N(j){return At(j)?(t.consume(j),c=String.fromCharCode(j),b):r(j)}function b(j){if(j===null||j===47||j===62||Ge(j)){const xe=j===47,_e=c.toLowerCase();return!xe&&!u&&w2.includes(_e)?(s=1,o.interrupt?i(j):K(j)):Mp.includes(c.toLowerCase())?(s=6,xe?(t.consume(j),_):o.interrupt?i(j):K(j)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(j):u?T(j):I(j))}return j===45||Lt(j)?(t.consume(j),c+=String.fromCharCode(j),b):r(j)}function _(j){return j===62?(t.consume(j),o.interrupt?i:K):r(j)}function T(j){return De(j)?(t.consume(j),T):S(j)}function I(j){return j===47?(t.consume(j),S):j===58||j===95||At(j)?(t.consume(j),U):De(j)?(t.consume(j),I):S(j)}function U(j){return j===45||j===46||j===58||j===95||Lt(j)?(t.consume(j),U):Z(j)}function Z(j){return j===61?(t.consume(j),F):De(j)?(t.consume(j),Z):I(j)}function F(j){return j===null||j===60||j===61||j===62||j===96?r(j):j===34||j===39?(t.consume(j),h=j,W):De(j)?(t.consume(j),F):Y(j)}function W(j){return j===h?(t.consume(j),h=null,ee):j===null||we(j)?r(j):(t.consume(j),W)}function Y(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||Ge(j)?Z(j):(t.consume(j),Y)}function ee(j){return j===47||j===62||De(j)?I(j):r(j)}function S(j){return j===62?(t.consume(j),$):r(j)}function $(j){return j===null||we(j)?K(j):De(j)?(t.consume(j),$):r(j)}function K(j){return j===45&&s===2?(t.consume(j),ie):j===60&&s===1?(t.consume(j),ce):j===62&&s===4?(t.consume(j),z):j===63&&s===3?(t.consume(j),E):j===93&&s===5?(t.consume(j),le):we(j)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(Pp,Q,q)(j)):j===null||we(j)?(t.exit("htmlFlowData"),q(j)):(t.consume(j),K)}function q(j){return t.check(zp,A,Q)(j)}function A(j){return t.enter("lineEnding"),t.consume(j),t.exit("lineEnding"),D}function D(j){return j===null||we(j)?q(j):(t.enter("htmlFlowData"),K(j))}function ie(j){return j===45?(t.consume(j),E):K(j)}function ce(j){return j===47?(t.consume(j),c="",V):K(j)}function V(j){if(j===62){const xe=c.toLowerCase();return w2.includes(xe)?(t.consume(j),z):K(j)}return At(j)&&c.length<8?(t.consume(j),c+=String.fromCharCode(j),V):K(j)}function le(j){return j===93?(t.consume(j),E):K(j)}function E(j){return j===62?(t.consume(j),z):j===45&&s===2?(t.consume(j),E):K(j)}function z(j){return j===null||we(j)?(t.exit("htmlFlowData"),Q(j)):(t.consume(j),z)}function Q(j){return t.exit("htmlFlow"),i(j)}}function Ap(t,i,r){const o=this;return s;function s(c){return we(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),u):r(c)}function u(c){return o.parser.lazy[o.now().line]?r(c):i(c)}}function Fp(t,i,r){return o;function o(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(wl,i,r)}}const Op={name:"htmlText",tokenize:Bp};function Bp(t,i,r){const o=this;let s,u,c;return f;function f(E){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(E),h}function h(E){return E===33?(t.consume(E),m):E===47?(t.consume(E),Z):E===63?(t.consume(E),I):At(E)?(t.consume(E),Y):r(E)}function m(E){return E===45?(t.consume(E),x):E===91?(t.consume(E),u=0,k):At(E)?(t.consume(E),T):r(E)}function x(E){return E===45?(t.consume(E),C):r(E)}function y(E){return E===null?r(E):E===45?(t.consume(E),v):we(E)?(c=y,ce(E)):(t.consume(E),y)}function v(E){return E===45?(t.consume(E),C):y(E)}function C(E){return E===62?ie(E):E===45?v(E):y(E)}function k(E){const z="CDATA[";return E===z.charCodeAt(u++)?(t.consume(E),u===z.length?N:k):r(E)}function N(E){return E===null?r(E):E===93?(t.consume(E),b):we(E)?(c=N,ce(E)):(t.consume(E),N)}function b(E){return E===93?(t.consume(E),_):N(E)}function _(E){return E===62?ie(E):E===93?(t.consume(E),_):N(E)}function T(E){return E===null||E===62?ie(E):we(E)?(c=T,ce(E)):(t.consume(E),T)}function I(E){return E===null?r(E):E===63?(t.consume(E),U):we(E)?(c=I,ce(E)):(t.consume(E),I)}function U(E){return E===62?ie(E):I(E)}function Z(E){return At(E)?(t.consume(E),F):r(E)}function F(E){return E===45||Lt(E)?(t.consume(E),F):W(E)}function W(E){return we(E)?(c=W,ce(E)):De(E)?(t.consume(E),W):ie(E)}function Y(E){return E===45||Lt(E)?(t.consume(E),Y):E===47||E===62||Ge(E)?ee(E):r(E)}function ee(E){return E===47?(t.consume(E),ie):E===58||E===95||At(E)?(t.consume(E),S):we(E)?(c=ee,ce(E)):De(E)?(t.consume(E),ee):ie(E)}function S(E){return E===45||E===46||E===58||E===95||Lt(E)?(t.consume(E),S):$(E)}function $(E){return E===61?(t.consume(E),K):we(E)?(c=$,ce(E)):De(E)?(t.consume(E),$):ee(E)}function K(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(t.consume(E),s=E,q):we(E)?(c=K,ce(E)):De(E)?(t.consume(E),K):(t.consume(E),A)}function q(E){return E===s?(t.consume(E),s=void 0,D):E===null?r(E):we(E)?(c=q,ce(E)):(t.consume(E),q)}function A(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||Ge(E)?ee(E):(t.consume(E),A)}function D(E){return E===47||E===62||Ge(E)?ee(E):r(E)}function ie(E){return E===62?(t.consume(E),t.exit("htmlTextData"),t.exit("htmlText"),i):r(E)}function ce(E){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),V}function V(E){return De(E)?Re(t,le,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):le(E)}function le(E){return t.enter("htmlTextData"),c(E)}}const J1={name:"labelEnd",resolveAll:Up,resolveTo:Wp,tokenize:qp},$p={tokenize:Zp},Hp={tokenize:Qp},Vp={tokenize:Gp};function Up(t){let i=-1;const r=[];for(;++i<t.length;){const o=t[i][1];if(r.push(t[i]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",i+=s}}return t.length!==r.length&&Xt(t,0,t.length,r),t}function Wp(t,i){let r=t.length,o=0,s,u,c,f;for(;r--;)if(s=t[r][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(u=r,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(c=r);const h={type:t[u][1].type==="labelLink"?"link":"image",start:{...t[u][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[u][1].start},end:{...t[c][1].end}},x={type:"labelText",start:{...t[u+o+2][1].end},end:{...t[c-2][1].start}};return f=[["enter",h,i],["enter",m,i]],f=un(f,t.slice(u+1,u+o+3)),f=un(f,[["enter",x,i]]),f=un(f,rs(i.parser.constructs.insideSpan.null,t.slice(u+o+4,c-3),i)),f=un(f,[["exit",x,i],t[c-2],t[c-1],["exit",m,i]]),f=un(f,t.slice(c+1)),f=un(f,[["exit",h,i]]),Xt(t,u,t.length,f),t}function qp(t,i,r){const o=this;let s=o.events.length,u,c;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){u=o.events[s][1];break}return f;function f(v){return u?u._inactive?y(v):(c=o.parser.defined.includes(vn(o.sliceSerialize({start:u.end,end:o.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),h):r(v)}function h(v){return v===40?t.attempt($p,x,c?x:y)(v):v===91?t.attempt(Hp,x,c?m:y)(v):c?x(v):y(v)}function m(v){return t.attempt(Vp,x,y)(v)}function x(v){return i(v)}function y(v){return u._balanced=!0,r(v)}}function Zp(t,i,r){return o;function o(y){return t.enter("resource"),t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),s}function s(y){return Ge(y)?pl(t,u)(y):u(y)}function u(y){return y===41?x(y):M3(t,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return Ge(y)?pl(t,h)(y):x(y)}function f(y){return r(y)}function h(y){return y===34||y===39||y===40?P3(t,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):x(y)}function m(y){return Ge(y)?pl(t,x)(y):x(y)}function x(y){return y===41?(t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),t.exit("resource"),i):r(y)}}function Qp(t,i,r){const o=this;return s;function s(f){return T3.call(o,t,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return o.parser.defined.includes(vn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?i(f):r(f)}function c(f){return r(f)}}function Gp(t,i,r){return o;function o(u){return t.enter("reference"),t.enter("referenceMarker"),t.consume(u),t.exit("referenceMarker"),s}function s(u){return u===93?(t.enter("referenceMarker"),t.consume(u),t.exit("referenceMarker"),t.exit("reference"),i):r(u)}}const Yp={name:"labelStartImage",resolveAll:J1.resolveAll,tokenize:Kp};function Kp(t,i,r){const o=this;return s;function s(f){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(f),t.exit("labelImageMarker"),u}function u(f){return f===91?(t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelImage"),c):r(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(f):i(f)}}const Xp={name:"labelStartLink",resolveAll:J1.resolveAll,tokenize:Jp};function Jp(t,i,r){const o=this;return s;function s(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(c):i(c)}}const t1={name:"lineEnding",tokenize:eh};function eh(t,i){return r;function r(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Re(t,i,"linePrefix")}}const Wo={name:"thematicBreak",tokenize:th};function th(t,i,r){let o=0,s;return u;function u(m){return t.enter("thematicBreak"),c(m)}function c(m){return s=m,f(m)}function f(m){return m===s?(t.enter("thematicBreakSequence"),h(m)):o>=3&&(m===null||we(m))?(t.exit("thematicBreak"),i(m)):r(m)}function h(m){return m===s?(t.consume(m),o++,h):(t.exit("thematicBreakSequence"),De(m)?Re(t,f,"whitespace")(m):f(m))}}const Wt={continuation:{tokenize:lh},exit:sh,name:"list",tokenize:ih},nh={partial:!0,tokenize:ah},rh={partial:!0,tokenize:oh};function ih(t,i,r){const o=this,s=o.events[o.events.length-1];let u=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return f;function f(C){const k=o.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!o.containerState.marker||C===o.containerState.marker:N1(C)){if(o.containerState.type||(o.containerState.type=k,t.enter(k,{_container:!0})),k==="listUnordered")return t.enter("listItemPrefix"),C===42||C===45?t.check(Wo,r,m)(C):m(C);if(!o.interrupt||C===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),h(C)}return r(C)}function h(C){return N1(C)&&++c<10?(t.consume(C),h):(!o.interrupt||c<2)&&(o.containerState.marker?C===o.containerState.marker:C===41||C===46)?(t.exit("listItemValue"),m(C)):r(C)}function m(C){return t.enter("listItemMarker"),t.consume(C),t.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||C,t.check(wl,o.interrupt?r:x,t.attempt(nh,v,y))}function x(C){return o.containerState.initialBlankLine=!0,u++,v(C)}function y(C){return De(C)?(t.enter("listItemPrefixWhitespace"),t.consume(C),t.exit("listItemPrefixWhitespace"),v):r(C)}function v(C){return o.containerState.size=u+o.sliceSerialize(t.exit("listItemPrefix"),!0).length,i(C)}}function lh(t,i,r){const o=this;return o.containerState._closeFlow=void 0,t.check(wl,s,u);function s(f){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Re(t,i,"listItemIndent",o.containerState.size+1)(f)}function u(f){return o.containerState.furtherBlankLines||!De(f)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,c(f)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,t.attempt(rh,i,c)(f))}function c(f){return o.containerState._closeFlow=!0,o.interrupt=void 0,Re(t,t.attempt(Wt,i,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function oh(t,i,r){const o=this;return Re(t,s,"listItemIndent",o.containerState.size+1);function s(u){const c=o.events[o.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===o.containerState.size?i(u):r(u)}}function sh(t){t.exit(this.containerState.type)}function ah(t,i,r){const o=this;return Re(t,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(u){const c=o.events[o.events.length-1];return!De(u)&&c&&c[1].type==="listItemPrefixWhitespace"?i(u):r(u)}}const k2={name:"setextUnderline",resolveTo:uh,tokenize:ch};function uh(t,i){let r=t.length,o,s,u;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){o=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!u&&t[r][1].type==="definition"&&(u=r);const c={type:"setextHeading",start:{...t[o][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",u?(t.splice(s,0,["enter",c,i]),t.splice(u+1,0,["exit",t[o][1],i]),t[o][1].end={...t[u][1].end}):t[o][1]=c,t.push(["exit",c,i]),t}function ch(t,i,r){const o=this;let s;return u;function u(m){let x=o.events.length,y;for(;x--;)if(o.events[x][1].type!=="lineEnding"&&o.events[x][1].type!=="linePrefix"&&o.events[x][1].type!=="content"){y=o.events[x][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||y)?(t.enter("setextHeadingLine"),s=m,c(m)):r(m)}function c(m){return t.enter("setextHeadingLineSequence"),f(m)}function f(m){return m===s?(t.consume(m),f):(t.exit("setextHeadingLineSequence"),De(m)?Re(t,h,"lineSuffix")(m):h(m))}function h(m){return m===null||we(m)?(t.exit("setextHeadingLine"),i(m)):r(m)}}const dh={tokenize:fh};function fh(t){const i=this,r=t.attempt(wl,o,t.attempt(this.parser.constructs.flowInitial,s,Re(t,t.attempt(this.parser.constructs.flow,s,t.attempt(yp,s)),"linePrefix")));return r;function o(u){if(u===null){t.consume(u);return}return t.enter("lineEndingBlank"),t.consume(u),t.exit("lineEndingBlank"),i.currentConstruct=void 0,r}function s(u){if(u===null){t.consume(u);return}return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),i.currentConstruct=void 0,r}}const ph={resolveAll:D3()},hh=z3("string"),mh=z3("text");function z3(t){return{resolveAll:D3(t==="text"?gh:void 0),tokenize:i};function i(r){const o=this,s=this.parser.constructs[t],u=r.attempt(s,c,f);return c;function c(x){return m(x)?u(x):f(x)}function f(x){if(x===null){r.consume(x);return}return r.enter("data"),r.consume(x),h}function h(x){return m(x)?(r.exit("data"),u(x)):(r.consume(x),h)}function m(x){if(x===null)return!0;const y=s[x];let v=-1;if(y)for(;++v<y.length;){const C=y[v];if(!C.previous||C.previous.call(o,o.previous))return!0}return!1}}}function D3(t){return i;function i(r,o){let s=-1,u;for(;++s<=r.length;)u===void 0?r[s]&&r[s][1].type==="data"&&(u=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==u+2&&(r[u][1].end=r[s-1][1].end,r.splice(u+2,s-u-2),s=u+2),u=void 0);return t?t(r,o):r}}function gh(t,i){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const o=t[r-1][1],s=i.sliceStream(o);let u=s.length,c=-1,f=0,h;for(;u--;){const m=s[u];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(m===-2)h=!0,f++;else if(m!==-1){u++;break}}if(i._contentTypeTextTrailing&&r===t.length&&(f=0),f){const m={type:r===t.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:o.start._bufferIndex+c,_index:o.start._index+u,line:o.end.line,column:o.end.column-f,offset:o.end.offset-f},end:{...o.end}};o.end={...m.start},o.start.offset===o.end.offset?Object.assign(o,m):(t.splice(r,0,["enter",m,i],["exit",m,i]),r+=2)}r++}return t}const yh={42:Wt,43:Wt,45:Wt,48:Wt,49:Wt,50:Wt,51:Wt,52:Wt,53:Wt,54:Wt,55:Wt,56:Wt,57:Wt,62:j3},xh={91:kp},vh={[-2]:e1,[-1]:e1,32:e1},Ch={35:Lp,42:Wo,45:[k2,Wo],60:Tp,61:k2,95:Wo,96:C2,126:C2},wh={38:N3,92:L3},kh={[-5]:t1,[-4]:t1,[-3]:t1,33:Yp,38:N3,42:I1,60:[X8,Op],91:Xp,92:[bp,L3],93:J1,95:I1,96:dp},_h={null:[I1,ph]},Sh={null:[42,95]},Eh={null:[]},bh=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Sh,contentInitial:xh,disable:Eh,document:yh,flow:Ch,flowInitial:vh,insideSpan:_h,string:wh,text:kh},Symbol.toStringTag,{value:"Module"}));function jh(t,i,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},u=[];let c=[],f=[];const h={attempt:W(Z),check:W(F),consume:T,enter:I,exit:U,interrupt:W(F,{interrupt:!0})},m={code:null,containerState:{},defineSkip:N,events:[],now:k,parser:t,previous:null,sliceSerialize:v,sliceStream:C,write:y};let x=i.tokenize.call(m,h);return i.resolveAll&&u.push(i),m;function y($){return c=un(c,$),b(),c[c.length-1]!==null?[]:(Y(i,0),m.events=rs(u,m.events,m),m.events)}function v($,K){return Nh(C($),K)}function C($){return Lh(c,$)}function k(){const{_bufferIndex:$,_index:K,line:q,column:A,offset:D}=o;return{_bufferIndex:$,_index:K,line:q,column:A,offset:D}}function N($){s[$.line]=$.column,S()}function b(){let $;for(;o._index<c.length;){const K=c[o._index];if(typeof K=="string")for($=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===$&&o._bufferIndex<K.length;)_(K.charCodeAt(o._bufferIndex));else _(K)}}function _($){x=x($)}function T($){we($)?(o.line++,o.column=1,o.offset+=$===-3?2:1,S()):$!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===c[o._index].length&&(o._bufferIndex=-1,o._index++)),m.previous=$}function I($,K){const q=K||{};return q.type=$,q.start=k(),m.events.push(["enter",q,m]),f.push(q),q}function U($){const K=f.pop();return K.end=k(),m.events.push(["exit",K,m]),K}function Z($,K){Y($,K.from)}function F($,K){K.restore()}function W($,K){return q;function q(A,D,ie){let ce,V,le,E;return Array.isArray(A)?Q(A):"tokenize"in A?Q([A]):z(A);function z(he){return X;function X(ye){const Se=ye!==null&&he[ye],Oe=ye!==null&&he.null,Ct=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return Q(Ct)(ye)}}function Q(he){return ce=he,V=0,he.length===0?ie:j(he[V])}function j(he){return X;function X(ye){return E=ee(),le=he,he.partial||(m.currentConstruct=he),he.name&&m.parser.constructs.disable.null.includes(he.name)?_e():he.tokenize.call(K?Object.assign(Object.create(m),K):m,h,xe,_e)(ye)}}function xe(he){return $(le,E),D}function _e(he){return E.restore(),++V<ce.length?j(ce[V]):ie}}}function Y($,K){$.resolveAll&&!u.includes($)&&u.push($),$.resolve&&Xt(m.events,K,m.events.length-K,$.resolve(m.events.slice(K),m)),$.resolveTo&&(m.events=$.resolveTo(m.events,m))}function ee(){const $=k(),K=m.previous,q=m.currentConstruct,A=m.events.length,D=Array.from(f);return{from:A,restore:ie};function ie(){o=$,m.previous=K,m.currentConstruct=q,m.events.length=A,f=D,S()}}function S(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function Lh(t,i){const r=i.start._index,o=i.start._bufferIndex,s=i.end._index,u=i.end._bufferIndex;let c;if(r===s)c=[t[r].slice(o,u)];else{if(c=t.slice(r,s),o>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(o):c.shift()}u>0&&c.push(t[s].slice(0,u))}return c}function Nh(t,i){let r=-1;const o=[];let s;for(;++r<t.length;){const u=t[r];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
48
- `;break}case-3:{c=`\r
49
- `;break}case-2:{c=i?" ":" ";break}case-1:{if(!i&&s)continue;c=" ";break}default:c=String.fromCharCode(u)}s=u===-2,o.push(c)}return o.join("")}function Ih(t){const o={constructs:E3([bh,...(t||{}).extensions||[]]),content:s(W8),defined:[],document:s(Z8),flow:s(dh),lazy:{},string:s(hh),text:s(mh)};return o;function s(u){return c;function c(f){return jh(o,u,f)}}}function Mh(t){for(;!I3(t););return t}const _2=/[\0\t\n\r]/g;function Th(){let t=1,i="",r=!0,o;return s;function s(u,c,f){const h=[];let m,x,y,v,C;for(u=i+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),y=0,i="",r&&(u.charCodeAt(0)===65279&&y++,r=void 0);y<u.length;){if(_2.lastIndex=y,m=_2.exec(u),v=m&&m.index!==void 0?m.index:u.length,C=u.charCodeAt(v),!m){i=u.slice(y);break}if(C===10&&y===v&&o)h.push(-3),o=void 0;else switch(o&&(h.push(-5),o=void 0),y<v&&(h.push(u.slice(y,v)),t+=v-y),C){case 0:{h.push(65533),t++;break}case 9:{for(x=Math.ceil(t/4)*4,h.push(-2);t++<x;)h.push(-1);break}case 10:{h.push(-4),t=1;break}default:o=!0,t=1}y=v+1}return f&&(o&&h.push(-5),i&&h.push(i),h.push(null)),h}}const Ph=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zh(t){return t.replace(Ph,Dh)}function Dh(t,i,r){if(i)return i;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),u=s===120||s===88;return b3(r.slice(u?2:1),u?16:10)}return X1(r)||t}const R3={}.hasOwnProperty;function Rh(t,i,r){return i&&typeof i=="object"&&(r=i,i=void 0),Ah(r)(Mh(Ih(r).document().write(Th()(t,i,!0))))}function Ah(t){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Ae),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:u(Me),blockQuote:u(Oe),characterEscape:ee,characterReference:ee,codeFenced:u(Ct),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Ct,c),codeText:u(It,c),codeTextData:ee,data:ee,codeFlowValue:ee,definition:u(J),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(je),hardBreakEscape:u(Ue),hardBreakTrailing:u(Ue),htmlFlow:u(qe,c),htmlFlowData:ee,htmlText:u(qe,c),htmlTextData:ee,image:u(Mt),label:c,link:u(Ae),listItem:u(Ft),listItemValue:v,listOrdered:u(Tt,y),listUnordered:u(Tt),paragraph:u(Cn),reference:j,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Me),strong:u(hr),thematicBreak:u(Br)},exit:{atxHeading:h(),atxHeadingSequence:Z,autolink:h(),autolinkEmail:Se,autolinkProtocol:ye,blockQuote:h(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:he,characterReference:X,codeFenced:h(b),codeFencedFence:N,codeFencedFenceInfo:C,codeFencedFenceMeta:k,codeFlowValue:S,codeIndented:h(_),codeText:h(D),codeTextData:S,data:S,definition:h(),definitionDestinationString:U,definitionLabelString:T,definitionTitleString:I,emphasis:h(),hardBreakEscape:h(K),hardBreakTrailing:h(K),htmlFlow:h(q),htmlFlowData:S,htmlText:h(A),htmlTextData:S,image:h(ce),label:le,labelText:V,lineEnding:$,link:h(ie),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:xe,resourceDestinationString:E,resourceTitleString:z,resource:Q,setextHeading:h(Y),setextHeadingLineSequence:W,setextHeadingText:F,strong:h(),thematicBreak:h()}};A3(i,(t||{}).mdastExtensions||[]);const r={};return o;function o(G){let ue={type:"root",children:[]};const ke={stack:[ue],tokenStack:[],config:i,enter:f,exit:m,buffer:c,resume:x,data:r},Ee=[];let Pe=-1;for(;++Pe<G.length;)if(G[Pe][1].type==="listOrdered"||G[Pe][1].type==="listUnordered")if(G[Pe][0]==="enter")Ee.push(Pe);else{const st=Ee.pop();Pe=s(G,st,Pe)}for(Pe=-1;++Pe<G.length;){const st=i[G[Pe][0]];R3.call(st,G[Pe][1].type)&&st[G[Pe][1].type].call(Object.assign({sliceSerialize:G[Pe][2].sliceSerialize},ke),G[Pe][1])}if(ke.tokenStack.length>0){const st=ke.tokenStack[ke.tokenStack.length-1];(st[1]||S2).call(ke,void 0,st[0])}for(ue.position={start:ur(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:ur(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Pe=-1;++Pe<i.transforms.length;)ue=i.transforms[Pe](ue)||ue;return ue}function s(G,ue,ke){let Ee=ue-1,Pe=-1,st=!1,Jt,ae,Ie,Ze;for(;++Ee<=ke;){const We=G[Ee];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?Pe++:Pe--,Ze=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(Jt&&!Ze&&!Pe&&!Ie&&(Ie=Ee),Ze=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ze=void 0}if(!Pe&&We[0]==="enter"&&We[1].type==="listItemPrefix"||Pe===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(Jt){let Pt=Ee;for(ae=void 0;Pt--;){const Ye=G[Pt];if(Ye[1].type==="lineEnding"||Ye[1].type==="lineEndingBlank"){if(Ye[0]==="exit")continue;ae&&(G[ae][1].type="lineEndingBlank",st=!0),Ye[1].type="lineEnding",ae=Pt}else if(!(Ye[1].type==="linePrefix"||Ye[1].type==="blockQuotePrefix"||Ye[1].type==="blockQuotePrefixWhitespace"||Ye[1].type==="blockQuoteMarker"||Ye[1].type==="listItemIndent"))break}Ie&&(!ae||Ie<ae)&&(Jt._spread=!0),Jt.end=Object.assign({},ae?G[ae][1].start:We[1].end),G.splice(ae||Ee,0,["exit",Jt,We[2]]),Ee++,ke++}if(We[1].type==="listItemPrefix"){const Pt={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};Jt=Pt,G.splice(Ee,0,["enter",Pt,We[2]]),Ee++,ke++,Ie=void 0,Ze=!0}}}return G[ue][1]._spread=st,ke}function u(G,ue){return ke;function ke(Ee){f.call(this,G(Ee),Ee),ue&&ue.call(this,Ee)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(G,ue,ke){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([ue,ke||void 0]),G.position={start:ur(ue.start),end:void 0}}function h(G){return ue;function ue(ke){G&&G.call(this,ke),m.call(this,ke)}}function m(G,ue){const ke=this.stack.pop(),Ee=this.tokenStack.pop();if(Ee)Ee[0].type!==G.type&&(ue?ue.call(this,G,Ee[0]):(Ee[1]||S2).call(this,G,Ee[0]));else throw new Error("Cannot close `"+G.type+"` ("+fl({start:G.start,end:G.end})+"): it’s not open");ke.position.end=ur(G.end)}function x(){return K1(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function v(G){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function C(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=G}function k(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=G}function N(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G.replace(/(\r?\n|\r)$/g,"")}function T(G){const ue=this.resume(),ke=this.stack[this.stack.length-1];ke.label=ue,ke.identifier=vn(this.sliceSerialize(G)).toLowerCase()}function I(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.title=G}function U(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.url=G}function Z(G){const ue=this.stack[this.stack.length-1];if(!ue.depth){const ke=this.sliceSerialize(G).length;ue.depth=ke}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function W(G){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function Y(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(G){const ke=this.stack[this.stack.length-1].children;let Ee=ke[ke.length-1];(!Ee||Ee.type!=="text")&&(Ee=mr(),Ee.position={start:ur(G.start),end:void 0},ke.push(Ee)),this.stack.push(Ee)}function S(G){const ue=this.stack.pop();ue.value+=this.sliceSerialize(G),ue.position.end=ur(G.end)}function $(G){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ke=ue.children[ue.children.length-1];ke.position.end=ur(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(ue.type)&&(ee.call(this,G),S.call(this,G))}function K(){this.data.atHardBreak=!0}function q(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G}function A(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G}function D(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G}function ie(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ue,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function ce(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ue,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function V(G){const ue=this.sliceSerialize(G),ke=this.stack[this.stack.length-2];ke.label=zh(ue),ke.identifier=vn(ue).toLowerCase()}function le(){const G=this.stack[this.stack.length-1],ue=this.resume(),ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,ke.type==="link"){const Ee=G.children;ke.children=Ee}else ke.alt=ue}function E(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.url=G}function z(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.title=G}function Q(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function xe(G){const ue=this.resume(),ke=this.stack[this.stack.length-1];ke.label=ue,ke.identifier=vn(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function _e(G){this.data.characterReferenceType=G.type}function he(G){const ue=this.sliceSerialize(G),ke=this.data.characterReferenceType;let Ee;ke?(Ee=b3(ue,ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ee=X1(ue);const Pe=this.stack[this.stack.length-1];Pe.value+=Ee}function X(G){const ue=this.stack.pop();ue.position.end=ur(G.end)}function ye(G){S.call(this,G);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(G)}function Se(G){S.call(this,G);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(G)}function Oe(){return{type:"blockquote",children:[]}}function Ct(){return{type:"code",lang:null,meta:null,value:""}}function It(){return{type:"inlineCode",value:""}}function J(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function je(){return{type:"emphasis",children:[]}}function Me(){return{type:"heading",depth:0,children:[]}}function Ue(){return{type:"break"}}function qe(){return{type:"html",value:""}}function Mt(){return{type:"image",title:null,url:"",alt:null}}function Ae(){return{type:"link",title:null,url:"",children:[]}}function Tt(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function Ft(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function Cn(){return{type:"paragraph",children:[]}}function hr(){return{type:"strong",children:[]}}function mr(){return{type:"text",value:""}}function Br(){return{type:"thematicBreak"}}}function ur(t){return{line:t.line,column:t.column,offset:t.offset}}function A3(t,i){let r=-1;for(;++r<i.length;){const o=i[r];Array.isArray(o)?A3(t,o):Fh(t,o)}}function Fh(t,i){let r;for(r in i)if(R3.call(i,r))switch(r){case"canContainEols":{const o=i[r];o&&t[r].push(...o);break}case"transforms":{const o=i[r];o&&t[r].push(...o);break}case"enter":case"exit":{const o=i[r];o&&Object.assign(t[r],o);break}}}function S2(t,i){throw t?new Error("Cannot close `"+t.type+"` ("+fl({start:t.start,end:t.end})+"): a different token (`"+i.type+"`, "+fl({start:i.start,end:i.end})+") is open"):new Error("Cannot close document, a token (`"+i.type+"`, "+fl({start:i.start,end:i.end})+") is still open")}function Oh(t){const i=this;i.parser=r;function r(o){return Rh(o,{...i.data("settings"),...t,extensions:i.data("micromarkExtensions")||[],mdastExtensions:i.data("fromMarkdownExtensions")||[]})}}function Bh(t,i){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(i),!0)};return t.patch(i,r),t.applyData(i,r)}function $h(t,i){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(i,r),[t.applyData(i,r),{type:"text",value:`
50
- `}]}function Hh(t,i){const r=i.value?i.value+`
51
- `:"",o={},s=i.lang?i.lang.split(/\s+/):[];s.length>0&&(o.className=["language-"+s[0]]);let u={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return i.meta&&(u.data={meta:i.meta}),t.patch(i,u),u=t.applyData(i,u),u={type:"element",tagName:"pre",properties:{},children:[u]},t.patch(i,u),u}function Vh(t,i){const r={type:"element",tagName:"del",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function Uh(t,i){const r={type:"element",tagName:"em",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function Wh(t,i){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",o=String(i.identifier).toUpperCase(),s=yi(o.toLowerCase()),u=t.footnoteOrder.indexOf(o);let c,f=t.footnoteCounts.get(o);f===void 0?(f=0,t.footnoteOrder.push(o),c=t.footnoteOrder.length):c=u+1,f+=1,t.footnoteCounts.set(o,f);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(i,h);const m={type:"element",tagName:"sup",properties:{},children:[h]};return t.patch(i,m),t.applyData(i,m)}function qh(t,i){const r={type:"element",tagName:"h"+i.depth,properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function Zh(t,i){if(t.options.allowDangerousHtml){const r={type:"raw",value:i.value};return t.patch(i,r),t.applyData(i,r)}}function F3(t,i){const r=i.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(i.label||i.identifier)+"]"),i.type==="imageReference")return[{type:"text",value:"!["+i.alt+o}];const s=t.all(i),u=s[0];u&&u.type==="text"?u.value="["+u.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=o:s.push({type:"text",value:o}),s}function Qh(t,i){const r=String(i.identifier).toUpperCase(),o=t.definitionById.get(r);if(!o)return F3(t,i);const s={src:yi(o.url||""),alt:i.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const u={type:"element",tagName:"img",properties:s,children:[]};return t.patch(i,u),t.applyData(i,u)}function Gh(t,i){const r={src:yi(i.url)};i.alt!==null&&i.alt!==void 0&&(r.alt=i.alt),i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return t.patch(i,o),t.applyData(i,o)}function Yh(t,i){const r={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};t.patch(i,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(i,o),t.applyData(i,o)}function Kh(t,i){const r=String(i.identifier).toUpperCase(),o=t.definitionById.get(r);if(!o)return F3(t,i);const s={href:yi(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const u={type:"element",tagName:"a",properties:s,children:t.all(i)};return t.patch(i,u),t.applyData(i,u)}function Xh(t,i){const r={href:yi(i.url)};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:t.all(i)};return t.patch(i,o),t.applyData(i,o)}function Jh(t,i,r){const o=t.all(i),s=r?e7(r):O3(i),u={},c=[];if(typeof i.checked=="boolean"){const x=o[0];let y;x&&x.type==="element"&&x.tagName==="p"?y=x:(y={type:"element",tagName:"p",properties:{},children:[]},o.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<o.length;){const x=o[f];(s||f!==0||x.type!=="element"||x.tagName!=="p")&&c.push({type:"text",value:`
52
- `}),x.type==="element"&&x.tagName==="p"&&!s?c.push(...x.children):c.push(x)}const h=o[o.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
53
- `});const m={type:"element",tagName:"li",properties:u,children:c};return t.patch(i,m),t.applyData(i,m)}function e7(t){let i=!1;if(t.type==="list"){i=t.spread||!1;const r=t.children;let o=-1;for(;!i&&++o<r.length;)i=O3(r[o])}return i}function O3(t){const i=t.spread;return i??t.children.length>1}function t7(t,i){const r={},o=t.all(i);let s=-1;for(typeof i.start=="number"&&i.start!==1&&(r.start=i.start);++s<o.length;){const c=o[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const u={type:"element",tagName:i.ordered?"ol":"ul",properties:r,children:t.wrap(o,!0)};return t.patch(i,u),t.applyData(i,u)}function n7(t,i){const r={type:"element",tagName:"p",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function r7(t,i){const r={type:"root",children:t.wrap(t.all(i))};return t.patch(i,r),t.applyData(i,r)}function i7(t,i){const r={type:"element",tagName:"strong",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function l7(t,i){const r=t.all(i),o=r.shift(),s=[];if(o){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([o],!0)};t.patch(i.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},f=Z1(i.children[1]),h=x3(i.children[i.children.length-1]);f&&h&&(c.position={start:f,end:h}),s.push(c)}const u={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(i,u),t.applyData(i,u)}function o7(t,i,r){const o=r?r.children:void 0,u=(o?o.indexOf(i):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,f=c?c.length:i.children.length;let h=-1;const m=[];for(;++h<f;){const y=i.children[h],v={},C=c?c[h]:void 0;C&&(v.align=C);let k={type:"element",tagName:u,properties:v,children:[]};y&&(k.children=t.all(y),t.patch(y,k),k=t.applyData(y,k)),m.push(k)}const x={type:"element",tagName:"tr",properties:{},children:t.wrap(m,!0)};return t.patch(i,x),t.applyData(i,x)}function s7(t,i){const r={type:"element",tagName:"td",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}const E2=9,b2=32;function a7(t){const i=String(t),r=/\r?\n|\r/g;let o=r.exec(i),s=0;const u=[];for(;o;)u.push(j2(i.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=r.exec(i);return u.push(j2(i.slice(s),s>0,!1)),u.join("")}function j2(t,i,r){let o=0,s=t.length;if(i){let u=t.codePointAt(o);for(;u===E2||u===b2;)o++,u=t.codePointAt(o)}if(r){let u=t.codePointAt(s-1);for(;u===E2||u===b2;)s--,u=t.codePointAt(s-1)}return s>o?t.slice(o,s):""}function u7(t,i){const r={type:"text",value:a7(String(i.value))};return t.patch(i,r),t.applyData(i,r)}function c7(t,i){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(i,r),t.applyData(i,r)}const d7={blockquote:Bh,break:$h,code:Hh,delete:Vh,emphasis:Uh,footnoteReference:Wh,heading:qh,html:Zh,imageReference:Qh,image:Gh,inlineCode:Yh,linkReference:Kh,link:Xh,listItem:Jh,list:t7,paragraph:n7,root:r7,strong:i7,table:l7,tableCell:s7,tableRow:o7,text:u7,thematicBreak:c7,toml:zo,yaml:zo,definition:zo,footnoteDefinition:zo};function zo(){}const B3=-1,is=0,hl=1,Yo=2,eu=3,tu=4,nu=5,ru=6,$3=7,H3=8,{defineProperty:f7}=Object,V3=typeof self=="object"?self:globalThis,L2=(t,i)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new V3[t](i)},p7=(t,i)=>{const r=(s,u)=>(t.set(u,s),s),o=s=>{if(t.has(s))return t.get(s);const[u,c]=i[s];switch(u){case is:case B3:return r(c,s);case hl:{const f=r([],s);for(const h of c)f.push(o(h));return f}case Yo:{const f=r({},s);for(const[h,m]of c){const x=o(h),y=o(m);x==="__proto__"?f7(f,x,{value:y,configurable:!0,enumerable:!0,writable:!0}):f[x]=y}return f}case eu:return r(new Date(c),s);case tu:{const{source:f,flags:h}=c;return r(new RegExp(f,h),s)}case nu:{const f=r(new Map,s);for(const[h,m]of c)f.set(o(h),o(m));return f}case ru:{const f=r(new Set,s);for(const h of c)f.add(o(h));return f}case $3:{const{name:f,message:h}=c;return r(typeof V3[f]=="function"?L2(f,h):new Error(h),s)}case H3:return r(BigInt(c),s);case"BigInt":return r(Object(BigInt(c)),s);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return r(new DataView(f),c)}case"-0":return-0}return r(L2(u,c),s)};return o},N2=t=>p7(new Map,t)(0),zr="",{toString:h7}={},{keys:m7,is:g7}=Object,ol=t=>{const i=typeof t;if(i!=="object"||!t)return[is,i];const r=h7.call(t).slice(8,-1);switch(r){case"Array":return[hl,zr];case"Object":return[Yo,zr];case"Date":return[eu,zr];case"RegExp":return[tu,zr];case"Map":return[nu,zr];case"Set":return[ru,zr];case"DataView":return[hl,r]}return r.includes("Array")?[hl,r]:t instanceof Error?[$3,t.name||"Error"]:[Yo,r]},Do=([t,i])=>t===is&&(i==="function"||i==="symbol"),y7=(t,i,r,o)=>{const s=(c,f)=>{const h=o.push(c)-1;return r.set(f,h),h},u=c=>{if(r.has(c))return r.get(c);let[f,h]=ol(c);switch(f){case is:{let x=c;switch(h){case"bigint":f=H3,x=c.toString();break;case"number":if(!c&&g7(c,-0))return o.push(["-0"])-1;break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+h);x=null;break;case"undefined":return s([B3],c)}return s([f,x],c)}case hl:{if(h){let v=c;return h==="DataView"?v=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(c)),s([h,[...v]],c)}const x=[],y=s([f,x],c);for(const v of c)x.push(u(v));return y}case Yo:{if(h)switch(h){case"BigInt":return s([h,c.toString()],c);case"Boolean":case"Number":case"String":return s([h,c.valueOf()],c)}if(i&&"toJSON"in c)return u(c.toJSON());const x=[],y=s([f,x],c);for(const v of m7(c))(t||!Do(ol(c[v])))&&x.push([u(v),u(c[v])]);return y}case eu:return s([f,isNaN(c.getTime())?zr:c.toISOString()],c);case tu:{const{source:x,flags:y}=c;return s([f,{source:x,flags:y}],c)}case nu:{const x=[],y=s([f,x],c);for(const[v,C]of c)(t||!(Do(ol(v))||Do(ol(C))))&&x.push([u(v),u(C)]);return y}case ru:{const x=[],y=s([f,x],c);for(const v of c)(t||!Do(ol(v)))&&x.push(u(v));return y}}const{message:m}=c;return s([f,{name:h,message:m}],c)};return u},I2=(t,{json:i,lossy:r}={})=>{const o=[];return y7(!(i||r),!!i,new Map,o)(t),o},Ko=typeof structuredClone=="function"?(t,i)=>i&&("json"in i||"lossy"in i)?N2(I2(t,i)):structuredClone(t):(t,i)=>N2(I2(t,i));function x7(t,i){const r=[{type:"text",value:"↩"}];return i>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(i)}]}),r}function v7(t,i){return"Back to reference "+(t+1)+(i>1?"-"+i:"")}function C7(t){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||x7,o=t.options.footnoteBackLabel||v7,s=t.options.footnoteLabel||"Footnotes",u=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<t.footnoteOrder.length;){const m=t.footnoteById.get(t.footnoteOrder[h]);if(!m)continue;const x=t.all(m),y=String(m.identifier).toUpperCase(),v=yi(y.toLowerCase());let C=0;const k=[],N=t.footnoteCounts.get(y);for(;N!==void 0&&++C<=N;){k.length>0&&k.push({type:"text",value:" "});let T=typeof r=="string"?r:r(h,C);typeof T=="string"&&(T={type:"text",value:T}),k.push({type:"element",tagName:"a",properties:{href:"#"+i+"fnref-"+v+(C>1?"-"+C:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(h,C),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const b=x[x.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const T=b.children[b.children.length-1];T&&T.type==="text"?T.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...k)}else x.push(...k);const _={type:"element",tagName:"li",properties:{id:i+"fn-"+v},children:t.wrap(x,!0)};t.patch(m,_),f.push(_)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Ko(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
54
- `},{type:"element",tagName:"ol",properties:{},children:t.wrap(f,!0)},{type:"text",value:`
55
- `}]}}const ls=(function(t){if(t==null)return S7;if(typeof t=="function")return os(t);if(typeof t=="object")return Array.isArray(t)?w7(t):k7(t);if(typeof t=="string")return _7(t);throw new Error("Expected function, string, or object as test")});function w7(t){const i=[];let r=-1;for(;++r<t.length;)i[r]=ls(t[r]);return os(o);function o(...s){let u=-1;for(;++u<i.length;)if(i[u].apply(this,s))return!0;return!1}}function k7(t){const i=t;return os(r);function r(o){const s=o;let u;for(u in t)if(s[u]!==i[u])return!1;return!0}}function _7(t){return os(i);function i(r){return r&&r.type===t}}function os(t){return i;function i(r,o,s){return!!(E7(r)&&t.call(this,r,typeof o=="number"?o:void 0,s||void 0))}}function S7(){return!0}function E7(t){return t!==null&&typeof t=="object"&&"type"in t}const U3=[],b7=!0,M1=!1,j7="skip";function W3(t,i,r,o){let s;typeof i=="function"&&typeof r!="function"?(o=r,r=i):s=i;const u=ls(s),c=o?-1:1;f(t,void 0,[])();function f(h,m,x){const y=h&&typeof h=="object"?h:{};if(typeof y.type=="string"){const C=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(C?"<"+C+">":""))+")"})}return v;function v(){let C=U3,k,N,b;if((!i||u(h,m,x[x.length-1]||void 0))&&(C=L7(r(h,x)),C[0]===M1))return C;if("children"in h&&h.children){const _=h;if(_.children&&C[0]!==j7)for(N=(o?_.children.length:-1)+c,b=x.concat(_);N>-1&&N<_.children.length;){const T=_.children[N];if(k=f(T,N,b)(),k[0]===M1)return k;N=typeof k[1]=="number"?k[1]:N+c}}return C}}}function L7(t){return Array.isArray(t)?t:typeof t=="number"?[b7,t]:t==null?U3:[t]}function iu(t,i,r,o){let s,u,c;typeof i=="function"&&typeof r!="function"?(u=void 0,c=i,s=r):(u=i,c=r,s=o),W3(t,u,f,s);function f(h,m){const x=m[m.length-1],y=x?x.children.indexOf(h):void 0;return c(h,y,x)}}const T1={}.hasOwnProperty,N7={};function I7(t,i){const r=i||N7,o=new Map,s=new Map,u=new Map,c={...d7,...r.handlers},f={all:m,applyData:T7,definitionById:o,footnoteById:s,footnoteCounts:u,footnoteOrder:[],handlers:c,one:h,options:r,patch:M7,wrap:z7};return iu(t,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const y=x.type==="definition"?o:s,v=String(x.identifier).toUpperCase();y.has(v)||y.set(v,x)}}),f;function h(x,y){const v=x.type,C=f.handlers[v];if(T1.call(f.handlers,v)&&C)return C(f,x,y);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in x){const{children:N,...b}=x,_=Ko(b);return _.children=f.all(x),_}return Ko(x)}return(f.options.unknownHandler||P7)(f,x,y)}function m(x){const y=[];if("children"in x){const v=x.children;let C=-1;for(;++C<v.length;){const k=f.one(v[C],x);if(k){if(C&&v[C-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=M2(k.value)),!Array.isArray(k)&&k.type==="element")){const N=k.children[0];N&&N.type==="text"&&(N.value=M2(N.value))}Array.isArray(k)?y.push(...k):y.push(k)}}}return y}}function M7(t,i){t.position&&(i.position=y8(t))}function T7(t,i){let r=i;if(t&&t.data){const o=t.data.hName,s=t.data.hChildren,u=t.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const c="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:c}}r.type==="element"&&u&&Object.assign(r.properties,Ko(u)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function P7(t,i){const r=i.data||{},o="value"in i&&!(T1.call(r,"hProperties")||T1.call(r,"hChildren"))?{type:"text",value:i.value}:{type:"element",tagName:"div",properties:{},children:t.all(i)};return t.patch(i,o),t.applyData(i,o)}function z7(t,i){const r=[];let o=-1;for(i&&r.push({type:"text",value:`
56
- `});++o<t.length;)o&&r.push({type:"text",value:`
57
- `}),r.push(t[o]);return i&&t.length>0&&r.push({type:"text",value:`
58
- `}),r}function M2(t){let i=0,r=t.charCodeAt(i);for(;r===9||r===32;)i++,r=t.charCodeAt(i);return t.slice(i)}function T2(t,i){const r=I7(t,i),o=r.one(t,void 0),s=C7(r),u=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&u.children.push({type:"text",value:`
59
- `},s),u}function D7(t,i){return t&&"run"in t?async function(r,o){const s=T2(r,{file:o,...i});await t.run(s,o)}:function(r,o){return T2(r,{file:o,...t||i})}}function P2(t){if(t)throw t}var n1,z2;function R7(){if(z2)return n1;z2=1;var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):i.call(m)==="[object Array]"},u=function(m){if(!m||i.call(m)!=="[object Object]")return!1;var x=t.call(m,"constructor"),y=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!x&&!y)return!1;var v;for(v in m);return typeof v>"u"||t.call(m,v)},c=function(m,x){r&&x.name==="__proto__"?r(m,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):m[x.name]=x.newValue},f=function(m,x){if(x==="__proto__")if(t.call(m,x)){if(o)return o(m,x).value}else return;return m[x]};return n1=function h(){var m,x,y,v,C,k,N=arguments[0],b=1,_=arguments.length,T=!1;for(typeof N=="boolean"&&(T=N,N=arguments[1]||{},b=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});b<_;++b)if(m=arguments[b],m!=null)for(x in m)y=f(N,x),v=f(m,x),N!==v&&(T&&v&&(u(v)||(C=s(v)))?(C?(C=!1,k=y&&s(y)?y:[]):k=y&&u(y)?y:{},c(N,{name:x,newValue:h(T,k,v)})):typeof v<"u"&&c(N,{name:x,newValue:v}));return N},n1}var A7=R7();const r1=O1(A7);function P1(t){if(typeof t!="object"||t===null)return!1;const i=Object.getPrototypeOf(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function F7(){const t=[],i={run:r,use:o};return i;function r(...s){let u=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...s);function f(h,...m){const x=t[++u];let y=-1;if(h){c(h);return}for(;++y<s.length;)(m[y]===null||m[y]===void 0)&&(m[y]=s[y]);s=m,x?O7(x,f)(...m):c(null,...m)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),i}}function O7(t,i){let r;return o;function o(...c){const f=t.length>c.length;let h;f&&c.push(s);try{h=t.apply(this,c)}catch(m){const x=m;if(f&&r)throw x;return s(x)}f||(h&&h.then&&typeof h.then=="function"?h.then(u,s):h instanceof Error?s(h):u(h))}function s(c,...f){r||(r=!0,i(c,...f))}function u(c){s(null,c)}}const Nn={basename:B7,dirname:$7,extname:H7,join:V7,sep:"/"};function B7(t,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');kl(t);let r=0,o=-1,s=t.length,u;if(i===void 0||i.length===0||i.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(u){r=s+1;break}}else o<0&&(u=!0,o=s+1);return o<0?"":t.slice(r,o)}if(i===t)return"";let c=-1,f=i.length-1;for(;s--;)if(t.codePointAt(s)===47){if(u){r=s+1;break}}else c<0&&(u=!0,c=s+1),f>-1&&(t.codePointAt(s)===i.codePointAt(f--)?f<0&&(o=s):(f=-1,o=c));return r===o?o=c:o<0&&(o=t.length),t.slice(r,o)}function $7(t){if(kl(t),t.length===0)return".";let i=-1,r=t.length,o;for(;--r;)if(t.codePointAt(r)===47){if(o){i=r;break}}else o||(o=!0);return i<0?t.codePointAt(0)===47?"/":".":i===1&&t.codePointAt(0)===47?"//":t.slice(0,i)}function H7(t){kl(t);let i=t.length,r=-1,o=0,s=-1,u=0,c;for(;i--;){const f=t.codePointAt(i);if(f===47){if(c){o=i+1;break}continue}r<0&&(c=!0,r=i+1),f===46?s<0?s=i:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||r<0||u===0||u===1&&s===r-1&&s===o+1?"":t.slice(s,r)}function V7(...t){let i=-1,r;for(;++i<t.length;)kl(t[i]),t[i]&&(r=r===void 0?t[i]:r+"/"+t[i]);return r===void 0?".":U7(r)}function U7(t){kl(t);const i=t.codePointAt(0)===47;let r=W7(t,!i);return r.length===0&&!i&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),i?"/"+r:r}function W7(t,i){let r="",o=0,s=-1,u=0,c=-1,f,h;for(;++c<=t.length;){if(c<t.length)f=t.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(s===c-1||u===1))if(s!==c-1&&u===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=c,u=0;continue}}else if(r.length>0){r="",o=0,s=c,u=0;continue}}i&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+t.slice(s+1,c):r=t.slice(s+1,c),o=c-s-1;s=c,u=0}else f===46&&u>-1?u++:u=-1}return r}function kl(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const q7={cwd:Z7};function Z7(){return"/"}function z1(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function Q7(t){if(typeof t=="string")t=new URL(t);else if(!z1(t)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(t.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return G7(t)}function G7(t){if(t.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const i=t.pathname;let r=-1;for(;++r<i.length;)if(i.codePointAt(r)===37&&i.codePointAt(r+1)===50){const o=i.codePointAt(r+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(i)}const i1=["history","path","basename","stem","extname","dirname"];class q3{constructor(i){let r;i?z1(i)?r={path:i}:typeof i=="string"||Y7(i)?r={value:i}:r=i:r={},this.cwd="cwd"in r?"":q7.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<i1.length;){const u=i1[o];u in r&&r[u]!==void 0&&r[u]!==null&&(this[u]=u==="history"?[...r[u]]:r[u])}let s;for(s in r)i1.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Nn.basename(this.path):void 0}set basename(i){o1(i,"basename"),l1(i,"basename"),this.path=Nn.join(this.dirname||"",i)}get dirname(){return typeof this.path=="string"?Nn.dirname(this.path):void 0}set dirname(i){D2(this.basename,"dirname"),this.path=Nn.join(i||"",this.basename)}get extname(){return typeof this.path=="string"?Nn.extname(this.path):void 0}set extname(i){if(l1(i,"extname"),D2(this.dirname,"extname"),i){if(i.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(i.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Nn.join(this.dirname,this.stem+(i||""))}get path(){return this.history[this.history.length-1]}set path(i){z1(i)&&(i=Q7(i)),o1(i,"path"),this.path!==i&&this.history.push(i)}get stem(){return typeof this.path=="string"?Nn.basename(this.path,this.extname):void 0}set stem(i){o1(i,"stem"),l1(i,"stem"),this.path=Nn.join(this.dirname||"",i+(this.extname||""))}fail(i,r,o){const s=this.message(i,r,o);throw s.fatal=!0,s}info(i,r,o){const s=this.message(i,r,o);return s.fatal=void 0,s}message(i,r,o){const s=new Nt(i,r,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(i){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(i||void 0).decode(this.value)}}function l1(t,i){if(t&&t.includes(Nn.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+Nn.sep+"`")}function o1(t,i){if(!t)throw new Error("`"+i+"` cannot be empty")}function D2(t,i){if(!t)throw new Error("Setting `"+i+"` requires `path` to be set too")}function Y7(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const K7=(function(t){const o=this.constructor.prototype,s=o[t],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,o),u}),X7={}.hasOwnProperty;class lu extends K7{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=F7()}copy(){const i=new lu;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];i.use(...o)}return i.data(r1(!0,{},this.namespace)),i}data(i,r){return typeof i=="string"?arguments.length===2?(u1("data",this.frozen),this.namespace[i]=r,this):X7.call(this.namespace,i)&&this.namespace[i]||void 0:i?(u1("data",this.frozen),this.namespace=i,this):this.namespace}freeze(){if(this.frozen)return this;const i=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=r.call(i,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();const r=Ro(i),o=this.parser||this.Parser;return s1("parse",o),o(String(r),r)}process(i,r){const o=this;return this.freeze(),s1("process",this.parser||this.Parser),a1("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(u,c){const f=Ro(i),h=o.parse(f);o.run(h,f,function(x,y,v){if(x||!y||!v)return m(x);const C=y,k=o.stringify(C,v);t9(k)?v.value=k:v.result=k,m(x,v)});function m(x,y){x||!y?c(x):u?u(y):r(void 0,y)}}}processSync(i){let r=!1,o;return this.freeze(),s1("processSync",this.parser||this.Parser),a1("processSync",this.compiler||this.Compiler),this.process(i,s),A2("processSync","process",r),o;function s(u,c){r=!0,P2(u),o=c}}run(i,r,o){R2(i),this.freeze();const s=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?u(void 0,o):new Promise(u);function u(c,f){const h=Ro(r);s.run(i,h,m);function m(x,y,v){const C=y||i;x?f(x):c?c(C):o(void 0,C,v)}}}runSync(i,r){let o=!1,s;return this.run(i,r,u),A2("runSync","run",o),s;function u(c,f){P2(c),s=f,o=!0}}stringify(i,r){this.freeze();const o=Ro(r),s=this.compiler||this.Compiler;return a1("stringify",s),R2(i),s(i,o)}use(i,...r){const o=this.attachers,s=this.namespace;if(u1("use",this.frozen),i!=null)if(typeof i=="function")h(i,r);else if(typeof i=="object")Array.isArray(i)?f(i):c(i);else throw new TypeError("Expected usable value, not `"+i+"`");return this;function u(m){if(typeof m=="function")h(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[x,...y]=m;h(x,y)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(m.plugins),m.settings&&(s.settings=r1(!0,s.settings,m.settings))}function f(m){let x=-1;if(m!=null)if(Array.isArray(m))for(;++x<m.length;){const y=m[x];u(y)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function h(m,x){let y=-1,v=-1;for(;++y<o.length;)if(o[y][0]===m){v=y;break}if(v===-1)o.push([m,...x]);else if(x.length>0){let[C,...k]=x;const N=o[v][1];P1(N)&&P1(C)&&(C=r1(!0,N,C)),o[v]=[m,C,...k]}}}}const J7=new lu().freeze();function s1(t,i){if(typeof i!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function a1(t,i){if(typeof i!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function u1(t,i){if(i)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function R2(t){if(!P1(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function A2(t,i,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+i+"` instead")}function Ro(t){return e9(t)?t:new q3(t)}function e9(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function t9(t){return typeof t=="string"||n9(t)}function n9(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const r9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",F2=[],O2={allowDangerousHtml:!0},i9=/^(https?|ircs?|mailto|xmpp)$/i,l9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function o9(t){const i=s9(t),r=a9(t);return u9(i.runSync(i.parse(r),r),t)}function s9(t){const i=t.rehypePlugins||F2,r=t.remarkPlugins||F2,o=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...O2}:O2;return J7().use(Oh).use(r).use(D7,o).use(i)}function a9(t){const i=t.children||"",r=new q3;return typeof i=="string"&&(r.value=i),r}function u9(t,i){const r=i.allowedElements,o=i.allowElement,s=i.components,u=i.disallowedElements,c=i.skipHtml,f=i.unwrapDisallowed,h=i.urlTransform||c9;for(const x of l9)Object.hasOwn(i,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+r9+x.id,void 0);return iu(t,m),k8(t,{Fragment:d.Fragment,components:s,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function m(x,y,v){if(x.type==="raw"&&v&&typeof y=="number")return c?v.children.splice(y,1):v.children[y]={type:"text",value:x.value},y;if(x.type==="element"){let C;for(C in Ja)if(Object.hasOwn(Ja,C)&&Object.hasOwn(x.properties,C)){const k=x.properties[C],N=Ja[C];(N===null||N.includes(x.tagName))&&(x.properties[C]=h(String(k||""),C,x))}}if(x.type==="element"){let C=r?!r.includes(x.tagName):u?u.includes(x.tagName):!1;if(!C&&o&&typeof y=="number"&&(C=!o(x,y,v)),C&&v&&typeof y=="number")return f&&x.children?v.children.splice(y,1,...x.children):v.children.splice(y,1),y}}}function c9(t){const i=t.indexOf(":"),r=t.indexOf("?"),o=t.indexOf("#"),s=t.indexOf("/");return i===-1||s!==-1&&i>s||r!==-1&&i>r||o!==-1&&i>o||i9.test(t.slice(0,i))?t:""}function B2(t,i){const r=String(t);if(typeof i!="string")throw new TypeError("Expected character");let o=0,s=r.indexOf(i);for(;s!==-1;)o++,s=r.indexOf(i,s+i.length);return o}function d9(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function f9(t,i,r){const s=ls((r||{}).ignore||[]),u=p9(i);let c=-1;for(;++c<u.length;)W3(t,"text",f);function f(m,x){let y=-1,v;for(;++y<x.length;){const C=x[y],k=v?v.children:void 0;if(s(C,k?k.indexOf(C):void 0,v))return;v=C}if(v)return h(m,x)}function h(m,x){const y=x[x.length-1],v=u[c][0],C=u[c][1];let k=0;const b=y.children.indexOf(m);let _=!1,T=[];v.lastIndex=0;let I=v.exec(m.value);for(;I;){const U=I.index,Z={index:I.index,input:I.input,stack:[...x,m]};let F=C(...I,Z);if(typeof F=="string"&&(F=F.length>0?{type:"text",value:F}:void 0),F===!1?v.lastIndex=U+1:(k!==U&&T.push({type:"text",value:m.value.slice(k,U)}),Array.isArray(F)?T.push(...F):F&&T.push(F),k=U+I[0].length,_=!0),!v.global)break;I=v.exec(m.value)}return _?(k<m.value.length&&T.push({type:"text",value:m.value.slice(k)}),y.children.splice(b,1,...T)):T=[m],b+T.length}}function p9(t){const i=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let o=-1;for(;++o<r.length;){const s=r[o];i.push([h9(s[0]),m9(s[1])])}return i}function h9(t){return typeof t=="string"?new RegExp(d9(t),"g"):t}function m9(t){return typeof t=="function"?t:function(){return t}}const c1="phrasing",d1=["autolink","link","image","label"];function g9(){return{transforms:[_9],enter:{literalAutolink:x9,literalAutolinkEmail:f1,literalAutolinkHttp:f1,literalAutolinkWww:f1},exit:{literalAutolink:k9,literalAutolinkEmail:w9,literalAutolinkHttp:v9,literalAutolinkWww:C9}}}function y9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:c1,notInConstruct:d1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:c1,notInConstruct:d1},{character:":",before:"[ps]",after:"\\/",inConstruct:c1,notInConstruct:d1}]}}function x9(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function f1(t){this.config.enter.autolinkProtocol.call(this,t)}function v9(t){this.config.exit.autolinkProtocol.call(this,t)}function C9(t){this.config.exit.data.call(this,t);const i=this.stack[this.stack.length-1];i.type,i.url="http://"+this.sliceSerialize(t)}function w9(t){this.config.exit.autolinkEmail.call(this,t)}function k9(t){this.exit(t)}function _9(t){f9(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,S9],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),E9]],{ignore:["link","linkReference"]})}function S9(t,i,r,o,s){let u="";if(!Z3(s)||(/^w/i.test(i)&&(r=i+r,i="",u="http://"),!b9(r)))return!1;const c=j9(r+o);if(!c[0])return!1;const f={type:"link",title:null,url:u+i+c[0],children:[{type:"text",value:i+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function E9(t,i,r,o){return!Z3(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+r,children:[{type:"text",value:i+"@"+r}]}}function b9(t){const i=t.split(".");return!(i.length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))}function j9(t){const i=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!i)return[t,void 0];t=t.slice(0,i.index);let r=i[0],o=r.indexOf(")");const s=B2(t,"(");let u=B2(t,")");for(;o!==-1&&s>u;)t+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),u++;return[t,r]}function Z3(t,i){const r=t.input.charCodeAt(t.index-1);return(t.index===0||Fr(r)||ns(r))&&(!i||r!==47)}Q3.peek=R9;function L9(){this.buffer()}function N9(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function I9(){this.buffer()}function M9(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function T9(t){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=vn(this.sliceSerialize(t)).toLowerCase(),r.label=i}function P9(t){this.exit(t)}function z9(t){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=vn(this.sliceSerialize(t)).toLowerCase(),r.label=i}function D9(t){this.exit(t)}function R9(){return"["}function Q3(t,i,r,o){const s=r.createTracker(o);let u=s.move("[^");const c=r.enter("footnoteReference"),f=r.enter("reference");return u+=s.move(r.safe(r.associationId(t),{after:"]",before:u})),f(),c(),u+=s.move("]"),u}function A9(){return{enter:{gfmFootnoteCallString:L9,gfmFootnoteCall:N9,gfmFootnoteDefinitionLabelString:I9,gfmFootnoteDefinition:M9},exit:{gfmFootnoteCallString:T9,gfmFootnoteCall:P9,gfmFootnoteDefinitionLabelString:z9,gfmFootnoteDefinition:D9}}}function F9(t){let i=!1;return t&&t.firstLineBlank&&(i=!0),{handlers:{footnoteDefinition:r,footnoteReference:Q3},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,s,u,c){const f=u.createTracker(c);let h=f.move("[^");const m=u.enter("footnoteDefinition"),x=u.enter("label");return h+=f.move(u.safe(u.associationId(o),{before:h,after:"]"})),x(),h+=f.move("]:"),o.children&&o.children.length>0&&(f.shift(4),h+=f.move((i?`
60
- `:" ")+u.indentLines(u.containerFlow(o,f.current()),i?G3:O9))),m(),h}}function O9(t,i,r){return i===0?t:G3(t,i,r)}function G3(t,i,r){return(r?"":" ")+t}const B9=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Y3.peek=W9;function $9(){return{canContainEols:["delete"],enter:{strikethrough:V9},exit:{strikethrough:U9}}}function H9(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:B9}],handlers:{delete:Y3}}}function V9(t){this.enter({type:"delete",children:[]},t)}function U9(t){this.exit(t)}function Y3(t,i,r,o){const s=r.createTracker(o),u=r.enter("strikethrough");let c=s.move("~~");return c+=r.containerPhrasing(t,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),u(),c}function W9(){return"~"}function q9(t){return t.length}function Z9(t,i){const r=i||{},o=(r.align||[]).concat(),s=r.stringLength||q9,u=[],c=[],f=[],h=[];let m=0,x=-1;for(;++x<t.length;){const N=[],b=[];let _=-1;for(t[x].length>m&&(m=t[x].length);++_<t[x].length;){const T=Q9(t[x][_]);if(r.alignDelimiters!==!1){const I=s(T);b[_]=I,(h[_]===void 0||I>h[_])&&(h[_]=I)}N.push(T)}c[x]=N,f[x]=b}let y=-1;if(typeof o=="object"&&"length"in o)for(;++y<m;)u[y]=$2(o[y]);else{const N=$2(o);for(;++y<m;)u[y]=N}y=-1;const v=[],C=[];for(;++y<m;){const N=u[y];let b="",_="";N===99?(b=":",_=":"):N===108?b=":":N===114&&(_=":");let T=r.alignDelimiters===!1?1:Math.max(1,h[y]-b.length-_.length);const I=b+"-".repeat(T)+_;r.alignDelimiters!==!1&&(T=b.length+T+_.length,T>h[y]&&(h[y]=T),C[y]=T),v[y]=I}c.splice(1,0,v),f.splice(1,0,C),x=-1;const k=[];for(;++x<c.length;){const N=c[x],b=f[x];y=-1;const _=[];for(;++y<m;){const T=N[y]||"";let I="",U="";if(r.alignDelimiters!==!1){const Z=h[y]-(b[y]||0),F=u[y];F===114?I=" ".repeat(Z):F===99?Z%2?(I=" ".repeat(Z/2+.5),U=" ".repeat(Z/2-.5)):(I=" ".repeat(Z/2),U=I):U=" ".repeat(Z)}r.delimiterStart!==!1&&!y&&_.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||y)&&_.push(" "),r.alignDelimiters!==!1&&_.push(I),_.push(T),r.alignDelimiters!==!1&&_.push(U),r.padding!==!1&&_.push(" "),(r.delimiterEnd!==!1||y!==m-1)&&_.push("|")}k.push(r.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return k.join(`
61
- `)}function Q9(t){return t==null?"":String(t)}function $2(t){const i=typeof t=="string"?t.codePointAt(0):0;return i===67||i===99?99:i===76||i===108?108:i===82||i===114?114:0}function G9(t,i,r,o){const s=r.enter("blockquote"),u=r.createTracker(o);u.move("> "),u.shift(2);const c=r.indentLines(r.containerFlow(t,u.current()),Y9);return s(),c}function Y9(t,i,r){return">"+(r?"":" ")+t}function K9(t,i){return H2(t,i.inConstruct,!0)&&!H2(t,i.notInConstruct,!1)}function H2(t,i,r){if(typeof i=="string"&&(i=[i]),!i||i.length===0)return r;let o=-1;for(;++o<i.length;)if(t.includes(i[o]))return!0;return!1}function V2(t,i,r,o){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
62
- `&&K9(r.stack,r.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
63
- `}function X9(t,i){const r=String(t);let o=r.indexOf(i),s=o,u=0,c=0;if(typeof i!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++u>c&&(c=u):u=1,s=o+i.length,o=r.indexOf(i,s);return c}function J9(t,i){return!!(i.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function em(t){const i=t.options.fence||"`";if(i!=="`"&&i!=="~")throw new Error("Cannot serialize code with `"+i+"` for `options.fence`, expected `` ` `` or `~`");return i}function tm(t,i,r,o){const s=em(r),u=t.value||"",c=s==="`"?"GraveAccent":"Tilde";if(J9(t,r)){const y=r.enter("codeIndented"),v=r.indentLines(u,nm);return y(),v}const f=r.createTracker(o),h=s.repeat(Math.max(X9(u,s)+1,3)),m=r.enter("codeFenced");let x=f.move(h);if(t.lang){const y=r.enter(`codeFencedLang${c}`);x+=f.move(r.safe(t.lang,{before:x,after:" ",encode:["`"],...f.current()})),y()}if(t.lang&&t.meta){const y=r.enter(`codeFencedMeta${c}`);x+=f.move(" "),x+=f.move(r.safe(t.meta,{before:x,after:`
64
- `,encode:["`"],...f.current()})),y()}return x+=f.move(`
65
- `),u&&(x+=f.move(u+`
66
- `)),x+=f.move(h),m(),x}function nm(t,i,r){return(r?"":" ")+t}function ou(t){const i=t.options.quote||'"';if(i!=='"'&&i!=="'")throw new Error("Cannot serialize title with `"+i+"` for `options.quote`, expected `\"`, or `'`");return i}function rm(t,i,r,o){const s=ou(r),u=s==='"'?"Quote":"Apostrophe",c=r.enter("definition");let f=r.enter("label");const h=r.createTracker(o);let m=h.move("[");return m+=h.move(r.safe(r.associationId(t),{before:m,after:"]",...h.current()})),m+=h.move("]: "),f(),!t.url||/[\0- \u007F]/.test(t.url)?(f=r.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(r.safe(t.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(f=r.enter("destinationRaw"),m+=h.move(r.safe(t.url,{before:m,after:t.title?" ":`
67
- `,...h.current()}))),f(),t.title&&(f=r.enter(`title${u}`),m+=h.move(" "+s),m+=h.move(r.safe(t.title,{before:m,after:s,...h.current()})),m+=h.move(s),f()),c(),m}function im(t){const i=t.options.emphasis||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize emphasis with `"+i+"` for `options.emphasis`, expected `*`, or `_`");return i}function xl(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Xo(t,i,r){const o=mi(t),s=mi(i);return o===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}K3.peek=lm;function K3(t,i,r,o){const s=im(r),u=r.enter("emphasis"),c=r.createTracker(o),f=c.move(s);let h=c.move(r.containerPhrasing(t,{after:s,before:f,...c.current()}));const m=h.charCodeAt(0),x=Xo(o.before.charCodeAt(o.before.length-1),m,s);x.inside&&(h=xl(m)+h.slice(1));const y=h.charCodeAt(h.length-1),v=Xo(o.after.charCodeAt(0),y,s);v.inside&&(h=h.slice(0,-1)+xl(y));const C=c.move(s);return u(),r.attentionEncodeSurroundingInfo={after:v.outside,before:x.outside},f+h+C}function lm(t,i,r){return r.options.emphasis||"*"}function om(t,i){let r=!1;return iu(t,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return r=!0,M1}),!!((!t.depth||t.depth<3)&&K1(t)&&(i.options.setext||r))}function sm(t,i,r,o){const s=Math.max(Math.min(6,t.depth||1),1),u=r.createTracker(o);if(om(t,r)){const x=r.enter("headingSetext"),y=r.enter("phrasing"),v=r.containerPhrasing(t,{...u.current(),before:`
46
+ `,c5=`data:image/svg+xml,${encodeURIComponent(u5)}`;function Jo({size:e=24,className:r}){return c.jsx("img",{src:c5,width:e,height:e,className:r,alt:"","aria-hidden":"true"})}const d5="_bubble_1nw3t_1",f5={bubble:d5};function j1({label:e,side:r="right",delayMs:i=0,disabled:o=!1,maxWidth:s,children:u}){const d=E.useRef(null),f=u.ref,p=E.useCallback(ee=>{d.current=ee,typeof f=="function"?f(ee):f!=null&&(f.current=ee)},[f]),[m,y]=E.useState(null),[x,v]=E.useState(r),C=E.useRef(null),k=m===null?null:typeof e=="function"?e():e,P=m===null?0:x==="right"?m.top+(m.bottom-m.top)/2:x==="top"?m.top-8:m.bottom+8,R=12;E.useLayoutEffect(()=>{if(m===null)return;const ee=()=>{const ie=C.current;if(ie===null)return;ie.style.left=`${m.x}px`;const Y=ie.getBoundingClientRect();let D=0;if(Y.right>window.innerWidth-R&&(D=window.innerWidth-R-Y.right),Y.left+D<R&&(D=R-Y.left),ie.style.left=`${m.x+D}px`,r==="right")return;const L=m.bottom+8+Y.height<=window.innerHeight-R,Z=m.top-8-Y.height>=R;x==="bottom"&&!L&&Z&&v("top"),x==="top"&&!Z&&L&&v("bottom")};return ee(),window.addEventListener("resize",ee),()=>{window.removeEventListener("resize",ee)}},[x,m,k,r]);const j=E.useRef(null),V=E.useRef({hover:!1,focus:!1}),b=E.useCallback(()=>{j.current!==null&&(clearTimeout(j.current),j.current=null)},[]);E.useEffect(()=>(o&&(b(),V.current={hover:!1,focus:!1},y(null)),b),[b,o]);const $=()=>{if(o)return;const ee=d.current;if(ee===null)return;const ie=ee.getBoundingClientRect();v(r),y({x:r==="right"?ie.right+10:ie.left+ie.width/2,top:ie.top,bottom:ie.bottom})},B=()=>{if(b(),i<=0){$();return}j.current=setTimeout(()=>{j.current=null,$()},i)},T=()=>{b(),!V.current.hover&&!V.current.focus&&y(null)};return c.jsxs(c.Fragment,{children:[E.cloneElement(u,{ref:p,onMouseEnter:ee=>{var ie,Y;(Y=(ie=u.props).onMouseEnter)==null||Y.call(ie,ee),V.current.hover=!0,B()},onMouseLeave:ee=>{var ie,Y;(Y=(ie=u.props).onMouseLeave)==null||Y.call(ie,ee),V.current.hover=!1,b(),y(null)},onFocus:ee=>{var ie,Y;(Y=(ie=u.props).onFocus)==null||Y.call(ie,ee),V.current.focus=!0,b(),$()},onBlur:ee=>{var ie,Y;(Y=(ie=u.props).onBlur)==null||Y.call(ie,ee),V.current.focus=!1,T()}}),m!==null&&c.jsx("span",{ref:C,className:f5.bubble,"data-side":x,style:{left:m.x,top:P,...s===void 0?{}:{maxWidth:s}},role:"tooltip",children:k})]})}const p5="_dot_1cjbl_3",h5="_matrix_1cjbl_4",m5="_cell_1cjbl_62",t1={dot:p5,matrix:h5,cell:m5},d2=[[0,0],[4,0],[8,0],[8,4],[8,8],[4,8],[0,8],[0,4]];function Q1({state:e,size:r=10,className:i}){return e==="ongoing"?c.jsx("svg",{className:ot(t1.matrix,i),"data-state":"ongoing",width:r,height:r,viewBox:"0 0 10 10",shapeRendering:"crispEdges","aria-hidden":"true",children:d2.map(([o,s],u)=>c.jsx("rect",{className:t1.cell,x:o,y:s,width:"2",height:"2",style:{animationDelay:`${(u-d2.length)*125}ms`}},`${o}-${s}`))}):c.jsx("span",{className:ot(t1.dot,i),"data-state":e,style:{width:r,height:r},"aria-hidden":"true"})}const g5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M8.00003 0.3237C3.76075 0.3237 0.32373 3.76072 0.32373 8C0.32373 9.17603 0.589121 10.2922 1.0632 11.2901L1.35291 11.8989L2.5705 11.3205L2.28079 10.7117C1.89079 9.89074 1.67301 8.97167 1.67301 8C1.67301 4.50546 4.50549 1.67298 8.00003 1.67298C11.4946 1.67298 14.3271 4.50546 14.3271 8C14.3271 11.4945 11.4946 14.327 8.00003 14.327C7.28473 14.327 6.76077 14.277 6.29621 14.1487C5.83857 14.0224 5.40441 13.8109 4.88514 13.4488C4.12569 12.919 3.03778 12.7316 2.141 13.2978L2.12682 13.307L2.11264 13.3171L1.34886 13.854L1.79659 15.188L2.86122 14.4384C3.19068 14.2305 3.68325 14.2542 4.11326 14.5539C4.72789 14.9826 5.30042 15.2724 5.93762 15.4484C6.56803 15.6224 7.22776 15.6763 8.00003 15.6763C12.2393 15.6763 15.6763 12.2393 15.6763 8C15.6763 3.76072 12.2393 0.3237 8.00003 0.3237ZM7.32033 4.82535V7.32536H4.82538V8.67464H7.32033V11.1747H8.6696V8.67464H11.1747V7.32536H8.6696V4.82535H7.32033Z",fill:"currentColor"})}),yd=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M11.894845 6.647401C11.894845 3.725463 9.534486 1.356779 6.623219 1.35657C3.711786 1.35657 1.351635 3.725338 1.351635 6.647401C1.351843 9.569296 3.711911 11.938273 6.623219 11.938273C9.534361 11.938064 11.894637 9.569171 11.894845 6.647401ZM13.245462 6.647401C13.245254 10.317935 10.280401 13.293613 6.623219 13.293821C2.965871 13.293821 0.000204 10.31806 0 6.647401C0 2.976574 2.965746 0 6.623219 0C10.280526 0.000205 13.245462 2.9767 13.245462 6.647401Z",fill:"currentColor"}),c.jsx("path",{d:"M16.000417 15.041079L15.044449 16.000433L11.530434 12.473588L12.486298 11.514234L16.000417 15.041079Z",fill:"currentColor"})]}),x5=({size:e=14,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_2580_121189)",children:[c.jsx("path",{d:"M12.1192 4.91016C11.9392 4.52714 11.7007 4.1292 11.4483 3.78809C11.385 3.70258 11.3517 3.68409 11.2462 3.67383C10.7419 3.6248 10.2318 3.69454 9.72662 3.64551C9.29108 3.60318 8.93739 3.40341 8.67682 3.05176C8.38762 2.66127 8.19217 2.20926 7.90338 1.81934C7.83985 1.73359 7.80848 1.71542 7.70221 1.70508C7.24758 1.6609 6.7511 1.66104 6.29791 1.70508C6.19164 1.71542 6.16027 1.73359 6.09674 1.81934C5.80775 2.20954 5.61248 2.66131 5.3233 3.05176C5.06273 3.40341 4.70904 3.60318 4.2735 3.64551C3.76831 3.69454 3.25825 3.6248 2.75397 3.67383C2.6484 3.68409 2.61509 3.70258 2.55182 3.78809C2.30019 4.12814 2.06125 4.52646 1.88092 4.91016C1.83256 5.01309 1.83242 5.04912 1.88092 5.15235C2.07954 5.57482 2.37449 5.94529 2.5733 6.36817C2.76971 6.78606 2.76964 7.21293 2.5733 7.63086C2.37462 8.05374 2.07947 8.42453 1.88092 8.84668C1.83235 8.95004 1.83257 8.98695 1.88092 9.08985C2.06098 9.47285 2.2994 9.87079 2.55182 10.2119C2.61509 10.2974 2.6484 10.3159 2.75397 10.3262C3.25879 10.3753 3.76834 10.3055 4.2735 10.3545C4.70904 10.3968 5.06273 10.5966 5.3233 10.9482C5.6125 11.3387 5.80795 11.7907 6.09674 12.1807C6.16027 12.2664 6.19164 12.2846 6.29791 12.2949C6.7511 12.339 7.24758 12.3391 7.70221 12.2949C7.80848 12.2846 7.83985 12.2664 7.90338 12.1807C8.19237 11.7905 8.38764 11.3387 8.67682 10.9482C8.93739 10.5966 9.29108 10.3968 9.72662 10.3545C10.2318 10.3055 10.7419 10.3752 11.2462 10.3262C11.3517 10.3159 11.385 10.2974 11.4483 10.2119C11.7007 9.87079 11.9391 9.47285 12.1192 9.08985C12.1675 8.98695 12.1678 8.95004 12.1192 8.84668C11.9205 8.42428 11.6255 8.05377 11.4268 7.63086C11.2305 7.21293 11.2304 6.78606 11.4268 6.36817C11.6256 5.94531 11.9207 5.5746 12.1192 5.15235C12.1677 5.04912 12.1676 5.01309 12.1192 4.91016ZM13.2051 5.66309C13.0064 6.08573 12.7114 6.45579 12.5128 6.87793C12.4642 6.98123 12.4645 7.01829 12.5128 7.1211C12.7112 7.54328 13.0064 7.91405 13.2051 8.33692C13.4015 8.75487 13.4015 9.18169 13.2051 9.59961C12.9911 10.0551 12.7109 10.5221 12.4122 10.9258C12.1522 11.277 11.7974 11.4782 11.3624 11.5205C10.8573 11.5696 10.3477 11.4999 9.84283 11.5488C9.73621 11.5592 9.70429 11.5772 9.64069 11.6631C9.35229 12.0526 9.15705 12.5044 8.86823 12.8945C8.60854 13.2452 8.25275 13.447 7.81842 13.4893C7.28749 13.5409 6.71096 13.5407 6.1817 13.4893C5.74737 13.447 5.39158 13.2452 5.1319 12.8945C4.84312 12.5045 4.64808 12.0529 4.35944 11.6631C4.29583 11.5772 4.26392 11.5592 4.15729 11.5488C3.65283 11.5 3.14295 11.5696 2.63776 11.5205C2.20274 11.4782 1.84796 11.277 1.58795 10.9258C1.28834 10.5209 1.00864 10.0543 0.794982 9.59961C0.598644 9.18169 0.598598 8.75487 0.794982 8.33692C0.993688 7.91405 1.28889 7.54328 1.48737 7.1211C1.53567 7.01829 1.53593 6.98123 1.48737 6.87793C1.28887 6.45603 0.993667 6.08569 0.794982 5.66309C0.598535 5.24516 0.59869 4.81829 0.794982 4.40039C1.00898 3.94492 1.28922 3.47791 1.58795 3.07422C1.84796 2.723 2.20274 2.5218 2.63776 2.47949C3.14295 2.43038 3.65283 2.50003 4.15729 2.45117C4.26391 2.44081 4.29583 2.4228 4.35944 2.33692C4.64783 1.94742 4.84308 1.49557 5.1319 1.10547C5.39158 0.754835 5.74737 0.553005 6.1817 0.510744C6.71263 0.459147 7.28917 0.459309 7.81842 0.510744C8.25275 0.553005 8.60854 0.754835 8.86823 1.10547C9.157 1.49551 9.35204 1.94708 9.64069 2.33692C9.70429 2.4228 9.73621 2.44081 9.84283 2.45117C10.3477 2.50007 10.8573 2.43039 11.3624 2.47949C11.7974 2.5218 12.1522 2.723 12.4122 3.07422C12.7118 3.47909 12.9915 3.94567 13.2051 4.40039C13.4014 4.81829 13.4016 5.24516 13.2051 5.66309Z",fill:"currentColor"}),c.jsx("path",{d:"M7.9317 7C7.9317 6.48569 7.51438 6.06836 7.00006 6.06836C6.48575 6.06836 6.06842 6.48569 6.06842 7C6.06842 7.51432 6.48575 7.93164 7.00006 7.93164C7.51438 7.93164 7.9317 7.51432 7.9317 7ZM9.13092 7C9.13092 8.17706 8.17712 9.13086 7.00006 9.13086C5.823 9.13086 4.8692 8.17706 4.8692 7C4.8692 5.82294 5.823 4.86914 7.00006 4.86914C8.17712 4.86914 9.13092 5.82294 9.13092 7Z",fill:"currentColor"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_2580_121189",children:c.jsx("rect",{width:14,height:14,fill:"currentColor"})})})]}),vd=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_1450_63327)",children:[c.jsx("path",{d:"M14.0861 5.51366C13.8717 5.0575 13.588 4.58542 13.2889 4.18108C13.208 4.07172 13.1596 4.04373 13.0243 4.03054C12.4277 3.97255 11.8245 4.05527 11.2269 3.9972C10.7224 3.94816 10.3133 3.71661 10.0115 3.30919C9.66986 2.84777 9.43973 2.31343 9.09824 1.85234C9.01771 1.74365 8.96805 1.71589 8.83354 1.70282C8.29432 1.65044 7.70402 1.65061 7.16656 1.70282C7.03205 1.71589 6.98239 1.74365 6.90186 1.85234C6.56067 2.31303 6.33025 2.84774 5.98855 3.30919C5.68681 3.71661 5.27774 3.94816 4.77317 3.9972C4.17564 4.05527 3.57239 3.97255 2.97585 4.03054C2.84046 4.04373 2.79208 4.07172 2.71115 4.18108C2.41212 4.58542 2.12835 5.0575 1.91403 5.51366C1.85299 5.64359 1.85286 5.7018 1.91403 5.8319C2.14865 6.33077 2.49748 6.76892 2.73237 7.26854C2.9594 7.7515 2.96041 8.24717 2.73338 8.73044C2.49837 9.23061 2.14891 9.66837 1.91403 10.1681C1.85291 10.2982 1.85299 10.3564 1.91403 10.4863C2.12856 10.9429 2.41185 11.4142 2.71115 11.8189C2.79208 11.9283 2.84046 11.9563 2.97585 11.9694C3.57239 12.0274 4.17564 11.9447 4.77317 12.0028C5.27774 12.0518 5.68681 12.2834 5.98855 12.6908C6.33024 13.1522 6.56037 13.6866 6.90186 14.1476C6.98239 14.2563 7.03205 14.2841 7.16656 14.2972C7.70402 14.3494 8.29432 14.3495 8.83354 14.2972C8.96805 14.2841 9.01771 14.2563 9.09824 14.1476C9.43944 13.687 9.66985 13.1522 10.0115 12.6908C10.3133 12.2834 10.7224 12.0518 11.2269 12.0028C11.8244 11.9447 12.4271 12.0275 13.0243 11.9694C13.1596 11.9563 13.208 11.9283 13.2889 11.8189C13.5891 11.4131 13.872 10.942 14.0861 10.4863C14.1471 10.3564 14.1472 10.2982 14.0861 10.1681C13.8513 9.66861 13.5017 9.23061 13.2667 8.73044C13.0397 8.24717 13.0407 7.7515 13.2677 7.26854C13.5026 6.7689 13.8513 6.33106 14.0861 5.8319C14.1472 5.7018 14.1471 5.64359 14.0861 5.51366ZM15.3035 6.40373C15.0685 6.90359 14.7188 7.34119 14.4841 7.84037C14.4231 7.97025 14.423 8.02855 14.4841 8.15861C14.7189 8.65833 15.0685 9.09611 15.3035 9.59626C15.5308 10.0801 15.5308 10.5744 15.3035 11.0582C15.052 11.5933 14.7225 12.1426 14.37 12.6191C14.0685 13.0265 13.6581 13.259 13.1536 13.3081C12.5566 13.366 11.9541 13.2835 11.3573 13.3414C11.2228 13.3545 11.1731 13.3823 11.0926 13.491C10.7511 13.9521 10.521 14.4864 10.1793 14.9478C9.87828 15.3542 9.46719 15.5869 8.96387 15.6358C8.34008 15.6964 7.66194 15.6966 7.03623 15.6358C6.53291 15.5869 6.12182 15.3542 5.82084 14.9478C5.47911 14.4863 5.24878 13.9517 4.90753 13.491C4.82701 13.3823 4.77734 13.3545 4.64284 13.3414C4.04647 13.2835 3.44373 13.366 2.84653 13.3081C2.34201 13.259 1.93164 13.0265 1.63013 12.6191C1.27867 12.144 0.948453 11.5941 0.696621 11.0582C0.469315 10.5744 0.469279 10.0801 0.696621 9.59626C0.931628 9.09613 1.2813 8.65807 1.51597 8.15861C1.57708 8.02855 1.57702 7.97025 1.51597 7.84037C1.28117 7.34095 0.931635 6.9036 0.696621 6.40373C0.469213 5.91992 0.469367 5.42562 0.696621 4.94183C0.948441 4.40587 1.27868 3.85598 1.63013 3.38092C1.93164 2.97349 2.34201 2.74095 2.84653 2.6919C3.44353 2.63397 4.04599 2.71649 4.64284 2.65856C4.77734 2.64549 4.82701 2.61774 4.90753 2.50904C5.24905 2.04792 5.47913 1.51362 5.82084 1.05219C6.12182 0.645806 6.53291 0.413119 7.03623 0.364178C7.66002 0.303556 8.33816 0.303369 8.96387 0.364178C9.46719 0.413119 9.87828 0.645806 10.1793 1.05219C10.521 1.51365 10.7513 2.04828 11.0926 2.50904C11.1731 2.61774 11.2228 2.64549 11.3573 2.65856C11.9541 2.71649 12.5566 2.63397 13.1536 2.6919C13.6581 2.74095 14.0685 2.97349 14.37 3.38092C14.7214 3.85598 15.0517 4.40587 15.3035 4.94183C15.5307 5.42562 15.5309 5.91992 15.3035 6.40373Z",fill:"currentColor"}),c.jsx("path",{d:"M9.13764 7.99999C9.13764 7.3715 8.62855 6.8624 8.00005 6.8624C7.37155 6.8624 6.86246 7.3715 6.86246 7.99999C6.86246 8.62849 7.37155 9.13759 8.00005 9.13759C8.62855 9.13759 9.13764 8.62849 9.13764 7.99999ZM10.4834 7.99999C10.4834 9.37126 9.37132 10.4833 8.00005 10.4833C6.62878 10.4833 5.51674 9.37126 5.51674 7.99999C5.51674 6.62873 6.62878 5.51669 8.00005 5.51669C9.37132 5.51669 10.4834 6.62873 10.4834 7.99999Z",fill:"currentColor"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_1450_63327",children:c.jsx("rect",{width:16,height:16,fill:"currentColor"})})})]}),y5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.67272 0.522841C10.8339 0.522841 11.76 0.522714 12.4963 0.602493C13.2453 0.683657 13.8789 0.854248 14.4264 1.25197C14.7504 1.48739 15.0355 1.77247 15.2709 2.0965C15.6686 2.64394 15.8392 3.27758 15.9204 4.02655C16.0002 4.7629 16 5.68895 16 6.85014V9.14986C16 10.3111 16.0002 11.2371 15.9204 11.9735C15.8392 12.7224 15.6686 13.3561 15.2709 13.9035C15.0355 14.2275 14.7504 14.5126 14.4264 14.748C13.8789 15.1458 13.2453 15.3163 12.4963 15.3975C11.76 15.4773 10.8339 15.4772 9.67272 15.4772H6.3273C5.16611 15.4772 4.24006 15.4773 3.50371 15.3975C2.75474 15.3163 2.1211 15.1458 1.57366 14.748C1.24963 14.5126 0.964549 14.2275 0.729131 13.9035C0.331407 13.3561 0.160817 12.7224 0.0796529 11.9735C-0.000126137 11.2371 1.25338e-09 10.3111 1.25338e-09 9.14986V6.85014C1.25329e-09 5.68895 -0.000126137 4.7629 0.0796529 4.02655C0.160817 3.27758 0.331407 2.64394 0.729131 2.0965C0.964549 1.77247 1.24963 1.48739 1.57366 1.25197C2.1211 0.854248 2.75474 0.683657 3.50371 0.602493C4.24006 0.522714 5.16611 0.522841 6.3273 0.522841H9.67272ZM5.54303 1.88715V14.1118C5.78636 14.1128 6.04709 14.1169 6.3273 14.1169H9.67272C10.8639 14.1169 11.7032 14.1164 12.3493 14.0465C12.9824 13.9779 13.3497 13.8494 13.6268 13.6482C13.8354 13.4966 14.0195 13.3125 14.1711 13.1039C14.3723 12.8268 14.5007 12.4595 14.5693 11.8264C14.6393 11.1803 14.6398 10.341 14.6398 9.14986V6.85014C14.6398 5.65896 14.6393 4.81967 14.5693 4.1736C14.5007 3.54048 14.3723 3.17318 14.1711 2.89609C14.0195 2.68747 13.8354 2.50337 13.6268 2.35179C13.3497 2.1506 12.9824 2.02212 12.3493 1.95353C11.7032 1.88358 10.8639 1.88307 9.67272 1.88307H6.3273C6.04709 1.88307 5.78636 1.8862 5.54303 1.88715ZM4.1828 1.91166C3.99125 1.9216 3.8148 1.93577 3.65076 1.95353C3.01764 2.02212 2.65034 2.1506 2.37325 2.35179C2.16463 2.50337 1.98052 2.68747 1.82895 2.89609C1.62776 3.17318 1.49928 3.54048 1.43069 4.1736C1.36074 4.81967 1.36023 5.65896 1.36023 6.85014V9.14986C1.36023 10.341 1.36074 11.1803 1.43069 11.8264C1.49928 12.4595 1.62776 12.8268 1.82895 13.1039C1.98052 13.3125 2.16463 13.4966 2.37325 13.6482C2.65034 13.8494 3.01764 13.9779 3.65076 14.0465C3.81478 14.0642 3.99127 14.0774 4.1828 14.0873V1.91166Z",fill:"currentColor"})}),G1=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M8.64453 1.5V7.34961H14.5V8.65039H8.64453V14.5H7.34473V8.65039H1.5V7.34961H7.34473V1.5H8.64453Z",fill:"currentColor"})}),L1=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M15.0498 3.92579L8.49512 12.3818C8.25774 12.6881 8.04517 12.9645 7.84668 13.1689C7.63957 13.3823 7.38732 13.5841 7.04492 13.6719C6.86373 13.7183 6.6757 13.7346 6.48926 13.7197C6.13666 13.6915 5.8528 13.5355 5.6123 13.3604C5.38201 13.1926 5.12573 12.9567 4.83984 12.6953L1.03125 9.21289L1.96875 8.1875L5.77734 11.6699C6.08684 11.9529 6.27773 12.1249 6.43066 12.2363C6.50183 12.2882 6.54699 12.3135 6.57324 12.3252C6.58525 12.3305 6.59269 12.3322 6.5957 12.333C6.59802 12.3336 6.59961 12.334 6.59961 12.334C6.63317 12.3367 6.66758 12.3335 6.7002 12.3252C6.7002 12.3252 6.70211 12.3251 6.7041 12.3242C6.70698 12.3229 6.71348 12.319 6.72461 12.3115C6.74849 12.2956 6.78843 12.2642 6.84961 12.2012C6.98138 12.0654 7.13957 11.8628 7.39648 11.5313L13.9502 3.07422L15.0498 3.92579Z",fill:"currentColor"})}),wl=({size:e=14,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M11.8486 5.5L11.4238 5.92383L8.69727 8.65137C8.44157 8.90706 8.21562 9.13382 8.01172 9.29785C7.79912 9.46883 7.55595 9.61756 7.25 9.66602C7.08435 9.69222 6.91565 9.69222 6.75 9.66602C6.44405 9.61756 6.20088 9.46883 5.98828 9.29785C5.78438 9.13382 5.55843 8.90706 5.30273 8.65137L2.57617 5.92383L2.15137 5.5L3 4.65137L3.42383 5.07617L6.15137 7.80273C6.42595 8.07732 6.59876 8.24849 6.74023 8.3623C6.87291 8.46904 6.92272 8.47813 6.9375 8.48047C6.97895 8.48703 7.02105 8.48703 7.0625 8.48047C7.07728 8.47813 7.12709 8.46904 7.25977 8.3623C7.40124 8.24849 7.57405 8.07732 7.84863 7.80273L10.5762 5.07617L11 4.65137L11.8486 5.5Z",fill:"currentColor"})}),es=({size:e=14,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M5.5 2.15137L5.92383 2.57617L8.65137 5.30273C8.90706 5.55843 9.13382 5.78438 9.29785 5.98828C9.46883 6.20088 9.61756 6.44405 9.66602 6.75C9.69222 6.91565 9.69222 7.08435 9.66602 7.25C9.61756 7.55595 9.46883 7.79912 9.29785 8.01172C9.13382 8.21561 8.90706 8.44157 8.65137 8.69727L5.92383 11.4238L5.5 11.8486L4.65137 11L5.07617 10.5762L7.80273 7.84863C8.07732 7.57405 8.24849 7.40124 8.3623 7.25977C8.46904 7.12709 8.47813 7.07728 8.48047 7.0625C8.48703 7.02105 8.48703 6.97895 8.48047 6.9375C8.47813 6.92272 8.46904 6.87291 8.3623 6.74023C8.24848 6.59876 8.07732 6.42595 7.80273 6.15137L5.07617 3.42383L4.65137 3L5.5 2.15137Z",fill:"currentColor"})}),ss=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M14.1168 13.197L13.197 14.1167L1.8833 2.80303L2.80309 1.88324L14.1168 13.197Z",fill:"currentColor"}),c.jsx("path",{d:"M13.197 1.88326L14.1168 2.80305L2.80309 14.1168L1.8833 13.197L13.197 1.88326Z",fill:"currentColor"})]}),K1=({size:e=14,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M10.6074 4.40278L8.00975 6.99973L10.6074 9.59739L9.59736 10.6074L6.9997 8.00978L4.40274 10.6074L3.3927 9.59739L5.98966 6.99973L3.3927 4.40278L4.40274 3.39273L6.9997 5.98969L9.59736 3.39273L10.6074 4.40278Z",fill:"currentColor"})}),v5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M6.14929 4.02032C7.11197 4.02032 7.87983 4.02016 8.49597 4.07598C9.12128 4.13269 9.65792 4.25188 10.1415 4.53106C10.7202 4.8653 11.2008 5.3459 11.535 5.92462C11.8142 6.40818 11.9334 6.94481 11.9901 7.57012C12.0459 8.18625 12.0458 8.95419 12.0458 9.9168C12.0458 10.8795 12.0459 11.6473 11.9901 12.2635C11.9334 12.8888 11.8142 13.4254 11.535 13.909C11.2008 14.4877 10.7202 14.9683 10.1415 15.3025C9.65792 15.5817 9.12128 15.7009 8.49597 15.7576C7.87984 15.8134 7.11196 15.8133 6.14929 15.8133C5.18667 15.8133 4.41874 15.8134 3.80261 15.7576C3.1773 15.7009 2.64067 15.5817 2.1571 15.3025C1.5784 14.9683 1.09778 14.4877 0.76355 13.909C0.484366 13.4254 0.365184 12.8888 0.308472 12.2635C0.252649 11.6473 0.252808 10.8795 0.252808 9.9168C0.252808 8.95418 0.252664 8.18625 0.308472 7.57012C0.365184 6.94481 0.484366 6.40818 0.76355 5.92462C1.09777 5.34589 1.57839 4.86529 2.1571 4.53106C2.64067 4.25188 3.1773 4.13269 3.80261 4.07598C4.41874 4.02017 5.18666 4.02032 6.14929 4.02032ZM6.14929 5.37774C5.16181 5.37774 4.46634 5.37761 3.92566 5.42657C3.39434 5.47472 3.07859 5.56574 2.83582 5.70587C2.4632 5.92106 2.15354 6.2307 1.93835 6.60333C1.79823 6.8461 1.70721 7.16185 1.65906 7.69317C1.6101 8.23385 1.61023 8.92933 1.61023 9.9168C1.61023 10.9043 1.61009 11.5998 1.65906 12.1404C1.70721 12.6717 1.79823 12.9875 1.93835 13.2303C2.15356 13.6029 2.46321 13.9126 2.83582 14.1277C3.07859 14.2679 3.39434 14.3589 3.92566 14.407C4.46634 14.456 5.16182 14.4559 6.14929 14.4559C7.13682 14.4559 7.83224 14.456 8.37292 14.407C8.90425 14.3589 9.21999 14.2679 9.46277 14.1277C9.83535 13.9126 10.145 13.6029 10.3602 13.2303C10.5004 12.9875 10.5914 12.6717 10.6395 12.1404C10.6885 11.5998 10.6884 10.9043 10.6884 9.9168C10.6884 8.92934 10.6885 8.23384 10.6395 7.69317C10.5914 7.16185 10.5004 6.8461 10.3602 6.60333C10.1451 6.23071 9.83536 5.92107 9.46277 5.70587C9.21999 5.56574 8.90424 5.47472 8.37292 5.42657C7.83224 5.3776 7.13682 5.37774 6.14929 5.37774ZM9.80164 0.367975C10.7638 0.367975 11.5314 0.36788 12.1473 0.423639C12.7726 0.480307 13.3093 0.598759 13.7928 0.877741C14.3717 1.21192 14.8521 1.69355 15.1864 2.27227C15.4655 2.75574 15.5857 3.29164 15.6425 3.9168C15.6983 4.53301 15.6971 5.3016 15.6971 6.26446V7.82989C15.6971 8.29264 15.6989 8.58993 15.6649 8.84844C15.4668 10.3525 14.401 11.5738 12.9833 11.9988V10.5467C13.6973 10.1903 14.2105 9.49662 14.3192 8.67169C14.3387 8.52347 14.3407 8.3358 14.3407 7.82989V6.26446C14.3407 5.27706 14.3398 4.58149 14.2909 4.04083C14.2428 3.50968 14.1526 3.19372 14.0126 2.95098C13.7974 2.57849 13.4876 2.26869 13.1151 2.05352C12.8724 1.91347 12.5564 1.82237 12.0253 1.77423C11.4847 1.72528 10.7888 1.7254 9.80164 1.7254H7.71472C6.7562 1.72558 5.92665 2.27697 5.52332 3.07891H4.07019C4.54221 1.51132 5.9932 0.368186 7.71472 0.367975H9.80164Z",fill:"currentColor"})}),C5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M9.94076 1.34942C10.7047 0.90231 11.6503 0.902415 12.4143 1.34942C12.7061 1.52015 12.9688 1.79118 13.3104 2.13284C13.6521 2.47448 13.9231 2.73721 14.0939 3.02894C14.5408 3.79294 14.5409 4.73856 14.0939 5.50251C13.9231 5.79415 13.652 6.05704 13.3104 6.39861L6.65932 13.0497C6.28068 13.4284 6.00695 13.7108 5.66543 13.9097C5.32391 14.1085 4.94315 14.2074 4.42705 14.3498L3.24394 14.6761C2.77527 14.8054 2.34538 14.9262 2.00131 14.9684C1.65196 15.0112 1.17964 15.0013 0.810764 14.6325C0.441921 14.2637 0.432107 13.7913 0.47486 13.442C0.517035 13.0979 0.6379 12.668 0.767181 12.1993L1.09352 11.0162C1.23588 10.5001 1.33481 10.1193 1.5336 9.77784C1.7325 9.43632 2.0149 9.1626 2.39355 8.78395L9.04466 2.13284C9.38625 1.79126 9.64911 1.52016 9.94076 1.34942ZM15.5427 14.8398H7.55223L8.96707 13.425H15.5427V14.8398ZM3.39382 9.78422C2.965 10.213 2.84244 10.3436 2.75709 10.49C2.67183 10.6366 2.61862 10.8079 2.45733 11.3925L2.13099 12.5756C2.00183 13.0439 1.92194 13.3419 1.88863 13.5536C2.10041 13.5204 2.39872 13.4416 2.86764 13.3123L4.05075 12.9859C4.63544 12.8246 4.80669 12.7715 4.95323 12.6862C5.09968 12.6008 5.23022 12.4783 5.65905 12.0494L10.721 6.98644L8.45577 4.72121L3.39382 9.78422ZM11.7 2.57079C11.3774 2.38198 10.9777 2.38198 10.6551 2.57079C10.5602 2.62647 10.4487 2.72931 10.0449 3.13311L9.45604 3.72094L11.7213 5.98617L12.3102 5.39833C12.7139 4.99457 12.8168 4.88307 12.8725 4.78818C13.0613 4.46561 13.0612 4.06585 12.8725 3.74326C12.8169 3.64827 12.7146 3.53752 12.3102 3.13311C11.9057 2.72863 11.795 2.6264 11.7 2.57079Z",fill:"currentColor"})}),w5=({size:e=14,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M7.06431 5.93342C7.68763 5.93342 8.19307 6.43904 8.19322 7.06233C8.19322 7.68573 7.68772 8.19123 7.06431 8.19123C6.44099 8.19113 5.9354 7.68567 5.9354 7.06233C5.93555 6.43911 6.44108 5.93353 7.06431 5.93342Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.6815 0.963693C10.1169 0.447019 11.6266 0.374829 12.5633 1.31135C13.5 2.24805 13.4277 3.75776 12.911 5.19319C12.7126 5.74431 12.4386 6.31796 12.0965 6.89729C12.4969 7.54638 12.8141 8.19018 13.036 8.80647C13.5527 10.2419 13.6251 11.7516 12.6883 12.6883C11.7516 13.625 10.242 13.5527 8.8065 13.036C8.19022 12.8141 7.54641 12.4969 6.89732 12.0965C6.31797 12.4386 5.74435 12.7125 5.19322 12.911C3.75777 13.4276 2.2481 13.5 1.31138 12.5633C0.374859 11.6266 0.447049 10.1168 0.963724 8.68147C1.17185 8.10338 1.46321 7.50063 1.82896 6.8924C1.52182 6.35711 1.27235 5.82825 1.08872 5.31819C0.572068 3.88278 0.499714 2.37306 1.43638 1.43635C2.37308 0.499655 3.8828 0.572044 5.31822 1.08869C5.82828 1.27232 6.35715 1.5218 6.89243 1.82893C7.50066 1.46318 8.10341 1.17181 8.6815 0.963693ZM11.3573 8.01154C10.9083 8.62253 10.3901 9.22873 9.80943 9.8094C9.22877 10.3901 8.62255 10.9083 8.01158 11.3572C8.4257 11.5841 8.8287 11.7688 9.21275 11.9071C10.5456 12.3868 11.4246 12.2547 11.8397 11.8397C12.2548 11.4246 12.3869 10.5456 11.9071 9.21272C11.7688 8.82866 11.5841 8.42568 11.3573 8.01154ZM2.56529 8.02912C2.37344 8.39322 2.21495 8.74796 2.09263 9.08772C1.61291 10.4204 1.74512 11.2995 2.16001 11.7147C2.57505 12.1297 3.45415 12.2618 4.78697 11.7821C5.11057 11.6656 5.44786 11.5164 5.7938 11.3367C5.249 10.9223 4.70922 10.4533 4.19029 9.9344C3.57578 9.31987 3.03169 8.67633 2.56529 8.02912ZM6.90708 3.2469C6.24065 3.70479 5.5646 4.26321 4.91392 4.91389C4.26325 5.56456 3.70482 6.24063 3.24693 6.90705C3.72674 7.63325 4.32777 8.37459 5.03892 9.08576C5.64943 9.69627 6.28183 10.2265 6.90806 10.6678C7.59368 10.2025 8.2908 9.63076 8.96079 8.96076C9.6308 8.29075 10.2025 7.59366 10.6678 6.90803C10.2265 6.2818 9.69631 5.6494 9.08579 5.03889C8.37462 4.32773 7.63328 3.72672 6.90708 3.2469ZM11.7147 2.15998C11.2996 1.74509 10.4204 1.61288 9.08775 2.0926C8.74835 2.21479 8.39382 2.37271 8.03013 2.56428C8.67728 3.03065 9.31995 3.5758 9.93443 4.19026C10.4534 4.7092 10.9223 5.24896 11.3368 5.79377C11.5164 5.44785 11.6656 5.11052 11.7821 4.78694C12.2618 3.45416 12.1297 2.57502 11.7147 2.15998ZM4.91197 2.2176C3.57922 1.73788 2.70004 1.86995 2.28501 2.28498C1.87001 2.70003 1.73791 3.5792 2.21763 4.91194C2.31709 5.18822 2.44112 5.47427 2.58677 5.7674C3.01931 5.1887 3.51474 4.6158 4.06529 4.06526C4.61584 3.5147 5.18872 3.01928 5.76743 2.58674C5.47431 2.4411 5.18824 2.31706 4.91197 2.2176Z",fill:"currentColor"})]}),k5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M5.5498 9.75V5H6.9502V9.75C6.9502 10.3299 7.4201 10.7998 8 10.7998C8.5799 10.7998 9.0498 10.3299 9.0498 9.75V4.5C9.0498 2.9536 7.7964 1.7002 6.25 1.7002C4.7036 1.7002 3.4502 2.9536 3.4502 4.5V9.75C3.4502 12.2629 5.4871 14.2998 8 14.2998C10.5129 14.2998 12.5498 12.2629 12.5498 9.75V4H13.9502V9.75C13.9502 13.0361 11.2861 15.7002 8 15.7002C4.71391 15.7002 2.0498 13.0361 2.0498 9.75V4.5C2.04981 2.1804 3.9304 0.299806 6.25 0.299805C8.5696 0.299805 10.4502 2.1804 10.4502 4.5V9.75C10.4502 11.1031 9.3531 12.2002 8 12.2002C6.6469 12.2002 5.5498 11.1031 5.5498 9.75Z",fill:"currentColor"})}),_5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.3368 1.53569L11.931 4.43172H14.8086V5.79673H11.7404L11.1962 9.67859H14.2839V11.0436H11.0056L10.4994 14.6529L9.14873 14.4643L9.62731 11.0436H5.75876L5.25252 14.6529L3.90186 14.4643L4.38043 11.0436H1.69141V9.67859H4.57104L5.11417 5.79673H2.21609V4.43172H5.30581L5.73724 1.34713L7.08995 1.53569L6.68414 4.43172H10.5527L10.9841 1.34713L12.3368 1.53569ZM5.94937 9.67859H9.81791L10.361 5.79673H6.49353L5.94937 9.67859Z",fill:"currentColor"})}),S5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",children:c.jsx("path",{transform:"translate(1.292 1.3)",d:"M10.3232 9.18164C11.2868 9.18164 12.0985 9.82833 12.3506 10.7109L13.415 10.7109L13.415 11.8711L12.3496 11.8711C12.0971 12.7532 11.2864 13.3994 10.3232 13.3994C9.36031 13.3992 8.55012 12.7531 8.29785 11.8711L0 11.8711L0 10.7109L8.29688 10.7109C8.54876 9.82845 9.35988 9.18186 10.3232 9.18164ZM10.3232 10.3418C9.7999 10.3421 9.37534 10.7667 9.375 11.29C9.375 11.8137 9.79969 12.239 10.3232 12.2393C10.847 12.2393 11.2725 11.8138 11.2725 11.29C11.2721 10.7666 10.8468 10.3418 10.3232 10.3418ZM12.4326 11.291C12.4326 11.3549 12.4284 11.418 12.4229 11.4805C12.4287 11.4181 12.4326 11.355 12.4326 11.291ZM8.21484 11.2832C8.21484 11.2856 8.21484 11.2886 8.21484 11.291L8.21484 11.29C8.21484 11.2878 8.21484 11.2855 8.21484 11.2832ZM3.08301 4.59082C4.04605 4.59095 4.85696 5.23717 5.10938 6.11914L13.415 6.11914L13.415 7.2793L5.11035 7.2793C4.85833 8.16202 4.04648 8.80846 3.08301 8.80859C2.11972 8.80843 1.30963 8.16179 1.05762 7.2793L0 7.2793L0 6.11914L1.05762 6.11914C1.30994 5.23728 2.12006 4.59098 3.08301 4.59082ZM3.08301 5.75098C2.55962 5.75117 2.13512 6.17587 2.13477 6.69922C2.13477 7.22287 2.5594 7.64824 3.08301 7.64844C3.60665 7.64828 4.03223 7.2229 4.03223 6.69922C4.03187 6.17585 3.60643 5.75113 3.08301 5.75098ZM5.19238 6.69922C5.19238 6.763 5.18816 6.82633 5.18262 6.88867C5.18846 6.82629 5.19238 6.76313 5.19238 6.69922C5.19236 6.63495 5.18853 6.57152 5.18262 6.50879C5.18826 6.57154 5.19236 6.635 5.19238 6.69922ZM0.982422 6.52344C0.977382 6.58136 0.97463 6.63999 0.974609 6.69922C0.974609 6.75775 0.977496 6.81579 0.982422 6.87305C0.977758 6.81579 0.974609 6.75767 0.974609 6.69922C0.974628 6.64 0.977618 6.58142 0.982422 6.52344ZM10.3232 0C11.2869 0 12.0986 0.646596 12.3506 1.5293L13.415 1.5293L13.415 2.68945L12.3496 2.68945C12.363 2.64266 12.3754 2.59488 12.3857 2.54688C12.1838 3.50118 11.3376 4.21777 10.3232 4.21777C9.36037 4.21756 8.55018 3.57139 8.29785 2.68945L0 2.68945L0 1.5293L8.29688 1.5293C8.5487 0.646717 9.35981 0.00021854 10.3232 0ZM10.3232 1.16016C9.79984 1.16042 9.37524 1.58499 9.375 2.1084C9.375 2.63201 9.79969 3.05735 10.3232 3.05762C10.847 3.05762 11.2725 2.63217 11.2725 2.1084C11.2722 1.58483 10.8469 1.16016 10.3232 1.16016ZM12.4229 2.29883C12.4287 2.23641 12.4326 2.17331 12.4326 2.10938C12.4326 2.17327 12.4284 2.23638 12.4229 2.29883ZM8.21484 2.10938L8.21484 2.1084L8.21484 2.10938ZM8.22266 1.93359C8.21785 1.98897 8.21506 2.04499 8.21484 2.10156C8.21503 2.04501 8.2181 1.98902 8.22266 1.93359ZM8.22266 11.1162C8.2179 11.1713 8.21507 11.227 8.21484 11.2832C8.21504 11.227 8.21814 11.1713 8.22266 11.1162Z",fill:"currentColor"})}),b5=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",children:[c.jsx("path",{transform:"translate(9.52 2.52)",d:"M3.55246 0L3.55246 2.44252L6 2.44252L6 3.55748L3.55246 3.55748L3.55246 6L2.43834 6L2.43834 3.55748L0 3.55748L0 2.44252L2.43834 2.44252L2.43834 0L3.55246 0Z",fill:"currentColor"}),c.jsx("path",{transform:"translate(0.3496 2.35)",d:"M4.76367 0C5.36861 1.80598e-05 5.93113 0.310294 6.25488 0.821289L6.78027 1.64941C6.79685 1.67558 6.81791 1.69775 6.83887 1.71973C6.72186 2.15521 6.65702 2.61192 6.65137 3.08301C6.25601 2.96045 5.90909 2.70478 5.68164 2.3457L5.15723 1.5166C5.07183 1.38189 4.92318 1.3008 4.76367 1.30078L2.32422 1.30078C1.7589 1.30078 1.30078 1.7589 1.30078 2.32422L1.30078 10.1338C1.30078 10.6991 1.7589 11.1572 2.32422 11.1572L11.9766 11.1572C12.5419 11.1572 13 10.6991 13 10.1338L13 8.58398C13.4545 8.5135 13.8903 8.38748 14.3008 8.21289L14.3008 10.1338C14.3008 11.4171 13.2598 12.458 11.9766 12.458L2.32422 12.458C1.04093 12.458 0 11.4171 0 10.1338L0 2.32422C0 1.04093 1.04093 0 2.32422 0L4.76367 0Z",fill:"currentColor"})]}),Y1=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",children:[c.jsx("path",{d:"M5.19629 1.57104C5.81144 1.5711 6.38623 1.8786 6.72754 2.39038L7.19922 3.09839C7.28454 3.22635 7.42824 3.30344 7.58203 3.30347H12.1699C13.5039 3.30348 14.5859 4.38548 14.5859 5.71948V6.62671C15.2694 7.02689 15.6605 7.85012 15.4385 8.68726L14.3848 12.658C14.1037 13.7164 13.1449 14.4527 12.0498 14.4529H2.91699C1.51651 14.4529 0.451662 13.2814 0.501954 11.9519V3.98706C0.501954 2.65305 1.58396 1.57104 2.91797 1.57104H5.19629ZM3.7793 7.75562C3.30994 7.75562 2.89883 8.07153 2.77832 8.52515L1.91602 11.7722C1.74167 12.4291 2.23734 13.073 2.91699 13.073H12.0498C12.5191 13.0728 12.9304 12.757 13.0508 12.3035L14.1045 8.33374C14.1819 8.04202 13.9619 7.756 13.6602 7.75562H3.7793ZM2.91797 2.9519C2.34625 2.9519 1.88281 3.41534 1.88281 3.98706V7.2937C2.33068 6.7269 3.02249 6.37476 3.7793 6.37476H13.2051V5.71948C13.2051 5.14777 12.7416 4.68434 12.1699 4.68433H7.58203C6.96675 4.6843 6.39209 4.37595 6.05078 3.86401L5.5791 3.15601C5.49379 3.02821 5.34995 2.95196 5.19629 2.9519H2.91797Z",fill:"currentColor"}),c.jsx("path",{opacity:"0.2",d:"M13.6602 7.75525C13.9618 7.7556 14.1815 8.04179 14.1045 8.33337L13.0508 12.3031C12.9304 12.7567 12.5191 13.0725 12.0498 13.0726H2.91701C2.23744 13.0725 1.7417 12.4287 1.91603 11.7719L2.77834 8.52478C2.89898 8.07146 3.31018 7.75532 3.77931 7.75525H13.6602ZM5.1963 2.95154C5.34985 2.95159 5.49377 3.02803 5.57912 3.15564L6.0508 3.86365C6.39205 4.37553 6.96685 4.68385 7.58205 4.68396H12.1699C12.7416 4.68396 13.2049 5.14754 13.2051 5.71912V6.37439H3.77931C3.02267 6.37444 2.33067 6.72671 1.88283 7.29333V3.98669C1.88299 3.4152 2.34649 2.95168 2.91798 2.95154H5.1963Z",fill:"currentColor"})]}),E5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",children:c.jsx("path",{transform:"translate(1.5 2.429)",d:"M5.05582 0.518756L4.50669 0.86654L5.05582 0.518756ZM13 9.4837L13.65 9.4837L13.65 3.53962L13 3.53962L12.35 3.53962L12.35 9.4837L13 9.4837ZM11.3264 1.86603L11.3264 1.21603L6.52313 1.21603L6.52313 1.86603L6.52313 2.51603L11.3264 2.51603L11.3264 1.86603ZM5.58054 1.34727L6.12968 0.999489L5.60495 0.170972L5.05582 0.518756L4.50669 0.86654L5.03141 1.69506L5.58054 1.34727ZM4.11323 1.23058e-13L4.11323 -0.65L1.67359 -0.65L1.67359 5.00699e-14L1.67359 0.65L4.11323 0.65L4.11323 1.23058e-13ZM0 1.67359L-0.65 1.67359L-0.65 9.4837L0 9.4837L0.65 9.4837L0.65 1.67359L0 1.67359ZM11.3264 11.1573L11.3264 10.5073L1.67359 10.5073L1.67359 11.1573L1.67359 11.8073L11.3264 11.8073L11.3264 11.1573ZM0 9.4837L-0.65 9.4837C-0.65 10.767 0.390308 11.8073 1.67359 11.8073L1.67359 11.1573L1.67359 10.5073C1.10828 10.5073 0.65 10.049 0.65 9.4837L0 9.4837ZM1.67359 5.00699e-14L1.67359 -0.65C0.390307 -0.65 -0.65 0.390309 -0.65 1.67359L0 1.67359L0.65 1.67359C0.65 1.10828 1.10828 0.65 1.67359 0.65L1.67359 5.00699e-14ZM5.05582 0.518756L5.60495 0.170972C5.28121 -0.340193 4.71829 -0.65 4.11323 -0.65L4.11323 1.23058e-13L4.11323 0.65C4.27282 0.65 4.4213 0.731715 4.50669 0.86654L5.05582 0.518756ZM6.52313 1.86603L6.52313 1.21603C6.36354 1.21603 6.21507 1.13431 6.12968 0.999489L5.58054 1.34727L5.03141 1.69506C5.35515 2.20622 5.91808 2.51603 6.52313 2.51603L6.52313 1.86603ZM13 3.53962L13.65 3.53962C13.65 2.25634 12.6097 1.21603 11.3264 1.21603L11.3264 1.86603L11.3264 2.51603C11.8917 2.51603 12.35 2.97431 12.35 3.53962L13 3.53962ZM13 9.4837L12.35 9.4837C12.35 10.049 11.8917 10.5073 11.3264 10.5073L11.3264 11.1573L11.3264 11.8073C12.6097 11.8073 13.65 10.767 13.65 9.4837L13 9.4837Z",fill:"currentColor"})}),j5=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M11.3496 8C11.3496 6.14985 9.85015 4.65039 8 4.65039C6.14985 4.65039 4.65039 6.14985 4.65039 8C4.65039 9.85015 6.14985 11.3496 8 11.3496C9.85015 11.3496 11.3496 9.85015 11.3496 8ZM12.6504 8C12.6504 10.5681 10.5681 12.6504 8 12.6504C5.43188 12.6504 3.34961 10.5681 3.34961 8C3.34961 5.43188 5.43188 3.34961 8 3.34961C10.5681 3.34961 12.6504 5.43188 12.6504 8Z",fill:"currentColor"}),c.jsx("path",{d:"M8.65039 0.5V2.5H7.34961V0.5H8.65039Z",fill:"currentColor"}),c.jsx("path",{d:"M8.65039 13.5V15.5H7.34961V13.5H8.65039Z",fill:"currentColor"}),c.jsx("path",{d:"M3.15808 2.24035L4.57229 3.65456L3.6525 4.57435L2.23829 3.16014L3.15808 2.24035Z",fill:"currentColor"}),c.jsx("path",{d:"M12.3505 11.4327L13.7647 12.8469L12.8449 13.7667L11.4307 12.3525L12.3505 11.4327Z",fill:"currentColor"}),c.jsx("path",{d:"M2.24537 12.8469L3.65958 11.4327L4.57937 12.3525L3.16516 13.7667L2.24537 12.8469Z",fill:"currentColor"}),c.jsx("path",{d:"M11.4377 3.65455L12.852 2.24033L13.7718 3.16012L12.3575 4.57434L11.4377 3.65455Z",fill:"currentColor"}),c.jsx("path",{d:"M0.5 7.35461H2.5V8.6554H0.5L0.5 7.35461Z",fill:"currentColor"}),c.jsx("path",{d:"M13.5 7.35461H15.5V8.6554H13.5V7.35461Z",fill:"currentColor"})]}),L5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M13.2764 9.52324C12.5607 9.97754 11.7177 10.242 10.7812 10.242C8.11386 10.2419 5.95042 8.07997 5.9502 5.41289C5.9502 4.48128 6.21453 3.61071 6.67188 2.87285C4.30332 3.4658 2.54992 5.60845 2.5498 8.16093C2.5498 11.1712 4.99103 13.6102 8 13.6102C10.5383 13.6102 12.6709 11.8724 13.2764 9.52324ZM7.05078 5.41289C7.051 7.47224 8.72116 9.1423 10.7812 9.14238C11.9248 9.14238 12.887 8.63397 13.5781 7.8084C13.7266 7.63106 13.9701 7.56547 14.1875 7.64433C14.4049 7.72329 14.5497 7.9297 14.5498 8.16093C14.5498 11.7766 11.6161 14.7098 8 14.7098C4.38402 14.7098 1.4502 11.7792 1.4502 8.16093C1.45033 4.54322 4.3812 1.61015 8 1.61015C8.23027 1.61015 8.43585 1.75352 8.51562 1.96953C8.59536 2.18554 8.53241 2.42829 8.35742 2.57793C7.55573 3.26311 7.05078 4.27876 7.05078 5.41289Z",fill:"currentColor"})}),N5=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M12.1665 13.5811V14.7803H3.66651V13.5811H12.1665Z",fill:"currentColor"}),c.jsx("path",{d:"M13.4453 7.02379C13.4453 6.04702 13.4452 5.3616 13.3887 4.83434C13.3333 4.31828 13.2302 4.02378 13.0723 3.80309C12.9446 3.62475 12.7877 3.46883 12.6094 3.34117C12.3887 3.18328 12.0942 3.08007 11.5781 3.02477C11.0508 2.96829 10.3655 2.96715 9.38867 2.96715H6.61035C5.63359 2.96715 4.94816 2.96827 4.4209 3.02477C3.90486 3.0801 3.61034 3.18321 3.38965 3.34117C3.21143 3.46878 3.05534 3.62487 2.92774 3.80309C2.76977 4.02377 2.66667 4.3183 2.61133 4.83434C2.55483 5.3616 2.55371 6.04702 2.55371 7.02379C2.55371 8.0006 2.55485 8.68596 2.61133 9.21324C2.66663 9.72936 2.76983 10.0238 2.92774 10.2445C3.0554 10.4228 3.21131 10.5797 3.38965 10.7074C3.61034 10.8654 3.90484 10.9685 4.4209 11.0238C4.94816 11.0803 5.63359 11.0804 6.61035 11.0804H9.38867C10.3654 11.0804 11.0508 11.0803 11.5781 11.0238C12.0941 10.9685 12.3887 10.8652 12.6094 10.7074C12.7877 10.5797 12.9446 10.4229 13.0723 10.2445C13.2301 10.0238 13.3334 9.72927 13.3887 9.21324C13.4452 8.68596 13.4453 8.00058 13.4453 7.02379ZM14.6455 7.02379C14.6455 7.97428 14.646 8.73509 14.5811 9.34117C14.5149 9.95828 14.3756 10.4858 14.0479 10.9437C13.8436 11.229 13.5938 11.4788 13.3086 11.683C12.8507 12.0108 12.3232 12.15 11.7061 12.2162C11.1 12.2811 10.3391 12.2806 9.38867 12.2806H6.61035C5.66018 12.2806 4.89991 12.2811 4.29395 12.2162C3.67684 12.15 3.14935 12.0108 2.69141 11.683C2.40613 11.4788 2.15639 11.229 1.95215 10.9437C1.62436 10.4858 1.4841 9.95828 1.41797 9.34117C1.35305 8.73511 1.35449 7.97424 1.35449 7.02379C1.35449 6.07366 1.35308 5.31333 1.41797 4.70738C1.4841 4.09028 1.62436 3.56279 1.95215 3.10485C2.15638 2.81956 2.40613 2.56982 2.69141 2.36559C3.14935 2.03779 3.67684 1.89753 4.29395 1.83141C4.8999 1.76652 5.66022 1.76793 6.61035 1.76793H9.38867C10.3391 1.76793 11.1 1.76649 11.7061 1.83141C12.3232 1.89753 12.8507 2.03779 13.3086 2.36559C13.5939 2.56982 13.8436 2.81957 14.0479 3.10485C14.3756 3.56279 14.5149 4.09028 14.5811 4.70738C14.646 5.31335 14.6455 6.07362 14.6455 7.02379Z",fill:"currentColor"})]}),Cd=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0997 8.54554C12.2905 8.54989 12.3541 8.58056 12.4535 8.74614L12.8849 9.46387C12.9851 9.63071 13.0464 9.66013 13.2388 9.66447H14.1138C14.3417 9.66448 14.3512 9.66937 14.4686 9.86507L14.892 10.5717C14.9942 10.7422 14.9948 10.8247 14.892 10.9961L14.4756 11.6906C14.3741 11.8677 14.3694 11.9379 14.4756 12.115L14.892 12.8096C14.9942 12.9801 14.9947 13.0625 14.892 13.234L14.4686 13.9406C14.3643 14.1028 14.3063 14.1354 14.1138 14.1412H13.2388C13.0465 14.1456 12.985 14.1752 12.8849 14.3418L12.4535 15.0595C12.353 15.2195 12.2895 15.2558 12.0997 15.2601H11.2237C10.9962 15.2601 10.9871 15.2548 10.8699 15.0595L10.4384 14.3418C10.3383 14.175 10.2767 14.1456 10.0846 14.1412H9.2096C9.01854 14.1355 8.95761 14.1006 8.85477 13.9406L8.43139 13.234C8.32562 13.0576 8.33148 12.9862 8.43139 12.8096L8.84771 12.115C8.95165 11.9416 8.94659 11.863 8.84771 11.6906L8.43139 10.9961C8.32767 10.8232 8.33411 10.7437 8.43139 10.5717L8.85477 9.86507C8.95447 9.69891 9.01875 9.67017 9.2096 9.66447H10.0846C10.2741 9.66441 10.3414 9.62547 10.4384 9.46387L10.8699 8.74614C10.987 8.55106 10.9963 8.54554 11.2237 8.54554H12.0997ZM11.6612 10.232C11.3326 10.7798 10.8155 11.0948 10.1743 11.106C10.4443 11.61 10.4425 12.1976 10.1743 12.6987C10.803 12.7096 11.3391 13.0359 11.6612 13.5727C11.9855 13.0323 12.5131 12.7098 13.148 12.6987C12.879 12.196 12.8789 11.6086 13.148 11.106C12.5076 11.0948 11.9894 10.7794 11.6612 10.232Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.51205 0.790627C9.19055 0.790649 10.7401 1.0691 11.892 1.54364C12.4664 1.78029 12.9719 2.07885 13.3436 2.4408C13.7171 2.80467 13.9916 3.27253 13.9918 3.82384V7.90442C13.6067 7.69532 13.1907 7.53597 12.7529 7.43366V5.66454C12.4928 5.82898 12.2028 5.97601 11.892 6.10405C10.74 6.57865 9.19071 6.85706 7.51205 6.85706C5.8337 6.85703 4.285 6.57852 3.13309 6.10405C2.82215 5.97593 2.53164 5.8291 2.27121 5.66454V7.4135C2.27134 7.75678 2.6066 8.27106 3.62502 8.73405C4.58641 9.17097 5.95762 9.45591 7.50499 9.45681C7.24582 9.83133 7.03684 10.2434 6.88706 10.6826C5.44388 10.6162 4.12516 10.3216 3.11192 9.86104C2.81708 9.72698 2.53185 9.56866 2.27121 9.38928V11.2542C2.27158 11.5974 2.60697 12.1109 3.62502 12.5737C4.41933 12.9347 5.4937 13.1898 6.71569 13.2693C6.80349 13.7128 6.9513 14.1345 7.14814 14.5273C5.60324 14.4862 4.18593 14.1889 3.11192 13.7007C2.01039 13.1998 1.03366 12.3814 1.03333 11.2542V3.82384C1.03352 3.27273 1.30721 2.80461 1.68049 2.4408C2.05211 2.07893 2.55887 1.78026 3.13309 1.54364C4.28492 1.06926 5.83393 0.790683 7.51205 0.790627ZM7.51205 2.02851C5.95492 2.02857 4.57354 2.29079 3.60486 2.68979C3.11958 2.88977 2.76667 3.11253 2.5454 3.32788C2.32671 3.54101 2.2714 3.7089 2.27121 3.82384C2.27121 3.93882 2.32624 4.10625 2.5454 4.3198C2.76667 4.53527 3.11927 4.75781 3.60486 4.9579C4.5736 5.35699 5.95467 5.61914 7.51205 5.61918C9.06942 5.61918 10.4505 5.35695 11.4192 4.9579C11.9051 4.75773 12.2584 4.53536 12.4797 4.3198C12.6988 4.10627 12.7529 3.93882 12.7529 3.82384C12.7527 3.70889 12.6984 3.54104 12.4797 3.32788C12.2584 3.11239 11.9049 2.88989 11.4192 2.68979C10.4505 2.29079 9.06925 2.02853 7.51205 2.02851Z",fill:"currentColor"})]}),N1=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("ellipse",{cx:"8",cy:"3.6",rx:"5.75",ry:"2.4",stroke:"currentColor",strokeWidth:"1.25"}),c.jsx("path",{d:"M2.25 3.6V12.3A5.75 2.4 0 0 0 13.75 12.3V3.6",stroke:"currentColor",strokeWidth:"1.25"}),c.jsx("path",{d:"M2.25 7.95A5.75 2.4 0 0 0 13.75 7.95",stroke:"currentColor",strokeWidth:"1.25"})]}),I5=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M12.5113 15.4067C12.4395 15.6249 12.1308 15.6249 12.059 15.4067L11.643 14.1416C11.454 13.567 11.0033 13.1164 10.4288 12.9274L9.16369 12.5113C8.94544 12.4395 8.94544 12.1308 9.16369 12.059L10.4288 11.643C11.0033 11.454 11.454 11.0033 11.643 10.4288L12.059 9.16369C12.1308 8.94544 12.4395 8.94544 12.5113 9.16369L12.9274 10.4288C13.1164 11.0033 13.567 11.454 14.1416 11.643L15.4067 12.059C15.6249 12.1308 15.6249 12.4395 15.4067 12.5113L14.1416 12.9274C13.567 13.1164 13.1164 13.567 12.9274 14.1416L12.5113 15.4067Z",fill:"currentColor"}),c.jsx("path",{d:"M9.02246 0.546878C9.9822 0.546878 10.7564 0.545403 11.374 0.612307C12.0042 0.680586 12.5515 0.826244 13.0273 1.17188C13.3052 1.37376 13.5501 1.61868 13.752 1.89649C14.0975 2.37225 14.2432 2.91984 14.3115 3.54981C14.3784 4.16727 14.377 4.94206 14.377 5.90137V8.51367C13.9611 8.29533 13.5071 8.13985 13.0273 8.06055V5.90137C13.0273 4.9121 13.0259 4.22322 12.9688 3.69532C12.9129 3.18044 12.8098 2.89782 12.6592 2.69043C12.5406 2.52724 12.3966 2.38326 12.2334 2.26465C12.026 2.11404 11.7437 2.0109 11.2285 1.95508C10.7005 1.89789 10.0122 1.89649 9.02246 1.89649H6.55371C5.56395 1.89649 4.87569 1.89787 4.34766 1.95508C3.83242 2.01092 3.55022 2.11398 3.34278 2.26465C3.17953 2.38329 3.03564 2.52719 2.91699 2.69043C2.76642 2.89782 2.66325 3.18042 2.60742 3.69532C2.55027 4.22322 2.54883 4.9121 2.54883 5.90137V10.0986C2.54883 11.0878 2.55031 11.7768 2.60742 12.3047C2.66326 12.8196 2.76642 13.1032 2.91699 13.3105C3.03558 13.4736 3.17966 13.6178 3.34278 13.7363C3.5502 13.8869 3.83265 13.9901 4.34766 14.0459C4.87568 14.1031 5.56398 14.1035 6.55371 14.1035H8.08399C8.27443 14.6025 8.55077 15.0585 8.89551 15.4541H6.55371C5.59402 15.4541 4.81976 15.4546 4.20215 15.3877C3.57204 15.3194 3.02468 15.1738 2.54883 14.8281C2.27111 14.6263 2.02606 14.3813 1.82422 14.1035C1.47883 13.6278 1.33293 13.08 1.26465 12.4502C1.19783 11.8327 1.19922 11.0579 1.19922 10.0986V5.90137C1.19922 4.94206 1.1978 4.16727 1.26465 3.54981C1.33295 2.91984 1.47867 2.37225 1.82422 1.89649C2.02613 1.61864 2.27098 1.37379 2.54883 1.17188C3.02472 0.826181 3.57197 0.6806 4.20215 0.612307C4.81976 0.545393 5.594 0.546877 6.55371 0.546878H9.02246ZM9.19629 9.14649H4.5459V7.84571H9.19629V9.14649ZM11.0303 6.10645H4.5459V4.80567H11.0303V6.10645Z",fill:"currentColor"})]}),P5=({size:e=20,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8659 2.05975C17.2603 2.05995 18.3913 3.19096 18.3914 4.58527V5.4874C18.3914 6.02747 18.2192 6.52672 17.9303 6.93735C17.9336 6.96524 17.9388 6.99318 17.9388 7.02195V12.8884C17.9388 13.6345 17.9395 14.2379 17.8996 14.7254C17.8642 15.1593 17.7936 15.5499 17.6373 15.9141L17.5654 16.0685C17.278 16.6328 16.8405 17.1046 16.3038 17.434L16.0679 17.5661C15.66 17.7739 15.2196 17.8598 14.7237 17.9003C14.2362 17.9401 13.6327 17.9405 12.8867 17.9405H7.11122C6.36511 17.9405 5.76171 17.9401 5.27418 17.9003C4.84051 17.8649 4.44949 17.7952 4.08545 17.6391L3.93104 17.5661C3.36673 17.2785 2.89392 16.8414 2.56465 16.3044L2.43245 16.0685C2.22473 15.6608 2.13878 15.2211 2.09825 14.7254C2.05841 14.2379 2.05912 13.6345 2.05912 12.8884V7.02195C2.05912 6.99284 2.06422 6.96449 2.06758 6.93629C1.77931 6.52592 1.60858 6.02687 1.60858 5.4874V4.58527C1.60876 3.19084 2.73962 2.05975 4.1341 2.05975H15.8659ZM16.4984 7.92936C16.296 7.98169 16.0847 8.01288 15.8659 8.01291H4.1341C3.91478 8.01291 3.70246 7.98194 3.49955 7.92936V12.8884C3.49955 13.6582 3.50053 14.1927 3.53445 14.608C3.56769 15.0146 3.62923 15.244 3.71635 15.415L3.7925 15.5514C3.98339 15.8627 4.25749 16.1165 4.58464 16.2833L4.72529 16.3435C4.88095 16.3993 5.08638 16.4402 5.39158 16.4651C5.80685 16.4991 6.34138 16.5001 7.11122 16.5001H12.8867C13.6564 16.5001 14.1911 16.499 14.6063 16.4651C15.0128 16.432 15.2423 16.3703 15.4133 16.2833L15.5508 16.2061C15.8618 16.0152 16.116 15.7419 16.2827 15.415L16.3429 15.2732C16.3985 15.1177 16.4396 14.9128 16.4645 14.608C16.4985 14.1927 16.4984 13.6583 16.4984 12.8884V7.92936ZM4.1341 3.50019C3.53511 3.50019 3.0492 3.98631 3.04902 4.58527V5.4874C3.04902 6.08649 3.535 6.57248 4.1341 6.57248H15.8659C16.4648 6.57228 16.951 6.08638 16.951 5.4874V4.58527C16.9509 3.98644 16.4647 3.50038 15.8659 3.50019H4.1341Z",fill:"currentColor"}),c.jsx("path",{d:"M12.7962 12.5661V11.0832H7.20548V12.5661L12.7962 12.5661Z",fill:"currentColor"})]}),M5="_root_1axg2_9",T5="_collapsed_1axg2_6",z5="_quietBars_1axg2_20",D5="_fading_1axg2_4",R5="_wide_1axg2_53",A5="_railIn_1axg2_64",F5="_iconButton_1axg2_66",O5="_newSession_1axg2_67",$5="_panelList_1axg2_68",B5="_regionArea_1axg2_69",H5="_footArea_1axg2_73",V5="_logoRow_1axg2_91",U5="_brand_1axg2_115",W5="_brandIdentity_1axg2_130",q5="_brandMark_1axg2_138",Z5="_brandName_1axg2_145",Q5="_fallbackBrandName_1axg2_157",G5="_toggle_1axg2_208",K5="_panelIcon_1axg2_208",Y5="_railMark_1axg2_216",X5="_newSessionLabel_1axg2_290",J5="_panelRow_1axg2_308",e6="_panelActive_1axg2_330",t6="_panelGlyph_1axg2_341",n6="_panelTitle_1axg2_348",r6="_settingsArea_1axg2_396",i6="_footerActions_1axg2_397",Ze={root:M5,collapsed:T5,quietBars:z5,fading:D5,wide:R5,railIn:A5,iconButton:F5,newSession:O5,panelList:$5,regionArea:B5,footArea:H5,logoRow:V5,brand:U5,brandIdentity:W5,brandMark:q5,brandName:Z5,fallbackBrandName:Q5,toggle:G5,panelIcon:K5,railMark:Y5,newSessionLabel:X5,panelRow:J5,panelActive:e6,panelGlyph:t6,panelTitle:n6,settingsArea:r6,footerActions:i6},l6=150,o6=2e3;function s6({id:e,label:r,wide:i,usePanelInfo:o,selectPanel:s,renderSlot:u}){const d=o(f=>f.activePanelId===e);return c.jsx(j1,{label:r,delayMs:500,disabled:i,children:c.jsxs("button",{type:"button",className:ot(Ze.panelRow,d&&Ze.panelActive),"aria-label":r,"aria-current":d?"page":void 0,onClick:()=>{s(e)},children:[c.jsx("span",{className:Ze.panelGlyph,"aria-hidden":"true",children:u("sidebar.panellist",{size:i?16:18,active:d},{only:e})}),i&&c.jsx("span",{className:ot(Ze.panelTitle,Ze.wide),children:r})]})})}function a6({collapsed:e,width:r,startSession:i,toggleSidebar:o,selectPanel:s,usePanels:u,usePanelInfo:d,t:f,renderSlot:p}){const m=u(B=>B),[y,x]=E.useState(e);E.useEffect(()=>{if(!e){x(!1);return}const B=window.setTimeout(()=>{x(!0)},l6);return()=>{window.clearTimeout(B)}},[e]);const v=!e||!y,C=E.useRef(r);e||(C.current=r);const k=E.useRef(!e);e||(k.current=!0);const P=E.useRef(null),[R,j]=E.useState(!1),V=E.useRef(void 0),b=()=>{V.current===void 0&&(V.current=window.setTimeout(()=>{V.current=void 0,j(!1)},o6))},$=()=>{window.clearTimeout(V.current),V.current=void 0};return E.useEffect(()=>{if(!R)return;const B=T=>{var Y;const ee=(Y=P.current)==null?void 0:Y.getBoundingClientRect();if(ee===void 0)return;T.clientX>=ee.left&&T.clientX<ee.right&&T.clientY>=ee.top&&T.clientY<ee.bottom?$():b()};return document.addEventListener("pointermove",B),()=>{document.removeEventListener("pointermove",B),$()}},[R]),c.jsxs("div",{ref:P,className:ot(Ze.root,!v&&Ze.collapsed,!v&&k.current&&Ze.railIn,e&&v&&Ze.fading,!R&&Ze.quietBars),style:v?{width:e?C.current:r}:void 0,onPointerEnter:()=>{$(),j(!0)},onPointerLeave:()=>{b()},children:[c.jsxs("div",{className:Ze.logoRow,children:[v&&c.jsx("button",{type:"button",className:ot(Ze.brand,Ze.wide),"aria-label":f("session.new.label"),onClick:()=>{i()},children:c.jsxs("span",{className:Ze.brandIdentity,"aria-hidden":"true",children:[c.jsx("span",{className:Ze.brandMark,children:p("sidebar.brand.mark",{size:24},{fallback:c.jsx(Jo,{size:24})})}),c.jsx("span",{className:Ze.brandName,children:p("sidebar.brand.name",{},{fallback:c.jsx("span",{className:Ze.fallbackBrandName,children:f("brand.localBuild")})})})]})}),c.jsx(j1,{label:f(e?"toggle.open":"toggle.collapse"),delayMs:500,children:c.jsxs("button",{type:"button",className:ot(Ze.iconButton,Ze.toggle),"aria-label":f(e?"toggle.open":"toggle.collapse"),onClick:()=>{o()},children:[!v&&c.jsx("span",{className:Ze.railMark,"aria-hidden":"true",children:p("sidebar.brand.mark",{size:24},{fallback:c.jsx(Jo,{size:24})})}),c.jsx(y5,{className:Ze.panelIcon,size:v?16:18})]})})]}),c.jsx(j1,{label:f("session.new.label"),delayMs:500,disabled:v,children:c.jsxs("button",{type:"button",className:Ze.newSession,"aria-label":f("session.new.label"),onClick:()=>{i()},children:[c.jsx(g5,{size:v?14:18}),v&&c.jsx("span",{className:ot(Ze.newSessionLabel,Ze.wide),children:f("session.new")})]})}),m.length>0&&c.jsx("nav",{className:Ze.panelList,"aria-label":f("panels.label"),children:m.map(({id:B,label:T})=>c.jsx(s6,{id:B,label:T,wide:v,usePanelInfo:d,selectPanel:s,renderSlot:p},B))}),c.jsx("div",{className:Ze.regionArea,children:p("sidebar.workspaces",{wide:v,expandSidebar:()=>{e&&o()}})}),c.jsxs("div",{className:Ze.footArea,children:[c.jsx("div",{className:Ze.footerActions,children:p("sidebar.footer.action",{wide:v})}),c.jsx("div",{className:Ze.settingsArea,children:p("sidebar.settings",{wide:v})})]})]})}const u6="_root_xhk35_5",c6="_stack_xhk35_15",d6="_headline_xhk35_29",f6="_titleGroup_xhk35_51",p6="_previewBadge_xhk35_62",h6="_logoFrame_xhk35_77",m6="_logo_xhk35_77",g6="_body_xhk35_98",x6="_workspace_xhk35_114",y6="_workspaceLabel_xhk35_160",bn={root:u6,stack:c6,headline:d6,titleGroup:f6,previewBadge:p6,logoFrame:h6,logo:m6,body:g6,workspace:x6,workspaceLabel:y6};function v6({t:e,renderSlot:r,children:i}){return c.jsxs("div",{className:bn.root,children:[c.jsxs("div",{className:bn.stack,children:[c.jsxs("div",{className:bn.headline,children:[c.jsx("span",{className:bn.logoFrame,children:r("conversation.hero.brand.mark",{size:34,className:bn.logo},{fallback:c.jsx(Jo,{size:34,className:bn.logo})})}),c.jsxs("span",{className:bn.titleGroup,children:[c.jsx("span",{children:e("hero.headline")}),c.jsx("span",{className:bn.previewBadge,children:e("hero.preview")})]})]}),c.jsx("div",{className:bn.body})]}),i]})}const C6="_root_5w0r3_1",w6="_header_5w0r3_42",k6="_titleRow_5w0r3_56",_6="_titleCluster_5w0r3_63",S6="_crumbs_5w0r3_71",b6="_crumb_5w0r3_71",E6="_crumbCurrent_5w0r3_118",j6="_headerActions_5w0r3_124",L6="_tabs_5w0r3_161",N6="_tab_5w0r3_38",I6="_tabActive_5w0r3_199",P6="_viewArea_5w0r3_207",M6="_composerStack_5w0r3_294",T6="_composerSeat_5w0r3_305",z6="_body_5w0r3_215",D6="_scrollBody_5w0r3_341",R6="_composerHero_5w0r3_442",A6="_heroWorkspaceRow_5w0r3_455",ht={root:C6,header:w6,titleRow:k6,titleCluster:_6,crumbs:S6,crumb:b6,crumbCurrent:E6,headerActions:j6,tabs:L6,tab:N6,tabActive:I6,viewArea:P6,composerStack:M6,composerSeat:T6,body:z6,scrollBody:D6,composerHero:R6,heroWorkspaceRow:A6},F6="_root_6nf6e_2",O6="_hero_6nf6e_20",$6="_card_6nf6e_39",B6="_scroll_6nf6e_125",H6="_grow_6nf6e_143",V6="_row_6nf6e_248",U6="_tools_6nf6e_266",W6="_trailing_6nf6e_268",q6="_add_6nf6e_297",Z6="_primary_6nf6e_355",fn={root:F6,hero:O6,card:$6,scroll:B6,grow:H6,row:V6,tools:U6,trailing:W6,add:q6,primary:Z6},Q6="_root_14jhb_1",G6="_scroll_14jhb_9",K6="_column_14jhb_37",n1={root:Q6,scroll:G6,column:K6},Y6="_userRow_1dwc7_4",X6="_userStack_1dwc7_11",J6="_bubble_1dwc7_23",ep="_attachmentRow_1dwc7_296",tp="_fileCard_1dwc7_304",np="_fileIcon_1dwc7_318",rp="_fileContent_1dwc7_324",ip="_fileName_1dwc7_331",lp="_fileMeta_1dwc7_341",Zn={userRow:Y6,userStack:X6,bubble:J6,attachmentRow:ep,fileCard:tp,fileIcon:np,fileContent:rp,fileName:ip,fileMeta:lp};function op(e,r){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const sp=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ap=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,up={};function f2(e,r){return(up.jsx?ap:sp).test(e)}const cp=/[ \t\n\f\r]/g;function dp(e){return typeof e=="object"?e.type==="text"?p2(e.value):!1:p2(e)}function p2(e){return e.replace(cp,"")===""}class El{constructor(r,i,o){this.normal=i,this.property=r,o&&(this.space=o)}}El.prototype.normal={};El.prototype.property={};El.prototype.space=void 0;function wd(e,r){const i={},o={};for(const s of e)Object.assign(i,s.property),Object.assign(o,s.normal);return new El(i,o,r)}function I1(e){return e.toLowerCase()}class Yt{constructor(r,i){this.attribute=i,this.property=r}}Yt.prototype.attribute="";Yt.prototype.booleanish=!1;Yt.prototype.boolean=!1;Yt.prototype.commaOrSpaceSeparated=!1;Yt.prototype.commaSeparated=!1;Yt.prototype.defined=!1;Yt.prototype.mustUseProperty=!1;Yt.prototype.number=!1;Yt.prototype.overloadedBoolean=!1;Yt.prototype.property="";Yt.prototype.spaceSeparated=!1;Yt.prototype.space=void 0;let fp=0;const Pe=qr(),mt=qr(),P1=qr(),ue=qr(),Ke=qr(),Ur=qr(),nn=qr();function qr(){return 2**++fp}const M1=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:mt,commaOrSpaceSeparated:nn,commaSeparated:Ur,number:ue,overloadedBoolean:P1,spaceSeparated:Ke},Symbol.toStringTag,{value:"Module"})),r1=Object.keys(M1);class X1 extends Yt{constructor(r,i,o,s){let u=-1;if(super(r,i),h2(this,"space",s),typeof o=="number")for(;++u<r1.length;){const d=r1[u];h2(this,r1[u],(o&M1[d])===M1[d])}}}X1.prototype.defined=!0;function h2(e,r,i){i&&(e[r]=i)}function ki(e){const r={},i={};for(const[o,s]of Object.entries(e.properties)){const u=new X1(o,e.transform(e.attributes||{},o),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(u.mustUseProperty=!0),r[o]=u,i[I1(o)]=o,i[I1(u.attribute)]=o}return new El(r,i,e.space)}const kd=ki({properties:{ariaActiveDescendant:null,ariaAtomic:mt,ariaAutoComplete:null,ariaBusy:mt,ariaChecked:mt,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:Ke,ariaCurrent:null,ariaDescribedBy:Ke,ariaDetails:null,ariaDisabled:mt,ariaDropEffect:Ke,ariaErrorMessage:null,ariaExpanded:mt,ariaFlowTo:Ke,ariaGrabbed:mt,ariaHasPopup:null,ariaHidden:mt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ke,ariaLevel:ue,ariaLive:null,ariaModal:mt,ariaMultiLine:mt,ariaMultiSelectable:mt,ariaOrientation:null,ariaOwns:Ke,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:mt,ariaReadOnly:mt,ariaRelevant:null,ariaRequired:mt,ariaRoleDescription:Ke,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:mt,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function _d(e,r){return r in e?e[r]:r}function Sd(e,r){return _d(e,r.toLowerCase())}const pp=ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ur,acceptCharset:Ke,accessKey:Ke,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alpha:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:Ke,autoFocus:Pe,autoPlay:Pe,blocking:Ke,capture:null,charSet:null,checked:Pe,cite:null,className:Ke,closedBy:null,colorSpace:null,cols:ue,colSpan:ue,command:null,commandFor:null,content:null,contentEditable:mt,controls:Pe,controlsList:Ke,coords:ue|Ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:P1,draggable:mt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:Ke,height:ue,hidden:P1,high:ue,href:null,hrefLang:null,htmlFor:Ke,httpEquiv:Ke,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:Ke,itemRef:Ke,itemScope:Pe,itemType:Ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pe,optimum:ue,pattern:null,ping:Ke,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:Ke,required:Pe,reversed:Pe,rows:ue,rowSpan:ue,sandbox:Ke,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootCustomElementRegistry:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shadowRootSerializable:Pe,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:mt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:mt,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ke,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:mt,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Pe,disablePictureInPicture:Pe,disableRemotePlayback:Pe,exportParts:Ur,part:Ke,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:Sd}),hp=ki({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:nn,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:Ke,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ur,g2:Ur,glyphName:Ur,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ue,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nn,rev:nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nn,requiredFeatures:nn,requiredFonts:nn,requiredFormats:nn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nn,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_d}),bd=ki({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),Ed=ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Sd}),jd=ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),mp={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},gp=/[A-Z]/g,m2=/-[a-z]/g,xp=/^data[-\w.:]+$/i;function yp(e,r){const i=I1(r);let o=r,s=Yt;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&xp.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(m2,Cp);o="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!m2.test(u)){let d=u.replace(gp,vp);d.charAt(0)!=="-"&&(d="-"+d),r="data"+d}}s=X1}return new s(o,r)}function vp(e){return"-"+e.toLowerCase()}function Cp(e){return e.charAt(1).toUpperCase()}const wp=wd([kd,pp,bd,Ed,jd],"html"),J1=wd([kd,hp,bd,Ed,jd],"svg");function kp(e){return e.join(" ").trim()}var mi={},i1,g2;function _p(){if(g2)return i1;g2=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,d=/^[;\s]*/,f=/^\s+|\s+$/g,p=`
47
+ `,m="/",y="*",x="",v="comment",C="declaration";function k(R,j){if(typeof R!="string")throw new TypeError("First argument must be a string");if(!R)return[];j=j||{};var V=1,b=1;function $(W){var O=W.match(r);O&&(V+=O.length);var I=W.lastIndexOf(p);b=~I?W.length-I:b+W.length}function B(){var W={line:V,column:b};return function(O){return O.position=new T(W),Y(),O}}function T(W){this.start=W,this.end={line:V,column:b},this.source=j.source}T.prototype.content=R;function ee(W){var O=new Error(j.source+":"+V+":"+b+": "+W);if(O.reason=W,O.filename=j.source,O.line=V,O.column=b,O.source=R,!j.silent)throw O}function ie(W){var O=W.exec(R);if(O){var I=O[0];return $(I),R=R.slice(I.length),O}}function Y(){ie(i)}function D(W){var O;for(W=W||[];O=L();)O!==!1&&W.push(O);return W}function L(){var W=B();if(!(m!=R.charAt(0)||y!=R.charAt(1))){for(var O=2;x!=R.charAt(O)&&(y!=R.charAt(O)||m!=R.charAt(O+1));)++O;if(O+=2,x===R.charAt(O-1))return ee("End of comment missing");var I=R.slice(2,O-2);return b+=2,$(I),R=R.slice(O),b+=2,W({type:v,comment:I})}}function Z(){var W=B(),O=ie(o);if(O){if(L(),!ie(s))return ee("property missing ':'");var I=ie(u),J=W({type:C,property:P(O[0].replace(e,x)),value:I?P(I[0].replace(e,x)):x});return ie(d),J}}function te(){var W=[];D(W);for(var O;O=Z();)O!==!1&&(W.push(O),D(W));return W}return Y(),te()}function P(R){return R?R.replace(f,x):x}return i1=k,i1}var x2;function Sp(){if(x2)return mi;x2=1;var e=mi&&mi.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(mi,"__esModule",{value:!0}),mi.default=i;const r=e(_p());function i(o,s){let u=null;if(!o||typeof o!="string")return u;const d=(0,r.default)(o),f=typeof s=="function";return d.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:y}=p;f?s(m,y,p):y&&(u=u||{},u[m]=y)}),u}return mi}var ul={},y2;function bp(){if(y2)return ul;y2=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,u=function(m){return!m||i.test(m)||e.test(m)},d=function(m,y){return y.toUpperCase()},f=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),u(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(s,f):m=m.replace(o,f),m.replace(r,d))};return ul.camelCase=p,ul}var cl,v2;function Ep(){if(v2)return cl;v2=1;var e=cl&&cl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=e(Sp()),i=bp();function o(s,u){var d={};return!s||typeof s!="string"||(0,r.default)(s,function(f,p){f&&p&&(d[(0,i.camelCase)(f,u)]=p)}),d}return o.default=o,cl=o,cl}var jp=Ep();const Lp=q1(jp),Ld=Nd("end"),eu=Nd("start");function Nd(e){return r;function r(i){const o=i&&i.position&&i.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function Np(e){const r=eu(e),i=Ld(e);if(r&&i)return{start:r,end:i}}function xl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?C2(e.position):"start"in e||"end"in e?C2(e):"line"in e||"column"in e?T1(e):""}function T1(e){return w2(e&&e.line)+":"+w2(e&&e.column)}function C2(e){return T1(e&&e.start)+"-"+T1(e&&e.end)}function w2(e){return e&&typeof e=="number"?e:1}class Dt extends Error{constructor(r,i,o){super(),typeof i=="string"&&(o=i,i=void 0);let s="",u={},d=!1;if(i&&("line"in i&&"column"in i?u={place:i}:"start"in i&&"end"in i?u={place:i}:"type"in i?u={ancestors:[i],place:i.position}:u={...i}),typeof r=="string"?s=r:!u.cause&&r&&(d=!0,s=r.message,u.cause=r),!u.ruleId&&!u.source&&typeof o=="string"){const p=o.indexOf(":");p===-1?u.ruleId=o:(u.source=o.slice(0,p),u.ruleId=o.slice(p+1))}if(!u.place&&u.ancestors&&u.ancestors){const p=u.ancestors[u.ancestors.length-1];p&&(u.place=p.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=xl(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=d&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Dt.prototype.file="";Dt.prototype.name="";Dt.prototype.reason="";Dt.prototype.message="";Dt.prototype.stack="";Dt.prototype.column=void 0;Dt.prototype.line=void 0;Dt.prototype.ancestors=void 0;Dt.prototype.cause=void 0;Dt.prototype.fatal=void 0;Dt.prototype.place=void 0;Dt.prototype.ruleId=void 0;Dt.prototype.source=void 0;const tu={}.hasOwnProperty,Ip=new Map,Pp=/[A-Z]/g,Mp=new Set(["table","tbody","thead","tfoot","tr"]),Tp=new Set(["td","th"]),Id="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function zp(e,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let o;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=Hp(i,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=Bp(i,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:o,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?J1:wp,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=Pd(s,e,void 0);return u&&typeof u!="string"?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}function Pd(e,r,i){if(r.type==="element")return Dp(e,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return Rp(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return Fp(e,r,i);if(r.type==="mdxjsEsm")return Ap(e,r);if(r.type==="root")return Op(e,r,i);if(r.type==="text")return $p(e,r)}function Dp(e,r,i){const o=e.schema;let s=o;r.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=J1,e.schema=s),e.ancestors.push(r);const u=Td(e,r.tagName,!1),d=Vp(e,r);let f=ru(e,r);return Mp.has(r.tagName)&&(f=f.filter(function(p){return typeof p=="string"?!dp(p):!0})),Md(e,d,u,r),nu(d,f),e.ancestors.pop(),e.schema=o,e.create(r,u,d,i)}function Rp(e,r){if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}kl(e,r.position)}function Ap(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);kl(e,r.position)}function Fp(e,r,i){const o=e.schema;let s=o;r.name==="svg"&&o.space==="html"&&(s=J1,e.schema=s),e.ancestors.push(r);const u=r.name===null?e.Fragment:Td(e,r.name,!0),d=Up(e,r),f=ru(e,r);return Md(e,d,u,r),nu(d,f),e.ancestors.pop(),e.schema=o,e.create(r,u,d,i)}function Op(e,r,i){const o={};return nu(o,ru(e,r)),e.create(r,e.Fragment,o,i)}function $p(e,r){return r.value}function Md(e,r,i,o){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(r.node=o)}function nu(e,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(e.children=i)}}function Bp(e,r,i){return o;function o(s,u,d,f){const m=Array.isArray(d.children)?i:r;return f?m(u,d,f):m(u,d)}}function Hp(e,r){return i;function i(o,s,u,d){const f=Array.isArray(u.children),p=eu(o);return r(s,u,d,f,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function Vp(e,r){const i={};let o,s;for(s in r.properties)if(s!=="children"&&tu.call(r.properties,s)){const u=Wp(e,s,r.properties[s]);if(u){const[d,f]=u;e.tableCellAlignToStyle&&d==="align"&&typeof f=="string"&&Tp.has(r.tagName)?o=f:i[d]=f}}if(o){const u=i.style||(i.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return i}function Up(e,r){const i={};for(const o of r.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const u=o.data.estree.body[0];u.type;const d=u.expression;d.type;const f=d.properties[0];f.type,Object.assign(i,e.evaluater.evaluateExpression(f.argument))}else kl(e,r.position);else{const s=o.name;let u;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const f=o.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else kl(e,r.position);else u=o.value===null?!0:o.value;i[s]=u}return i}function ru(e,r){const i=[];let o=-1;const s=e.passKeys?new Map:Ip;for(;++o<r.children.length;){const u=r.children[o];let d;if(e.passKeys){const p=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(p){const m=s.get(p)||0;d=p+"-"+m,s.set(p,m+1)}}const f=Pd(e,u,d);f!==void 0&&i.push(f)}return i}function Wp(e,r,i){const o=yp(e.schema,r);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=o.commaSeparated?op(i):kp(i)),o.property==="style"){let s=typeof i=="object"?i:qp(e,String(i));return e.stylePropertyNameCase==="css"&&(s=Zp(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&o.space?mp[o.property]||o.property:o.attribute,i]}}function qp(e,r){try{return Lp(r,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const o=i,s=new Dt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Id+"#cannot-parse-style-attribute",s}}function Td(e,r,i){let o;if(!i)o={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let u=-1,d;for(;++u<s.length;){const f=f2(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};d=d?{type:"MemberExpression",object:d,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}o=d}else o=f2(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(o.type==="Literal"){const s=o.value;return tu.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(o);kl(e)}function kl(e,r){const i=new Dt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Id+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Zp(e){const r={};let i;for(i in e)tu.call(e,i)&&(r[Qp(i)]=e[i]);return r}function Qp(e){let r=e.replace(Pp,Gp);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function Gp(e){return"-"+e.toLowerCase()}const l1={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Kp={};function iu(e,r){const i=Kp,o=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return zd(e,o,s)}function zd(e,r,i){if(Yp(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return k2(e.children,r,i)}return Array.isArray(e)?k2(e,r,i):""}function k2(e,r,i){const o=[];let s=-1;for(;++s<e.length;)o[s]=zd(e[s],r,i);return o.join("")}function Yp(e){return!!(e&&typeof e=="object")}const _2=document.createElement("i");function lu(e){const r="&"+e+";";_2.innerHTML=r;const i=_2.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===r?!1:i}function rn(e,r,i,o){const s=e.length;let u=0,d;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,i=i>0?i:0,o.length<1e4)d=Array.from(o),d.unshift(r,i),e.splice(...d);else for(i&&e.splice(r,i);u<o.length;)d=o.slice(u,u+1e4),d.unshift(r,0),e.splice(...d),u+=1e4,r+=1e4}function mn(e,r){return e.length>0?(rn(e,e.length,0,r),e):r}const S2={}.hasOwnProperty;function Dd(e){const r={};let i=-1;for(;++i<e.length;)Xp(r,e[i]);return r}function Xp(e,r){let i;for(i in r){const s=(S2.call(e,i)?e[i]:void 0)||(e[i]={}),u=r[i];let d;if(u)for(d in u){S2.call(s,d)||(s[d]=[]);const f=u[d];Jp(s[d],Array.isArray(f)?f:f?[f]:[])}}}function Jp(e,r){let i=-1;const o=[];for(;++i<r.length;)(r[i].add==="after"?e:o).push(r[i]);rn(e,0,0,o)}function Rd(e,r){const i=Number.parseInt(e,r);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function En(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vt=wr(/[A-Za-z]/),zt=wr(/[\dA-Za-z]/),eh=wr(/[#-'*+\--9=?A-Z^-~]/);function ts(e){return e!==null&&(e<32||e===127)}const z1=wr(/\d/),th=wr(/[\dA-Fa-f]/),nh=wr(/[!-/:-@[-`{-~]/);function Se(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function Fe(e){return e===-2||e===-1||e===32}const as=wr(new RegExp("\\p{P}|\\p{S}","u")),Wr=wr(/\s/);function wr(e){return r;function r(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function _i(e){const r=[];let i=-1,o=0,s=0;for(;++i<e.length;){const u=e.charCodeAt(i);let d="";if(u===37&&zt(e.charCodeAt(i+1))&&zt(e.charCodeAt(i+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(d=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(i+1);u<56320&&f>56319&&f<57344?(d=String.fromCharCode(u,f),s=1):d="�"}else d=String.fromCharCode(u);d&&(r.push(e.slice(o,i),encodeURIComponent(d)),o=i+s+1,d=""),s&&(i+=s,s=0)}return r.join("")+e.slice(o)}function $e(e,r,i,o){const s=o?o-1:Number.POSITIVE_INFINITY;let u=0;return d;function d(p){return Fe(p)?(e.enter(i),f(p)):r(p)}function f(p){return Fe(p)&&u++<s?(e.consume(p),f):(e.exit(i),r(p))}}const rh={tokenize:ih};function ih(e){const r=e.attempt(this.parser.constructs.contentInitial,o,s);let i;return r;function o(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),$e(e,r,"linePrefix")}function s(f){return e.enter("paragraph"),u(f)}function u(f){const p=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,d(f)}function d(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Se(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),d)}}const lh={tokenize:oh},b2={tokenize:sh};function oh(e){const r=this,i=[];let o=0,s,u,d;return f;function f(b){if(o<i.length){const $=i[o];return r.containerState=$[1],e.attempt($[0].continuation,p,m)(b)}return m(b)}function p(b){if(o++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&V();const $=r.events.length;let B=$,T;for(;B--;)if(r.events[B][0]==="exit"&&r.events[B][1].type==="chunkFlow"){T=r.events[B][1].end;break}j(o);let ee=$;for(;ee<r.events.length;)r.events[ee][1].end={...T},ee++;return rn(r.events,B+1,0,r.events.slice($)),r.events.length=ee,m(b)}return f(b)}function m(b){if(o===i.length){if(!s)return v(b);if(s.currentConstruct&&s.currentConstruct.concrete)return k(b);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(b2,y,x)(b)}function y(b){return s&&V(),j(o),v(b)}function x(b){return r.parser.lazy[r.now().line]=o!==i.length,d=r.now().offset,k(b)}function v(b){return r.containerState={},e.attempt(b2,C,k)(b)}function C(b){return o++,i.push([r.currentConstruct,r.containerState]),v(b)}function k(b){if(b===null){s&&V(),j(0),e.consume(b);return}return s=s||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:u}),P(b)}function P(b){if(b===null){R(e.exit("chunkFlow"),!0),j(0),e.consume(b);return}return Se(b)?(e.consume(b),R(e.exit("chunkFlow")),o=0,r.interrupt=void 0,f):(e.consume(b),P)}function R(b,$){const B=r.sliceStream(b);if($&&B.push(null),b.previous=u,u&&(u.next=b),u=b,s.defineSkip(b.start),s.write(B),r.parser.lazy[b.start.line]){let T=s.events.length;for(;T--;)if(s.events[T][1].start.offset<d&&(!s.events[T][1].end||s.events[T][1].end.offset>d))return;const ee=r.events.length;let ie=ee,Y,D;for(;ie--;)if(r.events[ie][0]==="exit"&&r.events[ie][1].type==="chunkFlow"){if(Y){D=r.events[ie][1].end;break}Y=!0}for(j(o),T=ee;T<r.events.length;)r.events[T][1].end={...D},T++;rn(r.events,ie+1,0,r.events.slice(ee)),r.events.length=T}}function j(b){let $=i.length;for(;$-- >b;){const B=i[$];r.containerState=B[1],B[0].exit.call(r,e)}i.length=b}function V(){s.write([null]),u=void 0,s=void 0,r.containerState._closeFlow=void 0}}function sh(e,r,i){return $e(e,e.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wi(e){if(e===null||Ye(e)||Wr(e))return 1;if(as(e))return 2}function us(e,r,i){const o=[];let s=-1;for(;++s<e.length;){const u=e[s].resolveAll;u&&!o.includes(u)&&(r=u(r,i),o.push(u))}return r}const D1={name:"attention",resolveAll:ah,tokenize:uh};function ah(e,r){let i=-1,o,s,u,d,f,p,m,y;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(o=i;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&r.sliceSerialize(e[o][1]).charCodeAt(0)===r.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[o][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;p=e[o][1].end.offset-e[o][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const x={...e[o][1].end},v={...e[i][1].start};E2(x,-p),E2(v,p),d={type:p>1?"strongSequence":"emphasisSequence",start:x,end:{...e[o][1].end}},f={type:p>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:v},u={type:p>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[i][1].start}},s={type:p>1?"strong":"emphasis",start:{...d.start},end:{...f.end}},e[o][1].end={...d.start},e[i][1].start={...f.end},m=[],e[o][1].end.offset-e[o][1].start.offset&&(m=mn(m,[["enter",e[o][1],r],["exit",e[o][1],r]])),m=mn(m,[["enter",s,r],["enter",d,r],["exit",d,r],["enter",u,r]]),m=mn(m,us(r.parser.constructs.insideSpan.null,e.slice(o+1,i),r)),m=mn(m,[["exit",u,r],["enter",f,r],["exit",f,r],["exit",s,r]]),e[i][1].end.offset-e[i][1].start.offset?(y=2,m=mn(m,[["enter",e[i][1],r],["exit",e[i][1],r]])):y=0,rn(e,o-1,i-o+3,m),i=o+m.length-y-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function uh(e,r){const i=this.parser.constructs.attentionMarkers.null,o=this.previous,s=wi(o);let u;return d;function d(p){return u=p,e.enter("attentionSequence"),f(p)}function f(p){if(p===u)return e.consume(p),f;const m=e.exit("attentionSequence"),y=wi(p),x=!y||y===2&&s||i.includes(p),v=!s||s===2&&y||i.includes(o);return m._open=!!(u===42?x:x&&(s||!v)),m._close=!!(u===42?v:v&&(y||!x)),r(p)}}function E2(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const ch={name:"autolink",tokenize:dh};function dh(e,r,i){let o=0;return s;function s(C){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(C){return Vt(C)?(e.consume(C),d):C===64?i(C):m(C)}function d(C){return C===43||C===45||C===46||zt(C)?(o=1,f(C)):m(C)}function f(C){return C===58?(e.consume(C),o=0,p):(C===43||C===45||C===46||zt(C))&&o++<32?(e.consume(C),f):(o=0,m(C))}function p(C){return C===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.exit("autolink"),r):C===null||C===32||C===60||ts(C)?i(C):(e.consume(C),p)}function m(C){return C===64?(e.consume(C),y):eh(C)?(e.consume(C),m):i(C)}function y(C){return zt(C)?x(C):i(C)}function x(C){return C===46?(e.consume(C),o=0,y):C===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.exit("autolink"),r):v(C)}function v(C){if((C===45||zt(C))&&o++<63){const k=C===45?v:x;return e.consume(C),k}return i(C)}}const jl={partial:!0,tokenize:fh};function fh(e,r,i){return o;function o(u){return Fe(u)?$e(e,s,"linePrefix")(u):s(u)}function s(u){return u===null||Se(u)?r(u):i(u)}}const Ad={continuation:{tokenize:hh},exit:mh,name:"blockQuote",tokenize:ph};function ph(e,r,i){const o=this;return s;function s(d){if(d===62){const f=o.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(d),e.exit("blockQuoteMarker"),u}return i(d)}function u(d){return Fe(d)?(e.enter("blockQuotePrefixWhitespace"),e.consume(d),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(d))}}function hh(e,r,i){const o=this;return s;function s(d){return Fe(d)?$e(e,u,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):u(d)}function u(d){return e.attempt(Ad,r,i)(d)}}function mh(e){e.exit("blockQuote")}const Fd={name:"characterEscape",tokenize:gh};function gh(e,r,i){return o;function o(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),s}function s(u){return nh(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):i(u)}}const Od={name:"characterReference",tokenize:xh};function xh(e,r,i){const o=this;let s=0,u,d;return f;function f(x){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(x),e.exit("characterReferenceMarker"),p}function p(x){return x===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(x),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),u=31,d=zt,y(x))}function m(x){return x===88||x===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(x),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,d=th,y):(e.enter("characterReferenceValue"),u=7,d=z1,y(x))}function y(x){if(x===59&&s){const v=e.exit("characterReferenceValue");return d===zt&&!lu(o.sliceSerialize(v))?i(x):(e.enter("characterReferenceMarker"),e.consume(x),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return d(x)&&s++<u?(e.consume(x),y):i(x)}}const j2={partial:!0,tokenize:vh},L2={concrete:!0,name:"codeFenced",tokenize:yh};function yh(e,r,i){const o=this,s={partial:!0,tokenize:B};let u=0,d=0,f;return p;function p(T){return m(T)}function m(T){const ee=o.events[o.events.length-1];return u=ee&&ee[1].type==="linePrefix"?ee[2].sliceSerialize(ee[1],!0).length:0,f=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(T)}function y(T){return T===f?(d++,e.consume(T),y):d<3?i(T):(e.exit("codeFencedFenceSequence"),Fe(T)?$e(e,x,"whitespace")(T):x(T))}function x(T){return T===null||Se(T)?(e.exit("codeFencedFence"),o.interrupt?r(T):e.check(j2,P,$)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===null||Se(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),x(T)):Fe(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$e(e,C,"whitespace")(T)):T===96&&T===f?i(T):(e.consume(T),v)}function C(T){return T===null||Se(T)?x(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k(T))}function k(T){return T===null||Se(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),x(T)):T===96&&T===f?i(T):(e.consume(T),k)}function P(T){return e.attempt(s,$,R)(T)}function R(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),j}function j(T){return u>0&&Fe(T)?$e(e,V,"linePrefix",u+1)(T):V(T)}function V(T){return T===null||Se(T)?e.check(j2,P,$)(T):(e.enter("codeFlowValue"),b(T))}function b(T){return T===null||Se(T)?(e.exit("codeFlowValue"),V(T)):(e.consume(T),b)}function $(T){return e.exit("codeFenced"),r(T)}function B(T,ee,ie){let Y=0;return D;function D(O){return T.enter("lineEnding"),T.consume(O),T.exit("lineEnding"),L}function L(O){return T.enter("codeFencedFence"),Fe(O)?$e(T,Z,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):Z(O)}function Z(O){return O===f?(T.enter("codeFencedFenceSequence"),te(O)):ie(O)}function te(O){return O===f?(Y++,T.consume(O),te):Y>=d?(T.exit("codeFencedFenceSequence"),Fe(O)?$e(T,W,"whitespace")(O):W(O)):ie(O)}function W(O){return O===null||Se(O)?(T.exit("codeFencedFence"),ee(O)):ie(O)}}}function vh(e,r,i){const o=this;return s;function s(d){return d===null?i(d):(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u)}function u(d){return o.parser.lazy[o.now().line]?i(d):r(d)}}const o1={name:"codeIndented",tokenize:wh},Ch={partial:!0,tokenize:kh};function wh(e,r,i){const o=this;return s;function s(m){return e.enter("codeIndented"),$e(e,u,"linePrefix",5)(m)}function u(m){const y=o.events[o.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?d(m):i(m)}function d(m){return m===null?p(m):Se(m)?e.attempt(Ch,d,p)(m):(e.enter("codeFlowValue"),f(m))}function f(m){return m===null||Se(m)?(e.exit("codeFlowValue"),d(m)):(e.consume(m),f)}function p(m){return e.exit("codeIndented"),r(m)}}function kh(e,r,i){const o=this;return s;function s(d){return o.parser.lazy[o.now().line]?i(d):Se(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):$e(e,u,"linePrefix",5)(d)}function u(d){const f=o.events[o.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(d):Se(d)?s(d):i(d)}}const _h={name:"codeText",previous:bh,resolve:Sh,tokenize:Eh};function Sh(e){let r=e.length-4,i=3,o,s;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(o=i;++o<r;)if(e[o][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(o=i-1,r++;++o<=r;)s===void 0?o!==r&&e[o][1].type!=="lineEnding"&&(s=o):(o===r||e[o][1].type==="lineEnding")&&(e[s][1].type="codeTextData",o!==s+2&&(e[s][1].end=e[o-1][1].end,e.splice(s+2,o-s-2),r-=o-s-2,o=s+2),s=void 0);return e}function bh(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Eh(e,r,i){let o=0,s,u;return d;function d(x){return e.enter("codeText"),e.enter("codeTextSequence"),f(x)}function f(x){return x===96?(e.consume(x),o++,f):(e.exit("codeTextSequence"),p(x))}function p(x){return x===null?i(x):x===32?(e.enter("space"),e.consume(x),e.exit("space"),p):x===96?(u=e.enter("codeTextSequence"),s=0,y(x)):Se(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):(e.enter("codeTextData"),m(x))}function m(x){return x===null||x===32||x===96||Se(x)?(e.exit("codeTextData"),p(x)):(e.consume(x),m)}function y(x){return x===96?(e.consume(x),s++,y):s===o?(e.exit("codeTextSequence"),e.exit("codeText"),r(x)):(u.type="codeTextData",m(x))}}class jh{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,i){const o=i??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(r,o):r>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,i,o){const s=i||0;this.setCursor(Math.trunc(r));const u=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&dl(this.left,o),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),dl(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),dl(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const i=this.left.splice(r,Number.POSITIVE_INFINITY);dl(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);dl(this.left,i.reverse())}}}function dl(e,r){let i=0;if(r.length<1e4)e.push(...r);else for(;i<r.length;)e.push(...r.slice(i,i+1e4)),i+=1e4}function $d(e){const r={};let i=-1,o,s,u,d,f,p,m;const y=new jh(e);for(;++i<y.length;){for(;i in r;)i=r[i];if(o=y.get(i),i&&o[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(p=o[1]._tokenizer.events,u=0,u<p.length&&p[u][1].type==="lineEndingBlank"&&(u+=2),u<p.length&&p[u][1].type==="content"))for(;++u<p.length&&p[u][1].type!=="content";)p[u][1].type==="chunkText"&&(p[u][1]._isInFirstContentOfListItem=!0,u++);if(o[0]==="enter")o[1].contentType&&(Object.assign(r,Lh(y,i)),i=r[i],m=!0);else if(o[1]._container){for(u=i,s=void 0;u--;)if(d=y.get(u),d[1].type==="lineEnding"||d[1].type==="lineEndingBlank")d[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),d[1].type="lineEnding",s=u);else if(!(d[1].type==="linePrefix"||d[1].type==="listItemIndent"))break;s&&(o[1].end={...y.get(s)[1].start},f=y.slice(s,i),f.unshift(o),y.splice(s,i-s+1,f))}}return rn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function Lh(e,r){const i=e.get(r)[1],o=e.get(r)[2];let s=r-1;const u=[];let d=i._tokenizer;d||(d=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(d._contentTypeTextTrailing=!0));const f=d.events,p=[],m={};let y,x,v=-1,C=i,k=0,P=0;const R=[P];for(;C;){for(;e.get(++s)[1]!==C;);u.push(s),C._tokenizer||(y=o.sliceStream(C),C.next||y.push(null),x&&d.defineSkip(C.start),C._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(y),C._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void 0)),x=C,C=C.next}for(C=i;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(P=v+1,R.push(P),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(d.events=[],C?(C._tokenizer=void 0,C.previous=void 0):R.pop(),v=R.length;v--;){const j=f.slice(R[v],R[v+1]),V=u.pop();p.push([V,V+j.length-1]),e.splice(V,2,j)}for(p.reverse(),v=-1;++v<p.length;)m[k+p[v][0]]=k+p[v][1],k+=p[v][1]-p[v][0]-1;return m}const Nh={resolve:Ph,tokenize:Mh},Ih={partial:!0,tokenize:Th};function Ph(e){return $d(e),e}function Mh(e,r){let i;return o;function o(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?u(f):Se(f)?e.check(Ih,d,u)(f):(e.consume(f),s)}function u(f){return e.exit("chunkContent"),e.exit("content"),r(f)}function d(f){return e.consume(f),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function Th(e,r,i){const o=this;return s;function s(d){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),$e(e,u,"linePrefix")}function u(d){if(d===null||Se(d))return i(d);const f=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(d):e.interrupt(o.parser.constructs.flow,i,r)(d)}}function Bd(e,r,i,o,s,u,d,f,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return x;function x(j){return j===60?(e.enter(o),e.enter(s),e.enter(u),e.consume(j),e.exit(u),v):j===null||j===32||j===41||ts(j)?i(j):(e.enter(o),e.enter(d),e.enter(f),e.enter("chunkString",{contentType:"string"}),P(j))}function v(j){return j===62?(e.enter(u),e.consume(j),e.exit(u),e.exit(s),e.exit(o),r):(e.enter(f),e.enter("chunkString",{contentType:"string"}),C(j))}function C(j){return j===62?(e.exit("chunkString"),e.exit(f),v(j)):j===null||j===60||Se(j)?i(j):(e.consume(j),j===92?k:C)}function k(j){return j===60||j===62||j===92?(e.consume(j),C):C(j)}function P(j){return!y&&(j===null||j===41||Ye(j))?(e.exit("chunkString"),e.exit(f),e.exit(d),e.exit(o),r(j)):y<m&&j===40?(e.consume(j),y++,P):j===41?(e.consume(j),y--,P):j===null||j===32||j===40||ts(j)?i(j):(e.consume(j),j===92?R:P)}function R(j){return j===40||j===41||j===92?(e.consume(j),P):P(j)}}function Hd(e,r,i,o,s,u){const d=this;let f=0,p;return m;function m(C){return e.enter(o),e.enter(s),e.consume(C),e.exit(s),e.enter(u),y}function y(C){return f>999||C===null||C===91||C===93&&!p||C===94&&!f&&"_hiddenFootnoteSupport"in d.parser.constructs?i(C):C===93?(e.exit(u),e.enter(s),e.consume(C),e.exit(s),e.exit(o),r):Se(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),x(C))}function x(C){return C===null||C===91||C===93||Se(C)||f++>999?(e.exit("chunkString"),y(C)):(e.consume(C),p||(p=!Fe(C)),C===92?v:x)}function v(C){return C===91||C===92||C===93?(e.consume(C),f++,x):x(C)}}function Vd(e,r,i,o,s,u){let d;return f;function f(v){return v===34||v===39||v===40?(e.enter(o),e.enter(s),e.consume(v),e.exit(s),d=v===40?41:v,p):i(v)}function p(v){return v===d?(e.enter(s),e.consume(v),e.exit(s),e.exit(o),r):(e.enter(u),m(v))}function m(v){return v===d?(e.exit(u),p(d)):v===null?i(v):Se(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),$e(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===d||v===null||Se(v)?(e.exit("chunkString"),m(v)):(e.consume(v),v===92?x:y)}function x(v){return v===d||v===92?(e.consume(v),y):y(v)}}function yl(e,r){let i;return o;function o(s){return Se(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i=!0,o):Fe(s)?$e(e,o,i?"linePrefix":"lineSuffix")(s):r(s)}}const zh={name:"definition",tokenize:Rh},Dh={partial:!0,tokenize:Ah};function Rh(e,r,i){const o=this;let s;return u;function u(C){return e.enter("definition"),d(C)}function d(C){return Hd.call(o,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function f(C){return s=En(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),p):i(C)}function p(C){return Ye(C)?yl(e,m)(C):m(C)}function m(C){return Bd(e,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function y(C){return e.attempt(Dh,x,x)(C)}function x(C){return Fe(C)?$e(e,v,"whitespace")(C):v(C)}function v(C){return C===null||Se(C)?(e.exit("definition"),o.parser.defined.push(s),r(C)):i(C)}}function Ah(e,r,i){return o;function o(f){return Ye(f)?yl(e,s)(f):i(f)}function s(f){return Vd(e,u,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Fe(f)?$e(e,d,"whitespace")(f):d(f)}function d(f){return f===null||Se(f)?r(f):i(f)}}const Fh={name:"hardBreakEscape",tokenize:Oh};function Oh(e,r,i){return o;function o(u){return e.enter("hardBreakEscape"),e.consume(u),s}function s(u){return Se(u)?(e.exit("hardBreakEscape"),r(u)):i(u)}}const $h={name:"headingAtx",resolve:Bh,tokenize:Hh};function Bh(e,r){let i=e.length-2,o=3,s,u;return e[o][1].type==="whitespace"&&(o+=2),i-2>o&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(o===i-1||i-4>o&&e[i-2][1].type==="whitespace")&&(i-=o+1===i?2:4),i>o&&(s={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},u={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},rn(e,o,i-o+1,[["enter",s,r],["enter",u,r],["exit",u,r],["exit",s,r]])),e}function Hh(e,r,i){let o=0;return s;function s(y){return e.enter("atxHeading"),u(y)}function u(y){return e.enter("atxHeadingSequence"),d(y)}function d(y){return y===35&&o++<6?(e.consume(y),d):y===null||Ye(y)?(e.exit("atxHeadingSequence"),f(y)):i(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),p(y)):y===null||Se(y)?(e.exit("atxHeading"),r(y)):Fe(y)?$e(e,f,"whitespace")(y):(e.enter("atxHeadingText"),m(y))}function p(y){return y===35?(e.consume(y),p):(e.exit("atxHeadingSequence"),f(y))}function m(y){return y===null||y===35||Ye(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),m)}}const Vh=["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"],N2=["pre","script","style","textarea"],Uh={concrete:!0,name:"htmlFlow",resolveTo:Zh,tokenize:Qh},Wh={partial:!0,tokenize:Kh},qh={partial:!0,tokenize:Gh};function Zh(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function Qh(e,r,i){const o=this;let s,u,d,f,p;return m;function m(N){return y(N)}function y(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),x}function x(N){return N===33?(e.consume(N),v):N===47?(e.consume(N),u=!0,P):N===63?(e.consume(N),s=3,o.interrupt?r:S):Vt(N)?(e.consume(N),d=String.fromCharCode(N),R):i(N)}function v(N){return N===45?(e.consume(N),s=2,C):N===91?(e.consume(N),s=5,f=0,k):Vt(N)?(e.consume(N),s=4,o.interrupt?r:S):i(N)}function C(N){return N===45?(e.consume(N),o.interrupt?r:S):i(N)}function k(N){const ge="CDATA[";return N===ge.charCodeAt(f++)?(e.consume(N),f===ge.length?o.interrupt?r:Z:k):i(N)}function P(N){return Vt(N)?(e.consume(N),d=String.fromCharCode(N),R):i(N)}function R(N){if(N===null||N===47||N===62||Ye(N)){const ge=N===47,ve=d.toLowerCase();return!ge&&!u&&N2.includes(ve)?(s=1,o.interrupt?r(N):Z(N)):Vh.includes(d.toLowerCase())?(s=6,ge?(e.consume(N),j):o.interrupt?r(N):Z(N)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?i(N):u?V(N):b(N))}return N===45||zt(N)?(e.consume(N),d+=String.fromCharCode(N),R):i(N)}function j(N){return N===62?(e.consume(N),o.interrupt?r:Z):i(N)}function V(N){return Fe(N)?(e.consume(N),V):D(N)}function b(N){return N===47?(e.consume(N),D):N===58||N===95||Vt(N)?(e.consume(N),$):Fe(N)?(e.consume(N),b):D(N)}function $(N){return N===45||N===46||N===58||N===95||zt(N)?(e.consume(N),$):B(N)}function B(N){return N===61?(e.consume(N),T):Fe(N)?(e.consume(N),B):b(N)}function T(N){return N===null||N===60||N===61||N===62||N===96?i(N):N===34||N===39?(e.consume(N),p=N,ee):Fe(N)?(e.consume(N),T):ie(N)}function ee(N){return N===p?(e.consume(N),p=null,Y):N===null||Se(N)?i(N):(e.consume(N),ee)}function ie(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||Ye(N)?B(N):(e.consume(N),ie)}function Y(N){return N===47||N===62||Fe(N)?b(N):i(N)}function D(N){return N===62?(e.consume(N),L):i(N)}function L(N){return N===null||Se(N)?Z(N):Fe(N)?(e.consume(N),L):i(N)}function Z(N){return N===45&&s===2?(e.consume(N),I):N===60&&s===1?(e.consume(N),J):N===62&&s===4?(e.consume(N),A):N===63&&s===3?(e.consume(N),S):N===93&&s===5?(e.consume(N),ne):Se(N)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(Wh,K,te)(N)):N===null||Se(N)?(e.exit("htmlFlowData"),te(N)):(e.consume(N),Z)}function te(N){return e.check(qh,W,K)(N)}function W(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),O}function O(N){return N===null||Se(N)?te(N):(e.enter("htmlFlowData"),Z(N))}function I(N){return N===45?(e.consume(N),S):Z(N)}function J(N){return N===47?(e.consume(N),d="",z):Z(N)}function z(N){if(N===62){const ge=d.toLowerCase();return N2.includes(ge)?(e.consume(N),A):Z(N)}return Vt(N)&&d.length<8?(e.consume(N),d+=String.fromCharCode(N),z):Z(N)}function ne(N){return N===93?(e.consume(N),S):Z(N)}function S(N){return N===62?(e.consume(N),A):N===45&&s===2?(e.consume(N),S):Z(N)}function A(N){return N===null||Se(N)?(e.exit("htmlFlowData"),K(N)):(e.consume(N),A)}function K(N){return e.exit("htmlFlow"),r(N)}}function Gh(e,r,i){const o=this;return s;function s(d){return Se(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):i(d)}function u(d){return o.parser.lazy[o.now().line]?i(d):r(d)}}function Kh(e,r,i){return o;function o(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(jl,r,i)}}const Yh={name:"htmlText",tokenize:Xh};function Xh(e,r,i){const o=this;let s,u,d;return f;function f(S){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(S),p}function p(S){return S===33?(e.consume(S),m):S===47?(e.consume(S),B):S===63?(e.consume(S),b):Vt(S)?(e.consume(S),ie):i(S)}function m(S){return S===45?(e.consume(S),y):S===91?(e.consume(S),u=0,k):Vt(S)?(e.consume(S),V):i(S)}function y(S){return S===45?(e.consume(S),C):i(S)}function x(S){return S===null?i(S):S===45?(e.consume(S),v):Se(S)?(d=x,J(S)):(e.consume(S),x)}function v(S){return S===45?(e.consume(S),C):x(S)}function C(S){return S===62?I(S):S===45?v(S):x(S)}function k(S){const A="CDATA[";return S===A.charCodeAt(u++)?(e.consume(S),u===A.length?P:k):i(S)}function P(S){return S===null?i(S):S===93?(e.consume(S),R):Se(S)?(d=P,J(S)):(e.consume(S),P)}function R(S){return S===93?(e.consume(S),j):P(S)}function j(S){return S===62?I(S):S===93?(e.consume(S),j):P(S)}function V(S){return S===null||S===62?I(S):Se(S)?(d=V,J(S)):(e.consume(S),V)}function b(S){return S===null?i(S):S===63?(e.consume(S),$):Se(S)?(d=b,J(S)):(e.consume(S),b)}function $(S){return S===62?I(S):b(S)}function B(S){return Vt(S)?(e.consume(S),T):i(S)}function T(S){return S===45||zt(S)?(e.consume(S),T):ee(S)}function ee(S){return Se(S)?(d=ee,J(S)):Fe(S)?(e.consume(S),ee):I(S)}function ie(S){return S===45||zt(S)?(e.consume(S),ie):S===47||S===62||Ye(S)?Y(S):i(S)}function Y(S){return S===47?(e.consume(S),I):S===58||S===95||Vt(S)?(e.consume(S),D):Se(S)?(d=Y,J(S)):Fe(S)?(e.consume(S),Y):I(S)}function D(S){return S===45||S===46||S===58||S===95||zt(S)?(e.consume(S),D):L(S)}function L(S){return S===61?(e.consume(S),Z):Se(S)?(d=L,J(S)):Fe(S)?(e.consume(S),L):Y(S)}function Z(S){return S===null||S===60||S===61||S===62||S===96?i(S):S===34||S===39?(e.consume(S),s=S,te):Se(S)?(d=Z,J(S)):Fe(S)?(e.consume(S),Z):(e.consume(S),W)}function te(S){return S===s?(e.consume(S),s=void 0,O):S===null?i(S):Se(S)?(d=te,J(S)):(e.consume(S),te)}function W(S){return S===null||S===34||S===39||S===60||S===61||S===96?i(S):S===47||S===62||Ye(S)?Y(S):(e.consume(S),W)}function O(S){return S===47||S===62||Ye(S)?Y(S):i(S)}function I(S){return S===62?(e.consume(S),e.exit("htmlTextData"),e.exit("htmlText"),r):i(S)}function J(S){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),z}function z(S){return Fe(S)?$e(e,ne,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):ne(S)}function ne(S){return e.enter("htmlTextData"),d(S)}}const ou={name:"labelEnd",resolveAll:n8,resolveTo:r8,tokenize:i8},Jh={tokenize:l8},e8={tokenize:o8},t8={tokenize:s8};function n8(e){let r=-1;const i=[];for(;++r<e.length;){const o=e[r][1];if(i.push(e[r]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",r+=s}}return e.length!==i.length&&rn(e,0,e.length,i),e}function r8(e,r){let i=e.length,o=0,s,u,d,f;for(;i--;)if(s=e[i][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(d){if(e[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(u=i,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(d=i);const p={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[u][1].start},end:{...e[d][1].end}},y={type:"labelText",start:{...e[u+o+2][1].end},end:{...e[d-2][1].start}};return f=[["enter",p,r],["enter",m,r]],f=mn(f,e.slice(u+1,u+o+3)),f=mn(f,[["enter",y,r]]),f=mn(f,us(r.parser.constructs.insideSpan.null,e.slice(u+o+4,d-3),r)),f=mn(f,[["exit",y,r],e[d-2],e[d-1],["exit",m,r]]),f=mn(f,e.slice(d+1)),f=mn(f,[["exit",p,r]]),rn(e,u,e.length,f),e}function i8(e,r,i){const o=this;let s=o.events.length,u,d;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){u=o.events[s][1];break}return f;function f(v){return u?u._inactive?x(v):(d=o.parser.defined.includes(En(o.sliceSerialize({start:u.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),p):i(v)}function p(v){return v===40?e.attempt(Jh,y,d?y:x)(v):v===91?e.attempt(e8,y,d?m:x)(v):d?y(v):x(v)}function m(v){return e.attempt(t8,y,x)(v)}function y(v){return r(v)}function x(v){return u._balanced=!0,i(v)}}function l8(e,r,i){return o;function o(x){return e.enter("resource"),e.enter("resourceMarker"),e.consume(x),e.exit("resourceMarker"),s}function s(x){return Ye(x)?yl(e,u)(x):u(x)}function u(x){return x===41?y(x):Bd(e,d,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(x)}function d(x){return Ye(x)?yl(e,p)(x):y(x)}function f(x){return i(x)}function p(x){return x===34||x===39||x===40?Vd(e,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(x):y(x)}function m(x){return Ye(x)?yl(e,y)(x):y(x)}function y(x){return x===41?(e.enter("resourceMarker"),e.consume(x),e.exit("resourceMarker"),e.exit("resource"),r):i(x)}}function o8(e,r,i){const o=this;return s;function s(f){return Hd.call(o,e,u,d,"reference","referenceMarker","referenceString")(f)}function u(f){return o.parser.defined.includes(En(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?r(f):i(f)}function d(f){return i(f)}}function s8(e,r,i){return o;function o(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),s}function s(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),r):i(u)}}const a8={name:"labelStartImage",resolveAll:ou.resolveAll,tokenize:u8};function u8(e,r,i){const o=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),d):i(f)}function d(f){return f===94&&"_hiddenFootnoteSupport"in o.parser.constructs?i(f):r(f)}}const c8={name:"labelStartLink",resolveAll:ou.resolveAll,tokenize:d8};function d8(e,r,i){const o=this;return s;function s(d){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelLink"),u}function u(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?i(d):r(d)}}const s1={name:"lineEnding",tokenize:f8};function f8(e,r){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$e(e,r,"linePrefix")}}const Yo={name:"thematicBreak",tokenize:p8};function p8(e,r,i){let o=0,s;return u;function u(m){return e.enter("thematicBreak"),d(m)}function d(m){return s=m,f(m)}function f(m){return m===s?(e.enter("thematicBreakSequence"),p(m)):o>=3&&(m===null||Se(m))?(e.exit("thematicBreak"),r(m)):i(m)}function p(m){return m===s?(e.consume(m),o++,p):(e.exit("thematicBreakSequence"),Fe(m)?$e(e,f,"whitespace")(m):f(m))}}const Kt={continuation:{tokenize:x8},exit:v8,name:"list",tokenize:g8},h8={partial:!0,tokenize:C8},m8={partial:!0,tokenize:y8};function g8(e,r,i){const o=this,s=o.events[o.events.length-1];let u=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,d=0;return f;function f(C){const k=o.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!o.containerState.marker||C===o.containerState.marker:z1(C)){if(o.containerState.type||(o.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),C===42||C===45?e.check(Yo,i,m)(C):m(C);if(!o.interrupt||C===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(C)}return i(C)}function p(C){return z1(C)&&++d<10?(e.consume(C),p):(!o.interrupt||d<2)&&(o.containerState.marker?C===o.containerState.marker:C===41||C===46)?(e.exit("listItemValue"),m(C)):i(C)}function m(C){return e.enter("listItemMarker"),e.consume(C),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||C,e.check(jl,o.interrupt?i:y,e.attempt(h8,v,x))}function y(C){return o.containerState.initialBlankLine=!0,u++,v(C)}function x(C){return Fe(C)?(e.enter("listItemPrefixWhitespace"),e.consume(C),e.exit("listItemPrefixWhitespace"),v):i(C)}function v(C){return o.containerState.size=u+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(C)}}function x8(e,r,i){const o=this;return o.containerState._closeFlow=void 0,e.check(jl,s,u);function s(f){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,$e(e,r,"listItemIndent",o.containerState.size+1)(f)}function u(f){return o.containerState.furtherBlankLines||!Fe(f)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,d(f)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(m8,r,d)(f))}function d(f){return o.containerState._closeFlow=!0,o.interrupt=void 0,$e(e,e.attempt(Kt,r,i),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function y8(e,r,i){const o=this;return $e(e,s,"listItemIndent",o.containerState.size+1);function s(u){const d=o.events[o.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===o.containerState.size?r(u):i(u)}}function v8(e){e.exit(this.containerState.type)}function C8(e,r,i){const o=this;return $e(e,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(u){const d=o.events[o.events.length-1];return!Fe(u)&&d&&d[1].type==="listItemPrefixWhitespace"?r(u):i(u)}}const I2={name:"setextUnderline",resolveTo:w8,tokenize:k8};function w8(e,r){let i=e.length,o,s,u;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){o=i;break}e[i][1].type==="paragraph"&&(s=i)}else e[i][1].type==="content"&&e.splice(i,1),!u&&e[i][1].type==="definition"&&(u=i);const d={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",u?(e.splice(s,0,["enter",d,r]),e.splice(u+1,0,["exit",e[o][1],r]),e[o][1].end={...e[u][1].end}):e[o][1]=d,e.push(["exit",d,r]),e}function k8(e,r,i){const o=this;let s;return u;function u(m){let y=o.events.length,x;for(;y--;)if(o.events[y][1].type!=="lineEnding"&&o.events[y][1].type!=="linePrefix"&&o.events[y][1].type!=="content"){x=o.events[y][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||x)?(e.enter("setextHeadingLine"),s=m,d(m)):i(m)}function d(m){return e.enter("setextHeadingLineSequence"),f(m)}function f(m){return m===s?(e.consume(m),f):(e.exit("setextHeadingLineSequence"),Fe(m)?$e(e,p,"lineSuffix")(m):p(m))}function p(m){return m===null||Se(m)?(e.exit("setextHeadingLine"),r(m)):i(m)}}const _8={tokenize:S8};function S8(e){const r=this,i=e.attempt(jl,o,e.attempt(this.parser.constructs.flowInitial,s,$e(e,e.attempt(this.parser.constructs.flow,s,e.attempt(Nh,s)),"linePrefix")));return i;function o(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function s(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r.currentConstruct=void 0,i}}const b8={resolveAll:Wd()},E8=Ud("string"),j8=Ud("text");function Ud(e){return{resolveAll:Wd(e==="text"?L8:void 0),tokenize:r};function r(i){const o=this,s=this.parser.constructs[e],u=i.attempt(s,d,f);return d;function d(y){return m(y)?u(y):f(y)}function f(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),p}function p(y){return m(y)?(i.exit("data"),u(y)):(i.consume(y),p)}function m(y){if(y===null)return!0;const x=s[y];let v=-1;if(x)for(;++v<x.length;){const C=x[v];if(!C.previous||C.previous.call(o,o.previous))return!0}return!1}}}function Wd(e){return r;function r(i,o){let s=-1,u;for(;++s<=i.length;)u===void 0?i[s]&&i[s][1].type==="data"&&(u=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==u+2&&(i[u][1].end=i[s-1][1].end,i.splice(u+2,s-u-2),s=u+2),u=void 0);return e?e(i,o):i}}function L8(e,r){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const o=e[i-1][1],s=r.sliceStream(o);let u=s.length,d=-1,f=0,p;for(;u--;){const m=s[u];if(typeof m=="string"){for(d=m.length;m.charCodeAt(d-1)===32;)f++,d--;if(d)break;d=-1}else if(m===-2)p=!0,f++;else if(m!==-1){u++;break}}if(r._contentTypeTextTrailing&&i===e.length&&(f=0),f){const m={type:i===e.length||p||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?d:o.start._bufferIndex+d,_index:o.start._index+u,line:o.end.line,column:o.end.column-f,offset:o.end.offset-f},end:{...o.end}};o.end={...m.start},o.start.offset===o.end.offset?Object.assign(o,m):(e.splice(i,0,["enter",m,r],["exit",m,r]),i+=2)}i++}return e}const N8={42:Kt,43:Kt,45:Kt,48:Kt,49:Kt,50:Kt,51:Kt,52:Kt,53:Kt,54:Kt,55:Kt,56:Kt,57:Kt,62:Ad},I8={91:zh},P8={[-2]:o1,[-1]:o1,32:o1},M8={35:$h,42:Yo,45:[I2,Yo],60:Uh,61:I2,95:Yo,96:L2,126:L2},T8={38:Od,92:Fd},z8={[-5]:s1,[-4]:s1,[-3]:s1,33:a8,38:Od,42:D1,60:[ch,Yh],91:c8,92:[Fh,Fd],93:ou,95:D1,96:_h},D8={null:[D1,b8]},R8={null:[42,95]},A8={null:[]},F8=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:R8,contentInitial:I8,disable:A8,document:N8,flow:M8,flowInitial:P8,insideSpan:D8,string:T8,text:z8},Symbol.toStringTag,{value:"Module"}));function O8(e,r,i){let o={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},u=[];let d=[],f=[];const p={attempt:ee(B),check:ee(T),consume:V,enter:b,exit:$,interrupt:ee(T,{interrupt:!0})},m={code:null,containerState:{},defineSkip:P,events:[],now:k,parser:e,previous:null,sliceSerialize:v,sliceStream:C,write:x};let y=r.tokenize.call(m,p);return r.resolveAll&&u.push(r),m;function x(L){return d=mn(d,L),R(),d[d.length-1]!==null?[]:(ie(r,0),m.events=us(u,m.events,m),m.events)}function v(L,Z){return B8(C(L),Z)}function C(L){return $8(d,L)}function k(){const{_bufferIndex:L,_index:Z,line:te,column:W,offset:O}=o;return{_bufferIndex:L,_index:Z,line:te,column:W,offset:O}}function P(L){s[L.line]=L.column,D()}function R(){let L;for(;o._index<d.length;){const Z=d[o._index];if(typeof Z=="string")for(L=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===L&&o._bufferIndex<Z.length;)j(Z.charCodeAt(o._bufferIndex));else j(Z)}}function j(L){y=y(L)}function V(L){Se(L)?(o.line++,o.column=1,o.offset+=L===-3?2:1,D()):L!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===d[o._index].length&&(o._bufferIndex=-1,o._index++)),m.previous=L}function b(L,Z){const te=Z||{};return te.type=L,te.start=k(),m.events.push(["enter",te,m]),f.push(te),te}function $(L){const Z=f.pop();return Z.end=k(),m.events.push(["exit",Z,m]),Z}function B(L,Z){ie(L,Z.from)}function T(L,Z){Z.restore()}function ee(L,Z){return te;function te(W,O,I){let J,z,ne,S;return Array.isArray(W)?K(W):"tokenize"in W?K([W]):A(W);function A(fe){return Ne;function Ne(Ee){const ze=Ee!==null&&fe[Ee],Ue=Ee!==null&&fe.null,Oe=[...Array.isArray(ze)?ze:ze?[ze]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return K(Oe)(Ee)}}function K(fe){return J=fe,z=0,fe.length===0?I:N(fe[z])}function N(fe){return Ne;function Ne(Ee){return S=Y(),ne=fe,fe.partial||(m.currentConstruct=fe),fe.name&&m.parser.constructs.disable.null.includes(fe.name)?ve():fe.tokenize.call(Z?Object.assign(Object.create(m),Z):m,p,ge,ve)(Ee)}}function ge(fe){return L(ne,S),O}function ve(fe){return S.restore(),++z<J.length?N(J[z]):I}}}function ie(L,Z){L.resolveAll&&!u.includes(L)&&u.push(L),L.resolve&&rn(m.events,Z,m.events.length-Z,L.resolve(m.events.slice(Z),m)),L.resolveTo&&(m.events=L.resolveTo(m.events,m))}function Y(){const L=k(),Z=m.previous,te=m.currentConstruct,W=m.events.length,O=Array.from(f);return{from:W,restore:I};function I(){o=L,m.previous=Z,m.currentConstruct=te,m.events.length=W,f=O,D()}}function D(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function $8(e,r){const i=r.start._index,o=r.start._bufferIndex,s=r.end._index,u=r.end._bufferIndex;let d;if(i===s)d=[e[i].slice(o,u)];else{if(d=e.slice(i,s),o>-1){const f=d[0];typeof f=="string"?d[0]=f.slice(o):d.shift()}u>0&&d.push(e[s].slice(0,u))}return d}function B8(e,r){let i=-1;const o=[];let s;for(;++i<e.length;){const u=e[i];let d;if(typeof u=="string")d=u;else switch(u){case-5:{d="\r";break}case-4:{d=`
48
+ `;break}case-3:{d=`\r
49
+ `;break}case-2:{d=r?" ":" ";break}case-1:{if(!r&&s)continue;d=" ";break}default:d=String.fromCharCode(u)}s=u===-2,o.push(d)}return o.join("")}function H8(e){const o={constructs:Dd([F8,...(e||{}).extensions||[]]),content:s(rh),defined:[],document:s(lh),flow:s(_8),lazy:{},string:s(E8),text:s(j8)};return o;function s(u){return d;function d(f){return O8(o,u,f)}}}function V8(e){for(;!$d(e););return e}const P2=/[\0\t\n\r]/g;function U8(){let e=1,r="",i=!0,o;return s;function s(u,d,f){const p=[];let m,y,x,v,C;for(u=r+(typeof u=="string"?u.toString():new TextDecoder(d||void 0).decode(u)),x=0,r="",i&&(u.charCodeAt(0)===65279&&x++,i=void 0);x<u.length;){if(P2.lastIndex=x,m=P2.exec(u),v=m&&m.index!==void 0?m.index:u.length,C=u.charCodeAt(v),!m){r=u.slice(x);break}if(C===10&&x===v&&o)p.push(-3),o=void 0;else switch(o&&(p.push(-5),o=void 0),x<v&&(p.push(u.slice(x,v)),e+=v-x),C){case 0:{p.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,p.push(-2);e++<y;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:o=!0,e=1}x=v+1}return f&&(o&&p.push(-5),r&&p.push(r),p.push(null)),p}}const W8=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function q8(e){return e.replace(W8,Z8)}function Z8(e,r,i){if(r)return r;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),u=s===120||s===88;return Rd(i.slice(u?2:1),u?16:10)}return lu(i)||e}const qd={}.hasOwnProperty;function Q8(e,r,i){return r&&typeof r=="object"&&(i=r,r=void 0),G8(i)(V8(H8(i).document().write(U8()(e,r,!0))))}function G8(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(re),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:u(At),blockQuote:u(Ue),characterEscape:Y,characterReference:Y,codeFenced:u(Oe),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:u(Oe,d),codeText:u(rt,d),codeTextData:Y,data:Y,codeFlowValue:Y,definition:u(Et),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:u(Rt),hardBreakEscape:u(jt),hardBreakTrailing:u(jt),htmlFlow:u(Ft,d),htmlFlowData:Y,htmlText:u(Ft,d),htmlTextData:Y,image:u(gn),label:d,link:u(re),listItem:u(Q),listItemValue:v,listOrdered:u(be,x),listUnordered:u(be),paragraph:u(xe),reference:N,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:u(At),strong:u(Me),thematicBreak:u(He)},exit:{atxHeading:p(),atxHeadingSequence:B,autolink:p(),autolinkEmail:ze,autolinkProtocol:Ee,blockQuote:p(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:fe,characterReference:Ne,codeFenced:p(R),codeFencedFence:P,codeFencedFenceInfo:C,codeFencedFenceMeta:k,codeFlowValue:D,codeIndented:p(j),codeText:p(O),codeTextData:D,data:D,definition:p(),definitionDestinationString:$,definitionLabelString:V,definitionTitleString:b,emphasis:p(),hardBreakEscape:p(Z),hardBreakTrailing:p(Z),htmlFlow:p(te),htmlFlowData:D,htmlText:p(W),htmlTextData:D,image:p(J),label:ne,labelText:z,lineEnding:L,link:p(I),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ge,resourceDestinationString:S,resourceTitleString:A,resource:K,setextHeading:p(ie),setextHeadingLineSequence:ee,setextHeadingText:T,strong:p(),thematicBreak:p()}};Zd(r,(e||{}).mdastExtensions||[]);const i={};return o;function o(X){let ae={type:"root",children:[]};const we={stack:[ae],tokenStack:[],config:r,enter:f,exit:m,buffer:d,resume:y,data:i},je=[];let Re=-1;for(;++Re<X.length;)if(X[Re][1].type==="listOrdered"||X[Re][1].type==="listUnordered")if(X[Re][0]==="enter")je.push(Re);else{const ft=je.pop();Re=s(X,ft,Re)}for(Re=-1;++Re<X.length;){const ft=r[X[Re][0]];qd.call(ft,X[Re][1].type)&&ft[X[Re][1].type].call(Object.assign({sliceSerialize:X[Re][2].sliceSerialize},we),X[Re][1])}if(we.tokenStack.length>0){const ft=we.tokenStack[we.tokenStack.length-1];(ft[1]||M2).call(we,void 0,ft[0])}for(ae.position={start:gr(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:gr(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<r.transforms.length;)ae=r.transforms[Re](ae)||ae;return ae}function s(X,ae,we){let je=ae-1,Re=-1,ft=!1,ln,de,Te,Ge;for(;++je<=we;){const Qe=X[je];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?Re++:Re--,Ge=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(ln&&!Ge&&!Re&&!Te&&(Te=je),Ge=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ge=void 0}if(!Re&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||Re===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(ln){let Ot=je;for(de=void 0;Ot--;){const Xe=X[Ot];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;de&&(X[de][1].type="lineEndingBlank",ft=!0),Xe[1].type="lineEnding",de=Ot}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}Te&&(!de||Te<de)&&(ln._spread=!0),ln.end=Object.assign({},de?X[de][1].start:Qe[1].end),X.splice(de||je,0,["exit",ln,Qe[2]]),je++,we++}if(Qe[1].type==="listItemPrefix"){const Ot={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start),end:void 0};ln=Ot,X.splice(je,0,["enter",Ot,Qe[2]]),je++,we++,Te=void 0,Ge=!0}}}return X[ae][1]._spread=ft,we}function u(X,ae){return we;function we(je){f.call(this,X(je),je),ae&&ae.call(this,je)}}function d(){this.stack.push({type:"fragment",children:[]})}function f(X,ae,we){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([ae,we||void 0]),X.position={start:gr(ae.start),end:void 0}}function p(X){return ae;function ae(we){X&&X.call(this,we),m.call(this,we)}}function m(X,ae){const we=this.stack.pop(),je=this.tokenStack.pop();if(je)je[0].type!==X.type&&(ae?ae.call(this,X,je[0]):(je[1]||M2).call(this,X,je[0]));else throw new Error("Cannot close `"+X.type+"` ("+xl({start:X.start,end:X.end})+"): it’s not open");we.position.end=gr(X.end)}function y(){return iu(this.stack.pop())}function x(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function C(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=X}function k(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=X}function P(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function j(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X.replace(/(\r?\n|\r)$/g,"")}function V(X){const ae=this.resume(),we=this.stack[this.stack.length-1];we.label=ae,we.identifier=En(this.sliceSerialize(X)).toLowerCase()}function b(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.title=X}function $(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.url=X}function B(X){const ae=this.stack[this.stack.length-1];if(!ae.depth){const we=this.sliceSerialize(X).length;ae.depth=we}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function ee(X){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function ie(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(X){const we=this.stack[this.stack.length-1].children;let je=we[we.length-1];(!je||je.type!=="text")&&(je=st(),je.position={start:gr(X.start),end:void 0},we.push(je)),this.stack.push(je)}function D(X){const ae=this.stack.pop();ae.value+=this.sliceSerialize(X),ae.position.end=gr(X.end)}function L(X){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const we=ae.children[ae.children.length-1];we.position.end=gr(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ae.type)&&(Y.call(this,X),D.call(this,X))}function Z(){this.data.atHardBreak=!0}function te(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X}function W(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X}function O(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X}function I(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ae,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function J(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ae,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function z(X){const ae=this.sliceSerialize(X),we=this.stack[this.stack.length-2];we.label=q8(ae),we.identifier=En(ae).toLowerCase()}function ne(){const X=this.stack[this.stack.length-1],ae=this.resume(),we=this.stack[this.stack.length-1];if(this.data.inReference=!0,we.type==="link"){const je=X.children;we.children=je}else we.alt=ae}function S(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.url=X}function A(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.title=X}function K(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function ge(X){const ae=this.resume(),we=this.stack[this.stack.length-1];we.label=ae,we.identifier=En(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function ve(X){this.data.characterReferenceType=X.type}function fe(X){const ae=this.sliceSerialize(X),we=this.data.characterReferenceType;let je;we?(je=Rd(ae,we==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):je=lu(ae);const Re=this.stack[this.stack.length-1];Re.value+=je}function Ne(X){const ae=this.stack.pop();ae.position.end=gr(X.end)}function Ee(X){D.call(this,X);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(X)}function ze(X){D.call(this,X);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(X)}function Ue(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function rt(){return{type:"inlineCode",value:""}}function Et(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Rt(){return{type:"emphasis",children:[]}}function At(){return{type:"heading",depth:0,children:[]}}function jt(){return{type:"break"}}function Ft(){return{type:"html",value:""}}function gn(){return{type:"image",title:null,url:"",alt:null}}function re(){return{type:"link",title:null,url:"",children:[]}}function be(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Q(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function xe(){return{type:"paragraph",children:[]}}function Me(){return{type:"strong",children:[]}}function st(){return{type:"text",value:""}}function He(){return{type:"thematicBreak"}}}function gr(e){return{line:e.line,column:e.column,offset:e.offset}}function Zd(e,r){let i=-1;for(;++i<r.length;){const o=r[i];Array.isArray(o)?Zd(e,o):K8(e,o)}}function K8(e,r){let i;for(i in r)if(qd.call(r,i))switch(i){case"canContainEols":{const o=r[i];o&&e[i].push(...o);break}case"transforms":{const o=r[i];o&&e[i].push(...o);break}case"enter":case"exit":{const o=r[i];o&&Object.assign(e[i],o);break}}}function M2(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+xl({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+xl({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+xl({start:r.start,end:r.end})+") is still open")}function Y8(e){const r=this;r.parser=i;function i(o){return Q8(o,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function X8(e,r){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,i),e.applyData(r,i)}function J8(e,r){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,i),[e.applyData(r,i),{type:"text",value:`
50
+ `}]}function e7(e,r){const i=r.value?r.value+`
51
+ `:"",o={},s=r.lang?r.lang.split(/\s+/):[];s.length>0&&(o.className=["language-"+s[0]]);let u={type:"element",tagName:"code",properties:o,children:[{type:"text",value:i}]};return r.meta&&(u.data={meta:r.meta}),e.patch(r,u),u=e.applyData(r,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(r,u),u}function t7(e,r){const i={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function n7(e,r){const i={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function r7(e,r){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(r.identifier).toUpperCase(),s=_i(o.toLowerCase()),u=e.footnoteOrder.indexOf(o);let d,f=e.footnoteCounts.get(o);f===void 0?(f=0,e.footnoteOrder.push(o),d=e.footnoteOrder.length):d=u+1,f+=1,e.footnoteCounts.set(o,f);const p={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(d)}]};e.patch(r,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(r,m),e.applyData(r,m)}function i7(e,r){const i={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function l7(e,r){if(e.options.allowDangerousHtml){const i={type:"raw",value:r.value};return e.patch(r,i),e.applyData(r,i)}}function Qd(e,r){const i=r.referenceType;let o="]";if(i==="collapsed"?o+="[]":i==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const s=e.all(r),u=s[0];u&&u.type==="text"?u.value="["+u.value:s.unshift({type:"text",value:"["});const d=s[s.length-1];return d&&d.type==="text"?d.value+=o:s.push({type:"text",value:o}),s}function o7(e,r){const i=String(r.identifier).toUpperCase(),o=e.definitionById.get(i);if(!o)return Qd(e,r);const s={src:_i(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const u={type:"element",tagName:"img",properties:s,children:[]};return e.patch(r,u),e.applyData(r,u)}function s7(e,r){const i={src:_i(r.url)};r.alt!==null&&r.alt!==void 0&&(i.alt=r.alt),r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(r,o),e.applyData(r,o)}function a7(e,r){const i={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,i);const o={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(r,o),e.applyData(r,o)}function u7(e,r){const i=String(r.identifier).toUpperCase(),o=e.definitionById.get(i);if(!o)return Qd(e,r);const s={href:_i(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const u={type:"element",tagName:"a",properties:s,children:e.all(r)};return e.patch(r,u),e.applyData(r,u)}function c7(e,r){const i={href:_i(r.url)};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function d7(e,r,i){const o=e.all(r),s=i?f7(i):Gd(r),u={},d=[];if(typeof r.checked=="boolean"){const y=o[0];let x;y&&y.type==="element"&&y.tagName==="p"?x=y:(x={type:"element",tagName:"p",properties:{},children:[]},o.unshift(x)),x.children.length>0&&x.children.unshift({type:"text",value:" "}),x.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<o.length;){const y=o[f];(s||f!==0||y.type!=="element"||y.tagName!=="p")&&d.push({type:"text",value:`
52
+ `}),y.type==="element"&&y.tagName==="p"&&!s?d.push(...y.children):d.push(y)}const p=o[o.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&d.push({type:"text",value:`
53
+ `});const m={type:"element",tagName:"li",properties:u,children:d};return e.patch(r,m),e.applyData(r,m)}function f7(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const i=e.children;let o=-1;for(;!r&&++o<i.length;)r=Gd(i[o])}return r}function Gd(e){const r=e.spread;return r??e.children.length>1}function p7(e,r){const i={},o=e.all(r);let s=-1;for(typeof r.start=="number"&&r.start!==1&&(i.start=r.start);++s<o.length;){const d=o[s];if(d.type==="element"&&d.tagName==="li"&&d.properties&&Array.isArray(d.properties.className)&&d.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const u={type:"element",tagName:r.ordered?"ol":"ul",properties:i,children:e.wrap(o,!0)};return e.patch(r,u),e.applyData(r,u)}function h7(e,r){const i={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function m7(e,r){const i={type:"root",children:e.wrap(e.all(r))};return e.patch(r,i),e.applyData(r,i)}function g7(e,r){const i={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function x7(e,r){const i=e.all(r),o=i.shift(),s=[];if(o){const d={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(r.children[0],d),s.push(d)}if(i.length>0){const d={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},f=eu(r.children[1]),p=Ld(r.children[r.children.length-1]);f&&p&&(d.position={start:f,end:p}),s.push(d)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(r,u),e.applyData(r,u)}function y7(e,r,i){const o=i?i.children:void 0,u=(o?o.indexOf(r):1)===0?"th":"td",d=i&&i.type==="table"?i.align:void 0,f=d?d.length:r.children.length;let p=-1;const m=[];for(;++p<f;){const x=r.children[p],v={},C=d?d[p]:void 0;C&&(v.align=C);let k={type:"element",tagName:u,properties:v,children:[]};x&&(k.children=e.all(x),e.patch(x,k),k=e.applyData(x,k)),m.push(k)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(r,y),e.applyData(r,y)}function v7(e,r){const i={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}const T2=9,z2=32;function C7(e){const r=String(e),i=/\r?\n|\r/g;let o=i.exec(r),s=0;const u=[];for(;o;)u.push(D2(r.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=i.exec(r);return u.push(D2(r.slice(s),s>0,!1)),u.join("")}function D2(e,r,i){let o=0,s=e.length;if(r){let u=e.codePointAt(o);for(;u===T2||u===z2;)o++,u=e.codePointAt(o)}if(i){let u=e.codePointAt(s-1);for(;u===T2||u===z2;)s--,u=e.codePointAt(s-1)}return s>o?e.slice(o,s):""}function w7(e,r){const i={type:"text",value:C7(String(r.value))};return e.patch(r,i),e.applyData(r,i)}function k7(e,r){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,i),e.applyData(r,i)}const _7={blockquote:X8,break:J8,code:e7,delete:t7,emphasis:n7,footnoteReference:r7,heading:i7,html:l7,imageReference:o7,image:s7,inlineCode:a7,linkReference:u7,link:c7,listItem:d7,list:p7,paragraph:h7,root:m7,strong:g7,table:x7,tableCell:v7,tableRow:y7,text:w7,thematicBreak:k7,toml:$o,yaml:$o,definition:$o,footnoteDefinition:$o};function $o(){}const Kd=-1,cs=0,vl=1,ns=2,su=3,au=4,uu=5,cu=6,Yd=7,Xd=8,{defineProperty:S7}=Object,Jd=typeof self=="object"?self:globalThis,R2=(e,r)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Jd[e](r)},b7=(e,r)=>{const i=(s,u)=>(e.set(u,s),s),o=s=>{if(e.has(s))return e.get(s);const[u,d]=r[s];switch(u){case cs:case Kd:return i(d,s);case vl:{const f=i([],s);for(const p of d)f.push(o(p));return f}case ns:{const f=i({},s);for(const[p,m]of d){const y=o(p),x=o(m);y==="__proto__"?S7(f,y,{value:x,configurable:!0,enumerable:!0,writable:!0}):f[y]=x}return f}case su:return i(new Date(d),s);case au:{const{source:f,flags:p}=d;return i(new RegExp(f,p),s)}case uu:{const f=i(new Map,s);for(const[p,m]of d)f.set(o(p),o(m));return f}case cu:{const f=i(new Set,s);for(const p of d)f.add(o(p));return f}case Yd:{const{name:f,message:p}=d;return i(typeof Jd[f]=="function"?R2(f,p):new Error(p),s)}case Xd:return i(BigInt(d),s);case"BigInt":return i(Object(BigInt(d)),s);case"ArrayBuffer":return i(new Uint8Array(d).buffer,d);case"DataView":{const{buffer:f}=new Uint8Array(d);return i(new DataView(f),d)}case"-0":return-0}return i(R2(u,d),s)};return o},A2=e=>b7(new Map,e)(0),Br="",{toString:E7}={},{keys:j7,is:L7}=Object,fl=e=>{const r=typeof e;if(r!=="object"||!e)return[cs,r];const i=E7.call(e).slice(8,-1);switch(i){case"Array":return[vl,Br];case"Object":return[ns,Br];case"Date":return[su,Br];case"RegExp":return[au,Br];case"Map":return[uu,Br];case"Set":return[cu,Br];case"DataView":return[vl,i]}return i.includes("Array")?[vl,i]:e instanceof Error?[Yd,e.name||"Error"]:[ns,i]},Bo=([e,r])=>e===cs&&(r==="function"||r==="symbol"),N7=(e,r,i,o)=>{const s=(d,f)=>{const p=o.push(d)-1;return i.set(f,p),p},u=d=>{if(i.has(d))return i.get(d);let[f,p]=fl(d);switch(f){case cs:{let y=d;switch(p){case"bigint":f=Xd,y=d.toString();break;case"number":if(!d&&L7(d,-0))return o.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return s([Kd],d)}return s([f,y],d)}case vl:{if(p){let v=d;return p==="DataView"?v=new Uint8Array(d.buffer):p==="ArrayBuffer"&&(v=new Uint8Array(d)),s([p,[...v]],d)}const y=[],x=s([f,y],d);for(const v of d)y.push(u(v));return x}case ns:{if(p)switch(p){case"BigInt":return s([p,d.toString()],d);case"Boolean":case"Number":case"String":return s([p,d.valueOf()],d)}if(r&&"toJSON"in d)return u(d.toJSON());const y=[],x=s([f,y],d);for(const v of j7(d))(e||!Bo(fl(d[v])))&&y.push([u(v),u(d[v])]);return x}case su:return s([f,isNaN(d.getTime())?Br:d.toISOString()],d);case au:{const{source:y,flags:x}=d;return s([f,{source:y,flags:x}],d)}case uu:{const y=[],x=s([f,y],d);for(const[v,C]of d)(e||!(Bo(fl(v))||Bo(fl(C))))&&y.push([u(v),u(C)]);return x}case cu:{const y=[],x=s([f,y],d);for(const v of d)(e||!Bo(fl(v)))&&y.push(u(v));return x}}const{message:m}=d;return s([f,{name:p,message:m}],d)};return u},F2=(e,{json:r,lossy:i}={})=>{const o=[];return N7(!(r||i),!!r,new Map,o)(e),o},rs=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?A2(F2(e,r)):structuredClone(e):(e,r)=>A2(F2(e,r));function I7(e,r){const i=[{type:"text",value:"↩"}];return r>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),i}function P7(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function M7(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||I7,o=e.options.footnoteBackLabel||P7,s=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",d=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let p=-1;for(;++p<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[p]);if(!m)continue;const y=e.all(m),x=String(m.identifier).toUpperCase(),v=_i(x.toLowerCase());let C=0;const k=[],P=e.footnoteCounts.get(x);for(;P!==void 0&&++C<=P;){k.length>0&&k.push({type:"text",value:" "});let V=typeof i=="string"?i:i(p,C);typeof V=="string"&&(V={type:"text",value:V}),k.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+v+(C>1?"-"+C:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(p,C),className:["data-footnote-backref"]},children:Array.isArray(V)?V:[V]})}const R=y[y.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const V=R.children[R.children.length-1];V&&V.type==="text"?V.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...k)}else y.push(...k);const j={type:"element",tagName:"li",properties:{id:r+"fn-"+v},children:e.wrap(y,!0)};e.patch(m,j),f.push(j)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...rs(d),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
54
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
55
+ `}]}}const ds=(function(e){if(e==null)return R7;if(typeof e=="function")return fs(e);if(typeof e=="object")return Array.isArray(e)?T7(e):z7(e);if(typeof e=="string")return D7(e);throw new Error("Expected function, string, or object as test")});function T7(e){const r=[];let i=-1;for(;++i<e.length;)r[i]=ds(e[i]);return fs(o);function o(...s){let u=-1;for(;++u<r.length;)if(r[u].apply(this,s))return!0;return!1}}function z7(e){const r=e;return fs(i);function i(o){const s=o;let u;for(u in e)if(s[u]!==r[u])return!1;return!0}}function D7(e){return fs(r);function r(i){return i&&i.type===e}}function fs(e){return r;function r(i,o,s){return!!(A7(i)&&e.call(this,i,typeof o=="number"?o:void 0,s||void 0))}}function R7(){return!0}function A7(e){return e!==null&&typeof e=="object"&&"type"in e}const e3=[],F7=!0,R1=!1,O7="skip";function t3(e,r,i,o){let s;typeof r=="function"&&typeof i!="function"?(o=i,i=r):s=r;const u=ds(s),d=o?-1:1;f(e,void 0,[])();function f(p,m,y){const x=p&&typeof p=="object"?p:{};if(typeof x.type=="string"){const C=typeof x.tagName=="string"?x.tagName:typeof x.name=="string"?x.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(p.type+(C?"<"+C+">":""))+")"})}return v;function v(){let C=e3,k,P,R;if((!r||u(p,m,y[y.length-1]||void 0))&&(C=$7(i(p,y)),C[0]===R1))return C;if("children"in p&&p.children){const j=p;if(j.children&&C[0]!==O7)for(P=(o?j.children.length:-1)+d,R=y.concat(j);P>-1&&P<j.children.length;){const V=j.children[P];if(k=f(V,P,R)(),k[0]===R1)return k;P=typeof k[1]=="number"?k[1]:P+d}}return C}}}function $7(e){return Array.isArray(e)?e:typeof e=="number"?[F7,e]:e==null?e3:[e]}function du(e,r,i,o){let s,u,d;typeof r=="function"&&typeof i!="function"?(u=void 0,d=r,s=i):(u=r,d=i,s=o),t3(e,u,f,s);function f(p,m){const y=m[m.length-1],x=y?y.children.indexOf(p):void 0;return d(p,x,y)}}const A1={}.hasOwnProperty,B7={};function H7(e,r){const i=r||B7,o=new Map,s=new Map,u=new Map,d={..._7,...i.handlers},f={all:m,applyData:U7,definitionById:o,footnoteById:s,footnoteCounts:u,footnoteOrder:[],handlers:d,one:p,options:i,patch:V7,wrap:q7};return du(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const x=y.type==="definition"?o:s,v=String(y.identifier).toUpperCase();x.has(v)||x.set(v,y)}}),f;function p(y,x){const v=y.type,C=f.handlers[v];if(A1.call(f.handlers,v)&&C)return C(f,y,x);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in y){const{children:P,...R}=y,j=rs(R);return j.children=f.all(y),j}return rs(y)}return(f.options.unknownHandler||W7)(f,y,x)}function m(y){const x=[];if("children"in y){const v=y.children;let C=-1;for(;++C<v.length;){const k=f.one(v[C],y);if(k){if(C&&v[C-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=O2(k.value)),!Array.isArray(k)&&k.type==="element")){const P=k.children[0];P&&P.type==="text"&&(P.value=O2(P.value))}Array.isArray(k)?x.push(...k):x.push(k)}}}return x}}function V7(e,r){e.position&&(r.position=Np(e))}function U7(e,r){let i=r;if(e&&e.data){const o=e.data.hName,s=e.data.hChildren,u=e.data.hProperties;if(typeof o=="string")if(i.type==="element")i.tagName=o;else{const d="children"in i?i.children:[i];i={type:"element",tagName:o,properties:{},children:d}}i.type==="element"&&u&&Object.assign(i.properties,rs(u)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function W7(e,r){const i=r.data||{},o="value"in r&&!(A1.call(i,"hProperties")||A1.call(i,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function q7(e,r){const i=[];let o=-1;for(r&&i.push({type:"text",value:`
56
+ `});++o<e.length;)o&&i.push({type:"text",value:`
57
+ `}),i.push(e[o]);return r&&e.length>0&&i.push({type:"text",value:`
58
+ `}),i}function O2(e){let r=0,i=e.charCodeAt(r);for(;i===9||i===32;)r++,i=e.charCodeAt(r);return e.slice(r)}function $2(e,r){const i=H7(e,r),o=i.one(e,void 0),s=M7(i),u=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&u.children.push({type:"text",value:`
59
+ `},s),u}function Z7(e,r){return e&&"run"in e?async function(i,o){const s=$2(i,{file:o,...r});await e.run(s,o)}:function(i,o){return $2(i,{file:o,...e||r})}}function B2(e){if(e)throw e}var a1,H2;function Q7(){if(H2)return a1;H2=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):r.call(m)==="[object Array]"},u=function(m){if(!m||r.call(m)!=="[object Object]")return!1;var y=e.call(m,"constructor"),x=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!x)return!1;var v;for(v in m);return typeof v>"u"||e.call(m,v)},d=function(m,y){i&&y.name==="__proto__"?i(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},f=function(m,y){if(y==="__proto__")if(e.call(m,y)){if(o)return o(m,y).value}else return;return m[y]};return a1=function p(){var m,y,x,v,C,k,P=arguments[0],R=1,j=arguments.length,V=!1;for(typeof P=="boolean"&&(V=P,P=arguments[1]||{},R=2),(P==null||typeof P!="object"&&typeof P!="function")&&(P={});R<j;++R)if(m=arguments[R],m!=null)for(y in m)x=f(P,y),v=f(m,y),P!==v&&(V&&v&&(u(v)||(C=s(v)))?(C?(C=!1,k=x&&s(x)?x:[]):k=x&&u(x)?x:{},d(P,{name:y,newValue:p(V,k,v)})):typeof v<"u"&&d(P,{name:y,newValue:v}));return P},a1}var G7=Q7();const u1=q1(G7);function F1(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function K7(){const e=[],r={run:i,use:o};return r;function i(...s){let u=-1;const d=s.pop();if(typeof d!="function")throw new TypeError("Expected function as last argument, not "+d);f(null,...s);function f(p,...m){const y=e[++u];let x=-1;if(p){d(p);return}for(;++x<s.length;)(m[x]===null||m[x]===void 0)&&(m[x]=s[x]);s=m,y?Y7(y,f)(...m):d(null,...m)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),r}}function Y7(e,r){let i;return o;function o(...d){const f=e.length>d.length;let p;f&&d.push(s);try{p=e.apply(this,d)}catch(m){const y=m;if(f&&i)throw y;return s(y)}f||(p&&p.then&&typeof p.then=="function"?p.then(u,s):p instanceof Error?s(p):u(p))}function s(d,...f){i||(i=!0,r(d,...f))}function u(d){s(null,d)}}const Dn={basename:X7,dirname:J7,extname:e9,join:t9,sep:"/"};function X7(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Ll(e);let i=0,o=-1,s=e.length,u;if(r===void 0||r.length===0||r.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(u){i=s+1;break}}else o<0&&(u=!0,o=s+1);return o<0?"":e.slice(i,o)}if(r===e)return"";let d=-1,f=r.length-1;for(;s--;)if(e.codePointAt(s)===47){if(u){i=s+1;break}}else d<0&&(u=!0,d=s+1),f>-1&&(e.codePointAt(s)===r.codePointAt(f--)?f<0&&(o=s):(f=-1,o=d));return i===o?o=d:o<0&&(o=e.length),e.slice(i,o)}function J7(e){if(Ll(e),e.length===0)return".";let r=-1,i=e.length,o;for(;--i;)if(e.codePointAt(i)===47){if(o){r=i;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function e9(e){Ll(e);let r=e.length,i=-1,o=0,s=-1,u=0,d;for(;r--;){const f=e.codePointAt(r);if(f===47){if(d){o=r+1;break}continue}i<0&&(d=!0,i=r+1),f===46?s<0?s=r:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||i<0||u===0||u===1&&s===i-1&&s===o+1?"":e.slice(s,i)}function t9(...e){let r=-1,i;for(;++r<e.length;)Ll(e[r]),e[r]&&(i=i===void 0?e[r]:i+"/"+e[r]);return i===void 0?".":n9(i)}function n9(e){Ll(e);const r=e.codePointAt(0)===47;let i=r9(e,!r);return i.length===0&&!r&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),r?"/"+i:i}function r9(e,r){let i="",o=0,s=-1,u=0,d=-1,f,p;for(;++d<=e.length;){if(d<e.length)f=e.codePointAt(d);else{if(f===47)break;f=47}if(f===47){if(!(s===d-1||u===1))if(s!==d-1&&u===2){if(i.length<2||o!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",o=0):(i=i.slice(0,p),o=i.length-1-i.lastIndexOf("/")),s=d,u=0;continue}}else if(i.length>0){i="",o=0,s=d,u=0;continue}}r&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,d):i=e.slice(s+1,d),o=d-s-1;s=d,u=0}else f===46&&u>-1?u++:u=-1}return i}function Ll(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const i9={cwd:l9};function l9(){return"/"}function O1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function o9(e){if(typeof e=="string")e=new URL(e);else if(!O1(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return s9(e)}function s9(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=e.pathname;let i=-1;for(;++i<r.length;)if(r.codePointAt(i)===37&&r.codePointAt(i+1)===50){const o=r.codePointAt(i+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}const c1=["history","path","basename","stem","extname","dirname"];class n3{constructor(r){let i;r?O1(r)?i={path:r}:typeof r=="string"||a9(r)?i={value:r}:i=r:i={},this.cwd="cwd"in i?"":i9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<c1.length;){const u=c1[o];u in i&&i[u]!==void 0&&i[u]!==null&&(this[u]=u==="history"?[...i[u]]:i[u])}let s;for(s in i)c1.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?Dn.basename(this.path):void 0}set basename(r){f1(r,"basename"),d1(r,"basename"),this.path=Dn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Dn.dirname(this.path):void 0}set dirname(r){V2(this.basename,"dirname"),this.path=Dn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Dn.extname(this.path):void 0}set extname(r){if(d1(r,"extname"),V2(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Dn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){O1(r)&&(r=o9(r)),f1(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Dn.basename(this.path,this.extname):void 0}set stem(r){f1(r,"stem"),d1(r,"stem"),this.path=Dn.join(this.dirname||"",r+(this.extname||""))}fail(r,i,o){const s=this.message(r,i,o);throw s.fatal=!0,s}info(r,i,o){const s=this.message(r,i,o);return s.fatal=void 0,s}message(r,i,o){const s=new Dt(r,i,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function d1(e,r){if(e&&e.includes(Dn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Dn.sep+"`")}function f1(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function V2(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function a9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const u9=(function(e){const o=this.constructor.prototype,s=o[e],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,o),u}),c9={}.hasOwnProperty;class fu extends u9{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=K7()}copy(){const r=new fu;let i=-1;for(;++i<this.attachers.length;){const o=this.attachers[i];r.use(...o)}return r.data(u1(!0,{},this.namespace)),r}data(r,i){return typeof r=="string"?arguments.length===2?(m1("data",this.frozen),this.namespace[r]=i,this):c9.call(this.namespace,r)&&this.namespace[r]||void 0:r?(m1("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=i.call(r,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const i=Ho(r),o=this.parser||this.Parser;return p1("parse",o),o(String(i),i)}process(r,i){const o=this;return this.freeze(),p1("process",this.parser||this.Parser),h1("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(u,d){const f=Ho(r),p=o.parse(f);o.run(p,f,function(y,x,v){if(y||!x||!v)return m(y);const C=x,k=o.stringify(C,v);p9(k)?v.value=k:v.result=k,m(y,v)});function m(y,x){y||!x?d(y):u?u(x):i(void 0,x)}}}processSync(r){let i=!1,o;return this.freeze(),p1("processSync",this.parser||this.Parser),h1("processSync",this.compiler||this.Compiler),this.process(r,s),W2("processSync","process",i),o;function s(u,d){i=!0,B2(u),o=d}}run(r,i,o){U2(r),this.freeze();const s=this.transformers;return!o&&typeof i=="function"&&(o=i,i=void 0),o?u(void 0,o):new Promise(u);function u(d,f){const p=Ho(i);s.run(r,p,m);function m(y,x,v){const C=x||r;y?f(y):d?d(C):o(void 0,C,v)}}}runSync(r,i){let o=!1,s;return this.run(r,i,u),W2("runSync","run",o),s;function u(d,f){B2(d),s=f,o=!0}}stringify(r,i){this.freeze();const o=Ho(i),s=this.compiler||this.Compiler;return h1("stringify",s),U2(r),s(r,o)}use(r,...i){const o=this.attachers,s=this.namespace;if(m1("use",this.frozen),r!=null)if(typeof r=="function")p(r,i);else if(typeof r=="object")Array.isArray(r)?f(r):d(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function u(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...x]=m;p(y,x)}else d(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function d(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(m.plugins),m.settings&&(s.settings=u1(!0,s.settings,m.settings))}function f(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const x=m[y];u(x)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,y){let x=-1,v=-1;for(;++x<o.length;)if(o[x][0]===m){v=x;break}if(v===-1)o.push([m,...y]);else if(y.length>0){let[C,...k]=y;const P=o[v][1];F1(P)&&F1(C)&&(C=u1(!0,P,C)),o[v]=[m,C,...k]}}}}const d9=new fu().freeze();function p1(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function h1(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function m1(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function U2(e){if(!F1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function W2(e,r,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Ho(e){return f9(e)?e:new n3(e)}function f9(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function p9(e){return typeof e=="string"||h9(e)}function h9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const m9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",q2=[],Z2={allowDangerousHtml:!0},g9=/^(https?|ircs?|mailto|xmpp)$/i,x9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function y9(e){const r=v9(e),i=C9(e);return w9(r.runSync(r.parse(i),i),e)}function v9(e){const r=e.rehypePlugins||q2,i=e.remarkPlugins||q2,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Z2}:Z2;return d9().use(Y8).use(i).use(Z7,o).use(r)}function C9(e){const r=e.children||"",i=new n3;return typeof r=="string"&&(i.value=r),i}function w9(e,r){const i=r.allowedElements,o=r.allowElement,s=r.components,u=r.disallowedElements,d=r.skipHtml,f=r.unwrapDisallowed,p=r.urlTransform||k9;for(const y of x9)Object.hasOwn(r,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+m9+y.id,void 0);return du(e,m),zp(e,{Fragment:c.Fragment,components:s,ignoreInvalidStyle:!0,jsx:c.jsx,jsxs:c.jsxs,passKeys:!0,passNode:!0});function m(y,x,v){if(y.type==="raw"&&v&&typeof x=="number")return d?v.children.splice(x,1):v.children[x]={type:"text",value:y.value},x;if(y.type==="element"){let C;for(C in l1)if(Object.hasOwn(l1,C)&&Object.hasOwn(y.properties,C)){const k=y.properties[C],P=l1[C];(P===null||P.includes(y.tagName))&&(y.properties[C]=p(String(k||""),C,y))}}if(y.type==="element"){let C=i?!i.includes(y.tagName):u?u.includes(y.tagName):!1;if(!C&&o&&typeof x=="number"&&(C=!o(y,x,v)),C&&v&&typeof x=="number")return f&&y.children?v.children.splice(x,1,...y.children):v.children.splice(x,1),x}}}function k9(e){const r=e.indexOf(":"),i=e.indexOf("?"),o=e.indexOf("#"),s=e.indexOf("/");return r===-1||s!==-1&&r>s||i!==-1&&r>i||o!==-1&&r>o||g9.test(e.slice(0,r))?e:""}function Q2(e,r){const i=String(e);if(typeof r!="string")throw new TypeError("Expected character");let o=0,s=i.indexOf(r);for(;s!==-1;)o++,s=i.indexOf(r,s+r.length);return o}function _9(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function S9(e,r,i){const s=ds((i||{}).ignore||[]),u=b9(r);let d=-1;for(;++d<u.length;)t3(e,"text",f);function f(m,y){let x=-1,v;for(;++x<y.length;){const C=y[x],k=v?v.children:void 0;if(s(C,k?k.indexOf(C):void 0,v))return;v=C}if(v)return p(m,y)}function p(m,y){const x=y[y.length-1],v=u[d][0],C=u[d][1];let k=0;const R=x.children.indexOf(m);let j=!1,V=[];v.lastIndex=0;let b=v.exec(m.value);for(;b;){const $=b.index,B={index:b.index,input:b.input,stack:[...y,m]};let T=C(...b,B);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?v.lastIndex=$+1:(k!==$&&V.push({type:"text",value:m.value.slice(k,$)}),Array.isArray(T)?V.push(...T):T&&V.push(T),k=$+b[0].length,j=!0),!v.global)break;b=v.exec(m.value)}return j?(k<m.value.length&&V.push({type:"text",value:m.value.slice(k)}),x.children.splice(R,1,...V)):V=[m],R+V.length}}function b9(e){const r=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<i.length;){const s=i[o];r.push([E9(s[0]),j9(s[1])])}return r}function E9(e){return typeof e=="string"?new RegExp(_9(e),"g"):e}function j9(e){return typeof e=="function"?e:function(){return e}}const g1="phrasing",x1=["autolink","link","image","label"];function L9(){return{transforms:[D9],enter:{literalAutolink:I9,literalAutolinkEmail:y1,literalAutolinkHttp:y1,literalAutolinkWww:y1},exit:{literalAutolink:z9,literalAutolinkEmail:T9,literalAutolinkHttp:P9,literalAutolinkWww:M9}}}function N9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:g1,notInConstruct:x1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:g1,notInConstruct:x1},{character:":",before:"[ps]",after:"\\/",inConstruct:g1,notInConstruct:x1}]}}function I9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function y1(e){this.config.enter.autolinkProtocol.call(this,e)}function P9(e){this.config.exit.autolinkProtocol.call(this,e)}function M9(e){this.config.exit.data.call(this,e);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(e)}function T9(e){this.config.exit.autolinkEmail.call(this,e)}function z9(e){this.exit(e)}function D9(e){S9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,R9],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),A9]],{ignore:["link","linkReference"]})}function R9(e,r,i,o,s){let u="";if(!r3(s)||(/^w/i.test(r)&&(i=r+i,r="",u="http://"),!F9(i)))return!1;const d=O9(i+o);if(!d[0])return!1;const f={type:"link",title:null,url:u+r+d[0],children:[{type:"text",value:r+d[0]}]};return d[1]?[f,{type:"text",value:d[1]}]:f}function A9(e,r,i,o){return!r3(o,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+i,children:[{type:"text",value:r+"@"+i}]}}function F9(e){const r=e.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function O9(e){const r=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let i=r[0],o=i.indexOf(")");const s=Q2(e,"(");let u=Q2(e,")");for(;o!==-1&&s>u;)e+=i.slice(0,o+1),i=i.slice(o+1),o=i.indexOf(")"),u++;return[e,i]}function r3(e,r){const i=e.input.charCodeAt(e.index-1);return(e.index===0||Wr(i)||as(i))&&(!r||i!==47)}i3.peek=Q9;function $9(){this.buffer()}function B9(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function H9(){this.buffer()}function V9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function U9(e){const r=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=En(this.sliceSerialize(e)).toLowerCase(),i.label=r}function W9(e){this.exit(e)}function q9(e){const r=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=En(this.sliceSerialize(e)).toLowerCase(),i.label=r}function Z9(e){this.exit(e)}function Q9(){return"["}function i3(e,r,i,o){const s=i.createTracker(o);let u=s.move("[^");const d=i.enter("footnoteReference"),f=i.enter("reference");return u+=s.move(i.safe(i.associationId(e),{after:"]",before:u})),f(),d(),u+=s.move("]"),u}function G9(){return{enter:{gfmFootnoteCallString:$9,gfmFootnoteCall:B9,gfmFootnoteDefinitionLabelString:H9,gfmFootnoteDefinition:V9},exit:{gfmFootnoteCallString:U9,gfmFootnoteCall:W9,gfmFootnoteDefinitionLabelString:q9,gfmFootnoteDefinition:Z9}}}function K9(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:i,footnoteReference:i3},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(o,s,u,d){const f=u.createTracker(d);let p=f.move("[^");const m=u.enter("footnoteDefinition"),y=u.enter("label");return p+=f.move(u.safe(u.associationId(o),{before:p,after:"]"})),y(),p+=f.move("]:"),o.children&&o.children.length>0&&(f.shift(4),p+=f.move((r?`
60
+ `:" ")+u.indentLines(u.containerFlow(o,f.current()),r?l3:Y9))),m(),p}}function Y9(e,r,i){return r===0?e:l3(e,r,i)}function l3(e,r,i){return(i?"":" ")+e}const X9=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];o3.peek=rm;function J9(){return{canContainEols:["delete"],enter:{strikethrough:tm},exit:{strikethrough:nm}}}function em(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:X9}],handlers:{delete:o3}}}function tm(e){this.enter({type:"delete",children:[]},e)}function nm(e){this.exit(e)}function o3(e,r,i,o){const s=i.createTracker(o),u=i.enter("strikethrough");let d=s.move("~~");return d+=i.containerPhrasing(e,{...s.current(),before:d,after:"~"}),d+=s.move("~~"),u(),d}function rm(){return"~"}function im(e){return e.length}function lm(e,r){const i=r||{},o=(i.align||[]).concat(),s=i.stringLength||im,u=[],d=[],f=[],p=[];let m=0,y=-1;for(;++y<e.length;){const P=[],R=[];let j=-1;for(e[y].length>m&&(m=e[y].length);++j<e[y].length;){const V=om(e[y][j]);if(i.alignDelimiters!==!1){const b=s(V);R[j]=b,(p[j]===void 0||b>p[j])&&(p[j]=b)}P.push(V)}d[y]=P,f[y]=R}let x=-1;if(typeof o=="object"&&"length"in o)for(;++x<m;)u[x]=G2(o[x]);else{const P=G2(o);for(;++x<m;)u[x]=P}x=-1;const v=[],C=[];for(;++x<m;){const P=u[x];let R="",j="";P===99?(R=":",j=":"):P===108?R=":":P===114&&(j=":");let V=i.alignDelimiters===!1?1:Math.max(1,p[x]-R.length-j.length);const b=R+"-".repeat(V)+j;i.alignDelimiters!==!1&&(V=R.length+V+j.length,V>p[x]&&(p[x]=V),C[x]=V),v[x]=b}d.splice(1,0,v),f.splice(1,0,C),y=-1;const k=[];for(;++y<d.length;){const P=d[y],R=f[y];x=-1;const j=[];for(;++x<m;){const V=P[x]||"";let b="",$="";if(i.alignDelimiters!==!1){const B=p[x]-(R[x]||0),T=u[x];T===114?b=" ".repeat(B):T===99?B%2?(b=" ".repeat(B/2+.5),$=" ".repeat(B/2-.5)):(b=" ".repeat(B/2),$=b):$=" ".repeat(B)}i.delimiterStart!==!1&&!x&&j.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&V==="")&&(i.delimiterStart!==!1||x)&&j.push(" "),i.alignDelimiters!==!1&&j.push(b),j.push(V),i.alignDelimiters!==!1&&j.push($),i.padding!==!1&&j.push(" "),(i.delimiterEnd!==!1||x!==m-1)&&j.push("|")}k.push(i.delimiterEnd===!1?j.join("").replace(/ +$/,""):j.join(""))}return k.join(`
61
+ `)}function om(e){return e==null?"":String(e)}function G2(e){const r=typeof e=="string"?e.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function sm(e,r,i,o){const s=i.enter("blockquote"),u=i.createTracker(o);u.move("> "),u.shift(2);const d=i.indentLines(i.containerFlow(e,u.current()),am);return s(),d}function am(e,r,i){return">"+(i?"":" ")+e}function um(e,r){return K2(e,r.inConstruct,!0)&&!K2(e,r.notInConstruct,!1)}function K2(e,r,i){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return i;let o=-1;for(;++o<r.length;)if(e.includes(r[o]))return!0;return!1}function Y2(e,r,i,o){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
62
+ `&&um(i.stack,i.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
63
+ `}function cm(e,r){const i=String(e);let o=i.indexOf(r),s=o,u=0,d=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++u>d&&(d=u):u=1,s=o+r.length,o=i.indexOf(r,s);return d}function dm(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function fm(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function pm(e,r,i,o){const s=fm(i),u=e.value||"",d=s==="`"?"GraveAccent":"Tilde";if(dm(e,i)){const x=i.enter("codeIndented"),v=i.indentLines(u,hm);return x(),v}const f=i.createTracker(o),p=s.repeat(Math.max(cm(u,s)+1,3)),m=i.enter("codeFenced");let y=f.move(p);if(e.lang){const x=i.enter(`codeFencedLang${d}`);y+=f.move(i.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),x()}if(e.lang&&e.meta){const x=i.enter(`codeFencedMeta${d}`);y+=f.move(" "),y+=f.move(i.safe(e.meta,{before:y,after:`
64
+ `,encode:["`"],...f.current()})),x()}return y+=f.move(`
65
+ `),u&&(y+=f.move(u+`
66
+ `)),y+=f.move(p),m(),y}function hm(e,r,i){return(i?"":" ")+e}function pu(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function mm(e,r,i,o){const s=pu(i),u=s==='"'?"Quote":"Apostrophe",d=i.enter("definition");let f=i.enter("label");const p=i.createTracker(o);let m=p.move("[");return m+=p.move(i.safe(i.associationId(e),{before:m,after:"]",...p.current()})),m+=p.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(i.safe(e.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(f=i.enter("destinationRaw"),m+=p.move(i.safe(e.url,{before:m,after:e.title?" ":`
67
+ `,...p.current()}))),f(),e.title&&(f=i.enter(`title${u}`),m+=p.move(" "+s),m+=p.move(i.safe(e.title,{before:m,after:s,...p.current()})),m+=p.move(s),f()),d(),m}function gm(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function _l(e){return"&#x"+e.toString(16).toUpperCase()+";"}function is(e,r,i){const o=wi(e),s=wi(r);return o===void 0?s===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}s3.peek=xm;function s3(e,r,i,o){const s=gm(i),u=i.enter("emphasis"),d=i.createTracker(o),f=d.move(s);let p=d.move(i.containerPhrasing(e,{after:s,before:f,...d.current()}));const m=p.charCodeAt(0),y=is(o.before.charCodeAt(o.before.length-1),m,s);y.inside&&(p=_l(m)+p.slice(1));const x=p.charCodeAt(p.length-1),v=is(o.after.charCodeAt(0),x,s);v.inside&&(p=p.slice(0,-1)+_l(x));const C=d.move(s);return u(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+p+C}function xm(e,r,i){return i.options.emphasis||"*"}function ym(e,r){let i=!1;return du(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return i=!0,R1}),!!((!e.depth||e.depth<3)&&iu(e)&&(r.options.setext||i))}function vm(e,r,i,o){const s=Math.max(Math.min(6,e.depth||1),1),u=i.createTracker(o);if(ym(e,i)){const y=i.enter("headingSetext"),x=i.enter("phrasing"),v=i.containerPhrasing(e,{...u.current(),before:`
68
68
  `,after:`
69
- `});return y(),x(),v+`
69
+ `});return x(),y(),v+`
70
70
  `+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
71
- `))+1))}const c="#".repeat(s),f=r.enter("headingAtx"),h=r.enter("phrasing");u.move(c+" ");let m=r.containerPhrasing(t,{before:"# ",after:`
72
- `,...u.current()});return/^[\t ]/.test(m)&&(m=xl(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,r.options.closeAtx&&(m+=" "+c),h(),f(),m}X3.peek=am;function X3(t){return t.value||""}function am(){return"<"}J3.peek=um;function J3(t,i,r,o){const s=ou(r),u=s==='"'?"Quote":"Apostrophe",c=r.enter("image");let f=r.enter("label");const h=r.createTracker(o);let m=h.move("![");return m+=h.move(r.safe(t.alt,{before:m,after:"]",...h.current()})),m+=h.move("]("),f(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(f=r.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(r.safe(t.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(f=r.enter("destinationRaw"),m+=h.move(r.safe(t.url,{before:m,after:t.title?" ":")",...h.current()}))),f(),t.title&&(f=r.enter(`title${u}`),m+=h.move(" "+s),m+=h.move(r.safe(t.title,{before:m,after:s,...h.current()})),m+=h.move(s),f()),m+=h.move(")"),c(),m}function um(){return"!"}ed.peek=cm;function ed(t,i,r,o){const s=t.referenceType,u=r.enter("imageReference");let c=r.enter("label");const f=r.createTracker(o);let h=f.move("![");const m=r.safe(t.alt,{before:h,after:"]",...f.current()});h+=f.move(m+"]["),c();const x=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(t),{before:h,after:"]",...f.current()});return c(),r.stack=x,u(),s==="full"||!m||m!==y?h+=f.move(y+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function cm(){return"!"}td.peek=dm;function td(t,i,r){let o=t.value||"",s="`",u=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(o);)s+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++u<r.unsafe.length;){const c=r.unsafe[u],f=r.compilePattern(c);let h;if(c.atBreak)for(;h=f.exec(o);){let m=h.index;o.charCodeAt(m)===10&&o.charCodeAt(m-1)===13&&m--,o=o.slice(0,m)+" "+o.slice(h.index+1)}}return s+o+s}function dm(){return"`"}function nd(t,i){const r=K1(t);return!!(!i.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}rd.peek=fm;function rd(t,i,r,o){const s=ou(r),u=s==='"'?"Quote":"Apostrophe",c=r.createTracker(o);let f,h;if(nd(t,r)){const x=r.stack;r.stack=[],f=r.enter("autolink");let y=c.move("<");return y+=c.move(r.containerPhrasing(t,{before:y,after:">",...c.current()})),y+=c.move(">"),f(),r.stack=x,y}f=r.enter("link"),h=r.enter("label");let m=c.move("[");return m+=c.move(r.containerPhrasing(t,{before:m,after:"](",...c.current()})),m+=c.move("]("),h(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(h=r.enter("destinationLiteral"),m+=c.move("<"),m+=c.move(r.safe(t.url,{before:m,after:">",...c.current()})),m+=c.move(">")):(h=r.enter("destinationRaw"),m+=c.move(r.safe(t.url,{before:m,after:t.title?" ":")",...c.current()}))),h(),t.title&&(h=r.enter(`title${u}`),m+=c.move(" "+s),m+=c.move(r.safe(t.title,{before:m,after:s,...c.current()})),m+=c.move(s),h()),m+=c.move(")"),f(),m}function fm(t,i,r){return nd(t,r)?"<":"["}id.peek=pm;function id(t,i,r,o){const s=t.referenceType,u=r.enter("linkReference");let c=r.enter("label");const f=r.createTracker(o);let h=f.move("[");const m=r.containerPhrasing(t,{before:h,after:"]",...f.current()});h+=f.move(m+"]["),c();const x=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(t),{before:h,after:"]",...f.current()});return c(),r.stack=x,u(),s==="full"||!m||m!==y?h+=f.move(y+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function pm(){return"["}function su(t){const i=t.options.bullet||"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bullet`, expected `*`, `+`, or `-`");return i}function hm(t){const i=su(t),r=t.options.bulletOther;if(!r)return i==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===i)throw new Error("Expected `bullet` (`"+i+"`) and `bulletOther` (`"+r+"`) to be different");return r}function mm(t){const i=t.options.bulletOrdered||".";if(i!=="."&&i!==")")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOrdered`, expected `.` or `)`");return i}function ld(t){const i=t.options.rule||"*";if(i!=="*"&&i!=="-"&&i!=="_")throw new Error("Cannot serialize rules with `"+i+"` for `options.rule`, expected `*`, `-`, or `_`");return i}function gm(t,i,r,o){const s=r.enter("list"),u=r.bulletCurrent;let c=t.ordered?mm(r):su(r);const f=t.ordered?c==="."?")":".":hm(r);let h=i&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!t.ordered){const x=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&x&&(!x.children||!x.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(h=!0),ld(r)===c&&x){let y=-1;for(;++y<t.children.length;){const v=t.children[y];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=f),r.bulletCurrent=c;const m=r.containerFlow(t,o);return r.bulletLastUsed=c,r.bulletCurrent=u,s(),m}function ym(t){const i=t.options.listItemIndent||"one";if(i!=="tab"&&i!=="one"&&i!=="mixed")throw new Error("Cannot serialize items with `"+i+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return i}function xm(t,i,r,o){const s=ym(r);let u=r.bulletCurrent||su(r);i&&i.type==="list"&&i.ordered&&(u=(typeof i.start=="number"&&i.start>-1?i.start:1)+(r.options.incrementListMarker===!1?0:i.children.indexOf(t))+u);let c=u.length+1;(s==="tab"||s==="mixed"&&(i&&i.type==="list"&&i.spread||t.spread))&&(c=Math.ceil(c/4)*4);const f=r.createTracker(o);f.move(u+" ".repeat(c-u.length)),f.shift(c);const h=r.enter("listItem"),m=r.indentLines(r.containerFlow(t,f.current()),x);return h(),m;function x(y,v,C){return v?(C?"":" ".repeat(c))+y:(C?u:u+" ".repeat(c-u.length))+y}}function vm(t,i,r,o){const s=r.enter("paragraph"),u=r.enter("phrasing"),c=r.containerPhrasing(t,o);return u(),s(),c}const Cm=ls(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function wm(t,i,r,o){return(t.children.some(function(c){return Cm(c)})?r.containerPhrasing:r.containerFlow).call(r,t,o)}function km(t){const i=t.options.strong||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize strong with `"+i+"` for `options.strong`, expected `*`, or `_`");return i}od.peek=_m;function od(t,i,r,o){const s=km(r),u=r.enter("strong"),c=r.createTracker(o),f=c.move(s+s);let h=c.move(r.containerPhrasing(t,{after:s,before:f,...c.current()}));const m=h.charCodeAt(0),x=Xo(o.before.charCodeAt(o.before.length-1),m,s);x.inside&&(h=xl(m)+h.slice(1));const y=h.charCodeAt(h.length-1),v=Xo(o.after.charCodeAt(0),y,s);v.inside&&(h=h.slice(0,-1)+xl(y));const C=c.move(s+s);return u(),r.attentionEncodeSurroundingInfo={after:v.outside,before:x.outside},f+h+C}function _m(t,i,r){return r.options.strong||"*"}function Sm(t,i,r,o){return r.safe(t.value,o)}function Em(t){const i=t.options.ruleRepetition||3;if(i<3)throw new Error("Cannot serialize rules with repetition `"+i+"` for `options.ruleRepetition`, expected `3` or more");return i}function bm(t,i,r){const o=(ld(r)+(r.options.ruleSpaces?" ":"")).repeat(Em(r));return r.options.ruleSpaces?o.slice(0,-1):o}const sd={blockquote:G9,break:V2,code:tm,definition:rm,emphasis:K3,hardBreak:V2,heading:sm,html:X3,image:J3,imageReference:ed,inlineCode:td,link:rd,linkReference:id,list:gm,listItem:xm,paragraph:vm,root:wm,strong:od,text:Sm,thematicBreak:bm};function jm(){return{enter:{table:Lm,tableData:U2,tableHeader:U2,tableRow:Im},exit:{codeText:Mm,table:Nm,tableData:p1,tableHeader:p1,tableRow:p1}}}function Lm(t){const i=t._align;this.enter({type:"table",align:i.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function Nm(t){this.exit(t),this.data.inTable=void 0}function Im(t){this.enter({type:"tableRow",children:[]},t)}function p1(t){this.exit(t)}function U2(t){this.enter({type:"tableCell",children:[]},t)}function Mm(t){let i=this.resume();this.data.inTable&&(i=i.replace(/\\([\\|])/g,Tm));const r=this.stack[this.stack.length-1];r.type,r.value=i,this.exit(t)}function Tm(t,i){return i==="|"?i:t}function Pm(t){const i=t||{},r=i.tableCellPadding,o=i.tablePipeAlign,s=i.stringLength,u=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
73
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:h,tableRow:f}};function c(C,k,N,b){return m(x(C,N,b),C.align)}function f(C,k,N,b){const _=y(C,N,b),T=m([_]);return T.slice(0,T.indexOf(`
74
- `))}function h(C,k,N,b){const _=N.enter("tableCell"),T=N.enter("phrasing"),I=N.containerPhrasing(C,{...b,before:u,after:u});return T(),_(),I}function m(C,k){return Z9(C,{align:k,alignDelimiters:o,padding:r,stringLength:s})}function x(C,k,N){const b=C.children;let _=-1;const T=[],I=k.enter("table");for(;++_<b.length;)T[_]=y(b[_],k,N);return I(),T}function y(C,k,N){const b=C.children;let _=-1;const T=[],I=k.enter("tableRow");for(;++_<b.length;)T[_]=h(b[_],C,k,N);return I(),T}function v(C,k,N){let b=sd.inlineCode(C,k,N);return N.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function zm(){return{exit:{taskListCheckValueChecked:W2,taskListCheckValueUnchecked:W2,paragraph:Rm}}}function Dm(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Am}}}function W2(t){const i=this.stack[this.stack.length-2];i.type,i.checked=t.type==="taskListCheckValueChecked"}function Rm(t){const i=this.stack[this.stack.length-2];if(i&&i.type==="listItem"&&typeof i.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const s=i.children;let u=-1,c;for(;++u<s.length;){const f=s[u];if(f.type==="paragraph"){c=f;break}}c===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(t)}function Am(t,i,r,o){const s=t.children[0],u=typeof t.checked=="boolean"&&s&&s.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",f=r.createTracker(o);u&&f.move(c);let h=sd.listItem(t,i,r,{...o,...f.current()});return u&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),h;function m(x){return x+c}}function Fm(){return[g9(),A9(),$9(),jm(),zm()]}function Om(t){return{extensions:[y9(),F9(t),H9(),Pm(t),Dm()]}}const Bm={tokenize:qm,partial:!0},ad={tokenize:Zm,partial:!0},ud={tokenize:Qm,partial:!0},cd={tokenize:Gm,partial:!0},$m={tokenize:Ym,partial:!0},dd={name:"wwwAutolink",tokenize:Um,previous:pd},fd={name:"protocolAutolink",tokenize:Wm,previous:hd},Vn={name:"emailAutolink",tokenize:Vm,previous:md},In={};function Hm(){return{text:In}}let Mr=48;for(;Mr<123;)In[Mr]=Vn,Mr++,Mr===58?Mr=65:Mr===91&&(Mr=97);In[43]=Vn;In[45]=Vn;In[46]=Vn;In[95]=Vn;In[72]=[Vn,fd];In[104]=[Vn,fd];In[87]=[Vn,dd];In[119]=[Vn,dd];function Vm(t,i,r){const o=this;let s,u;return c;function c(y){return!D1(y)||!md.call(o,o.previous)||au(o.events)?r(y):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),f(y))}function f(y){return D1(y)?(t.consume(y),f):y===64?(t.consume(y),h):r(y)}function h(y){return y===46?t.check($m,x,m)(y):y===45||y===95||Lt(y)?(u=!0,t.consume(y),h):x(y)}function m(y){return t.consume(y),s=!0,h}function x(y){return u&&s&&At(o.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),i(y)):r(y)}}function Um(t,i,r){const o=this;return s;function s(c){return c!==87&&c!==119||!pd.call(o,o.previous)||au(o.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Bm,t.attempt(ad,t.attempt(ud,u),r),r)(c))}function u(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),i(c)}}function Wm(t,i,r){const o=this;let s="",u=!1;return c;function c(y){return(y===72||y===104)&&hd.call(o,o.previous)&&!au(o.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),t.consume(y),f):r(y)}function f(y){if(At(y)&&s.length<5)return s+=String.fromCodePoint(y),t.consume(y),f;if(y===58){const v=s.toLowerCase();if(v==="http"||v==="https")return t.consume(y),h}return r(y)}function h(y){return y===47?(t.consume(y),u?m:(u=!0,h)):r(y)}function m(y){return y===null||Go(y)||Ge(y)||Fr(y)||ns(y)?r(y):t.attempt(ad,t.attempt(ud,x),r)(y)}function x(y){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),i(y)}}function qm(t,i,r){let o=0;return s;function s(c){return(c===87||c===119)&&o<3?(o++,t.consume(c),s):c===46&&o===3?(t.consume(c),u):r(c)}function u(c){return c===null?r(c):i(c)}}function Zm(t,i,r){let o,s,u;return c;function c(m){return m===46||m===95?t.check(cd,h,f)(m):m===null||Ge(m)||Fr(m)||m!==45&&ns(m)?h(m):(u=!0,t.consume(m),c)}function f(m){return m===95?o=!0:(s=o,o=void 0),t.consume(m),c}function h(m){return s||o||!u?r(m):i(m)}}function Qm(t,i){let r=0,o=0;return s;function s(c){return c===40?(r++,t.consume(c),s):c===41&&o<r?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(cd,i,u)(c):c===null||Ge(c)||Fr(c)?i(c):(t.consume(c),s)}function u(c){return c===41&&o++,t.consume(c),s}}function Gm(t,i,r){return o;function o(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(t.consume(f),o):f===38?(t.consume(f),u):f===93?(t.consume(f),s):f===60||f===null||Ge(f)||Fr(f)?i(f):r(f)}function s(f){return f===null||f===40||f===91||Ge(f)||Fr(f)?i(f):o(f)}function u(f){return At(f)?c(f):r(f)}function c(f){return f===59?(t.consume(f),o):At(f)?(t.consume(f),c):r(f)}}function Ym(t,i,r){return o;function o(u){return t.consume(u),s}function s(u){return Lt(u)?r(u):i(u)}}function pd(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Ge(t)}function hd(t){return!At(t)}function md(t){return!(t===47||D1(t))}function D1(t){return t===43||t===45||t===46||t===95||Lt(t)}function au(t){let i=t.length,r=!1;for(;i--;){const o=t[i][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const Km={tokenize:lg,partial:!0};function Xm(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ng,continuation:{tokenize:rg},exit:ig}},text:{91:{name:"gfmFootnoteCall",tokenize:tg},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Jm,resolveTo:eg}}}}function Jm(t,i,r){const o=this;let s=o.events.length;const u=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c;for(;s--;){const h=o.events[s][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return r(h);const m=vn(o.sliceSerialize({start:c.end,end:o.now()}));return m.codePointAt(0)!==94||!u.includes(m.slice(1))?r(h):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),i(h))}}function eg(t,i){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[t[r+1],t[r+2],["enter",o,i],t[r+3],t[r+4],["enter",s,i],["exit",s,i],["enter",u,i],["enter",c,i],["exit",c,i],["exit",u,i],t[t.length-2],t[t.length-1],["exit",o,i]];return t.splice(r,t.length-r+1,...f),t}function tg(t,i,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u=0,c;return f;function f(y){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(y),t.exit("gfmFootnoteCallLabelMarker"),h}function h(y){return y!==94?r(y):(t.enter("gfmFootnoteCallMarker"),t.consume(y),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(y){if(u>999||y===93&&!c||y===null||y===91||Ge(y))return r(y);if(y===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return s.includes(vn(o.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(y),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),i):r(y)}return Ge(y)||(c=!0),u++,t.consume(y),y===92?x:m}function x(y){return y===91||y===92||y===93?(t.consume(y),u++,m):m(y)}}function ng(t,i,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u,c=0,f;return h;function h(k){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(k){return k===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",x):r(k)}function x(k){if(c>999||k===93&&!f||k===null||k===91||Ge(k))return r(k);if(k===93){t.exit("chunkString");const N=t.exit("gfmFootnoteDefinitionLabelString");return u=vn(o.sliceSerialize(N)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return Ge(k)||(f=!0),c++,t.consume(k),k===92?y:x}function y(k){return k===91||k===92||k===93?(t.consume(k),c++,x):x(k)}function v(k){return k===58?(t.enter("definitionMarker"),t.consume(k),t.exit("definitionMarker"),s.includes(u)||s.push(u),Re(t,C,"gfmFootnoteDefinitionWhitespace")):r(k)}function C(k){return i(k)}}function rg(t,i,r){return t.check(wl,i,t.attempt(Km,i,r))}function ig(t){t.exit("gfmFootnoteDefinition")}function lg(t,i,r){const o=this;return Re(t,s,"gfmFootnoteDefinitionIndent",5);function s(u){const c=o.events[o.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?i(u):r(u)}}function og(t){let r=(t||{}).singleTilde;const o={name:"strikethrough",tokenize:u,resolveAll:s};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(c,f){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let m=h;for(;m--;)if(c[m][0]==="exit"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[m][1].end.offset-c[m][1].start.offset){c[h][1].type="strikethroughSequence",c[m][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},c[m][1].start),end:Object.assign({},c[h][1].end)},y={type:"strikethroughText",start:Object.assign({},c[m][1].end),end:Object.assign({},c[h][1].start)},v=[["enter",x,f],["enter",c[m][1],f],["exit",c[m][1],f],["enter",y,f]],C=f.parser.constructs.insideSpan.null;C&&Xt(v,v.length,0,rs(C,c.slice(m+1,h),f)),Xt(v,v.length,0,[["exit",y,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",x,f]]),Xt(c,m-1,h-m+3,v),h=m+v.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function u(c,f,h){const m=this.previous,x=this.events;let y=0;return v;function v(k){return m===126&&x[x.length-1][1].type!=="characterEscape"?h(k):(c.enter("strikethroughSequenceTemporary"),C(k))}function C(k){const N=mi(m);if(k===126)return y>1?h(k):(c.consume(k),y++,C);if(y<2&&!r)return h(k);const b=c.exit("strikethroughSequenceTemporary"),_=mi(k);return b._open=!_||_===2&&!!N,b._close=!N||N===2&&!!_,f(k)}}}class sg{constructor(){this.map=[],this.index=new Map}add(i,r,o){ag(this,i,r,o)}consume(i){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(i.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),i.length=this.map[r][0];o.push(i.slice()),i.length=0;let s=o.pop();for(;s;){for(const u of s)i.push(u);s=o.pop()}this.map.length=0,this.index.clear()}}function ag(t,i,r,o){if(r===0&&o.length===0)return;const s=t.index.get(i);if(s){s[1]+=r,s[2].push(...o);return}const u=[i,r,o];t.map.push(u),t.index.set(i,u)}function ug(t,i){let r=!1;const o=[];for(;i<t.length;){const s=t[i];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(t[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[i-1][1].type==="tableDelimiterMarker"){const u=o.length-1;o[u]=o[u]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);i+=1}return o}function cg(){return{flow:{null:{name:"table",tokenize:dg,resolveAll:fg}}}}function dg(t,i,r){const o=this;let s=0,u=0,c;return f;function f(S){let $=o.events.length-1;for(;$>-1;){const{type:A}=o.events[$][1];if(A==="lineEnding"||A==="linePrefix")$--;else break}const K=$>-1?o.events[$][1].type:null,q=K==="tableHead"||K==="tableRow"?F:h;return q===F&&o.parser.lazy[o.now().line]?r(S):q(S)}function h(S){return t.enter("tableHead"),t.enter("tableRow"),m(S)}function m(S){return S===124||(c=!0,u+=1),x(S)}function x(S){return S===null?r(S):we(S)?u>1?(u=0,o.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),C):r(S):De(S)?Re(t,x,"whitespace")(S):(u+=1,c&&(c=!1,s+=1),S===124?(t.enter("tableCellDivider"),t.consume(S),t.exit("tableCellDivider"),c=!0,x):(t.enter("data"),y(S)))}function y(S){return S===null||S===124||Ge(S)?(t.exit("data"),x(S)):(t.consume(S),S===92?v:y)}function v(S){return S===92||S===124?(t.consume(S),y):y(S)}function C(S){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(S):(t.enter("tableDelimiterRow"),c=!1,De(S)?Re(t,k,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):k(S))}function k(S){return S===45||S===58?b(S):S===124?(c=!0,t.enter("tableCellDivider"),t.consume(S),t.exit("tableCellDivider"),N):Z(S)}function N(S){return De(S)?Re(t,b,"whitespace")(S):b(S)}function b(S){return S===58?(u+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(S),t.exit("tableDelimiterMarker"),_):S===45?(u+=1,_(S)):S===null||we(S)?U(S):Z(S)}function _(S){return S===45?(t.enter("tableDelimiterFiller"),T(S)):Z(S)}function T(S){return S===45?(t.consume(S),T):S===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(S),t.exit("tableDelimiterMarker"),I):(t.exit("tableDelimiterFiller"),I(S))}function I(S){return De(S)?Re(t,U,"whitespace")(S):U(S)}function U(S){return S===124?k(S):S===null||we(S)?!c||s!==u?Z(S):(t.exit("tableDelimiterRow"),t.exit("tableHead"),i(S)):Z(S)}function Z(S){return r(S)}function F(S){return t.enter("tableRow"),W(S)}function W(S){return S===124?(t.enter("tableCellDivider"),t.consume(S),t.exit("tableCellDivider"),W):S===null||we(S)?(t.exit("tableRow"),i(S)):De(S)?Re(t,W,"whitespace")(S):(t.enter("data"),Y(S))}function Y(S){return S===null||S===124||Ge(S)?(t.exit("data"),W(S)):(t.consume(S),S===92?ee:Y)}function ee(S){return S===92||S===124?(t.consume(S),Y):Y(S)}}function fg(t,i){let r=-1,o=!0,s=0,u=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,m,x,y;const v=new sg;for(;++r<t.length;){const C=t[r],k=C[1];C[0]==="enter"?k.type==="tableHead"?(f=!1,h!==0&&(q2(v,i,h,m,x),x=void 0,h=0),m={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(r,0,[["enter",m,i]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(o=!0,y=void 0,u=[0,0,0,0],c=[0,r+1,0,0],f&&(f=!1,x={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(r,0,[["enter",x,i]])),s=k.type==="tableDelimiterRow"?2:x?3:1):s&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(o=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],y=Ao(v,i,u,s,void 0,y),u=[0,0,0,0]),c[2]=r)):k.type==="tableCellDivider"&&(o?o=!1:(u[1]!==0&&(c[0]=c[1],y=Ao(v,i,u,s,void 0,y)),u=c,c=[u[1],r,0,0])):k.type==="tableHead"?(f=!0,h=r):k.type==="tableRow"||k.type==="tableDelimiterRow"?(h=r,u[1]!==0?(c[0]=c[1],y=Ao(v,i,u,s,r,y)):c[1]!==0&&(y=Ao(v,i,c,s,r,y)),s=0):s&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(c[3]=r)}for(h!==0&&q2(v,i,h,m,x),v.consume(i.events),r=-1;++r<i.events.length;){const C=i.events[r];C[0]==="enter"&&C[1].type==="table"&&(C[1]._align=ug(i.events,r))}return t}function Ao(t,i,r,o,s,u){const c=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",f="tableContent";r[0]!==0&&(u.end=Object.assign({},pi(i.events,r[0])),t.add(r[0],0,[["exit",u,i]]));const h=pi(i.events,r[1]);if(u={type:c,start:Object.assign({},h),end:Object.assign({},h)},t.add(r[1],0,[["enter",u,i]]),r[2]!==0){const m=pi(i.events,r[2]),x=pi(i.events,r[3]),y={type:f,start:Object.assign({},m),end:Object.assign({},x)};if(t.add(r[2],0,[["enter",y,i]]),o!==2){const v=i.events[r[2]],C=i.events[r[3]];if(v[1].end=Object.assign({},C[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const k=r[2]+1,N=r[3]-r[2]-1;t.add(k,N,[])}}t.add(r[3]+1,0,[["exit",y,i]])}return s!==void 0&&(u.end=Object.assign({},pi(i.events,s)),t.add(s,0,[["exit",u,i]]),u=void 0),u}function q2(t,i,r,o,s){const u=[],c=pi(i.events,r);s&&(s.end=Object.assign({},c),u.push(["exit",s,i])),o.end=Object.assign({},c),u.push(["exit",o,i]),t.add(r+1,0,u)}function pi(t,i){const r=t[i],o=r[0]==="enter"?"start":"end";return r[1][o]}const pg={name:"tasklistCheck",tokenize:mg};function hg(){return{text:{91:pg}}}function mg(t,i,r){const o=this;return s;function s(h){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(h):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),u)}function u(h){return Ge(h)?(t.enter("taskListCheckValueUnchecked"),t.consume(h),t.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(t.enter("taskListCheckValueChecked"),t.consume(h),t.exit("taskListCheckValueChecked"),c):r(h)}function c(h){return h===93?(t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),f):r(h)}function f(h){return we(h)?i(h):De(h)?t.check({tokenize:gg},i,r)(h):r(h)}}function gg(t,i,r){return Re(t,o,"whitespace");function o(s){return s===null?r(s):i(s)}}function yg(t){return E3([Hm(),Xm(),og(t),cg(),hg()])}const xg={};function vg(t){const i=this,r=t||xg,o=i.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),u=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),c=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(yg(r)),u.push(Fm()),c.push(Om(r))}function Cg({children:t}){const i=M.useRef(null),[r,o]=M.useState(!1);return d.jsxs("div",{className:"pi-code-block",children:[d.jsx("div",{className:"pi-code-toolbar",children:d.jsx("button",{type:"button",onClick:async()=>{var s;try{await navigator.clipboard.writeText(((s=i.current)==null?void 0:s.textContent)??""),o(!0),window.setTimeout(()=>o(!1),1800)}catch{o(!1)}},children:r?"已复制":"复制代码"})}),d.jsx("pre",{ref:i,children:t})]})}function gd({text:t}){return d.jsx("div",{className:"pi-markdown",children:d.jsx(o9,{remarkPlugins:[vg],components:{pre:({children:i})=>d.jsx(Cg,{children:i}),a:({href:i,children:r})=>d.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:r})},children:t})})}const wg="_root_rf6yg_9",kg="_row_rf6yg_16",_g="_leading_rf6yg_29",Sg="_iconIdle_rf6yg_57",Eg="_chevronHover_rf6yg_63",bg="_title_rf6yg_79",ci={root:wg,row:kg,leading:_g,iconIdle:Sg,chevronHover:Eg,title:bg};function yd({icon:t,title:i,open:r,onToggle:o,collapsedContent:s,children:u,rowClassName:c,leadingClassName:f,titleClassName:h,chevronClassName:m}){const x=y=>{y.key!=="Enter"&&y.key!==" "||(y.preventDefault(),o())};return d.jsxs("div",{className:ci.root,"data-open":r||void 0,children:[d.jsxs("div",{className:`${ci.row} ${c??""}`,"data-disclosure-row":!0,"data-expandable":!0,role:"button",tabIndex:0,"aria-expanded":r,onClick:o,onKeyDown:x,children:[d.jsx("span",{className:`${ci.leading} ${f??""}`,children:r?d.jsx(gl,{className:m}):d.jsxs(d.Fragment,{children:[d.jsx("span",{className:ci.iconIdle,children:t}),d.jsx(gl,{className:`${ci.chevronHover} ${m??""}`})]})}),d.jsx("span",{className:`${ci.title} ${h??""}`,children:i}),!r&&s]}),r&&u]})}const jg="_root_b8edg_1",Lg="_row_b8edg_11",Ng="_leading_b8edg_37",Ig="_chevron_b8edg_41",Mg="_title_b8edg_45",Tg="_separator_b8edg_49",Pg="_summary_b8edg_61",zg="_summaryText_b8edg_71",Dg="_thinkBody_b8edg_91",Hn={root:jg,row:Lg,leading:Ng,chevron:Ig,title:Mg,separator:Tg,summary:Pg,summaryText:zg,thinkBody:Dg};function Rg({text:t,running:i}){const[r,o]=M.useState(!1),s=t.trimEnd(),u=(i?s.slice(s.lastIndexOf(`
75
- `)+1):t.split(`
76
- `,1)[0]).replaceAll("**","");return d.jsx("div",{className:Hn.root,"data-variant":"think","data-state":i?"running":"ok","data-expanded":r||void 0,children:d.jsx(yd,{icon:d.jsx(u5,{size:14}),title:"思考",open:r,onToggle:()=>o(c=>!c),rowClassName:Hn.row,leadingClassName:Hn.leading,titleClassName:Hn.title,chevronClassName:Hn.chevron,collapsedContent:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:Hn.separator,"aria-hidden":!0}),d.jsx("span",{className:Hn.summary,"data-follow-end":i||void 0,children:d.jsx("span",{className:Hn.summaryText,children:u})})]}),children:d.jsx("div",{className:Hn.thinkBody,children:t})})})}var _l=o3(),h1,Z2;function Ag(){if(Z2)return h1;Z2=1;const t=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],i=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&amp;|%[A-Fa-f0-9]{2})+)/gm;class r{static escapeForHtml(s){return new r().escapeForHtml(s)}static linkify(s){return new r().linkify(s)}static ansiToHtml(s,u){return new r().ansiToHtml(s,u)}static ansiToJson(s,u){return new r().ansiToJson(s,u)}static ansiToText(s){return new r().ansiToText(s)}constructor(){this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}setupPalette(){this.PALETTE_COLORS=[];for(let f=0;f<2;++f)for(let h=0;h<8;++h)this.PALETTE_COLORS.push(t[f][h].color);let s=[0,95,135,175,215,255],u=(f,h,m)=>s[f]+", "+s[h]+", "+s[m];for(let f=0;f<6;++f)for(let h=0;h<6;++h)for(let m=0;m<6;++m)this.PALETTE_COLORS.push(u(f,h,m));let c=8;for(let f=0;f<24;++f,c+=10)this.PALETTE_COLORS.push(c+", "+c+", "+c)}escapeForHtml(s){return s.replace(/[&<>\"]/gm,u=>u=="&"?"&amp;":u=='"'?"&quot;":u=="<"?"&lt;":u==">"?"&gt;":"")}linkify(s){return s.replace(i,u=>`<a href="${u}">${u}</a>`)}ansiToHtml(s,u){return this.process(s,u,!0)}ansiToJson(s,u){return u=u||{},u.json=!0,u.clearLine=!1,this.process(s,u,!0)}ansiToText(s){return this.process(s,{},!1)}process(s,u,c){let f=this,h=s.split(/\033\[/),m=h.shift();u==null&&(u={}),u.clearLine=/\r/.test(s);let x=h.map(y=>this.processChunk(y,u,c));if(u&&u.json){let y=f.processChunkJson("");return y.content=m,y.clearLine=u.clearLine,x.unshift(y),u.remove_empty&&(x=x.filter(v=>!v.isEmpty())),x}else x.unshift(m);return x.join("")}processChunkJson(s,u,c){u=typeof u>"u"?{}:u;let f=u.use_classes=typeof u.use_classes<"u"&&u.use_classes,h=u.key=f?"class":"color",m={content:s,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:u.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:()=>!m.content},x=s.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!x)return m;m.content=x[4];let y=x[2].split(";");if(x[1]!==""||x[3]!=="m"||!c)return m;let v=this;for(;y.length>0;){let C=y.shift(),k=parseInt(C);if(isNaN(k)||k===0)v.fg=v.bg=null,v.decorations=[];else if(k===1)v.decorations.push("bold");else if(k===2)v.decorations.push("dim");else if(k===3)v.decorations.push("italic");else if(k===4)v.decorations.push("underline");else if(k===5)v.decorations.push("blink");else if(k===7)v.decorations.push("reverse");else if(k===8)v.decorations.push("hidden");else if(k===9)v.decorations.push("strikethrough");else if(k===21)v.removeDecoration("bold");else if(k===22)v.removeDecoration("bold"),v.removeDecoration("dim");else if(k===23)v.removeDecoration("italic");else if(k===24)v.removeDecoration("underline");else if(k===25)v.removeDecoration("blink");else if(k===27)v.removeDecoration("reverse");else if(k===28)v.removeDecoration("hidden");else if(k===29)v.removeDecoration("strikethrough");else if(k===39)v.fg=null;else if(k===49)v.bg=null;else if(k>=30&&k<38)v.fg=t[0][k%10][h];else if(k>=90&&k<98)v.fg=t[1][k%10][h];else if(k>=40&&k<48)v.bg=t[0][k%10][h];else if(k>=100&&k<108)v.bg=t[1][k%10][h];else if(k===38||k===48){let N=k===38;if(y.length>=1){let b=y.shift();if(b==="5"&&y.length>=1){let _=parseInt(y.shift());if(_>=0&&_<=255)if(!f)this.PALETTE_COLORS||v.setupPalette(),N?v.fg=this.PALETTE_COLORS[_]:v.bg=this.PALETTE_COLORS[_];else{let T=_>=16?"ansi-palette-"+_:t[_>7?1:0][_%8].class;N?v.fg=T:v.bg=T}}else if(b==="2"&&y.length>=3){let _=parseInt(y.shift()),T=parseInt(y.shift()),I=parseInt(y.shift());if(_>=0&&_<=255&&T>=0&&T<=255&&I>=0&&I<=255){let U=_+", "+T+", "+I;f?N?(v.fg="ansi-truecolor",v.fg_truecolor=U):(v.bg="ansi-truecolor",v.bg_truecolor=U):N?v.fg=U:v.bg=U}}}}}return v.fg===null&&v.bg===null&&v.decorations.length===0||(m.fg=v.fg,m.bg=v.bg,m.fg_truecolor=v.fg_truecolor,m.bg_truecolor=v.bg_truecolor,m.decorations=v.decorations,m.decoration=v.decorations.slice(-1).pop()||null,m.was_processed=!0),m}processChunk(s,u,c){u=u||{};let f=this.processChunkJson(s,u,c),h=u.use_classes;if(f.decorations=f.decorations.filter(k=>{if(k==="reverse"){f.fg||(f.fg=t[0][7][h?"class":"color"]),f.bg||(f.bg=t[0][0][h?"class":"color"]);let N=f.fg;f.fg=f.bg,f.bg=N;let b=f.fg_truecolor;return f.fg_truecolor=f.bg_truecolor,f.bg_truecolor=b,f.isInverted=!0,!1}return!0}),u.json)return f;if(f.isEmpty())return"";if(!f.was_processed)return f.content;let m=[],x=[],y=[],v={},C=k=>{let N=[],b;for(b in k)k.hasOwnProperty(b)&&N.push("data-"+b+'="'+this.escapeForHtml(k[b])+'"');return N.length>0?" "+N.join(" "):""};return f.isInverted&&(v["ansi-is-inverted"]="true"),f.fg&&(h?(m.push(f.fg+"-fg"),f.fg_truecolor!==null&&(v["ansi-truecolor-fg"]=f.fg_truecolor,f.fg_truecolor=null)):m.push("color:rgb("+f.fg+")")),f.bg&&(h?(m.push(f.bg+"-bg"),f.bg_truecolor!==null&&(v["ansi-truecolor-bg"]=f.bg_truecolor,f.bg_truecolor=null)):m.push("background-color:rgb("+f.bg+")")),f.decorations.forEach(k=>{if(h){x.push("ansi-"+k);return}k==="bold"?x.push("font-weight:bold"):k==="dim"?x.push("opacity:0.5"):k==="italic"?x.push("font-style:italic"):k==="hidden"?x.push("visibility:hidden"):k==="strikethrough"?y.push("line-through"):y.push(k)}),y.length&&x.push("text-decoration:"+y.join(" ")),h?'<span class="'+m.concat(x).join(" ")+'"'+C(v)+">"+f.content+"</span>":'<span style="'+m.concat(x).join(";")+'"'+C(v)+">"+f.content+"</span>"}removeDecoration(s){const u=this.decorations.indexOf(s);u>=0&&this.decorations.splice(u,1)}}return h1=r,h1}var Fg=Ag();const Og=O1(Fg),Bg={"0,0,0":"var(--dsw-alias-label-primary)","255,255,255":"var(--dsw-alias-label-primary)","85,85,85":"var(--dsw-alias-label-tertiary)","187,0,0":"var(--dsw-alias-state-error-primary)","255,85,85":"var(--dsw-alias-state-error-secondary)","0,187,0":"var(--dsw-alias-state-success-primary)","0,255,0":"var(--dsw-alias-state-success-secondary)","187,187,0":"var(--dsw-alias-state-warn-primary)","255,255,85":"var(--dsw-alias-state-warn-secondary)","0,0,187":"var(--dsw-alias-state-business-primary)","85,85,255":"var(--dsw-static-blue-400)"},$g={bold:{fontWeight:700},dim:{opacity:.7},italic:{fontStyle:"italic"},underline:{textDecoration:"underline"},strikethrough:{textDecoration:"line-through"},hidden:{visibility:"hidden"}},Hg=/\u001b\][^\u0007\u001b]*(?:\u0007|\u001b\\)?/g,Vg=/\u001b(?!\[)[\u0020-\u002f]*[\u0030-\u007e]?/g,Ug=/[\u0000-\u0007\u000b-\u001a\u001c-\u001f\u007f]/g,Wg=/\r|\u0008|\u001b\[[\u0030-\u003f]*[\u0020-\u002f]*K/,qg=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*m/g,Q2=8,Zg=/^[\p{Mn}\p{Me}\p{Cf}\u200b-\u200f\u2060]$/u,Qg=new RegExp("\\p{Script=Han}|\\p{Script=Hiragana}|\\p{Script=Katakana}|\\p{Script=Hangul}|\\p{Emoji_Presentation}|[\\uff01-\\uff60\\u3000-\\u303e]","u");function m1(t){const i=t.codePointAt(0);return i===void 0||i<4352?!1:Qg.test(t)}const ml={fg:"",bg:"",attrs:[]},Gg={22:["1","2"],23:["3"],24:["4"],25:["5","6"],27:["7"],28:["8"],29:["9"]};function xd(t,i){const r=i===""?["0"]:i.split(";");let o=t;for(let s=0;s<r.length;s++){const u=String(r[s]);if(u===""||u==="0"){o=ml;continue}if(u==="38"||u==="48"){const h=r[s+1]??"",m=h==="2"?4:h==="5"?2:0,x=r.slice(s,s+m+1).join(";");o=u==="38"?{...o,fg:x}:{...o,bg:x},s+=m;continue}const c=Gg[u];if(c!==void 0){o={...o,attrs:o.attrs.filter(h=>!c.includes(h))};continue}const f=Number(u);if(u==="39"){o={...o,fg:""};continue}if(u==="49"){o={...o,bg:""};continue}if(f>=30&&f<=37||f>=90&&f<=97){o={...o,fg:u};continue}if(f>=40&&f<=47||f>=100&&f<=107){o={...o,bg:u};continue}o.attrs.includes(u)||(o={...o,attrs:[...o.attrs,u]})}return o}function G2(t){const i=[...t.attrs];return t.fg!==""&&i.push(t.fg),t.bg!==""&&i.push(t.bg),i.length===0?"":`\x1B[${i.join(";")}m`}function Fo(t,i){return t.fg===i.fg&&t.bg===i.bg&&t.attrs.length===i.attrs.length&&t.attrs.every((r,o)=>r===i.attrs[o])}function Yg(t,i){var y;const r=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*([\u0040-\u007e])/g,o=[];let s=0,u=i,c=0;const f=(v,C)=>{var N;const k=o[v];(k==null?void 0:k.spacer)===!0&&v>0?o[v-1]={sgr:u,char:C}:k!==void 0&&m1(k.char)&&((N=o[v+1])==null?void 0:N.spacer)===!0&&(o[v+1]={sgr:u,char:C}),o[v]={sgr:u,char:C}},h=v=>{for(const C of v){if(C==="\r"){s=0;continue}if(C==="\b"){s=Math.max(0,s-1);continue}if(C===" "){const k=s+Q2-s%Q2;for(;s<k;s++)o[s]??(o[s]={sgr:u,char:" "});continue}if(Zg.test(C)){const k=s>0?o[s-1]:void 0;k!==void 0&&(o[s-1]={sgr:k.sgr,char:k.char+C});continue}f(s," "),o[s]={sgr:u,char:C},s++,m1(C)&&(o[s]={sgr:u,char:"",spacer:!0},s++)}};for(const v of t.matchAll(r)){h(t.slice(c,v.index)),c=v.index+v[0].length;const C=String(v[1]),k=String(v[2]);if(k==="K"){const N=String(C.split(";")[0]);if(N==="1")for(let b=0;b<=s;b++)f(b," ");else o.length=N==="2"?0:s;continue}k==="m"&&(u=xd(u,C))}h(t.slice(c));let m="",x=i;for(let v=0;v<o.length;v++){const C=o[v]??{sgr:ml,char:" "};Fo(C.sgr,x)||(Fo(x,ml)||(m+="\x1B[0m"),m+=G2(C.sgr),x=C.sgr);const k=v>0&&m1(((y=o[v-1])==null?void 0:y.char)??"");m+=C.spacer===!0&&!k?" ":C.char}return Fo(x,u)||(Fo(x,ml)||(m+="\x1B[0m"),m+=G2(u)),{text:m,sgr:u}}function Kg(t){const i=[];let r=ml;for(const o of t.split(`
77
- `)){const s=o.replace(/\r+$/,"");if(Wg.test(s)){const u=Yg(s,r);i.push(u.text),r=u.sgr;continue}i.push(s);for(const u of s.matchAll(qg))r=xd(r,String(u[1]))}return i.join(`
78
- `)}function Xg(t){const i=t.replace(Hg,"").replace(Vg,"");return Kg(i).replace(Ug,"")}function Jg(t){const i={},r=t.bg===null?void 0:`rgb(${t.bg})`;if(r!==void 0&&(i.backgroundColor=r),t.fg!==null){const o=`rgb(${t.fg})`;i.color=r===void 0?Bg[t.fg.replace(/\s+/g,"")]??o:o}for(const o of t.decorations)Object.assign(i,$g[o]);return Object.keys(i).length===0?void 0:i}function ey(t){let i=[];const r=[i];for(const o of Og.ansiToJson(Xg(t),{json:!0,remove_empty:!0})){const s=Jg(o);for(const[u,c]of o.content.split(`
79
- `).entries())u>0&&(i=[],r.push(i)),c!==""&&i.push({text:c,style:s})}return r}function ty(t,i,r){const o=t-i,s=Math.ceil(i/2);return{hidden:o,capped:o>0&&!r,headLines:s,tailLines:i-s}}async function ny(t){var o;if((o=navigator.clipboard)!=null&&o.writeText)try{return await navigator.clipboard.writeText(t),!0}catch{return!1}const i=typeof document.execCommand=="function"?document.execCommand.bind(document):void 0;if(i===void 0)return!1;const r=document.createElement("textarea");r.value=t,r.setAttribute("readonly",""),r.style.position="fixed",r.style.left="-9999px",document.body.appendChild(r),r.select();try{return i("copy")}catch{return!1}finally{r.remove()}}const ry=1e3;function iy(t){const[i,r]=M.useState(!1),o=M.useCallback(()=>{i||ny(t).then(s=>{s&&(r(!0),window.setTimeout(()=>{r(!1)},ry))})},[i,t]);return{copied:i,onCopy:o}}const ly="_pill_e3ygd_1",oy="_interactive_e3ygd_15",sy="_active_e3ygd_23",sl={pill:ly,interactive:oy,active:sy};function ay({active:t=!1,className:i,children:r,onClick:o,...s}){return o?d.jsx("button",{type:"button",className:rt(sl.pill,sl.interactive,t&&sl.active,i),onClick:o,...s,children:r}):d.jsx("span",{className:rt(sl.pill,t&&sl.active,i),children:r})}const uy="_block_1gdtu_1",cy="_header_1gdtu_32",dy="_prompt_1gdtu_70",fy="_promptLine_1gdtu_78",py="_runState_1gdtu_91",hy="_runStateLabel_1gdtu_99",my="_cwd_1gdtu_108",gy="_command_1gdtu_116",yy="_status_1gdtu_128",xy="_copyButton_1gdtu_136",vy="_output_1gdtu_156",Cy="_line_1gdtu_180",wy="_expand_1gdtu_185",ky="_empty_1gdtu_201",Rt={block:uy,header:cy,prompt:dy,promptLine:fy,runState:py,runStateLabel:hy,cwd:my,command:gy,status:yy,copyButton:xy,output:vy,line:Cy,expand:wy,empty:ky},_y=16;function Sy(t,i){const r=t.replace(/[/\\]+$/,"");if(i!==void 0&&r===i.replace(/[/\\]+$/,""))return"~";const o=r.split(/[/\\]/).pop();return o===void 0||o===""?t:o}function vd(t,i,r){if(i!==void 0)return r.signal(i);if(t!==void 0&&t!==0)return r.exitCode(t)}function Ey(t,i,r,o){return t?{state:"ongoing",label:o.running}:vd(i,r,o)!==void 0?{state:"error",label:o.failed}:{state:"done",label:o.done}}function Y2(t){return t.map((i,r)=>i.style===void 0?i.text:d.jsx("span",{style:i.style,children:i.text},r))}function by({command:t,cwd:i,home:r,output:o,exitCode:s,signal:u,running:c=!1,maxLines:f=_y,className:h,labels:m}){const x=m,y=o??"",v=M.useMemo(()=>{const S=ey(y),$=S[S.length-1];return S.length>1&&$!==void 0&&$.every(q=>q.text==="")?S.slice(0,-1):S},[y]),[C,k]=M.useState(!1),{copied:N,onCopy:b}=iy(y),_=M.useCallback(()=>{k(S=>!S)},[]),T=vd(s,u,x),I=Ey(c,s,u,x),U=M.useMemo(()=>(t.endsWith(`
80
- `)?t.slice(0,-1):t).split(`
81
- `),[t]),Z=v.every(S=>S.every($=>$.text.trim()==="")),{hidden:F,capped:W,headLines:Y,tailLines:ee}=ty(v.length,f,C);return d.jsxs("div",{className:rt(Rt.block,h),"data-terminal":"","data-running":c?"":void 0,children:[d.jsxs("div",{className:Rt.header,children:[d.jsxs("div",{className:Rt.prompt,children:[d.jsx("span",{className:Rt.runStateLabel,children:I.label}),U.map((S,$)=>d.jsxs("div",{className:Rt.promptLine,children:[$===0&&d.jsx($1,{state:I.state,className:Rt.runState}),d.jsx("span",{className:Rt.cwd,children:$>0||i===void 0?"$":Sy(i,r)}),d.jsx("span",{className:Rt.command,children:S})]},$))]}),T!==void 0&&d.jsx(ay,{className:Rt.status,children:T}),!c&&!Z&&d.jsx("button",{type:"button",className:Rt.copyButton,onClick:b,children:N?x.copied:x.copy})]}),!c&&(Z?d.jsx("div",{className:Rt.empty,children:x.noOutput}):d.jsxs("div",{className:Rt.output,children:[(W?v.slice(0,Y):v).map((S,$)=>d.jsx("div",{className:Rt.line,children:Y2(S)},$)),F>0&&d.jsx("button",{type:"button",className:Rt.expand,"aria-expanded":C,"aria-label":C?x.collapseAria:x.expandAria(F),onClick:_,children:C?x.collapse:x.expand(F)}),W&&v.slice(v.length-ee).map((S,$)=>d.jsx("div",{className:Rt.line,children:Y2(S)},$))]}))]})}const jy="_root_1xitv_9",Ly="_row_1xitv_14",Ny="_leading_1xitv_45",Iy="_title_1xitv_52",My="_sep_1xitv_60",Ty="_chevron_1xitv_64",Py="_summary_1xitv_81",zy="_errorSummary_1xitv_154",Dy="_bodyWrap_1xitv_159",Ry="_inspectButton_1xitv_168",Ay="_ioCard_1xitv_212",Fy="_ioSection_1xitv_224",Oy="_ioLabel_1xitv_253",By="_ioDivider_1xitv_262",$y="_ioText_1xitv_268",Hy="_terminalBody_1xitv_289",ht={root:jy,row:Ly,leading:Ny,title:Iy,sep:My,chevron:Ty,summary:Py,errorSummary:zy,bodyWrap:Dy,inspectButton:Ry,ioCard:Ay,ioSection:Fy,ioLabel:Oy,ioDivider:By,ioText:$y,terminalBody:Hy},Vy="_root_1ulqw_1",Uy="_chevron_1ulqw_21",Wy="_label_1ulqw_35",g1={root:Vy,chevron:Uy,label:Wy},qy="_root_xlier_4",Zy="_trigger_xlier_19",Qy="_label_xlier_39",y1={root:qy,trigger:Zy,label:Qy},Gy="_panel_vk36c_10",Yy="_title_vk36c_34",Ky="_titleRule_vk36c_44",Xy="_titleValue_vk36c_49",Jy="_titleLabel_vk36c_54",ex="_details_vk36c_67",tx="_route_vk36c_87",nx="_reasoning_vk36c_91",cr={panel:Gy,title:Yy,titleRule:Ky,titleValue:Xy,titleLabel:Jy,details:ex,route:tx,reasoning:nx},rx="_actions_qoqwk_5",ix="_timeEnd_qoqwk_26",lx="_action_qoqwk_5",x1={actions:rx,timeEnd:ix,action:lx};function ox(t){try{const i=JSON.parse(t.text),r=i.command??i.file_path??i.path??i.url??i.query??i.pattern;if(typeof r=="string")return r}catch{}return t.text}function sx({block:t,result:i,running:r,onInspect:o,cwd:s}){const[u,c]=M.useState(!1),f=(i==null?void 0:i.blocks.map(v=>v.text).join(`
82
- `))??null,h=i!=null&&i.isError?"error":i?"ok":r?"running":"pending",m=t.toolName==="bash"||t.toolName==="pwsh",x={bash:"Bash",pwsh:"PowerShell",read:"读取",write:"写入",edit:"编辑",grep:"搜索",glob:"搜索"}[t.toolName||""]||t.toolName||"工具调用",y=ox(t);return d.jsx("div",{className:ht.root,"data-state":h,"data-tool":t.toolName,children:d.jsx(yd,{icon:d.jsx(d5,{size:14}),title:x,open:u,onToggle:()=>c(v=>!v),rowClassName:ht.row,leadingClassName:ht.leading,titleClassName:ht.title,chevronClassName:ht.chevron,collapsedContent:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:ht.sep,"aria-hidden":!0}),d.jsx("span",{className:`${ht.summary} ${h==="error"?ht.errorSummary:""}`,children:h==="error"?f==null?void 0:f.split(`
83
- `,1)[0]:y})]}),children:d.jsxs("div",{className:ht.bodyWrap,children:[m?d.jsx(by,{command:y,cwd:s,output:f??void 0,running:f===null,exitCode:i!=null&&i.isError?1:i?0:void 0,maxLines:1/0,className:ht.terminalBody,labels:{signal:v=>`信号 ${v}`,exitCode:v=>`退出码 ${v}`,running:"运行中",failed:"失败",done:"已完成",copy:"复制",copied:"已复制",noOutput:"无输出",collapseAria:"收起输出",collapse:"收起",expandAria:v=>`展开其余 ${v} 行输出`,expand:v=>`… 其余 ${v} 行`}}):d.jsxs("div",{className:ht.ioCard,children:[d.jsxs("div",{className:ht.ioSection,children:[d.jsx("span",{className:ht.ioLabel,children:"IN"}),d.jsx("span",{className:ht.ioText,children:t.text})]}),f!==null&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:ht.ioDivider,"aria-hidden":!0}),d.jsxs("div",{className:ht.ioSection,children:[d.jsx("span",{className:ht.ioLabel,children:"OUT"}),d.jsx("span",{className:ht.ioText,"data-error":(i==null?void 0:i.isError)||void 0,children:f||"无文本输出"})]})]})]}),o&&d.jsx("button",{className:ht.inspectButton,type:"button",onClick:o,children:"查看轨迹"})]})})})}function ax({toolCount:t,messageCount:i,open:r,onToggle:o}){const s=[t>0&&`${t} 次工具调用`,i>0&&`${i} 条消息`].filter(Boolean);return d.jsxs("button",{type:"button",className:g1.root,"data-open":r||void 0,"aria-expanded":r,onClick:o,children:[d.jsx("span",{className:g1.label,children:s.length?s.join(" · "):"已思考"}),d.jsx(gl,{className:g1.chevron})]})}function Tr(t){return`${t.toLocaleString()} tok`}function ux({usage:t,model:i}){const[r,o]=M.useState(!1),s=M.useRef(null),u=M.useRef(null),[c,f]=M.useState(null);M.useLayoutEffect(()=>{if(!r)return;const x=()=>{var N,b;const C=(N=s.current)==null?void 0:N.getBoundingClientRect(),k=(b=u.current)==null?void 0:b.getBoundingClientRect();C&&k&&f({top:Math.max(12,Math.min(window.innerHeight-k.height-12,C.top-k.height-8)),left:Math.max(12,Math.min(C.left,window.innerWidth-k.width-12))})};x();const y=C=>{var k,N;!((k=s.current)!=null&&k.contains(C.target))&&!((N=u.current)!=null&&N.contains(C.target))&&o(!1)},v=C=>{C.key==="Escape"&&o(!1)};return document.addEventListener("pointerdown",y),document.addEventListener("keydown",v),document.addEventListener("scroll",x,!0),window.addEventListener("resize",x),()=>{document.removeEventListener("pointerdown",y),document.removeEventListener("keydown",v),document.removeEventListener("scroll",x,!0),window.removeEventListener("resize",x)}},[r]);const h=t.input+t.cacheRead+t.cacheWrite,m=h>0?Math.round(t.cacheRead/h*100):null;return d.jsxs("span",{ref:s,className:y1.root,children:[d.jsxs("button",{type:"button",className:y1.trigger,"aria-haspopup":"dialog","aria-expanded":r,onClick:()=>o(x=>!x),children:[d.jsx(S1,{}),d.jsxs("span",{className:y1.label,children:["用量 ",Tr(t.totalTokens)]})]}),r&&_l.createPortal(d.jsxs("div",{ref:u,className:cr.panel,role:"dialog","aria-label":"本轮用量",style:c??{top:-1e3,left:-1e3},children:[d.jsxs("div",{className:cr.title,children:[d.jsxs("span",{className:cr.titleLabel,children:[d.jsx(S1,{}),"本轮用量"]}),d.jsx("span",{className:cr.titleValue,children:Tr(t.totalTokens)})]}),d.jsx("div",{className:cr.titleRule,"aria-hidden":!0}),d.jsxs("dl",{className:cr.details,children:[i&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"提供方 / 模型"}),d.jsx("dd",{className:cr.route,children:i})]}),m!==null&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"缓存命中"}),d.jsxs("dd",{children:[m,"%"]})]}),d.jsx("dt",{children:"未缓存输入"}),d.jsx("dd",{children:Tr(t.input)}),d.jsx("dt",{children:"缓存读取"}),d.jsx("dd",{children:Tr(t.cacheRead)}),d.jsx("dt",{children:"缓存写入"}),d.jsx("dd",{children:Tr(t.cacheWrite)}),d.jsx("dt",{children:"输出"}),d.jsxs("dd",{children:[Tr(t.output),t.reasoning!==void 0&&d.jsxs("span",{className:cr.reasoning,children:["(其中推理 ",Tr(t.reasoning),")"]})]})]})]}),document.body)]})}function cx({text:t,timestamp:i,usage:r,model:o}){const[s,u]=M.useState(!1);return d.jsxs("div",{className:x1.actions,children:[t&&d.jsx("button",{className:x1.action,type:"button","aria-label":s?"已复制":"复制回复",onClick:()=>{navigator.clipboard.writeText(t).then(()=>{u(!0),window.setTimeout(()=>u(!1),1e3)})},children:d.jsx(s5,{})}),r&&d.jsx(ux,{usage:r,model:o}),i&&d.jsx("time",{className:x1.timeEnd,dateTime:i,children:new Date(i).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})})]})}function Cd(t){const i=[];for(const r of t){(r.role==="user"||i.length===0)&&i.push({id:r.id,index:i.length+1,messages:[],usage:null});const o=i[i.length-1];if(o.messages.push(r),r.usage){const s=o.usage;o.usage={input:((s==null?void 0:s.input)??0)+r.usage.input,output:((s==null?void 0:s.output)??0)+r.usage.output,cacheRead:((s==null?void 0:s.cacheRead)??0)+r.usage.cacheRead,cacheWrite:((s==null?void 0:s.cacheWrite)??0)+r.usage.cacheWrite,totalTokens:((s==null?void 0:s.totalTokens)??0)+r.usage.totalTokens,cost:((s==null?void 0:s.cost)??0)+r.usage.cost,...(s==null?void 0:s.reasoning)!==void 0||r.usage.reasoning!==void 0?{reasoning:((s==null?void 0:s.reasoning)??0)+(r.usage.reasoning??0)}:{}}}}return i}function dx(t){const i=new Set(t.flatMap(r=>r.blocks.filter(o=>o.kind==="toolCall"&&o.toolCallId).map(o=>o.toolCallId)));return new Map(t.filter(r=>r.role==="tool"&&r.toolCallId&&i.has(r.toolCallId)).map(r=>[r.toolCallId,r]))}const fx="_root_10hwk_2",px="_ledger_10hwk_16",K2={root:fx,ledger:px},hx="_tablePane_m0qel_15",mx="_table_m0qel_15",gx="_eventColumn_m0qel_136",yx="_contentColumn_m0qel_140",xx="_event_m0qel_136",vx="_selectionRail_m0qel_330",Cx="_turnLabel_m0qel_392",wx="_eventInner_m0qel_435",kx="_kindSlot_m0qel_443",_x="_content_m0qel_140",Sx="_kindTag_m0qel_463",Ex="_kindTagLabel_m0qel_491",bx="_user_m0qel_594",jx="_assistantVioletBright_m0qel_687",Lx="_toolAmber_m0qel_704",Nx="_contentText_m0qel_722",Ix="_collapsedTurnContent_m0qel_753",Mx="_collapsedTurnEllipsis_m0qel_762",Tx="_collapsedTurnText_m0qel_770",Px="_resultPreview_m0qel_777",zx="_resultRequest_m0qel_791",Dx="_inlineResultText_m0qel_792",Rx="_toolCallNameTypeface_m0qel_799",Ax="_toolCallPayload_m0qel_805",Fx="_inlineResult_m0qel_792",Ox="_arrow_m0qel_834",Bx="_error_m0qel_840",$x="_overview_m0qel_844",Hx="_details_m0qel_848",Vx="_detailsHeader_m0qel_898",Ux="_detailsTitle_m0qel_909",Wx="_requestDetailsDot_m0qel_917",qx="_requestDetailsName_m0qel_926",Zx="_detailsLocation_m0qel_931",Qx="_close_m0qel_940",Gx="_detailBody_m0qel_1021",Yx="_markdownPayload_m0qel_1062",Kx="_overviewHeading_m0qel_1188",Xx="_payload_m0qel_1341",Ne={tablePane:hx,table:mx,eventColumn:gx,contentColumn:yx,event:xx,selectionRail:vx,turnLabel:Cx,eventInner:wx,kindSlot:kx,content:_x,kindTag:Sx,kindTagLabel:Ex,user:bx,assistantVioletBright:jx,toolAmber:Lx,contentText:Nx,collapsedTurnContent:Ix,collapsedTurnEllipsis:Mx,collapsedTurnText:Tx,resultPreview:Px,resultRequest:zx,inlineResultText:Dx,toolCallNameTypeface:Rx,toolCallPayload:Ax,inlineResult:Fx,arrow:Ox,error:Bx,overview:$x,details:Hx,detailsHeader:Vx,detailsTitle:Ux,requestDetailsDot:Wx,requestDetailsName:qx,detailsLocation:Zx,close:Qx,detailBody:Gx,markdownPayload:Yx,overviewHeading:Kx,payload:Xx},Jx="_root_wxaz8_1",ev="_plot_wxaz8_14",tv="_labels_wxaz8_22",nv="_track_wxaz8_53",rv="_lanes_wxaz8_118",iv="_span_wxaz8_153",di={root:Jx,plot:ev,labels:tv,track:nv,lanes:rv,span:iv},lv="_root_15786_1",ov="_inner_15786_12",sv="_actions_15786_22",av="_toggle_15786_29",uv="_toggleIcon_15786_59",cv="_action_15786_22",dv="_actionIcon_15786_163",fv="_search_15786_168",pv="_searchIcon_15786_192",hv="_searchInput_15786_196",an={root:lv,inner:ov,actions:sv,toggle:av,toggleIcon:uv,action:cv,actionIcon:dv,search:fv,searchIcon:pv,searchInput:hv},mv="_timelineButton_1dmz1_1",gv="_turnLabelButton_1dmz1_3",yv="_empty_1dmz1_5",v1={timelineButton:mv,turnLabelButton:gv,empty:yv};function R1(t){return t.replace(/\s+/g," ").trim()}function xv(t){try{return JSON.stringify(JSON.parse(t))}catch{return R1(t)}}function vv(t){const i=new Map(t.filter(o=>o.role==="tool"&&o.toolCallId).map(o=>[o.toolCallId,o]));let r=0;return Cd(t).flatMap(o=>{const s=[],u=new Set(o.messages.flatMap(c=>c.blocks.filter(f=>f.kind==="toolCall"&&f.toolCallId).map(f=>f.toolCallId)));for(const c of o.messages)if(!(c.role==="tool"&&c.toolCallId&&u.has(c.toolCallId)))for(const[f,h]of c.blocks.entries()){const m=c.role==="user"?"user":c.role==="tool"||h.kind==="toolCall"?"tool":"message",x=h.kind==="toolCall"&&h.toolCallId?i.get(h.toolCallId):void 0;s.push({id:`${c.id}-${f}`,...h.toolCallId||c.toolCallId?{callId:h.toolCallId??c.toolCallId}:{},kind:m,label:m==="tool"?"工具":c.role==="user"?"用户":"助手",...m==="tool"?{toolName:h.kind==="toolCall"?h.toolName||"工具":c.toolName||"工具"}:{},text:h.text,preview:h.kind==="toolCall"?xv(h.text):R1(h.text),...x?{result:R1(x.blocks.map(y=>y.text).join(" "))}:{},timestamp:c.timestamp,...c.usage&&f===c.blocks.length-1?{usage:c.usage}:{},...c.isError||x!=null&&x.isError?{error:!0}:{},turn:o.index,index:++r})}return s})}function Oo(t){return t===void 0?"":t.toLocaleString()}function Cv({messages:t,inspectCallId:i}){var ee;const r=M.useMemo(()=>vv(t),[t]),o=((ee=r.at(-1))==null?void 0:ee.turn)??0,[s,u]=M.useState(""),[c,f]=M.useState(null),[h,m]=M.useState(new Set),[x,y]=M.useState(!1),[v,C]=M.useState(!1),k=M.useRef(null);M.useEffect(()=>{var S;i&&f(((S=r.find($=>$.callId===i))==null?void 0:S.id)??null)},[i,r]);const N=r.find(S=>S.id===c)??null,b=s.trim().toLocaleLowerCase(),_=r.filter(S=>!h.has(S.turn)&&(!x||S.kind!=="tool")&&(!b||`${S.label} ${S.toolName??""} ${S.preview} ${S.result??""}`.toLocaleLowerCase().includes(b))),T=new Map;for(const S of _){const $=T.get(S.turn)??[];$.push(S),T.set(S.turn,$)}const I=new Map;for(const S of r)I.set(S.turn,(I.get(S.turn)??0)+1);const U=Array.from({length:o},(S,$)=>$+1).flatMap(S=>h.has(S)?[{type:"collapsed",turn:S,count:I.get(S)??0}]:(T.get(S)??[]).map((K,q)=>({type:"record",record:K,firstInTurn:q===0}))),Z=r.length?Date.parse(r[0].timestamp):0,F=r.length?Date.parse(r[r.length-1].timestamp):Z,W=Math.max(1,F-Z),Y=S=>{var $,K;f(S.id),(K=($=k.current)==null?void 0:$.querySelector(`[data-record-index="${S.index}"]`))==null||K.scrollIntoView({block:"center",behavior:"smooth"})};return d.jsxs("div",{className:K2.root,"data-conversation-composer-overlay":!0,"aria-label":"会话轨迹",children:[d.jsx("div",{className:an.root,role:"toolbar","aria-label":"轨迹工具栏",children:d.jsxs("div",{className:an.inner,children:[d.jsxs("div",{className:an.actions,children:[d.jsxs("button",{type:"button",className:an.toggle,"aria-pressed":v,title:v?"均匀排列事件":"按实际时长排列事件",onClick:()=>C(S=>!S),children:[d.jsxs("svg",{className:an.toggleIcon,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[d.jsx("circle",{cx:"8",cy:"8",r:"5.25"}),d.jsx("path",{d:"M8 4.75V8l2.25 1.5"})]}),"时长"]}),d.jsxs("button",{type:"button",className:an.action,"aria-pressed":o>0&&h.size===o,"aria-label":o>0&&h.size===o?"展开轮次":"折叠轮次",onClick:()=>m(S=>S.size===o?new Set:new Set(Array.from({length:o},($,K)=>K+1))),children:[d.jsx("span",{className:an.actionIcon,"aria-hidden":"true",children:h.size===o?"⊞":"⊟"}),"轮次"]}),d.jsxs("button",{type:"button",className:an.action,"aria-pressed":x,"aria-label":x?"展开调用":"折叠调用",onClick:()=>y(S=>!S),children:[d.jsx("span",{className:an.actionIcon,"aria-hidden":"true",children:x?"⊞":"⊟"}),"调用"]})]}),d.jsxs("label",{className:an.search,children:[d.jsx(a3,{size:11,className:an.searchIcon}),d.jsx("input",{type:"search",className:an.searchInput,"aria-label":"搜索轨迹",placeholder:"搜索",value:s,onChange:S=>u(S.target.value)})]})]})}),d.jsx("section",{className:di.root,"aria-label":"会话时间线",children:d.jsxs("div",{className:di.plot,children:[d.jsxs("div",{className:di.labels,"aria-hidden":"true",children:[d.jsx("span",{children:"输入"}),d.jsx("span",{children:"模型"}),d.jsx("span",{children:"工具"})]}),d.jsx("div",{className:di.track,children:d.jsx("div",{className:di.lanes,style:{"--trajectory-domain-left":"0%","--trajectory-domain-width":"100%"},children:r.map(S=>{const $=v?(Date.parse(S.timestamp)-Z)/W:(S.index-1)/Math.max(1,r.length);return d.jsx("button",{type:"button",title:`${S.toolName??S.label} · ${S.preview.slice(0,80)}`,"aria-label":`第 ${S.index} 条:${S.toolName??S.label}`,className:`${di.span} ${v1.timelineButton}`,"data-timeline-span":S.kind==="tool"?"tool":S.kind==="user"?"user":"message","data-equal-duration":"true","data-current":c===S.id||void 0,"data-error":S.error||void 0,style:{"--trajectory-span-left":`${Math.min(99,Math.max(0,$*100))}%`,"--trajectory-span-width":"0%","--trajectory-span-gap":"0px","--trajectory-span-lane":S.kind==="user"?0:S.kind==="tool"?2:1},onClick:()=>Y(S)},S.id)})})})]})}),d.jsxs("div",{className:K2.ledger,children:[d.jsx("div",{ref:k,className:Ne.tablePane,children:d.jsxs("table",{className:Ne.table,"data-scroll-ready":"true","aria-label":"轨迹记录",children:[d.jsxs("colgroup",{children:[d.jsx("col",{className:Ne.eventColumn}),d.jsx("col",{className:Ne.contentColumn})]}),d.jsxs("tbody",{children:[U.map(S=>S.type==="collapsed"?d.jsxs("tr",{tabIndex:0,"data-collapsed-summary":"turn","data-turn-start":"true","aria-label":`展开第 ${S.turn} 轮`,onClick:()=>m($=>{const K=new Set($);return K.delete(S.turn),K}),onKeyDown:$=>{($.key==="Enter"||$.key===" ")&&($.preventDefault(),m(K=>{const q=new Set(K);return q.delete(S.turn),q}))},children:[d.jsx("td",{className:Ne.event,children:d.jsxs("span",{className:Ne.turnLabel,children:["第 ",S.turn," 轮"]})}),d.jsx("td",{className:Ne.content,children:d.jsxs("span",{className:Ne.collapsedTurnContent,children:[d.jsx("span",{className:Ne.collapsedTurnEllipsis,children:"…"}),d.jsxs("span",{className:Ne.collapsedTurnText,children:[S.count," 条记录,点击展开"]})]})})]},`collapsed-${S.turn}`):d.jsxs("tr",{tabIndex:0,"data-record-index":S.record.index,"data-kind":S.record.kind,"data-turn-start":S.firstInTurn||void 0,"data-error":S.record.error||void 0,"data-selected":c===S.record.id||void 0,"aria-selected":c===S.record.id,"aria-label":`第 ${S.record.turn} 轮,${S.record.label},${S.record.preview}`,onClick:()=>Y(S.record),onKeyDown:$=>{($.key==="Enter"||$.key===" ")&&($.preventDefault(),Y(S.record))},children:[d.jsxs("td",{className:Ne.event,children:[S.firstInTurn&&d.jsx("button",{type:"button",className:v1.turnLabelButton,"aria-label":`折叠第 ${S.record.turn} 轮`,onClick:$=>{$.stopPropagation(),m(K=>new Set([...K,S.record.turn]))},children:d.jsxs("span",{className:Ne.turnLabel,children:["第 ",S.record.turn," 轮"]})}),d.jsx("div",{className:Ne.eventInner,children:d.jsx("span",{className:Ne.kindSlot,children:d.jsx("span",{className:`${Ne.kindTag} ${S.record.kind==="user"?Ne.user:S.record.kind==="tool"?Ne.toolAmber:Ne.assistantVioletBright}`,children:d.jsx("span",{className:Ne.kindTagLabel,children:S.record.label})})})}),c===S.record.id&&d.jsx("span",{className:Ne.selectionRail,"aria-hidden":"true"})]}),d.jsx("td",{className:Ne.content,children:d.jsxs("span",{className:S.record.result===void 0?Ne.contentText:Ne.resultPreview,title:S.record.result===void 0?S.record.preview:`${S.record.label} ${S.record.preview} → ${S.record.result}`,children:[d.jsxs("span",{className:S.record.result===void 0?void 0:Ne.resultRequest,children:[S.record.kind==="tool"&&d.jsx("span",{className:Ne.toolCallNameTypeface,children:S.record.toolName}),d.jsx("span",{className:S.record.kind==="tool"?Ne.toolCallPayload:void 0,children:S.record.preview})]}),S.record.result!==void 0&&d.jsxs("span",{className:`${Ne.inlineResult} ${S.record.error?Ne.error:""}`,children:[d.jsx("span",{className:Ne.arrow,children:"→"}),d.jsx("span",{className:Ne.inlineResultText,children:S.record.result})]})]})})]},S.record.id)),U.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:2,className:v1.empty,children:r.length===0?"暂无轨迹":"没有匹配的记录"})})]})]})}),N&&d.jsxs("aside",{className:Ne.details,"aria-label":"轨迹详情",children:[d.jsxs("div",{className:Ne.detailsHeader,children:[d.jsxs("span",{className:Ne.detailsTitle,children:[N.kind==="tool"?d.jsx("span",{className:Ne.requestDetailsDot}):d.jsx(S1,{size:14}),d.jsx("span",{className:Ne.requestDetailsName,children:N.toolName??N.label}),d.jsxs("span",{className:Ne.detailsLocation,children:["第 ",N.turn," 轮 · #",N.index]})]}),d.jsx("button",{type:"button",className:Ne.close,"aria-label":"关闭详情",onClick:()=>f(null),children:d.jsx(ts,{})})]}),d.jsxs("div",{className:Ne.detailBody,children:[d.jsxs("dl",{className:Ne.overview,children:[d.jsxs("div",{children:[d.jsx("dt",{children:"时间"}),d.jsx("dd",{children:new Date(N.timestamp).toLocaleString("zh-CN")})]}),N.callId&&d.jsxs("div",{children:[d.jsx("dt",{children:"调用 ID"}),d.jsx("dd",{children:N.callId})]}),N.usage&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{children:[d.jsx("dt",{children:"输入"}),d.jsx("dd",{children:Oo(N.usage.input)})]}),d.jsxs("div",{children:[d.jsx("dt",{children:"缓存读取"}),d.jsx("dd",{children:Oo(N.usage.cacheRead)})]}),d.jsxs("div",{children:[d.jsx("dt",{children:"缓存写入"}),d.jsx("dd",{children:Oo(N.usage.cacheWrite)})]}),d.jsxs("div",{children:[d.jsx("dt",{children:"输出"}),d.jsx("dd",{children:Oo(N.usage.output)})]})]})]}),d.jsx("div",{className:Ne.overviewHeading,children:"内容"}),N.kind==="tool"?d.jsx("pre",{className:Ne.payload,children:N.text}):d.jsx("div",{className:Ne.markdownPayload,children:d.jsx(gd,{text:N.text})}),N.result!==void 0&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:Ne.overviewHeading,children:"结果"}),d.jsx("pre",{className:Ne.payload,children:N.result})]})]})]})]})]})}const wv="_root_aie2r_1",kv="_trigger_aie2r_9",_v="_triggerLabel_aie2r_45",Sv="_triggerEffort_aie2r_56",Ev="_triggerIcon_aie2r_67",bv="_chevron_aie2r_88",jv="_chevronOpen_aie2r_94",Lv="_menu_aie2r_101",Nv="_empty_aie2r_132",Iv="_groups_aie2r_123",Mv="_group_aie2r_123",Tv="_groupTitle_aie2r_179",Pv="_option_aie2r_191",zv="_selected_aie2r_216",Dv="_optionCopy_aie2r_225",Rv="_modelName_aie2r_232",Av="_check_aie2r_242",Fv="_cell_aie2r_252",Ov="_cellLabel_aie2r_275",Bv="_cellValue_aie2r_280",$v="_cellChevron_aie2r_290",$e={root:wv,trigger:kv,triggerLabel:_v,triggerEffort:Sv,triggerIcon:Ev,chevron:bv,chevronOpen:jv,menu:Lv,empty:Nv,groups:Iv,group:Mv,groupTitle:Tv,option:Pv,selected:zv,optionCopy:Dv,modelName:Rv,check:Av,cell:Fv,cellLabel:Ov,cellValue:Bv,cellChevron:$v},X2={off:"关闭",minimal:"极低",low:"低",medium:"中",high:"高",xhigh:"极高"};function Hv({openSignal:t=0,current:i,models:r,disabled:o,onSelect:s,thinkingLevel:u,thinkingLevels:c,onSelectThinkingLevel:f}){const[h,m]=M.useState(!1),x=M.useRef(t);M.useEffect(()=>{t!==x.current&&(x.current=t,o||m(!0))},[t,o]);const[y,v]=M.useState("root"),[C,k]=M.useState(!1),[N,b]=M.useState({visibility:"hidden",left:0,top:0}),_=M.useId(),T=M.useRef(null),I=M.useRef(null),U=M.useRef(null),Z=M.useMemo(()=>{const q=new Map;for(const A of r)q.set(A.provider,[...q.get(A.provider)??[],A]);return[...q]},[r]),F=r.find(q=>`${q.provider}/${q.id}`===i),W=(F==null?void 0:F.name)||i||"Pi 模型",Y=c.length>1&&u?X2[u]??u:null,ee=(q=!1)=>{var A;m(!1),v("root"),q&&((A=I.current)==null||A.focus())};M.useEffect(()=>{if(!h)return;const q=A=>{var D,ie;!((D=T.current)!=null&&D.contains(A.target))&&!((ie=U.current)!=null&&ie.contains(A.target))&&ee()};return document.addEventListener("mousedown",q),()=>document.removeEventListener("mousedown",q)},[h]),M.useLayoutEffect(()=>{if(!h||!I.current||!U.current)return;const q=()=>{if(!I.current||!U.current)return;const A=I.current.getBoundingClientRect(),D=U.current.getBoundingClientRect(),ie=Math.max(16,Math.min(A.right-D.width,innerWidth-D.width-16)),ce=A.top-D.height-8>=16?A.top-D.height-8:Math.min(A.bottom+8,innerHeight-D.height-16);b({left:ie,top:ce})};return q(),window.addEventListener("resize",q),window.addEventListener("scroll",q,!0),()=>{window.removeEventListener("resize",q),window.removeEventListener("scroll",q,!0)}},[h,y,r.length]);const S=q=>{var ie,ce;if(q.key==="Escape"){q.preventDefault(),y==="root"?ee(!0):v("root");return}if(q.key!=="ArrowDown"&&q.key!=="ArrowUp")return;q.preventDefault();const A=[...((ie=U.current)==null?void 0:ie.querySelectorAll('button[role^="menuitem"]'))??[]].filter(V=>!V.disabled),D=A.indexOf(document.activeElement);(ce=A[(D+(q.key==="ArrowDown"?1:-1)+A.length)%A.length])==null||ce.focus()},$=async q=>{if(`${q.provider}/${q.id}`===i){ee(!0);return}k(!0);try{await s(q.provider,q.id),ee(!0)}catch{}finally{k(!1)}},K=async q=>{if(q===u){ee(!0);return}k(!0);try{await f(q),ee(!0)}catch{}finally{k(!1)}};return d.jsxs("div",{ref:T,className:$e.root,onKeyDown:S,children:[d.jsxs("button",{ref:I,className:$e.trigger,type:"button","aria-label":`切换模型,当前 ${W}${Y?`,推理强度${Y}`:""}`,"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?`${_}-menu`:void 0,title:Y?`${W} · ${Y}`:W,disabled:o||C,onClick:()=>h?ee():m(!0),children:[d.jsx(c3,{className:$e.triggerIcon,size:16}),d.jsx("span",{className:$e.triggerLabel,children:W}),Y&&d.jsx("span",{className:$e.triggerEffort,children:Y}),d.jsx(gl,{className:`${$e.chevron} ${h?$e.chevronOpen:""}`})]}),h&&_l.createPortal(d.jsx("div",{ref:U,id:`${_}-menu`,role:"menu","aria-label":"选择模型",className:$e.menu,style:N,children:y==="root"?d.jsxs(d.Fragment,{children:[d.jsxs("button",{type:"button",role:"menuitem",className:$e.cell,onClick:()=>v("model"),children:[d.jsx("span",{className:$e.cellLabel,children:"模型"}),d.jsx("span",{className:$e.cellValue,children:W}),d.jsx(Qo,{className:$e.cellChevron})]}),Y&&d.jsxs("button",{type:"button",role:"menuitem",className:$e.cell,onClick:()=>v("effort"),children:[d.jsx("span",{className:$e.cellLabel,children:"推理强度"}),d.jsx("span",{className:$e.cellValue,children:Y}),d.jsx(Qo,{className:$e.cellChevron})]})]}):y==="model"?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:$e.groups,children:Z.map(([q,A])=>d.jsxs("section",{className:$e.group,role:"group","aria-label":q,children:[d.jsx("div",{className:$e.groupTitle,children:q}),A==null?void 0:A.map(D=>d.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":`${D.provider}/${D.id}`===i,className:`${$e.option} ${`${D.provider}/${D.id}`===i?$e.selected:""}`,title:D.name||D.id,disabled:C,onClick:()=>{$(D)},children:[d.jsx("span",{className:$e.optionCopy,children:d.jsx("span",{className:$e.modelName,children:D.name||D.id})}),d.jsx("span",{className:$e.check,children:`${D.provider}/${D.id}`===i&&d.jsx(_1,{})})]},D.id))]},q))}),r.length===0&&d.jsx("div",{className:$e.empty,children:"暂无可用模型"})]}):d.jsx("div",{className:$e.groups,children:c.map(q=>d.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":q===u,className:`${$e.option} ${q===u?$e.selected:""}`,disabled:C,onClick:()=>{K(q)},children:[d.jsx("span",{className:$e.optionCopy,children:d.jsx("span",{className:$e.modelName,children:X2[q]??q})}),d.jsx("span",{className:$e.check,children:q===u&&d.jsx(_1,{})})]},q))})}),document.body)]})}const Vv="_backdrop_1x9ns_1",Uv="_mask_1x9ns_13",Wv="_image_1x9ns_20",qv="_close_1x9ns_30",Bo={backdrop:Vv,mask:Uv,image:Wv,close:qv};function wd({src:t,alt:i,labels:r,onClose:o}){const s=M.useRef(null),u=M.useRef(null);return M.useEffect(()=>{var f;u.current=document.activeElement instanceof HTMLElement?document.activeElement:null,(f=s.current)==null||f.focus();const c=h=>{h.key==="Escape"&&o()};return window.addEventListener("keydown",c),()=>{var h;window.removeEventListener("keydown",c),(h=u.current)==null||h.focus()}},[o]),_l.createPortal(d.jsxs("div",{className:Bo.backdrop,role:"dialog","aria-modal":"true","aria-label":r.dialog,children:[d.jsx("div",{className:Bo.mask,"aria-hidden":"true",onMouseDown:o}),d.jsx("img",{className:Bo.image,src:t,alt:i}),d.jsx("button",{ref:s,type:"button",className:Bo.close,"aria-label":r.close,onClick:o,children:d.jsx(ts,{size:16})})]}),document.body)}const Zv="__PIW_CODE_ICON_INSTANCE__",Qv=Object.freeze({angular:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F8ECEF" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DD0031" d="M16.712 17.711H7.288l-1.204 2.916L12 24l5.916-3.373-1.204-2.916ZM14.692 0l7.832 16.855.814-12.856L14.692 0ZM9.308 0 .662 3.999l.814 12.856L9.308 0Zm-.405 13.93h6.198L12 6.396 8.903 13.93Z"/></g>',c:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF4F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#659AD2" d="M16.5921 9.1962s-.354-3.298-3.627-3.39c-3.2741-.09-4.9552 2.474-4.9552 6.14 0 3.6651 1.858 6.5972 5.0451 6.5972 3.184 0 3.5381-3.665 3.5381-3.665l6.1041.365s.36 3.31-2.196 5.836c-2.552 2.5241-5.6901 2.9371-7.8762 2.9201-2.19-.017-5.2261.034-8.1602-2.97-2.938-3.0101-3.436-5.9302-3.436-8.8002 0-2.8701.556-6.6702 4.047-9.5502C7.444.72 9.849 0 12.254 0c10.0422 0 10.7172 9.2602 10.7172 9.2602z"/></g>',clojure:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F1F7EC" stroke="#DCEAD2" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="none"><path d="M64 0C28.712 0 0 28.6 0 63.751c0 35.155 28.712 63.753 64 63.753s64-28.598 64-63.753C128 28.6 99.288 0 64 0" fill="#FFF"/><path d="M61.659 64.898a265.825 265.825 0 00-1.867 4.12c-2.322 5.241-4.894 11.62-5.834 15.706-.337 1.455-.546 3.258-.542 5.258 0 .79.043 1.622.11 2.469a30.74 30.74 0 0010.533 1.87 30.796 30.796 0 009.642-1.566 18.09 18.09 0 01-2.011-2.12c-4.11-5.221-6.403-12.872-10.031-25.737M46.485 38.96c-7.85 5.51-12.986 14.6-13.005 24.9.019 10.145 5.001 19.116 12.653 24.65 1.877-7.789 6.582-14.92 13.637-29.214a114.691 114.691 0 00-1.43-3.72c-1.955-4.884-4.776-10.556-7.294-13.124-1.283-1.342-2.84-2.502-4.561-3.492" fill="#91DC47"/><path d="M90.697 98.798c-4.05-.506-7.392-1.116-10.317-2.144a36.708 36.708 0 01-16.32 3.807c-20.293 0-36.742-16.383-36.745-36.602 0-10.97 4.852-20.805 12.528-27.512-2.053-.495-4.194-.783-6.38-.779-10.782.101-22.162 6.044-26.9 22.095-.443 2.337-.337 4.103-.337 6.197 0 31.818 25.895 57.613 57.835 57.613 19.561 0 36.841-9.682 47.305-24.489-5.66 1.405-11.103 2.077-15.763 2.091-1.747 0-3.387-.093-4.906-.277" fill="#63B132"/><path d="M79.829 87.634c.357.176 1.167.464 2.293.783 7.579-5.542 12.504-14.469 12.523-24.558h-.003c-.028-16.82-13.693-30.43-30.582-30.462a30.765 30.765 0 00-9.602 1.554c6.21 7.05 9.196 17.127 12.084 28.148l.005.013c.005.009.924 3.06 2.501 7.11 1.566 4.042 3.797 9.048 6.23 12.696 1.597 2.444 3.354 4.2 4.551 4.716" fill="#90B4FE"/><path d="M17.057 30.311c5.463-3.408 11.04-4.637 15.908-4.593 6.722.02 12.008 2.096 14.544 3.516.612.352 1.194.73 1.764 1.12a36.714 36.714 0 0114.786-3.096c20.295.003 36.747 16.386 36.75 36.601-.003 10.192-4.188 19.408-10.934 26.044a45.3 45.3 0 005.225.29c6.406.004 13.329-1.404 18.52-5.753 3.384-2.84 6.22-6.998 7.792-13.233.307-2.408.484-4.856.484-7.347 0-31.817-25.892-57.614-57.835-57.614-19.372 0-36.508 9.5-47.004 24.065z" fill="#5881D8"/></g></svg>',cmake:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F5F7" stroke="#D9E1E7" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#064F8C" d="M62.8.4L.3 123.8l68.1-57.9z"/><path fill="#249847" d="M123.8 127.7l-84-33.9L0 127.7z"/><path fill="#BE2128" d="M128 126.6L65.6 2.5l9.2 102.6z"/><path fill="#CDCDCE" d="M71.9 104l-3.1-34.9L42 92z"/></svg>',cpp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F2F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00599C" d="M22.394 6c-.167-.29-.398-.543-.652-.69L12.926.22c-.509-.294-1.34-.294-1.848 0L2.26 5.31c-.508.293-.923 1.013-.923 1.6v10.18c0 .294.104.62.271.91.167.29.398.543.652.69l8.816 5.09c.508.293 1.34.293 1.848 0l8.816-5.09c.254-.147.485-.4.652-.69.167-.29.27-.616.27-.91V6.91c.003-.294-.1-.62-.268-.91zM12 19.11c-3.92 0-7.109-3.19-7.109-7.11 0-3.92 3.19-7.11 7.11-7.11a7.133 7.133 0 016.156 3.553l-3.076 1.78a3.567 3.567 0 00-3.08-1.78A3.56 3.56 0 008.444 12 3.56 3.56 0 0012 15.555a3.57 3.57 0 003.08-1.778l3.078 1.78A7.135 7.135 0 0112 19.11zm7.11-6.715h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79zm2.962 0h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79z"/></g>',csharp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF7" stroke="#E2D7EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#9B4F96" d="M115.4 30.7L67.1 2.9c-.8-.5-1.9-.7-3.1-.7-1.2 0-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.4 1 3.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7z"/><path fill="#68217A" d="M10.7 95.3c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7 1.2 0 2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4V36.1c0-.9-.1-1.9-.6-2.8l-106.6 62z"/><path fill="#fff" d="M85.3 76.1C81.1 83.5 73.1 88.5 64 88.5c-13.5 0-24.5-11-24.5-24.5s11-24.5 24.5-24.5c9.1 0 17.1 5 21.3 12.5l13-7.5c-6.8-11.9-19.6-20-34.3-20-21.8 0-39.5 17.7-39.5 39.5s17.7 39.5 39.5 39.5c14.6 0 27.4-8 34.2-19.8l-12.9-7.6zM97 66.2l.9-4.3h-4.2v-4.7h5.1L100 51h4.9l-1.2 6.1h3.8l1.2-6.1h4.8l-1.2 6.1h2.4v4.7h-3.3l-.9 4.3h4.2v4.7h-5.1l-1.2 6h-4.9l1.2-6h-3.8l-1.2 6h-4.8l1.2-6h-2.4v-4.7H97zm4.8 0h3.8l.9-4.3h-3.8l-.9 4.3z"/></svg>',css:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#1572B6"/><text x="10" y="12.8" text-anchor="middle" font-family="Arial,sans-serif" font-size="6.2" font-weight="900" fill="#fff">CSS</text>',dart:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF7FA" stroke="#D5EAF0" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#00c4b3" d="M35.2 34.9l-8.3-8.3v59.7l.1 2.8c0 1.3.2 2.8.7 4.3l65.6 23.1 16.3-7.2-74.4-74.4z"/><path d="M27.7 93.4zm81.9 15.9l-16.3 7.2-65.4-23.1c1.3 4.8 4 10.1 7 13.2l21.3 21.2 47.6.1 5.8-18.6z" fill="#22d3c5"/><path fill="#0075c9" d="M1.7 65.1C-.4 67.3.7 72 4 75.5l14.7 14.8 9.2 3.3c-.3-1.5-.7-3-.7-4.3l-.1-2.8-.2-59.8m82.7 82.6l7.2-16.4-23-65.6c-1.5-.3-3-.6-4.3-.7l-2.9-.1-59.6.1"/><path d="M93.6 27.3c.2 0 .2 0 0 0 .2 0 .2 0 0 0zm16 82l17.7-5.8V54.8l-20.4-20.5c-3-3-8.3-5.8-13.2-7l23.1 65.6" fill="#00a8e1"/><path fill="#00c4b3" d="M90.5 18.2L75.7 3.5c-3.4-3.4-8-4.4-10.4-2.3L26.9 26.6h59.5l2.9.1c1.3 0 2.8.2 4.3.7l-3.1-9.2z"/></svg>',docker:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F4FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2496ED" d="M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"/></g>',elixir:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF6" stroke="#E3D9E8" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-a" gradientUnits="userSpaceOnUse" x1="835.592" y1="-36.546" x2="821.211" y2="553.414" gradientTransform="matrix(.1297 0 0 .2 -46.03 17.198)"><stop offset="0" stop-color="#d9d8dc"/><stop offset="1" stop-color="#fff" stop-opacity=".385"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-a)" d="M64.4.5C36.7 13.9 1.9 83.4 30.9 113.9c26.8 33.5 85.4 1.3 68.4-40.5-21.5-36-35-37.9-34.9-72.9z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-b" gradientUnits="userSpaceOnUse" x1="942.357" y1="-40.593" x2="824.692" y2="472.243" gradientTransform="matrix(.1142 0 0 .2271 -47.053 17.229)"><stop offset="0" stop-color="#8d67af" stop-opacity=".672"/><stop offset="1" stop-color="#9f8daf"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-b)" d="M64.4.2C36.8 13.6 1.9 82.9 31 113.5c10.7 12.4 28 16.5 37.7 9.1 26.4-18.8 7.4-53.1 10.4-78.5C68.1 33.9 64.2 11.3 64.4.2z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-c" gradientUnits="userSpaceOnUse" x1="924.646" y1="120.513" x2="924.646" y2="505.851" gradientTransform="matrix(.1227 0 0 .2115 -46.493 17.206)"><stop offset="0" stop-color="#26053d" stop-opacity=".762"/><stop offset="1" stop-color="#b7b4b4" stop-opacity=".278"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-c)" d="M56.7 4.3c-22.3 15.9-28.2 75-24.1 94.2 8.2 48.1 75.2 28.3 69.6-16.5-6-29.2-48.8-39.2-45.5-77.7z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-d" gradientUnits="userSpaceOnUse" x1="428.034" y1="198.448" x2="607.325" y2="559.255" gradientTransform="matrix(.1848 0 0 .1404 -42.394 17.138)"><stop offset="0" stop-color="#91739f" stop-opacity=".46"/><stop offset="1" stop-color="#32054f" stop-opacity=".54"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-d)" d="M78.8 49.8c10.4 13.4 12.7 22.6 6.8 27.9-27.7 19.4-61.3 7.4-54-37.3C22.1 63 4.5 96.8 43.3 101.6c20.8 3.6 54 2 58.9-16.1-.2-15.9-10.8-22.9-23.4-35.7z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-e" gradientUnits="userSpaceOnUse" x1="907.895" y1="540.636" x2="590.242" y2="201.281" gradientTransform="matrix(.1418 0 0 .1829 -45.23 17.18)"><stop offset="0" stop-color="#463d49" stop-opacity=".331"/><stop offset="1" stop-color="#340a50" stop-opacity=".821"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-e)" d="M38.1 36.4c-2.9 21.2 35.1 77.9 58.3 71-17.7 35.6-56.9-21.2-64-41.7 1.5-11 2.2-16.4 5.7-29.3z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-f" gradientUnits="userSpaceOnUse" x1="1102.297" y1="100.542" x2="1008.071" y2="431.648" gradientTransform="matrix(.106 0 0 .2448 -47.595 17.242)"><stop offset="0" stop-color="#715383" stop-opacity=".145"/><stop offset="1" stop-color="#f4f4f4" stop-opacity=".234"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-f)" d="M60.4 49.7c.8 7.9 3.9 20.5 0 28.8S38.7 102 43.6 115.3c11.4 24.8 37.1-4.4 36.9-19 1.1-11.8-6.6-38.7-1.8-52.5L76.5 41l-13.6-4c-2.2 3.2-3 7.5-2.5 12.7z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-g" gradientUnits="userSpaceOnUse" x1="1354.664" y1="140.06" x2="1059.233" y2="84.466" gradientTransform="matrix(.09173 0 0 .2828 -48.536 17.28)"><stop offset="0" stop-color="#a5a1a8" stop-opacity=".356"/><stop offset="1" stop-color="#370c50" stop-opacity=".582"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-g)" d="M65.3 10.8C36 27.4 48 53.4 49.3 81.6l19.1-55.4c-1.4-5.7-2.3-9.5-3.1-15.4z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#330A4C" fill-opacity=".316" d="M68.3 26.1c-14.8 11.7-14.1 31.3-18.6 54 8.1-21.3 4.1-38.2 18.6-54z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#FFF" d="M45.8 119.7c8 1.1 12.1 2.2 12.5 3 .3 4.2-11.1 1.2-12.5-3z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#EDEDED" fill-opacity=".603" d="M49.8 10.8c-6.9 7.7-14.4 21.8-18.2 29.7-1 6.5-.5 15.7.6 23.5.9-18.2 7.5-39.2 17.6-53.2z"/></svg>',env:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECD53F"/><text x="10" y="12.9" text-anchor="middle" font-family="Arial,sans-serif" font-size="5.7" font-weight="900" fill="#24292F">.ENV</text>',erlang:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FAEDF1" stroke="#EED6DE" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path d="M20.7 103.9C11 93.5 5.2 79.2 5.3 62.1 5.2 47 10 34 18.2 24.1H1v79.7l19.7.1zm90.4 0c4.2-4.5 8-9.8 11.4-15.9l-19-9.5c-6.7 10.8-16.4 20.8-29.9 20.9-19.6-.1-27.3-16.9-27.3-38.5h73.3c.1-2.4.1-3.6 0-4.7.5-12.9-2.9-23.7-9.1-32.1H127v79.7l-15.9.1zM47.5 42.4c.8-9.8 8.5-16.3 17.6-16.4 9.1 0 15.7 6.6 15.9 16.4H47.5z" fill="#A90533"/></svg>',flutter:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF7FD" stroke="#D7EAF6" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="#3FB6D3"><path d="M12.3 64.2L76.3 0h39.4L32.1 83.6zM76.3 128h39.4L81.6 93.9l34.1-34.8H76.3L42.2 93.5z"/></g><path fill="#27AACD" d="M81.6 93.9l-20-20-19.4 19.6 19.4 19.6z"/><path fill="#19599A" d="M115.7 128L81.6 93.9l-20 19.2L76.3 128z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__flutter-original-a" gradientUnits="userSpaceOnUse" x1="59.365" y1="116.36" x2="86.825" y2="99.399"><stop offset="0" stop-color="#1b4e94"/><stop offset=".63" stop-color="#1a5497"/><stop offset="1" stop-color="#195a9b"/></linearGradient><path fill="url(#__PIW_CODE_ICON_INSTANCE__flutter-original-a)" d="M61.6 113.1l30.8-8.4-10.8-10.8z"/></svg>',git:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#F05032" d="M13.09 23.549a1.54 1.54 0 0 1-2.18 0L.451 13.089a1.54 1.54 0 0 1 0-2.179l7.191-7.19 2.733 2.733a1.85 1.85 0 0 0 .964 2.326v6.66a1.849 1.849 0 1 0 1.54 0V8.957l2.508 2.508a1.85 1.85 0 1 0 1.09-1.09l-2.634-2.634a1.85 1.85 0 0 0-2.378-2.377L8.73 2.63 10.91.451a1.54 1.54 0 0 1 2.179 0l10.459 10.46a1.54 1.54 0 0 1 0 2.179z"/></g>',go:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E7F9FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00ADD8" d="M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z"/></g>',graphql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEAF6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#E10098" d="M12.002 0a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.54 4.931a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm0 9.862a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm-8.54 4.931a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.276zm-8.542-4.93a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.542-3.378L2.953 6.777v10.448l9.049 5.224 9.047-5.224V6.777zm0 1.601 7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0 6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"/></g>',haskell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3F0F7" stroke="#E1D9EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#463B63" d="M0 110.2L30.1 65 0 19.9h22.6L52.7 65l-30.1 45.1H0z"/><path fill="#5E5187" d="M30.1 110.2L60.2 65 30.1 19.9h22.6l60.2 90.3H90.4L71.5 81.9l-18.8 28.2H30.1z"/><path fill="#904F8C" d="M102.9 83.8l-10-15.1H128v15.1h-25.1zM87.8 61.3l-10-15.1H128v15.1H87.8z"/></svg>',ini:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#6E7781"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">INI</text>',java:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F7FA" stroke="#D9E2E8" stroke-width=".5"/><svg x="2.5" y="2.5" width="15" height="15" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#0074BD" d="M47.617 98.12s-4.767 2.774 3.397 3.71c9.892 1.13 14.947.968 25.845-1.092 0 0 2.871 1.795 6.873 3.351-24.439 10.47-55.308-.607-36.115-5.969zm-2.988-13.665s-5.348 3.959 2.823 4.805c10.567 1.091 18.91 1.18 33.354-1.6 0 0 1.993 2.025 5.132 3.131-29.542 8.64-62.446.68-41.309-6.336z"/><path fill="#EA2D2E" d="M69.802 61.271c6.025 6.935-1.58 13.17-1.58 13.17s15.289-7.891 8.269-17.777c-6.559-9.215-11.587-13.792 15.635-29.58 0 .001-42.731 10.67-22.324 34.187z"/><path fill="#0074BD" d="M102.123 108.229s3.529 2.91-3.888 5.159c-14.102 4.272-58.706 5.56-71.094.171-4.451-1.938 3.899-4.625 6.526-5.192 2.739-.593 4.303-.485 4.303-.485-4.953-3.487-32.013 6.85-13.743 9.815 49.821 8.076 90.817-3.637 77.896-9.468zM49.912 70.294s-22.686 5.389-8.033 7.348c6.188.828 18.518.638 30.011-.326 9.39-.789 18.813-2.474 18.813-2.474s-3.308 1.419-5.704 3.053c-23.042 6.061-67.544 3.238-54.731-2.958 10.832-5.239 19.644-4.643 19.644-4.643zm40.697 22.747c23.421-12.167 12.591-23.86 5.032-22.285-1.848.385-2.677.72-2.677.72s.688-1.079 2-1.543c14.953-5.255 26.451 15.503-4.823 23.725 0-.002.359-.327.468-.617z"/><path fill="#EA2D2E" d="M76.491 1.587S89.459 14.563 64.188 34.51c-20.266 16.006-4.621 25.13-.007 35.559-11.831-10.673-20.509-20.07-14.688-28.815C58.041 28.42 81.722 22.195 76.491 1.587z"/><path fill="#0074BD" d="M52.214 126.021c22.476 1.437 57-.8 57.817-11.436 0 0-1.571 4.032-18.577 7.231-19.186 3.612-42.854 3.191-56.887.874 0 .001 2.875 2.381 17.647 3.331z"/></svg>',javascript:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#F0DB4F" d="M1.408 1.408h125.184v125.185H1.408z"/><path fill="#323330" d="M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981-3.832-1.761-8.104-3.022-9.377-5.926-.452-1.69-.512-2.642-.226-3.665.821-3.32 4.784-4.355 7.925-3.403 2.023.678 3.938 2.237 5.093 4.724 5.402-3.498 5.391-3.475 9.163-5.879-1.381-2.141-2.118-3.129-3.022-4.045-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235-5.926 6.724-4.236 18.492 2.975 23.335 7.104 5.332 17.54 6.545 18.873 11.531 1.297 6.104-4.486 8.08-10.234 7.378-4.236-.881-6.592-3.034-9.139-6.949-4.688 2.713-4.688 2.713-9.508 5.485 1.143 2.499 2.344 3.63 4.26 5.795 9.068 9.198 31.76 8.746 35.83-5.176.165-.478 1.261-3.666.38-8.581zM69.462 58.943H57.753l-.048 30.272c0 6.438.333 12.34-.714 14.149-1.713 3.558-6.152 3.117-8.175 2.427-2.059-1.012-3.106-2.451-4.319-4.485-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901 4.462 2.678 10.459 3.499 16.731 2.059 4.082-1.189 7.604-3.652 9.448-7.401 2.666-4.915 2.094-10.864 2.07-17.444.06-10.735.001-21.468.001-32.237z"/></svg></g>',json:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F4F4" stroke="#DDDDDD" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__PIW_CODE_ICON_INSTANCE__a" x1="-670.564" x2="-583.105" y1="-280.831" y2="-368.306" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__PIW_CODE_ICON_INSTANCE__a)" fill-rule="evenodd" d="M63.895 94.303c27.433 37.398 54.281-10.438 54.241-39.205-.046-34.012-34.518-53.021-54.263-53.021C32.182 2.077 2 28.269 2 64.105 2 103.937 36.596 126 63.873 126c-6.172-.889-26.742-5.296-27.019-52.674-.186-32.044 10.453-44.846 26.974-39.214.37.137 18.223 7.18 18.223 30.187 0 22.908-18.156 30.004-18.156 30.004z" clip-rule="evenodd"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__b" x1="-579.148" x2="-666.607" y1="-364.34" y2="-276.873" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__PIW_CODE_ICON_INSTANCE__b)" fill-rule="evenodd" d="M63.863 34.086C45.736 27.838 23.53 42.778 23.53 72.703 23.53 121.565 59.739 126 64.128 126 95.818 126 126 99.808 126 63.972 126 24.14 91.404 2.077 64.127 2.077c7.555-1.046 40.719 8.176 40.719 53.504 0 29.559-24.764 45.651-40.87 38.776-.37-.137-18.223-7.18-18.223-30.187 0-22.91 18.11-30.085 18.11-30.084z" clip-rule="evenodd"/></svg>',kotlin:'<defs><linearGradient id="__PIW_CODE_ICON_INSTANCE__k" x1="1" y1="19" x2="19" y2="1"><stop stop-color="#0095D5"/><stop offset=".5" stop-color="#7F52FF"/><stop offset="1" stop-color="#F88909"/></linearGradient></defs><rect x="1" y="1" width="18" height="18" rx="4" fill="url(#__PIW_CODE_ICON_INSTANCE__k)"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FFFFFF" d="M24 24H0V0h24L12 12Z"/></g>',lua:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECECF7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#000080" d="M.38 10.377l-.272-.037c-.048.344-.082.695-.101 1.041l.275.016c.018-.34.051-.682.098-1.02zM4.136 3.289l-.184-.205c-.258.232-.509.48-.746.734l.202.188c.231-.248.476-.49.728-.717zM5.769 2.059l-.146-.235c-.296.186-.586.385-.863.594l.166.219c.27-.203.554-.399.843-.578zM1.824 18.369c.185.297.384.586.593.863l.22-.164c-.205-.271-.399-.555-.58-.844l-.233.145zM1.127 16.402l-.255.104c.129.318.274.635.431.943l.005.01.245-.125-.005-.01c-.153-.301-.295-.611-.421-.922zM.298 9.309l.269.063c.076-.332.168-.664.272-.986l-.261-.087c-.108.332-.202.672-.28 1.01zM.274 12.42l-.275.01c.012.348.04.699.083 1.043l.273-.033c-.042-.336-.069-.68-.081-1.02zM.256 14.506c.073.34.162.682.264 1.014l.263-.08c-.1-.326-.187-.658-.258-.99l-.269.056zM11.573.275L11.563 0c-.348.012-.699.039-1.044.082l.034.273c.338-.041.68-.068 1.02-.08zM23.221 8.566c.1.326.186.66.256.992l.27-.059c-.072-.34-.16-.682-.262-1.014l-.264.081zM17.621 1.389c-.309-.164-.627-.314-.947-.449l-.107.252c.314.133.625.281.926.439l.128-.242zM15.693.572c-.332-.105-.67-.199-1.01-.277l-.063.268c.332.076.664.168.988.273l.085-.264zM6.674 1.545c.298-.15.606-.291.916-.418L7.486.873c-.317.127-.632.272-.937.428l-.015.008.125.244.015-.008zM23.727 11.588l.275-.01a11.797 11.797 0 0 0-.082-1.045l-.273.033c.041.338.068.682.08 1.022zM13.654.105c-.346-.047-.696-.08-1.043-.098l-.014.273c.339.018.683.051 1.019.098l.038-.273zM9.544.527l-.058-.27c-.34.072-.681.16-1.014.264l.081.262c.325-.099.659-.185.991-.256zM1.921 5.469l.231.15c.185-.285.384-.566.592-.834l-.217-.17c-.213.276-.417.563-.606.854zM.943 7.318l.253.107c.132-.313.28-.625.439-.924l-.243-.128c-.163.307-.314.625-.449.945zM18.223 21.943l.145.234c.295-.186.586-.385.863-.594l-.164-.219c-.272.204-.557.4-.844.579zM21.248 19.219l.217.17c.215-.273.418-.561.607-.854l-.23-.148c-.186.285-.385.564-.594.832zM19.855 20.715l.184.203c.258-.23.51-.479.746-.732l-.201-.188c-.23.248-.477.488-.729.717zM22.359 17.504l.244.129c.162-.307.314-.625.449-.945l-.254-.107a11.27 11.27 0 0 1-.439.923zM23.617 13.629l.273.039c.049-.346.082-.695.102-1.043l-.275-.014c-.018.338-.051.682-.1 1.018zM23.156 15.621l.264.086c.107-.332.201-.67.279-1.01l-.268-.063c-.077.333-.169.665-.275.987zM22.453 6.672c.154.303.297.617.424.932l.256-.104c-.131-.322-.277-.643-.436-.953l-.244.125zM8.296 23.418c.331.107.67.201 1.009.279l.062-.268c-.331-.076-.663-.168-.986-.273l-.085.262zM10.335 23.889c.345.049.696.082 1.043.102l.014-.275c-.339-.018-.682-.051-1.019-.098l-.038.271zM17.326 22.449c-.303.154-.613.297-.926.424l.104.256c.318-.131.639-.275.947-.434l.004-.002-.123-.246-.006.002zM4.613 21.467c.274.213.562.418.854.605l.149-.23c-.285-.184-.565-.385-.833-.592l-.17.217zM12.417 23.725l.009.275c.348-.014.699-.041 1.045-.084l-.035-.271c-.336.041-.68.068-1.019.08zM6.37 22.604c.307.162.625.314.946.449l.107-.254c-.313-.133-.624-.279-.924-.439l-.129.244zM3.083 20.041c.233.258.48.51.734.746l.188-.201c-.249-.23-.49-.477-.717-.729l-.205.184zM14.445 23.475l.059.27c.34-.074.68-.162 1.014-.266l-.082-.262c-.325.099-.659.185-.991.258zM21.18.129A2.689 2.689 0 1 0 21.18 5.507 2.689 2.689 0 1 0 21.18.129zM15.324 15.447c0 .471.314.66.852.66.67 0 1.297-.396 1.297-1.016v-.645c-.23.107-.379.141-1.107.24-.735.109-1.042.306-1.042.761zM12 2.818c-5.07 0-9.18 4.109-9.18 9.18 0 5.068 4.11 9.18 9.18 9.18 5.07 0 9.18-4.111 9.18-9.18 0-5.07-4.11-9.18-9.18-9.18zm-2.487 13.77H5.771v-6.023h.769v5.346h2.974v.677zm4.13 0h-.619v-.67c-.405.57-.811.793-1.446.793-.843 0-1.38-.463-1.38-1.182v-3.271h.686v3c0 .52.347.85.893.85.719 0 1.181-.578 1.181-1.461v-2.389h.686v4.33zm-.53-8.393c0-1.484 1.205-2.689 2.689-2.689s2.688 1.205 2.688 2.689-1.203 2.688-2.688 2.688-2.689-1.203-2.689-2.688zm5.567 7.856v.52c-.223.059-.33.074-.471.074-.34 0-.637-.238-.711-.57-.381.406-.918.637-1.471.637-.877 0-1.422-.463-1.422-1.248 0-.527.256-.916.76-1.123.266-.107.414-.141 1.389-.264.545-.066.719-.191.719-.48v-.182c0-.412-.348-.645-.967-.645-.645 0-.957.24-1.016.77h-.693c.041-1 .686-1.404 1.734-1.404 1.066 0 1.627.412 1.627 1.182v2.412c0 .215.133.338.373.338.041-.002.074-.002.149-.017z"/></g>',makefile:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#427819"/><path fill="#fff" d="m5 4.5 2.3 2.3 2.3-2.3L11 5.9 8.7 8.2l2.4 2.4L9.7 12l-2.4-2.4L5 11.9 3.6 10.5l2.3-2.3-2.3-2.3zm7 6.5h4v1.5h-4zm0 2.8h4v1.5h-4z"/>',node:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EDF7EA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#539E43" d="M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"/></g>',"objective-c":'<rect x="1" y="1" width="18" height="18" rx="4" fill="#438EFF"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">OC</text>',perl:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF2F7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#0073A1" d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0m.157 1.103a10.91 10.91 0 0 1 9.214 5.404c-1.962.152-3.156 1.698-5.132 3.553-2.81 2.637-4.562.582-5.288-.898-.447-1.004-.847-2.117-1.544-2.769A.4.4 0 0 1 9.3 6.02l.08-.37a.083.083 0 0 0-.074-.1c-.33-.022-.601.093-.84.368a2.5 2.5 0 0 0-.375-.064c-.863-.093-1.036.345-1.873.345H5.81c-.758 0-1.391.361-1.7.892-.248.424-.257.884.15.93-.126.445.292.62 1.224.192 0 0 .733.421 1.749.421.549 0 .712.087.914.967.486 2.138 2.404 5.655 6.282 5.655l.118.166c.659.934.86 2.113.48 3.184-.307.867-.697 1.531-.697 1.531q.01.178.01.349c0 .81-.175 1.553-.387 2.23a10.91 10.91 0 0 1-11.989-6.342A10.91 10.91 0 0 1 7.608 2.01a10.9 10.9 0 0 1 4.55-.907M7.524 6.47c.288 0 .575.231.477.272a.4.4 0 0 1-.1.02.38.38 0 0 1-.375.327.384.384 0 0 1-.378-.326.4.4 0 0 1-.101-.02c-.098-.042.19-.273.477-.273m10.193 10.49q.05 0 .101.007.326.054.694.096.135.01.269.026a13.4 13.4 0 0 0 2.846-.007 10.9 10.9 0 0 1-2.007 2.705c-.11-.23-.547-1.19-.573-2.196q-.156-.01-.313-.026-.13-.014-.256-.022a18 18 0 0 1-.735-.102h-.003c-.032 0-.06.01-.074.035l-.003.012q-.081.265-.182.544c.428 1.084.652 2.078.652 2.078.14.22.258.432.363.64a11 11 0 0 1-2.168 1.264 11 11 0 0 1-1.205.426 13.3 13.3 0 0 1 1.055-2.531s.678-1.445 1.027-2.564v-.004a.55.55 0 0 1 .512-.38"/></g>',php:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0EFF8" stroke="#DDDCEB" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#777BB4" d="M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z"/></g>',powershell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#2671BE"/><path fill="#fff" fill-opacity=".16" d="M5.5 4h11l-3.5 12H2z"/><path d="m6.5 6.5 3 3-4.2 3.2m4 1h4" fill="none" stroke="#fff" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>',protobuf:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#4285F4"/><path fill="none" stroke="#fff" stroke-width="1.2" stroke-linejoin="round" d="m10 3.5 6 3.3v6.4l-6 3.3-6-3.3V6.8z"/><path fill="#fff" d="M6.5 6.5h4.4c2.3 0 3.6 1.2 3.6 3.1s-1.3 3.1-3.6 3.1H9v2H6.5zM9 8.4v2.4h1.6c.8 0 1.2-.4 1.2-1.2s-.4-1.2-1.2-1.2z"/>',python:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F4F7" stroke="#D5DBE5" stroke-width=".5"/><g transform="matrix(.126 0 0 .126 2.30 2.24)"><path fill="#3776AB" d="M 60.510156,6.3979729 C 55.926503,6.4192712 51.549217,6.8101906 47.697656,7.4917229 C 36.35144,9.4962267 34.291407,13.691825 34.291406,21.429223 L 34.291406,31.647973 L 61.103906,31.647973 L 61.103906,35.054223 L 34.291406,35.054223 L 24.228906,35.054223 C 16.436447,35.054223 9.6131468,39.73794 7.4789058,48.647973 C 5.0170858,58.860939 4.9078907,65.233996 7.4789058,75.897973 C 9.3848341,83.835825 13.936449,89.491721 21.728906,89.491723 L 30.947656,89.491723 L 30.947656,77.241723 C 30.947656,68.391821 38.6048,60.585475 47.697656,60.585473 L 74.478906,60.585473 C 81.933857,60.585473 87.885159,54.447309 87.885156,46.960473 L 87.885156,21.429223 C 87.885156,14.162884 81.755176,8.7044455 74.478906,7.4917229 C 69.872919,6.7249976 65.093809,6.3766746 60.510156,6.3979729 z M 46.010156,14.616723 C 48.779703,14.616723 51.041406,16.915369 51.041406,19.741723 C 51.041404,22.558059 48.779703,24.835473 46.010156,24.835473 C 43.23068,24.835472 40.978906,22.558058 40.978906,19.741723 C 40.978905,16.91537 43.23068,14.616723 46.010156,14.616723 z "/><path fill="#FFD43B" d="M 91.228906,35.054223 L 91.228906,46.960473 C 91.228906,56.191228 83.403011,63.960472 74.478906,63.960473 L 47.697656,63.960473 C 40.361823,63.960473 34.291407,70.238956 34.291406,77.585473 L 34.291406,103.11672 C 34.291406,110.38306 40.609994,114.65704 47.697656,116.74172 C 56.184987,119.23733 64.323893,119.68835 74.478906,116.74172 C 81.229061,114.78733 87.885159,110.85411 87.885156,103.11672 L 87.885156,92.897973 L 61.103906,92.897973 L 61.103906,89.491723 L 87.885156,89.491723 L 101.29141,89.491723 C 109.08387,89.491723 111.98766,84.056315 114.69765,75.897973 C 117.49698,67.499087 117.37787,59.422197 114.69765,48.647973 C 112.77187,40.890532 109.09378,35.054223 101.29141,35.054223 L 91.228906,35.054223 z M 76.166406,99.710473 C 78.945884,99.710476 81.197656,101.98789 81.197656,104.80422 C 81.197654,107.63057 78.945881,109.92922 76.166406,109.92922 C 73.396856,109.92922 71.135156,107.63057 71.135156,104.80422 C 71.135158,101.98789 73.396853,99.710473 76.166406,99.710473 z "/></g>',r:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF2F6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#276DC3" d="M12 2.746c-6.627 0-12 3.599-12 8.037 0 3.897 4.144 7.144 9.64 7.88V16.26c-2.924-.915-4.925-2.755-4.925-4.877 0-3.035 4.084-5.494 9.12-5.494 5.038 0 8.757 1.683 8.757 5.494 0 1.976-.999 3.379-2.662 4.272.09.066.174.128.258.216.169.149.25.363.372.544 2.128-1.45 3.44-3.437 3.44-5.631 0-4.44-5.373-8.038-12-8.038zm-2.111 4.99v13.516l4.093-.002-.002-5.291h1.1c.225 0 .321.066.549.25.272.22.715.982.715.982l2.164 4.063 4.627-.002-2.864-4.826s-.086-.193-.265-.383a2.22 2.22 0 00-.582-.416c-.422-.214-1.149-.434-1.149-.434s3.578-.264 3.578-3.826c0-3.562-3.744-3.63-3.744-3.63zm4.127 2.93l2.478.002s1.149-.062 1.149 1.127c0 1.165-1.149 1.17-1.149 1.17h-2.478zm1.754 6.119c-.494.049-1.012.079-1.54.088v1.807a16.622 16.622 0 002.37-.473l-.471-.891s-.108-.183-.248-.394c-.039-.054-.08-.098-.111-.137z"/></g>',react:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#20232A"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#61DAFB" d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"/></g>',ruby:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEDEC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#CC342D" d="M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z"/></g>',rust:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3E6DD" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2B2B2B" d="M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z"/></g>',scala:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCECEB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DC322F" d="M4.589 24c4.537 0 13.81-1.516 14.821-3v-5.729c-.957 1.408-10.284 2.912-14.821 2.912V24zM4.589 16.365c4.537 0 13.81-1.516 14.821-3V7.636c-.957 1.408-10.284 2.912-14.821 2.912v5.817zM4.589 8.729c4.537 0 13.81-1.516 14.821-3V0C18.453 1.408 9.126 2.912 4.589 2.912v5.817z"/></g>',shell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#303642"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#7EE787" d="M21.038,4.9l-7.577-4.498C13.009,0.134,12.505,0,12,0c-0.505,0-1.009,0.134-1.462,0.403L2.961,4.9 C2.057,5.437,1.5,6.429,1.5,7.503v8.995c0,1.073,0.557,2.066,1.462,2.603l7.577,4.497C10.991,23.866,11.495,24,12,24 c0.505,0,1.009-0.134,1.461-0.402l7.577-4.497c0.904-0.537,1.462-1.529,1.462-2.603V7.503C22.5,6.429,21.943,5.437,21.038,4.9z M15.17,18.946l0.013,0.646c0.001,0.078-0.05,0.167-0.111,0.198l-0.383,0.22c-0.061,0.031-0.111-0.007-0.112-0.085L14.57,19.29 c-0.328,0.136-0.66,0.169-0.872,0.084c-0.04-0.016-0.057-0.075-0.041-0.142l0.139-0.584c0.011-0.046,0.036-0.092,0.069-0.121 c0.012-0.011,0.024-0.02,0.036-0.026c0.022-0.011,0.043-0.014,0.062-0.006c0.229,0.077,0.521,0.041,0.802-0.101 c0.357-0.181,0.596-0.545,0.592-0.907c-0.003-0.328-0.181-0.465-0.613-0.468c-0.55,0.001-1.064-0.107-1.072-0.917 c-0.007-0.667,0.34-1.361,0.889-1.8l-0.007-0.652c-0.001-0.08,0.048-0.168,0.111-0.2l0.37-0.236 c0.061-0.031,0.111,0.007,0.112,0.087l0.006,0.653c0.273-0.109,0.511-0.138,0.726-0.088c0.047,0.012,0.067,0.076,0.048,0.151 l-0.144,0.578c-0.011,0.044-0.036,0.088-0.065,0.116c-0.012,0.012-0.025,0.021-0.038,0.028c-0.019,0.01-0.038,0.013-0.057,0.009 c-0.098-0.022-0.332-0.073-0.699,0.113c-0.385,0.195-0.52,0.53-0.517,0.778c0.003,0.297,0.155,0.387,0.681,0.396 c0.7,0.012,1.003,0.318,1.01,1.023C16.105,17.747,15.736,18.491,15.17,18.946z M19.143,17.859c0,0.06-0.008,0.116-0.058,0.145 l-1.916,1.164c-0.05,0.029-0.09,0.004-0.09-0.056v-0.494c0-0.06,0.037-0.093,0.087-0.122l1.887-1.129 c0.05-0.029,0.09-0.004,0.09,0.056V17.859z M20.459,6.797l-7.168,4.427c-0.894,0.523-1.553,1.109-1.553,2.187v8.833 c0,0.645,0.26,1.063,0.66,1.184c-0.131,0.023-0.264,0.039-0.398,0.039c-0.42,0-0.833-0.114-1.197-0.33L3.226,18.64 c-0.741-0.44-1.201-1.261-1.201-2.142V7.503c0-0.881,0.46-1.702,1.201-2.142l7.577-4.498c0.363-0.216,0.777-0.33,1.197-0.33 c0.419,0,0.833,0.114,1.197,0.33l7.577,4.498c0.624,0.371,1.046,1.013,1.164,1.732C21.686,6.557,21.12,6.411,20.459,6.797z"/></g>',solidity:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0F0F0" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#363636" d="M4.409 6.608L7.981.255l3.572 6.353H4.409zM8.411 0l3.569 6.348L15.552 0H8.411zm4.036 17.392l3.572 6.354 3.575-6.354h-7.147zm-.608-10.284h-7.43l3.715 6.605 3.715-6.605zm.428-.25h7.428L15.982.255l-3.715 6.603zM15.589 24l-3.569-6.349L8.448 24h7.141zm-3.856-6.858H4.306l3.712 6.603 3.715-6.603zm.428-.25h7.433l-3.718-6.605-3.715 6.605z"/></g>',sql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#336791"/><ellipse cx="10" cy="5.5" rx="5.8" ry="2.1" fill="#fff"/><path fill="#fff" fill-opacity=".88" d="M4.2 5.5v8.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1V5.5c0 1.2-2.6 2.1-5.8 2.1s-5.8-.9-5.8-2.1z"/><path d="M4.2 9.2c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1M4.2 12.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1" fill="none" stroke="#336791" stroke-opacity=".7" stroke-width=".7"/>',svelte:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FF3E00" d="M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"/></g>',swift:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#f05138" d="M126.33 34.06a39.32 39.32 0 00-.79-7.83 28.78 28.78 0 00-2.65-7.58 28.84 28.84 0 00-4.76-6.32 23.42 23.42 0 00-6.62-4.55 27.27 27.27 0 00-7.68-2.53c-2.65-.51-5.56-.51-8.21-.76H30.25a45.46 45.46 0 00-6.09.51 21.82 21.82 0 00-5.82 1.52c-.53.25-1.32.51-1.85.76a33.82 33.82 0 00-5 3.28c-.53.51-1.06.76-1.59 1.26a22.41 22.41 0 00-4.76 6.32 23.61 23.61 0 00-2.65 7.58 78.5 78.5 0 00-.79 7.83v60.39a39.32 39.32 0 00.79 7.83 28.78 28.78 0 002.65 7.58 28.84 28.84 0 004.76 6.32 23.42 23.42 0 006.62 4.55 27.27 27.27 0 007.68 2.53c2.65.51 5.56.51 8.21.76h63.22a45.08 45.08 0 008.21-.76 27.27 27.27 0 007.68-2.53 30.13 30.13 0 006.62-4.55 22.41 22.41 0 004.76-6.32 23.61 23.61 0 002.65-7.58 78.49 78.49 0 00.79-7.83V34.06z"/><path fill="#fefefe" d="M85 96.5c-11.11 6.13-26.38 6.76-41.75.47A64.53 64.53 0 0113.84 73a50 50 0 0010.85 6.32c15.87 7.1 31.73 6.61 42.9 0-15.9-11.66-29.4-26.82-39.46-39.2a43.47 43.47 0 01-5.29-6.82c12.16 10.61 31.5 24 38.38 27.79a271.77 271.77 0 01-27-32.34 266.8 266.8 0 0044.47 34.87c.71.38 1.26.7 1.7 1a32.7 32.7 0 001.21-3.51c3.71-12.89-.53-27.54-9.79-39.67C93.25 33.81 106 57.05 100.66 76.51c-.14.53-.29 1-.45 1.55l.19.22c10.59 12.63 7.68 26 6.35 23.5C101 91 90.37 94.33 85 96.5z"/></svg></g>',toml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F6EEEA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#9C4121" d="M.014 0h5.34v2.652H2.888v18.681h2.468V24H.015V0Zm17.622 5.049v2.78h-4.274v12.935h-3.008V7.83H6.059V5.05h11.577ZM23.986 24h-5.34v-2.652h2.467V2.667h-2.468V0h5.34v24Z"/></g>',typescript:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#fff" d="M22.67 47h99.67v73.67H22.67z"/><path data-name="original" fill="#007acc" d="M1.5 63.91v62.5h125v-125H1.5zm100.73-5a15.56 15.56 0 017.82 4.5 20.58 20.58 0 013 4c0 .16-5.4 3.81-8.69 5.85-.12.08-.6-.44-1.13-1.23a7.09 7.09 0 00-5.87-3.53c-3.79-.26-6.23 1.73-6.21 5a4.58 4.58 0 00.54 2.34c.83 1.73 2.38 2.76 7.24 4.86 8.95 3.85 12.78 6.39 15.16 10 2.66 4 3.25 10.46 1.45 15.24-2 5.2-6.9 8.73-13.83 9.9a38.32 38.32 0 01-9.52-.1 23 23 0 01-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9.34 9.34 0 011.15-.73L82 101l3.59-2.08.75 1.11a16.78 16.78 0 004.74 4.54c4 2.1 9.46 1.81 12.16-.62a5.43 5.43 0 00.69-6.92c-1-1.39-3-2.56-8.59-5-6.45-2.78-9.23-4.5-11.77-7.24a16.48 16.48 0 01-3.43-6.25 25 25 0 01-.22-8c1.33-6.23 6-10.58 12.82-11.87a31.66 31.66 0 019.49.26zm-29.34 5.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49.19 49.19 0 01.12-5.17C29.08 59 39 59 51 59h21.83z"/></svg></g>',vue:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF8F3" stroke="#D5EAE0" stroke-width=".5"/><path fill="#41B883" d="M3.5 5h3.2l3.3 5.7L13.3 5h3.2L10 16z"/><path fill="#35495E" d="M6.7 5H9l1 1.8L11 5h2.3L10 10.7z"/>',wasm:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#654ff0" d="M.223.222v127.555h127.555V.222H78.594c.014.227.036.455.036.686 0 8.08-6.55 14.626-14.63 14.626-8.078 0-14.625-6.546-14.625-14.626 0-.231.022-.459.031-.686zm29.595 68.746h8.445l5.782 30.738h.107l6.968-30.738h7.908l6.265 31.119h.106l6.597-31.119h8.284l-10.765 45.156H61.12l-6.213-30.738H54.8l-6.7 30.738h-8.557zm59.994 0h13.334l13.284 45.156h-8.77l-2.879-10.051H89.59l-2.212 10.05h-8.5ZM94.895 80.1l-3.684 16.57h11.473L98.448 80.1Z"/></svg></g>',xml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF3FA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#005FAD" d="M4.345 7.053c-.495.02-.44.725-.536 1.081-.157.583-.3 1.325-.347 1.926-.046.585-.008 1.127.066 1.719.058.46.191.767.07.89-.108.11-3.216 2.962-3.466 3.123-.26.169-.08.584.069.817.157.246.23.373.557.33.306-.042.405-.409.583-.606.228-.252 2.421-2.401 2.616-2.401.077.544.367 1.064.67 1.513.15.222.314.439.505.629.175.175.4.317.587.45.44.024.795-.301.35-.67-.17-.14-.735-.971-.927-1.43-.18-.43-.574-1.076-.146-1.428 1.494-1.23 3.72-2.262 4.247-2.313-.257 1.024-1.356 3.048-1.757 4.012-.14.333-.231.732-.185 1.094.055.434.383.774.587.806.417-.023.7-.387.946-.645.343-.357.634-.685.974-1.043.339-.356.672-.731.971-1.07.184-.207.674-.713.963-.713-.11.693-.716 1.552-.839 2.254-.125.716.531 1.596 1.217.956.623-.58 1.255-1.129 1.867-1.72.217-.208.175.037.224.242.05.208.176.91.275 1.1.18.346.496.592.897.598.362.006.727-.161.982-.414.19-.187.513-.699.154-.832-.23-.086-.217-.176-.495-.129-.172.029-.362.074-.507.179-.367-.003-.381-.89-.324-1.161.068-.327.207-.659.185-.998-.026-.418-.478-.69-.582-.72-.156-.076-.253.023-.458.212-.173.161-.363.332-.535.495-.34.322-.768.813-.942.813.305-.705.708-2.652-.643-2.48-.563.071-.95.377-1.394.71-.29.28-.683.641-.936.87-.236.216-.371.404-.496.404.132-.747 1.685-3.167.885-3.853-.158-.136-.313-.325-.515-.349a4.637 4.637 0 0 0-.833.19c-.565.18-2.78 1.28-4.19 2.289-.131.094-.214-.085-.231-.29-.087-1.058.199-2.19.496-3.188.208-.696-.557-1.225-.659-1.249zm18.177.874c-.166.364-.2.894-.248 1.319a24.307 24.307 0 0 0-1.246-.115c.238.296.691.588 1.056.724-.048.366-.434.67-.599 1.021.458-.127.676-.47.989-.821.362.22.791.627 1.26.636-.177-.376-.334-.695-.658-.966.269-.175.717-.362.924-.633-.345-.074-.718-.093-1.052-.015-.258-.284-.3-.772-.426-1.15zm-2.92.079c-.23.02-.613.49-.832.773-.807 1.039-1.542 3.15-1.661 3.542-.363 1.195-.502 2.672.28 3.722.456.612 1.258.66 2.041.434.405-.116.812-.406.95-.723.114-.263.174-.753-.404-.38-.224.145-.634.304-1.37.291-.247-.004-.651-.357-.76-.722-.192-.595-.11-1.393-.11-1.393.167-1.028.642-2.146 1.061-3.076.163-.36.658-1.259.842-1.546 0 0 .239-.373.131-.77-.031-.116-.091-.16-.168-.152zm3.072 2.976c-.12.264-.144.648-.18.956-.274-.031-.63-.066-.904-.083.172.215.501.426.766.525-.034.265-.314.486-.434.741.332-.092.49-.34.717-.596.263.16.575.456.914.462-.127-.273-.242-.504-.477-.701.195-.127.52-.262.67-.46a1.77 1.77 0 0 0-.763-.01c-.187-.206-.217-.56-.309-.834zm-1.123 2.422c-.083.183-.1.449-.125.662a12.6 12.6 0 0 0-.624-.058c.119.148.346.295.53.363-.025.184-.219.336-.301.513.23-.064.339-.236.496-.413.181.11.397.316.632.32-.088-.19-.168-.349-.33-.485.135-.087.36-.181.463-.317a1.22 1.22 0 0 0-.527-.008c-.13-.142-.151-.387-.214-.576z"/></g>',yaml:`<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEEEF" stroke="#F0D8DB" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet">
71
+ `))+1))}const d="#".repeat(s),f=i.enter("headingAtx"),p=i.enter("phrasing");u.move(d+" ");let m=i.containerPhrasing(e,{before:"# ",after:`
72
+ `,...u.current()});return/^[\t ]/.test(m)&&(m=_l(m.charCodeAt(0))+m.slice(1)),m=m?d+" "+m:d,i.options.closeAtx&&(m+=" "+d),p(),f(),m}a3.peek=Cm;function a3(e){return e.value||""}function Cm(){return"<"}u3.peek=wm;function u3(e,r,i,o){const s=pu(i),u=s==='"'?"Quote":"Apostrophe",d=i.enter("image");let f=i.enter("label");const p=i.createTracker(o);let m=p.move("![");return m+=p.move(i.safe(e.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(i.safe(e.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(f=i.enter("destinationRaw"),m+=p.move(i.safe(e.url,{before:m,after:e.title?" ":")",...p.current()}))),f(),e.title&&(f=i.enter(`title${u}`),m+=p.move(" "+s),m+=p.move(i.safe(e.title,{before:m,after:s,...p.current()})),m+=p.move(s),f()),m+=p.move(")"),d(),m}function wm(){return"!"}c3.peek=km;function c3(e,r,i,o){const s=e.referenceType,u=i.enter("imageReference");let d=i.enter("label");const f=i.createTracker(o);let p=f.move("![");const m=i.safe(e.alt,{before:p,after:"]",...f.current()});p+=f.move(m+"]["),d();const y=i.stack;i.stack=[],d=i.enter("reference");const x=i.safe(i.associationId(e),{before:p,after:"]",...f.current()});return d(),i.stack=y,u(),s==="full"||!m||m!==x?p+=f.move(x+"]"):s==="shortcut"?p=p.slice(0,-1):p+=f.move("]"),p}function km(){return"!"}d3.peek=_m;function d3(e,r,i){let o=e.value||"",s="`",u=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(o);)s+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++u<i.unsafe.length;){const d=i.unsafe[u],f=i.compilePattern(d);let p;if(d.atBreak)for(;p=f.exec(o);){let m=p.index;o.charCodeAt(m)===10&&o.charCodeAt(m-1)===13&&m--,o=o.slice(0,m)+" "+o.slice(p.index+1)}}return s+o+s}function _m(){return"`"}function f3(e,r){const i=iu(e);return!!(!r.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(i===e.url||"mailto:"+i===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}p3.peek=Sm;function p3(e,r,i,o){const s=pu(i),u=s==='"'?"Quote":"Apostrophe",d=i.createTracker(o);let f,p;if(f3(e,i)){const y=i.stack;i.stack=[],f=i.enter("autolink");let x=d.move("<");return x+=d.move(i.containerPhrasing(e,{before:x,after:">",...d.current()})),x+=d.move(">"),f(),i.stack=y,x}f=i.enter("link"),p=i.enter("label");let m=d.move("[");return m+=d.move(i.containerPhrasing(e,{before:m,after:"](",...d.current()})),m+=d.move("]("),p(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(p=i.enter("destinationLiteral"),m+=d.move("<"),m+=d.move(i.safe(e.url,{before:m,after:">",...d.current()})),m+=d.move(">")):(p=i.enter("destinationRaw"),m+=d.move(i.safe(e.url,{before:m,after:e.title?" ":")",...d.current()}))),p(),e.title&&(p=i.enter(`title${u}`),m+=d.move(" "+s),m+=d.move(i.safe(e.title,{before:m,after:s,...d.current()})),m+=d.move(s),p()),m+=d.move(")"),f(),m}function Sm(e,r,i){return f3(e,i)?"<":"["}h3.peek=bm;function h3(e,r,i,o){const s=e.referenceType,u=i.enter("linkReference");let d=i.enter("label");const f=i.createTracker(o);let p=f.move("[");const m=i.containerPhrasing(e,{before:p,after:"]",...f.current()});p+=f.move(m+"]["),d();const y=i.stack;i.stack=[],d=i.enter("reference");const x=i.safe(i.associationId(e),{before:p,after:"]",...f.current()});return d(),i.stack=y,u(),s==="full"||!m||m!==x?p+=f.move(x+"]"):s==="shortcut"?p=p.slice(0,-1):p+=f.move("]"),p}function bm(){return"["}function hu(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function Em(e){const r=hu(e),i=e.options.bulletOther;if(!i)return r==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+i+"`) to be different");return i}function jm(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function m3(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function Lm(e,r,i,o){const s=i.enter("list"),u=i.bulletCurrent;let d=e.ordered?jm(i):hu(i);const f=e.ordered?d==="."?")":".":Em(i);let p=r&&i.bulletLastUsed?d===i.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((d==="*"||d==="-")&&y&&(!y.children||!y.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(p=!0),m3(i)===d&&y){let x=-1;for(;++x<e.children.length;){const v=e.children[x];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(d=f),i.bulletCurrent=d;const m=i.containerFlow(e,o);return i.bulletLastUsed=d,i.bulletCurrent=u,s(),m}function Nm(e){const r=e.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function Im(e,r,i,o){const s=Nm(i);let u=i.bulletCurrent||hu(i);r&&r.type==="list"&&r.ordered&&(u=(typeof r.start=="number"&&r.start>-1?r.start:1)+(i.options.incrementListMarker===!1?0:r.children.indexOf(e))+u);let d=u.length+1;(s==="tab"||s==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(d=Math.ceil(d/4)*4);const f=i.createTracker(o);f.move(u+" ".repeat(d-u.length)),f.shift(d);const p=i.enter("listItem"),m=i.indentLines(i.containerFlow(e,f.current()),y);return p(),m;function y(x,v,C){return v?(C?"":" ".repeat(d))+x:(C?u:u+" ".repeat(d-u.length))+x}}function Pm(e,r,i,o){const s=i.enter("paragraph"),u=i.enter("phrasing"),d=i.containerPhrasing(e,o);return u(),s(),d}const Mm=ds(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Tm(e,r,i,o){return(e.children.some(function(d){return Mm(d)})?i.containerPhrasing:i.containerFlow).call(i,e,o)}function zm(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}g3.peek=Dm;function g3(e,r,i,o){const s=zm(i),u=i.enter("strong"),d=i.createTracker(o),f=d.move(s+s);let p=d.move(i.containerPhrasing(e,{after:s,before:f,...d.current()}));const m=p.charCodeAt(0),y=is(o.before.charCodeAt(o.before.length-1),m,s);y.inside&&(p=_l(m)+p.slice(1));const x=p.charCodeAt(p.length-1),v=is(o.after.charCodeAt(0),x,s);v.inside&&(p=p.slice(0,-1)+_l(x));const C=d.move(s+s);return u(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+p+C}function Dm(e,r,i){return i.options.strong||"*"}function Rm(e,r,i,o){return i.safe(e.value,o)}function Am(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function Fm(e,r,i){const o=(m3(i)+(i.options.ruleSpaces?" ":"")).repeat(Am(i));return i.options.ruleSpaces?o.slice(0,-1):o}const x3={blockquote:sm,break:Y2,code:pm,definition:mm,emphasis:s3,hardBreak:Y2,heading:vm,html:a3,image:u3,imageReference:c3,inlineCode:d3,link:p3,linkReference:h3,list:Lm,listItem:Im,paragraph:Pm,root:Tm,strong:g3,text:Rm,thematicBreak:Fm};function Om(){return{enter:{table:$m,tableData:X2,tableHeader:X2,tableRow:Hm},exit:{codeText:Vm,table:Bm,tableData:v1,tableHeader:v1,tableRow:v1}}}function $m(e){const r=e._align;this.enter({type:"table",align:r.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function Bm(e){this.exit(e),this.data.inTable=void 0}function Hm(e){this.enter({type:"tableRow",children:[]},e)}function v1(e){this.exit(e)}function X2(e){this.enter({type:"tableCell",children:[]},e)}function Vm(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,Um));const i=this.stack[this.stack.length-1];i.type,i.value=r,this.exit(e)}function Um(e,r){return r==="|"?r:e}function Wm(e){const r=e||{},i=r.tableCellPadding,o=r.tablePipeAlign,s=r.stringLength,u=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
73
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:d,tableCell:p,tableRow:f}};function d(C,k,P,R){return m(y(C,P,R),C.align)}function f(C,k,P,R){const j=x(C,P,R),V=m([j]);return V.slice(0,V.indexOf(`
74
+ `))}function p(C,k,P,R){const j=P.enter("tableCell"),V=P.enter("phrasing"),b=P.containerPhrasing(C,{...R,before:u,after:u});return V(),j(),b}function m(C,k){return lm(C,{align:k,alignDelimiters:o,padding:i,stringLength:s})}function y(C,k,P){const R=C.children;let j=-1;const V=[],b=k.enter("table");for(;++j<R.length;)V[j]=x(R[j],k,P);return b(),V}function x(C,k,P){const R=C.children;let j=-1;const V=[],b=k.enter("tableRow");for(;++j<R.length;)V[j]=p(R[j],C,k,P);return b(),V}function v(C,k,P){let R=x3.inlineCode(C,k,P);return P.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function qm(){return{exit:{taskListCheckValueChecked:J2,taskListCheckValueUnchecked:J2,paragraph:Qm}}}function Zm(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Gm}}}function J2(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function Qm(e){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const o=i.children[0];if(o&&o.type==="text"){const s=r.children;let u=-1,d;for(;++u<s.length;){const f=s[u];if(f.type==="paragraph"){d=f;break}}d===i&&(o.value=o.value.slice(1),o.value.length===0?i.children.shift():i.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,i.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function Gm(e,r,i,o){const s=e.children[0],u=typeof e.checked=="boolean"&&s&&s.type==="paragraph",d="["+(e.checked?"x":" ")+"] ",f=i.createTracker(o);u&&f.move(d);let p=x3.listItem(e,r,i,{...o,...f.current()});return u&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(y){return y+d}}function Km(){return[L9(),G9(),J9(),Om(),qm()]}function Ym(e){return{extensions:[N9(),K9(e),em(),Wm(e),Zm()]}}const Xm={tokenize:ig,partial:!0},y3={tokenize:lg,partial:!0},v3={tokenize:og,partial:!0},C3={tokenize:sg,partial:!0},Jm={tokenize:ag,partial:!0},w3={name:"wwwAutolink",tokenize:ng,previous:_3},k3={name:"protocolAutolink",tokenize:rg,previous:S3},Kn={name:"emailAutolink",tokenize:tg,previous:b3},Rn={};function eg(){return{text:Rn}}let Fr=48;for(;Fr<123;)Rn[Fr]=Kn,Fr++,Fr===58?Fr=65:Fr===91&&(Fr=97);Rn[43]=Kn;Rn[45]=Kn;Rn[46]=Kn;Rn[95]=Kn;Rn[72]=[Kn,k3];Rn[104]=[Kn,k3];Rn[87]=[Kn,w3];Rn[119]=[Kn,w3];function tg(e,r,i){const o=this;let s,u;return d;function d(x){return!$1(x)||!b3.call(o,o.previous)||mu(o.events)?i(x):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(x))}function f(x){return $1(x)?(e.consume(x),f):x===64?(e.consume(x),p):i(x)}function p(x){return x===46?e.check(Jm,y,m)(x):x===45||x===95||zt(x)?(u=!0,e.consume(x),p):y(x)}function m(x){return e.consume(x),s=!0,p}function y(x){return u&&s&&Vt(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(x)):i(x)}}function ng(e,r,i){const o=this;return s;function s(d){return d!==87&&d!==119||!_3.call(o,o.previous)||mu(o.events)?i(d):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Xm,e.attempt(y3,e.attempt(v3,u),i),i)(d))}function u(d){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(d)}}function rg(e,r,i){const o=this;let s="",u=!1;return d;function d(x){return(x===72||x===104)&&S3.call(o,o.previous)&&!mu(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(x),e.consume(x),f):i(x)}function f(x){if(Vt(x)&&s.length<5)return s+=String.fromCodePoint(x),e.consume(x),f;if(x===58){const v=s.toLowerCase();if(v==="http"||v==="https")return e.consume(x),p}return i(x)}function p(x){return x===47?(e.consume(x),u?m:(u=!0,p)):i(x)}function m(x){return x===null||ts(x)||Ye(x)||Wr(x)||as(x)?i(x):e.attempt(y3,e.attempt(v3,y),i)(x)}function y(x){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(x)}}function ig(e,r,i){let o=0;return s;function s(d){return(d===87||d===119)&&o<3?(o++,e.consume(d),s):d===46&&o===3?(e.consume(d),u):i(d)}function u(d){return d===null?i(d):r(d)}}function lg(e,r,i){let o,s,u;return d;function d(m){return m===46||m===95?e.check(C3,p,f)(m):m===null||Ye(m)||Wr(m)||m!==45&&as(m)?p(m):(u=!0,e.consume(m),d)}function f(m){return m===95?o=!0:(s=o,o=void 0),e.consume(m),d}function p(m){return s||o||!u?i(m):r(m)}}function og(e,r){let i=0,o=0;return s;function s(d){return d===40?(i++,e.consume(d),s):d===41&&o<i?u(d):d===33||d===34||d===38||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===60||d===63||d===93||d===95||d===126?e.check(C3,r,u)(d):d===null||Ye(d)||Wr(d)?r(d):(e.consume(d),s)}function u(d){return d===41&&o++,e.consume(d),s}}function sg(e,r,i){return o;function o(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),o):f===38?(e.consume(f),u):f===93?(e.consume(f),s):f===60||f===null||Ye(f)||Wr(f)?r(f):i(f)}function s(f){return f===null||f===40||f===91||Ye(f)||Wr(f)?r(f):o(f)}function u(f){return Vt(f)?d(f):i(f)}function d(f){return f===59?(e.consume(f),o):Vt(f)?(e.consume(f),d):i(f)}}function ag(e,r,i){return o;function o(u){return e.consume(u),s}function s(u){return zt(u)?i(u):r(u)}}function _3(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ye(e)}function S3(e){return!Vt(e)}function b3(e){return!(e===47||$1(e))}function $1(e){return e===43||e===45||e===46||e===95||zt(e)}function mu(e){let r=e.length,i=!1;for(;r--;){const o=e[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){i=!0;break}if(o._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const ug={tokenize:xg,partial:!0};function cg(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:hg,continuation:{tokenize:mg},exit:gg}},text:{91:{name:"gfmFootnoteCall",tokenize:pg},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dg,resolveTo:fg}}}}function dg(e,r,i){const o=this;let s=o.events.length;const u=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let d;for(;s--;){const p=o.events[s][1];if(p.type==="labelImage"){d=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return f;function f(p){if(!d||!d._balanced)return i(p);const m=En(o.sliceSerialize({start:d.end,end:o.now()}));return m.codePointAt(0)!==94||!u.includes(m.slice(1))?i(p):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),r(p))}}function fg(e,r){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},d={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[i+1],e[i+2],["enter",o,r],e[i+3],e[i+4],["enter",s,r],["exit",s,r],["enter",u,r],["enter",d,r],["exit",d,r],["exit",u,r],e[e.length-2],e[e.length-1],["exit",o,r]];return e.splice(i,e.length-i+1,...f),e}function pg(e,r,i){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u=0,d;return f;function f(x){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(x),e.exit("gfmFootnoteCallLabelMarker"),p}function p(x){return x!==94?i(x):(e.enter("gfmFootnoteCallMarker"),e.consume(x),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",m)}function m(x){if(u>999||x===93&&!d||x===null||x===91||Ye(x))return i(x);if(x===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return s.includes(En(o.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(x),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):i(x)}return Ye(x)||(d=!0),u++,e.consume(x),x===92?y:m}function y(x){return x===91||x===92||x===93?(e.consume(x),u++,m):m(x)}}function hg(e,r,i){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u,d=0,f;return p;function p(k){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(k){return k===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):i(k)}function y(k){if(d>999||k===93&&!f||k===null||k===91||Ye(k))return i(k);if(k===93){e.exit("chunkString");const P=e.exit("gfmFootnoteDefinitionLabelString");return u=En(o.sliceSerialize(P)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return Ye(k)||(f=!0),d++,e.consume(k),k===92?x:y}function x(k){return k===91||k===92||k===93?(e.consume(k),d++,y):y(k)}function v(k){return k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),s.includes(u)||s.push(u),$e(e,C,"gfmFootnoteDefinitionWhitespace")):i(k)}function C(k){return r(k)}}function mg(e,r,i){return e.check(jl,r,e.attempt(ug,r,i))}function gg(e){e.exit("gfmFootnoteDefinition")}function xg(e,r,i){const o=this;return $e(e,s,"gfmFootnoteDefinitionIndent",5);function s(u){const d=o.events[o.events.length-1];return d&&d[1].type==="gfmFootnoteDefinitionIndent"&&d[2].sliceSerialize(d[1],!0).length===4?r(u):i(u)}}function yg(e){let i=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:u,resolveAll:s};return i==null&&(i=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(d,f){let p=-1;for(;++p<d.length;)if(d[p][0]==="enter"&&d[p][1].type==="strikethroughSequenceTemporary"&&d[p][1]._close){let m=p;for(;m--;)if(d[m][0]==="exit"&&d[m][1].type==="strikethroughSequenceTemporary"&&d[m][1]._open&&d[p][1].end.offset-d[p][1].start.offset===d[m][1].end.offset-d[m][1].start.offset){d[p][1].type="strikethroughSequence",d[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},d[m][1].start),end:Object.assign({},d[p][1].end)},x={type:"strikethroughText",start:Object.assign({},d[m][1].end),end:Object.assign({},d[p][1].start)},v=[["enter",y,f],["enter",d[m][1],f],["exit",d[m][1],f],["enter",x,f]],C=f.parser.constructs.insideSpan.null;C&&rn(v,v.length,0,us(C,d.slice(m+1,p),f)),rn(v,v.length,0,[["exit",x,f],["enter",d[p][1],f],["exit",d[p][1],f],["exit",y,f]]),rn(d,m-1,p-m+3,v),p=m+v.length-2;break}}for(p=-1;++p<d.length;)d[p][1].type==="strikethroughSequenceTemporary"&&(d[p][1].type="data");return d}function u(d,f,p){const m=this.previous,y=this.events;let x=0;return v;function v(k){return m===126&&y[y.length-1][1].type!=="characterEscape"?p(k):(d.enter("strikethroughSequenceTemporary"),C(k))}function C(k){const P=wi(m);if(k===126)return x>1?p(k):(d.consume(k),x++,C);if(x<2&&!i)return p(k);const R=d.exit("strikethroughSequenceTemporary"),j=wi(k);return R._open=!j||j===2&&!!P,R._close=!P||P===2&&!!j,f(k)}}}class vg{constructor(){this.map=[],this.index=new Map}add(r,i,o){Cg(this,r,i,o)}consume(r){if(this.map.sort(function(u,d){return u[0]-d[0]}),this.map.length===0)return;let i=this.map.length;const o=[];for(;i>0;)i-=1,o.push(r.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),r.length=this.map[i][0];o.push(r.slice()),r.length=0;let s=o.pop();for(;s;){for(const u of s)r.push(u);s=o.pop()}this.map.length=0,this.index.clear()}}function Cg(e,r,i,o){if(i===0&&o.length===0)return;const s=e.index.get(r);if(s){s[1]+=i,s[2].push(...o);return}const u=[r,i,o];e.map.push(u),e.index.set(r,u)}function wg(e,r){let i=!1;const o=[];for(;r<e.length;){const s=e[r];if(i){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(e[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[r-1][1].type==="tableDelimiterMarker"){const u=o.length-1;o[u]=o[u]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(i=!0);r+=1}return o}function kg(){return{flow:{null:{name:"table",tokenize:_g,resolveAll:Sg}}}}function _g(e,r,i){const o=this;let s=0,u=0,d;return f;function f(D){let L=o.events.length-1;for(;L>-1;){const{type:W}=o.events[L][1];if(W==="lineEnding"||W==="linePrefix")L--;else break}const Z=L>-1?o.events[L][1].type:null,te=Z==="tableHead"||Z==="tableRow"?T:p;return te===T&&o.parser.lazy[o.now().line]?i(D):te(D)}function p(D){return e.enter("tableHead"),e.enter("tableRow"),m(D)}function m(D){return D===124||(d=!0,u+=1),y(D)}function y(D){return D===null?i(D):Se(D)?u>1?(u=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),C):i(D):Fe(D)?$e(e,y,"whitespace")(D):(u+=1,d&&(d=!1,s+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),d=!0,y):(e.enter("data"),x(D)))}function x(D){return D===null||D===124||Ye(D)?(e.exit("data"),y(D)):(e.consume(D),D===92?v:x)}function v(D){return D===92||D===124?(e.consume(D),x):x(D)}function C(D){return o.interrupt=!1,o.parser.lazy[o.now().line]?i(D):(e.enter("tableDelimiterRow"),d=!1,Fe(D)?$e(e,k,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):k(D))}function k(D){return D===45||D===58?R(D):D===124?(d=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),P):B(D)}function P(D){return Fe(D)?$e(e,R,"whitespace")(D):R(D)}function R(D){return D===58?(u+=1,d=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),j):D===45?(u+=1,j(D)):D===null||Se(D)?$(D):B(D)}function j(D){return D===45?(e.enter("tableDelimiterFiller"),V(D)):B(D)}function V(D){return D===45?(e.consume(D),V):D===58?(d=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(D))}function b(D){return Fe(D)?$e(e,$,"whitespace")(D):$(D)}function $(D){return D===124?k(D):D===null||Se(D)?!d||s!==u?B(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(D)):B(D)}function B(D){return i(D)}function T(D){return e.enter("tableRow"),ee(D)}function ee(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),ee):D===null||Se(D)?(e.exit("tableRow"),r(D)):Fe(D)?$e(e,ee,"whitespace")(D):(e.enter("data"),ie(D))}function ie(D){return D===null||D===124||Ye(D)?(e.exit("data"),ee(D)):(e.consume(D),D===92?Y:ie)}function Y(D){return D===92||D===124?(e.consume(D),ie):ie(D)}}function Sg(e,r){let i=-1,o=!0,s=0,u=[0,0,0,0],d=[0,0,0,0],f=!1,p=0,m,y,x;const v=new vg;for(;++i<e.length;){const C=e[i],k=C[1];C[0]==="enter"?k.type==="tableHead"?(f=!1,p!==0&&(ed(v,r,p,m,y),y=void 0,p=0),m={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(i,0,[["enter",m,r]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(o=!0,x=void 0,u=[0,0,0,0],d=[0,i+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(i,0,[["enter",y,r]])),s=k.type==="tableDelimiterRow"?2:y?3:1):s&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(o=!1,d[2]===0&&(u[1]!==0&&(d[0]=d[1],x=Vo(v,r,u,s,void 0,x),u=[0,0,0,0]),d[2]=i)):k.type==="tableCellDivider"&&(o?o=!1:(u[1]!==0&&(d[0]=d[1],x=Vo(v,r,u,s,void 0,x)),u=d,d=[u[1],i,0,0])):k.type==="tableHead"?(f=!0,p=i):k.type==="tableRow"||k.type==="tableDelimiterRow"?(p=i,u[1]!==0?(d[0]=d[1],x=Vo(v,r,u,s,i,x)):d[1]!==0&&(x=Vo(v,r,d,s,i,x)),s=0):s&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(d[3]=i)}for(p!==0&&ed(v,r,p,m,y),v.consume(r.events),i=-1;++i<r.events.length;){const C=r.events[i];C[0]==="enter"&&C[1].type==="table"&&(C[1]._align=wg(r.events,i))}return e}function Vo(e,r,i,o,s,u){const d=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",f="tableContent";i[0]!==0&&(u.end=Object.assign({},vi(r.events,i[0])),e.add(i[0],0,[["exit",u,r]]));const p=vi(r.events,i[1]);if(u={type:d,start:Object.assign({},p),end:Object.assign({},p)},e.add(i[1],0,[["enter",u,r]]),i[2]!==0){const m=vi(r.events,i[2]),y=vi(r.events,i[3]),x={type:f,start:Object.assign({},m),end:Object.assign({},y)};if(e.add(i[2],0,[["enter",x,r]]),o!==2){const v=r.events[i[2]],C=r.events[i[3]];if(v[1].end=Object.assign({},C[1].end),v[1].type="chunkText",v[1].contentType="text",i[3]>i[2]+1){const k=i[2]+1,P=i[3]-i[2]-1;e.add(k,P,[])}}e.add(i[3]+1,0,[["exit",x,r]])}return s!==void 0&&(u.end=Object.assign({},vi(r.events,s)),e.add(s,0,[["exit",u,r]]),u=void 0),u}function ed(e,r,i,o,s){const u=[],d=vi(r.events,i);s&&(s.end=Object.assign({},d),u.push(["exit",s,r])),o.end=Object.assign({},d),u.push(["exit",o,r]),e.add(i+1,0,u)}function vi(e,r){const i=e[r],o=i[0]==="enter"?"start":"end";return i[1][o]}const bg={name:"tasklistCheck",tokenize:jg};function Eg(){return{text:{91:bg}}}function jg(e,r,i){const o=this;return s;function s(p){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?i(p):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),u)}function u(p){return Ye(p)?(e.enter("taskListCheckValueUnchecked"),e.consume(p),e.exit("taskListCheckValueUnchecked"),d):p===88||p===120?(e.enter("taskListCheckValueChecked"),e.consume(p),e.exit("taskListCheckValueChecked"),d):i(p)}function d(p){return p===93?(e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):i(p)}function f(p){return Se(p)?r(p):Fe(p)?e.check({tokenize:Lg},r,i)(p):i(p)}}function Lg(e,r,i){return $e(e,o,"whitespace");function o(s){return s===null?i(s):r(s)}}function Ng(e){return Dd([eg(),cg(),yg(e),kg(),Eg()])}const Ig={};function Pg(e){const r=this,i=e||Ig,o=r.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),u=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),d=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(Ng(i)),u.push(Km()),d.push(Ym(i))}const gu="pi-web-locale",B1=new Set;function Mg(){var e;return typeof navigator>"u"||(((e=navigator.languages)==null?void 0:e[0])??navigator.language??"zh").toLowerCase().startsWith("zh")?"zh":"en"}function E3(){try{const e=localStorage.getItem(gu);if(e==="zh"||e==="en")return e}catch{}return Mg()}let Sl=E3();function j3(e){Sl!==e&&(Sl=e,typeof document<"u"&&(document.documentElement.lang=e==="zh"?"zh-CN":"en"),B1.forEach(r=>r()))}function Tg(){document.documentElement.lang=Sl==="zh"?"zh-CN":"en",window.addEventListener("storage",e=>{e.key===gu&&j3(E3())})}function zg(e){try{localStorage.setItem(gu,e)}catch{}j3(e)}function kr(){return E.useSyncExternalStore(e=>(B1.add(e),()=>{B1.delete(e)}),()=>Sl)}function L3(e,r,i){return e==="zh"?r:i}function _(e,r){return L3(Sl,e,r)}function Dg({children:e}){const r=E.useRef(null),[i,o]=E.useState(!1);return c.jsxs("div",{className:"pi-code-block",children:[c.jsx("div",{className:"pi-code-toolbar",children:c.jsx("button",{type:"button",onClick:async()=>{var s;try{await navigator.clipboard.writeText(((s=r.current)==null?void 0:s.textContent)??""),o(!0),window.setTimeout(()=>o(!1),1800)}catch{o(!1)}},children:i?_("已复制","Copied"):_("复制代码","Copy code")})}),c.jsx("pre",{ref:r,children:e})]})}function N3({text:e}){return c.jsx("div",{className:"pi-markdown",children:c.jsx(y9,{remarkPlugins:[Pg],components:{pre:({children:r})=>c.jsx(Dg,{children:r}),a:({href:r,children:i})=>c.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:i})},children:e})})}const Rg="_root_rf6yg_9",Ag="_row_rf6yg_16",Fg="_leading_rf6yg_29",Og="_iconIdle_rf6yg_57",$g="_chevronHover_rf6yg_63",Bg="_title_rf6yg_79",gi={root:Rg,row:Ag,leading:Fg,iconIdle:Og,chevronHover:$g,title:Bg};function I3({icon:e,title:r,open:i,onToggle:o,collapsedContent:s,children:u,rowClassName:d,leadingClassName:f,titleClassName:p,chevronClassName:m}){const y=x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),o())};return c.jsxs("div",{className:gi.root,"data-open":i||void 0,children:[c.jsxs("div",{className:`${gi.row} ${d??""}`,"data-disclosure-row":!0,"data-expandable":!0,role:"button",tabIndex:0,"aria-expanded":i,onClick:o,onKeyDown:y,children:[c.jsx("span",{className:`${gi.leading} ${f??""}`,children:i?c.jsx(wl,{className:m}):c.jsxs(c.Fragment,{children:[c.jsx("span",{className:gi.iconIdle,children:e}),c.jsx(wl,{className:`${gi.chevronHover} ${m??""}`})]})}),c.jsx("span",{className:`${gi.title} ${p??""}`,children:r}),!i&&s]}),i&&u]})}const Hg="_root_b8edg_1",Vg="_row_b8edg_11",Ug="_leading_b8edg_37",Wg="_chevron_b8edg_41",qg="_title_b8edg_45",Zg="_separator_b8edg_49",Qg="_summary_b8edg_61",Gg="_summaryText_b8edg_71",Kg="_thinkBody_b8edg_91",Qn={root:Hg,row:Vg,leading:Ug,chevron:Wg,title:qg,separator:Zg,summary:Qg,summaryText:Gg,thinkBody:Kg};function Yg({text:e,running:r}){const[i,o]=E.useState(!1),s=e.trimEnd(),u=(r?s.slice(s.lastIndexOf(`
75
+ `)+1):e.split(`
76
+ `,1)[0]).replaceAll("**","");return c.jsx("div",{className:Qn.root,"data-variant":"think","data-state":r?"running":"ok","data-expanded":i||void 0,children:c.jsx(I3,{icon:c.jsx(w5,{size:14}),title:_("思考","Thinking"),open:i,onToggle:()=>o(d=>!d),rowClassName:Qn.row,leadingClassName:Qn.leading,titleClassName:Qn.title,chevronClassName:Qn.chevron,collapsedContent:c.jsxs(c.Fragment,{children:[c.jsx("span",{className:Qn.separator,"aria-hidden":!0}),c.jsx("span",{className:Qn.summary,"data-follow-end":r||void 0,children:c.jsx("span",{className:Qn.summaryText,children:u})})]}),children:c.jsx("div",{className:Qn.thinkBody,children:e})})})}var Nl=gd(),C1,td;function Xg(){if(td)return C1;td=1;const e=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],r=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&amp;|%[A-Fa-f0-9]{2})+)/gm;class i{static escapeForHtml(s){return new i().escapeForHtml(s)}static linkify(s){return new i().linkify(s)}static ansiToHtml(s,u){return new i().ansiToHtml(s,u)}static ansiToJson(s,u){return new i().ansiToJson(s,u)}static ansiToText(s){return new i().ansiToText(s)}constructor(){this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}setupPalette(){this.PALETTE_COLORS=[];for(let f=0;f<2;++f)for(let p=0;p<8;++p)this.PALETTE_COLORS.push(e[f][p].color);let s=[0,95,135,175,215,255],u=(f,p,m)=>s[f]+", "+s[p]+", "+s[m];for(let f=0;f<6;++f)for(let p=0;p<6;++p)for(let m=0;m<6;++m)this.PALETTE_COLORS.push(u(f,p,m));let d=8;for(let f=0;f<24;++f,d+=10)this.PALETTE_COLORS.push(d+", "+d+", "+d)}escapeForHtml(s){return s.replace(/[&<>\"]/gm,u=>u=="&"?"&amp;":u=='"'?"&quot;":u=="<"?"&lt;":u==">"?"&gt;":"")}linkify(s){return s.replace(r,u=>`<a href="${u}">${u}</a>`)}ansiToHtml(s,u){return this.process(s,u,!0)}ansiToJson(s,u){return u=u||{},u.json=!0,u.clearLine=!1,this.process(s,u,!0)}ansiToText(s){return this.process(s,{},!1)}process(s,u,d){let f=this,p=s.split(/\033\[/),m=p.shift();u==null&&(u={}),u.clearLine=/\r/.test(s);let y=p.map(x=>this.processChunk(x,u,d));if(u&&u.json){let x=f.processChunkJson("");return x.content=m,x.clearLine=u.clearLine,y.unshift(x),u.remove_empty&&(y=y.filter(v=>!v.isEmpty())),y}else y.unshift(m);return y.join("")}processChunkJson(s,u,d){u=typeof u>"u"?{}:u;let f=u.use_classes=typeof u.use_classes<"u"&&u.use_classes,p=u.key=f?"class":"color",m={content:s,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:u.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:()=>!m.content},y=s.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!y)return m;m.content=y[4];let x=y[2].split(";");if(y[1]!==""||y[3]!=="m"||!d)return m;let v=this;for(;x.length>0;){let C=x.shift(),k=parseInt(C);if(isNaN(k)||k===0)v.fg=v.bg=null,v.decorations=[];else if(k===1)v.decorations.push("bold");else if(k===2)v.decorations.push("dim");else if(k===3)v.decorations.push("italic");else if(k===4)v.decorations.push("underline");else if(k===5)v.decorations.push("blink");else if(k===7)v.decorations.push("reverse");else if(k===8)v.decorations.push("hidden");else if(k===9)v.decorations.push("strikethrough");else if(k===21)v.removeDecoration("bold");else if(k===22)v.removeDecoration("bold"),v.removeDecoration("dim");else if(k===23)v.removeDecoration("italic");else if(k===24)v.removeDecoration("underline");else if(k===25)v.removeDecoration("blink");else if(k===27)v.removeDecoration("reverse");else if(k===28)v.removeDecoration("hidden");else if(k===29)v.removeDecoration("strikethrough");else if(k===39)v.fg=null;else if(k===49)v.bg=null;else if(k>=30&&k<38)v.fg=e[0][k%10][p];else if(k>=90&&k<98)v.fg=e[1][k%10][p];else if(k>=40&&k<48)v.bg=e[0][k%10][p];else if(k>=100&&k<108)v.bg=e[1][k%10][p];else if(k===38||k===48){let P=k===38;if(x.length>=1){let R=x.shift();if(R==="5"&&x.length>=1){let j=parseInt(x.shift());if(j>=0&&j<=255)if(!f)this.PALETTE_COLORS||v.setupPalette(),P?v.fg=this.PALETTE_COLORS[j]:v.bg=this.PALETTE_COLORS[j];else{let V=j>=16?"ansi-palette-"+j:e[j>7?1:0][j%8].class;P?v.fg=V:v.bg=V}}else if(R==="2"&&x.length>=3){let j=parseInt(x.shift()),V=parseInt(x.shift()),b=parseInt(x.shift());if(j>=0&&j<=255&&V>=0&&V<=255&&b>=0&&b<=255){let $=j+", "+V+", "+b;f?P?(v.fg="ansi-truecolor",v.fg_truecolor=$):(v.bg="ansi-truecolor",v.bg_truecolor=$):P?v.fg=$:v.bg=$}}}}}return v.fg===null&&v.bg===null&&v.decorations.length===0||(m.fg=v.fg,m.bg=v.bg,m.fg_truecolor=v.fg_truecolor,m.bg_truecolor=v.bg_truecolor,m.decorations=v.decorations,m.decoration=v.decorations.slice(-1).pop()||null,m.was_processed=!0),m}processChunk(s,u,d){u=u||{};let f=this.processChunkJson(s,u,d),p=u.use_classes;if(f.decorations=f.decorations.filter(k=>{if(k==="reverse"){f.fg||(f.fg=e[0][7][p?"class":"color"]),f.bg||(f.bg=e[0][0][p?"class":"color"]);let P=f.fg;f.fg=f.bg,f.bg=P;let R=f.fg_truecolor;return f.fg_truecolor=f.bg_truecolor,f.bg_truecolor=R,f.isInverted=!0,!1}return!0}),u.json)return f;if(f.isEmpty())return"";if(!f.was_processed)return f.content;let m=[],y=[],x=[],v={},C=k=>{let P=[],R;for(R in k)k.hasOwnProperty(R)&&P.push("data-"+R+'="'+this.escapeForHtml(k[R])+'"');return P.length>0?" "+P.join(" "):""};return f.isInverted&&(v["ansi-is-inverted"]="true"),f.fg&&(p?(m.push(f.fg+"-fg"),f.fg_truecolor!==null&&(v["ansi-truecolor-fg"]=f.fg_truecolor,f.fg_truecolor=null)):m.push("color:rgb("+f.fg+")")),f.bg&&(p?(m.push(f.bg+"-bg"),f.bg_truecolor!==null&&(v["ansi-truecolor-bg"]=f.bg_truecolor,f.bg_truecolor=null)):m.push("background-color:rgb("+f.bg+")")),f.decorations.forEach(k=>{if(p){y.push("ansi-"+k);return}k==="bold"?y.push("font-weight:bold"):k==="dim"?y.push("opacity:0.5"):k==="italic"?y.push("font-style:italic"):k==="hidden"?y.push("visibility:hidden"):k==="strikethrough"?x.push("line-through"):x.push(k)}),x.length&&y.push("text-decoration:"+x.join(" ")),p?'<span class="'+m.concat(y).join(" ")+'"'+C(v)+">"+f.content+"</span>":'<span style="'+m.concat(y).join(";")+'"'+C(v)+">"+f.content+"</span>"}removeDecoration(s){const u=this.decorations.indexOf(s);u>=0&&this.decorations.splice(u,1)}}return C1=i,C1}var Jg=Xg();const ex=q1(Jg),tx={"0,0,0":"var(--dsw-alias-label-primary)","255,255,255":"var(--dsw-alias-label-primary)","85,85,85":"var(--dsw-alias-label-tertiary)","187,0,0":"var(--dsw-alias-state-error-primary)","255,85,85":"var(--dsw-alias-state-error-secondary)","0,187,0":"var(--dsw-alias-state-success-primary)","0,255,0":"var(--dsw-alias-state-success-secondary)","187,187,0":"var(--dsw-alias-state-warn-primary)","255,255,85":"var(--dsw-alias-state-warn-secondary)","0,0,187":"var(--dsw-alias-state-business-primary)","85,85,255":"var(--dsw-static-blue-400)"},nx={bold:{fontWeight:700},dim:{opacity:.7},italic:{fontStyle:"italic"},underline:{textDecoration:"underline"},strikethrough:{textDecoration:"line-through"},hidden:{visibility:"hidden"}},rx=/\u001b\][^\u0007\u001b]*(?:\u0007|\u001b\\)?/g,ix=/\u001b(?!\[)[\u0020-\u002f]*[\u0030-\u007e]?/g,lx=/[\u0000-\u0007\u000b-\u001a\u001c-\u001f\u007f]/g,ox=/\r|\u0008|\u001b\[[\u0030-\u003f]*[\u0020-\u002f]*K/,sx=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*m/g,nd=8,ax=/^[\p{Mn}\p{Me}\p{Cf}\u200b-\u200f\u2060]$/u,ux=new RegExp("\\p{Script=Han}|\\p{Script=Hiragana}|\\p{Script=Katakana}|\\p{Script=Hangul}|\\p{Emoji_Presentation}|[\\uff01-\\uff60\\u3000-\\u303e]","u");function w1(e){const r=e.codePointAt(0);return r===void 0||r<4352?!1:ux.test(e)}const Cl={fg:"",bg:"",attrs:[]},cx={22:["1","2"],23:["3"],24:["4"],25:["5","6"],27:["7"],28:["8"],29:["9"]};function P3(e,r){const i=r===""?["0"]:r.split(";");let o=e;for(let s=0;s<i.length;s++){const u=String(i[s]);if(u===""||u==="0"){o=Cl;continue}if(u==="38"||u==="48"){const p=i[s+1]??"",m=p==="2"?4:p==="5"?2:0,y=i.slice(s,s+m+1).join(";");o=u==="38"?{...o,fg:y}:{...o,bg:y},s+=m;continue}const d=cx[u];if(d!==void 0){o={...o,attrs:o.attrs.filter(p=>!d.includes(p))};continue}const f=Number(u);if(u==="39"){o={...o,fg:""};continue}if(u==="49"){o={...o,bg:""};continue}if(f>=30&&f<=37||f>=90&&f<=97){o={...o,fg:u};continue}if(f>=40&&f<=47||f>=100&&f<=107){o={...o,bg:u};continue}o.attrs.includes(u)||(o={...o,attrs:[...o.attrs,u]})}return o}function rd(e){const r=[...e.attrs];return e.fg!==""&&r.push(e.fg),e.bg!==""&&r.push(e.bg),r.length===0?"":`\x1B[${r.join(";")}m`}function Uo(e,r){return e.fg===r.fg&&e.bg===r.bg&&e.attrs.length===r.attrs.length&&e.attrs.every((i,o)=>i===r.attrs[o])}function dx(e,r){var x;const i=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*([\u0040-\u007e])/g,o=[];let s=0,u=r,d=0;const f=(v,C)=>{var P;const k=o[v];(k==null?void 0:k.spacer)===!0&&v>0?o[v-1]={sgr:u,char:C}:k!==void 0&&w1(k.char)&&((P=o[v+1])==null?void 0:P.spacer)===!0&&(o[v+1]={sgr:u,char:C}),o[v]={sgr:u,char:C}},p=v=>{for(const C of v){if(C==="\r"){s=0;continue}if(C==="\b"){s=Math.max(0,s-1);continue}if(C===" "){const k=s+nd-s%nd;for(;s<k;s++)o[s]??(o[s]={sgr:u,char:" "});continue}if(ax.test(C)){const k=s>0?o[s-1]:void 0;k!==void 0&&(o[s-1]={sgr:k.sgr,char:k.char+C});continue}f(s," "),o[s]={sgr:u,char:C},s++,w1(C)&&(o[s]={sgr:u,char:"",spacer:!0},s++)}};for(const v of e.matchAll(i)){p(e.slice(d,v.index)),d=v.index+v[0].length;const C=String(v[1]),k=String(v[2]);if(k==="K"){const P=String(C.split(";")[0]);if(P==="1")for(let R=0;R<=s;R++)f(R," ");else o.length=P==="2"?0:s;continue}k==="m"&&(u=P3(u,C))}p(e.slice(d));let m="",y=r;for(let v=0;v<o.length;v++){const C=o[v]??{sgr:Cl,char:" "};Uo(C.sgr,y)||(Uo(y,Cl)||(m+="\x1B[0m"),m+=rd(C.sgr),y=C.sgr);const k=v>0&&w1(((x=o[v-1])==null?void 0:x.char)??"");m+=C.spacer===!0&&!k?" ":C.char}return Uo(y,u)||(Uo(y,Cl)||(m+="\x1B[0m"),m+=rd(u)),{text:m,sgr:u}}function fx(e){const r=[];let i=Cl;for(const o of e.split(`
77
+ `)){const s=o.replace(/\r+$/,"");if(ox.test(s)){const u=dx(s,i);r.push(u.text),i=u.sgr;continue}r.push(s);for(const u of s.matchAll(sx))i=P3(i,String(u[1]))}return r.join(`
78
+ `)}function px(e){const r=e.replace(rx,"").replace(ix,"");return fx(r).replace(lx,"")}function hx(e){const r={},i=e.bg===null?void 0:`rgb(${e.bg})`;if(i!==void 0&&(r.backgroundColor=i),e.fg!==null){const o=`rgb(${e.fg})`;r.color=i===void 0?tx[e.fg.replace(/\s+/g,"")]??o:o}for(const o of e.decorations)Object.assign(r,nx[o]);return Object.keys(r).length===0?void 0:r}function mx(e){let r=[];const i=[r];for(const o of ex.ansiToJson(px(e),{json:!0,remove_empty:!0})){const s=hx(o);for(const[u,d]of o.content.split(`
79
+ `).entries())u>0&&(r=[],i.push(r)),d!==""&&r.push({text:d,style:s})}return i}function gx(e,r,i){const o=e-r,s=Math.ceil(r/2);return{hidden:o,capped:o>0&&!i,headLines:s,tailLines:r-s}}async function xx(e){var o;if((o=navigator.clipboard)!=null&&o.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{return!1}const r=typeof document.execCommand=="function"?document.execCommand.bind(document):void 0;if(r===void 0)return!1;const i=document.createElement("textarea");i.value=e,i.setAttribute("readonly",""),i.style.position="fixed",i.style.left="-9999px",document.body.appendChild(i),i.select();try{return r("copy")}catch{return!1}finally{i.remove()}}const yx=1e3;function vx(e){const[r,i]=E.useState(!1),o=E.useCallback(()=>{r||xx(e).then(s=>{s&&(i(!0),window.setTimeout(()=>{i(!1)},yx))})},[r,e]);return{copied:r,onCopy:o}}const Cx="_pill_e3ygd_1",wx="_interactive_e3ygd_15",kx="_active_e3ygd_23",pl={pill:Cx,interactive:wx,active:kx};function _x({active:e=!1,className:r,children:i,onClick:o,...s}){return o?c.jsx("button",{type:"button",className:ot(pl.pill,pl.interactive,e&&pl.active,r),onClick:o,...s,children:i}):c.jsx("span",{className:ot(pl.pill,e&&pl.active,r),children:i})}const Sx="_block_1gdtu_1",bx="_header_1gdtu_32",Ex="_prompt_1gdtu_70",jx="_promptLine_1gdtu_78",Lx="_runState_1gdtu_91",Nx="_runStateLabel_1gdtu_99",Ix="_cwd_1gdtu_108",Px="_command_1gdtu_116",Mx="_status_1gdtu_128",Tx="_copyButton_1gdtu_136",zx="_output_1gdtu_156",Dx="_line_1gdtu_180",Rx="_expand_1gdtu_185",Ax="_empty_1gdtu_201",Ht={block:Sx,header:bx,prompt:Ex,promptLine:jx,runState:Lx,runStateLabel:Nx,cwd:Ix,command:Px,status:Mx,copyButton:Tx,output:zx,line:Dx,expand:Rx,empty:Ax},Fx=16;function Ox(e,r){const i=e.replace(/[/\\]+$/,"");if(r!==void 0&&i===r.replace(/[/\\]+$/,""))return"~";const o=i.split(/[/\\]/).pop();return o===void 0||o===""?e:o}function M3(e,r,i){if(r!==void 0)return i.signal(r);if(e!==void 0&&e!==0)return i.exitCode(e)}function $x(e,r,i,o){return e?{state:"ongoing",label:o.running}:M3(r,i,o)!==void 0?{state:"error",label:o.failed}:{state:"done",label:o.done}}function id(e){return e.map((r,i)=>r.style===void 0?r.text:c.jsx("span",{style:r.style,children:r.text},i))}function Bx({command:e,cwd:r,home:i,output:o,exitCode:s,signal:u,running:d=!1,maxLines:f=Fx,className:p,labels:m}){const y=m,x=o??"",v=E.useMemo(()=>{const D=mx(x),L=D[D.length-1];return D.length>1&&L!==void 0&&L.every(te=>te.text==="")?D.slice(0,-1):D},[x]),[C,k]=E.useState(!1),{copied:P,onCopy:R}=vx(x),j=E.useCallback(()=>{k(D=>!D)},[]),V=M3(s,u,y),b=$x(d,s,u,y),$=E.useMemo(()=>(e.endsWith(`
80
+ `)?e.slice(0,-1):e).split(`
81
+ `),[e]),B=v.every(D=>D.every(L=>L.text.trim()==="")),{hidden:T,capped:ee,headLines:ie,tailLines:Y}=gx(v.length,f,C);return c.jsxs("div",{className:ot(Ht.block,p),"data-terminal":"","data-running":d?"":void 0,children:[c.jsxs("div",{className:Ht.header,children:[c.jsxs("div",{className:Ht.prompt,children:[c.jsx("span",{className:Ht.runStateLabel,children:b.label}),$.map((D,L)=>c.jsxs("div",{className:Ht.promptLine,children:[L===0&&c.jsx(Q1,{state:b.state,className:Ht.runState}),c.jsx("span",{className:Ht.cwd,children:L>0||r===void 0?"$":Ox(r,i)}),c.jsx("span",{className:Ht.command,children:D})]},L))]}),V!==void 0&&c.jsx(_x,{className:Ht.status,children:V}),!d&&!B&&c.jsx("button",{type:"button",className:Ht.copyButton,onClick:R,children:P?y.copied:y.copy})]}),!d&&(B?c.jsx("div",{className:Ht.empty,children:y.noOutput}):c.jsxs("div",{className:Ht.output,children:[(ee?v.slice(0,ie):v).map((D,L)=>c.jsx("div",{className:Ht.line,children:id(D)},L)),T>0&&c.jsx("button",{type:"button",className:Ht.expand,"aria-expanded":C,"aria-label":C?y.collapseAria:y.expandAria(T),onClick:j,children:C?y.collapse:y.expand(T)}),ee&&v.slice(v.length-Y).map((D,L)=>c.jsx("div",{className:Ht.line,children:id(D)},L))]}))]})}const Hx="_root_1xitv_9",Vx="_row_1xitv_14",Ux="_leading_1xitv_45",Wx="_title_1xitv_52",qx="_sep_1xitv_60",Zx="_chevron_1xitv_64",Qx="_summary_1xitv_81",Gx="_errorSummary_1xitv_154",Kx="_bodyWrap_1xitv_159",Yx="_inspectButton_1xitv_168",Xx="_ioCard_1xitv_212",Jx="_ioSection_1xitv_224",ey="_ioLabel_1xitv_253",ty="_ioDivider_1xitv_262",ny="_ioText_1xitv_268",ry="_terminalBody_1xitv_289",yt={root:Hx,row:Vx,leading:Ux,title:Wx,sep:qx,chevron:Zx,summary:Qx,errorSummary:Gx,bodyWrap:Kx,inspectButton:Yx,ioCard:Xx,ioSection:Jx,ioLabel:ey,ioDivider:ty,ioText:ny,terminalBody:ry},iy="_root_1ulqw_1",ly="_chevron_1ulqw_21",oy="_label_1ulqw_35",k1={root:iy,chevron:ly,label:oy},sy="_root_xlier_4",ay="_trigger_xlier_19",uy="_label_xlier_39",_1={root:sy,trigger:ay,label:uy},cy="_panel_vk36c_10",dy="_title_vk36c_34",fy="_titleRule_vk36c_44",py="_titleValue_vk36c_49",hy="_titleLabel_vk36c_54",my="_details_vk36c_67",gy="_route_vk36c_87",xy="_reasoning_vk36c_91",xr={panel:cy,title:dy,titleRule:fy,titleValue:py,titleLabel:hy,details:my,route:gy,reasoning:xy},yy="_actions_qoqwk_5",vy="_timeEnd_qoqwk_26",Cy="_action_qoqwk_5",S1={actions:yy,timeEnd:vy,action:Cy};function wy(e){try{const r=JSON.parse(e.text),i=r.command??r.file_path??r.path??r.url??r.query??r.pattern;if(typeof i=="string")return i}catch{}return e.text}function ky({block:e,result:r,running:i,onInspect:o,cwd:s}){const[u,d]=E.useState(!1),f=(r==null?void 0:r.blocks.map(v=>v.text).join(`
82
+ `))??null,p=r!=null&&r.isError?"error":r?"ok":i?"running":"pending",m=e.toolName==="bash"||e.toolName==="pwsh",y={bash:"Bash",pwsh:"PowerShell",read:_("读取","Read"),write:_("写入","Write"),edit:_("编辑","Edit"),grep:_("搜索","Search"),glob:_("搜索","Search")}[e.toolName||""]||e.toolName||_("工具调用","Tool call"),x=wy(e);return c.jsx("div",{className:yt.root,"data-state":p,"data-tool":e.toolName,children:c.jsx(I3,{icon:c.jsx(_5,{size:14}),title:y,open:u,onToggle:()=>d(v=>!v),rowClassName:yt.row,leadingClassName:yt.leading,titleClassName:yt.title,chevronClassName:yt.chevron,collapsedContent:c.jsxs(c.Fragment,{children:[c.jsx("span",{className:yt.sep,"aria-hidden":!0}),c.jsx("span",{className:`${yt.summary} ${p==="error"?yt.errorSummary:""}`,children:p==="error"?f==null?void 0:f.split(`
83
+ `,1)[0]:x})]}),children:c.jsxs("div",{className:yt.bodyWrap,children:[m?c.jsx(Bx,{command:x,cwd:s,output:f??void 0,running:f===null,exitCode:r!=null&&r.isError?1:r?0:void 0,maxLines:1/0,className:yt.terminalBody,labels:{signal:v=>_(`信号 ${v}`,`Signal ${v}`),exitCode:v=>_(`退出码 ${v}`,`Exit code ${v}`),running:_("运行中","Running"),failed:_("失败","Failed"),done:_("已完成","Done"),copy:_("复制","Copy"),copied:_("已复制","Copied"),noOutput:_("无输出","No output"),collapseAria:_("收起输出","Collapse output"),collapse:_("收起","Collapse"),expandAria:v=>_(`展开其余 ${v} 行输出`,`Expand remaining ${v} output lines`),expand:v=>_(`… 其余 ${v} 行`,`… ${v} more lines`)}}):c.jsxs("div",{className:yt.ioCard,children:[c.jsxs("div",{className:yt.ioSection,children:[c.jsx("span",{className:yt.ioLabel,children:"IN"}),c.jsx("span",{className:yt.ioText,children:e.text})]}),f!==null&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:yt.ioDivider,"aria-hidden":!0}),c.jsxs("div",{className:yt.ioSection,children:[c.jsx("span",{className:yt.ioLabel,children:"OUT"}),c.jsx("span",{className:yt.ioText,"data-error":(r==null?void 0:r.isError)||void 0,children:f||_("无文本输出","No text output")})]})]})]}),o&&c.jsx("button",{className:yt.inspectButton,type:"button",onClick:o,children:_("查看轨迹","View trajectory")})]})})})}function _y({toolCount:e,messageCount:r,open:i,onToggle:o}){const s=[e>0&&_(`${e} 次工具调用`,`${e} tool calls`),r>0&&_(`${r} 条消息`,`${r} messages`)].filter(Boolean);return c.jsxs("button",{type:"button",className:k1.root,"data-open":i||void 0,"aria-expanded":i,onClick:o,children:[c.jsx("span",{className:k1.label,children:s.length?s.join(" · "):_("已思考","Thought")}),c.jsx(wl,{className:k1.chevron})]})}function yr(e){return`${e.toLocaleString()} tok`}function Sy({usage:e,model:r}){const[i,o]=E.useState(!1),s=E.useRef(null),u=E.useRef(null),[d,f]=E.useState(null);E.useLayoutEffect(()=>{if(!i)return;const y=()=>{var P,R;const C=(P=s.current)==null?void 0:P.getBoundingClientRect(),k=(R=u.current)==null?void 0:R.getBoundingClientRect();C&&k&&f({top:Math.max(12,Math.min(window.innerHeight-k.height-12,C.top-k.height-8)),left:Math.max(12,Math.min(C.left,window.innerWidth-k.width-12))})};y();const x=C=>{var k,P;!((k=s.current)!=null&&k.contains(C.target))&&!((P=u.current)!=null&&P.contains(C.target))&&o(!1)},v=C=>{C.key==="Escape"&&o(!1)};return document.addEventListener("pointerdown",x),document.addEventListener("keydown",v),document.addEventListener("scroll",y,!0),window.addEventListener("resize",y),()=>{document.removeEventListener("pointerdown",x),document.removeEventListener("keydown",v),document.removeEventListener("scroll",y,!0),window.removeEventListener("resize",y)}},[i]);const p=e.input+e.cacheRead+e.cacheWrite,m=p>0?Math.round(e.cacheRead/p*100):null;return c.jsxs("span",{ref:s,className:_1.root,children:[c.jsxs("button",{type:"button",className:_1.trigger,"aria-haspopup":"dialog","aria-expanded":i,onClick:()=>o(y=>!y),children:[c.jsx(N1,{}),c.jsxs("span",{className:_1.label,children:[_("用量","Usage")," ",yr(e.totalTokens)]})]}),i&&Nl.createPortal(c.jsxs("div",{ref:u,className:xr.panel,role:"dialog","aria-label":_("本轮用量","Turn usage"),style:d??{top:-1e3,left:-1e3},children:[c.jsxs("div",{className:xr.title,children:[c.jsxs("span",{className:xr.titleLabel,children:[c.jsx(N1,{}),_("本轮用量","Turn usage")]}),c.jsx("span",{className:xr.titleValue,children:yr(e.totalTokens)})]}),c.jsx("div",{className:xr.titleRule,"aria-hidden":!0}),c.jsxs("dl",{className:xr.details,children:[r&&c.jsxs(c.Fragment,{children:[c.jsx("dt",{children:_("提供方 / 模型","Provider / model")}),c.jsx("dd",{className:xr.route,children:r})]}),m!==null&&c.jsxs(c.Fragment,{children:[c.jsx("dt",{children:_("缓存命中","Cache hit")}),c.jsxs("dd",{children:[m,"%"]})]}),c.jsx("dt",{children:_("未缓存输入","Uncached input")}),c.jsx("dd",{children:yr(e.input)}),c.jsx("dt",{children:_("缓存读取","Cache read")}),c.jsx("dd",{children:yr(e.cacheRead)}),c.jsx("dt",{children:_("缓存写入","Cache write")}),c.jsx("dd",{children:yr(e.cacheWrite)}),c.jsx("dt",{children:_("输出","Output")}),c.jsxs("dd",{children:[yr(e.output),e.reasoning!==void 0&&c.jsx("span",{className:xr.reasoning,children:_(`(其中推理 ${yr(e.reasoning)})`,` (including ${yr(e.reasoning)} reasoning)`)})]})]})]}),document.body)]})}function by({text:e,timestamp:r,usage:i,model:o}){const[s,u]=E.useState(!1);return c.jsxs("div",{className:S1.actions,children:[e&&c.jsx("button",{className:S1.action,type:"button","aria-label":s?_("已复制","Copied"):_("复制回复","Copy reply"),onClick:()=>{navigator.clipboard.writeText(e).then(()=>{u(!0),window.setTimeout(()=>u(!1),1e3)})},children:c.jsx(v5,{})}),i&&c.jsx(Sy,{usage:i,model:o}),r&&c.jsx("time",{className:S1.timeEnd,dateTime:r,children:new Date(r).toLocaleTimeString(_("zh-CN","en-US"),{hour:"2-digit",minute:"2-digit"})})]})}function T3(e){const r=[];for(const i of e){(i.role==="user"||r.length===0)&&r.push({id:i.id,index:r.length+1,messages:[],usage:null});const o=r[r.length-1];if(o.messages.push(i),i.usage){const s=o.usage;o.usage={input:((s==null?void 0:s.input)??0)+i.usage.input,output:((s==null?void 0:s.output)??0)+i.usage.output,cacheRead:((s==null?void 0:s.cacheRead)??0)+i.usage.cacheRead,cacheWrite:((s==null?void 0:s.cacheWrite)??0)+i.usage.cacheWrite,totalTokens:((s==null?void 0:s.totalTokens)??0)+i.usage.totalTokens,cost:((s==null?void 0:s.cost)??0)+i.usage.cost,...(s==null?void 0:s.reasoning)!==void 0||i.usage.reasoning!==void 0?{reasoning:((s==null?void 0:s.reasoning)??0)+(i.usage.reasoning??0)}:{}}}}return r}function Ey(e){const r=new Set(e.flatMap(i=>i.blocks.filter(o=>o.kind==="toolCall"&&o.toolCallId).map(o=>o.toolCallId)));return new Map(e.filter(i=>i.role==="tool"&&i.toolCallId&&r.has(i.toolCallId)).map(i=>[i.toolCallId,i]))}const jy="_root_10hwk_2",Ly="_ledger_10hwk_16",ld={root:jy,ledger:Ly},Ny="_tablePane_m0qel_15",Iy="_table_m0qel_15",Py="_eventColumn_m0qel_136",My="_contentColumn_m0qel_140",Ty="_event_m0qel_136",zy="_selectionRail_m0qel_330",Dy="_turnLabel_m0qel_392",Ry="_eventInner_m0qel_435",Ay="_kindSlot_m0qel_443",Fy="_content_m0qel_140",Oy="_kindTag_m0qel_463",$y="_kindTagLabel_m0qel_491",By="_user_m0qel_594",Hy="_assistantVioletBright_m0qel_687",Vy="_toolAmber_m0qel_704",Uy="_contentText_m0qel_722",Wy="_collapsedTurnContent_m0qel_753",qy="_collapsedTurnEllipsis_m0qel_762",Zy="_collapsedTurnText_m0qel_770",Qy="_resultPreview_m0qel_777",Gy="_resultRequest_m0qel_791",Ky="_inlineResultText_m0qel_792",Yy="_toolCallNameTypeface_m0qel_799",Xy="_toolCallPayload_m0qel_805",Jy="_inlineResult_m0qel_792",ev="_arrow_m0qel_834",tv="_error_m0qel_840",nv="_overview_m0qel_844",rv="_details_m0qel_848",iv="_detailsResizeHandle_m0qel_879",lv="_detailsHeader_m0qel_898",ov="_detailsTitle_m0qel_909",sv="_requestDetailsDot_m0qel_917",av="_requestDetailsName_m0qel_926",uv="_detailsLocation_m0qel_931",cv="_close_m0qel_940",dv="_detailBody_m0qel_1021",fv="_markdownPayload_m0qel_1062",pv="_overviewHeading_m0qel_1188",hv="_payload_m0qel_1341",Ie={tablePane:Ny,table:Iy,eventColumn:Py,contentColumn:My,event:Ty,selectionRail:zy,turnLabel:Dy,eventInner:Ry,kindSlot:Ay,content:Fy,kindTag:Oy,kindTagLabel:$y,user:By,assistantVioletBright:Hy,toolAmber:Vy,contentText:Uy,collapsedTurnContent:Wy,collapsedTurnEllipsis:qy,collapsedTurnText:Zy,resultPreview:Qy,resultRequest:Gy,inlineResultText:Ky,toolCallNameTypeface:Yy,toolCallPayload:Xy,inlineResult:Jy,arrow:ev,error:tv,overview:nv,details:rv,detailsResizeHandle:iv,detailsHeader:lv,detailsTitle:ov,requestDetailsDot:sv,requestDetailsName:av,detailsLocation:uv,close:cv,detailBody:dv,markdownPayload:fv,overviewHeading:pv,payload:hv},mv="_root_wxaz8_1",gv="_plot_wxaz8_14",xv="_labels_wxaz8_22",yv="_track_wxaz8_53",vv="_empty_wxaz8_104",Cv="_lanes_wxaz8_118",wv="_turnBoundaries_wxaz8_127",kv="_turnBoundary_wxaz8_144",_v="_span_wxaz8_153",Sv="_selection_wxaz8_253",bv="_selectionEdges_wxaz8_272",Ev="_hoverLine_wxaz8_283",Mt={root:mv,plot:gv,labels:xv,track:yv,empty:vv,lanes:Cv,turnBoundaries:wv,turnBoundary:kv,span:_v,selection:Sv,selectionEdges:bv,hoverLine:Ev},jv="_timelineButton_1dmz1_1",Lv="_turnLabelButton_1dmz1_3",Nv="_empty_1dmz1_5",H1={timelineButton:jv,turnLabelButton:Lv,empty:Nv};function Gn(e,r,i){return Math.min(i,Math.max(r,e))}function Iv({t:e,model:r,actualTime:i,selectedIndex:o,matchingIndexes:s,range:u,onRangeChange:d,onSelect:f}){const p=E.useRef(null),m=E.useRef(null),y=E.useRef(null),[x,v]=E.useState(null),[C,k]=E.useState(null),[P,R]=E.useState(null),[j,V]=E.useState(!1),b=Math.max(1,((r==null?void 0:r.end)??1)-((r==null?void 0:r.start)??0)),$=C&&r?Gn(C.end-C.start,1,b):b,B=r?Gn((C==null?void 0:C.start)??r.start,r.start,r.end-$):0,T=L=>{const Z=L.currentTarget.getBoundingClientRect();return Gn((L.clientX-Z.left)/Math.max(1,Z.width),0,1)},ee=L=>{const Z=L.target instanceof Element?L.target.closest("[data-timeline-record-index]"):null,te=Number(Z==null?void 0:Z.dataset.timelineRecordIndex);return Z&&Number.isFinite(te)?te:null};if(E.useEffect(()=>{k(null),d(null)},[i]),E.useEffect(()=>{!r||!C||(C.end<r.start||C.start>r.end)&&k(null)},[r,C]),E.useEffect(()=>{if(!r||!C||o===null)return;const L=r.spans.find(te=>te.index===o);if(!L||L.start>=B&&L.start<=B+$)return;const Z=Gn(L.start-$/2,r.start,r.end-$);k({start:Z,end:Z+$})},[r,o]),E.useEffect(()=>{const L=p.current;if(!L||!r)return;const Z=te=>{var z;te.preventDefault();const W=(z=m.current)==null?void 0:z.getBoundingClientRect();if(!W)return;const O=Gn((te.clientX-W.left)/Math.max(1,W.width),0,1),I=Gn($*Math.exp(te.deltaY*.0015),Math.min(i?20:4,b),b);if(I>=b*.999){k(null);return}const J=Gn(B+O*($-I),r.start,r.end-I);k({start:J,end:J+I})};return L.addEventListener("wheel",Z,{passive:!1}),()=>L.removeEventListener("wheel",Z)},[r,B,$,b,i]),!r)return c.jsx("section",{ref:p,className:Mt.root,"aria-label":e("会话时间线","Session timeline"),children:c.jsxs("div",{className:Mt.plot,children:[c.jsxs("div",{className:Mt.labels,"aria-hidden":"true",children:[c.jsx("span",{children:e("输入","Input")}),c.jsx("span",{children:e("模型","Model")}),c.jsx("span",{children:e("工具","Tool")})]}),c.jsx("div",{className:Mt.track,children:c.jsx("span",{className:Mt.empty,children:e("暂无轨迹","No trajectory yet")})})]})});const ie={"--trajectory-domain-left":`${-(B-r.start)/$*100}%`,"--trajectory-domain-width":`${b/$*100}%`},Y=x??u,D=Y?{"--trajectory-selection-left":`${(Y.start-B)/$*100}%`,"--trajectory-selection-width":`${(Y.end-Y.start)/$*100}%`}:void 0;return c.jsx("section",{ref:p,className:Mt.root,"aria-label":e("会话时间线","Session timeline"),children:c.jsxs("div",{className:Mt.plot,children:[c.jsxs("div",{className:Mt.labels,"aria-hidden":"true",children:[c.jsx("span",{children:e("输入","Input")}),c.jsx("span",{children:e("模型","Model")}),c.jsx("span",{children:e("工具","Tool")})]}),c.jsxs("div",{ref:m,className:Mt.track,"data-panning":j||void 0,"aria-label":e("时间线概览;拖动选择范围,滚轮缩放,右键拖动平移","Timeline overview; drag to select, scroll to zoom, right drag to pan"),tabIndex:0,onKeyDown:L=>{L.key==="Escape"&&(d(null),k(null))},onDoubleClick:()=>d(null),onContextMenu:L=>L.preventDefault(),onPointerDown:L=>{if(L.button!==0&&L.button!==2)return;const Z=B+T(L)*$;y.current={pointerId:L.pointerId,clientX:L.clientX,time:Z,index:ee(L),pan:L.button===2,viewportStart:B},L.currentTarget.setPointerCapture(L.pointerId),L.button===2?V(!0):v({start:Z,end:Z})},onPointerMove:L=>{R(T(L));const Z=y.current;if(!(!Z||Z.pointerId!==L.pointerId))if(Z.pan){if(!C)return;const te=L.currentTarget.getBoundingClientRect(),W=Gn(Z.viewportStart-(L.clientX-Z.clientX)/Math.max(1,te.width)*$,r.start,r.end-$);k({start:W,end:W+$})}else{const te=B+T(L)*$;v({start:Math.min(Z.time,te),end:Math.max(Z.time,te)})}},onPointerUp:L=>{const Z=y.current;if(!Z||Z.pointerId!==L.pointerId)return;if(y.current=null,L.currentTarget.releasePointerCapture(L.pointerId),V(!1),v(null),Z.pan){Math.abs(L.clientX-Z.clientX)<3&&d(null);return}if(Math.abs(L.clientX-Z.clientX)<3&&Z.index!==null){d(null),f(Z.index);return}const te=B+T(L)*$,W=Math.min($,b/r.spans.length),O=(Z.time+te)/2,I=Math.max(W,Math.abs(te-Z.time)),J=Gn(O-I/2,r.start,r.end-I);d({start:J,end:J+I})},onPointerCancel:()=>{y.current=null,v(null),V(!1)},onPointerLeave:()=>{y.current||R(null)},children:[P!==null&&!x&&c.jsx("div",{className:Mt.hoverLine,style:{"--trajectory-hover-left":`${P*100}%`},"aria-hidden":"true"}),D&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Mt.selection,style:D,"aria-hidden":"true"}),c.jsx("div",{className:Mt.selectionEdges,style:D,"aria-hidden":"true"})]}),c.jsx("div",{className:Mt.turnBoundaries,style:ie,"aria-hidden":"true",children:r.boundaries.slice(1).map(L=>c.jsx("span",{className:Mt.turnBoundary,style:{"--trajectory-turn-left":`${(L.time-r.start)/b*100}%`}},L.turn))}),c.jsx("div",{className:Mt.lanes,style:ie,children:r.spans.map(L=>{const Z=(L.end-L.start)/b*100;return c.jsx("button",{type:"button",className:`${Mt.span} ${H1.timelineButton}`,"data-timeline-record-index":L.index,"data-timeline-span":L.lane===0?"user":L.lane===2?"tool":"message","data-equal-duration":i&&L.end===L.start||void 0,"data-current":o===L.index||void 0,"data-error":L.error||void 0,"data-selected":Y?L.start<=Y.end&&L.end>=Y.start?"true":"false":void 0,"data-search-match":s?s.has(L.index)?"true":"false":void 0,"aria-label":e(`第 ${L.index} 条轨迹`,`Trajectory record ${L.index}`),title:e(`第 ${L.index} 条 · ${i?new Date(L.start).toLocaleTimeString():"事件顺序"}`,`Record ${L.index} · ${i?new Date(L.start).toLocaleTimeString():"event order"}`),style:{"--trajectory-span-left":`${(L.start-r.start)/b*100}%`,"--trajectory-span-width":`${Z}%`,"--trajectory-span-gap":`min(${Z*.08}%, 1px)`,"--trajectory-span-lane":L.lane},onClick:te=>{te.detail===0&&f(L.index)}},L.index)})})]})]})})}function Pv(e,r){if(e.length===0)return null;const i=e.map(p=>Date.parse(p.timestamp)).find(Number.isFinite)??0,o=e.map((p,m)=>{const y=Date.parse(p.timestamp),x=r&&Number.isFinite(y)?y:m,v=p.endTimestamp?Date.parse(p.endTimestamp):NaN;return{index:p.index,start:x,end:r&&Number.isFinite(v)&&v>x?v:r?x:m+1,lane:p.kind==="user"?0:p.kind==="tool"?2:1,error:p.error===!0}}),s=e.flatMap((p,m)=>m===0||p.turn!==e[m-1].turn?[{turn:p.turn,time:o[m].start}]:[]),u=r?Math.min(i,...o.map(p=>p.start)):0,d=Math.max(...o.map(p=>p.end)),f=r?d+Math.max(1,(d-u)/100):e.length;return{start:u,end:f,spans:o,boundaries:s}}function Mv(e,r,i){return new Set(e.spans.filter(o=>o.start<=i&&o.end>=r).map(o=>o.index))}const Tv="_root_15786_1",zv="_inner_15786_12",Dv="_actions_15786_22",Rv="_toggle_15786_29",Av="_toggleIcon_15786_59",Fv="_action_15786_22",Ov="_actionIcon_15786_163",$v="_search_15786_168",Bv="_searchIcon_15786_192",Hv="_searchInput_15786_196",pn={root:Tv,inner:zv,actions:Dv,toggle:Rv,toggleIcon:Av,action:Fv,actionIcon:Ov,search:$v,searchIcon:Bv,searchInput:Hv};function V1(e){return e.replace(/\s+/g," ").trim()}function Vv(e){try{return JSON.stringify(JSON.parse(e))}catch{return V1(e)}}function Uv(e){const r=new Map(e.filter(o=>o.role==="tool"&&o.toolCallId).map(o=>[o.toolCallId,o]));let i=0;return T3(e).flatMap(o=>{const s=[],u=new Set(o.messages.flatMap(d=>d.blocks.filter(f=>f.kind==="toolCall"&&f.toolCallId).map(f=>f.toolCallId)));for(const d of o.messages)if(!(d.role==="tool"&&d.toolCallId&&u.has(d.toolCallId)))for(const[f,p]of d.blocks.entries()){const m=d.role==="user"?"user":d.role==="tool"||p.kind==="toolCall"?"tool":"message",y=p.kind==="toolCall"&&p.toolCallId?r.get(p.toolCallId):void 0;s.push({id:`${d.id}-${f}`,...p.toolCallId||d.toolCallId?{callId:p.toolCallId??d.toolCallId}:{},kind:m,label:m==="tool"?_("工具","Tool"):d.role==="user"?_("用户","User"):_("助手","Assistant"),...m==="tool"?{toolName:p.kind==="toolCall"?p.toolName||_("工具","Tool"):d.toolName||_("工具","Tool")}:{},text:p.text,preview:p.kind==="toolCall"?Vv(p.text):V1(p.text),...y?{result:V1(y.blocks.map(x=>x.text).join(" "))}:{},timestamp:d.timestamp,...y?{endTimestamp:y.timestamp}:{},...d.usage&&f===d.blocks.length-1?{usage:d.usage}:{},...d.isError||y!=null&&y.isError?{error:!0}:{},turn:o.index,index:++i})}return s})}function Wo(e){return e===void 0?"":e.toLocaleString()}function od(e,r){return Math.round(Math.min(Math.max(e,320),Math.max(320,Math.min(720,r-280))))}function Wv({messages:e,inspectCallId:r}){var O;const i=kr(),o=E.useMemo(()=>Uv(e),[e,i]),s=((O=o.at(-1))==null?void 0:O.turn)??0,[u,d]=E.useState(""),[f,p]=E.useState(null),[m,y]=E.useState(new Set),[x,v]=E.useState(!1),[C,k]=E.useState(!1),[P,R]=E.useState(null),[j,V]=E.useState(null),b=E.useRef(null),$=E.useRef(null);E.useEffect(()=>{var I;r&&p(((I=o.find(J=>J.callId===r))==null?void 0:I.id)??null)},[r,o]);const B=o.find(I=>I.id===f)??null,T=u.trim().toLocaleLowerCase(),ee=E.useMemo(()=>Pv(o,C),[o,C]),ie=ee&&P?Mv(ee,P.start,P.end):null,Y=T?new Set(o.filter(I=>`${I.label} ${I.toolName??""} ${I.preview} ${I.result??""}`.toLocaleLowerCase().includes(T)).map(I=>I.index)):null,D=o.filter(I=>!m.has(I.turn)&&(!x||I.kind!=="tool")&&(!T||`${I.label} ${I.toolName??""} ${I.preview} ${I.result??""}`.toLocaleLowerCase().includes(T))),L=new Map;for(const I of D){const J=L.get(I.turn)??[];J.push(I),L.set(I.turn,J)}const Z=new Map;for(const I of o)Z.set(I.turn,(Z.get(I.turn)??0)+1);const te=Array.from({length:s},(I,J)=>J+1).flatMap(I=>m.has(I)?[{type:"collapsed",turn:I,count:Z.get(I)??0}]:(L.get(I)??[]).map((z,ne)=>({type:"record",record:z,firstInTurn:ne===0}))),W=I=>{var J,z;p(I.id),(z=(J=$.current)==null?void 0:J.querySelector(`[data-record-index="${I.index}"]`))==null||z.scrollIntoView({block:"center",behavior:"smooth"})};return c.jsxs("div",{className:ld.root,"data-conversation-composer-overlay":!0,"aria-label":_("会话轨迹","Session trajectory"),children:[c.jsx("div",{className:pn.root,role:"toolbar","aria-label":_("轨迹工具栏","Trajectory toolbar"),children:c.jsxs("div",{className:pn.inner,children:[c.jsxs("div",{className:pn.actions,children:[c.jsxs("button",{type:"button",className:pn.toggle,"aria-pressed":C,title:C?_("按事件顺序排列","Arrange by event order"):_("按记录时间排列","Arrange by recorded time"),onClick:()=>k(I=>!I),children:[c.jsxs("svg",{className:pn.toggleIcon,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[c.jsx("circle",{cx:"8",cy:"8",r:"5.25"}),c.jsx("path",{d:"M8 4.75V8l2.25 1.5"})]}),_("时长","Duration")]}),c.jsxs("button",{type:"button",className:pn.action,"aria-pressed":s>0&&m.size===s,"aria-label":s>0&&m.size===s?_("展开轮次","Expand turns"):_("折叠轮次","Collapse turns"),onClick:()=>y(I=>I.size===s?new Set:new Set(Array.from({length:s},(J,z)=>z+1))),children:[c.jsx("span",{className:pn.actionIcon,"aria-hidden":"true",children:m.size===s?"⊞":"⊟"}),_("轮次","Turns")]}),c.jsxs("button",{type:"button",className:pn.action,"aria-pressed":x,"aria-label":x?_("展开调用","Expand calls"):_("折叠调用","Collapse calls"),onClick:()=>v(I=>!I),children:[c.jsx("span",{className:pn.actionIcon,"aria-hidden":"true",children:x?"⊞":"⊟"}),_("调用","Calls")]})]}),c.jsxs("label",{className:pn.search,children:[c.jsx(yd,{size:11,className:pn.searchIcon}),c.jsx("input",{type:"search",className:pn.searchInput,"aria-label":_("搜索轨迹","Search trajectory"),placeholder:_("搜索","Search"),value:u,onChange:I=>d(I.target.value)})]})]})}),c.jsx(Iv,{t:_,model:ee,actualTime:C,selectedIndex:(B==null?void 0:B.index)??null,matchingIndexes:Y,range:P,onRangeChange:R,onSelect:I=>{const J=o.find(z=>z.index===I);J&&W(J)}}),c.jsxs("div",{className:ld.ledger,children:[c.jsx("div",{ref:$,className:Ie.tablePane,children:c.jsxs("table",{className:Ie.table,"data-scroll-ready":"true","aria-label":_("轨迹记录","Trajectory records"),children:[c.jsxs("colgroup",{children:[c.jsx("col",{className:Ie.eventColumn}),c.jsx("col",{className:Ie.contentColumn})]}),c.jsxs("tbody",{children:[te.map(I=>I.type==="collapsed"?c.jsxs("tr",{tabIndex:0,"data-collapsed-summary":"turn","data-turn-start":"true","aria-label":_(`展开第 ${I.turn} 轮`,`Expand turn ${I.turn}`),onClick:()=>y(J=>{const z=new Set(J);return z.delete(I.turn),z}),onKeyDown:J=>{(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),y(z=>{const ne=new Set(z);return ne.delete(I.turn),ne}))},children:[c.jsx("td",{className:Ie.event,children:c.jsx("span",{className:Ie.turnLabel,children:_(`第 ${I.turn} 轮`,`Turn ${I.turn}`)})}),c.jsx("td",{className:Ie.content,children:c.jsxs("span",{className:Ie.collapsedTurnContent,children:[c.jsx("span",{className:Ie.collapsedTurnEllipsis,children:"…"}),c.jsx("span",{className:Ie.collapsedTurnText,children:_(`${I.count} 条记录,点击展开`,`${I.count} records, click to expand`)})]})})]},`collapsed-${I.turn}`):c.jsxs("tr",{tabIndex:0,"data-record-index":I.record.index,"data-kind":I.record.kind,"data-turn-start":I.firstInTurn||void 0,"data-error":I.record.error||void 0,"data-selected":f===I.record.id||void 0,"data-timeline-focus":ie?ie.has(I.record.index)?"inside":"outside":void 0,"aria-selected":f===I.record.id,"aria-label":_(`第 ${I.record.turn} 轮,${I.record.label},${I.record.preview}`,`Turn ${I.record.turn}, ${I.record.label}, ${I.record.preview}`),onClick:()=>W(I.record),onKeyDown:J=>{(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),W(I.record))},children:[c.jsxs("td",{className:Ie.event,children:[I.firstInTurn&&c.jsx("button",{type:"button",className:H1.turnLabelButton,"aria-label":_(`折叠第 ${I.record.turn} 轮`,`Collapse turn ${I.record.turn}`),onClick:J=>{J.stopPropagation(),y(z=>new Set([...z,I.record.turn]))},children:c.jsx("span",{className:Ie.turnLabel,children:_(`第 ${I.record.turn} 轮`,`Turn ${I.record.turn}`)})}),c.jsx("div",{className:Ie.eventInner,children:c.jsx("span",{className:Ie.kindSlot,children:c.jsx("span",{className:`${Ie.kindTag} ${I.record.kind==="user"?Ie.user:I.record.kind==="tool"?Ie.toolAmber:Ie.assistantVioletBright}`,children:c.jsx("span",{className:Ie.kindTagLabel,children:I.record.label})})})}),f===I.record.id&&c.jsx("span",{className:Ie.selectionRail,"aria-hidden":"true"})]}),c.jsx("td",{className:Ie.content,children:c.jsxs("span",{className:I.record.result===void 0?Ie.contentText:Ie.resultPreview,title:I.record.result===void 0?I.record.preview:`${I.record.label} ${I.record.preview} → ${I.record.result}`,children:[c.jsxs("span",{className:I.record.result===void 0?void 0:Ie.resultRequest,children:[I.record.kind==="tool"&&c.jsx("span",{className:Ie.toolCallNameTypeface,children:I.record.toolName}),c.jsx("span",{className:I.record.kind==="tool"?Ie.toolCallPayload:void 0,children:I.record.preview})]}),I.record.result!==void 0&&c.jsxs("span",{className:`${Ie.inlineResult} ${I.record.error?Ie.error:""}`,children:[c.jsx("span",{className:Ie.arrow,children:"→"}),c.jsx("span",{className:Ie.inlineResultText,children:I.record.result})]})]})})]},I.record.id)),te.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:2,className:H1.empty,children:o.length===0?_("暂无轨迹","No trajectory yet"):_("没有匹配的记录","No matching records")})})]})]})}),B&&c.jsxs("aside",{id:"trajectory-detail-panel",className:Ie.details,"aria-label":_("轨迹详情","Trajectory details"),style:j===null?void 0:{width:j},children:[c.jsx("div",{className:Ie.detailsResizeHandle,role:"separator","aria-label":_("调整轨迹详情宽度","Resize trajectory details"),"aria-controls":"trajectory-detail-panel","aria-orientation":"vertical",tabIndex:0,title:_("拖动调整详情宽度,双击恢复","Drag to resize details; double click to reset"),onDoubleClick:()=>V(null),onPointerDown:I=>{var ne;if(I.button!==0)return;const J=I.currentTarget.parentElement,z=(ne=J==null?void 0:J.parentElement)==null?void 0:ne.getBoundingClientRect().width;!J||!z||(b.current={pointerId:I.pointerId,startX:I.clientX,startWidth:J.getBoundingClientRect().width,splitWidth:z},I.currentTarget.setPointerCapture(I.pointerId),I.preventDefault())},onPointerMove:I=>{const J=b.current;!J||J.pointerId!==I.pointerId||V(od(J.startWidth+J.startX-I.clientX,J.splitWidth))},onPointerUp:I=>{var J;((J=b.current)==null?void 0:J.pointerId)===I.pointerId&&(b.current=null,I.currentTarget.releasePointerCapture(I.pointerId))},onPointerCancel:()=>{b.current=null},onKeyDown:I=>{var ne;if(I.key!=="ArrowLeft"&&I.key!=="ArrowRight")return;const J=I.currentTarget.parentElement,z=(ne=J==null?void 0:J.parentElement)==null?void 0:ne.getBoundingClientRect().width;!J||!z||(V(od(J.getBoundingClientRect().width+(I.key==="ArrowLeft"?16:-16),z)),I.preventDefault())}}),c.jsxs("div",{className:Ie.detailsHeader,children:[c.jsxs("span",{className:Ie.detailsTitle,children:[B.kind==="tool"?c.jsx("span",{className:Ie.requestDetailsDot}):c.jsx(N1,{size:14}),c.jsx("span",{className:Ie.requestDetailsName,children:B.toolName??B.label}),c.jsxs("span",{className:Ie.detailsLocation,children:[_(`第 ${B.turn} 轮`,`Turn ${B.turn}`)," · #",B.index]})]}),c.jsx("button",{type:"button",className:Ie.close,"aria-label":_("关闭详情","Close details"),onClick:()=>p(null),children:c.jsx(ss,{})})]}),c.jsxs("div",{className:Ie.detailBody,children:[c.jsxs("dl",{className:Ie.overview,children:[c.jsxs("div",{children:[c.jsx("dt",{children:_("时间","Time")}),c.jsx("dd",{children:new Date(B.timestamp).toLocaleString(_("zh-CN","en-US"))})]}),B.callId&&c.jsxs("div",{children:[c.jsx("dt",{children:_("调用 ID","Call ID")}),c.jsx("dd",{children:B.callId})]}),B.usage&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{children:[c.jsx("dt",{children:_("输入","Input")}),c.jsx("dd",{children:Wo(B.usage.input)})]}),c.jsxs("div",{children:[c.jsx("dt",{children:_("缓存读取","Cache read")}),c.jsx("dd",{children:Wo(B.usage.cacheRead)})]}),c.jsxs("div",{children:[c.jsx("dt",{children:_("缓存写入","Cache write")}),c.jsx("dd",{children:Wo(B.usage.cacheWrite)})]}),c.jsxs("div",{children:[c.jsx("dt",{children:_("输出","Output")}),c.jsx("dd",{children:Wo(B.usage.output)})]})]})]}),c.jsx("div",{className:Ie.overviewHeading,children:_("内容","Content")}),B.kind==="tool"?c.jsx("pre",{className:Ie.payload,children:B.text}):c.jsx("div",{className:Ie.markdownPayload,children:c.jsx(N3,{text:B.text})}),B.result!==void 0&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Ie.overviewHeading,children:_("结果","Result")}),c.jsx("pre",{className:Ie.payload,children:B.result})]})]})]})]})]})}const qv="_root_aie2r_1",Zv="_trigger_aie2r_9",Qv="_triggerLabel_aie2r_45",Gv="_triggerEffort_aie2r_56",Kv="_triggerIcon_aie2r_67",Yv="_chevron_aie2r_88",Xv="_chevronOpen_aie2r_94",Jv="_menu_aie2r_101",eC="_empty_aie2r_132",tC="_groups_aie2r_123",nC="_group_aie2r_123",rC="_groupTitle_aie2r_179",iC="_option_aie2r_191",lC="_selected_aie2r_216",oC="_optionCopy_aie2r_225",sC="_modelName_aie2r_232",aC="_check_aie2r_242",uC="_cell_aie2r_252",cC="_cellLabel_aie2r_275",dC="_cellValue_aie2r_280",fC="_cellChevron_aie2r_290",We={root:qv,trigger:Zv,triggerLabel:Qv,triggerEffort:Gv,triggerIcon:Kv,chevron:Yv,chevronOpen:Xv,menu:Jv,empty:eC,groups:tC,group:nC,groupTitle:rC,option:iC,selected:lC,optionCopy:oC,modelName:sC,check:aC,cell:uC,cellLabel:cC,cellValue:dC,cellChevron:fC};function pC({openSignal:e=0,current:r,models:i,disabled:o,onSelect:s,thinkingLevel:u,thinkingLevels:d,onSelectThinkingLevel:f}){const p={off:_("关闭","Off"),minimal:_("极低","Minimal"),low:_("低","Low"),medium:_("中","Medium"),high:_("高","High"),xhigh:_("极高","Extra high")},[m,y]=E.useState(!1),x=E.useRef(e);E.useEffect(()=>{e!==x.current&&(x.current=e,o||y(!0))},[e,o]);const[v,C]=E.useState("root"),[k,P]=E.useState(!1),[R,j]=E.useState({visibility:"hidden",left:0,top:0}),V=E.useId(),b=E.useRef(null),$=E.useRef(null),B=E.useRef(null),T=E.useMemo(()=>{const W=new Map;for(const O of i)W.set(O.provider,[...W.get(O.provider)??[],O]);return[...W]},[i]),ee=i.find(W=>`${W.provider}/${W.id}`===r),ie=(ee==null?void 0:ee.name)||(r&&r!=="unknown/unknown"?r:_("选择模型","Choose a model")),Y=d.length>1&&u?p[u]??u:null,D=(W=!1)=>{var O;y(!1),C("root"),W&&((O=$.current)==null||O.focus())};E.useEffect(()=>{if(!m)return;const W=O=>{var I,J;!((I=b.current)!=null&&I.contains(O.target))&&!((J=B.current)!=null&&J.contains(O.target))&&D()};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[m]),E.useLayoutEffect(()=>{if(!m||!$.current||!B.current)return;const W=()=>{if(!$.current||!B.current)return;const O=$.current.getBoundingClientRect(),I=B.current.getBoundingClientRect(),J=Math.max(16,Math.min(O.right-I.width,innerWidth-I.width-16)),z=O.top-I.height-8>=16?O.top-I.height-8:Math.min(O.bottom+8,innerHeight-I.height-16);j({left:J,top:z})};return W(),window.addEventListener("resize",W),window.addEventListener("scroll",W,!0),()=>{window.removeEventListener("resize",W),window.removeEventListener("scroll",W,!0)}},[m,v,i.length]);const L=W=>{var J,z;if(W.key==="Escape"){W.preventDefault(),v==="root"?D(!0):C("root");return}if(W.key!=="ArrowDown"&&W.key!=="ArrowUp")return;W.preventDefault();const O=[...((J=B.current)==null?void 0:J.querySelectorAll('button[role^="menuitem"]'))??[]].filter(ne=>!ne.disabled),I=O.indexOf(document.activeElement);(z=O[(I+(W.key==="ArrowDown"?1:-1)+O.length)%O.length])==null||z.focus()},Z=async W=>{if(`${W.provider}/${W.id}`===r){D(!0);return}P(!0);try{await s(W.provider,W.id),D(!0)}catch{}finally{P(!1)}},te=async W=>{if(W===u){D(!0);return}P(!0);try{await f(W),D(!0)}catch{}finally{P(!1)}};return c.jsxs("div",{ref:b,className:We.root,onKeyDown:L,children:[c.jsxs("button",{ref:$,className:We.trigger,type:"button","aria-label":_(`切换模型,当前 ${ie}${Y?`,推理强度${Y}`:""}`,`Change model, current ${ie}${Y?`, reasoning effort ${Y}`:""}`),"aria-haspopup":"menu","aria-expanded":m,"aria-controls":m?`${V}-menu`:void 0,title:Y?`${ie} · ${Y}`:ie,disabled:o||k,onClick:()=>m?D():y(!0),children:[c.jsx(Cd,{className:We.triggerIcon,size:16}),c.jsx("span",{className:We.triggerLabel,children:ie}),Y&&c.jsx("span",{className:We.triggerEffort,children:Y}),c.jsx(wl,{className:`${We.chevron} ${m?We.chevronOpen:""}`})]}),m&&Nl.createPortal(c.jsx("div",{ref:B,id:`${V}-menu`,role:"menu","aria-label":_("选择模型","Choose model"),className:We.menu,style:R,children:v==="root"?c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button",role:"menuitem",className:We.cell,onClick:()=>C("model"),children:[c.jsx("span",{className:We.cellLabel,children:_("模型","Model")}),c.jsx("span",{className:We.cellValue,children:ie}),c.jsx(es,{className:We.cellChevron})]}),Y&&c.jsxs("button",{type:"button",role:"menuitem",className:We.cell,onClick:()=>C("effort"),children:[c.jsx("span",{className:We.cellLabel,children:_("推理强度","Reasoning effort")}),c.jsx("span",{className:We.cellValue,children:Y}),c.jsx(es,{className:We.cellChevron})]})]}):v==="model"?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:We.groups,children:T.map(([W,O])=>c.jsxs("section",{className:We.group,role:"group","aria-label":W,children:[c.jsx("div",{className:We.groupTitle,children:W}),O==null?void 0:O.map(I=>c.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":`${I.provider}/${I.id}`===r,className:`${We.option} ${`${I.provider}/${I.id}`===r?We.selected:""}`,title:I.name||I.id,disabled:k,onClick:()=>{Z(I)},children:[c.jsx("span",{className:We.optionCopy,children:c.jsx("span",{className:We.modelName,children:I.name||I.id})}),c.jsx("span",{className:We.check,children:`${I.provider}/${I.id}`===r&&c.jsx(L1,{})})]},I.id))]},W))}),i.length===0&&c.jsx("div",{className:We.empty,children:_("暂无可用模型","No models available")})]}):c.jsx("div",{className:We.groups,children:d.map(W=>c.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":W===u,className:`${We.option} ${W===u?We.selected:""}`,disabled:k,onClick:()=>{te(W)},children:[c.jsx("span",{className:We.optionCopy,children:c.jsx("span",{className:We.modelName,children:p[W]??W})}),c.jsx("span",{className:We.check,children:W===u&&c.jsx(L1,{})})]},W))})}),document.body)]})}const hC="_backdrop_1x9ns_1",mC="_mask_1x9ns_13",gC="_image_1x9ns_20",xC="_close_1x9ns_30",qo={backdrop:hC,mask:mC,image:gC,close:xC};function z3({src:e,alt:r,labels:i,onClose:o}){const s=E.useRef(null),u=E.useRef(null);return E.useEffect(()=>{var f;u.current=document.activeElement instanceof HTMLElement?document.activeElement:null,(f=s.current)==null||f.focus();const d=p=>{p.key==="Escape"&&o()};return window.addEventListener("keydown",d),()=>{var p;window.removeEventListener("keydown",d),(p=u.current)==null||p.focus()}},[o]),Nl.createPortal(c.jsxs("div",{className:qo.backdrop,role:"dialog","aria-modal":"true","aria-label":i.dialog,children:[c.jsx("div",{className:qo.mask,"aria-hidden":"true",onMouseDown:o}),c.jsx("img",{className:qo.image,src:e,alt:r}),c.jsx("button",{ref:s,type:"button",className:qo.close,"aria-label":i.close,onClick:o,children:c.jsx(ss,{size:16})})]}),document.body)}const yC="__PIW_CODE_ICON_INSTANCE__",vC=Object.freeze({angular:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F8ECEF" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DD0031" d="M16.712 17.711H7.288l-1.204 2.916L12 24l5.916-3.373-1.204-2.916ZM14.692 0l7.832 16.855.814-12.856L14.692 0ZM9.308 0 .662 3.999l.814 12.856L9.308 0Zm-.405 13.93h6.198L12 6.396 8.903 13.93Z"/></g>',c:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF4F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#659AD2" d="M16.5921 9.1962s-.354-3.298-3.627-3.39c-3.2741-.09-4.9552 2.474-4.9552 6.14 0 3.6651 1.858 6.5972 5.0451 6.5972 3.184 0 3.5381-3.665 3.5381-3.665l6.1041.365s.36 3.31-2.196 5.836c-2.552 2.5241-5.6901 2.9371-7.8762 2.9201-2.19-.017-5.2261.034-8.1602-2.97-2.938-3.0101-3.436-5.9302-3.436-8.8002 0-2.8701.556-6.6702 4.047-9.5502C7.444.72 9.849 0 12.254 0c10.0422 0 10.7172 9.2602 10.7172 9.2602z"/></g>',clojure:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F1F7EC" stroke="#DCEAD2" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="none"><path d="M64 0C28.712 0 0 28.6 0 63.751c0 35.155 28.712 63.753 64 63.753s64-28.598 64-63.753C128 28.6 99.288 0 64 0" fill="#FFF"/><path d="M61.659 64.898a265.825 265.825 0 00-1.867 4.12c-2.322 5.241-4.894 11.62-5.834 15.706-.337 1.455-.546 3.258-.542 5.258 0 .79.043 1.622.11 2.469a30.74 30.74 0 0010.533 1.87 30.796 30.796 0 009.642-1.566 18.09 18.09 0 01-2.011-2.12c-4.11-5.221-6.403-12.872-10.031-25.737M46.485 38.96c-7.85 5.51-12.986 14.6-13.005 24.9.019 10.145 5.001 19.116 12.653 24.65 1.877-7.789 6.582-14.92 13.637-29.214a114.691 114.691 0 00-1.43-3.72c-1.955-4.884-4.776-10.556-7.294-13.124-1.283-1.342-2.84-2.502-4.561-3.492" fill="#91DC47"/><path d="M90.697 98.798c-4.05-.506-7.392-1.116-10.317-2.144a36.708 36.708 0 01-16.32 3.807c-20.293 0-36.742-16.383-36.745-36.602 0-10.97 4.852-20.805 12.528-27.512-2.053-.495-4.194-.783-6.38-.779-10.782.101-22.162 6.044-26.9 22.095-.443 2.337-.337 4.103-.337 6.197 0 31.818 25.895 57.613 57.835 57.613 19.561 0 36.841-9.682 47.305-24.489-5.66 1.405-11.103 2.077-15.763 2.091-1.747 0-3.387-.093-4.906-.277" fill="#63B132"/><path d="M79.829 87.634c.357.176 1.167.464 2.293.783 7.579-5.542 12.504-14.469 12.523-24.558h-.003c-.028-16.82-13.693-30.43-30.582-30.462a30.765 30.765 0 00-9.602 1.554c6.21 7.05 9.196 17.127 12.084 28.148l.005.013c.005.009.924 3.06 2.501 7.11 1.566 4.042 3.797 9.048 6.23 12.696 1.597 2.444 3.354 4.2 4.551 4.716" fill="#90B4FE"/><path d="M17.057 30.311c5.463-3.408 11.04-4.637 15.908-4.593 6.722.02 12.008 2.096 14.544 3.516.612.352 1.194.73 1.764 1.12a36.714 36.714 0 0114.786-3.096c20.295.003 36.747 16.386 36.75 36.601-.003 10.192-4.188 19.408-10.934 26.044a45.3 45.3 0 005.225.29c6.406.004 13.329-1.404 18.52-5.753 3.384-2.84 6.22-6.998 7.792-13.233.307-2.408.484-4.856.484-7.347 0-31.817-25.892-57.614-57.835-57.614-19.372 0-36.508 9.5-47.004 24.065z" fill="#5881D8"/></g></svg>',cmake:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F5F7" stroke="#D9E1E7" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#064F8C" d="M62.8.4L.3 123.8l68.1-57.9z"/><path fill="#249847" d="M123.8 127.7l-84-33.9L0 127.7z"/><path fill="#BE2128" d="M128 126.6L65.6 2.5l9.2 102.6z"/><path fill="#CDCDCE" d="M71.9 104l-3.1-34.9L42 92z"/></svg>',cpp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F2F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00599C" d="M22.394 6c-.167-.29-.398-.543-.652-.69L12.926.22c-.509-.294-1.34-.294-1.848 0L2.26 5.31c-.508.293-.923 1.013-.923 1.6v10.18c0 .294.104.62.271.91.167.29.398.543.652.69l8.816 5.09c.508.293 1.34.293 1.848 0l8.816-5.09c.254-.147.485-.4.652-.69.167-.29.27-.616.27-.91V6.91c.003-.294-.1-.62-.268-.91zM12 19.11c-3.92 0-7.109-3.19-7.109-7.11 0-3.92 3.19-7.11 7.11-7.11a7.133 7.133 0 016.156 3.553l-3.076 1.78a3.567 3.567 0 00-3.08-1.78A3.56 3.56 0 008.444 12 3.56 3.56 0 0012 15.555a3.57 3.57 0 003.08-1.778l3.078 1.78A7.135 7.135 0 0112 19.11zm7.11-6.715h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79zm2.962 0h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79z"/></g>',csharp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF7" stroke="#E2D7EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#9B4F96" d="M115.4 30.7L67.1 2.9c-.8-.5-1.9-.7-3.1-.7-1.2 0-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.4 1 3.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7z"/><path fill="#68217A" d="M10.7 95.3c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7 1.2 0 2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4V36.1c0-.9-.1-1.9-.6-2.8l-106.6 62z"/><path fill="#fff" d="M85.3 76.1C81.1 83.5 73.1 88.5 64 88.5c-13.5 0-24.5-11-24.5-24.5s11-24.5 24.5-24.5c9.1 0 17.1 5 21.3 12.5l13-7.5c-6.8-11.9-19.6-20-34.3-20-21.8 0-39.5 17.7-39.5 39.5s17.7 39.5 39.5 39.5c14.6 0 27.4-8 34.2-19.8l-12.9-7.6zM97 66.2l.9-4.3h-4.2v-4.7h5.1L100 51h4.9l-1.2 6.1h3.8l1.2-6.1h4.8l-1.2 6.1h2.4v4.7h-3.3l-.9 4.3h4.2v4.7h-5.1l-1.2 6h-4.9l1.2-6h-3.8l-1.2 6h-4.8l1.2-6h-2.4v-4.7H97zm4.8 0h3.8l.9-4.3h-3.8l-.9 4.3z"/></svg>',css:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#1572B6"/><text x="10" y="12.8" text-anchor="middle" font-family="Arial,sans-serif" font-size="6.2" font-weight="900" fill="#fff">CSS</text>',dart:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF7FA" stroke="#D5EAF0" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#00c4b3" d="M35.2 34.9l-8.3-8.3v59.7l.1 2.8c0 1.3.2 2.8.7 4.3l65.6 23.1 16.3-7.2-74.4-74.4z"/><path d="M27.7 93.4zm81.9 15.9l-16.3 7.2-65.4-23.1c1.3 4.8 4 10.1 7 13.2l21.3 21.2 47.6.1 5.8-18.6z" fill="#22d3c5"/><path fill="#0075c9" d="M1.7 65.1C-.4 67.3.7 72 4 75.5l14.7 14.8 9.2 3.3c-.3-1.5-.7-3-.7-4.3l-.1-2.8-.2-59.8m82.7 82.6l7.2-16.4-23-65.6c-1.5-.3-3-.6-4.3-.7l-2.9-.1-59.6.1"/><path d="M93.6 27.3c.2 0 .2 0 0 0 .2 0 .2 0 0 0zm16 82l17.7-5.8V54.8l-20.4-20.5c-3-3-8.3-5.8-13.2-7l23.1 65.6" fill="#00a8e1"/><path fill="#00c4b3" d="M90.5 18.2L75.7 3.5c-3.4-3.4-8-4.4-10.4-2.3L26.9 26.6h59.5l2.9.1c1.3 0 2.8.2 4.3.7l-3.1-9.2z"/></svg>',docker:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F4FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2496ED" d="M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"/></g>',elixir:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF6" stroke="#E3D9E8" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-a" gradientUnits="userSpaceOnUse" x1="835.592" y1="-36.546" x2="821.211" y2="553.414" gradientTransform="matrix(.1297 0 0 .2 -46.03 17.198)"><stop offset="0" stop-color="#d9d8dc"/><stop offset="1" stop-color="#fff" stop-opacity=".385"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-a)" d="M64.4.5C36.7 13.9 1.9 83.4 30.9 113.9c26.8 33.5 85.4 1.3 68.4-40.5-21.5-36-35-37.9-34.9-72.9z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-b" gradientUnits="userSpaceOnUse" x1="942.357" y1="-40.593" x2="824.692" y2="472.243" gradientTransform="matrix(.1142 0 0 .2271 -47.053 17.229)"><stop offset="0" stop-color="#8d67af" stop-opacity=".672"/><stop offset="1" stop-color="#9f8daf"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-b)" d="M64.4.2C36.8 13.6 1.9 82.9 31 113.5c10.7 12.4 28 16.5 37.7 9.1 26.4-18.8 7.4-53.1 10.4-78.5C68.1 33.9 64.2 11.3 64.4.2z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-c" gradientUnits="userSpaceOnUse" x1="924.646" y1="120.513" x2="924.646" y2="505.851" gradientTransform="matrix(.1227 0 0 .2115 -46.493 17.206)"><stop offset="0" stop-color="#26053d" stop-opacity=".762"/><stop offset="1" stop-color="#b7b4b4" stop-opacity=".278"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-c)" d="M56.7 4.3c-22.3 15.9-28.2 75-24.1 94.2 8.2 48.1 75.2 28.3 69.6-16.5-6-29.2-48.8-39.2-45.5-77.7z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-d" gradientUnits="userSpaceOnUse" x1="428.034" y1="198.448" x2="607.325" y2="559.255" gradientTransform="matrix(.1848 0 0 .1404 -42.394 17.138)"><stop offset="0" stop-color="#91739f" stop-opacity=".46"/><stop offset="1" stop-color="#32054f" stop-opacity=".54"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-d)" d="M78.8 49.8c10.4 13.4 12.7 22.6 6.8 27.9-27.7 19.4-61.3 7.4-54-37.3C22.1 63 4.5 96.8 43.3 101.6c20.8 3.6 54 2 58.9-16.1-.2-15.9-10.8-22.9-23.4-35.7z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-e" gradientUnits="userSpaceOnUse" x1="907.895" y1="540.636" x2="590.242" y2="201.281" gradientTransform="matrix(.1418 0 0 .1829 -45.23 17.18)"><stop offset="0" stop-color="#463d49" stop-opacity=".331"/><stop offset="1" stop-color="#340a50" stop-opacity=".821"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-e)" d="M38.1 36.4c-2.9 21.2 35.1 77.9 58.3 71-17.7 35.6-56.9-21.2-64-41.7 1.5-11 2.2-16.4 5.7-29.3z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-f" gradientUnits="userSpaceOnUse" x1="1102.297" y1="100.542" x2="1008.071" y2="431.648" gradientTransform="matrix(.106 0 0 .2448 -47.595 17.242)"><stop offset="0" stop-color="#715383" stop-opacity=".145"/><stop offset="1" stop-color="#f4f4f4" stop-opacity=".234"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-f)" d="M60.4 49.7c.8 7.9 3.9 20.5 0 28.8S38.7 102 43.6 115.3c11.4 24.8 37.1-4.4 36.9-19 1.1-11.8-6.6-38.7-1.8-52.5L76.5 41l-13.6-4c-2.2 3.2-3 7.5-2.5 12.7z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-g" gradientUnits="userSpaceOnUse" x1="1354.664" y1="140.06" x2="1059.233" y2="84.466" gradientTransform="matrix(.09173 0 0 .2828 -48.536 17.28)"><stop offset="0" stop-color="#a5a1a8" stop-opacity=".356"/><stop offset="1" stop-color="#370c50" stop-opacity=".582"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-g)" d="M65.3 10.8C36 27.4 48 53.4 49.3 81.6l19.1-55.4c-1.4-5.7-2.3-9.5-3.1-15.4z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#330A4C" fill-opacity=".316" d="M68.3 26.1c-14.8 11.7-14.1 31.3-18.6 54 8.1-21.3 4.1-38.2 18.6-54z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#FFF" d="M45.8 119.7c8 1.1 12.1 2.2 12.5 3 .3 4.2-11.1 1.2-12.5-3z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#EDEDED" fill-opacity=".603" d="M49.8 10.8c-6.9 7.7-14.4 21.8-18.2 29.7-1 6.5-.5 15.7.6 23.5.9-18.2 7.5-39.2 17.6-53.2z"/></svg>',env:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECD53F"/><text x="10" y="12.9" text-anchor="middle" font-family="Arial,sans-serif" font-size="5.7" font-weight="900" fill="#24292F">.ENV</text>',erlang:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FAEDF1" stroke="#EED6DE" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path d="M20.7 103.9C11 93.5 5.2 79.2 5.3 62.1 5.2 47 10 34 18.2 24.1H1v79.7l19.7.1zm90.4 0c4.2-4.5 8-9.8 11.4-15.9l-19-9.5c-6.7 10.8-16.4 20.8-29.9 20.9-19.6-.1-27.3-16.9-27.3-38.5h73.3c.1-2.4.1-3.6 0-4.7.5-12.9-2.9-23.7-9.1-32.1H127v79.7l-15.9.1zM47.5 42.4c.8-9.8 8.5-16.3 17.6-16.4 9.1 0 15.7 6.6 15.9 16.4H47.5z" fill="#A90533"/></svg>',flutter:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF7FD" stroke="#D7EAF6" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="#3FB6D3"><path d="M12.3 64.2L76.3 0h39.4L32.1 83.6zM76.3 128h39.4L81.6 93.9l34.1-34.8H76.3L42.2 93.5z"/></g><path fill="#27AACD" d="M81.6 93.9l-20-20-19.4 19.6 19.4 19.6z"/><path fill="#19599A" d="M115.7 128L81.6 93.9l-20 19.2L76.3 128z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__flutter-original-a" gradientUnits="userSpaceOnUse" x1="59.365" y1="116.36" x2="86.825" y2="99.399"><stop offset="0" stop-color="#1b4e94"/><stop offset=".63" stop-color="#1a5497"/><stop offset="1" stop-color="#195a9b"/></linearGradient><path fill="url(#__PIW_CODE_ICON_INSTANCE__flutter-original-a)" d="M61.6 113.1l30.8-8.4-10.8-10.8z"/></svg>',git:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#F05032" d="M13.09 23.549a1.54 1.54 0 0 1-2.18 0L.451 13.089a1.54 1.54 0 0 1 0-2.179l7.191-7.19 2.733 2.733a1.85 1.85 0 0 0 .964 2.326v6.66a1.849 1.849 0 1 0 1.54 0V8.957l2.508 2.508a1.85 1.85 0 1 0 1.09-1.09l-2.634-2.634a1.85 1.85 0 0 0-2.378-2.377L8.73 2.63 10.91.451a1.54 1.54 0 0 1 2.179 0l10.459 10.46a1.54 1.54 0 0 1 0 2.179z"/></g>',go:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E7F9FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00ADD8" d="M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z"/></g>',graphql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEAF6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#E10098" d="M12.002 0a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.54 4.931a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm0 9.862a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm-8.54 4.931a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.276zm-8.542-4.93a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.542-3.378L2.953 6.777v10.448l9.049 5.224 9.047-5.224V6.777zm0 1.601 7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0 6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"/></g>',haskell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3F0F7" stroke="#E1D9EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#463B63" d="M0 110.2L30.1 65 0 19.9h22.6L52.7 65l-30.1 45.1H0z"/><path fill="#5E5187" d="M30.1 110.2L60.2 65 30.1 19.9h22.6l60.2 90.3H90.4L71.5 81.9l-18.8 28.2H30.1z"/><path fill="#904F8C" d="M102.9 83.8l-10-15.1H128v15.1h-25.1zM87.8 61.3l-10-15.1H128v15.1H87.8z"/></svg>',ini:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#6E7781"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">INI</text>',java:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F7FA" stroke="#D9E2E8" stroke-width=".5"/><svg x="2.5" y="2.5" width="15" height="15" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#0074BD" d="M47.617 98.12s-4.767 2.774 3.397 3.71c9.892 1.13 14.947.968 25.845-1.092 0 0 2.871 1.795 6.873 3.351-24.439 10.47-55.308-.607-36.115-5.969zm-2.988-13.665s-5.348 3.959 2.823 4.805c10.567 1.091 18.91 1.18 33.354-1.6 0 0 1.993 2.025 5.132 3.131-29.542 8.64-62.446.68-41.309-6.336z"/><path fill="#EA2D2E" d="M69.802 61.271c6.025 6.935-1.58 13.17-1.58 13.17s15.289-7.891 8.269-17.777c-6.559-9.215-11.587-13.792 15.635-29.58 0 .001-42.731 10.67-22.324 34.187z"/><path fill="#0074BD" d="M102.123 108.229s3.529 2.91-3.888 5.159c-14.102 4.272-58.706 5.56-71.094.171-4.451-1.938 3.899-4.625 6.526-5.192 2.739-.593 4.303-.485 4.303-.485-4.953-3.487-32.013 6.85-13.743 9.815 49.821 8.076 90.817-3.637 77.896-9.468zM49.912 70.294s-22.686 5.389-8.033 7.348c6.188.828 18.518.638 30.011-.326 9.39-.789 18.813-2.474 18.813-2.474s-3.308 1.419-5.704 3.053c-23.042 6.061-67.544 3.238-54.731-2.958 10.832-5.239 19.644-4.643 19.644-4.643zm40.697 22.747c23.421-12.167 12.591-23.86 5.032-22.285-1.848.385-2.677.72-2.677.72s.688-1.079 2-1.543c14.953-5.255 26.451 15.503-4.823 23.725 0-.002.359-.327.468-.617z"/><path fill="#EA2D2E" d="M76.491 1.587S89.459 14.563 64.188 34.51c-20.266 16.006-4.621 25.13-.007 35.559-11.831-10.673-20.509-20.07-14.688-28.815C58.041 28.42 81.722 22.195 76.491 1.587z"/><path fill="#0074BD" d="M52.214 126.021c22.476 1.437 57-.8 57.817-11.436 0 0-1.571 4.032-18.577 7.231-19.186 3.612-42.854 3.191-56.887.874 0 .001 2.875 2.381 17.647 3.331z"/></svg>',javascript:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#F0DB4F" d="M1.408 1.408h125.184v125.185H1.408z"/><path fill="#323330" d="M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981-3.832-1.761-8.104-3.022-9.377-5.926-.452-1.69-.512-2.642-.226-3.665.821-3.32 4.784-4.355 7.925-3.403 2.023.678 3.938 2.237 5.093 4.724 5.402-3.498 5.391-3.475 9.163-5.879-1.381-2.141-2.118-3.129-3.022-4.045-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235-5.926 6.724-4.236 18.492 2.975 23.335 7.104 5.332 17.54 6.545 18.873 11.531 1.297 6.104-4.486 8.08-10.234 7.378-4.236-.881-6.592-3.034-9.139-6.949-4.688 2.713-4.688 2.713-9.508 5.485 1.143 2.499 2.344 3.63 4.26 5.795 9.068 9.198 31.76 8.746 35.83-5.176.165-.478 1.261-3.666.38-8.581zM69.462 58.943H57.753l-.048 30.272c0 6.438.333 12.34-.714 14.149-1.713 3.558-6.152 3.117-8.175 2.427-2.059-1.012-3.106-2.451-4.319-4.485-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901 4.462 2.678 10.459 3.499 16.731 2.059 4.082-1.189 7.604-3.652 9.448-7.401 2.666-4.915 2.094-10.864 2.07-17.444.06-10.735.001-21.468.001-32.237z"/></svg></g>',json:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F4F4" stroke="#DDDDDD" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__PIW_CODE_ICON_INSTANCE__a" x1="-670.564" x2="-583.105" y1="-280.831" y2="-368.306" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__PIW_CODE_ICON_INSTANCE__a)" fill-rule="evenodd" d="M63.895 94.303c27.433 37.398 54.281-10.438 54.241-39.205-.046-34.012-34.518-53.021-54.263-53.021C32.182 2.077 2 28.269 2 64.105 2 103.937 36.596 126 63.873 126c-6.172-.889-26.742-5.296-27.019-52.674-.186-32.044 10.453-44.846 26.974-39.214.37.137 18.223 7.18 18.223 30.187 0 22.908-18.156 30.004-18.156 30.004z" clip-rule="evenodd"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__b" x1="-579.148" x2="-666.607" y1="-364.34" y2="-276.873" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__PIW_CODE_ICON_INSTANCE__b)" fill-rule="evenodd" d="M63.863 34.086C45.736 27.838 23.53 42.778 23.53 72.703 23.53 121.565 59.739 126 64.128 126 95.818 126 126 99.808 126 63.972 126 24.14 91.404 2.077 64.127 2.077c7.555-1.046 40.719 8.176 40.719 53.504 0 29.559-24.764 45.651-40.87 38.776-.37-.137-18.223-7.18-18.223-30.187 0-22.91 18.11-30.085 18.11-30.084z" clip-rule="evenodd"/></svg>',kotlin:'<defs><linearGradient id="__PIW_CODE_ICON_INSTANCE__k" x1="1" y1="19" x2="19" y2="1"><stop stop-color="#0095D5"/><stop offset=".5" stop-color="#7F52FF"/><stop offset="1" stop-color="#F88909"/></linearGradient></defs><rect x="1" y="1" width="18" height="18" rx="4" fill="url(#__PIW_CODE_ICON_INSTANCE__k)"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FFFFFF" d="M24 24H0V0h24L12 12Z"/></g>',lua:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECECF7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#000080" d="M.38 10.377l-.272-.037c-.048.344-.082.695-.101 1.041l.275.016c.018-.34.051-.682.098-1.02zM4.136 3.289l-.184-.205c-.258.232-.509.48-.746.734l.202.188c.231-.248.476-.49.728-.717zM5.769 2.059l-.146-.235c-.296.186-.586.385-.863.594l.166.219c.27-.203.554-.399.843-.578zM1.824 18.369c.185.297.384.586.593.863l.22-.164c-.205-.271-.399-.555-.58-.844l-.233.145zM1.127 16.402l-.255.104c.129.318.274.635.431.943l.005.01.245-.125-.005-.01c-.153-.301-.295-.611-.421-.922zM.298 9.309l.269.063c.076-.332.168-.664.272-.986l-.261-.087c-.108.332-.202.672-.28 1.01zM.274 12.42l-.275.01c.012.348.04.699.083 1.043l.273-.033c-.042-.336-.069-.68-.081-1.02zM.256 14.506c.073.34.162.682.264 1.014l.263-.08c-.1-.326-.187-.658-.258-.99l-.269.056zM11.573.275L11.563 0c-.348.012-.699.039-1.044.082l.034.273c.338-.041.68-.068 1.02-.08zM23.221 8.566c.1.326.186.66.256.992l.27-.059c-.072-.34-.16-.682-.262-1.014l-.264.081zM17.621 1.389c-.309-.164-.627-.314-.947-.449l-.107.252c.314.133.625.281.926.439l.128-.242zM15.693.572c-.332-.105-.67-.199-1.01-.277l-.063.268c.332.076.664.168.988.273l.085-.264zM6.674 1.545c.298-.15.606-.291.916-.418L7.486.873c-.317.127-.632.272-.937.428l-.015.008.125.244.015-.008zM23.727 11.588l.275-.01a11.797 11.797 0 0 0-.082-1.045l-.273.033c.041.338.068.682.08 1.022zM13.654.105c-.346-.047-.696-.08-1.043-.098l-.014.273c.339.018.683.051 1.019.098l.038-.273zM9.544.527l-.058-.27c-.34.072-.681.16-1.014.264l.081.262c.325-.099.659-.185.991-.256zM1.921 5.469l.231.15c.185-.285.384-.566.592-.834l-.217-.17c-.213.276-.417.563-.606.854zM.943 7.318l.253.107c.132-.313.28-.625.439-.924l-.243-.128c-.163.307-.314.625-.449.945zM18.223 21.943l.145.234c.295-.186.586-.385.863-.594l-.164-.219c-.272.204-.557.4-.844.579zM21.248 19.219l.217.17c.215-.273.418-.561.607-.854l-.23-.148c-.186.285-.385.564-.594.832zM19.855 20.715l.184.203c.258-.23.51-.479.746-.732l-.201-.188c-.23.248-.477.488-.729.717zM22.359 17.504l.244.129c.162-.307.314-.625.449-.945l-.254-.107a11.27 11.27 0 0 1-.439.923zM23.617 13.629l.273.039c.049-.346.082-.695.102-1.043l-.275-.014c-.018.338-.051.682-.1 1.018zM23.156 15.621l.264.086c.107-.332.201-.67.279-1.01l-.268-.063c-.077.333-.169.665-.275.987zM22.453 6.672c.154.303.297.617.424.932l.256-.104c-.131-.322-.277-.643-.436-.953l-.244.125zM8.296 23.418c.331.107.67.201 1.009.279l.062-.268c-.331-.076-.663-.168-.986-.273l-.085.262zM10.335 23.889c.345.049.696.082 1.043.102l.014-.275c-.339-.018-.682-.051-1.019-.098l-.038.271zM17.326 22.449c-.303.154-.613.297-.926.424l.104.256c.318-.131.639-.275.947-.434l.004-.002-.123-.246-.006.002zM4.613 21.467c.274.213.562.418.854.605l.149-.23c-.285-.184-.565-.385-.833-.592l-.17.217zM12.417 23.725l.009.275c.348-.014.699-.041 1.045-.084l-.035-.271c-.336.041-.68.068-1.019.08zM6.37 22.604c.307.162.625.314.946.449l.107-.254c-.313-.133-.624-.279-.924-.439l-.129.244zM3.083 20.041c.233.258.48.51.734.746l.188-.201c-.249-.23-.49-.477-.717-.729l-.205.184zM14.445 23.475l.059.27c.34-.074.68-.162 1.014-.266l-.082-.262c-.325.099-.659.185-.991.258zM21.18.129A2.689 2.689 0 1 0 21.18 5.507 2.689 2.689 0 1 0 21.18.129zM15.324 15.447c0 .471.314.66.852.66.67 0 1.297-.396 1.297-1.016v-.645c-.23.107-.379.141-1.107.24-.735.109-1.042.306-1.042.761zM12 2.818c-5.07 0-9.18 4.109-9.18 9.18 0 5.068 4.11 9.18 9.18 9.18 5.07 0 9.18-4.111 9.18-9.18 0-5.07-4.11-9.18-9.18-9.18zm-2.487 13.77H5.771v-6.023h.769v5.346h2.974v.677zm4.13 0h-.619v-.67c-.405.57-.811.793-1.446.793-.843 0-1.38-.463-1.38-1.182v-3.271h.686v3c0 .52.347.85.893.85.719 0 1.181-.578 1.181-1.461v-2.389h.686v4.33zm-.53-8.393c0-1.484 1.205-2.689 2.689-2.689s2.688 1.205 2.688 2.689-1.203 2.688-2.688 2.688-2.689-1.203-2.689-2.688zm5.567 7.856v.52c-.223.059-.33.074-.471.074-.34 0-.637-.238-.711-.57-.381.406-.918.637-1.471.637-.877 0-1.422-.463-1.422-1.248 0-.527.256-.916.76-1.123.266-.107.414-.141 1.389-.264.545-.066.719-.191.719-.48v-.182c0-.412-.348-.645-.967-.645-.645 0-.957.24-1.016.77h-.693c.041-1 .686-1.404 1.734-1.404 1.066 0 1.627.412 1.627 1.182v2.412c0 .215.133.338.373.338.041-.002.074-.002.149-.017z"/></g>',makefile:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#427819"/><path fill="#fff" d="m5 4.5 2.3 2.3 2.3-2.3L11 5.9 8.7 8.2l2.4 2.4L9.7 12l-2.4-2.4L5 11.9 3.6 10.5l2.3-2.3-2.3-2.3zm7 6.5h4v1.5h-4zm0 2.8h4v1.5h-4z"/>',node:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EDF7EA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#539E43" d="M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"/></g>',"objective-c":'<rect x="1" y="1" width="18" height="18" rx="4" fill="#438EFF"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">OC</text>',perl:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF2F7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#0073A1" d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0m.157 1.103a10.91 10.91 0 0 1 9.214 5.404c-1.962.152-3.156 1.698-5.132 3.553-2.81 2.637-4.562.582-5.288-.898-.447-1.004-.847-2.117-1.544-2.769A.4.4 0 0 1 9.3 6.02l.08-.37a.083.083 0 0 0-.074-.1c-.33-.022-.601.093-.84.368a2.5 2.5 0 0 0-.375-.064c-.863-.093-1.036.345-1.873.345H5.81c-.758 0-1.391.361-1.7.892-.248.424-.257.884.15.93-.126.445.292.62 1.224.192 0 0 .733.421 1.749.421.549 0 .712.087.914.967.486 2.138 2.404 5.655 6.282 5.655l.118.166c.659.934.86 2.113.48 3.184-.307.867-.697 1.531-.697 1.531q.01.178.01.349c0 .81-.175 1.553-.387 2.23a10.91 10.91 0 0 1-11.989-6.342A10.91 10.91 0 0 1 7.608 2.01a10.9 10.9 0 0 1 4.55-.907M7.524 6.47c.288 0 .575.231.477.272a.4.4 0 0 1-.1.02.38.38 0 0 1-.375.327.384.384 0 0 1-.378-.326.4.4 0 0 1-.101-.02c-.098-.042.19-.273.477-.273m10.193 10.49q.05 0 .101.007.326.054.694.096.135.01.269.026a13.4 13.4 0 0 0 2.846-.007 10.9 10.9 0 0 1-2.007 2.705c-.11-.23-.547-1.19-.573-2.196q-.156-.01-.313-.026-.13-.014-.256-.022a18 18 0 0 1-.735-.102h-.003c-.032 0-.06.01-.074.035l-.003.012q-.081.265-.182.544c.428 1.084.652 2.078.652 2.078.14.22.258.432.363.64a11 11 0 0 1-2.168 1.264 11 11 0 0 1-1.205.426 13.3 13.3 0 0 1 1.055-2.531s.678-1.445 1.027-2.564v-.004a.55.55 0 0 1 .512-.38"/></g>',php:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0EFF8" stroke="#DDDCEB" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#777BB4" d="M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z"/></g>',powershell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#2671BE"/><path fill="#fff" fill-opacity=".16" d="M5.5 4h11l-3.5 12H2z"/><path d="m6.5 6.5 3 3-4.2 3.2m4 1h4" fill="none" stroke="#fff" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>',protobuf:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#4285F4"/><path fill="none" stroke="#fff" stroke-width="1.2" stroke-linejoin="round" d="m10 3.5 6 3.3v6.4l-6 3.3-6-3.3V6.8z"/><path fill="#fff" d="M6.5 6.5h4.4c2.3 0 3.6 1.2 3.6 3.1s-1.3 3.1-3.6 3.1H9v2H6.5zM9 8.4v2.4h1.6c.8 0 1.2-.4 1.2-1.2s-.4-1.2-1.2-1.2z"/>',python:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F4F7" stroke="#D5DBE5" stroke-width=".5"/><g transform="matrix(.126 0 0 .126 2.30 2.24)"><path fill="#3776AB" d="M 60.510156,6.3979729 C 55.926503,6.4192712 51.549217,6.8101906 47.697656,7.4917229 C 36.35144,9.4962267 34.291407,13.691825 34.291406,21.429223 L 34.291406,31.647973 L 61.103906,31.647973 L 61.103906,35.054223 L 34.291406,35.054223 L 24.228906,35.054223 C 16.436447,35.054223 9.6131468,39.73794 7.4789058,48.647973 C 5.0170858,58.860939 4.9078907,65.233996 7.4789058,75.897973 C 9.3848341,83.835825 13.936449,89.491721 21.728906,89.491723 L 30.947656,89.491723 L 30.947656,77.241723 C 30.947656,68.391821 38.6048,60.585475 47.697656,60.585473 L 74.478906,60.585473 C 81.933857,60.585473 87.885159,54.447309 87.885156,46.960473 L 87.885156,21.429223 C 87.885156,14.162884 81.755176,8.7044455 74.478906,7.4917229 C 69.872919,6.7249976 65.093809,6.3766746 60.510156,6.3979729 z M 46.010156,14.616723 C 48.779703,14.616723 51.041406,16.915369 51.041406,19.741723 C 51.041404,22.558059 48.779703,24.835473 46.010156,24.835473 C 43.23068,24.835472 40.978906,22.558058 40.978906,19.741723 C 40.978905,16.91537 43.23068,14.616723 46.010156,14.616723 z "/><path fill="#FFD43B" d="M 91.228906,35.054223 L 91.228906,46.960473 C 91.228906,56.191228 83.403011,63.960472 74.478906,63.960473 L 47.697656,63.960473 C 40.361823,63.960473 34.291407,70.238956 34.291406,77.585473 L 34.291406,103.11672 C 34.291406,110.38306 40.609994,114.65704 47.697656,116.74172 C 56.184987,119.23733 64.323893,119.68835 74.478906,116.74172 C 81.229061,114.78733 87.885159,110.85411 87.885156,103.11672 L 87.885156,92.897973 L 61.103906,92.897973 L 61.103906,89.491723 L 87.885156,89.491723 L 101.29141,89.491723 C 109.08387,89.491723 111.98766,84.056315 114.69765,75.897973 C 117.49698,67.499087 117.37787,59.422197 114.69765,48.647973 C 112.77187,40.890532 109.09378,35.054223 101.29141,35.054223 L 91.228906,35.054223 z M 76.166406,99.710473 C 78.945884,99.710476 81.197656,101.98789 81.197656,104.80422 C 81.197654,107.63057 78.945881,109.92922 76.166406,109.92922 C 73.396856,109.92922 71.135156,107.63057 71.135156,104.80422 C 71.135158,101.98789 73.396853,99.710473 76.166406,99.710473 z "/></g>',r:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF2F6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#276DC3" d="M12 2.746c-6.627 0-12 3.599-12 8.037 0 3.897 4.144 7.144 9.64 7.88V16.26c-2.924-.915-4.925-2.755-4.925-4.877 0-3.035 4.084-5.494 9.12-5.494 5.038 0 8.757 1.683 8.757 5.494 0 1.976-.999 3.379-2.662 4.272.09.066.174.128.258.216.169.149.25.363.372.544 2.128-1.45 3.44-3.437 3.44-5.631 0-4.44-5.373-8.038-12-8.038zm-2.111 4.99v13.516l4.093-.002-.002-5.291h1.1c.225 0 .321.066.549.25.272.22.715.982.715.982l2.164 4.063 4.627-.002-2.864-4.826s-.086-.193-.265-.383a2.22 2.22 0 00-.582-.416c-.422-.214-1.149-.434-1.149-.434s3.578-.264 3.578-3.826c0-3.562-3.744-3.63-3.744-3.63zm4.127 2.93l2.478.002s1.149-.062 1.149 1.127c0 1.165-1.149 1.17-1.149 1.17h-2.478zm1.754 6.119c-.494.049-1.012.079-1.54.088v1.807a16.622 16.622 0 002.37-.473l-.471-.891s-.108-.183-.248-.394c-.039-.054-.08-.098-.111-.137z"/></g>',react:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#20232A"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#61DAFB" d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"/></g>',ruby:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEDEC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#CC342D" d="M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z"/></g>',rust:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3E6DD" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2B2B2B" d="M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z"/></g>',scala:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCECEB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DC322F" d="M4.589 24c4.537 0 13.81-1.516 14.821-3v-5.729c-.957 1.408-10.284 2.912-14.821 2.912V24zM4.589 16.365c4.537 0 13.81-1.516 14.821-3V7.636c-.957 1.408-10.284 2.912-14.821 2.912v5.817zM4.589 8.729c4.537 0 13.81-1.516 14.821-3V0C18.453 1.408 9.126 2.912 4.589 2.912v5.817z"/></g>',shell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#303642"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#7EE787" d="M21.038,4.9l-7.577-4.498C13.009,0.134,12.505,0,12,0c-0.505,0-1.009,0.134-1.462,0.403L2.961,4.9 C2.057,5.437,1.5,6.429,1.5,7.503v8.995c0,1.073,0.557,2.066,1.462,2.603l7.577,4.497C10.991,23.866,11.495,24,12,24 c0.505,0,1.009-0.134,1.461-0.402l7.577-4.497c0.904-0.537,1.462-1.529,1.462-2.603V7.503C22.5,6.429,21.943,5.437,21.038,4.9z M15.17,18.946l0.013,0.646c0.001,0.078-0.05,0.167-0.111,0.198l-0.383,0.22c-0.061,0.031-0.111-0.007-0.112-0.085L14.57,19.29 c-0.328,0.136-0.66,0.169-0.872,0.084c-0.04-0.016-0.057-0.075-0.041-0.142l0.139-0.584c0.011-0.046,0.036-0.092,0.069-0.121 c0.012-0.011,0.024-0.02,0.036-0.026c0.022-0.011,0.043-0.014,0.062-0.006c0.229,0.077,0.521,0.041,0.802-0.101 c0.357-0.181,0.596-0.545,0.592-0.907c-0.003-0.328-0.181-0.465-0.613-0.468c-0.55,0.001-1.064-0.107-1.072-0.917 c-0.007-0.667,0.34-1.361,0.889-1.8l-0.007-0.652c-0.001-0.08,0.048-0.168,0.111-0.2l0.37-0.236 c0.061-0.031,0.111,0.007,0.112,0.087l0.006,0.653c0.273-0.109,0.511-0.138,0.726-0.088c0.047,0.012,0.067,0.076,0.048,0.151 l-0.144,0.578c-0.011,0.044-0.036,0.088-0.065,0.116c-0.012,0.012-0.025,0.021-0.038,0.028c-0.019,0.01-0.038,0.013-0.057,0.009 c-0.098-0.022-0.332-0.073-0.699,0.113c-0.385,0.195-0.52,0.53-0.517,0.778c0.003,0.297,0.155,0.387,0.681,0.396 c0.7,0.012,1.003,0.318,1.01,1.023C16.105,17.747,15.736,18.491,15.17,18.946z M19.143,17.859c0,0.06-0.008,0.116-0.058,0.145 l-1.916,1.164c-0.05,0.029-0.09,0.004-0.09-0.056v-0.494c0-0.06,0.037-0.093,0.087-0.122l1.887-1.129 c0.05-0.029,0.09-0.004,0.09,0.056V17.859z M20.459,6.797l-7.168,4.427c-0.894,0.523-1.553,1.109-1.553,2.187v8.833 c0,0.645,0.26,1.063,0.66,1.184c-0.131,0.023-0.264,0.039-0.398,0.039c-0.42,0-0.833-0.114-1.197-0.33L3.226,18.64 c-0.741-0.44-1.201-1.261-1.201-2.142V7.503c0-0.881,0.46-1.702,1.201-2.142l7.577-4.498c0.363-0.216,0.777-0.33,1.197-0.33 c0.419,0,0.833,0.114,1.197,0.33l7.577,4.498c0.624,0.371,1.046,1.013,1.164,1.732C21.686,6.557,21.12,6.411,20.459,6.797z"/></g>',solidity:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0F0F0" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#363636" d="M4.409 6.608L7.981.255l3.572 6.353H4.409zM8.411 0l3.569 6.348L15.552 0H8.411zm4.036 17.392l3.572 6.354 3.575-6.354h-7.147zm-.608-10.284h-7.43l3.715 6.605 3.715-6.605zm.428-.25h7.428L15.982.255l-3.715 6.603zM15.589 24l-3.569-6.349L8.448 24h7.141zm-3.856-6.858H4.306l3.712 6.603 3.715-6.603zm.428-.25h7.433l-3.718-6.605-3.715 6.605z"/></g>',sql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#336791"/><ellipse cx="10" cy="5.5" rx="5.8" ry="2.1" fill="#fff"/><path fill="#fff" fill-opacity=".88" d="M4.2 5.5v8.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1V5.5c0 1.2-2.6 2.1-5.8 2.1s-5.8-.9-5.8-2.1z"/><path d="M4.2 9.2c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1M4.2 12.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1" fill="none" stroke="#336791" stroke-opacity=".7" stroke-width=".7"/>',svelte:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FF3E00" d="M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"/></g>',swift:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#f05138" d="M126.33 34.06a39.32 39.32 0 00-.79-7.83 28.78 28.78 0 00-2.65-7.58 28.84 28.84 0 00-4.76-6.32 23.42 23.42 0 00-6.62-4.55 27.27 27.27 0 00-7.68-2.53c-2.65-.51-5.56-.51-8.21-.76H30.25a45.46 45.46 0 00-6.09.51 21.82 21.82 0 00-5.82 1.52c-.53.25-1.32.51-1.85.76a33.82 33.82 0 00-5 3.28c-.53.51-1.06.76-1.59 1.26a22.41 22.41 0 00-4.76 6.32 23.61 23.61 0 00-2.65 7.58 78.5 78.5 0 00-.79 7.83v60.39a39.32 39.32 0 00.79 7.83 28.78 28.78 0 002.65 7.58 28.84 28.84 0 004.76 6.32 23.42 23.42 0 006.62 4.55 27.27 27.27 0 007.68 2.53c2.65.51 5.56.51 8.21.76h63.22a45.08 45.08 0 008.21-.76 27.27 27.27 0 007.68-2.53 30.13 30.13 0 006.62-4.55 22.41 22.41 0 004.76-6.32 23.61 23.61 0 002.65-7.58 78.49 78.49 0 00.79-7.83V34.06z"/><path fill="#fefefe" d="M85 96.5c-11.11 6.13-26.38 6.76-41.75.47A64.53 64.53 0 0113.84 73a50 50 0 0010.85 6.32c15.87 7.1 31.73 6.61 42.9 0-15.9-11.66-29.4-26.82-39.46-39.2a43.47 43.47 0 01-5.29-6.82c12.16 10.61 31.5 24 38.38 27.79a271.77 271.77 0 01-27-32.34 266.8 266.8 0 0044.47 34.87c.71.38 1.26.7 1.7 1a32.7 32.7 0 001.21-3.51c3.71-12.89-.53-27.54-9.79-39.67C93.25 33.81 106 57.05 100.66 76.51c-.14.53-.29 1-.45 1.55l.19.22c10.59 12.63 7.68 26 6.35 23.5C101 91 90.37 94.33 85 96.5z"/></svg></g>',toml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F6EEEA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#9C4121" d="M.014 0h5.34v2.652H2.888v18.681h2.468V24H.015V0Zm17.622 5.049v2.78h-4.274v12.935h-3.008V7.83H6.059V5.05h11.577ZM23.986 24h-5.34v-2.652h2.467V2.667h-2.468V0h5.34v24Z"/></g>',typescript:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#fff" d="M22.67 47h99.67v73.67H22.67z"/><path data-name="original" fill="#007acc" d="M1.5 63.91v62.5h125v-125H1.5zm100.73-5a15.56 15.56 0 017.82 4.5 20.58 20.58 0 013 4c0 .16-5.4 3.81-8.69 5.85-.12.08-.6-.44-1.13-1.23a7.09 7.09 0 00-5.87-3.53c-3.79-.26-6.23 1.73-6.21 5a4.58 4.58 0 00.54 2.34c.83 1.73 2.38 2.76 7.24 4.86 8.95 3.85 12.78 6.39 15.16 10 2.66 4 3.25 10.46 1.45 15.24-2 5.2-6.9 8.73-13.83 9.9a38.32 38.32 0 01-9.52-.1 23 23 0 01-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9.34 9.34 0 011.15-.73L82 101l3.59-2.08.75 1.11a16.78 16.78 0 004.74 4.54c4 2.1 9.46 1.81 12.16-.62a5.43 5.43 0 00.69-6.92c-1-1.39-3-2.56-8.59-5-6.45-2.78-9.23-4.5-11.77-7.24a16.48 16.48 0 01-3.43-6.25 25 25 0 01-.22-8c1.33-6.23 6-10.58 12.82-11.87a31.66 31.66 0 019.49.26zm-29.34 5.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49.19 49.19 0 01.12-5.17C29.08 59 39 59 51 59h21.83z"/></svg></g>',vue:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF8F3" stroke="#D5EAE0" stroke-width=".5"/><path fill="#41B883" d="M3.5 5h3.2l3.3 5.7L13.3 5h3.2L10 16z"/><path fill="#35495E" d="M6.7 5H9l1 1.8L11 5h2.3L10 10.7z"/>',wasm:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#654ff0" d="M.223.222v127.555h127.555V.222H78.594c.014.227.036.455.036.686 0 8.08-6.55 14.626-14.63 14.626-8.078 0-14.625-6.546-14.625-14.626 0-.231.022-.459.031-.686zm29.595 68.746h8.445l5.782 30.738h.107l6.968-30.738h7.908l6.265 31.119h.106l6.597-31.119h8.284l-10.765 45.156H61.12l-6.213-30.738H54.8l-6.7 30.738h-8.557zm59.994 0h13.334l13.284 45.156h-8.77l-2.879-10.051H89.59l-2.212 10.05h-8.5ZM94.895 80.1l-3.684 16.57h11.473L98.448 80.1Z"/></svg></g>',xml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF3FA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#005FAD" d="M4.345 7.053c-.495.02-.44.725-.536 1.081-.157.583-.3 1.325-.347 1.926-.046.585-.008 1.127.066 1.719.058.46.191.767.07.89-.108.11-3.216 2.962-3.466 3.123-.26.169-.08.584.069.817.157.246.23.373.557.33.306-.042.405-.409.583-.606.228-.252 2.421-2.401 2.616-2.401.077.544.367 1.064.67 1.513.15.222.314.439.505.629.175.175.4.317.587.45.44.024.795-.301.35-.67-.17-.14-.735-.971-.927-1.43-.18-.43-.574-1.076-.146-1.428 1.494-1.23 3.72-2.262 4.247-2.313-.257 1.024-1.356 3.048-1.757 4.012-.14.333-.231.732-.185 1.094.055.434.383.774.587.806.417-.023.7-.387.946-.645.343-.357.634-.685.974-1.043.339-.356.672-.731.971-1.07.184-.207.674-.713.963-.713-.11.693-.716 1.552-.839 2.254-.125.716.531 1.596 1.217.956.623-.58 1.255-1.129 1.867-1.72.217-.208.175.037.224.242.05.208.176.91.275 1.1.18.346.496.592.897.598.362.006.727-.161.982-.414.19-.187.513-.699.154-.832-.23-.086-.217-.176-.495-.129-.172.029-.362.074-.507.179-.367-.003-.381-.89-.324-1.161.068-.327.207-.659.185-.998-.026-.418-.478-.69-.582-.72-.156-.076-.253.023-.458.212-.173.161-.363.332-.535.495-.34.322-.768.813-.942.813.305-.705.708-2.652-.643-2.48-.563.071-.95.377-1.394.71-.29.28-.683.641-.936.87-.236.216-.371.404-.496.404.132-.747 1.685-3.167.885-3.853-.158-.136-.313-.325-.515-.349a4.637 4.637 0 0 0-.833.19c-.565.18-2.78 1.28-4.19 2.289-.131.094-.214-.085-.231-.29-.087-1.058.199-2.19.496-3.188.208-.696-.557-1.225-.659-1.249zm18.177.874c-.166.364-.2.894-.248 1.319a24.307 24.307 0 0 0-1.246-.115c.238.296.691.588 1.056.724-.048.366-.434.67-.599 1.021.458-.127.676-.47.989-.821.362.22.791.627 1.26.636-.177-.376-.334-.695-.658-.966.269-.175.717-.362.924-.633-.345-.074-.718-.093-1.052-.015-.258-.284-.3-.772-.426-1.15zm-2.92.079c-.23.02-.613.49-.832.773-.807 1.039-1.542 3.15-1.661 3.542-.363 1.195-.502 2.672.28 3.722.456.612 1.258.66 2.041.434.405-.116.812-.406.95-.723.114-.263.174-.753-.404-.38-.224.145-.634.304-1.37.291-.247-.004-.651-.357-.76-.722-.192-.595-.11-1.393-.11-1.393.167-1.028.642-2.146 1.061-3.076.163-.36.658-1.259.842-1.546 0 0 .239-.373.131-.77-.031-.116-.091-.16-.168-.152zm3.072 2.976c-.12.264-.144.648-.18.956-.274-.031-.63-.066-.904-.083.172.215.501.426.766.525-.034.265-.314.486-.434.741.332-.092.49-.34.717-.596.263.16.575.456.914.462-.127-.273-.242-.504-.477-.701.195-.127.52-.262.67-.46a1.77 1.77 0 0 0-.763-.01c-.187-.206-.217-.56-.309-.834zm-1.123 2.422c-.083.183-.1.449-.125.662a12.6 12.6 0 0 0-.624-.058c.119.148.346.295.53.363-.025.184-.219.336-.301.513.23-.064.339-.236.496-.413.181.11.397.316.632.32-.088-.19-.168-.349-.33-.485.135-.087.36-.181.463-.317a1.22 1.22 0 0 0-.527-.008c-.13-.142-.151-.387-.214-.576z"/></g>',yaml:`<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEEEF" stroke="#F0D8DB" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet">
84
84
  <polygon transform="matrix(.24805 0 0 .24805 .5 5.6287)" points="87.702 137.67 0 0 63.25 0 119.02 88.646 175.24 0 235.79 0 143.98 137.67 143.98 224.95 87.702 224.95"/>
85
85
  <path d="m82.428 49.149h-25.266l-5.1388 12.408h-11.188l23.659-55.798h11.444l22.699 55.798h-11.956l-4.2525-12.408zm-4.197-11.14-7.7455-20.476-8.6412 20.476z" fill="#cb171e"/>
86
86
  <polygon transform="matrix(.24805 0 0 .24805 .5 5.6287)" points="87.701 250.18 87.701 470.65 135 470.65 135 318.57 184.51 420.79 221.74 420.79 272.94 314.98 272.94 470.6 318.32 470.6 318.32 250.18 256.36 250.18 201.38 349.88 149.02 250.18"/>
87
87
  <polygon transform="matrix(.24805 0 0 .24805 .5 5.6287)" points="512 422.74 512 422.74 395.64 422.74 395.64 250.12 347.44 250.12 347.44 469.65 512 469.65"/>
88
- </svg>`,zig:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF4DF" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#E18A00" d="m23.53 1.02-7.686 3.45h-7.06l-2.98 3.452h7.173L.47 22.98l7.681-3.607h7.065v-.002l2.978-3.45-7.148-.001 12.482-14.9zM0 4.47v14.901h1.883l2.98-3.45H3.451v-8h.942l2.824-3.45H0zm22.117 0-2.98 3.608h1.412v7.844h-.942l-2.98 3.45H24V4.47h-1.883z"/></g>'});function Gv({type:t,size:i=20,className:r}){const o=`piw-code-icon-${M.useId().replaceAll(":","")}`,s=Qv[t].replaceAll(Zv,o);return d.jsx("svg",{width:i,height:i,className:r,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,dangerouslySetInnerHTML:{__html:s}})}const Yv=["angular","c","clojure","cmake","cpp","csharp","css","dart","docker","elixir","env","erlang","flutter","git","go","graphql","haskell","ini","java","javascript","json","kotlin","lua","makefile","node","objective-c","perl","php","powershell","protobuf","python","r","react","ruby","rust","scala","shell","solidity","sql","svelte","swift","toml","typescript","vue","wasm","xml","yaml","zig"],Kv=new Set(Yv),Xv={".bash_profile":"shell",".bashrc":"shell",".env":"env",".gitattributes":"git",".gitconfig":"git",".gitignore":"git",".gitmodules":"git",".mailmap":"git",".profile":"shell",".zprofile":"shell",".zshrc":"shell",bsdmakefile:"makefile","cmakelists.txt":"cmake",commit_editmsg:"git","compose.yaml":"docker","compose.yml":"docker","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker",gemfile:"ruby",gnumakefile:"makefile",guardfile:"ruby",makefile:"makefile","npm-shrinkwrap.json":"node","package-lock.json":"node","package.json":"node",podfile:"ruby",rakefile:"ruby"},Jv=[["dockerfile.","docker"],[".env.","env"]],eC=[[".component.ts","angular"],[".component.html","angular"],[".directive.ts","angular"],[".service.ts","angular"],[".module.ts","angular"],[".pipe.ts","angular"],[".guard.ts","angular"],[".interceptor.ts","angular"],[".dockerfile","docker"]],tC={bash:"shell",c:"c","c++":"cpp",cc:"cpp",cfg:"ini",cjs:"javascript",clj:"clojure",cljc:"clojure",cljs:"clojure",cmake:"cmake",cpp:"cpp",cs:"csharp",csh:"shell",css:"css",csx:"csharp",cts:"typescript",cxx:"cpp",dart:"dart",dtd:"xml",edn:"clojure",env:"env",erl:"erlang",es6:"javascript",escript:"erlang",ex:"elixir",exs:"elixir",fish:"shell",gemspec:"ruby",go:"go",gql:"graphql",graphql:"graphql",h:"c","h++":"cpp",hh:"cpp",hpp:"cpp",hrl:"erlang",hs:"haskell",hxx:"cpp",ini:"ini",ipp:"cpp",java:"java",js:"javascript",json:"json",json5:"json",jsonc:"json",jsx:"react",ksh:"shell",kt:"kotlin",kts:"kotlin",lhs:"haskell",lua:"lua",m:"objective-c",mak:"makefile",mjs:"javascript",mk:"makefile",mm:"objective-c",mts:"typescript",node:"node",pch:"objective-c",php:"php",php3:"php",php4:"php",php5:"php",phps:"php",phtml:"php",pl:"perl",plist:"xml",pm:"perl",pod:"perl",proto:"protobuf",ps1:"powershell",psd1:"powershell",psm1:"powershell",py:"python",pyi:"python",pyw:"python",pyx:"python",r:"r",rake:"ruby",rb:"ruby",rmd:"r",rs:"rust",sc:"scala",scala:"scala",sh:"shell",sol:"solidity",sql:"sql",svelte:"svelte",swift:"swift",t:"perl",tcsh:"shell",toml:"toml",tpp:"cpp",ts:"typescript",tsx:"react",vue:"vue",wasm:"wasm",wast:"wasm",wat:"wasm",xml:"xml",xsd:"xml",xsl:"xml",xslt:"xml",yaml:"yaml",yml:"yaml",zig:"zig",zsh:"shell"};function nC(t){return t.slice(Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"))+1)}function rC(t){return Kv.has(t)}function iC(t,i,r){var s;const o=Xv[t];if(o!==void 0)return o;for(const[u,c]of Jv)if(t.startsWith(u))return c;for(const[u,c]of eC)if(t.endsWith(u))return c;if(i==="dart"&&r!==void 0){const u=(s=Object.entries(r.files).find(([c])=>nC(c).toLowerCase()==="pubspec.yaml"))==null?void 0:s[1];if((u==null?void 0:u.includes("flutter:"))===!0)return"flutter"}return tC[i]??null}const lC="_icon_1tiqm_1",oC="_code_1tiqm_8",sC="_excel_1tiqm_12",aC="_folder_1tiqm_16",uC="_html_1tiqm_20",cC="_image_1tiqm_24",dC="_markdown_1tiqm_28",fC="_other_1tiqm_32",pC="_pdf_1tiqm_36",hC="_ppt_1tiqm_40",mC="_video_1tiqm_44",gC="_word_1tiqm_48",J2={icon:lC,code:oC,excel:sC,folder:aC,html:uC,image:cC,markdown:dC,other:fC,pdf:pC,ppt:hC,video:mC,word:gC},yC={scss:"code",sass:"code",less:"code",vue:"code",svelte:"code",astro:"code",bat:"code",cmd:"code",csv:"code",tsv:"code",html:"html",htm:"html",png:"image",jpg:"image",jpeg:"image",gif:"image",svg:"image",webp:"image",avif:"image",bmp:"image",ico:"image",tif:"image",tiff:"image",heic:"image",heif:"image",md:"markdown",mdx:"markdown",markdown:"markdown",pdf:"pdf",ppt:"ppt",pptx:"ppt",key:"ppt",mp4:"video",mov:"video",m4v:"video",webm:"video",mkv:"video",avi:"video",mpg:"video",mpeg:"video",doc:"word",docx:"word",rtf:"word",odt:"word",pages:"word",xls:"excel",xlsx:"excel",xlsm:"excel",numbers:"excel"},xC={changelog:"markdown",contributing:"markdown",readme:"markdown"};function kd(t){return t.slice(Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"))+1)}function uu(t){const i=kd(t),r=i.lastIndexOf(".");return r<0?"":i.slice(r+1)}function vC(t,i){const r=kd(t).toLowerCase(),o=uu(r).toLowerCase();return iC(r,o,i)??xC[r]??yC[o]??"other"}const CC="M8.48924 28H19.5108C21.6479 28 22.7165 28 23.5594 27.6509C24.6833 27.1853 25.5762 26.2924 26.0417 25.1685C26.3909 24.3256 26.3909 23.257 26.3909 21.1199V8.79443C26.3909 8.32877 26.3909 8.09593 26.3471 7.87507C26.2887 7.58058 26.173 7.30042 26.0067 7.05048C25.882 6.86303 25.7177 6.69799 25.3893 6.36792L20.0611 1.01354C19.7304 0.681235 19.5651 0.515081 19.3769 0.38885C19.126 0.220541 18.8443 0.103463 18.5481 0.0443412C18.3259 0 18.0915 0 17.6226 0H8.48924C6.35209 0 5.28351 0 4.4406 0.349145C3.31672 0.814671 2.4238 1.70759 1.95828 2.83147C1.60913 3.67438 1.60913 4.74296 1.60913 6.88011V21.1199C1.60913 23.257 1.60913 24.3256 1.95828 25.1685C2.4238 26.2924 3.31672 27.1853 4.4406 27.6509C5.28351 28 6.35209 28 8.48924 28Z",e3="M26.3909 7.37445L19.0525 0V3.77445C19.0525 4.89271 19.0525 5.45184 19.2352 5.89289C19.4788 6.48096 19.946 6.94818 20.5341 7.19176C20.9751 7.37445 21.5342 7.37445 22.6525 7.37445H26.3909Z",wC="translate(14 16) scale(1.12) translate(-14 -16)",al="translate(14 16) scale(1.22) translate(-14 -16)",kC="translate(14 13.0693) scale(1.12) translate(-14 -13.0693)";function jn({size:t,className:i,children:r,markTransform:o=wC,muted:s=!1}){return d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[d.jsx("path",{d:CC,fill:"currentColor"}),s?d.jsx("path",{d:e3,fill:"var(--dsw-static-neutral-400)"}):d.jsx("path",{d:e3,fill:"var(--dsw-static-neutral-00)",fillOpacity:".7"}),r!==void 0&&d.jsx("g",{color:"var(--dsw-static-neutral-00)","data-file-type-mark":!0,transform:o,children:r})]})}function _C({size:t,className:i}){return d.jsxs("svg",{width:t,height:t,className:i,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[d.jsx("path",{d:"M2.80078 10.2112C2.80078 9.52802 2.80078 9.18642 2.85314 8.866C2.98648 8.05 3.36942 7.29538 3.94925 6.70595C4.17694 6.4745 4.45264 6.2728 5.00404 5.86939C5.29197 5.65874 5.43594 5.55342 5.58711 5.46632C5.97089 5.24521 6.39638 5.10618 6.83667 5.05803C7.01011 5.03906 7.18849 5.03906 7.54524 5.03906H11.6543C12.4669 5.03906 12.8732 5.03906 13.2599 5.13697C13.3882 5.16945 13.5143 5.20986 13.6375 5.25795C14.0091 5.40294 14.3398 5.63902 15.0012 6.1112L16.2632 7.01224C16.5526 7.21881 16.6972 7.3221 16.8598 7.38553C16.9137 7.40657 16.9689 7.42425 17.025 7.43846C17.1942 7.4813 17.372 7.4813 17.7275 7.4813H19.8008C22.0506 7.4813 23.1755 7.4813 23.9641 8.05425C24.2188 8.23928 24.4428 8.46326 24.6278 8.71794C25.2008 9.50654 25.2008 10.6315 25.2008 12.8813V18.7283C25.2008 20.9781 25.2008 22.1031 24.6278 22.8917C24.4428 23.1463 24.2188 23.3703 23.9641 23.5554C23.1755 24.1283 22.0506 24.1283 19.8008 24.1283H8.20077C5.95094 24.1283 4.82602 24.1283 4.03743 23.5554C3.78274 23.3703 3.55877 23.1463 3.37373 22.8917C2.80078 22.1031 2.80078 20.9781 2.80078 18.7283V10.2112Z",fill:"currentColor"}),d.jsx("g",{color:"var(--dsw-static-neutral-00)","data-file-type-mark":!0,transform:kC,children:d.jsx("path",{d:"M6.31445 13.0693H21.6893",stroke:"currentColor",strokeWidth:"2.38"})})]})}function SC(t,i,r){switch(t){case"code":return d.jsxs(jn,{size:i,className:r,children:[d.jsx("path",{d:"M8.61 16.3601L11.76 18.3901V20.1401L7 17.0601V15.6601L11.76 12.5801V14.3301L8.61 16.3601Z",fill:"currentColor"}),d.jsx("path",{d:"M16.1918 14.3301V12.5801L20.9518 15.6601V17.0601L16.1918 20.1401V18.3901L19.3418 16.3601L16.1918 14.3301Z",fill:"currentColor"})]});case"excel":return d.jsx(jn,{size:i,className:r,markTransform:al,children:d.jsx("path",{d:"M10.2932 20.5L13.3532 16.25L13.3432 17.66L10.4032 13.5H12.6332L14.5132 16.21L13.5632 16.22L15.4132 13.5H17.5532L14.6132 17.58V16.18L17.7132 20.5H15.4332L13.5232 17.65H14.4332L12.5532 20.5H10.2932Z",fill:"currentColor"})});case"folder":return d.jsx(_C,{size:i,className:r});case"html":return d.jsx(jn,{size:i,className:r,children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9994 9.68298C17.212 9.68298 19.8167 12.2872 19.8168 15.4997C19.8168 18.7123 17.2121 21.3171 13.9994 21.3171C10.7869 21.3169 8.18274 18.7122 8.18274 15.4997C8.1829 12.2873 10.787 9.68315 13.9994 9.68298ZM9.26213 16.0247C9.47025 17.9241 10.7936 19.4876 12.5639 20.0463C12.42 19.7977 12.2952 19.5152 12.1879 19.2116C11.885 18.3541 11.693 17.2434 11.6424 16.0247H9.26213ZM16.3565 16.0247C16.3059 17.2434 16.1145 18.3542 15.8116 19.2116C15.7044 19.5151 15.5788 19.7971 15.435 20.0456C17.2054 19.487 18.5293 17.9242 18.7374 16.0247H16.3565ZM12.6938 16.0247C12.7439 17.1459 12.9212 18.1334 13.1784 18.8616C13.332 19.2962 13.503 19.61 13.6686 19.805C13.834 19.9996 13.9473 20.0256 13.9994 20.0258C14.0514 20.0258 14.1651 20.0002 14.331 19.805C14.4966 19.61 14.6676 19.2962 14.8211 18.8616C15.0784 18.1334 15.2557 17.1459 15.3058 16.0247H12.6938ZM13.9994 10.733C13.9473 10.7331 13.834 10.7598 13.6686 10.9545C13.503 11.1494 13.3319 11.4633 13.1784 11.8978C12.903 12.6777 12.7188 13.7545 12.6849 14.9747H15.3147C15.2808 13.7545 15.0966 12.6777 14.8211 11.8978C14.6676 11.4633 14.4965 11.1494 14.331 10.9545C14.1651 10.7593 14.0514 10.733 13.9994 10.733ZM15.5888 11.0051C15.6701 11.1756 15.7444 11.3576 15.8116 11.5478C16.1343 12.4613 16.3308 13.6619 16.3647 14.9747H18.7374C18.5352 13.1307 17.2817 11.6036 15.5888 11.0051ZM12.4101 11.0051C10.7174 11.6037 9.46428 13.1308 9.26213 14.9747H11.6349C11.6688 13.6619 11.8652 12.4613 12.1879 11.5478C12.2551 11.3577 12.3288 11.1756 12.4101 11.0051Z",fill:"currentColor"})});case"image":return d.jsxs(jn,{size:i,className:r,children:[d.jsx("path",{d:"M10.4212 15.9204C10.5756 15.6558 10.9579 15.6558 11.1123 15.9204L13.6493 20.2696C13.8048 20.5362 13.6125 20.8711 13.3037 20.8711H8.22974C7.92102 20.8711 7.72868 20.5362 7.88423 20.2696L10.4212 15.9204Z",fill:"currentColor"}),d.jsx("path",{d:"M15.4981 13.186C15.6505 12.9117 16.0451 12.9117 16.1975 13.186L20.1368 20.2769C20.2849 20.5435 20.0922 20.8711 19.7872 20.8711H11.9084C11.6034 20.8711 11.4107 20.5435 11.5588 20.2769L15.4981 13.186Z",fill:"currentColor"}),d.jsx("path",{d:"M11.8603 11.3997C11.8603 12.286 11.1418 13.0045 10.2555 13.0045C9.36924 13.0045 8.65076 12.286 8.65076 11.3997C8.65076 10.5134 9.36924 9.79492 10.2555 9.79492C11.1418 9.79492 11.8603 10.5134 11.8603 11.3997Z",fill:"currentColor"})]});case"markdown":return d.jsx(jn,{size:i,className:r,markTransform:al,children:d.jsx("path",{d:"M8.7588 19.5V14.6H9.8998L11.9298 17.932H11.3278L13.3018 14.6H14.4428L14.4568 19.5H13.1828L13.1688 16.539H13.3858L11.9088 19.017H11.2928L9.7738 16.539H10.0398V19.5H8.7588ZM15.4375 19.5V14.6H17.7545C18.2958 14.6 18.7718 14.7003 19.1825 14.901C19.5932 15.1017 19.9128 15.384 20.1415 15.748C20.3748 16.112 20.4915 16.546 20.4915 17.05C20.4915 17.5493 20.3748 17.9833 20.1415 18.352C19.9128 18.716 19.5932 18.9983 19.1825 19.199C18.7718 19.3997 18.2958 19.5 17.7545 19.5H15.4375ZM16.8235 18.394H17.6985C17.9785 18.394 18.2212 18.3427 18.4265 18.24C18.6365 18.1327 18.7998 17.9787 18.9165 17.778C19.0332 17.5727 19.0915 17.33 19.0915 17.05C19.0915 16.7653 19.0332 16.5227 18.9165 16.322C18.7998 16.1213 18.6365 15.9697 18.4265 15.867C18.2212 15.7597 17.9785 15.706 17.6985 15.706H16.8235V18.394Z",fill:"currentColor"})});case"other":return d.jsx(jn,{size:i,className:r,muted:!0});case"pdf":return d.jsx(jn,{size:i,className:r,markTransform:al,children:d.jsx("path",{d:"M6.80616 19.5V14.6H9.04616C9.49416 14.6 9.87916 14.6723 10.2012 14.817C10.5278 14.9617 10.7798 15.1717 10.9572 15.447C11.1345 15.7177 11.2232 16.0397 11.2232 16.413C11.2232 16.7817 11.1345 17.1013 10.9572 17.372C10.7798 17.6427 10.5278 17.8527 10.2012 18.002C9.87916 18.1467 9.49416 18.219 9.04616 18.219H7.57616L8.19216 17.617V19.5H6.80616ZM8.19216 17.764L7.57616 17.127H8.96216C9.2515 17.127 9.46616 17.064 9.60616 16.938C9.75083 16.812 9.82316 16.637 9.82316 16.413C9.82316 16.1843 9.75083 16.007 9.60616 15.881C9.46616 15.755 9.2515 15.692 8.96216 15.692H7.57616L8.19216 15.055V17.764ZM11.8989 19.5V14.6H14.2159C14.7573 14.6 15.2333 14.7003 15.6439 14.901C16.0546 15.1017 16.3743 15.384 16.6029 15.748C16.8363 16.112 16.9529 16.546 16.9529 17.05C16.9529 17.5493 16.8363 17.9833 16.6029 18.352C16.3743 18.716 16.0546 18.9983 15.6439 19.199C15.2333 19.3997 14.7573 19.5 14.2159 19.5H11.8989ZM13.2849 18.394H14.1599C14.4399 18.394 14.6826 18.3427 14.8879 18.24C15.0979 18.1327 15.2613 17.9787 15.3779 17.778C15.4946 17.5727 15.5529 17.33 15.5529 17.05C15.5529 16.7653 15.4946 16.5227 15.3779 16.322C15.2613 16.1213 15.0979 15.9697 14.8879 15.867C14.6826 15.7597 14.4399 15.706 14.1599 15.706H13.2849V18.394ZM17.6821 19.5V14.6H21.5251V15.671H19.0681V19.5H17.6821ZM18.9701 17.82V16.749H21.2311V17.82H18.9701Z",fill:"currentColor"})});case"ppt":return d.jsx(jn,{size:i,className:r,markTransform:al,children:d.jsx("path",{d:"M11.0132 20.5V13.5H14.2132C14.8532 13.5 15.4032 13.6033 15.8632 13.81C16.3299 14.0167 16.6899 14.3167 16.9432 14.71C17.1966 15.0967 17.3232 15.5567 17.3232 16.09C17.3232 16.6167 17.1966 17.0733 16.9432 17.46C16.6899 17.8467 16.3299 18.1467 15.8632 18.36C15.4032 18.5667 14.8532 18.67 14.2132 18.67H12.1132L12.9932 17.81V20.5H11.0132ZM12.9932 18.02L12.1132 17.11H14.0932C14.5066 17.11 14.8132 17.02 15.0132 16.84C15.2199 16.66 15.3232 16.41 15.3232 16.09C15.3232 15.7633 15.2199 15.51 15.0132 15.33C14.8132 15.15 14.5066 15.06 14.0932 15.06H12.1132L12.9932 14.15V18.02Z",fill:"currentColor"})});case"video":return d.jsx(jn,{size:i,className:r,children:d.jsx("path",{d:"M17.5 14.634C18.1667 15.0189 18.1667 15.9811 17.5 16.366L11.5 19.8301C10.8333 20.215 10 19.7339 10 18.9641L10 12.0359C10 11.2661 10.8333 10.785 11.5 11.1699L17.5 14.634Z",fill:"currentColor"})});case"word":return d.jsx(jn,{size:i,className:r,markTransform:al,children:d.jsx("path",{d:"M10.5118 20.5L8.24179 13.5H10.2818L12.1918 19.56H11.1618L13.1718 13.5H14.9918L16.8918 19.56H15.9018L17.8718 13.5H19.7618L17.4918 20.5H15.3718L13.7518 15.35H14.3218L12.6318 20.5H10.5118Z",fill:"currentColor"})});default:return EC(t)}}function EC(t){throw new Error(`unreachable traditional file type: ${String(t)}`)}function _d(t){const{size:i=28,className:r}=t,o="path"in t?vC(t.path,t.context):t.kind;return rC(o)?d.jsx(Gv,{type:o,size:i,className:r}):SC(o,i,rt(J2.icon,J2[o],r))}function bC(t){if(t<1024)return`${t}B`;const i=t/1024;if(i<1024)return`${i<10?i.toFixed(1):Math.round(i)}KB`;const r=i/1024;if(r<1024)return`${r<10?r.toFixed(1):Math.round(r)}MB`;const o=r/1024;return`${o<10?o.toFixed(1):Math.round(o)}GB`}const jC="_card_p20fp_1",LC="_failed_p20fp_16",NC="_icon_p20fp_20",IC="_spinner_p20fp_29",MC="_body_p20fp_43",TC="_retry_p20fp_51",PC="_name_p20fp_61",zC="_meta_p20fp_71",DC="_metaFailed_p20fp_80",RC="_remove_p20fp_84",AC="_removeFailed_p20fp_126",FC="_progressTrack_p20fp_132",OC="_progressBar_p20fp_143",jt={card:jC,failed:LC,icon:NC,spinner:IC,body:MC,retry:TC,name:PC,meta:zC,metaFailed:DC,remove:RC,removeFailed:AC,progressTrack:FC,progressBar:OC};function BC({name:t,bytes:i,status:r,error:o,onRemove:s,onRetry:u}){const c=uu(t).toUpperCase().slice(0,8),f=r==="uploading"?"上传中…":r==="error"?o||"上传失败":`${c} ${bC(i)}`;return d.jsxs("div",{className:`${jt.card} ${r==="error"?jt.failed:""}`,title:t,children:[d.jsx("span",{className:jt.icon,"aria-hidden":"true",children:r==="uploading"?d.jsx("span",{className:jt.spinner}):d.jsx(_d,{path:t,size:28})}),r==="error"?d.jsxs("button",{type:"button",className:`${jt.body} ${jt.retry}`,onClick:u,"aria-label":`重试上传 ${t}`,children:[d.jsx("span",{className:jt.name,children:t}),d.jsx("span",{className:`${jt.meta} ${jt.metaFailed}`,children:f})]}):d.jsxs("span",{className:jt.body,"aria-label":`待发送文件 ${t}`,children:[d.jsx("span",{className:jt.name,children:t}),d.jsx("span",{className:jt.meta,children:f})]}),d.jsx("button",{type:"button",className:`${jt.remove} ${r==="error"?jt.removeFailed:""}`,"aria-label":`移除 ${t}`,onClick:s,children:d.jsx(V1,{size:12})}),r==="uploading"&&d.jsx("span",{className:jt.progressTrack,"aria-hidden":"true",children:d.jsx("span",{className:jt.progressBar})})]})}const $C="_imageItem_1b0gl_9",HC="_thumbnail_1b0gl_15",VC="_remove_1b0gl_33",UC="_retryImage_1b0gl_58",$o={imageItem:$C,thumbnail:HC,remove:VC,retryImage:UC};function WC({file:t,status:i,error:r,onRemove:o,onRetry:s}){const[u,c]=M.useState(null),[f,h]=M.useState(!1),m=M.useCallback(()=>h(!1),[]),x=/^(image\/(png|jpeg|webp|gif))$/.test(t.type)||/\.(png|jpe?g|webp|gif)$/i.test(t.name);return M.useEffect(()=>{if(!x)return;const y=URL.createObjectURL(t);return c(y),()=>URL.revokeObjectURL(y)},[t,x]),x?d.jsxs("div",{className:$o.imageItem,title:t.name,children:[d.jsx("button",{type:"button",className:$o.thumbnail,"aria-label":`预览 ${t.name}`,disabled:u===null,onClick:()=>h(!0),children:u&&d.jsx("img",{src:u,alt:t.name})}),d.jsx("button",{type:"button",className:$o.remove,"aria-label":`移除 ${t.name}`,onClick:o,children:d.jsx(V1,{size:12})}),i==="uploading"&&d.jsx("span",{className:"pi-image-uploading",role:"status",children:"上传中"}),i==="error"&&d.jsx("button",{type:"button",className:$o.retryImage,"aria-label":`重试上传 ${t.name}`,title:r||"上传失败",onClick:s,children:"重试"}),f&&u&&d.jsx(wd,{src:u,alt:t.name,labels:{dialog:"图片预览",close:"关闭预览"},onClose:m})]}):d.jsx(BC,{name:t.name,bytes:t.size,status:i,error:r,onRemove:o,onRetry:s})}const qC="_frame_33xub_18",ZC="_loading_33xub_51",QC="_error_33xub_52",C1={frame:qC,loading:ZC,error:QC};function GC(t,i){const r=t/i,o=Math.min(4,Math.max(.25,r)),s=o>=1?{width:240,height:240/o}:{width:240*o,height:240},u=Math.min(1,t/s.width,i/s.height);return{width:Math.max(1,Math.round(s.width*u)),height:Math.max(1,Math.round(s.height*u)),objectPosition:r<.25?"center top":r>4?"left center":"center"}}function YC({name:t,messageId:i,index:r,file:o,tile:s,loadImage:u}){const[c,f]=M.useState(null),[h,m]=M.useState(!1),[x,y]=M.useState(!1),[v,C]=M.useState(0),[k,N]=M.useState(null),b=M.useRef(u);b.current=u,M.useEffect(()=>{let T=!0,I=null;return f(null),m(!1),N(null),o?(I=URL.createObjectURL(o),f(I)):b.current(i,r).then(U=>{const Z=URL.createObjectURL(U);T?(I=Z,f(Z)):URL.revokeObjectURL(Z)}).catch(()=>{T&&m(!0)}),()=>{T=!1,I&&URL.revokeObjectURL(I)}},[o,i,r,v]);const _=!s&&k?GC(k.width,k.height):null;return h?d.jsx("button",{type:"button",className:C1.error,"data-variant":s?"tile":"single",onClick:()=>C(T=>T+1),children:"图片加载失败,重试"}):d.jsxs(d.Fragment,{children:[d.jsx("button",{type:"button",className:C1.frame,"data-variant":s?"tile":"single","aria-label":`预览 ${t}`,title:"查看原图",disabled:!c,onClick:()=>y(!0),style:_?{width:_.width,height:_.height}:void 0,children:c?d.jsx("img",{src:c,alt:t,onLoad:T=>N({width:T.currentTarget.naturalWidth,height:T.currentTarget.naturalHeight}),onError:()=>m(!0),style:_?{objectPosition:_.objectPosition}:void 0}):d.jsx("span",{className:C1.loading,children:"加载中"})}),x&&c&&d.jsx(wd,{src:c,alt:t,labels:{dialog:"图片预览",close:"关闭预览"},onClose:()=>y(!1)})]})}const KC=12;function XC(t,i,r){const[o,s]=M.useState(i);return M.useLayoutEffect(()=>{const u=t.current;if(u===null)return;const c=()=>{s(Math.min(i,Math.max(0,u.getBoundingClientRect().bottom-KC)))};return c(),window.addEventListener("resize",c),window.addEventListener("scroll",c,!0),()=>{window.removeEventListener("resize",c),window.removeEventListener("scroll",c,!0)}},[t,i,r]),o}const JC="_menu_rkz86_1",ew="_viewport_rkz86_46",tw="_item_rkz86_53",nw="_active_rkz86_72",rw="_itemName_rkz86_100",iw="_itemDescription_rkz86_121",lw="_groupTitle_rkz86_188",dr={menu:JC,viewport:ew,item:tw,active:nw,itemName:rw,itemDescription:iw,groupTitle:lw},ow=[{name:"compact",description:"压缩当前会话内容"},{name:"model",description:"选择本会话使用的模型"},{name:"new",description:"创建新会话"}];function sw({commands:t,active:i,onHover:r,onPick:o}){const s=M.useRef(null),u=XC(s,400,t.length);return d.jsx("div",{ref:s,className:dr.menu,"data-trigger-menu":"",style:{maxHeight:u},children:d.jsxs("div",{className:dr.viewport,role:"listbox","aria-label":"指令","aria-activedescendant":t[i]?`pi-command-${i}`:void 0,children:[d.jsx("div",{className:dr.groupTitle,role:"presentation",children:"指令"}),t.map((c,f)=>d.jsxs("button",{id:`pi-command-${f}`,type:"button",role:"option","aria-selected":f===i,className:`${dr.item} ${f===i?dr.active:""}`,onMouseDown:h=>{h.preventDefault(),o(c)},onMouseMove:()=>r(f),children:[d.jsx("span",{className:dr.itemName,children:c.name}),c.description&&d.jsx("span",{className:dr.itemDescription,children:c.description})]},c.name)),t.length===0&&d.jsx("div",{className:dr.groupTitle,children:"没有匹配的指令"})]})})}const aw="_mask_dzmab_3",uw="_wrap_dzmab_27",cw="_illustration_dzmab_37",dw="_title_dzmab_42",fw="_desc_dzmab_47",ul={mask:aw,wrap:uw,illustration:cw,title:dw,desc:fw};function pw({disabled:t,labels:i}){return _l.createPortal(d.jsx("div",{className:ul.mask,role:"status",children:d.jsxs("div",{className:ul.wrap,children:[d.jsx("div",{className:ul.illustration,"aria-hidden":"true",children:t?d.jsx(mw,{}):d.jsx(hw,{})}),d.jsx("div",{className:ul.title,children:i.title}),!t&&i.desc!==void 0&&d.jsx("div",{className:ul.desc,children:i.desc})]})}),document.body)}const hw=()=>d.jsxs("svg",{width:"115",height:"84",viewBox:"0 0 115 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsxs("g",{clipPath:"url(#piwDropOverlayClip)",children:[d.jsx("rect",{y:"17.0742",width:"44.1832",height:"43.6431",rx:"12",transform:"rotate(-22.7338 0 17.0742)",fill:"#9CE5ED"}),d.jsx("rect",{x:"73.4043",y:"8.54297",width:"43.7267",height:"50.5284",rx:"8",transform:"rotate(17.403 73.4043 8.54297)",fill:"#679EFE"}),d.jsx("path",{d:"M30.4917 28.1369L40.8865 33.4564L37.2232 34.9524L29.5302 31.0159L26.7919 39.2122L23.1285 40.7082L26.8287 29.6338L16.8967 24.5516L20.5601 23.0556L27.7902 26.7549L30.3639 19.052L34.0273 17.556L30.4917 28.1369Z",fill:"white"}),d.jsx("path",{d:"M77.5088 26.3047L101.057 33.7966",stroke:"white",strokeWidth:"3"}),d.jsx("path",{d:"M72.2646 42.7871L86.3938 47.2823",stroke:"white",strokeWidth:"3"}),d.jsx("path",{d:"M74.8867 34.5469L98.4353 42.0388",stroke:"white",strokeWidth:"3"}),d.jsx("rect",{x:"31.583",y:"38.6641",width:"44.9157",height:"44.3666",rx:"12",transform:"rotate(-0.134233 31.583 38.6641)",fill:"#3964FE"}),d.jsx("path",{d:"M38.9521 73.0337C39.6129 71.7086 41.7113 66.0937 43.5113 61.1663C44.1607 59.3885 46.7484 59.3923 47.4591 61.1465C48.9728 64.8828 50.7969 68.6922 51.9988 69.1925C54.2946 70.1482 57.9854 59.3573 68.0064 70.1801",stroke:"white",strokeWidth:"3"}),d.jsx("circle",{cx:"60.6157",cy:"52.247",r:"4.38794",transform:"rotate(22.5996 60.6157 52.247)",fill:"white"})]}),d.jsx("defs",{children:d.jsx("clipPath",{id:"piwDropOverlayClip",children:d.jsx("rect",{width:"115",height:"84",fill:"white"})})})]}),mw=()=>d.jsxs("svg",{width:"115",height:"84",viewBox:"0 0 115 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M29.6829 4.63701L11.0677 12.4368C4.95519 14.998 2.07624 22.0294 4.6374 28.1419L12.2285 46.259C14.7896 52.3715 21.8211 55.2505 27.9336 52.6893L46.5488 44.8895C52.6613 42.3283 55.5403 35.2969 52.9791 29.1844L45.388 11.0673C42.8269 4.9548 35.7954 2.07585 29.6829 4.63701Z",fill:"#979DA6"}),d.jsx("path",{d:"M30.4915 28.1375L40.8863 33.4569L37.223 34.9529L29.53 31.0165L26.7917 39.2128L23.1283 40.7088L26.8285 29.6344L16.8965 24.5522L20.5599 23.0562L27.79 26.7555L30.3637 19.0526L34.0271 17.5566L30.4915 28.1375Z",fill:"white"}),d.jsx("path",{d:"M107.496 19.2285L81.0381 10.9357C76.8221 9.61423 72.333 11.9607 71.0116 16.1768L60.6844 49.1246C59.363 53.3406 61.7095 57.8297 65.9255 59.1511L92.383 67.4439C96.599 68.7654 101.088 66.4189 102.41 62.2029L112.737 29.255C114.058 25.039 111.712 20.55 107.496 19.2285Z",fill:"#979DA6"}),d.jsx("path",{d:"M77.5088 26.3047L101.057 33.7967",stroke:"white",strokeWidth:"3"}),d.jsx("path",{d:"M72.2646 42.7871L86.3938 47.2823",stroke:"white",strokeWidth:"3"}),d.jsx("path",{d:"M74.8867 34.5469L98.4353 42.0388",stroke:"white",strokeWidth:"3"}),d.jsx("path",{d:"M66.5798 30.1418L41.481 30.2006C33.5281 30.2193 27.0962 36.6815 27.1148 44.6343L27.172 69.0742C27.1907 77.0271 33.6529 83.459 41.6057 83.4404L66.7045 83.3816C74.6574 83.363 81.0894 76.9008 81.0707 68.9479L81.0135 44.5081C80.9949 36.5552 74.5327 30.1232 66.5798 30.1418Z",fill:"#F59E0B"}),d.jsx("path",{d:"M54 70.7969C61.732 70.7969 68 64.5289 68 56.7969C68 49.0649 61.732 42.7969 54 42.7969C46.268 42.7969 40 49.0649 40 56.7969C40 64.5289 46.268 70.7969 54 70.7969Z",stroke:"white",strokeWidth:"3.5"}),d.jsx("path",{d:"M44 46.7969L64 66.7969",stroke:"white",strokeWidth:"3.5",strokeLinecap:"round"})]});function Sd(t){const i=[];let r=t;for(;;){const o=/(^|\n\n)附件 ("(?:\\.|[^"\\])*"):([^\n]+)$/u.exec(r);if(!o||!/[\\/]pi-web[\\/]attachments[\\/][a-f0-9]{64}[\\/]/u.test(o[3]))break;let s;try{s=JSON.parse(o[2])}catch{break}i.unshift({name:s,image:/\.(?:png|jpe?g|webp|gif)$/iu.test(s)}),r=r.slice(0,o.index)}return{text:r,attachments:i}}function Ho({message:t,results:i,loadImage:r,running:o=!1,onInspect:s,cwd:u}){var c;if(t.role==="tool"&&t.toolCallId&&i.has(t.toolCallId))return null;if(t.role==="user"){const f=t.blocks.filter(v=>v.kind==="text").map(v=>v.text).join(`
89
- `),h=t.localFiles?{text:f,attachments:t.localFiles.map(v=>({name:v.name,image:/\.(?:png|jpe?g|webp|gif)$/iu.test(v.name)||/^image\/(?:png|jpeg|webp|gif)$/.test(v.type)}))}:Sd(f),m=t.blocks.map((v,C)=>({block:v,index:C})).filter(({block:v})=>v.kind==="image"),x=h.attachments.filter(v=>v.image),y=(c=t.localFiles)==null?void 0:c.filter(v=>/\.(?:png|jpe?g|webp|gif)$/iu.test(v.name)||/^image\/(?:png|jpeg|webp|gif)$/.test(v.type));return d.jsx("div",{className:$n.userRow,"data-message-role":"user",children:d.jsxs("div",{className:$n.userStack,children:[(m.length>0||h.attachments.some(v=>!v.image))&&d.jsxs("div",{className:$n.attachmentRow,"data-message-attachments":!0,children:[m.map(({index:v},C)=>{var k,N;return d.jsx(YC,{name:((k=x[C])==null?void 0:k.name)??((N=y==null?void 0:y[C])==null?void 0:N.name)??"图片",messageId:t.id,index:v,file:y==null?void 0:y[C],tile:m.length>1||h.attachments.length>m.length,loadImage:r},v)}),h.attachments.filter(v=>!v.image).map((v,C)=>d.jsxs("span",{className:$n.fileCard,title:v.name,children:[d.jsx(_d,{path:v.name,className:$n.fileIcon}),d.jsxs("span",{className:$n.fileContent,children:[d.jsx("span",{className:$n.fileName,children:v.name}),d.jsxs("span",{className:$n.fileMeta,children:[uu(v.name).toUpperCase()," 文件"]})]})]},`${v.name}-${C}`))]}),h.text&&d.jsx("div",{className:$n.bubble,children:h.text})]})})}return d.jsx("div",{className:"pi-message","data-message-role":t.role,children:t.blocks.map((f,h)=>f.kind==="thinking"?d.jsx(Rg,{text:f.text,running:o},h):f.kind==="toolCall"?d.jsx(sx,{block:f,result:f.toolCallId?i.get(f.toolCallId):void 0,running:o,cwd:u,onInspect:f.toolCallId&&s?()=>s(f.toolCallId):void 0},f.toolCallId||h):f.kind==="image"?d.jsx("div",{className:"pi-image-note",children:f.text},h):d.jsx(gd,{text:f.text},h))})}function gw({turn:t,results:i,model:r,loadImage:o,onInspect:s,running:u=!1,cwd:c}){const f=[...t.messages].reverse().find(_=>_.role==="assistant"&&_.blocks.some(T=>T.kind==="text"&&T.text.trim())),h=(f==null?void 0:f.blocks.filter(_=>_.kind==="text"))??[],m=[];for(const _ of t.messages)_.role==="assistant"&&_.blocks.forEach((T,I)=>{_===f&&T.kind==="text"||m.push({message:_,block:T,index:I})});const[x,y]=M.useState(!1),v=m.filter(({block:_})=>_.kind==="toolCall").length,C=new Set(m.filter(({block:_})=>_.kind!=="toolCall").map(({message:_})=>_.id)).size,k=h.map(_=>_.text).join(`
90
- `),N=u||x,b=t.messages.filter(_=>_.role==="assistant"&&_.error);return d.jsxs("div",{className:"pi-turn","data-turn":t.index,children:[t.messages.filter(_=>_.role==="user"||_.role==="notice").map(_=>d.jsx(Ho,{message:_,results:i,loadImage:o},_.id)),m.length>0&&d.jsxs(d.Fragment,{children:[h.length>0&&d.jsx(ax,{toolCount:v,messageCount:C,open:N,onToggle:()=>y(_=>!_)}),(N||h.length===0)&&d.jsx("div",{className:"pi-turn-process-content",children:m.map(({message:_,block:T,index:I})=>d.jsx(Ho,{message:{..._,blocks:[T]},results:i,loadImage:o,running:_.id==="stream",cwd:c,onInspect:s},`${_.id}-${I}`))})]}),h.length>0&&f&&d.jsx(Ho,{message:{...f,blocks:h},results:i,loadImage:o,running:f.id==="stream"}),t.messages.filter(_=>_.role==="tool"&&(!_.toolCallId||!i.has(_.toolCallId))).map(_=>d.jsx(Ho,{message:_,results:i,loadImage:o},_.id)),b.map(_=>d.jsxs("div",{className:"pi-model-error",role:"alert",children:[d.jsx("strong",{children:"模型请求失败"}),d.jsx("span",{children:/usage limit has been reached/i.test(_.error??"")?"模型服务的使用额度已耗尽。请切换模型或等待额度恢复后重试。":_.error})]},`${_.id}-error`)),!u&&b.length===0&&(f||t.usage&&t.usage.totalTokens>0)&&d.jsx(cx,{text:k,timestamp:f==null?void 0:f.timestamp,usage:t.usage,model:(f==null?void 0:f.model)??r})]})}function yw({hero:t,session:i,connection:r,onSend:o,onUpload:s,onDiscardAttachment:u,onStop:c,onCompact:f,onNewSession:h,commands:m,models:x,onSetModel:y,onSetThinkingLevel:v}){const[C,k]=M.useState(""),[N,b]=M.useState(!1),[_,T]=M.useState(null),[I,U]=M.useState(0),[Z,F]=M.useState(0),[W,Y]=M.useState([]),[ee,S]=M.useState(""),[$,K]=M.useState(!1),q=M.useRef(0),A=M.useRef(null),D=M.useRef(new Map),ie=M.useRef(new Set),ce=M.useRef(W);ce.current=W;const V=M.useRef(null),le=M.useRef(null),E=r==="connected"&&i!==null,z=E&&i.idle&&!N,Q=z&&(C.trim().length>0||W.length>0)&&W.every(J=>J.status==="ready"),j=E&&!i.idle&&!N,xe=M.useMemo(()=>{const J=new Map;for(const je of[...ow,...m])J.has(je.name)||J.set(je.name,je);return[...J.values()].sort((je,Me)=>je.name.localeCompare(Me.name))},[m]),_e=_==="slash"?C.slice(1).toLowerCase():"",he=_===null?[]:xe.filter(J=>J.name.toLowerCase().includes(_e));M.useEffect(()=>(Y([]),S(""),T(null),()=>{for(const J of ce.current)ie.current.add(J.key);for(const J of D.current.values())J.abort();for(const J of ce.current)J.receipt&&u(J.receipt.id).catch(()=>{});D.current.clear()}),[i==null?void 0:i.sessionId]),M.useEffect(()=>{if(_===null)return;const J=je=>{var Me;je.target instanceof Node&&!((Me=V.current)!=null&&Me.contains(je.target))&&T(null)};return document.addEventListener("pointerdown",J,!0),()=>document.removeEventListener("pointerdown",J,!0)},[_]);const X=async J=>{var je;if(_==="slash"&&["model","compact","new"].includes(J.name)&&k(""),T(null),J.name==="model"){F(Me=>Me+1);return}if(J.name==="compact"||J.name==="new"){b(!0);try{await(J.name==="compact"?f():h())}catch{}finally{b(!1)}return}k(`/${J.name} `),(je=le.current)==null||je.focus()},ye=M.useCallback((J,je)=>{const Me=new AbortController;D.current.set(J,Me),s(je,Me.signal).then(Ue=>{if(ie.current.has(J)){u(Ue.id).catch(()=>{});return}Y(qe=>qe.map(Mt=>Mt.key===J?{...Mt,status:"ready",receipt:Ue,error:void 0}:Mt))}).catch(Ue=>{if(ie.current.has(J))return;const qe=Ue instanceof Error?Ue.message:"上传失败";S(qe),Y(Mt=>Mt.map(Ae=>Ae.key===J?{...Ae,status:"error",error:qe}:Ae))}).finally(()=>{D.current.get(J)===Me&&D.current.delete(J)})},[s,u]),Se=J=>{var je;ie.current.add(J.key),(je=D.current.get(J.key))==null||je.abort(),J.receipt&&u(J.receipt.id).catch(()=>{}),J.status==="error"&&!W.some(Me=>Me.key!==J.key&&Me.status==="error")&&S(""),Y(Me=>Me.filter(Ue=>Ue.key!==J.key))},Oe=M.useCallback(J=>{if(!z||J.length===0)return;const je=Math.max(0,20-W.length),Me=J.slice(0,je).filter(qe=>qe.size>0&&qe.size<=20*1024*1024);Me.length!==J.length?S("最多添加 20 个文件,单个文件不得超过 20 MB 且不能为空"):S("");const Ue=Me.map(qe=>({key:crypto.randomUUID(),file:qe,status:"uploading"}));Y(qe=>[...qe,...Ue]),Ue.forEach(qe=>ye(qe.key,qe.file))},[W.length,z,ye]);M.useEffect(()=>{const J=Ae=>{var Tt;return((Tt=Ae.dataTransfer)==null?void 0:Tt.types.includes("Files"))??!1},je=()=>{q.current=0,K(!1)},Me=Ae=>{J(Ae)&&(Ae.preventDefault(),q.current++,K(!0))},Ue=Ae=>{J(Ae)&&(Ae.preventDefault(),Ae.dataTransfer&&(Ae.dataTransfer.dropEffect=z?"copy":"none"))},qe=Ae=>{J(Ae)&&(q.current=Math.max(0,q.current-1),q.current===0&&K(!1))},Mt=Ae=>{var Ft;if(!J(Ae))return;Ae.preventDefault();const Tt=[...((Ft=Ae.dataTransfer)==null?void 0:Ft.files)??[]];je(),Oe(Tt)};return document.addEventListener("dragenter",Me),document.addEventListener("dragover",Ue),document.addEventListener("dragleave",qe),document.addEventListener("drop",Mt),window.addEventListener("dragend",je),()=>{document.removeEventListener("dragenter",Me),document.removeEventListener("dragover",Ue),document.removeEventListener("dragleave",qe),document.removeEventListener("drop",Mt),window.removeEventListener("dragend",je)}},[z,Oe]);const Ct=async()=>{if(!Q)return;b(!0);const J=C.trim(),je=W,Me=W.length===0&&["/compact","/new","/model"].includes(J);Me||(k(""),Y([]),le.current&&(le.current.style.height=""));try{Me?(J==="/model"?F(Ue=>Ue+1):await(J==="/compact"?f():h()),k("")):await o(J,je.map(Ue=>Ue.receipt.id),je.map(Ue=>Ue.file))}catch{Me||(k(J),Y(je))}finally{b(!1)}},It=async()=>{if(j){b(!0);try{await c()}catch{}finally{b(!1)}}};return d.jsxs("div",{className:`${sn.root} ${t?sn.hero:""}`,children:[$&&d.jsx(pw,{disabled:!z,labels:{title:z?"松开以上传文件":"当前无法上传文件",desc:z?"最多 20 个文件,每个不超过 20 MB":void 0}}),d.jsxs("form",{ref:V,className:sn.card,"data-composer-card":!0,onSubmit:J=>{J.preventDefault(),Ct()},children:[_!==null&&d.jsx(sw,{commands:he,active:I,onHover:U,onPick:J=>{X(J)}}),d.jsx("input",{ref:A,className:"pi-file-input",type:"file",multiple:!0,tabIndex:-1,"aria-label":"选择要上传的文件",onChange:J=>{Oe([...J.target.files??[]]),J.target.value=""}}),W.length>0&&d.jsx("div",{className:"pi-attachment-rail",role:"group","aria-label":"待发送附件",children:W.map(J=>d.jsx(WC,{file:J.file,status:J.status,error:J.error,onRemove:()=>Se(J),onRetry:()=>{S(""),Y(je=>je.map(Me=>Me.key===J.key?{...Me,status:"uploading",error:void 0}:Me)),ye(J.key,J.file)}},J.key))}),d.jsx("div",{className:sn.scroll,"data-input-scroll":!0,children:d.jsx("div",{className:sn.grow,children:d.jsx("textarea",{ref:le,className:"pi-editor","aria-label":"给当前 Pi 会话发送消息",placeholder:E?"给 Pi 发送消息":"打开 Pi 中 /web 给出的完整地址",value:C,onChange:J=>{const je=J.target.value;k(je),/^\/[^\s]*$/.test(je)?(T("slash"),U(0)):_==="slash"&&T(null),J.target.style.height="auto",J.target.style.height=`${Math.min(J.target.scrollHeight,336)}px`},onPaste:J=>{const je=[...J.clipboardData.files];je.length&&(J.preventDefault(),Oe(je))},onKeyDown:J=>{if(_!==null){if(J.key==="Escape"){J.preventDefault(),T(null);return}if(J.key==="ArrowDown"||J.key==="ArrowUp"){J.preventDefault(),U(je=>(je+(J.key==="ArrowDown"?1:-1)+he.length)%Math.max(he.length,1));return}if(J.key==="Enter"&&he[I]){J.preventDefault(),X(he[I]);return}}J.key==="Enter"&&!J.shiftKey&&!J.nativeEvent.isComposing&&(J.preventDefault(),Ct())}})})}),d.jsxs("div",{className:sn.row,children:[d.jsxs("div",{className:sn.tools,children:[d.jsx("button",{className:sn.add,type:"button","aria-label":"添加指令",title:"添加指令","aria-haspopup":"listbox","aria-expanded":_!==null,disabled:!z,onMouseDown:J=>J.preventDefault(),onClick:()=>{var J;T(_===null?"button":null),U(0),(J=le.current)==null||J.focus()},children:d.jsx(H1,{size:16})}),d.jsx("button",{className:sn.add,type:"button","aria-label":"添加文件",title:"添加文件",disabled:!z,onClick:()=>{var J;return(J=A.current)==null?void 0:J.click()},children:d.jsx(c5,{size:16})}),d.jsx("span",{className:"pi-input-context",children:"当前 Pi 会话"})]}),d.jsxs("div",{className:sn.trailing,children:[d.jsx(Hv,{openSignal:Z,current:(i==null?void 0:i.model)??null,models:x,disabled:!E||!(i!=null&&i.idle),onSelect:y,thinkingLevel:(i==null?void 0:i.thinkingLevel)??null,thinkingLevels:(i==null?void 0:i.thinkingLevels)??[],onSelectThinkingLevel:v}),j?d.jsx("button",{className:sn.primary,type:"button","aria-label":"停止运行",onClick:()=>{It()},children:d.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":"true",children:d.jsx("rect",{x:"3",y:"3",width:"10",height:"10",rx:"3",fill:"currentColor"})})}):d.jsx("button",{className:sn.primary,type:"submit","aria-label":"发送消息",disabled:!Q,children:d.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":"true",children:d.jsx("path",{d:"M8.3125 0.980183C8.66767 1.0531 8.97902 1.20418 9.2627 1.43233C9.48724 1.61297 9.73029 1.85793 9.97949 2.10714L14.707 6.83468L13.293 8.24874L9 3.95577V15.0417H7V3.95577L2.70703 8.24874L1.29297 6.83468L6.02051 2.10714C6.26971 1.85793 6.51277 1.61297 6.7373 1.43233C6.97662 1.23986 7.28445 1.04402 7.6875 0.980183C7.8973 0.947006 8.1031 0.95516 8.3125 0.980183Z",fill:"currentColor"})})})]})]})]}),ee&&d.jsx("div",{className:"pi-error",role:"alert",children:ee})]})}function xw({session:t,streaming:i,connection:r,error:o,onSend:s,onLoadImage:u,onUpload:c,onDiscardAttachment:f,onStop:h,onCompact:m,onNewSession:x,commands:y,models:v,onSetModel:C,onSetThinkingLevel:k}){const[N,b]=M.useState("chat"),[_,T]=M.useState(null),[I,U]=M.useState(null),Z=I&&(t==null?void 0:t.sessionId)===I.sessionId&&t.messages.some(V=>V.role==="user"&&!I.knownIds.has(V.id)&&Sd(V.blocks.filter(le=>le.kind==="text").map(le=>le.text).join(`
91
- `)).text===I.text);M.useEffect(()=>{I&&(Z||t&&t.sessionId!==I.sessionId)&&U(null)},[I,Z,t==null?void 0:t.sessionId]);const F=I&&!Z&&(t==null?void 0:t.sessionId)===I.sessionId?{id:I.id,role:"user",timestamp:I.timestamp,blocks:[{kind:"text",text:I.text},...I.files.filter(V=>/\.(?:png|jpe?g|webp|gif)$/iu.test(V.name)||/^image\/(?:png|jpeg|webp|gif)$/.test(V.type)).map(()=>({kind:"image",text:""}))],localFiles:I.files}:null,W=t===null||t.messages.length===0&&i===null&&F===null,Y=async(V,le,E)=>{if(!t)return;const z=`pending-${crypto.randomUUID()}`;U({id:z,sessionId:t.sessionId,text:V,files:E,knownIds:new Set(t.messages.map(Q=>Q.id)),timestamp:new Date().toISOString()});try{await s(V,le)}catch(Q){throw U(j=>(j==null?void 0:j.id)===z?null:j),Q}},ee=M.useRef(null),S=M.useRef(null),[$,K]=M.useState(0);M.useLayoutEffect(()=>{const V=ee.current;if(!V)return;const le=()=>K(V.getBoundingClientRect().width);le();const E=new ResizeObserver(le);return E.observe(V),()=>E.disconnect()},[]),M.useEffect(()=>{!W&&S.current&&(S.current.scrollTop=S.current.scrollHeight)},[W,t==null?void 0:t.messages.length,i==null?void 0:i.blocks,F==null?void 0:F.id]);const q=(t==null?void 0:t.cwd.split(/[\\/]/).filter(Boolean).at(-1))||"Pi 工作区",A=[...(t==null?void 0:t.messages)??[],...F?[F]:[],...i?[i]:[]],D=dx(A),ie=Cd(A),ce=V=>({"hero.headline":"有什么可以帮你?","hero.preview":"Pi"})[V]??V;return d.jsxs("div",{ref:ee,className:ut.root,"data-phase":W?"hero":"active",style:{"--piw-conversation-column-width":`${$}px`},children:[t&&!W&&d.jsxs("header",{className:ut.header,children:[d.jsxs("div",{className:ut.titleRow,children:[d.jsx("div",{className:ut.titleCluster,children:d.jsx("div",{className:ut.crumbs,children:d.jsx("span",{className:`${ut.crumb} ${ut.crumbCurrent}`,children:t.name})})}),d.jsxs("div",{className:ut.headerActions,children:[d.jsx($1,{state:r==="connected"?t.idle?"done":"ongoing":"error"}),d.jsx("span",{className:"pi-header-state",children:r==="connected"?t.idle?"已连接":"运行中":"已断开"})]})]}),d.jsxs("div",{className:ut.tabs,role:"tablist","aria-label":"会话视图",children:[d.jsx("button",{className:`${ut.tab} ${N==="chat"?ut.tabActive:""}`,role:"tab","aria-selected":N==="chat",type:"button",onClick:()=>b("chat"),children:"对话"}),d.jsx("button",{className:`${ut.tab} ${N==="trajectory"?ut.tabActive:""}`,role:"tab","aria-selected":N==="trajectory",type:"button",onClick:()=>b("trajectory"),children:"轨迹"})]})]}),d.jsx("div",{className:ut.body,children:d.jsxs("div",{ref:S,className:ut.scrollBody,"data-conversation-scroll":"",children:[!W&&d.jsx("div",{className:ut.viewArea,children:N==="chat"?d.jsx("div",{className:Ya.root,children:d.jsx("div",{className:Ya.scroll,children:d.jsx("div",{className:Ya.column,children:d.jsx(d.Fragment,{children:ie.map(V=>d.jsx(gw,{turn:V,results:D,model:(t==null?void 0:t.model)??null,loadImage:u,cwd:t==null?void 0:t.cwd,running:V.messages.some(le=>le.id==="stream"),onInspect:le=>{T(le),b("trajectory")}},V.id))})})})}):d.jsx(Cv,{messages:A,inspectCallId:_})}),d.jsx("div",{className:ut.composerSeat,"data-composer-seat":"",children:d.jsxs("div",{className:`${ut.composerStack} ${W?ut.composerHero:""}`,children:[W&&d.jsx(s6,{t:ce,renderSlot:(V,le,E)=>(E==null?void 0:E.fallback)??null}),W&&d.jsx("div",{className:ut.heroWorkspaceRow,children:d.jsxs("span",{className:xn.workspace,children:[d.jsx(U1,{size:16}),d.jsx("span",{className:xn.workspaceLabel,children:q})]})}),d.jsx(yw,{hero:W,session:t,connection:r,onSend:Y,onUpload:c,onDiscardAttachment:f,onStop:h,onCompact:m,onNewSession:x,commands:y,models:v,onSetModel:C,onSetThinkingLevel:k}),o&&d.jsx("div",{className:"pi-error",role:"alert",children:o})]})})]})})]})}const vw="_button_cfgyt_4",Cw="_md_cfgyt_24",ww="_sm_cfgyt_30",kw="_primary_cfgyt_38",_w="_ghost_cfgyt_47",Sw="_outline_cfgyt_56",Ew="_toolbar_cfgyt_65",bw="_icon_cfgyt_73",Vo={button:vw,md:Cw,sm:ww,primary:kw,ghost:_w,outline:Sw,toolbar:Ew,icon:bw};function Dr({variant:t="ghost",size:i="md",icon:r,className:o,children:s,...u}){return d.jsxs("button",{type:"button",className:rt(Vo.button,Vo[t],Vo[i],o),...u,children:[r!=null&&d.jsx("span",{className:Vo.icon,children:r}),s]})}const jw="_root_w1urq_2",Lw="_mask_w1urq_14",Nw="_dialog_w1urq_22",Iw="_content_w1urq_37",Mw="_header_w1urq_45",Tw="_title_w1urq_53",Pw="_close_w1urq_61",zw="_description_w1urq_80",Dw="_body_w1urq_89",Rw="_footer_w1urq_97",Ln={root:jw,mask:Lw,dialog:Nw,content:Iw,header:Mw,title:Tw,close:Pw,description:zw,body:Dw,footer:Rw};function A1({open:t,onClose:i,title:r,closeLabel:o,description:s,children:u,footer:c,className:f,contentClassName:h,headless:m=!1}){return M.useEffect(()=>{if(!t)return;const x=y=>{y.key==="Escape"&&i()};return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[t,i]),t?_l.createPortal(d.jsxs("div",{className:Ln.root,role:"presentation",children:[d.jsx("div",{className:Ln.mask,"aria-hidden":"true",onClick:i}),d.jsx("div",{className:rt(Ln.dialog,f),role:"dialog","aria-modal":"true","aria-label":r,children:m?u:d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:rt(Ln.content,h),children:[d.jsxs("div",{className:Ln.header,children:[d.jsx("h2",{className:Ln.title,children:r}),d.jsx("button",{type:"button",className:Ln.close,"aria-label":o,onClick:i,children:d.jsx(ts,{size:14})})]}),s!==void 0&&s!==""&&d.jsx("p",{className:Ln.description,children:s}),u!==void 0&&d.jsx("div",{className:Ln.body,children:u})]}),c!==void 0&&d.jsx("div",{className:Ln.footer,children:c})]})})]}),document.body):null}const Aw="_dialog_s0tgk_1",Fw="_editorScope_s0tgk_21",Ow="_header_s0tgk_26",Bw="_title_s0tgk_35",$w="_crumbBar_s0tgk_51",Hw="_crumbEditZone_s0tgk_65",Vw="_pathInput_s0tgk_67",Uw="_millerRow_s0tgk_78",Ww="_crumbTrail_s0tgk_91",qw="_crumbSeat_s0tgk_101",Zw="_crumb_s0tgk_51",Qw="_crumbChevron_s0tgk_128",Gw="_crumbEditGlyph_s0tgk_151",Yw="_content_s0tgk_187",Kw="_column_s0tgk_186",Xw="_divider_s0tgk_216",Jw="_rowSeat_s0tgk_222",ek="_row_s0tgk_222",tk="_rowSelected_s0tgk_247",nk="_rowIcon_s0tgk_252",rk="_rowIconSelected_s0tgk_257",ik="_rowName_s0tgk_262",lk="_rowChevron_s0tgk_274",ok="_status_s0tgk_279",sk="_error_s0tgk_280",ak="_loadingFloat_s0tgk_192",uk="_footerBar_s0tgk_317",ck="_showHiddenToggle_s0tgk_333",dk="_showHiddenToggleActive_s0tgk_357",fk="_footerGap_s0tgk_361",pk="_footerAction_s0tgk_365",hk="_createDialog_s0tgk_370",mk="_createBody_s0tgk_376",gk="_createTitle_s0tgk_383",yk="_createIn_s0tgk_391",xk="_createInput_s0tgk_398",vk="_createActions_s0tgk_416",Te={dialog:Aw,editorScope:Fw,header:Ow,title:Bw,crumbBar:$w,crumbEditZone:Hw,pathInput:Vw,millerRow:Uw,crumbTrail:Ww,crumbSeat:qw,crumb:Zw,crumbChevron:Qw,crumbEditGlyph:Gw,content:Yw,column:Kw,divider:Xw,rowSeat:Jw,row:ek,rowSelected:tk,rowIcon:nk,rowIconSelected:rk,rowName:ik,rowChevron:lk,status:ok,error:sk,loadingFloat:ak,footerBar:uk,showHiddenToggle:ck,showHiddenToggleActive:dk,footerGap:fk,footerAction:pk,createDialog:hk,createBody:mk,createTitle:gk,createIn:yk,createInput:xk,createActions:vk};function Uo(t){if(t!==null&&typeof t=="object"&&"rpcError"in t){const i=t.rpcError;if(i!==null&&typeof i=="object"&&"message"in i&&typeof i.message=="string")return i.message}return t instanceof Error?t.message:String(t)}const Ck=300,wk=200,kk=250;function w1(t,i){const r=t.crumbs.findIndex(s=>s.path===t.home);if(r===-1)return t.crumbs;const o=t.crumbs.slice(r+1);return[{name:i,path:t.home,hidden:!1},...o]}function Jo(t){return t.home.includes("\\")?"\\":"/"}function _k(t){const i=Jo(t);return t.path.endsWith(i)?t.path:`${t.path}${i}`}function Sk(t,i){const r=Jo(t)==="\\"?Math.max(i.lastIndexOf("\\"),i.lastIndexOf("/")):i.lastIndexOf("/");return r===-1?null:i.slice(0,r+1)}function t3(t,i,r){const o=Sk(t,i);if(o===null)return{directory:null,tail:null};const s=o===_k(t)||r!==null&&r.directory===o&&r.landed===t.path;return{directory:o,tail:s?i.slice(o.length):null}}function Ek(t,i,r,o){const s=o===null?"":o.toLowerCase(),u=h=>r||!h.hidden||s.startsWith("."),c=h=>u(h)&&h.name.toLowerCase().startsWith(s),f=s!==""&&t.some(c);return t.filter(h=>h.path===i?!0:f?c(h):r||!h.hidden)}function n3({entries:t,selectedPath:i,busy:r,onPick:o,showHidden:s,filterPrefix:u,pathEditing:c}){const f=Ek(t,i,s,u);return d.jsx("div",{className:Te.column,role:"list",children:f.map(h=>{const m=h.path===i;return d.jsx("span",{role:"listitem",className:Te.rowSeat,children:d.jsxs("button",{type:"button","aria-current":m||void 0,className:rt(Te.row,m&&Te.rowSelected),disabled:r,onMouseDown:c?x=>{x.preventDefault()}:void 0,onClick:()=>{o(h)},children:[m?d.jsx(U1,{size:16,className:Te.rowIconSelected}):d.jsx(h5,{size:16,className:Te.rowIcon}),d.jsx("span",{className:Te.rowName,children:h.name}),d.jsx(Qo,{size:12,className:Te.rowChevron})]})},h.path)})})}function bk({open:t,listDirectory:i,createDirectory:r,onOpen:o,onClose:s,busy:u,t:c}){var st,Jt;const[f,h]=M.useState(null),[m,x]=M.useState(null),[y,v]=M.useState(null),[C,k]=M.useState(!1),[N,b]=M.useState(!1),[_,T]=M.useState(0),[I,U]=M.useState(null),[Z,F]=M.useState(null),[W,Y]=M.useState(!1),[ee,S]=M.useState(null),[$,K]=M.useState(!1),[q,A]=M.useState(null),D=M.useRef(0),ie=M.useRef(null),ce=M.useRef(0),V=M.useRef(null),le=M.useRef(!1);M.useEffect(()=>()=>{var ae;D.current+=1,ce.current+=1,(ae=ie.current)==null||ae.abort()},[]);const E={onCompositionStart:()=>{le.current=!0},onCompositionEnd:()=>{le.current=!1}},z=M.useCallback(()=>{var ae;return(ae=ie.current)==null||ae.abort(),ie.current=null,++D.current},[]),Q=M.useCallback(()=>{b(!1),T(ae=>ae+1)},[]),j=M.useCallback(ae=>{const Ie=z(),Ze=new AbortController;return ie.current=Ze,Q(),{seq:Ie,scan:i(ae,Ze.signal)}},[z,Q,i]),xe=M.useCallback(ae=>{const Ie=new AbortController;return ie.current=Ie,Q(),i(ae,Ie.signal)},[Q,i]),_e=M.useRef(!1),he=M.useRef({parent:null,child:null});M.useEffect(()=>{he.current={parent:f,child:y}},[f,y]);const X=M.useRef(null),ye=M.useRef(!1),Se=M.useCallback((ae,Ie)=>{const{seq:Ze,scan:We}=j(ae);k(!0),Ie.announce&&U(null);const Pt=()=>{if(k(!1),Ie.closeEditor){F(null);return}U(null),ye.current=!0};We.then(Ye=>{if(Ze!==D.current)return;!Ie.closeEditor&&ae!==void 0&&(X.current={directory:ae,landed:Ye.path});let gr=!1;const Mn=()=>{gr||Ze!==D.current||(gr=!0,h(Ye),x(null),v(null),Pt())};if(w1(Ye,"").length<2){Mn();return}const Tn=Ye.crumbs.at(-2);if(Tn===void 0){Mn();return}xe(Tn.path).then(wn=>{if(Ze!==D.current)return;const Sl=Jo(wn),xi=yr=>Sl==="\\"?yr.toLowerCase():yr,vi=wn.entries.find(yr=>xi(yr.path)===xi(Ye.path));if(vi===void 0){Mn();return}gr=!0,h(wn),x(vi),v(Ye),Pt()},()=>{Mn()}),Ie.closeEditor&&window.setTimeout(Mn,wk)},Ye=>{Ze===D.current&&(k(!1),Ie.announce&&U(Uo(Ye)))})},[j,xe]),Oe=M.useCallback(ae=>{Se(ae,{closeEditor:!0,announce:!0})},[Se]),Ct=M.useRef(!1),It=M.useRef(!1),J=M.useRef(null),je=M.useRef(null),Me=M.useCallback(ae=>{const{seq:Ie,scan:Ze}=j(ae.path);Z!==null&&(Ct.current=!0),F(null),x(ae),v(null),k(!0),U(null),Ze.then(We=>{Ie===D.current&&(v(We),k(!1))},We=>{Ie===D.current&&(k(!1),U(Uo(We)),x(null),It.current=!0)})},[j,Z]),Ue=M.useCallback(ae=>{Se(ae,{closeEditor:!1,announce:!1})},[Se]),qe=M.useCallback(()=>{z(),k(!1),F(null),U(null),y===null&&x(null),f===null&&Oe()},[z,y,f,Oe]),Mt=M.useCallback(ae=>{y!==null&&(h(y),Me(ae))},[y,Me]);M.useEffect(()=>{if(ce.current+=1,t){h(null),x(null),v(null),K(!1),Y(!1),Oe();return}z(),k(!1),U(null),F(null),S(null),A(null),Ct.current=!1,It.current=!1},[t,Oe,z]);const Ae=(m==null?void 0:m.path)??(f==null?void 0:f.path)??null,Tt=(m==null?void 0:m.name)??(f===null?"":((st=w1(f,c("browser.home")).at(-1))==null?void 0:st.name)??f.path),Ft=()=>{if(Ae===null||ee===null||$)return;const ae=ee;if(ae.trim()==="")return;K(!0),A(null);const Ie=ce.current;r(Ae,ae).then(Ze=>{if(Ie!==ce.current)return;K(!1),S(null);const{seq:We,scan:Pt}=j(Ae);k(!0),U(null),Pt.then(Ye=>{We===D.current&&(h(Ye),k(!1),Me({name:ae,path:Ze,hidden:!1}))},Ye=>{We===D.current&&(k(!1),U(Uo(Ye)))})},Ze=>{Ie===ce.current&&(K(!1),A(Uo(Ze)))})};M.useEffect(()=>{if(!C){b(!1);return}const ae=window.setTimeout(()=>{b(!0)},Ck);return()=>{window.clearTimeout(ae)}},[C,_]),M.useEffect(()=>{if(Z===null)return;const ae=window.setTimeout(()=>{if(_e.current)return;const Ie=he.current.child??he.current.parent;if(Ie===null)return;const{directory:Ze,tail:We}=t3(Ie,Z,X.current);Ze===null||We!==null||Ue(Ze)},kk);return()=>{window.clearTimeout(ae)}},[Z,Ue]);const Cn=y??f,hr=Cn===null||Z===null?null:t3(Cn,Z,X.current).tail,mr=Cn===null?[]:w1(Cn,c("browser.home")),Br=(Jt=mr.at(-1))==null?void 0:Jt.path;M.useEffect(()=>{const ae=V.current;ae!==null&&(ae.scrollLeft=ae.scrollWidth)},[Br]);const G=M.useRef(null),ue=y==null?void 0:y.path;if(M.useEffect(()=>{const ae=G.current;ae!==null&&ue!==void 0&&(ae.scrollLeft=ae.scrollWidth)},[ue]),M.useEffect(()=>{var ae;if(ye.current&&(ye.current=!1,document.activeElement===document.body&&((ae=J.current)==null||ae.focus())),Z===null){if(Ct.current){Ct.current=!1,It.current=!1;const Ie=G.current;if(Ie===null)return;const Ze=Ie.querySelector('button[aria-current="true"]');if(Ze===null)return;Ze.focus();return}if(It.current){if(It.current=!1,document.activeElement!==document.body)return;const Ie=je.current;if(Ie===null)return;Ie.focus()}}}),!t)return null;const ke=m!==null,Ee=u||ee!==null,Pe=Z!==null;return d.jsxs(A1,{open:t,onClose:()=>{ee===null&&!u&&s()},title:c("browser.title"),className:rt(Te.dialog),headless:!0,children:[d.jsxs("div",{className:Te.editorScope,onKeyDown:ae=>{ae.key!=="Escape"||Z===null||(ae.stopPropagation(),It.current=document.activeElement===J.current,qe())},onBlur:ae=>{if(Z===null||!document.hasFocus())return;const Ie=ae.currentTarget.closest('[role="dialog"]');Ie!==null&&(ae.relatedTarget instanceof Node&&Ie.contains(ae.relatedTarget)||(It.current=!1,qe()))},children:[d.jsxs("div",{className:Te.header,children:[d.jsx("h2",{className:Te.title,children:c("browser.title")}),d.jsx("div",{className:Te.crumbBar,children:Z===null?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:Te.crumbTrail,role:"navigation",ref:V,children:mr.map((ae,Ie)=>d.jsxs("span",{className:Te.crumbSeat,children:[Ie>0&&d.jsx(Qo,{size:12,className:Te.crumbChevron}),d.jsx("button",{type:"button",className:Te.crumb,disabled:Ee,onClick:()=>{Oe(ae.path)},children:ae.name})]},ae.path))}),d.jsx("button",{type:"button",className:Te.crumbEditZone,"aria-label":c("browser.editPath"),title:c("browser.editPath"),disabled:Ee,ref:je,onClick:()=>{if(z(),k(!1),_e.current=!1,f===null){F("");return}const ae=(m==null?void 0:m.path)??f.path,Ie=Jo(f);F(ae.endsWith(Ie)?ae:`${ae}${Ie}`)},children:d.jsx(a5,{size:14,className:Te.crumbEditGlyph})})]}):d.jsx("input",{className:Te.pathInput,value:Z,"aria-label":c("browser.editPath"),autoFocus:!0,ref:J,disabled:Ee,onChange:ae=>{z(),k(!1),_e.current=!1,F(ae.target.value)},...E,onKeyDown:ae=>{ae.key==="Enter"&&!le.current&&(ae.preventDefault(),Z.trim()!==""&&(It.current=!0,_e.current=!0,Oe(Z)))}})})]}),d.jsxs("div",{className:Te.content,children:[d.jsxs("div",{className:Te.millerRow,ref:G,children:[f!==null&&d.jsx(n3,{entries:f.entries,selectedPath:(m==null?void 0:m.path)??null,busy:Ee,onPick:Me,showHidden:W,filterPrefix:y===null?hr:null,pathEditing:Pe}),ke&&d.jsx("span",{className:Te.divider}),ke&&y!==null&&d.jsx(n3,{entries:y.entries,selectedPath:null,busy:Ee,onPick:Mt,showHidden:W,filterPrefix:hr,pathEditing:Pe})]}),C&&N&&d.jsx("div",{className:rt(Te.status,Te.loadingFloat),role:"status",children:c("browser.loading")}),((f==null?void 0:f.truncated)===!0||(y==null?void 0:y.truncated)===!0)&&d.jsx("div",{className:Te.status,role:"status",children:c("browser.truncated")}),I!==null&&d.jsx("div",{className:Te.error,role:"alert",children:I})]}),d.jsxs("div",{className:Te.footerBar,children:[d.jsx(Dr,{variant:"outline",icon:d.jsx(H1,{size:14}),disabled:f===null||C||Ee||Pe,onClick:()=>{S(""),A(null)},children:c("browser.newFolder")}),d.jsxs("button",{type:"button",className:rt(Te.showHiddenToggle,W&&Te.showHiddenToggleActive),"aria-pressed":W,disabled:Ee,onMouseDown:Pe?ae=>{ae.preventDefault()}:void 0,onClick:()=>{Y(ae=>!ae)},children:[c("browser.showHidden"),W&&d.jsx(_1,{size:14})]}),d.jsx("span",{className:Te.footerGap}),d.jsx(Dr,{variant:"outline",className:rt(Te.footerAction),disabled:Ee,onClick:s,children:c("browser.cancel")}),d.jsx(Dr,{variant:"primary",className:rt(Te.footerAction),disabled:Ae===null||C||Ee||Pe,onClick:()=>{Ae!==null&&o(Ae)},children:c("browser.open")})]})]}),d.jsx(A1,{open:ee!==null,onClose:()=>{$||S(null)},title:c("browser.newFolder"),className:rt(Te.createDialog),headless:!0,children:d.jsxs("div",{className:Te.createBody,children:[d.jsx("h3",{className:Te.createTitle,children:c("browser.newFolder")}),d.jsx("p",{className:Te.createIn,children:c("browser.createIn",{name:Tt})}),d.jsx("input",{className:Te.createInput,value:ee??"","aria-label":c("browser.folderName"),placeholder:c("browser.untitledFolder"),autoFocus:!0,disabled:$,onChange:ae=>{S(ae.target.value)},...E,onKeyDown:ae=>{ae.key==="Enter"&&!le.current&&(ae.preventDefault(),Ft()),ae.key==="Escape"&&(ae.stopPropagation(),$||S(null))}}),q!==null&&d.jsx("div",{className:Te.error,role:"alert",children:q}),d.jsxs("div",{className:Te.createActions,children:[d.jsx(Dr,{variant:"outline",disabled:$,onClick:()=>{S(null)},children:c("browser.cancel")}),d.jsx(Dr,{variant:"primary",disabled:$||ee===null||ee.trim()==="",onClick:Ft,children:c("browser.create")})]})]})})]})}const jk="_root_x0rn4_1",Lk="_rail_x0rn4_13",Nk="_iconButton_x0rn4_17",Ik="_sectionHeader_x0rn4_39",Mk="_sectionLabel_x0rn4_59",Tk="_sectionLabelHidden_x0rn4_76",Pk="_searchSlot_x0rn4_85",zk="_searchSlotExpanded_x0rn4_99",Dk="_headerActions_x0rn4_104",Rk="_headerActionsHidden_x0rn4_120",Ak="_search_x0rn4_85",Fk="_searchExpanded_x0rn4_155",Ok="_searchButton_x0rn4_166",Bk="_searchInput_x0rn4_195",$k="_clearButton_x0rn4_220",Hk="_listArea_x0rn4_282",Vk="_treeBody_x0rn4_302",Uk="_wide_x0rn4_323",Wk="_list_x0rn4_282",mt={root:jk,rail:Lk,iconButton:Nk,sectionHeader:Ik,sectionLabel:Mk,sectionLabelHidden:Tk,searchSlot:Pk,searchSlotExpanded:zk,headerActions:Dk,headerActionsHidden:Rk,search:Ak,searchExpanded:Fk,searchButton:Ok,searchInput:Bk,clearButton:$k,listArea:Hk,treeBody:Vk,wide:Uk,list:Wk},qk="_projectRow_1j5ag_1",Zk="_sessionRow_1j5ag_2",Qk="_selected_1j5ag_18",Gk="_title_1j5ag_112",Yk="_slot_1j5ag_124",Pr={projectRow:qk,sessionRow:Zk,selected:Qk,title:Gk,slot:Yk},Kk="_group_sxk9x_1",Xk="_workspaceLine_sxk9x_2",Jk="_workspaceButton_sxk9x_3",e_="_active_sxk9x_4",t_="_folder_sxk9x_5",n_="_chevron_sxk9x_6",r_="_chevronOpen_sxk9x_7",i_="_sessionButton_sxk9x_10",l_="_rowAction_sxk9x_11",o_="_error_sxk9x_14",yn={group:Kk,workspaceLine:Xk,workspaceButton:Jk,active:e_,folder:t_,chevron:n_,chevronOpen:r_,sessionButton:i_,rowAction:l_,error:o_},s_={"browser.title":"选择工作区目录","browser.home":"主目录","browser.newFolder":"新建文件夹","browser.folderName":"文件夹名称","browser.createIn":'在"{name}"中新建文件夹',"browser.untitledFolder":"未命名文件夹","browser.create":"创建","browser.cancel":"取消","browser.open":"打开","browser.editPath":"编辑路径","browser.loading":"加载中…","browser.truncated":"文件夹过多,仅显示开头部分。","browser.showHidden":"显示隐藏文件"},a_=(t,i)=>(s_[t]??t).replace(/\{(\w+)\}/g,(r,o)=>(i==null?void 0:i[o])??"");function u_({wide:t,expandSidebar:i,session:r,workspaces:o,onAdd:s,directoryPickerKind:u,pickDirectory:c,listDirectory:f,createDirectory:h,onRemove:m,onSelectSession:x,onNewSession:y}){const[v,C]=M.useState(!1),[k,N]=M.useState(!1),[b,_]=M.useState(""),[T,I]=M.useState(""),[U,Z]=M.useState(!1),[F,W]=M.useState(""),[Y,ee]=M.useState(new Set);M.useEffect(()=>{o.activeId&&ee(D=>D.has(o.activeId)?D:new Set([...D,o.activeId]))},[o.activeId]);const S=M.useRef(null),$=F.trim().toLocaleLowerCase(),K=async D=>{N(!0),_("");try{await D()}catch(ie){_(ie instanceof Error?ie.message:"操作失败")}finally{N(!1)}},q=async D=>{N(!0);try{await s(D,!1),C(!1)}catch(ie){C(!1),I(ie instanceof Error?ie.message:String(ie))}finally{N(!1)}},A=async()=>{if(u!==null){if(t||i(),_(""),u==="browse"){C(!0);return}N(!0);try{const D=await c();D!==null&&await q(D)}catch(D){I(D instanceof Error?D.message:String(D))}finally{N(!1)}}};return d.jsxs("div",{className:`${mt.root} ${t?"":mt.rail}`,children:[d.jsxs("div",{className:mt.sectionHeader,children:[t&&d.jsx("span",{className:`${mt.sectionLabel} ${mt.wide} ${U?mt.sectionLabelHidden:""}`,children:"工作区"}),t&&d.jsx("div",{className:`${mt.searchSlot} ${U?mt.searchSlotExpanded:""}`,children:d.jsxs("div",{className:`${mt.search} ${U?mt.searchExpanded:""}`,onClick:()=>{var D;Z(!0),(D=S.current)==null||D.focus()},children:[d.jsx("button",{type:"button",className:mt.searchButton,"aria-label":"搜索工作区和会话","aria-expanded":U,onClick:()=>{var D;Z(!0),(D=S.current)==null||D.focus()},children:d.jsx(a3,{size:U?11:14})}),d.jsx("input",{ref:S,className:mt.searchInput,type:"search",placeholder:"搜索工作区和会话",maxLength:120,value:F,tabIndex:U?0:-1,onChange:D=>W(D.target.value),onKeyDown:D=>{D.key==="Escape"&&(W(""),Z(!1))}}),U&&d.jsx("button",{type:"button",className:mt.clearButton,"aria-label":"关闭搜索",onClick:D=>{D.stopPropagation(),W(""),Z(!1)},children:d.jsx(V1,{})})]})}),d.jsx("div",{className:`${mt.headerActions} ${t&&U?mt.headerActionsHidden:""}`,children:d.jsx("button",{type:"button",className:mt.iconButton,"aria-label":"添加工作区",title:"添加工作区",disabled:k||u===null,onClick:()=>{A()},children:d.jsx(p5,{size:t?16:18})})})]}),t&&d.jsx("div",{className:mt.listArea,children:d.jsx("div",{className:mt.treeBody,children:d.jsxs("div",{className:mt.list,role:"tree","aria-label":"工作区",children:[o.items.filter(D=>!$||D.title.toLocaleLowerCase().includes($)||D.path.toLocaleLowerCase().includes($)||o.sessions.some(ie=>ie.workspaceId===D.id&&ie.name.toLocaleLowerCase().includes($))).map(D=>{const ie=D.id===o.activeId,ce=Y.has(D.id)||!!$;return d.jsxs("div",{className:yn.group,role:"group",children:[d.jsxs("div",{className:yn.workspaceLine,children:[d.jsxs("button",{type:"button",className:`${Pr.projectRow} ${yn.workspaceButton} ${ie?yn.active:""}`,role:"treeitem","aria-expanded":ce,title:D.path,disabled:k,onClick:()=>ee(V=>{const le=new Set(V);return le.has(D.id)?le.delete(D.id):le.add(D.id),le}),children:[d.jsxs("span",{className:Pr.slot,children:[d.jsx("span",{className:yn.folder,children:d.jsx(U1,{size:16})}),d.jsx("span",{className:`${yn.chevron} ${ce?yn.chevronOpen:""}`,children:d.jsx(gl,{size:14})})]}),d.jsx("span",{className:Pr.title,children:D.title})]}),d.jsx("button",{type:"button",className:yn.rowAction,title:"新建会话","aria-label":`在 ${D.title} 新建会话`,disabled:k,onClick:()=>{K(()=>y(D.id))},children:d.jsx(H1,{size:16})}),!ie&&d.jsx("button",{type:"button",className:yn.rowAction,title:"从列表移除工作区","aria-label":`移除 ${D.title}`,disabled:k,onClick:()=>{K(()=>m(D.id))},children:"×"})]}),ce&&o.sessions.filter(V=>V.workspaceId===D.id&&(!$||D.title.toLocaleLowerCase().includes($)||D.path.toLocaleLowerCase().includes($)||V.name.toLocaleLowerCase().includes($))).map(V=>d.jsxs("button",{type:"button",className:`${Pr.sessionRow} ${yn.sessionButton} ${ie&&(r==null?void 0:r.sessionId)===V.id?Pr.selected:""}`,role:"treeitem","aria-current":ie&&(r==null?void 0:r.sessionId)===V.id?"page":void 0,disabled:k,onClick:()=>{K(()=>x(D.id,V.id,V.path))},children:[d.jsx("span",{className:Pr.slot,children:d.jsx($1,{state:(r==null?void 0:r.sessionId)===V.id&&!r.idle?"ongoing":"done"})}),d.jsx("span",{className:Pr.title,children:V.name})]},V.id))]},D.id)}),b&&!v&&d.jsx("p",{className:yn.error,role:"alert",children:b})]})})}),d.jsx(bk,{open:v,busy:k,listDirectory:f,createDirectory:h,onOpen:D=>{q(D)},onClose:()=>{k||C(!1)},t:a_}),d.jsx(A1,{open:!!T,onClose:()=>I(""),title:"无法添加工作区",closeLabel:"关闭",footer:d.jsxs(d.Fragment,{children:[d.jsx(Dr,{variant:"outline",onClick:()=>I(""),children:"取消"}),d.jsx(Dr,{variant:"primary",onClick:()=>{I(""),A()},children:"重新选择"})]}),children:d.jsx("div",{role:"alert",children:T})})]})}const r3={id:"",name:"",baseUrl:"",api:"openai-completions",modelId:""};function cl(t){try{const i=new URL(t);return i.protocol==="https:"||i.protocol==="http:"?i.href:null}catch{return null}}function i3({provider:t,busy:i,onLogin:r}){return d.jsx("div",{className:"pi-provider-methods",children:t.methods.map(o=>d.jsx("button",{type:"button",disabled:i,onClick:()=>r(o),children:o==="oauth"?"网页登录":"添加 API Key"},o))})}function c_({getProviders:t,addCustomProvider:i,startLogin:r,getLogin:o,respondLogin:s,cancelLogin:u,refreshModels:c}){var z,Q,j,xe,_e,he;const[f,h]=M.useState([]),[m,x]=M.useState(!1),[y,v]=M.useState(null),[C,k]=M.useState(""),[N,b]=M.useState(null),[_,T]=M.useState(r3),[I,U]=M.useState(null),[Z,F]=M.useState(""),[W,Y]=M.useState(""),[ee,S]=M.useState(!1),$=M.useRef(null);$.current=I,M.useEffect(()=>()=>{const X=$.current;((X==null?void 0:X.status)==="running"||(X==null?void 0:X.status)==="waiting")&&u(X.id)},[]);const K=async()=>{h(await t()),x(!0)},q=async X=>{U(X),X.status==="done"&&(v(null),b(null),await Promise.all([K(),c()]))};M.useEffect(()=>{K().catch(X=>{x(!0),Y(X instanceof Error?X.message:"无法读取模型提供方")})},[]),M.useEffect(()=>{if(!I||I.status==="done"||I.status==="error"||I.status==="cancelled")return;let X=!0;const ye=window.setInterval(()=>{o(I.id).then(async Se=>{X&&await q(Se)}).catch(Se=>{X&&Y(Se instanceof Error?Se.message:"登录状态不可用")})},700);return()=>{X=!1,window.clearInterval(ye)}},[I==null?void 0:I.id,I==null?void 0:I.status]);const A=ee||(I==null?void 0:I.status)==="running"||(I==null?void 0:I.status)==="waiting",D=f.filter(X=>X.configured),ie=f.filter(X=>!X.configured&&X.methods.length>0),ce=ie.find(X=>X.id===C)??ie[0],V=async(X,ye)=>{S(!0),Y(""),U(null),F("");try{const{id:Se}=await r(X,ye);await q(await o(Se))}catch(Se){Y(Se instanceof Error?Se.message:"无法开始登录")}finally{S(!1)}},le=async X=>{if(I){S(!0),Y("");try{await s(I.id,X),F(""),await q(await o(I.id))}catch(ye){Y(ye instanceof Error?ye.message:"提交失败")}finally{S(!1)}}},E=async()=>{S(!0),Y("");try{await i(_);const X=_.id;await K(),k(X),v("builtin"),T(r3)}catch(X){Y(X instanceof Error?X.message:"无法添加自定义提供方")}finally{S(!1)}};return d.jsxs("div",{className:"pi-settings-content",children:[d.jsx("h2",{children:"模型"}),d.jsx("p",{className:"pi-settings-intro",children:"已接入的提供方显示在这里。添加新的提供方后,即可在会话中选择其模型。"}),W&&d.jsx("p",{className:"pi-settings-error",role:"alert",children:W}),I&&d.jsxs("section",{className:"pi-provider-flow","aria-label":"模型登录",children:[d.jsxs("div",{className:"pi-provider-flow-head",children:[d.jsx("strong",{children:"模型登录"}),d.jsx("button",{type:"button",onClick:()=>{I.status==="running"||I.status==="waiting"?u(I.id).finally(()=>U(null)):U(null)},children:I.status==="running"||I.status==="waiting"?"取消":"关闭"})]}),I.status==="done"&&d.jsx("p",{role:"status",children:"已连接。现在可以在会话中选择该提供方的模型。"}),I.status==="error"&&d.jsx("p",{role:"alert",children:I.error}),I.status==="running"&&d.jsx("p",{role:"status",children:"正在等待提供方响应…"}),((z=I.event)==null?void 0:z.type)==="info"&&d.jsxs("p",{children:[I.event.message,(Q=I.event.links)==null?void 0:Q.map(X=>{const ye=cl(X.url);return ye&&d.jsx("a",{href:ye,target:"_blank",rel:"noopener noreferrer",children:X.label??"打开链接"},ye)})]}),((j=I.event)==null?void 0:j.type)==="progress"&&d.jsx("p",{children:I.event.message}),((xe=I.event)==null?void 0:xe.type)==="auth_url"&&d.jsxs("p",{children:[I.event.instructions," ",cl(I.event.url)&&d.jsx("a",{href:cl(I.event.url),target:"_blank",rel:"noopener noreferrer",children:"打开授权页面"})]}),((_e=I.event)==null?void 0:_e.type)==="device_code"&&d.jsxs("p",{children:["在 ",cl(I.event.verificationUri)&&d.jsx("a",{href:cl(I.event.verificationUri),target:"_blank",rel:"noopener noreferrer",children:"验证页面"})," 输入代码 ",d.jsx("code",{children:I.event.userCode})]}),I.status==="waiting"&&((he=I.prompt)==null?void 0:he.type)==="select"&&d.jsxs("div",{className:"pi-provider-options",children:[d.jsx("p",{children:I.prompt.message}),I.prompt.options.map(X=>d.jsxs("button",{type:"button",disabled:ee,onClick:()=>{le(X.id)},children:[X.label,X.description&&d.jsx("small",{children:X.description})]},X.id))]}),I.status==="waiting"&&I.prompt&&I.prompt.type!=="select"&&d.jsxs("form",{onSubmit:X=>{X.preventDefault(),Z.trim()&&le(Z.trim())},children:[d.jsx("label",{htmlFor:"pi-provider-answer",children:I.prompt.message}),d.jsxs("div",{children:[d.jsx("input",{id:"pi-provider-answer",type:I.prompt.type==="secret"?"password":"text",autoComplete:"off",placeholder:I.prompt.placeholder,value:Z,onChange:X=>F(X.target.value)}),d.jsx("button",{type:"submit",disabled:ee||!Z.trim(),children:"继续"})]})]})]}),d.jsxs("section",{className:"pi-provider-list","aria-label":"已接入的模型提供方",children:[D.map(X=>d.jsxs("div",{className:"pi-provider-card",children:[d.jsxs("div",{className:"pi-provider-card-head",children:[d.jsxs("span",{className:"pi-provider-name",children:[X.name,d.jsx("span",{className:"pi-provider-dot",role:"img","aria-label":"已连接"})]}),d.jsx("button",{type:"button",disabled:A,"aria-label":`编辑 ${X.name}`,onClick:()=>{v(null),b(N===X.id?null:X.id)},children:"编辑"})]}),N===X.id&&d.jsx(i3,{provider:X,busy:!!A,onLogin:ye=>{V(X.id,ye)}})]},X.id)),m&&D.length===0&&d.jsx("p",{className:"pi-provider-empty",children:"尚未接入提供方"}),!m&&d.jsx("p",{role:"status",children:"正在读取模型提供方…"})]}),y==="builtin"&&d.jsxs("section",{className:"pi-provider-add-card","aria-label":"添加提供方",children:[d.jsxs("div",{className:"pi-provider-flow-head",children:[d.jsx("strong",{children:"添加提供方"}),d.jsx("button",{type:"button",onClick:()=>v(null),children:"关闭"})]}),ce?d.jsxs(d.Fragment,{children:[d.jsx("label",{htmlFor:"pi-provider-select",children:"提供方"}),d.jsx("select",{id:"pi-provider-select",value:ce.id,onChange:X=>k(X.target.value),children:ie.map(X=>d.jsx("option",{value:X.id,children:X.name},X.id))}),d.jsx(i3,{provider:ce,busy:!!A,onLogin:X=>{V(ce.id,X)}})]}):d.jsx("p",{children:"没有可通过网页登录添加的提供方。"})]}),y==="custom"&&d.jsxs("section",{className:"pi-provider-add-card","aria-label":"添加自定义提供方",children:[d.jsxs("div",{className:"pi-provider-flow-head",children:[d.jsx("strong",{children:"添加自定义提供方"}),d.jsx("button",{type:"button",onClick:()=>v(null),children:"关闭"})]}),d.jsx("p",{children:"适用于兼容 Pi 已支持协议的模型服务。保存后再添加 API Key;密钥不会写入 models.json。"}),d.jsxs("form",{className:"pi-provider-custom-form",onSubmit:X=>{X.preventDefault(),E()},children:[d.jsxs("label",{children:["名称",d.jsx("input",{required:!0,maxLength:100,value:_.name,onChange:X=>T({..._,name:X.target.value}),placeholder:"我的模型服务"})]}),d.jsxs("label",{children:["提供方 ID",d.jsx("input",{required:!0,maxLength:64,value:_.id,onChange:X=>T({..._,id:X.target.value}),placeholder:"my-provider"})]}),d.jsxs("label",{children:["接口地址",d.jsx("input",{required:!0,type:"url",maxLength:2048,value:_.baseUrl,onChange:X=>T({..._,baseUrl:X.target.value}),placeholder:"https://api.example.com/v1"})]}),d.jsxs("label",{children:["接口协议",d.jsxs("select",{value:_.api,onChange:X=>T({..._,api:X.target.value}),children:[d.jsx("option",{value:"openai-completions",children:"OpenAI Chat Completions"}),d.jsx("option",{value:"openai-responses",children:"OpenAI Responses"}),d.jsx("option",{value:"anthropic-messages",children:"Anthropic Messages"})]})]}),d.jsxs("label",{children:["模型 ID",d.jsx("input",{required:!0,maxLength:200,value:_.modelId,onChange:X=>T({..._,modelId:X.target.value}),placeholder:"model-name"})]}),d.jsx("button",{type:"submit",disabled:ee,children:"保存并继续"})]})]}),!y&&d.jsxs("div",{className:"pi-provider-add-actions",children:[d.jsx("button",{type:"button",disabled:!m||ie.length===0||A,onClick:()=>{b(null),v("builtin"),k("")},children:"+ 添加提供方"}),d.jsx("button",{type:"button",disabled:A,onClick:()=>{b(null),v("custom")},children:"+ 添加自定义提供方"})]})]})}const cu="pi-web-theme",es=new Set,Ed=window.matchMedia("(prefers-color-scheme: dark)");let vl=bd();function bd(){try{const t=localStorage.getItem(cu);if(t==="light"||t==="dark"||t==="system")return t}catch{}return"system"}function qo(){document.body.toggleAttribute("data-ds-dark-theme",vl==="dark"||vl==="system"&&Ed.matches)}function d_(){qo(),Ed.addEventListener("change",qo),window.addEventListener("storage",t=>{t.key===cu&&(vl=bd(),qo(),es.forEach(i=>i()))})}function f_(t){vl=t;try{localStorage.setItem(cu,t)}catch{}qo(),es.forEach(i=>i())}function p_(){return M.useSyncExternalStore(t=>(es.add(t),()=>{es.delete(t)}),()=>vl)}const h_="_group_8jvbt_4",m_="_title_8jvbt_12",g_="_cubeRow_8jvbt_19",y_="_themeCube_8jvbt_29",x_="_selected_8jvbt_48",dl={group:h_,title:m_,cubeRow:g_,themeCube:y_,selected:x_},v_=[{id:"light",label:"浅色",Icon:m5},{id:"dark",label:"深色",Icon:g5},{id:"system",label:"跟随系统",Icon:y5}];function C_(){const t=p_();return d.jsxs("div",{className:dl.group,children:[d.jsx("div",{className:dl.title,children:"外观"}),d.jsx("div",{className:dl.cubeRow,children:v_.map(({id:i,label:r,Icon:o})=>d.jsxs("button",{type:"button",className:rt(dl.themeCube,t===i&&dl.selected),"aria-pressed":t===i,onClick:()=>f_(i),children:[d.jsx(o,{}),r]},i))})]})}const w_="_overlay_f00qz_61",k_="_mask_f00qz_70",__="_panel_f00qz_83",S_="_nav_f00qz_105",E_="_navTitle_f00qz_116",b_="_navList_f00qz_125",j_="_navCell_f00qz_133",L_="_active_f00qz_156",N_="_navIcon_f00qz_160",I_="_navLabel_f00qz_164",M_="_content_f00qz_173",T_="_header_f00qz_181",P_="_actions_f00qz_192",z_="_close_f00qz_202",D_="_options_f00qz_82",gt={overlay:w_,mask:k_,panel:__,nav:S_,navTitle:E_,navList:b_,navCell:j_,active:L_,navIcon:N_,navLabel:I_,content:M_,header:T_,actions:P_,close:z_,options:D_};function R_(t){return t==="general"?d.jsx(u3,{className:gt.navIcon,size:16}):t==="models"?d.jsx(c3,{className:gt.navIcon,size:16}):t==="packages"?d.jsx(v5,{className:gt.navIcon,size:16}):t==="extensions"?d.jsx(f5,{className:gt.navIcon,size:16}):d.jsx(x5,{className:gt.navIcon,size:16})}function A_({title:t,sections:i,activeId:r,onSelect:o,onClose:s,children:u}){const c=M.useId(),f=M.useRef(null);return M.useEffect(()=>{var m;(m=f.current)==null||m.focus();const h=x=>{x.key==="Escape"&&s()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[s]),d.jsxs("div",{className:gt.overlay,role:"presentation",children:[d.jsx("div",{className:gt.mask,"aria-hidden":"true",onClick:s}),d.jsxs("div",{className:gt.panel,role:"dialog","aria-modal":"true","aria-labelledby":c,children:[d.jsxs("nav",{className:gt.nav,"aria-label":"Pi 设置分类",children:[d.jsx("div",{className:gt.navTitle,id:c,children:t}),d.jsx("div",{className:gt.navList,children:i.map(h=>d.jsxs("button",{type:"button",className:`${gt.navCell} ${r===h.id?gt.active:""}`,"aria-current":r===h.id?"true":void 0,onClick:()=>o(h.id),children:[R_(h.id),d.jsx("span",{className:gt.navLabel,children:h.label})]},h.id))})]}),d.jsxs("div",{className:gt.content,children:[d.jsxs("header",{className:gt.header,children:[d.jsx("div",{className:gt.actions}),d.jsx("button",{ref:f,className:gt.close,type:"button",onClick:s,"aria-label":"关闭 Pi 设置",children:d.jsx(ts,{size:14})})]}),d.jsx("div",{className:gt.options,children:u})]})]})]})}function fi(t){return/^(?:npm:|git:|https?:\/\/|ssh:\/\/|git@)/i.test(t.trim())}const jd=[{kind:"packages",title:"包与扩展",hint:"包可以包含扩展和技能;本地扩展也可以单独加载。",placeholder:"npm 包名、Git 地址或本地目录"},{kind:"skills",title:"技能",hint:"Pi 已发现和加载的技能。",placeholder:"SKILL.md 文件或目录路径"}],F_=[{id:"general",label:"通用设置"},{id:"models",label:"模型"},...jd.map(({kind:t,title:i})=>({id:t,label:i}))];function O_(t){var q;const{onBack:i,getConfig:r,updateConfig:o}=t,[s,u]=M.useState(null),[c,f]=M.useState({packages:"",extensions:"",skills:""}),[h,m]=M.useState("general"),[x,y]=M.useState(!1),[v,C]=M.useState(!0),[k,N]=M.useState("");M.useEffect(()=>{let A=!0;return r().then(D=>{A&&u(D)}).catch(D=>{A&&N(D instanceof Error?D.message:"无法读取 Pi 设置")}).finally(()=>{A&&C(!1)}),()=>{A=!1}},[]);const b=async()=>{C(!0),N("");try{u(await r())}catch(A){N(A instanceof Error?A.message:"无法读取 Pi 设置")}finally{C(!1)}},_=async(A,D,ie)=>{y(!0),N("");try{u(await o(A,"global",D,ie)),D==="add"&&f(ce=>({...ce,[A]:""}))}catch(ce){N(ce instanceof Error?ce.message:"保存失败")}finally{y(!1)}},T=jd.find(({kind:A})=>A===h),I=T?(s==null?void 0:s.global[T.kind])??[]:[],U=T?((q=s==null?void 0:s.installed)==null?void 0:q[T.kind])??[]:[],Z=T?c[T.kind].trim():"",F=(T==null?void 0:T.kind)!=="packages"&&fi(Z),W=new Set((s==null?void 0:s.installed.packages.map(A=>A.source))??[]),Y=(s==null?void 0:s.installed.extensions.filter(A=>!W.has(A.source)))??[],ee=(s==null?void 0:s.global.packages.filter(A=>!W.has(A)))??[],S=c.extensions.trim(),$=fi(S),K=A=>{f(D=>({...D,packages:A})),m("packages"),N("")};return d.jsxs(A_,{title:"Pi 设置",sections:F_,activeId:h,onSelect:A=>{m(A),N("")},onClose:i,children:[h==="general"&&d.jsxs("div",{className:"pi-settings-content",children:[d.jsx("h2",{children:"通用设置"}),d.jsx("p",{className:"pi-settings-intro",children:"调整网页的显示方式。"}),d.jsx("div",{className:"pi-settings-general",children:d.jsx(C_,{})})]}),h==="models"&&d.jsx(c_,{getProviders:t.getProviders,addCustomProvider:t.addCustomProvider,startLogin:t.startProviderLogin,getLogin:t.getProviderLogin,respondLogin:t.respondProviderLogin,cancelLogin:t.cancelProviderLogin,refreshModels:t.refreshModels}),T&&d.jsxs("div",{className:"pi-settings-content",children:[d.jsx("h2",{children:T.title}),d.jsxs("p",{className:"pi-settings-intro",children:[T.hint," 添加或移除后会重新加载 Pi 资源。"]}),k&&d.jsx("p",{className:"pi-settings-error",role:"alert",children:k}),s?d.jsxs(d.Fragment,{children:[d.jsxs("section",{className:"pi-settings-section","aria-label":`已发现${T.title}`,children:[d.jsxs("h3",{children:[T.kind==="packages"?"已安装的包":"已发现的技能"," ",d.jsx("span",{children:U.length})]}),d.jsx("ul",{children:U.length?U.map(A=>{const D=T.kind==="packages"?s.installed.extensions.filter(ie=>ie.source===A.source):[];return d.jsxs("li",{className:"pi-resource-item",children:[d.jsxs("div",{className:"pi-resource-main",children:[d.jsx("strong",{title:A.name,children:A.name}),d.jsx("small",{title:A.path||A.source,children:A.path||A.source}),D.length>0&&d.jsxs("div",{className:"pi-package-contents",children:[d.jsx("span",{children:"包含扩展"}),D.map(ie=>d.jsx("span",{title:ie.path,children:ie.name},ie.path))]})]}),d.jsxs("div",{className:"pi-resource-actions",children:[d.jsxs("span",{className:"pi-resource-meta",children:[A.enabled?"已启用":"已停用"," · ",A.scope==="project"?"项目":A.scope==="user"?"用户":"临时"]}),T.kind==="packages"&&s.global.packages.includes(A.source)&&d.jsx("button",{type:"button",disabled:x,onClick:()=>{_("packages","remove",A.source)},children:"移除"})]})]},`${A.path}:${A.source}`)}):d.jsxs("li",{className:"pi-settings-empty",children:["未发现",T.title]})})]}),T.kind==="packages"&&d.jsxs("section",{className:"pi-settings-section","aria-label":"独立扩展",children:[d.jsxs("h3",{children:["独立扩展 ",d.jsx("span",{children:Y.length})]}),d.jsx("ul",{children:Y.length?Y.map(A=>d.jsxs("li",{className:"pi-resource-item",children:[d.jsxs("div",{className:"pi-resource-main",children:[d.jsx("strong",{title:A.name,children:A.name}),d.jsx("small",{title:A.path,children:A.path})]}),d.jsxs("span",{className:"pi-resource-meta",children:[A.enabled?"已启用":"已停用"," · ",A.scope==="project"?"项目":A.scope==="user"?"用户":"临时"]})]},A.path)):d.jsx("li",{className:"pi-settings-empty",children:"未发现独立扩展"})})]}),d.jsxs("section",{className:"pi-settings-section","aria-label":`手动配置${T.title}`,children:[d.jsx("h3",{children:T.kind==="packages"?"添加包":"手动配置技能"}),(T.kind==="packages"?ee:I).length>0&&d.jsx("ul",{children:(T.kind==="packages"?ee:I).map(A=>d.jsxs("li",{className:"pi-config-item",children:[d.jsxs("div",{className:"pi-resource-main",children:[d.jsx("code",{title:A,children:A}),T.kind==="packages"&&d.jsx("small",{children:"已配置,但未发现安装目录"}),T.kind!=="packages"&&fi(A)&&d.jsx("small",{className:"pi-config-warning",children:"未加载:包来源请在“包与扩展”中添加。"})]}),d.jsxs("div",{className:"pi-resource-actions",children:[T.kind!=="packages"&&fi(A)&&d.jsx("button",{type:"button",disabled:x,onClick:()=>K(A),children:"转到包"}),d.jsx("button",{type:"button",disabled:x,"aria-label":`移除 ${A}`,onClick:()=>{_(T.kind,"remove",A)},children:"移除"})]})]},A))}),d.jsxs("form",{onSubmit:A=>{A.preventDefault(),Z&&!F&&_(T.kind,"add",Z)},children:[d.jsx("input",{"aria-label":`添加${T.title}`,"aria-invalid":F||void 0,"aria-describedby":F?"pi-config-source-help":void 0,placeholder:T.placeholder,value:c[T.kind],onChange:A=>f(D=>({...D,[T.kind]:A.target.value}))}),d.jsx("button",{type:"submit",disabled:x||!Z||F,children:"添加"})]}),F&&d.jsxs("p",{id:"pi-config-source-help",className:"pi-config-hint",children:["这是包来源,请在「包」中添加。",d.jsx("button",{type:"button",onClick:()=>K(Z),children:"转到包"})]})]}),T.kind==="packages"&&d.jsxs("section",{className:"pi-settings-section","aria-label":"手动配置扩展路径",children:[d.jsx("h3",{children:"扩展路径"}),s.global.extensions.length>0&&d.jsx("ul",{children:s.global.extensions.map(A=>d.jsxs("li",{className:"pi-config-item",children:[d.jsxs("div",{className:"pi-resource-main",children:[d.jsx("code",{title:A,children:A}),fi(A)&&d.jsx("small",{className:"pi-config-warning",children:"未加载:包来源不能作为扩展路径,请在上方添加包。"})]}),d.jsxs("div",{className:"pi-resource-actions",children:[fi(A)&&d.jsx("button",{type:"button",disabled:x,onClick:()=>K(A),children:"填入包"}),d.jsx("button",{type:"button",disabled:x,onClick:()=>{_("extensions","remove",A)},children:"移除"})]})]},A))}),d.jsxs("form",{onSubmit:A=>{A.preventDefault(),S&&!$&&_("extensions","add",S)},children:[d.jsx("input",{"aria-label":"添加扩展路径","aria-invalid":$||void 0,"aria-describedby":$?"pi-extension-source-help":void 0,placeholder:"扩展文件或目录路径",value:c.extensions,onChange:A=>f(D=>({...D,extensions:A.target.value}))}),d.jsx("button",{type:"submit",disabled:x||!S||$,children:"添加扩展"})]}),$&&d.jsxs("p",{id:"pi-extension-source-help",className:"pi-config-hint",children:["这是包来源,请使用上方的“添加包”输入框。",d.jsx("button",{type:"button",onClick:()=>K(S),children:"填入包"})]})]})]}):v?d.jsx("p",{role:"status",children:"正在读取设置…"}):d.jsx("button",{className:"pi-settings-retry",type:"button",onClick:()=>{b()},children:"重试读取设置"})]},T.kind)]})}const F1=location.hash.slice(1);F1&&(sessionStorage.setItem("pi-web-token",F1),history.replaceState(null,"",location.pathname));const Rr=F1||sessionStorage.getItem("pi-web-token");async function ct(t,i,r){const o=await fetch(t,{method:"POST",headers:{Authorization:`Bearer ${Rr}`,"Content-Type":"application/json"},body:JSON.stringify(i),signal:r}),s=await o.json();if(!o.ok)throw new Error(s.error||`请求失败:${o.status}`);return s}async function fr(t){const i=await fetch(t,{headers:{Authorization:`Bearer ${Rr}`}}),r=await i.json();if(!i.ok)throw new Error(r.error||`请求失败:${i.status}`);return r}function B_(){const[t,i]=M.useState(null),[r,o]=M.useState(null),[s,u]=M.useState(Rr?"connecting":"missing-token"),[c,f]=M.useState(""),[h,m]=M.useState([]),[x,y]=M.useState([]),[v,C]=M.useState({items:[],activeId:null,sessions:[]}),[k,N]=M.useState(null);return M.useEffect(()=>{if(!Rr){f("请在 Pi 终端输入 /web,打开显示的完整地址。");return}const b=new AbortController;let _,T=!0;return(async()=>{var U;for(;T;)try{u("connecting");const Z=await fetch("/api/events",{headers:{Authorization:`Bearer ${Rr}`},signal:b.signal});if(!Z.ok||!Z.body)throw new Error(Z.status===401?"访问令牌无效,请在 Pi 中重新输入 /web。":"连接 Pi 失败");u("connected"),f("");const F=Z.body.getReader(),W=new TextDecoder;let Y="";for(;T;){const{done:ee,value:S}=await F.read();if(ee)break;Y+=W.decode(S,{stream:!0});let $=Y.indexOf(`
92
- `);for(;$!==-1;){const K=Y.slice(0,$);if(Y=Y.slice($+1),K){const q=JSON.parse(K);q.type==="snapshot"&&((U=q.session)==null?void 0:U.schemaVersion)===1&&(i(q.session),q.session.idle&&o(null)),q.type==="stream"&&o(q.message),q.type==="workspaces"&&C(q.value),q.type==="error"&&f(q.message)}$=Y.indexOf(`
93
- `)}}throw new Error("Pi 网页连接已关闭")}catch(Z){if(!T)return;u("disconnected"),f(Z instanceof Error?Z.message:"连接 Pi 失败"),await new Promise(F=>{_=setTimeout(F,1500)})}})(),()=>{T=!1,b.abort(),_&&clearTimeout(_)}},[]),M.useEffect(()=>{if(s!=="connected")return;let b=!0;return fr("/api/models").then(_=>{b&&m(_)}).catch(_=>{b&&f(_ instanceof Error?_.message:"无法获取模型列表")}),fr("/api/commands").then(_=>{b&&y(_)}).catch(()=>{b&&y([])}),()=>{b=!1}},[s,t==null?void 0:t.sessionId]),M.useEffect(()=>{if(s!=="connected")return;let b=!0;return fr("/api/workspaces").then(_=>{b&&C(_)}).catch(()=>{}),fr("/api/directory/capability").then(_=>{b&&N(_.kind)}).catch(()=>{b&&N("browse")}),()=>{b=!1}},[s]),{session:t,streaming:r,connection:s,error:c,models:h,commands:x,workspaces:v,directoryPickerKind:k,async pickDirectory(){if(!t||s!=="connected")throw new Error("Pi 会话不可用");return(await ct("/api/directory/pick",{sessionId:t.sessionId})).path},async listDirectory(b,_){if(!t||s!=="connected")throw new Error("Pi 会话不可用");return ct("/api/directory/list",{sessionId:t.sessionId,...b===void 0?{}:{path:b}},_)},async createDirectory(b,_){if(!t||s!=="connected")throw new Error("Pi 会话不可用");return(await ct("/api/directory/create",{sessionId:t.sessionId,path:b,name:_})).path},clearError:()=>f(""),async upload(b,_){if(!t||s!=="connected")throw new Error("Pi 会话不可用");const T=`/api/attachment?sessionId=${encodeURIComponent(t.sessionId)}&name=${encodeURIComponent(b.name)}`,I=await fetch(T,{method:"POST",headers:{Authorization:`Bearer ${Rr}`,"Content-Type":b.type||"application/octet-stream"},body:b,signal:_}),U=await I.json();if(I.status===404)throw new Error("当前 Pi 桥接服务仍是旧版。请在 Pi 中输入 /reload,再输入 /web 并打开新地址,然后重试上传。");if(!I.ok)throw new Error(U.error||`上传失败:${I.status}`);return U},async discardAttachment(b){!t||s!=="connected"||await ct("/api/attachment/remove",{sessionId:t.sessionId,id:b})},async send(b,_=[]){if(!(!t||s!=="connected")){f("");try{await ct("/api/message",{sessionId:t.sessionId,text:b,attachments:_})}catch(T){throw f(T instanceof Error?T.message:"发送失败"),T}}},async loadMessageImage(b,_){if(!t||s!=="connected")throw new Error("Pi 会话不可用");const T=`/api/image?sessionId=${encodeURIComponent(t.sessionId)}&messageId=${encodeURIComponent(b)}&index=${_}`,I=await fetch(T,{headers:{Authorization:`Bearer ${Rr}`}});if(!I.ok)throw new Error("图片读取失败");return I.blob()},async stop(){if(!(!t||s!=="connected"))try{await ct("/api/abort",{sessionId:t.sessionId}),f("")}catch(b){throw f(b instanceof Error?b.message:"停止失败"),b}},async compact(){if(!t||s!=="connected")throw new Error("Pi 会话不可用");try{await ct("/api/compact",{sessionId:t.sessionId}),f("")}catch(b){throw f(b instanceof Error?b.message:"压缩失败"),b}},async newSession(){if(!(!t||s!=="connected"))try{await ct("/api/new-session",{sessionId:t.sessionId})}catch(b){throw f(b instanceof Error?b.message:"无法创建新会话"),b}},async addWorkspace(b,_){if(!t||s!=="connected")throw new Error("Pi 会话不可用");await ct("/api/workspace/add",{sessionId:t.sessionId,path:b,create:_})},async selectWorkspace(b){if(!t||s!=="connected")throw new Error("Pi 会话不可用");await ct("/api/workspace/select",{sessionId:t.sessionId,id:b})},async newSessionInWorkspace(b){if(!t||s!=="connected")throw new Error("Pi 会话不可用");await ct("/api/workspace/new-session",{sessionId:t.sessionId,id:b})},async removeWorkspace(b){if(!t||s!=="connected")throw new Error("Pi 会话不可用");await ct("/api/workspace/remove",{sessionId:t.sessionId,id:b})},async selectSession(b,_,T){if(!t||s!=="connected")throw new Error("Pi 会话不可用");await ct("/api/session/select",{sessionId:t.sessionId,workspaceId:b,id:_,path:T??""})},async setModel(b,_){if(!(!t||s!=="connected"))try{await ct("/api/model",{sessionId:t.sessionId,provider:b,id:_}),f("")}catch(T){throw f(T instanceof Error?T.message:"切换模型失败"),T}},async setThinkingLevel(b){if(!(!t||s!=="connected"))try{await ct("/api/thinking-level",{sessionId:t.sessionId,level:b}),f("")}catch(_){throw f(_ instanceof Error?_.message:"切换推理强度失败"),_}},async getConfig(){return fr("/api/config")},async getProviders(){return fr("/api/providers")},async addCustomProvider(b){if(!t||s!=="connected")throw new Error("Pi 会话不可用");await ct("/api/provider/custom",{sessionId:t.sessionId,provider:b})},async startProviderLogin(b,_){if(!t||s!=="connected")throw new Error("Pi 会话不可用");return ct("/api/provider/login",{sessionId:t.sessionId,providerId:b,method:_})},async getProviderLogin(b){return fr(`/api/provider/login?id=${encodeURIComponent(b)}`)},async respondProviderLogin(b,_){if(!t||s!=="connected")throw new Error("Pi 会话不可用");await ct("/api/provider/login/respond",{sessionId:t.sessionId,id:b,value:_})},async cancelProviderLogin(b){!t||s!=="connected"||await ct("/api/provider/login/cancel",{sessionId:t.sessionId,id:b})},async refreshModels(){m(await fr("/api/models"))},async updateConfig(b,_,T,I){if(!t||s!=="connected")throw new Error("Pi 会话不可用");return ct("/api/config",{sessionId:t.sessionId,kind:b,scope:_,action:T,value:I})}}}const l3={"session.new.label":"新会话","session.new":"新会话","toggle.open":"展开侧栏","toggle.collapse":"收起侧栏","panels.label":"面板","brand.localBuild":"pi-webapp"};function $_(){const t=B_(),[i,r]=M.useState(!1),o=M.useCallback(()=>{r(!1),requestAnimationFrame(()=>{var k;return(k=document.querySelector(".pi-settings-sidebar"))==null?void 0:k.focus()})},[]),[s,u]=M.useState(()=>({sidebar:280,viewportWidth:window.innerWidth,narrowExpanded:!1,rightbar:null,rightbarShown:!1,rightbarTrack:!1,rightbarFullscreen:!1,rightbarInstant:!1})),c=M.useMemo(()=>({setViewportWidth(k){u(N=>N.viewportWidth===k?N:{...N,viewportWidth:k,narrowExpanded:N.viewportWidth<1024!=k<1024?!1:N.narrowExpanded})},setSidebar(k){u(N=>({...N,sidebar:Math.min(420,Math.max(264,Math.round(k)))}))},setRightbar(k){}}),[]),f=()=>u(k=>k.viewportWidth<1024?{...k,narrowExpanded:!k.narrowExpanded}:{...k,sidebar:k.sidebar===0?280:0}),h=k=>k({layoutInfo:s}),m=k=>k(t.session?{current:t.session.sessionId,byId:{[t.session.sessionId]:{title:t.session.name}}}:{byId:{}}),x=k=>k({activePanelId:null}),y=k=>k([]),v=(k,N,b)=>k==="sidebar.brand.mark"?d.jsx(Zo,{size:24}):k==="sidebar.brand.name"?d.jsx("span",{children:"pi-webapp"}):k==="sidebar.settings"?d.jsx("div",{className:`pi-settings-trigger-row ${N.wide?"":"pi-settings-trigger-rail"}`,children:d.jsxs("button",{className:"pi-settings-sidebar","data-wide":N.wide,type:"button","aria-label":"Pi 设置","aria-haspopup":"dialog","aria-expanded":i,onClick:()=>r(!0),children:[N.wide?d.jsx(u3,{size:16}):d.jsx(l5,{size:18}),N.wide&&d.jsx("span",{children:"Pi 设置"})]})}):k==="sidebar.workspaces"?d.jsx(u_,{wide:N.wide,expandSidebar:N.expandSidebar,session:t.session,workspaces:t.workspaces,onAdd:t.addWorkspace,directoryPickerKind:t.directoryPickerKind,pickDirectory:t.pickDirectory,listDirectory:t.listDirectory,createDirectory:t.createDirectory,onRemove:t.removeWorkspace,onSelectSession:t.selectSession,onNewSession:t.newSessionInWorkspace}):(b==null?void 0:b.fallback)??null,C=(k,N)=>k==="sidebar"?d.jsx(Y5,{collapsed:N.collapsed,width:N.width,startSession:()=>{t.newSession().catch(()=>{})},toggleSidebar:f,selectPanel:()=>{},usePanels:y,usePanelInfo:x,t:b=>l3[b]??b,renderSlot:v}):k==="main"?d.jsx(xw,{session:t.session,streaming:t.streaming,connection:t.connection,error:t.error,onSend:t.send,onLoadImage:t.loadMessageImage,onUpload:t.upload,onDiscardAttachment:t.discardAttachment,onStop:t.stop,onCompact:t.compact,onNewSession:t.newSession,commands:t.commands,models:t.models,onSetModel:t.setModel,onSetThinkingLevel:t.setThinkingLevel}):null;return d.jsxs(d.Fragment,{children:[d.jsx(Y4,{useStore:h,useSessions:m,usePanelInfo:x,actions:c,renderSlot:C,t:k=>l3[k]??k}),i&&d.jsx(O_,{onBack:o,getConfig:t.getConfig,updateConfig:t.updateConfig,getProviders:t.getProviders,addCustomProvider:t.addCustomProvider,startProviderLogin:t.startProviderLogin,getProviderLogin:t.getProviderLogin,respondProviderLogin:t.respondProviderLogin,cancelProviderLogin:t.cancelProviderLogin,refreshModels:t.refreshModels})]})}d_();const Ld=document.getElementById("root");if(!Ld)throw new Error("Missing #root");M4.createRoot(Ld).render(d.jsx($_,{}));
88
+ </svg>`,zig:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF4DF" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#E18A00" d="m23.53 1.02-7.686 3.45h-7.06l-2.98 3.452h7.173L.47 22.98l7.681-3.607h7.065v-.002l2.978-3.45-7.148-.001 12.482-14.9zM0 4.47v14.901h1.883l2.98-3.45H3.451v-8h.942l2.824-3.45H0zm22.117 0-2.98 3.608h1.412v7.844h-.942l-2.98 3.45H24V4.47h-1.883z"/></g>'});function CC({type:e,size:r=20,className:i}){const o=`piw-code-icon-${E.useId().replaceAll(":","")}`,s=vC[e].replaceAll(yC,o);return c.jsx("svg",{width:r,height:r,className:i,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,dangerouslySetInnerHTML:{__html:s}})}const wC=["angular","c","clojure","cmake","cpp","csharp","css","dart","docker","elixir","env","erlang","flutter","git","go","graphql","haskell","ini","java","javascript","json","kotlin","lua","makefile","node","objective-c","perl","php","powershell","protobuf","python","r","react","ruby","rust","scala","shell","solidity","sql","svelte","swift","toml","typescript","vue","wasm","xml","yaml","zig"],kC=new Set(wC),_C={".bash_profile":"shell",".bashrc":"shell",".env":"env",".gitattributes":"git",".gitconfig":"git",".gitignore":"git",".gitmodules":"git",".mailmap":"git",".profile":"shell",".zprofile":"shell",".zshrc":"shell",bsdmakefile:"makefile","cmakelists.txt":"cmake",commit_editmsg:"git","compose.yaml":"docker","compose.yml":"docker","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker",gemfile:"ruby",gnumakefile:"makefile",guardfile:"ruby",makefile:"makefile","npm-shrinkwrap.json":"node","package-lock.json":"node","package.json":"node",podfile:"ruby",rakefile:"ruby"},SC=[["dockerfile.","docker"],[".env.","env"]],bC=[[".component.ts","angular"],[".component.html","angular"],[".directive.ts","angular"],[".service.ts","angular"],[".module.ts","angular"],[".pipe.ts","angular"],[".guard.ts","angular"],[".interceptor.ts","angular"],[".dockerfile","docker"]],EC={bash:"shell",c:"c","c++":"cpp",cc:"cpp",cfg:"ini",cjs:"javascript",clj:"clojure",cljc:"clojure",cljs:"clojure",cmake:"cmake",cpp:"cpp",cs:"csharp",csh:"shell",css:"css",csx:"csharp",cts:"typescript",cxx:"cpp",dart:"dart",dtd:"xml",edn:"clojure",env:"env",erl:"erlang",es6:"javascript",escript:"erlang",ex:"elixir",exs:"elixir",fish:"shell",gemspec:"ruby",go:"go",gql:"graphql",graphql:"graphql",h:"c","h++":"cpp",hh:"cpp",hpp:"cpp",hrl:"erlang",hs:"haskell",hxx:"cpp",ini:"ini",ipp:"cpp",java:"java",js:"javascript",json:"json",json5:"json",jsonc:"json",jsx:"react",ksh:"shell",kt:"kotlin",kts:"kotlin",lhs:"haskell",lua:"lua",m:"objective-c",mak:"makefile",mjs:"javascript",mk:"makefile",mm:"objective-c",mts:"typescript",node:"node",pch:"objective-c",php:"php",php3:"php",php4:"php",php5:"php",phps:"php",phtml:"php",pl:"perl",plist:"xml",pm:"perl",pod:"perl",proto:"protobuf",ps1:"powershell",psd1:"powershell",psm1:"powershell",py:"python",pyi:"python",pyw:"python",pyx:"python",r:"r",rake:"ruby",rb:"ruby",rmd:"r",rs:"rust",sc:"scala",scala:"scala",sh:"shell",sol:"solidity",sql:"sql",svelte:"svelte",swift:"swift",t:"perl",tcsh:"shell",toml:"toml",tpp:"cpp",ts:"typescript",tsx:"react",vue:"vue",wasm:"wasm",wast:"wasm",wat:"wasm",xml:"xml",xsd:"xml",xsl:"xml",xslt:"xml",yaml:"yaml",yml:"yaml",zig:"zig",zsh:"shell"};function jC(e){return e.slice(Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"))+1)}function LC(e){return kC.has(e)}function NC(e,r,i){var s;const o=_C[e];if(o!==void 0)return o;for(const[u,d]of SC)if(e.startsWith(u))return d;for(const[u,d]of bC)if(e.endsWith(u))return d;if(r==="dart"&&i!==void 0){const u=(s=Object.entries(i.files).find(([d])=>jC(d).toLowerCase()==="pubspec.yaml"))==null?void 0:s[1];if((u==null?void 0:u.includes("flutter:"))===!0)return"flutter"}return EC[r]??null}const IC="_icon_1tiqm_1",PC="_code_1tiqm_8",MC="_excel_1tiqm_12",TC="_folder_1tiqm_16",zC="_html_1tiqm_20",DC="_image_1tiqm_24",RC="_markdown_1tiqm_28",AC="_other_1tiqm_32",FC="_pdf_1tiqm_36",OC="_ppt_1tiqm_40",$C="_video_1tiqm_44",BC="_word_1tiqm_48",sd={icon:IC,code:PC,excel:MC,folder:TC,html:zC,image:DC,markdown:RC,other:AC,pdf:FC,ppt:OC,video:$C,word:BC},HC={scss:"code",sass:"code",less:"code",vue:"code",svelte:"code",astro:"code",bat:"code",cmd:"code",csv:"code",tsv:"code",html:"html",htm:"html",png:"image",jpg:"image",jpeg:"image",gif:"image",svg:"image",webp:"image",avif:"image",bmp:"image",ico:"image",tif:"image",tiff:"image",heic:"image",heif:"image",md:"markdown",mdx:"markdown",markdown:"markdown",pdf:"pdf",ppt:"ppt",pptx:"ppt",key:"ppt",mp4:"video",mov:"video",m4v:"video",webm:"video",mkv:"video",avi:"video",mpg:"video",mpeg:"video",doc:"word",docx:"word",rtf:"word",odt:"word",pages:"word",xls:"excel",xlsx:"excel",xlsm:"excel",numbers:"excel"},VC={changelog:"markdown",contributing:"markdown",readme:"markdown"};function D3(e){return e.slice(Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"))+1)}function xu(e){const r=D3(e),i=r.lastIndexOf(".");return i<0?"":r.slice(i+1)}function UC(e,r){const i=D3(e).toLowerCase(),o=xu(i).toLowerCase();return NC(i,o,r)??VC[i]??HC[o]??"other"}const WC="M8.48924 28H19.5108C21.6479 28 22.7165 28 23.5594 27.6509C24.6833 27.1853 25.5762 26.2924 26.0417 25.1685C26.3909 24.3256 26.3909 23.257 26.3909 21.1199V8.79443C26.3909 8.32877 26.3909 8.09593 26.3471 7.87507C26.2887 7.58058 26.173 7.30042 26.0067 7.05048C25.882 6.86303 25.7177 6.69799 25.3893 6.36792L20.0611 1.01354C19.7304 0.681235 19.5651 0.515081 19.3769 0.38885C19.126 0.220541 18.8443 0.103463 18.5481 0.0443412C18.3259 0 18.0915 0 17.6226 0H8.48924C6.35209 0 5.28351 0 4.4406 0.349145C3.31672 0.814671 2.4238 1.70759 1.95828 2.83147C1.60913 3.67438 1.60913 4.74296 1.60913 6.88011V21.1199C1.60913 23.257 1.60913 24.3256 1.95828 25.1685C2.4238 26.2924 3.31672 27.1853 4.4406 27.6509C5.28351 28 6.35209 28 8.48924 28Z",ad="M26.3909 7.37445L19.0525 0V3.77445C19.0525 4.89271 19.0525 5.45184 19.2352 5.89289C19.4788 6.48096 19.946 6.94818 20.5341 7.19176C20.9751 7.37445 21.5342 7.37445 22.6525 7.37445H26.3909Z",qC="translate(14 16) scale(1.12) translate(-14 -16)",hl="translate(14 16) scale(1.22) translate(-14 -16)",ZC="translate(14 13.0693) scale(1.12) translate(-14 -13.0693)";function Tn({size:e,className:r,children:i,markTransform:o=qC,muted:s=!1}){return c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[c.jsx("path",{d:WC,fill:"currentColor"}),s?c.jsx("path",{d:ad,fill:"var(--dsw-static-neutral-400)"}):c.jsx("path",{d:ad,fill:"var(--dsw-static-neutral-00)",fillOpacity:".7"}),i!==void 0&&c.jsx("g",{color:"var(--dsw-static-neutral-00)","data-file-type-mark":!0,transform:o,children:i})]})}function QC({size:e,className:r}){return c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[c.jsx("path",{d:"M2.80078 10.2112C2.80078 9.52802 2.80078 9.18642 2.85314 8.866C2.98648 8.05 3.36942 7.29538 3.94925 6.70595C4.17694 6.4745 4.45264 6.2728 5.00404 5.86939C5.29197 5.65874 5.43594 5.55342 5.58711 5.46632C5.97089 5.24521 6.39638 5.10618 6.83667 5.05803C7.01011 5.03906 7.18849 5.03906 7.54524 5.03906H11.6543C12.4669 5.03906 12.8732 5.03906 13.2599 5.13697C13.3882 5.16945 13.5143 5.20986 13.6375 5.25795C14.0091 5.40294 14.3398 5.63902 15.0012 6.1112L16.2632 7.01224C16.5526 7.21881 16.6972 7.3221 16.8598 7.38553C16.9137 7.40657 16.9689 7.42425 17.025 7.43846C17.1942 7.4813 17.372 7.4813 17.7275 7.4813H19.8008C22.0506 7.4813 23.1755 7.4813 23.9641 8.05425C24.2188 8.23928 24.4428 8.46326 24.6278 8.71794C25.2008 9.50654 25.2008 10.6315 25.2008 12.8813V18.7283C25.2008 20.9781 25.2008 22.1031 24.6278 22.8917C24.4428 23.1463 24.2188 23.3703 23.9641 23.5554C23.1755 24.1283 22.0506 24.1283 19.8008 24.1283H8.20077C5.95094 24.1283 4.82602 24.1283 4.03743 23.5554C3.78274 23.3703 3.55877 23.1463 3.37373 22.8917C2.80078 22.1031 2.80078 20.9781 2.80078 18.7283V10.2112Z",fill:"currentColor"}),c.jsx("g",{color:"var(--dsw-static-neutral-00)","data-file-type-mark":!0,transform:ZC,children:c.jsx("path",{d:"M6.31445 13.0693H21.6893",stroke:"currentColor",strokeWidth:"2.38"})})]})}function GC(e,r,i){switch(e){case"code":return c.jsxs(Tn,{size:r,className:i,children:[c.jsx("path",{d:"M8.61 16.3601L11.76 18.3901V20.1401L7 17.0601V15.6601L11.76 12.5801V14.3301L8.61 16.3601Z",fill:"currentColor"}),c.jsx("path",{d:"M16.1918 14.3301V12.5801L20.9518 15.6601V17.0601L16.1918 20.1401V18.3901L19.3418 16.3601L16.1918 14.3301Z",fill:"currentColor"})]});case"excel":return c.jsx(Tn,{size:r,className:i,markTransform:hl,children:c.jsx("path",{d:"M10.2932 20.5L13.3532 16.25L13.3432 17.66L10.4032 13.5H12.6332L14.5132 16.21L13.5632 16.22L15.4132 13.5H17.5532L14.6132 17.58V16.18L17.7132 20.5H15.4332L13.5232 17.65H14.4332L12.5532 20.5H10.2932Z",fill:"currentColor"})});case"folder":return c.jsx(QC,{size:r,className:i});case"html":return c.jsx(Tn,{size:r,className:i,children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9994 9.68298C17.212 9.68298 19.8167 12.2872 19.8168 15.4997C19.8168 18.7123 17.2121 21.3171 13.9994 21.3171C10.7869 21.3169 8.18274 18.7122 8.18274 15.4997C8.1829 12.2873 10.787 9.68315 13.9994 9.68298ZM9.26213 16.0247C9.47025 17.9241 10.7936 19.4876 12.5639 20.0463C12.42 19.7977 12.2952 19.5152 12.1879 19.2116C11.885 18.3541 11.693 17.2434 11.6424 16.0247H9.26213ZM16.3565 16.0247C16.3059 17.2434 16.1145 18.3542 15.8116 19.2116C15.7044 19.5151 15.5788 19.7971 15.435 20.0456C17.2054 19.487 18.5293 17.9242 18.7374 16.0247H16.3565ZM12.6938 16.0247C12.7439 17.1459 12.9212 18.1334 13.1784 18.8616C13.332 19.2962 13.503 19.61 13.6686 19.805C13.834 19.9996 13.9473 20.0256 13.9994 20.0258C14.0514 20.0258 14.1651 20.0002 14.331 19.805C14.4966 19.61 14.6676 19.2962 14.8211 18.8616C15.0784 18.1334 15.2557 17.1459 15.3058 16.0247H12.6938ZM13.9994 10.733C13.9473 10.7331 13.834 10.7598 13.6686 10.9545C13.503 11.1494 13.3319 11.4633 13.1784 11.8978C12.903 12.6777 12.7188 13.7545 12.6849 14.9747H15.3147C15.2808 13.7545 15.0966 12.6777 14.8211 11.8978C14.6676 11.4633 14.4965 11.1494 14.331 10.9545C14.1651 10.7593 14.0514 10.733 13.9994 10.733ZM15.5888 11.0051C15.6701 11.1756 15.7444 11.3576 15.8116 11.5478C16.1343 12.4613 16.3308 13.6619 16.3647 14.9747H18.7374C18.5352 13.1307 17.2817 11.6036 15.5888 11.0051ZM12.4101 11.0051C10.7174 11.6037 9.46428 13.1308 9.26213 14.9747H11.6349C11.6688 13.6619 11.8652 12.4613 12.1879 11.5478C12.2551 11.3577 12.3288 11.1756 12.4101 11.0051Z",fill:"currentColor"})});case"image":return c.jsxs(Tn,{size:r,className:i,children:[c.jsx("path",{d:"M10.4212 15.9204C10.5756 15.6558 10.9579 15.6558 11.1123 15.9204L13.6493 20.2696C13.8048 20.5362 13.6125 20.8711 13.3037 20.8711H8.22974C7.92102 20.8711 7.72868 20.5362 7.88423 20.2696L10.4212 15.9204Z",fill:"currentColor"}),c.jsx("path",{d:"M15.4981 13.186C15.6505 12.9117 16.0451 12.9117 16.1975 13.186L20.1368 20.2769C20.2849 20.5435 20.0922 20.8711 19.7872 20.8711H11.9084C11.6034 20.8711 11.4107 20.5435 11.5588 20.2769L15.4981 13.186Z",fill:"currentColor"}),c.jsx("path",{d:"M11.8603 11.3997C11.8603 12.286 11.1418 13.0045 10.2555 13.0045C9.36924 13.0045 8.65076 12.286 8.65076 11.3997C8.65076 10.5134 9.36924 9.79492 10.2555 9.79492C11.1418 9.79492 11.8603 10.5134 11.8603 11.3997Z",fill:"currentColor"})]});case"markdown":return c.jsx(Tn,{size:r,className:i,markTransform:hl,children:c.jsx("path",{d:"M8.7588 19.5V14.6H9.8998L11.9298 17.932H11.3278L13.3018 14.6H14.4428L14.4568 19.5H13.1828L13.1688 16.539H13.3858L11.9088 19.017H11.2928L9.7738 16.539H10.0398V19.5H8.7588ZM15.4375 19.5V14.6H17.7545C18.2958 14.6 18.7718 14.7003 19.1825 14.901C19.5932 15.1017 19.9128 15.384 20.1415 15.748C20.3748 16.112 20.4915 16.546 20.4915 17.05C20.4915 17.5493 20.3748 17.9833 20.1415 18.352C19.9128 18.716 19.5932 18.9983 19.1825 19.199C18.7718 19.3997 18.2958 19.5 17.7545 19.5H15.4375ZM16.8235 18.394H17.6985C17.9785 18.394 18.2212 18.3427 18.4265 18.24C18.6365 18.1327 18.7998 17.9787 18.9165 17.778C19.0332 17.5727 19.0915 17.33 19.0915 17.05C19.0915 16.7653 19.0332 16.5227 18.9165 16.322C18.7998 16.1213 18.6365 15.9697 18.4265 15.867C18.2212 15.7597 17.9785 15.706 17.6985 15.706H16.8235V18.394Z",fill:"currentColor"})});case"other":return c.jsx(Tn,{size:r,className:i,muted:!0});case"pdf":return c.jsx(Tn,{size:r,className:i,markTransform:hl,children:c.jsx("path",{d:"M6.80616 19.5V14.6H9.04616C9.49416 14.6 9.87916 14.6723 10.2012 14.817C10.5278 14.9617 10.7798 15.1717 10.9572 15.447C11.1345 15.7177 11.2232 16.0397 11.2232 16.413C11.2232 16.7817 11.1345 17.1013 10.9572 17.372C10.7798 17.6427 10.5278 17.8527 10.2012 18.002C9.87916 18.1467 9.49416 18.219 9.04616 18.219H7.57616L8.19216 17.617V19.5H6.80616ZM8.19216 17.764L7.57616 17.127H8.96216C9.2515 17.127 9.46616 17.064 9.60616 16.938C9.75083 16.812 9.82316 16.637 9.82316 16.413C9.82316 16.1843 9.75083 16.007 9.60616 15.881C9.46616 15.755 9.2515 15.692 8.96216 15.692H7.57616L8.19216 15.055V17.764ZM11.8989 19.5V14.6H14.2159C14.7573 14.6 15.2333 14.7003 15.6439 14.901C16.0546 15.1017 16.3743 15.384 16.6029 15.748C16.8363 16.112 16.9529 16.546 16.9529 17.05C16.9529 17.5493 16.8363 17.9833 16.6029 18.352C16.3743 18.716 16.0546 18.9983 15.6439 19.199C15.2333 19.3997 14.7573 19.5 14.2159 19.5H11.8989ZM13.2849 18.394H14.1599C14.4399 18.394 14.6826 18.3427 14.8879 18.24C15.0979 18.1327 15.2613 17.9787 15.3779 17.778C15.4946 17.5727 15.5529 17.33 15.5529 17.05C15.5529 16.7653 15.4946 16.5227 15.3779 16.322C15.2613 16.1213 15.0979 15.9697 14.8879 15.867C14.6826 15.7597 14.4399 15.706 14.1599 15.706H13.2849V18.394ZM17.6821 19.5V14.6H21.5251V15.671H19.0681V19.5H17.6821ZM18.9701 17.82V16.749H21.2311V17.82H18.9701Z",fill:"currentColor"})});case"ppt":return c.jsx(Tn,{size:r,className:i,markTransform:hl,children:c.jsx("path",{d:"M11.0132 20.5V13.5H14.2132C14.8532 13.5 15.4032 13.6033 15.8632 13.81C16.3299 14.0167 16.6899 14.3167 16.9432 14.71C17.1966 15.0967 17.3232 15.5567 17.3232 16.09C17.3232 16.6167 17.1966 17.0733 16.9432 17.46C16.6899 17.8467 16.3299 18.1467 15.8632 18.36C15.4032 18.5667 14.8532 18.67 14.2132 18.67H12.1132L12.9932 17.81V20.5H11.0132ZM12.9932 18.02L12.1132 17.11H14.0932C14.5066 17.11 14.8132 17.02 15.0132 16.84C15.2199 16.66 15.3232 16.41 15.3232 16.09C15.3232 15.7633 15.2199 15.51 15.0132 15.33C14.8132 15.15 14.5066 15.06 14.0932 15.06H12.1132L12.9932 14.15V18.02Z",fill:"currentColor"})});case"video":return c.jsx(Tn,{size:r,className:i,children:c.jsx("path",{d:"M17.5 14.634C18.1667 15.0189 18.1667 15.9811 17.5 16.366L11.5 19.8301C10.8333 20.215 10 19.7339 10 18.9641L10 12.0359C10 11.2661 10.8333 10.785 11.5 11.1699L17.5 14.634Z",fill:"currentColor"})});case"word":return c.jsx(Tn,{size:r,className:i,markTransform:hl,children:c.jsx("path",{d:"M10.5118 20.5L8.24179 13.5H10.2818L12.1918 19.56H11.1618L13.1718 13.5H14.9918L16.8918 19.56H15.9018L17.8718 13.5H19.7618L17.4918 20.5H15.3718L13.7518 15.35H14.3218L12.6318 20.5H10.5118Z",fill:"currentColor"})});default:return KC(e)}}function KC(e){throw new Error(`unreachable traditional file type: ${String(e)}`)}function R3(e){const{size:r=28,className:i}=e,o="path"in e?UC(e.path,e.context):e.kind;return LC(o)?c.jsx(CC,{type:o,size:r,className:i}):GC(o,r,ot(sd.icon,sd[o],i))}function YC(e){if(e<1024)return`${e}B`;const r=e/1024;if(r<1024)return`${r<10?r.toFixed(1):Math.round(r)}KB`;const i=r/1024;if(i<1024)return`${i<10?i.toFixed(1):Math.round(i)}MB`;const o=i/1024;return`${o<10?o.toFixed(1):Math.round(o)}GB`}const XC="_card_p20fp_1",JC="_failed_p20fp_16",ew="_icon_p20fp_20",tw="_spinner_p20fp_29",nw="_body_p20fp_43",rw="_retry_p20fp_51",iw="_name_p20fp_61",lw="_meta_p20fp_71",ow="_metaFailed_p20fp_80",sw="_remove_p20fp_84",aw="_removeFailed_p20fp_126",uw="_progressTrack_p20fp_132",cw="_progressBar_p20fp_143",Tt={card:XC,failed:JC,icon:ew,spinner:tw,body:nw,retry:rw,name:iw,meta:lw,metaFailed:ow,remove:sw,removeFailed:aw,progressTrack:uw,progressBar:cw};function dw({name:e,bytes:r,status:i,error:o,onRemove:s,onRetry:u}){const d=xu(e).toUpperCase().slice(0,8),f=i==="uploading"?_("上传中…","Uploading…"):i==="error"?o||_("上传失败","Upload failed"):`${d} ${YC(r)}`;return c.jsxs("div",{className:`${Tt.card} ${i==="error"?Tt.failed:""}`,title:e,children:[c.jsx("span",{className:Tt.icon,"aria-hidden":"true",children:i==="uploading"?c.jsx("span",{className:Tt.spinner}):c.jsx(R3,{path:e,size:28})}),i==="error"?c.jsxs("button",{type:"button",className:`${Tt.body} ${Tt.retry}`,onClick:u,"aria-label":_(`重试上传 ${e}`,`Retry upload ${e}`),children:[c.jsx("span",{className:Tt.name,children:e}),c.jsx("span",{className:`${Tt.meta} ${Tt.metaFailed}`,children:f})]}):c.jsxs("span",{className:Tt.body,"aria-label":_(`待发送文件 ${e}`,`Pending file ${e}`),children:[c.jsx("span",{className:Tt.name,children:e}),c.jsx("span",{className:Tt.meta,children:f})]}),c.jsx("button",{type:"button",className:`${Tt.remove} ${i==="error"?Tt.removeFailed:""}`,"aria-label":_(`移除 ${e}`,`Remove ${e}`),onClick:s,children:c.jsx(K1,{size:12})}),i==="uploading"&&c.jsx("span",{className:Tt.progressTrack,"aria-hidden":"true",children:c.jsx("span",{className:Tt.progressBar})})]})}const fw="_imageItem_1b0gl_9",pw="_thumbnail_1b0gl_15",hw="_remove_1b0gl_33",mw="_retryImage_1b0gl_58",Zo={imageItem:fw,thumbnail:pw,remove:hw,retryImage:mw};function gw({file:e,status:r,error:i,onRemove:o,onRetry:s}){const[u,d]=E.useState(null),[f,p]=E.useState(!1),m=E.useCallback(()=>p(!1),[]),y=/^(image\/(png|jpeg|webp|gif))$/.test(e.type)||/\.(png|jpe?g|webp|gif)$/i.test(e.name);return E.useEffect(()=>{if(!y)return;const x=URL.createObjectURL(e);return d(x),()=>URL.revokeObjectURL(x)},[e,y]),y?c.jsxs("div",{className:Zo.imageItem,title:e.name,children:[c.jsx("button",{type:"button",className:Zo.thumbnail,"aria-label":_(`预览 ${e.name}`,`Preview ${e.name}`),disabled:u===null,onClick:()=>p(!0),children:u&&c.jsx("img",{src:u,alt:e.name})}),c.jsx("button",{type:"button",className:Zo.remove,"aria-label":_(`移除 ${e.name}`,`Remove ${e.name}`),onClick:o,children:c.jsx(K1,{size:12})}),r==="uploading"&&c.jsx("span",{className:"pi-image-uploading",role:"status",children:_("上传中","Uploading")}),r==="error"&&c.jsx("button",{type:"button",className:Zo.retryImage,"aria-label":_(`重试上传 ${e.name}`,`Retry upload ${e.name}`),title:i||_("上传失败","Upload failed"),onClick:s,children:_("重试","Retry")}),f&&u&&c.jsx(z3,{src:u,alt:e.name,labels:{dialog:_("图片预览","Image preview"),close:_("关闭预览","Close preview")},onClose:m})]}):c.jsx(dw,{name:e.name,bytes:e.size,status:r,error:i,onRemove:o,onRetry:s})}const xw="_frame_33xub_18",yw="_loading_33xub_51",vw="_error_33xub_52",b1={frame:xw,loading:yw,error:vw};function Cw(e,r){const i=e/r,o=Math.min(4,Math.max(.25,i)),s=o>=1?{width:240,height:240/o}:{width:240*o,height:240},u=Math.min(1,e/s.width,r/s.height);return{width:Math.max(1,Math.round(s.width*u)),height:Math.max(1,Math.round(s.height*u)),objectPosition:i<.25?"center top":i>4?"left center":"center"}}function ww({name:e,messageId:r,index:i,file:o,tile:s,loadImage:u}){const[d,f]=E.useState(null),[p,m]=E.useState(!1),[y,x]=E.useState(!1),[v,C]=E.useState(0),[k,P]=E.useState(null),R=E.useRef(u);R.current=u,E.useEffect(()=>{let V=!0,b=null;return f(null),m(!1),P(null),o?(b=URL.createObjectURL(o),f(b)):R.current(r,i).then($=>{const B=URL.createObjectURL($);V?(b=B,f(B)):URL.revokeObjectURL(B)}).catch(()=>{V&&m(!0)}),()=>{V=!1,b&&URL.revokeObjectURL(b)}},[o,r,i,v]);const j=!s&&k?Cw(k.width,k.height):null;return p?c.jsx("button",{type:"button",className:b1.error,"data-variant":s?"tile":"single",onClick:()=>C(V=>V+1),children:_("图片加载失败,重试","Image failed to load. Retry")}):c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",className:b1.frame,"data-variant":s?"tile":"single","aria-label":_(`预览 ${e}`,`Preview ${e}`),title:_("查看原图","View original image"),disabled:!d,onClick:()=>x(!0),style:j?{width:j.width,height:j.height}:void 0,children:d?c.jsx("img",{src:d,alt:e,onLoad:V=>P({width:V.currentTarget.naturalWidth,height:V.currentTarget.naturalHeight}),onError:()=>m(!0),style:j?{objectPosition:j.objectPosition}:void 0}):c.jsx("span",{className:b1.loading,children:_("加载中","Loading")})}),y&&d&&c.jsx(z3,{src:d,alt:e,labels:{dialog:_("图片预览","Image preview"),close:_("关闭预览","Close preview")},onClose:()=>x(!1)})]})}const kw=12;function _w(e,r,i){const[o,s]=E.useState(r);return E.useLayoutEffect(()=>{const u=e.current;if(u===null)return;const d=()=>{s(Math.min(r,Math.max(0,u.getBoundingClientRect().bottom-kw)))};return d(),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0),()=>{window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0)}},[e,r,i]),o}const Sw="_menu_rkz86_1",bw="_viewport_rkz86_46",Ew="_item_rkz86_53",jw="_active_rkz86_72",Lw="_itemName_rkz86_100",Nw="_itemDescription_rkz86_121",Iw="_groupTitle_rkz86_188",vr={menu:Sw,viewport:bw,item:Ew,active:jw,itemName:Lw,itemDescription:Nw,groupTitle:Iw};function Pw(){return[{name:"compact",description:_("压缩当前会话内容","Compact the current session")},{name:"model",description:_("选择本会话使用的模型","Choose the model for this session")},{name:"new",description:_("创建新会话","Create a new session")}]}function Mw({commands:e,active:r,onHover:i,onPick:o}){const s=E.useRef(null),u=_w(s,400,e.length);return c.jsx("div",{ref:s,className:vr.menu,"data-trigger-menu":"",style:{maxHeight:u},children:c.jsxs("div",{className:vr.viewport,role:"listbox","aria-label":_("指令","Commands"),"aria-activedescendant":e[r]?`pi-command-${r}`:void 0,children:[c.jsx("div",{className:vr.groupTitle,role:"presentation",children:_("指令","Commands")}),e.map((d,f)=>c.jsxs("button",{id:`pi-command-${f}`,type:"button",role:"option","aria-selected":f===r,className:`${vr.item} ${f===r?vr.active:""}`,onMouseDown:p=>{p.preventDefault(),o(d)},onMouseMove:()=>i(f),children:[c.jsx("span",{className:vr.itemName,children:d.name}),d.description&&c.jsx("span",{className:vr.itemDescription,children:d.description})]},d.name)),e.length===0&&c.jsx("div",{className:vr.groupTitle,children:_("没有匹配的指令","No matching commands")})]})})}const Tw="_mask_dzmab_3",zw="_wrap_dzmab_27",Dw="_illustration_dzmab_37",Rw="_title_dzmab_42",Aw="_desc_dzmab_47",ml={mask:Tw,wrap:zw,illustration:Dw,title:Rw,desc:Aw};function Fw({disabled:e,labels:r}){return Nl.createPortal(c.jsx("div",{className:ml.mask,role:"status",children:c.jsxs("div",{className:ml.wrap,children:[c.jsx("div",{className:ml.illustration,"aria-hidden":"true",children:e?c.jsx($w,{}):c.jsx(Ow,{})}),c.jsx("div",{className:ml.title,children:r.title}),!e&&r.desc!==void 0&&c.jsx("div",{className:ml.desc,children:r.desc})]})}),document.body)}const Ow=()=>c.jsxs("svg",{width:"115",height:"84",viewBox:"0 0 115 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#piwDropOverlayClip)",children:[c.jsx("rect",{y:"17.0742",width:"44.1832",height:"43.6431",rx:"12",transform:"rotate(-22.7338 0 17.0742)",fill:"#9CE5ED"}),c.jsx("rect",{x:"73.4043",y:"8.54297",width:"43.7267",height:"50.5284",rx:"8",transform:"rotate(17.403 73.4043 8.54297)",fill:"#679EFE"}),c.jsx("path",{d:"M30.4917 28.1369L40.8865 33.4564L37.2232 34.9524L29.5302 31.0159L26.7919 39.2122L23.1285 40.7082L26.8287 29.6338L16.8967 24.5516L20.5601 23.0556L27.7902 26.7549L30.3639 19.052L34.0273 17.556L30.4917 28.1369Z",fill:"white"}),c.jsx("path",{d:"M77.5088 26.3047L101.057 33.7966",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M72.2646 42.7871L86.3938 47.2823",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M74.8867 34.5469L98.4353 42.0388",stroke:"white",strokeWidth:"3"}),c.jsx("rect",{x:"31.583",y:"38.6641",width:"44.9157",height:"44.3666",rx:"12",transform:"rotate(-0.134233 31.583 38.6641)",fill:"#3964FE"}),c.jsx("path",{d:"M38.9521 73.0337C39.6129 71.7086 41.7113 66.0937 43.5113 61.1663C44.1607 59.3885 46.7484 59.3923 47.4591 61.1465C48.9728 64.8828 50.7969 68.6922 51.9988 69.1925C54.2946 70.1482 57.9854 59.3573 68.0064 70.1801",stroke:"white",strokeWidth:"3"}),c.jsx("circle",{cx:"60.6157",cy:"52.247",r:"4.38794",transform:"rotate(22.5996 60.6157 52.247)",fill:"white"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"piwDropOverlayClip",children:c.jsx("rect",{width:"115",height:"84",fill:"white"})})})]}),$w=()=>c.jsxs("svg",{width:"115",height:"84",viewBox:"0 0 115 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M29.6829 4.63701L11.0677 12.4368C4.95519 14.998 2.07624 22.0294 4.6374 28.1419L12.2285 46.259C14.7896 52.3715 21.8211 55.2505 27.9336 52.6893L46.5488 44.8895C52.6613 42.3283 55.5403 35.2969 52.9791 29.1844L45.388 11.0673C42.8269 4.9548 35.7954 2.07585 29.6829 4.63701Z",fill:"#979DA6"}),c.jsx("path",{d:"M30.4915 28.1375L40.8863 33.4569L37.223 34.9529L29.53 31.0165L26.7917 39.2128L23.1283 40.7088L26.8285 29.6344L16.8965 24.5522L20.5599 23.0562L27.79 26.7555L30.3637 19.0526L34.0271 17.5566L30.4915 28.1375Z",fill:"white"}),c.jsx("path",{d:"M107.496 19.2285L81.0381 10.9357C76.8221 9.61423 72.333 11.9607 71.0116 16.1768L60.6844 49.1246C59.363 53.3406 61.7095 57.8297 65.9255 59.1511L92.383 67.4439C96.599 68.7654 101.088 66.4189 102.41 62.2029L112.737 29.255C114.058 25.039 111.712 20.55 107.496 19.2285Z",fill:"#979DA6"}),c.jsx("path",{d:"M77.5088 26.3047L101.057 33.7967",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M72.2646 42.7871L86.3938 47.2823",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M74.8867 34.5469L98.4353 42.0388",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M66.5798 30.1418L41.481 30.2006C33.5281 30.2193 27.0962 36.6815 27.1148 44.6343L27.172 69.0742C27.1907 77.0271 33.6529 83.459 41.6057 83.4404L66.7045 83.3816C74.6574 83.363 81.0894 76.9008 81.0707 68.9479L81.0135 44.5081C80.9949 36.5552 74.5327 30.1232 66.5798 30.1418Z",fill:"#F59E0B"}),c.jsx("path",{d:"M54 70.7969C61.732 70.7969 68 64.5289 68 56.7969C68 49.0649 61.732 42.7969 54 42.7969C46.268 42.7969 40 49.0649 40 56.7969C40 64.5289 46.268 70.7969 54 70.7969Z",stroke:"white",strokeWidth:"3.5"}),c.jsx("path",{d:"M44 46.7969L64 66.7969",stroke:"white",strokeWidth:"3.5",strokeLinecap:"round"})]});function A3(e){const r=[];let i=e;for(;;){const o=/(^|\n\n)附件 ("(?:\\.|[^"\\])*"):([^\n]+)$/u.exec(i);if(!o||!/[\\/]pi-web[\\/]attachments[\\/][a-f0-9]{64}[\\/]/u.test(o[3]))break;let s;try{s=JSON.parse(o[2])}catch{break}r.unshift({name:s,image:/\.(?:png|jpe?g|webp|gif)$/iu.test(s)}),i=i.slice(0,o.index)}return{text:i,attachments:r}}function Qo({message:e,results:r,loadImage:i,running:o=!1,onInspect:s,cwd:u}){var d;if(e.role==="tool"&&e.toolCallId&&r.has(e.toolCallId))return null;if(e.role==="user"){const f=e.blocks.filter(v=>v.kind==="text").map(v=>v.text).join(`
89
+ `),p=e.localFiles?{text:f,attachments:e.localFiles.map(v=>({name:v.name,image:/\.(?:png|jpe?g|webp|gif)$/iu.test(v.name)||/^image\/(?:png|jpeg|webp|gif)$/.test(v.type)}))}:A3(f),m=e.blocks.map((v,C)=>({block:v,index:C})).filter(({block:v})=>v.kind==="image"),y=p.attachments.filter(v=>v.image),x=(d=e.localFiles)==null?void 0:d.filter(v=>/\.(?:png|jpe?g|webp|gif)$/iu.test(v.name)||/^image\/(?:png|jpeg|webp|gif)$/.test(v.type));return c.jsx("div",{className:Zn.userRow,"data-message-role":"user",children:c.jsxs("div",{className:Zn.userStack,children:[(m.length>0||p.attachments.some(v=>!v.image))&&c.jsxs("div",{className:Zn.attachmentRow,"data-message-attachments":!0,children:[m.map(({index:v},C)=>{var k,P;return c.jsx(ww,{name:((k=y[C])==null?void 0:k.name)??((P=x==null?void 0:x[C])==null?void 0:P.name)??_("图片","Image"),messageId:e.id,index:v,file:x==null?void 0:x[C],tile:m.length>1||p.attachments.length>m.length,loadImage:i},v)}),p.attachments.filter(v=>!v.image).map((v,C)=>c.jsxs("span",{className:Zn.fileCard,title:v.name,children:[c.jsx(R3,{path:v.name,className:Zn.fileIcon}),c.jsxs("span",{className:Zn.fileContent,children:[c.jsx("span",{className:Zn.fileName,children:v.name}),c.jsxs("span",{className:Zn.fileMeta,children:[xu(v.name).toUpperCase()," ",_("文件","file")]})]})]},`${v.name}-${C}`))]}),p.text&&c.jsx("div",{className:Zn.bubble,children:p.text})]})})}return c.jsx("div",{className:"pi-message","data-message-role":e.role,children:e.blocks.map((f,p)=>f.kind==="thinking"?c.jsx(Yg,{text:f.text,running:o},p):f.kind==="toolCall"?c.jsx(ky,{block:f,result:f.toolCallId?r.get(f.toolCallId):void 0,running:o,cwd:u,onInspect:f.toolCallId&&s?()=>s(f.toolCallId):void 0},f.toolCallId||p):f.kind==="image"?c.jsx("div",{className:"pi-image-note",children:f.text},p):c.jsx(N3,{text:f.text},p))})}function Bw({turn:e,results:r,model:i,loadImage:o,onInspect:s,running:u=!1,cwd:d}){const f=[...e.messages].reverse().find(j=>j.role==="assistant"&&j.blocks.some(V=>V.kind==="text"&&V.text.trim())),p=(f==null?void 0:f.blocks.filter(j=>j.kind==="text"))??[],m=[];for(const j of e.messages)j.role==="assistant"&&j.blocks.forEach((V,b)=>{j===f&&V.kind==="text"||m.push({message:j,block:V,index:b})});const[y,x]=E.useState(!1),v=m.filter(({block:j})=>j.kind==="toolCall").length,C=new Set(m.filter(({block:j})=>j.kind!=="toolCall").map(({message:j})=>j.id)).size,k=p.map(j=>j.text).join(`
90
+ `),P=u||y,R=e.messages.filter(j=>j.role==="assistant"&&j.error);return c.jsxs("div",{className:"pi-turn","data-turn":e.index,children:[e.messages.filter(j=>j.role==="user"||j.role==="notice").map(j=>c.jsx(Qo,{message:j,results:r,loadImage:o},j.id)),m.length>0&&c.jsxs(c.Fragment,{children:[p.length>0&&c.jsx(_y,{toolCount:v,messageCount:C,open:P,onToggle:()=>x(j=>!j)}),(P||p.length===0)&&c.jsx("div",{className:"pi-turn-process-content",children:m.map(({message:j,block:V,index:b})=>c.jsx(Qo,{message:{...j,blocks:[V]},results:r,loadImage:o,running:j.id==="stream",cwd:d,onInspect:s},`${j.id}-${b}`))})]}),p.length>0&&f&&c.jsx(Qo,{message:{...f,blocks:p},results:r,loadImage:o,running:f.id==="stream"}),e.messages.filter(j=>j.role==="tool"&&(!j.toolCallId||!r.has(j.toolCallId))).map(j=>c.jsx(Qo,{message:j,results:r,loadImage:o},j.id)),R.map(j=>c.jsxs("div",{className:"pi-model-error",role:"alert",children:[c.jsx("strong",{children:_("模型请求失败","Model request failed")}),c.jsx("span",{children:/usage limit has been reached/i.test(j.error??"")?_("模型服务的使用额度已耗尽。请切换模型或等待额度恢复后重试。","The model service usage limit has been reached. Switch models or try again after the limit resets."):j.error})]},`${j.id}-error`)),!u&&R.length===0&&(f||e.usage&&e.usage.totalTokens>0)&&c.jsx(by,{text:k,timestamp:f==null?void 0:f.timestamp,usage:e.usage,model:(f==null?void 0:f.model)??i})]})}function Hw({hero:e,session:r,connection:i,onSend:o,onUpload:s,onDiscardAttachment:u,onStop:d,onCompact:f,onNewSession:p,commands:m,models:y,modelsStatus:x,onConfigureModels:v,onSetModel:C,onSetThinkingLevel:k}){const P=kr(),[R,j]=E.useState(""),[V,b]=E.useState(!1),[$,B]=E.useState(null),[T,ee]=E.useState(0),[ie,Y]=E.useState(0),[D,L]=E.useState([]),[Z,te]=E.useState(""),[W,O]=E.useState(!1),I=E.useRef(0),J=E.useRef(null),z=E.useRef(new Map),ne=E.useRef(new Set),S=E.useRef(D);S.current=D;const A=E.useRef(null),K=E.useRef(null),N=i==="connected"&&r!==null,ge=N&&x==="ready"&&y.length===0,ve=N&&y.some(re=>`${re.provider}/${re.id}`===r.model),fe=N&&r.idle&&!V,Ne=D.length===0&&["/compact","/new","/model"].includes(R.trim()),Ee=fe&&x==="ready"&&(ve||Ne)&&(R.trim().length>0||D.length>0)&&D.every(re=>re.status==="ready"),ze=N&&!r.idle&&!V,Ue=E.useMemo(()=>{const re=new Map;for(const be of[...Pw(),...m])re.has(be.name)||re.set(be.name,be);return[...re.values()].sort((be,Q)=>be.name.localeCompare(Q.name))},[m,P]),Oe=$==="slash"?R.slice(1).toLowerCase():"",rt=$===null?[]:Ue.filter(re=>re.name.toLowerCase().includes(Oe));E.useEffect(()=>(L([]),te(""),B(null),()=>{for(const re of S.current)ne.current.add(re.key);for(const re of z.current.values())re.abort();for(const re of S.current)re.receipt&&u(re.receipt.id).catch(()=>{});z.current.clear()}),[r==null?void 0:r.sessionId]),E.useEffect(()=>{if($===null)return;const re=be=>{var Q;be.target instanceof Node&&!((Q=A.current)!=null&&Q.contains(be.target))&&B(null)};return document.addEventListener("pointerdown",re,!0),()=>document.removeEventListener("pointerdown",re,!0)},[$]);const Et=async re=>{var be;if($==="slash"&&["model","compact","new"].includes(re.name)&&j(""),B(null),re.name==="model"){Y(Q=>Q+1);return}if(re.name==="compact"||re.name==="new"){b(!0);try{await(re.name==="compact"?f():p())}catch{}finally{b(!1)}return}j(`/${re.name} `),(be=K.current)==null||be.focus()},Rt=E.useCallback((re,be)=>{const Q=new AbortController;z.current.set(re,Q),s(be,Q.signal).then(xe=>{if(ne.current.has(re)){u(xe.id).catch(()=>{});return}L(Me=>Me.map(st=>st.key===re?{...st,status:"ready",receipt:xe,error:void 0}:st))}).catch(xe=>{if(ne.current.has(re))return;const Me=xe instanceof Error?xe.message:_("上传失败","Upload failed");te(Me),L(st=>st.map(He=>He.key===re?{...He,status:"error",error:Me}:He))}).finally(()=>{z.current.get(re)===Q&&z.current.delete(re)})},[s,u]),At=re=>{var be;ne.current.add(re.key),(be=z.current.get(re.key))==null||be.abort(),re.receipt&&u(re.receipt.id).catch(()=>{}),re.status==="error"&&!D.some(Q=>Q.key!==re.key&&Q.status==="error")&&te(""),L(Q=>Q.filter(xe=>xe.key!==re.key))},jt=E.useCallback(re=>{if(!fe||re.length===0)return;const be=Math.max(0,20-D.length),Q=re.slice(0,be).filter(Me=>Me.size>0&&Me.size<=20*1024*1024);Q.length!==re.length?te(_("最多添加 20 个文件,单个文件不得超过 20 MB 且不能为空","Add up to 20 nonempty files, each no larger than 20 MB")):te("");const xe=Q.map(Me=>({key:crypto.randomUUID(),file:Me,status:"uploading"}));L(Me=>[...Me,...xe]),xe.forEach(Me=>Rt(Me.key,Me.file))},[D.length,fe,Rt]);E.useEffect(()=>{const re=He=>{var X;return((X=He.dataTransfer)==null?void 0:X.types.includes("Files"))??!1},be=()=>{I.current=0,O(!1)},Q=He=>{re(He)&&(He.preventDefault(),I.current++,O(!0))},xe=He=>{re(He)&&(He.preventDefault(),He.dataTransfer&&(He.dataTransfer.dropEffect=fe?"copy":"none"))},Me=He=>{re(He)&&(I.current=Math.max(0,I.current-1),I.current===0&&O(!1))},st=He=>{var ae;if(!re(He))return;He.preventDefault();const X=[...((ae=He.dataTransfer)==null?void 0:ae.files)??[]];be(),jt(X)};return document.addEventListener("dragenter",Q),document.addEventListener("dragover",xe),document.addEventListener("dragleave",Me),document.addEventListener("drop",st),window.addEventListener("dragend",be),()=>{document.removeEventListener("dragenter",Q),document.removeEventListener("dragover",xe),document.removeEventListener("dragleave",Me),document.removeEventListener("drop",st),window.removeEventListener("dragend",be)}},[fe,jt]);const Ft=async()=>{if(!Ee)return;b(!0);const re=R.trim(),be=D;Ne||(j(""),L([]),K.current&&(K.current.style.height=""));try{Ne?(re==="/model"?Y(Q=>Q+1):await(re==="/compact"?f():p()),j("")):await o(re,be.map(Q=>Q.receipt.id),be.map(Q=>Q.file))}catch{Ne||(j(re),L(be))}finally{b(!1)}},gn=async()=>{if(ze){b(!0);try{await d()}catch{}finally{b(!1)}}};return c.jsxs("div",{className:`${fn.root} ${e?fn.hero:""}`,children:[W&&c.jsx(Fw,{disabled:!fe,labels:{title:fe?_("松开以上传文件","Drop to upload files"):_("当前无法上传文件","Files cannot be uploaded now"),desc:fe?_("最多 20 个文件,每个不超过 20 MB","Up to 20 files, 20 MB each"):void 0}}),c.jsxs("form",{ref:A,className:fn.card,"data-composer-card":!0,onSubmit:re=>{re.preventDefault(),Ft()},children:[$!==null&&c.jsx(Mw,{commands:rt,active:T,onHover:ee,onPick:re=>{Et(re)}}),c.jsx("input",{ref:J,className:"pi-file-input",type:"file",multiple:!0,tabIndex:-1,"aria-label":_("选择要上传的文件","Choose files to upload"),onChange:re=>{jt([...re.target.files??[]]),re.target.value=""}}),D.length>0&&c.jsx("div",{className:"pi-attachment-rail",role:"group","aria-label":_("待发送附件","Pending attachments"),children:D.map(re=>c.jsx(gw,{file:re.file,status:re.status,error:re.error,onRemove:()=>At(re),onRetry:()=>{te(""),L(be=>be.map(Q=>Q.key===re.key?{...Q,status:"uploading",error:void 0}:Q)),Rt(re.key,re.file)}},re.key))}),c.jsx("div",{className:fn.scroll,"data-input-scroll":!0,children:c.jsx("div",{className:fn.grow,children:c.jsx("textarea",{ref:K,className:"pi-editor","aria-label":_("给当前 Pi 会话发送消息","Send a message to the current Pi session"),placeholder:ge?_("先连接模型,再开始对话","Connect a model to start chatting"):N&&x==="ready"&&!ve?_("先选择模型,再开始对话","Choose a model to start chatting"):N?_("给 Pi 发送消息","Message Pi"):_("打开 Pi 中 /web 给出的完整地址","Open the full address provided by /web in Pi"),value:R,onChange:re=>{const be=re.target.value;j(be),/^\/[^\s]*$/.test(be)?(B("slash"),ee(0)):$==="slash"&&B(null),re.target.style.height="auto",re.target.style.height=`${Math.min(re.target.scrollHeight,336)}px`},onPaste:re=>{const be=[...re.clipboardData.files];be.length&&(re.preventDefault(),jt(be))},onKeyDown:re=>{if($!==null){if(re.key==="Escape"){re.preventDefault(),B(null);return}if(re.key==="ArrowDown"||re.key==="ArrowUp"){re.preventDefault(),ee(be=>(be+(re.key==="ArrowDown"?1:-1)+rt.length)%Math.max(rt.length,1));return}if(re.key==="Enter"&&rt[T]){re.preventDefault(),Et(rt[T]);return}}re.key==="Enter"&&!re.shiftKey&&!re.nativeEvent.isComposing&&(re.preventDefault(),Ft())}})})}),c.jsxs("div",{className:fn.row,children:[c.jsxs("div",{className:fn.tools,children:[c.jsx("button",{className:fn.add,type:"button","aria-label":_("添加指令","Add command"),title:_("添加指令","Add command"),"aria-haspopup":"listbox","aria-expanded":$!==null,disabled:!fe,onMouseDown:re=>re.preventDefault(),onClick:()=>{var re;B($===null?"button":null),ee(0),(re=K.current)==null||re.focus()},children:c.jsx(G1,{size:16})}),c.jsx("button",{className:fn.add,type:"button","aria-label":_("添加文件","Add file"),title:_("添加文件","Add file"),disabled:!fe,onClick:()=>{var re;return(re=J.current)==null?void 0:re.click()},children:c.jsx(k5,{size:16})}),c.jsx("span",{className:"pi-input-context",children:_("当前 Pi 会话","Current Pi session")})]}),c.jsxs("div",{className:fn.trailing,children:[ge?c.jsx("button",{className:"pi-model-setup-trigger",type:"button",onClick:v,children:_("配置模型","Set up a model")}):c.jsx(pC,{openSignal:ie,current:(r==null?void 0:r.model)??null,models:y,disabled:!N||!(r!=null&&r.idle),onSelect:C,thinkingLevel:(r==null?void 0:r.thinkingLevel)??null,thinkingLevels:(r==null?void 0:r.thinkingLevels)??[],onSelectThinkingLevel:k}),ze?c.jsx("button",{className:fn.primary,type:"button","aria-label":_("停止运行","Stop running"),onClick:()=>{gn()},children:c.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":"true",children:c.jsx("rect",{x:"3",y:"3",width:"10",height:"10",rx:"3",fill:"currentColor"})})}):c.jsx("button",{className:fn.primary,type:"submit","aria-label":_("发送消息","Send message"),disabled:!Ee,children:c.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":"true",children:c.jsx("path",{d:"M8.3125 0.980183C8.66767 1.0531 8.97902 1.20418 9.2627 1.43233C9.48724 1.61297 9.73029 1.85793 9.97949 2.10714L14.707 6.83468L13.293 8.24874L9 3.95577V15.0417H7V3.95577L2.70703 8.24874L1.29297 6.83468L6.02051 2.10714C6.26971 1.85793 6.51277 1.61297 6.7373 1.43233C6.97662 1.23986 7.28445 1.04402 7.6875 0.980183C7.8973 0.947006 8.1031 0.95516 8.3125 0.980183Z",fill:"currentColor"})})})]})]})]}),Z&&c.jsx("div",{className:"pi-error",role:"alert",children:Z})]})}function Vw({session:e,streaming:r,connection:i,error:o,onSend:s,onLoadImage:u,onUpload:d,onDiscardAttachment:f,onStop:p,onCompact:m,onNewSession:y,commands:x,models:v,modelsStatus:C,onConfigureModels:k,onSetModel:P,onSetThinkingLevel:R}){const[j,V]=E.useState("chat"),[b,$]=E.useState(null),[B,T]=E.useState(null),ee=B&&(e==null?void 0:e.sessionId)===B.sessionId&&e.messages.some(S=>S.role==="user"&&!B.knownIds.has(S.id)&&A3(S.blocks.filter(A=>A.kind==="text").map(A=>A.text).join(`
91
+ `)).text===B.text);E.useEffect(()=>{B&&(ee||e&&e.sessionId!==B.sessionId)&&T(null)},[B,ee,e==null?void 0:e.sessionId]);const ie=B&&!ee&&(e==null?void 0:e.sessionId)===B.sessionId?{id:B.id,role:"user",timestamp:B.timestamp,blocks:[{kind:"text",text:B.text},...B.files.filter(S=>/\.(?:png|jpe?g|webp|gif)$/iu.test(S.name)||/^image\/(?:png|jpeg|webp|gif)$/.test(S.type)).map(()=>({kind:"image",text:""}))],localFiles:B.files}:null,Y=e===null||e.messages.length===0&&r===null&&ie===null,D=async(S,A,K)=>{if(!e)return;const N=`pending-${crypto.randomUUID()}`;T({id:N,sessionId:e.sessionId,text:S,files:K,knownIds:new Set(e.messages.map(ge=>ge.id)),timestamp:new Date().toISOString()});try{await s(S,A)}catch(ge){throw T(ve=>(ve==null?void 0:ve.id)===N?null:ve),ge}},L=E.useRef(null),Z=E.useRef(null),[te,W]=E.useState(0);E.useLayoutEffect(()=>{const S=L.current;if(!S)return;const A=()=>W(S.getBoundingClientRect().width);A();const K=new ResizeObserver(A);return K.observe(S),()=>K.disconnect()},[]),E.useEffect(()=>{!Y&&Z.current&&(Z.current.scrollTop=Z.current.scrollHeight)},[Y,e==null?void 0:e.messages.length,r==null?void 0:r.blocks,ie==null?void 0:ie.id]);const O=(e==null?void 0:e.cwd.split(/[\\/]/).filter(Boolean).at(-1))||_("Pi 工作区","Pi workspace"),I=[...(e==null?void 0:e.messages)??[],...ie?[ie]:[],...r?[r]:[]],J=Ey(I),z=T3(I),ne=S=>({"hero.headline":_("有什么可以帮你?","How can I help?"),"hero.preview":"Pi"})[S]??S;return c.jsxs("div",{ref:L,className:ht.root,"data-phase":Y?"hero":"active",style:{"--piw-conversation-column-width":`${te}px`},children:[e&&!Y&&c.jsxs("header",{className:ht.header,children:[c.jsxs("div",{className:ht.titleRow,children:[c.jsx("div",{className:ht.titleCluster,children:c.jsx("div",{className:ht.crumbs,children:c.jsx("span",{className:`${ht.crumb} ${ht.crumbCurrent}`,children:e.name})})}),c.jsxs("div",{className:ht.headerActions,children:[c.jsx(Q1,{state:i==="connected"?e.idle?"done":"ongoing":"error"}),c.jsx("span",{className:"pi-header-state",children:i==="connected"?e.idle?_("已连接","Connected"):_("运行中","Running"):_("已断开","Disconnected")})]})]}),c.jsxs("div",{className:ht.tabs,role:"tablist","aria-label":_("会话视图","Session views"),children:[c.jsx("button",{className:`${ht.tab} ${j==="chat"?ht.tabActive:""}`,role:"tab","aria-selected":j==="chat",type:"button",onClick:()=>V("chat"),children:_("对话","Chat")}),c.jsx("button",{className:`${ht.tab} ${j==="trajectory"?ht.tabActive:""}`,role:"tab","aria-selected":j==="trajectory",type:"button",onClick:()=>V("trajectory"),children:_("轨迹","Trajectory")})]})]}),c.jsx("div",{className:ht.body,children:c.jsxs("div",{ref:Z,className:ht.scrollBody,"data-conversation-scroll":"",children:[!Y&&c.jsx("div",{className:ht.viewArea,children:j==="chat"?c.jsx("div",{className:n1.root,children:c.jsx("div",{className:n1.scroll,children:c.jsx("div",{className:n1.column,children:c.jsx(c.Fragment,{children:z.map(S=>c.jsx(Bw,{turn:S,results:J,model:(e==null?void 0:e.model)??null,loadImage:u,cwd:e==null?void 0:e.cwd,running:S.messages.some(A=>A.id==="stream"),onInspect:A=>{$(A),V("trajectory")}},S.id))})})})}):c.jsx(Wv,{messages:I,inspectCallId:b})}),c.jsx("div",{className:ht.composerSeat,"data-composer-seat":"",children:c.jsxs("div",{className:`${ht.composerStack} ${Y?ht.composerHero:""}`,children:[Y&&c.jsx(v6,{t:ne,renderSlot:(S,A,K)=>(K==null?void 0:K.fallback)??null}),Y&&c.jsx("div",{className:ht.heroWorkspaceRow,children:c.jsxs("span",{className:bn.workspace,children:[c.jsx(Y1,{size:16}),c.jsx("span",{className:bn.workspaceLabel,children:O})]})}),c.jsx(Hw,{hero:Y,session:e,connection:i,onSend:D,onUpload:d,onDiscardAttachment:f,onStop:p,onCompact:m,onNewSession:y,commands:x,models:v,modelsStatus:C,onConfigureModels:k,onSetModel:P,onSetThinkingLevel:R}),o&&c.jsx("div",{className:"pi-error",role:"alert",children:o})]})})]})})]})}const Uw="_button_cfgyt_4",Ww="_md_cfgyt_24",qw="_sm_cfgyt_30",Zw="_primary_cfgyt_38",Qw="_ghost_cfgyt_47",Gw="_outline_cfgyt_56",Kw="_toolbar_cfgyt_65",Yw="_icon_cfgyt_73",Go={button:Uw,md:Ww,sm:qw,primary:Zw,ghost:Qw,outline:Gw,toolbar:Kw,icon:Yw};function Vr({variant:e="ghost",size:r="md",icon:i,className:o,children:s,...u}){return c.jsxs("button",{type:"button",className:ot(Go.button,Go[e],Go[r],o),...u,children:[i!=null&&c.jsx("span",{className:Go.icon,children:i}),s]})}const Xw="_root_w1urq_2",Jw="_mask_w1urq_14",ek="_dialog_w1urq_22",tk="_content_w1urq_37",nk="_header_w1urq_45",rk="_title_w1urq_53",ik="_close_w1urq_61",lk="_description_w1urq_80",ok="_body_w1urq_89",sk="_footer_w1urq_97",zn={root:Xw,mask:Jw,dialog:ek,content:tk,header:nk,title:rk,close:ik,description:lk,body:ok,footer:sk};function U1({open:e,onClose:r,title:i,closeLabel:o,description:s,children:u,footer:d,className:f,contentClassName:p,headless:m=!1}){return E.useEffect(()=>{if(!e)return;const y=x=>{x.key==="Escape"&&r()};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[e,r]),e?Nl.createPortal(c.jsxs("div",{className:zn.root,role:"presentation",children:[c.jsx("div",{className:zn.mask,"aria-hidden":"true",onClick:r}),c.jsx("div",{className:ot(zn.dialog,f),role:"dialog","aria-modal":"true","aria-label":i,children:m?u:c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:ot(zn.content,p),children:[c.jsxs("div",{className:zn.header,children:[c.jsx("h2",{className:zn.title,children:i}),c.jsx("button",{type:"button",className:zn.close,"aria-label":o,onClick:r,children:c.jsx(ss,{size:14})})]}),s!==void 0&&s!==""&&c.jsx("p",{className:zn.description,children:s}),u!==void 0&&c.jsx("div",{className:zn.body,children:u})]}),d!==void 0&&c.jsx("div",{className:zn.footer,children:d})]})})]}),document.body):null}const ak="_dialog_s0tgk_1",uk="_editorScope_s0tgk_21",ck="_header_s0tgk_26",dk="_title_s0tgk_35",fk="_crumbBar_s0tgk_51",pk="_crumbEditZone_s0tgk_65",hk="_pathInput_s0tgk_67",mk="_millerRow_s0tgk_78",gk="_crumbTrail_s0tgk_91",xk="_crumbSeat_s0tgk_101",yk="_crumb_s0tgk_51",vk="_crumbChevron_s0tgk_128",Ck="_crumbEditGlyph_s0tgk_151",wk="_content_s0tgk_187",kk="_column_s0tgk_186",_k="_divider_s0tgk_216",Sk="_rowSeat_s0tgk_222",bk="_row_s0tgk_222",Ek="_rowSelected_s0tgk_247",jk="_rowIcon_s0tgk_252",Lk="_rowIconSelected_s0tgk_257",Nk="_rowName_s0tgk_262",Ik="_rowChevron_s0tgk_274",Pk="_status_s0tgk_279",Mk="_error_s0tgk_280",Tk="_loadingFloat_s0tgk_192",zk="_footerBar_s0tgk_317",Dk="_showHiddenToggle_s0tgk_333",Rk="_showHiddenToggleActive_s0tgk_357",Ak="_footerGap_s0tgk_361",Fk="_footerAction_s0tgk_365",Ok="_createDialog_s0tgk_370",$k="_createBody_s0tgk_376",Bk="_createTitle_s0tgk_383",Hk="_createIn_s0tgk_391",Vk="_createInput_s0tgk_398",Uk="_createActions_s0tgk_416",De={dialog:ak,editorScope:uk,header:ck,title:dk,crumbBar:fk,crumbEditZone:pk,pathInput:hk,millerRow:mk,crumbTrail:gk,crumbSeat:xk,crumb:yk,crumbChevron:vk,crumbEditGlyph:Ck,content:wk,column:kk,divider:_k,rowSeat:Sk,row:bk,rowSelected:Ek,rowIcon:jk,rowIconSelected:Lk,rowName:Nk,rowChevron:Ik,status:Pk,error:Mk,loadingFloat:Tk,footerBar:zk,showHiddenToggle:Dk,showHiddenToggleActive:Rk,footerGap:Ak,footerAction:Fk,createDialog:Ok,createBody:$k,createTitle:Bk,createIn:Hk,createInput:Vk,createActions:Uk};function Ko(e){if(e!==null&&typeof e=="object"&&"rpcError"in e){const r=e.rpcError;if(r!==null&&typeof r=="object"&&"message"in r&&typeof r.message=="string")return r.message}return e instanceof Error?e.message:String(e)}const Wk=300,qk=200,Zk=250;function E1(e,r){const i=e.crumbs.findIndex(s=>s.path===e.home);if(i===-1)return e.crumbs;const o=e.crumbs.slice(i+1);return[{name:r,path:e.home,hidden:!1},...o]}function ls(e){return e.home.includes("\\")?"\\":"/"}function Qk(e){const r=ls(e);return e.path.endsWith(r)?e.path:`${e.path}${r}`}function Gk(e,r){const i=ls(e)==="\\"?Math.max(r.lastIndexOf("\\"),r.lastIndexOf("/")):r.lastIndexOf("/");return i===-1?null:r.slice(0,i+1)}function ud(e,r,i){const o=Gk(e,r);if(o===null)return{directory:null,tail:null};const s=o===Qk(e)||i!==null&&i.directory===o&&i.landed===e.path;return{directory:o,tail:s?r.slice(o.length):null}}function Kk(e,r,i,o){const s=o===null?"":o.toLowerCase(),u=p=>i||!p.hidden||s.startsWith("."),d=p=>u(p)&&p.name.toLowerCase().startsWith(s),f=s!==""&&e.some(d);return e.filter(p=>p.path===r?!0:f?d(p):i||!p.hidden)}function cd({entries:e,selectedPath:r,busy:i,onPick:o,showHidden:s,filterPrefix:u,pathEditing:d}){const f=Kk(e,r,s,u);return c.jsx("div",{className:De.column,role:"list",children:f.map(p=>{const m=p.path===r;return c.jsx("span",{role:"listitem",className:De.rowSeat,children:c.jsxs("button",{type:"button","aria-current":m||void 0,className:ot(De.row,m&&De.rowSelected),disabled:i,onMouseDown:d?y=>{y.preventDefault()}:void 0,onClick:()=>{o(p)},children:[m?c.jsx(Y1,{size:16,className:De.rowIconSelected}):c.jsx(E5,{size:16,className:De.rowIcon}),c.jsx("span",{className:De.rowName,children:p.name}),c.jsx(es,{size:12,className:De.rowChevron})]})},p.path)})})}function Yk({open:e,listDirectory:r,createDirectory:i,onOpen:o,onClose:s,busy:u,t:d}){var ft,ln;const[f,p]=E.useState(null),[m,y]=E.useState(null),[x,v]=E.useState(null),[C,k]=E.useState(!1),[P,R]=E.useState(!1),[j,V]=E.useState(0),[b,$]=E.useState(null),[B,T]=E.useState(null),[ee,ie]=E.useState(!1),[Y,D]=E.useState(null),[L,Z]=E.useState(!1),[te,W]=E.useState(null),O=E.useRef(0),I=E.useRef(null),J=E.useRef(0),z=E.useRef(null),ne=E.useRef(!1);E.useEffect(()=>()=>{var de;O.current+=1,J.current+=1,(de=I.current)==null||de.abort()},[]);const S={onCompositionStart:()=>{ne.current=!0},onCompositionEnd:()=>{ne.current=!1}},A=E.useCallback(()=>{var de;return(de=I.current)==null||de.abort(),I.current=null,++O.current},[]),K=E.useCallback(()=>{R(!1),V(de=>de+1)},[]),N=E.useCallback(de=>{const Te=A(),Ge=new AbortController;return I.current=Ge,K(),{seq:Te,scan:r(de,Ge.signal)}},[A,K,r]),ge=E.useCallback(de=>{const Te=new AbortController;return I.current=Te,K(),r(de,Te.signal)},[K,r]),ve=E.useRef(!1),fe=E.useRef({parent:null,child:null});E.useEffect(()=>{fe.current={parent:f,child:x}},[f,x]);const Ne=E.useRef(null),Ee=E.useRef(!1),ze=E.useCallback((de,Te)=>{const{seq:Ge,scan:Qe}=N(de);k(!0),Te.announce&&$(null);const Ot=()=>{if(k(!1),Te.closeEditor){T(null);return}$(null),Ee.current=!0};Qe.then(Xe=>{if(Ge!==O.current)return;!Te.closeEditor&&de!==void 0&&(Ne.current={directory:de,landed:Xe.path});let _r=!1;const An=()=>{_r||Ge!==O.current||(_r=!0,p(Xe),y(null),v(null),Ot())};if(E1(Xe,"").length<2){An();return}const Fn=Xe.crumbs.at(-2);if(Fn===void 0){An();return}ge(Fn.path).then(jn=>{if(Ge!==O.current)return;const Il=ls(jn),Si=Sr=>Il==="\\"?Sr.toLowerCase():Sr,bi=jn.entries.find(Sr=>Si(Sr.path)===Si(Xe.path));if(bi===void 0){An();return}_r=!0,p(jn),y(bi),v(Xe),Ot()},()=>{An()}),Te.closeEditor&&window.setTimeout(An,qk)},Xe=>{Ge===O.current&&(k(!1),Te.announce&&$(Ko(Xe)))})},[N,ge]),Ue=E.useCallback(de=>{ze(de,{closeEditor:!0,announce:!0})},[ze]),Oe=E.useRef(!1),rt=E.useRef(!1),Et=E.useRef(null),Rt=E.useRef(null),At=E.useCallback(de=>{const{seq:Te,scan:Ge}=N(de.path);B!==null&&(Oe.current=!0),T(null),y(de),v(null),k(!0),$(null),Ge.then(Qe=>{Te===O.current&&(v(Qe),k(!1))},Qe=>{Te===O.current&&(k(!1),$(Ko(Qe)),y(null),rt.current=!0)})},[N,B]),jt=E.useCallback(de=>{ze(de,{closeEditor:!1,announce:!1})},[ze]),Ft=E.useCallback(()=>{A(),k(!1),T(null),$(null),x===null&&y(null),f===null&&Ue()},[A,x,f,Ue]),gn=E.useCallback(de=>{x!==null&&(p(x),At(de))},[x,At]);E.useEffect(()=>{if(J.current+=1,e){p(null),y(null),v(null),Z(!1),ie(!1),Ue();return}A(),k(!1),$(null),T(null),D(null),W(null),Oe.current=!1,rt.current=!1},[e,Ue,A]);const re=(m==null?void 0:m.path)??(f==null?void 0:f.path)??null,be=(m==null?void 0:m.name)??(f===null?"":((ft=E1(f,d("browser.home")).at(-1))==null?void 0:ft.name)??f.path),Q=()=>{if(re===null||Y===null||L)return;const de=Y;if(de.trim()==="")return;Z(!0),W(null);const Te=J.current;i(re,de).then(Ge=>{if(Te!==J.current)return;Z(!1),D(null);const{seq:Qe,scan:Ot}=N(re);k(!0),$(null),Ot.then(Xe=>{Qe===O.current&&(p(Xe),k(!1),At({name:de,path:Ge,hidden:!1}))},Xe=>{Qe===O.current&&(k(!1),$(Ko(Xe)))})},Ge=>{Te===J.current&&(Z(!1),W(Ko(Ge)))})};E.useEffect(()=>{if(!C){R(!1);return}const de=window.setTimeout(()=>{R(!0)},Wk);return()=>{window.clearTimeout(de)}},[C,j]),E.useEffect(()=>{if(B===null)return;const de=window.setTimeout(()=>{if(ve.current)return;const Te=fe.current.child??fe.current.parent;if(Te===null)return;const{directory:Ge,tail:Qe}=ud(Te,B,Ne.current);Ge===null||Qe!==null||jt(Ge)},Zk);return()=>{window.clearTimeout(de)}},[B,jt]);const xe=x??f,Me=xe===null||B===null?null:ud(xe,B,Ne.current).tail,st=xe===null?[]:E1(xe,d("browser.home")),He=(ln=st.at(-1))==null?void 0:ln.path;E.useEffect(()=>{const de=z.current;de!==null&&(de.scrollLeft=de.scrollWidth)},[He]);const X=E.useRef(null),ae=x==null?void 0:x.path;if(E.useEffect(()=>{const de=X.current;de!==null&&ae!==void 0&&(de.scrollLeft=de.scrollWidth)},[ae]),E.useEffect(()=>{var de;if(Ee.current&&(Ee.current=!1,document.activeElement===document.body&&((de=Et.current)==null||de.focus())),B===null){if(Oe.current){Oe.current=!1,rt.current=!1;const Te=X.current;if(Te===null)return;const Ge=Te.querySelector('button[aria-current="true"]');if(Ge===null)return;Ge.focus();return}if(rt.current){if(rt.current=!1,document.activeElement!==document.body)return;const Te=Rt.current;if(Te===null)return;Te.focus()}}}),!e)return null;const we=m!==null,je=u||Y!==null,Re=B!==null;return c.jsxs(U1,{open:e,onClose:()=>{Y===null&&!u&&s()},title:d("browser.title"),className:ot(De.dialog),headless:!0,children:[c.jsxs("div",{className:De.editorScope,onKeyDown:de=>{de.key!=="Escape"||B===null||(de.stopPropagation(),rt.current=document.activeElement===Et.current,Ft())},onBlur:de=>{if(B===null||!document.hasFocus())return;const Te=de.currentTarget.closest('[role="dialog"]');Te!==null&&(de.relatedTarget instanceof Node&&Te.contains(de.relatedTarget)||(rt.current=!1,Ft()))},children:[c.jsxs("div",{className:De.header,children:[c.jsx("h2",{className:De.title,children:d("browser.title")}),c.jsx("div",{className:De.crumbBar,children:B===null?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:De.crumbTrail,role:"navigation",ref:z,children:st.map((de,Te)=>c.jsxs("span",{className:De.crumbSeat,children:[Te>0&&c.jsx(es,{size:12,className:De.crumbChevron}),c.jsx("button",{type:"button",className:De.crumb,disabled:je,onClick:()=>{Ue(de.path)},children:de.name})]},de.path))}),c.jsx("button",{type:"button",className:De.crumbEditZone,"aria-label":d("browser.editPath"),title:d("browser.editPath"),disabled:je,ref:Rt,onClick:()=>{if(A(),k(!1),ve.current=!1,f===null){T("");return}const de=(m==null?void 0:m.path)??f.path,Te=ls(f);T(de.endsWith(Te)?de:`${de}${Te}`)},children:c.jsx(C5,{size:14,className:De.crumbEditGlyph})})]}):c.jsx("input",{className:De.pathInput,value:B,"aria-label":d("browser.editPath"),autoFocus:!0,ref:Et,disabled:je,onChange:de=>{A(),k(!1),ve.current=!1,T(de.target.value)},...S,onKeyDown:de=>{de.key==="Enter"&&!ne.current&&(de.preventDefault(),B.trim()!==""&&(rt.current=!0,ve.current=!0,Ue(B)))}})})]}),c.jsxs("div",{className:De.content,children:[c.jsxs("div",{className:De.millerRow,ref:X,children:[f!==null&&c.jsx(cd,{entries:f.entries,selectedPath:(m==null?void 0:m.path)??null,busy:je,onPick:At,showHidden:ee,filterPrefix:x===null?Me:null,pathEditing:Re}),we&&c.jsx("span",{className:De.divider}),we&&x!==null&&c.jsx(cd,{entries:x.entries,selectedPath:null,busy:je,onPick:gn,showHidden:ee,filterPrefix:Me,pathEditing:Re})]}),C&&P&&c.jsx("div",{className:ot(De.status,De.loadingFloat),role:"status",children:d("browser.loading")}),((f==null?void 0:f.truncated)===!0||(x==null?void 0:x.truncated)===!0)&&c.jsx("div",{className:De.status,role:"status",children:d("browser.truncated")}),b!==null&&c.jsx("div",{className:De.error,role:"alert",children:b})]}),c.jsxs("div",{className:De.footerBar,children:[c.jsx(Vr,{variant:"outline",icon:c.jsx(G1,{size:14}),disabled:f===null||C||je||Re,onClick:()=>{D(""),W(null)},children:d("browser.newFolder")}),c.jsxs("button",{type:"button",className:ot(De.showHiddenToggle,ee&&De.showHiddenToggleActive),"aria-pressed":ee,disabled:je,onMouseDown:Re?de=>{de.preventDefault()}:void 0,onClick:()=>{ie(de=>!de)},children:[d("browser.showHidden"),ee&&c.jsx(L1,{size:14})]}),c.jsx("span",{className:De.footerGap}),c.jsx(Vr,{variant:"outline",className:ot(De.footerAction),disabled:je,onClick:s,children:d("browser.cancel")}),c.jsx(Vr,{variant:"primary",className:ot(De.footerAction),disabled:re===null||C||je||Re,onClick:()=>{re!==null&&o(re)},children:d("browser.open")})]})]}),c.jsx(U1,{open:Y!==null,onClose:()=>{L||D(null)},title:d("browser.newFolder"),className:ot(De.createDialog),headless:!0,children:c.jsxs("div",{className:De.createBody,children:[c.jsx("h3",{className:De.createTitle,children:d("browser.newFolder")}),c.jsx("p",{className:De.createIn,children:d("browser.createIn",{name:be})}),c.jsx("input",{className:De.createInput,value:Y??"","aria-label":d("browser.folderName"),placeholder:d("browser.untitledFolder"),autoFocus:!0,disabled:L,onChange:de=>{D(de.target.value)},...S,onKeyDown:de=>{de.key==="Enter"&&!ne.current&&(de.preventDefault(),Q()),de.key==="Escape"&&(de.stopPropagation(),L||D(null))}}),te!==null&&c.jsx("div",{className:De.error,role:"alert",children:te}),c.jsxs("div",{className:De.createActions,children:[c.jsx(Vr,{variant:"outline",disabled:L,onClick:()=>{D(null)},children:d("browser.cancel")}),c.jsx(Vr,{variant:"primary",disabled:L||Y===null||Y.trim()==="",onClick:Q,children:d("browser.create")})]})]})})]})}const Xk="_root_x0rn4_1",Jk="_rail_x0rn4_13",e_="_iconButton_x0rn4_17",t_="_sectionHeader_x0rn4_39",n_="_sectionLabel_x0rn4_59",r_="_sectionLabelHidden_x0rn4_76",i_="_searchSlot_x0rn4_85",l_="_searchSlotExpanded_x0rn4_99",o_="_headerActions_x0rn4_104",s_="_headerActionsHidden_x0rn4_120",a_="_search_x0rn4_85",u_="_searchExpanded_x0rn4_155",c_="_searchButton_x0rn4_166",d_="_searchInput_x0rn4_195",f_="_clearButton_x0rn4_220",p_="_listArea_x0rn4_282",h_="_treeBody_x0rn4_302",m_="_wide_x0rn4_323",g_="_list_x0rn4_282",vt={root:Xk,rail:Jk,iconButton:e_,sectionHeader:t_,sectionLabel:n_,sectionLabelHidden:r_,searchSlot:i_,searchSlotExpanded:l_,headerActions:o_,headerActionsHidden:s_,search:a_,searchExpanded:u_,searchButton:c_,searchInput:d_,clearButton:f_,listArea:p_,treeBody:h_,wide:m_,list:g_},x_="_projectRow_1j5ag_1",y_="_sessionRow_1j5ag_2",v_="_selected_1j5ag_18",C_="_title_1j5ag_112",w_="_slot_1j5ag_124",Or={projectRow:x_,sessionRow:y_,selected:v_,title:C_,slot:w_},k_="_group_sxk9x_1",__="_workspaceLine_sxk9x_2",S_="_workspaceButton_sxk9x_3",b_="_active_sxk9x_4",E_="_folder_sxk9x_5",j_="_chevron_sxk9x_6",L_="_chevronOpen_sxk9x_7",N_="_sessionButton_sxk9x_10",I_="_rowAction_sxk9x_11",P_="_error_sxk9x_14",Sn={group:k_,workspaceLine:__,workspaceButton:S_,active:b_,folder:E_,chevron:j_,chevronOpen:L_,sessionButton:N_,rowAction:I_,error:P_},M_=(e,r)=>({"browser.title":_("选择工作区目录","Select workspace directory"),"browser.home":_("主目录","Home"),"browser.newFolder":_("新建文件夹","New folder"),"browser.folderName":_("文件夹名称","Folder name"),"browser.createIn":_('在"{name}"中新建文件夹','Create folder in "{name}"'),"browser.untitledFolder":_("未命名文件夹","Untitled folder"),"browser.create":_("创建","Create"),"browser.cancel":_("取消","Cancel"),"browser.open":_("打开","Open"),"browser.editPath":_("编辑路径","Edit path"),"browser.loading":_("加载中…","Loading…"),"browser.truncated":_("文件夹过多,仅显示开头部分。","Too many folders; only the first few are shown."),"browser.showHidden":_("显示隐藏文件","Show hidden files")}[e]??e).replace(/\{(\w+)\}/g,(o,s)=>(r==null?void 0:r[s])??"");function T_({wide:e,expandSidebar:r,session:i,workspaces:o,onAdd:s,directoryPickerKind:u,pickDirectory:d,listDirectory:f,createDirectory:p,onRemove:m,onSelectSession:y,onNewSession:x}){const[v,C]=E.useState(!1),[k,P]=E.useState(!1),[R,j]=E.useState(""),[V,b]=E.useState(""),[$,B]=E.useState(!1),[T,ee]=E.useState(""),[ie,Y]=E.useState(new Set);E.useEffect(()=>{o.activeId&&Y(O=>O.has(o.activeId)?O:new Set([...O,o.activeId]))},[o.activeId]);const D=E.useRef(null),L=T.trim().toLocaleLowerCase(),Z=async O=>{P(!0),j("");try{await O()}catch(I){j(I instanceof Error?I.message:_("操作失败","Operation failed"))}finally{P(!1)}},te=async O=>{P(!0);try{await s(O,!1),C(!1)}catch(I){C(!1),b(I instanceof Error?I.message:String(I))}finally{P(!1)}},W=async()=>{if(u!==null){if(e||r(),j(""),u==="browse"){C(!0);return}P(!0);try{const O=await d();O!==null&&await te(O)}catch(O){b(O instanceof Error?O.message:String(O))}finally{P(!1)}}};return c.jsxs("div",{className:`${vt.root} ${e?"":vt.rail}`,children:[c.jsxs("div",{className:vt.sectionHeader,children:[e&&c.jsx("span",{className:`${vt.sectionLabel} ${vt.wide} ${$?vt.sectionLabelHidden:""}`,children:_("工作区","Workspaces")}),e&&c.jsx("div",{className:`${vt.searchSlot} ${$?vt.searchSlotExpanded:""}`,children:c.jsxs("div",{className:`${vt.search} ${$?vt.searchExpanded:""}`,onClick:()=>{var O;B(!0),(O=D.current)==null||O.focus()},children:[c.jsx("button",{type:"button",className:vt.searchButton,"aria-label":_("搜索工作区和会话","Search workspaces and sessions"),"aria-expanded":$,onClick:()=>{var O;B(!0),(O=D.current)==null||O.focus()},children:c.jsx(yd,{size:$?11:14})}),c.jsx("input",{ref:D,className:vt.searchInput,type:"search",placeholder:_("搜索工作区和会话","Search workspaces and sessions"),maxLength:120,value:T,tabIndex:$?0:-1,onChange:O=>ee(O.target.value),onKeyDown:O=>{O.key==="Escape"&&(ee(""),B(!1))}}),$&&c.jsx("button",{type:"button",className:vt.clearButton,"aria-label":_("关闭搜索","Close search"),onClick:O=>{O.stopPropagation(),ee(""),B(!1)},children:c.jsx(K1,{})})]})}),c.jsx("div",{className:`${vt.headerActions} ${e&&$?vt.headerActionsHidden:""}`,children:c.jsx("button",{type:"button",className:vt.iconButton,"aria-label":_("添加工作区","Add workspace"),title:_("添加工作区","Add workspace"),disabled:k||u===null,onClick:()=>{W()},children:c.jsx(b5,{size:e?16:18})})})]}),e&&c.jsx("div",{className:vt.listArea,children:c.jsx("div",{className:vt.treeBody,children:c.jsxs("div",{className:vt.list,role:"tree","aria-label":_("工作区","Workspaces"),children:[o.items.filter(O=>!L||O.title.toLocaleLowerCase().includes(L)||O.path.toLocaleLowerCase().includes(L)||o.sessions.some(I=>I.workspaceId===O.id&&I.name.toLocaleLowerCase().includes(L))).map(O=>{const I=O.id===o.activeId,J=ie.has(O.id)||!!L;return c.jsxs("div",{className:Sn.group,role:"group",children:[c.jsxs("div",{className:Sn.workspaceLine,children:[c.jsxs("button",{type:"button",className:`${Or.projectRow} ${Sn.workspaceButton} ${I?Sn.active:""}`,role:"treeitem","aria-expanded":J,title:O.path,disabled:k,onClick:()=>Y(z=>{const ne=new Set(z);return ne.has(O.id)?ne.delete(O.id):ne.add(O.id),ne}),children:[c.jsxs("span",{className:Or.slot,children:[c.jsx("span",{className:Sn.folder,children:c.jsx(Y1,{size:16})}),c.jsx("span",{className:`${Sn.chevron} ${J?Sn.chevronOpen:""}`,children:c.jsx(wl,{size:14})})]}),c.jsx("span",{className:Or.title,children:O.title})]}),c.jsx("button",{type:"button",className:Sn.rowAction,title:_("新建会话","New session"),"aria-label":_(`在 ${O.title} 新建会话`,`Create a session in ${O.title}`),disabled:k,onClick:()=>{Z(()=>x(O.id))},children:c.jsx(G1,{size:16})}),!I&&c.jsx("button",{type:"button",className:Sn.rowAction,title:_("从列表移除工作区","Remove workspace from list"),"aria-label":_(`移除 ${O.title}`,`Remove ${O.title}`),disabled:k,onClick:()=>{Z(()=>m(O.id))},children:"×"})]}),J&&o.sessions.filter(z=>z.workspaceId===O.id&&(!L||O.title.toLocaleLowerCase().includes(L)||O.path.toLocaleLowerCase().includes(L)||z.name.toLocaleLowerCase().includes(L))).map(z=>c.jsxs("button",{type:"button",className:`${Or.sessionRow} ${Sn.sessionButton} ${I&&(i==null?void 0:i.sessionId)===z.id?Or.selected:""}`,role:"treeitem","aria-current":I&&(i==null?void 0:i.sessionId)===z.id?"page":void 0,disabled:k,onClick:()=>{Z(()=>y(O.id,z.id,z.path))},children:[c.jsx("span",{className:Or.slot,children:c.jsx(Q1,{state:(i==null?void 0:i.sessionId)===z.id&&!i.idle?"ongoing":"done"})}),c.jsx("span",{className:Or.title,children:z.name})]},z.id))]},O.id)}),R&&!v&&c.jsx("p",{className:Sn.error,role:"alert",children:R})]})})}),c.jsx(Yk,{open:v,busy:k,listDirectory:f,createDirectory:p,onOpen:O=>{te(O)},onClose:()=>{k||C(!1)},t:M_}),c.jsx(U1,{open:!!V,onClose:()=>b(""),title:_("无法添加工作区","Could not add workspace"),closeLabel:_("关闭","Close"),footer:c.jsxs(c.Fragment,{children:[c.jsx(Vr,{variant:"outline",onClick:()=>b(""),children:_("取消","Cancel")}),c.jsx(Vr,{variant:"primary",onClick:()=>{b(""),W()},children:_("重新选择","Choose again")})]}),children:c.jsx("div",{role:"alert",children:V})})]})}function dd(e){var f;const r=e.trim();if(!r)return;const i=/^(\d+(?:\.\d+)?)([km])?$/i.exec(r);if(!i)return Number.NaN;const o=(f=i[2])==null?void 0:f.toLowerCase(),s=o==="m"?1e6:o==="k"?1e3:1,u=Number(i[1])*s,d=Math.round(u);return Math.abs(u-d)<1e-6?d:u}function fd(e){return e===void 0?"":!Number.isInteger(e)||e<=0?String(e):e%1e6===0?`${e/1e6}M`:e%1e3===0?`${e/1e3}K`:String(e)}function pd({model:e,position:r,onSave:i,onRemove:o,onCancel:s}){var Z;const[u,d]=E.useState(e.id),[f,p]=E.useState(e.name??""),[m,y]=E.useState(fd(e.contextWindow)),[x,v]=E.useState(fd(e.maxTokens)),[C,k]=E.useState((Z=e.input)!=null&&Z.length?e.input:["text"]),[P,R]=E.useState(!e.id),[j,V]=E.useState(!1),[b,$]=E.useState(!1),[B,T]=E.useState(""),ee=!e.id,ie=!ee&&(e.source==="custom"||e.overridden),Y=async()=>{const te=dd(m),W=dd(x);if(!u.trim()||[te,W].some(O=>O!==void 0&&(!Number.isSafeInteger(O)||O<=0))){T(_("请填写模型 ID,并使用正整数或 K/M 单位填写容量。","Enter a model ID and positive token counts, optionally with K/M suffixes."));return}$(!0),T("");try{await i({id:u.trim(),...f.trim()?{name:f.trim()}:{},...te===void 0?{}:{contextWindow:te},...W===void 0?{}:{maxTokens:W},input:C})}catch(O){T(O instanceof Error?O.message:_("保存失败","Could not save"))}finally{$(!1)}},D=async()=>{$(!0),T("");try{await o()}catch(te){T(te instanceof Error?te.message:_("操作失败","Action failed")),V(!1)}finally{$(!1)}},L=te=>{k(W=>{const O=W.includes(te)?W.filter(I=>I!==te):[...W,te];return O.length?O:W})};return c.jsxs("div",{className:"pi-model-entry",children:[c.jsxs("div",{className:"pi-model-row",children:[c.jsx("input",{"aria-label":`${_("模型 ID","Model ID")} ${r}`,placeholder:_("模型 ID","Model ID"),value:u,disabled:b||!ee&&e.source==="builtin",onFocus:()=>R(!0),onChange:te=>d(te.target.value)}),c.jsx("input",{"aria-label":`${_("显示名称","Display name")} ${r}`,placeholder:_("显示名称","Display name"),value:f,disabled:b,onFocus:()=>R(!0),onChange:te=>p(te.target.value)}),c.jsx("button",{type:"button","aria-label":`${_("模型参数","Model settings")} ${r}`,"aria-expanded":P,onClick:()=>R(!P),children:P?"⌄":"›"})]}),P&&c.jsxs("div",{className:"pi-model-details",children:[c.jsxs("label",{children:[_("上下文窗口","Context window"),c.jsx("input",{"aria-label":`${_("上下文窗口","Context window")} ${r}`,inputMode:"decimal",placeholder:"128K",value:m,disabled:b,onChange:te=>y(te.target.value)})]}),c.jsxs("label",{children:[_("最大输出 token 数","Max output tokens"),c.jsx("input",{"aria-label":`${_("最大输出 token 数","Max output tokens")} ${r}`,inputMode:"decimal",placeholder:"16K",value:x,disabled:b,onChange:te=>v(te.target.value)})]}),c.jsxs("fieldset",{className:"pi-model-input-types",children:[c.jsx("legend",{children:_("输入类型","Input types")}),c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:C.includes("text"),disabled:b||C.length===1&&C.includes("text"),onChange:()=>L("text")}),_("文本","Text")]}),c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:C.includes("image"),disabled:b||C.length===1&&C.includes("image"),onChange:()=>L("image")}),_("图片","Image")]})]}),c.jsxs("div",{className:"pi-model-actions",children:[c.jsx("button",{type:"button",disabled:b,onClick:()=>{Y()},children:b?_("保存中…","Saving…"):_("保存模型","Save model")}),ee&&s&&c.jsx("button",{type:"button",disabled:b,onClick:s,children:_("取消","Cancel")}),ie&&c.jsx("button",{type:"button",disabled:b,onClick:()=>V(!j),children:e.source==="custom"?_("移除模型","Remove model"):_("恢复默认","Restore default")})]}),j&&c.jsxs("div",{className:"pi-model-confirm",children:[c.jsx("span",{children:e.source==="custom"?_("从配置中移除这个模型?","Remove this model from configuration?"):_("撤销这个模型的自定义参数?","Discard this model’s custom settings?")}),c.jsx("button",{type:"button",disabled:b,onClick:()=>{D()},children:_("确认","Confirm")}),c.jsx("button",{type:"button",disabled:b,onClick:()=>V(!1),children:_("取消","Cancel")})]}),B&&c.jsx("p",{className:"pi-settings-error",role:"alert",children:B})]})]})}function z_({providerId:e,getModels:r,updateModel:i}){const[o,s]=E.useState(null),[u,d]=E.useState(""),[f,p]=E.useState(""),[m,y]=E.useState(!1),x=async()=>{d("");try{s(await r(e))}catch(k){throw d(k instanceof Error?k.message:_("无法读取模型目录","Could not load model catalog")),k}};E.useEffect(()=>{x().catch(()=>{})},[e]);const v=async k=>{await i(e,k),y(!1),await x().catch(()=>{})},C=(o==null?void 0:o.models.filter(k=>`${k.id} ${k.name??""}`.toLocaleLowerCase().includes(f.toLocaleLowerCase())))??[];return c.jsxs("section",{className:"pi-provider-models","aria-label":_("模型目录","Model catalog"),children:[c.jsxs("div",{className:"pi-provider-models-head",children:[c.jsx("strong",{children:_("模型目录","Model catalog")}),c.jsxs("span",{children:[(o==null?void 0:o.models.length)??0," ",_("个模型","models")]})]}),(o==null?void 0:o.baseUrl)&&c.jsxs("p",{className:"pi-provider-models-endpoint",title:o.baseUrl,children:[_("API 地址","API URL"),": ",o.baseUrl]}),u&&c.jsxs("p",{className:"pi-settings-error",role:"alert",children:[u," ",o&&c.jsx("button",{type:"button",onClick:()=>{x().catch(()=>{})},children:_("重试读取","Retry")})]}),o?c.jsxs(c.Fragment,{children:[o.models.length>5&&c.jsx("input",{className:"pi-model-search",type:"search","aria-label":_("搜索模型","Search models"),placeholder:_("搜索模型","Search models"),value:f,onChange:k=>p(k.target.value)}),c.jsx("div",{className:"pi-model-list",children:C.map((k,P)=>c.jsx(pd,{model:k,position:P+1,onSave:R=>v({action:"save",originalId:k.id,model:R}),onRemove:()=>v({action:"remove",id:k.id})},`${k.id}:${k.name}:${k.contextWindow}:${k.maxTokens}:${k.overridden}`))}),C.length===0&&!m&&c.jsx("p",{className:"pi-provider-models-empty",children:_("没有匹配的模型","No matching models")}),m&&c.jsx(pd,{model:{id:"",source:"custom",overridden:!1},position:o.models.length+1,onSave:k=>v({action:"save",model:k}),onRemove:async()=>y(!1),onCancel:()=>y(!1)},"new"),!m&&c.jsx("button",{type:"button",className:"pi-model-add",onClick:()=>y(!0),children:_("+ 添加模型","+ Add model")})]}):u?c.jsx("button",{type:"button",className:"pi-model-add",onClick:()=>{x().catch(()=>{})},children:_("重试读取","Retry")}):c.jsx("p",{role:"status",children:_("正在读取模型…","Loading models…")})]})}const hd={id:"",name:"",baseUrl:"",api:"openai-completions",modelId:""};function Hr(e){try{const r=new URL(e);return r.protocol==="https:"||r.protocol==="http:"?r.href:null}catch{return null}}function D_(){let e=null;try{return e=window.open("about:blank","_blank"),e&&(e.opener=null,e.document.title=_("正在准备授权页面","Preparing sign-in"),e.document.body.textContent=_("正在准备授权页面…","Preparing sign-in…")),e}catch{return e==null||e.close(),null}}function md({provider:e,configured:r,busy:i,getProviderModels:o,updateProviderModel:s,onConnect:u}){const[d,f]=E.useState(""),[p,m]=E.useState(""),[y,x]=E.useState(""),[v,C]=E.useState(!0),[k,P]=E.useState(!1),[R,j]=E.useState("");E.useEffect(()=>{let b=!0;return C(!0),o(e.id).then($=>{b&&(m($.baseUrl??""),x($.baseUrl??""),C(!1))}).catch($=>{b&&(C(!1),j($ instanceof Error?$.message:_("无法读取 API 地址","Could not load API URL")))}),()=>{b=!1}},[e.id]);const V=async()=>{const b=d.trim(),$=p.trim();if(!(!b&&!r)){if($&&!Hr($)){j(_("请输入有效的 http 或 https 地址。","Enter a valid HTTP or HTTPS URL."));return}P(!0),j("");try{$!==y&&(await s(e.id,{action:"base_url",baseUrl:$||null}),x($)),b&&(f(""),await u(b))}catch(B){j(B instanceof Error?B.message:_("保存失败","Could not save"))}finally{P(!1)}}};return c.jsxs("form",{className:"pi-provider-key-form",onSubmit:b=>{b.preventDefault(),V()},children:[c.jsxs("label",{children:[_("API Key","API key"),c.jsx("input",{type:"password",autoComplete:"off",maxLength:16384,value:d,onChange:b=>f(b.target.value),placeholder:r?_("已配置,输入新值可替换","Configured; enter a new key to replace"):_("输入 API Key","Enter API key")})]}),c.jsxs("details",{className:"pi-provider-advanced",children:[c.jsx("summary",{children:_("自定义设置","Custom settings")}),c.jsxs("label",{children:[_("API 地址(可选)","API URL (optional)"),c.jsx("input",{type:"url",maxLength:2048,value:p,onChange:b=>m(b.target.value),placeholder:_("使用提供方默认地址","Use provider default URL")})]})]}),c.jsx("button",{type:"submit",disabled:i||k||v||!d.trim()&&(p.trim()===y||!r),children:k?_("保存中…","Saving…"):r?_("保存","Save"):_("连接","Connect")}),R&&c.jsx("p",{className:"pi-settings-error",role:"alert",children:R})]})}function R_({setupMode:e=!1,onReturnToConversation:r,getProviders:i,getProviderModels:o,updateProviderModel:s,logoutProvider:u,addCustomProvider:d,startLogin:f,getLogin:p,getActiveLogin:m,respondLogin:y,cancelLogin:x,refreshModels:v}){var Et,Rt,At,jt,Ft,gn,re,be;const[C,k]=E.useState([]),[P,R]=E.useState(!1),[j,V]=E.useState(e?"builtin":null),[b,$]=E.useState(""),[B,T]=E.useState(null),[ee,ie]=E.useState(null),[Y,D]=E.useState(hd),[L,Z]=E.useState(null),[te,W]=E.useState(""),[O,I]=E.useState(""),[J,z]=E.useState(!1),ne=E.useRef(null);E.useEffect(()=>{e&&V(Q=>Q??"builtin")},[e]),E.useEffect(()=>{let Q=!0;return m().then(xe=>{Q&&xe&&Z(Me=>Me??xe)}).catch(()=>{}),()=>{var xe,Me;Q=!1,(Me=(xe=ne.current)==null?void 0:xe.popup)==null||Me.close()}},[]);const S=async()=>{k(await i()),R(!0)},A=async Q=>{var st,He,X,ae;const xe=ne.current,Me=Q.authorization??(((st=Q.event)==null?void 0:st.type)==="auth_url"||((He=Q.event)==null?void 0:He.type)==="device_code"?Q.event:void 0);if((xe==null?void 0:xe.id)===Q.id&&Me){const we=Hr(Me.type==="auth_url"?Me.url:Me.verificationUri);if(we){try{xe.popup&&!xe.popup.closed?xe.popup.location.replace(we):window.open(we,"_blank","noopener,noreferrer")}catch{(X=xe.popup)==null||X.close()}ne.current=null}}(xe==null?void 0:xe.id)===Q.id&&(Q.status==="done"||Q.status==="error"||Q.status==="cancelled")&&((ae=xe.popup)==null||ae.close(),ne.current=null),Z(Q),Q.status==="done"&&(V(null),T(null),await Promise.all([S(),v()]))};E.useEffect(()=>{S().catch(Q=>{R(!0),I(Q instanceof Error?Q.message:_("无法读取模型提供方","Could not load model providers"))})},[]),E.useEffect(()=>{if(!L||L.status==="done"||L.status==="error"||L.status==="cancelled")return;let Q=!0;const xe=window.setInterval(()=>{p(L.id).then(async Me=>{Q&&await A(Me)}).catch(Me=>{Q&&I(Me instanceof Error?Me.message:_("登录状态不可用","Login status is unavailable"))})},700);return()=>{Q=!1,window.clearInterval(xe)}},[L==null?void 0:L.id,L==null?void 0:L.status]);const K=J||(L==null?void 0:L.status)==="running"||(L==null?void 0:L.status)==="waiting",N=(Et=C.find(Q=>Q.id===(L==null?void 0:L.providerId)))==null?void 0:Et.name,ge=C.filter(Q=>Q.configured),ve=C.filter(Q=>!Q.configured&&Q.methods.length>0),fe=ve.find(Q=>Q.id===b)??(e?ve.find(Q=>Q.id==="openai-codex")??ve.find(Q=>Q.methods.includes("oauth")):void 0)??ve.find(Q=>Q.id==="openai")??ve[0],Ne=async(Q,xe,Me)=>{var st,He;ne.current=xe==="oauth"?{id:null,popup:D_()}:null,z(!0),I(""),W("");try{const{id:X}=await f(Q,xe,Me);ne.current&&(ne.current.id=X),await A(await p(X))}catch(X){(He=(st=ne.current)==null?void 0:st.popup)==null||He.close(),ne.current=null,I(X instanceof Error?X.message:_("无法开始登录","Could not start sign-in")),L||m().then(ae=>{ae&&Z(ae)}).catch(()=>{})}finally{z(!1)}},Ee=async Q=>{if(L){z(!0),I("");try{await y(L.id,Q),W(""),await A(await p(L.id))}catch(xe){I(xe instanceof Error?xe.message:_("提交失败","Submission failed"))}finally{z(!1)}}},ze=async()=>{z(!0),I("");try{await d(Y);const Q=Y.id;await S(),$(Q),V("builtin"),D(hd)}catch(Q){I(Q instanceof Error?Q.message:_("无法添加自定义提供方","Could not add custom provider"))}finally{z(!1)}},Ue=async Q=>{z(!0),I("");try{await u(Q),await S(),ie(null),T(null)}catch(xe){I(xe instanceof Error?xe.message:_("移除认证失败","Could not remove credentials"))}finally{z(!1)}},Oe=(L==null?void 0:L.authorization)??(((Rt=L==null?void 0:L.event)==null?void 0:Rt.type)==="auth_url"||((At=L==null?void 0:L.event)==null?void 0:At.type)==="device_code"?L.event:void 0),rt=(L==null?void 0:L.status)==="waiting"&&L.prompt&&L.prompt.type!=="select"&&c.jsxs("form",{onSubmit:Q=>{Q.preventDefault(),te.trim()&&Ee(te.trim())},children:[c.jsx("label",{htmlFor:"pi-provider-answer",children:L.prompt.message}),c.jsxs("div",{children:[c.jsx("input",{id:"pi-provider-answer",type:L.prompt.type==="secret"?"password":"text",autoComplete:"off",placeholder:L.prompt.placeholder,value:te,onChange:Q=>W(Q.target.value)}),c.jsx("button",{type:"submit",disabled:J||!te.trim(),children:_("继续","Continue")})]})]});return c.jsxs("div",{className:"pi-settings-content",children:[c.jsx("h2",{children:e?_("先连接一个模型","Connect a model to begin"):_("模型","Models")}),c.jsx("p",{className:"pi-settings-intro",children:e?_("当前没有可用模型。选择提供方完成认证,再在会话中选择模型;也可以添加自定义提供方。","No models are available yet. Sign in to a provider, then choose a model in the conversation. You can also add a custom provider."):_("已接入的提供方显示在这里。添加新的提供方后,即可在会话中选择其模型。","Connected providers appear here. Add a provider to use its models in a conversation.")}),O&&c.jsx("p",{className:"pi-settings-error",role:"alert",children:O}),L&&c.jsxs("section",{className:"pi-provider-flow","aria-label":_("模型登录","Model sign-in"),children:[c.jsxs("div",{className:"pi-provider-flow-head",children:[c.jsxs("strong",{children:[_("模型登录","Model sign-in"),N?` · ${N}`:""]}),c.jsx("button",{type:"button",onClick:()=>{var Q,xe;((Q=ne.current)==null?void 0:Q.id)===L.id&&((xe=ne.current.popup)==null||xe.close(),ne.current=null),L.status==="running"||L.status==="waiting"?x(L.id).finally(()=>Z(null)):Z(null)},children:L.status==="running"||L.status==="waiting"?_("取消","Cancel"):_("关闭","Close")})]}),L.status==="done"&&c.jsxs("div",{role:"status",children:[c.jsx("p",{children:_("已连接。现在可以在会话中选择该提供方的模型。","Connected. You can now select this provider’s models in a conversation.")}),c.jsx("button",{type:"button",onClick:r,children:_("返回会话选择模型","Return to conversation and choose a model")})]}),L.status==="error"&&c.jsx("p",{role:"alert",children:L.error}),L.status==="running"&&!Oe&&c.jsx("p",{role:"status",children:_("正在等待提供方响应…","Waiting for the provider…")}),((jt=L.event)==null?void 0:jt.type)==="info"&&c.jsxs("p",{children:[L.event.message,(Ft=L.event.links)==null?void 0:Ft.map(Q=>{const xe=Hr(Q.url);return xe&&c.jsx("a",{href:xe,target:"_blank",rel:"noopener noreferrer",children:Q.label??_("打开链接","Open link")},xe)})]}),((gn=L.event)==null?void 0:gn.type)==="progress"&&(Oe==null?void 0:Oe.type)!=="auth_url"&&c.jsx("p",{children:L.event.message}),(Oe==null?void 0:Oe.type)==="auth_url"&&c.jsxs("p",{role:"status",children:[_("请在授权页面完成登录;若页面未自动打开,请点击右侧链接。完成后这里会自动更新。","Complete sign-in on the authorization page. If it did not open, use the link. This page will update automatically.")," ",Hr(Oe.url)&&c.jsx("a",{href:Hr(Oe.url),target:"_blank",rel:"noopener noreferrer",children:_("打开授权页面","Open authorization page")})]}),(Oe==null?void 0:Oe.type)==="device_code"&&c.jsxs("p",{children:[_("在","On the")," ",Hr(Oe.verificationUri)&&c.jsx("a",{href:Hr(Oe.verificationUri),target:"_blank",rel:"noopener noreferrer",children:_("验证页面","verification page")})," ",_("输入代码","enter code")," ",c.jsx("code",{children:Oe.userCode})]}),L.status==="waiting"&&((re=L.prompt)==null?void 0:re.type)==="select"&&c.jsxs("div",{className:"pi-provider-options",children:[c.jsx("p",{children:L.prompt.message}),L.prompt.options.map(Q=>c.jsxs("button",{type:"button",disabled:J,onClick:()=>{Ee(Q.id)},children:[Q.label,Q.description&&c.jsx("small",{children:Q.description})]},Q.id))]}),rt&&((be=L.prompt)==null?void 0:be.type)==="manual_code"&&(Oe==null?void 0:Oe.type)==="auth_url"?c.jsxs("details",{className:"pi-provider-manual-login",children:[c.jsx("summary",{children:_("无法自动完成?手动输入授权码","Can't finish automatically? Enter an authorization code")}),rt]}):rt]}),c.jsxs("section",{className:"pi-provider-list","aria-label":_("已接入的模型提供方","Connected model providers"),children:[ge.map(Q=>c.jsxs("div",{className:"pi-provider-card",children:[c.jsxs("div",{className:"pi-provider-card-head",children:[c.jsxs("span",{className:"pi-provider-name",children:[Q.name,c.jsx("span",{className:"pi-provider-dot",role:"img","aria-label":_("已配置认证","Authentication configured")}),c.jsx("small",{children:_("已配置","Configured")})]}),c.jsx("button",{type:"button",disabled:K,"aria-label":`${_("编辑","Edit")} ${Q.name}`,"aria-expanded":B===Q.id,onClick:()=>{V(null),T(B===Q.id?null:Q.id)},children:_("编辑","Edit")})]}),B===Q.id&&c.jsxs("div",{className:"pi-provider-editor",children:[Q.methods.includes("api_key")&&c.jsx(md,{provider:Q,configured:!0,busy:!!K,getProviderModels:o,updateProviderModel:s,onConnect:xe=>Ne(Q.id,"api_key",xe)},Q.id),Q.methods.includes("oauth")&&c.jsx("div",{className:"pi-provider-methods",children:c.jsx("button",{type:"button",disabled:!!K,onClick:()=>{Ne(Q.id,"oauth")},children:_("网页登录","Browser sign-in")})}),c.jsx(z_,{providerId:Q.id,getModels:o,updateModel:s}),Q.storedCredential&&c.jsx("div",{className:"pi-provider-credential-action",children:c.jsx("button",{type:"button",disabled:K,onClick:()=>ie(Q.id),children:_("移除认证","Remove credentials")})}),!Q.storedCredential&&c.jsx("p",{className:"pi-provider-auth-source",children:_("当前认证来自环境变量、模型配置或其他运行时来源,请在对应位置移除。","Authentication comes from an environment variable, model configuration, or another runtime source. Remove it at its source.")}),ee===Q.id&&c.jsxs("div",{className:"pi-model-confirm",role:"group","aria-label":_("确认移除认证","Confirm credential removal"),children:[c.jsx("span",{children:_("移除本机保存的认证后,该模型可能无法继续使用。","Removing stored credentials may make this provider unavailable.")}),c.jsx("button",{type:"button",disabled:J,onClick:()=>{Ue(Q.id)},children:_("确认移除","Remove")}),c.jsx("button",{type:"button",disabled:J,onClick:()=>ie(null),children:_("取消","Cancel")})]})]})]},Q.id)),P&&ge.length===0&&c.jsx("p",{className:"pi-provider-empty",children:_("尚未接入提供方","No providers connected yet")}),!P&&c.jsx("p",{role:"status",children:_("正在读取模型提供方…","Loading model providers…")})]}),j==="builtin"&&c.jsxs("section",{className:"pi-provider-add-card","aria-label":_("添加提供方","Add provider"),children:[c.jsxs("div",{className:"pi-provider-flow-head",children:[c.jsx("strong",{children:_("添加提供方","Add provider")}),c.jsx("button",{type:"button",onClick:()=>V(null),children:_("关闭","Close")})]}),fe?c.jsxs(c.Fragment,{children:[c.jsx("label",{htmlFor:"pi-provider-select",children:_("提供方","Provider")}),c.jsx("select",{id:"pi-provider-select",value:fe.id,onChange:Q=>$(Q.target.value),children:ve.map(Q=>c.jsx("option",{value:Q.id,children:Q.name},Q.id))}),fe.methods.includes("api_key")&&c.jsx(md,{provider:fe,configured:!1,busy:!!K,getProviderModels:o,updateProviderModel:s,onConnect:Q=>Ne(fe.id,"api_key",Q)},fe.id),fe.methods.includes("oauth")&&c.jsx("div",{className:"pi-provider-methods",children:c.jsx("button",{type:"button",disabled:!!K,onClick:()=>{Ne(fe.id,"oauth")},children:_("网页登录","Browser sign-in")})}),c.jsx("p",{children:_("认证完成后,可在提供方的“编辑”中调整模型目录。","After sign-in, open the provider’s Edit panel to adjust its model catalog.")})]}):c.jsx("p",{children:_("没有可添加的提供方。","No providers can be added.")})]}),j==="custom"&&c.jsxs("section",{className:"pi-provider-add-card","aria-label":_("添加自定义提供方","Add custom provider"),children:[c.jsxs("div",{className:"pi-provider-flow-head",children:[c.jsx("strong",{children:_("添加自定义提供方","Add custom provider")}),c.jsx("button",{type:"button",onClick:()=>V(null),children:_("关闭","Close")})]}),c.jsx("p",{children:_("适用于兼容 Pi 已支持协议的模型服务。保存后再添加 API Key;密钥不会写入 models.json。","For model services compatible with Pi’s supported protocols. Add an API key after saving; it will not be written to models.json.")}),c.jsxs("form",{className:"pi-provider-custom-form",onSubmit:Q=>{Q.preventDefault(),ze()},children:[c.jsxs("label",{children:[_("名称","Name"),c.jsx("input",{required:!0,maxLength:100,value:Y.name,onChange:Q=>D({...Y,name:Q.target.value}),placeholder:_("我的模型服务","My model service")})]}),c.jsxs("label",{children:[_("提供方 ID","Provider ID"),c.jsx("input",{required:!0,maxLength:64,value:Y.id,onChange:Q=>D({...Y,id:Q.target.value}),placeholder:"my-provider"})]}),c.jsxs("label",{children:[_("接口地址","API URL"),c.jsx("input",{required:!0,type:"url",maxLength:2048,value:Y.baseUrl,onChange:Q=>D({...Y,baseUrl:Q.target.value}),placeholder:"https://api.example.com/v1"})]}),c.jsxs("label",{children:[_("接口协议","API protocol"),c.jsxs("select",{value:Y.api,onChange:Q=>D({...Y,api:Q.target.value}),children:[c.jsx("option",{value:"openai-completions",children:"OpenAI Chat Completions"}),c.jsx("option",{value:"openai-responses",children:"OpenAI Responses"}),c.jsx("option",{value:"anthropic-messages",children:"Anthropic Messages"})]})]}),c.jsxs("label",{children:[_("模型 ID","Model ID"),c.jsx("input",{required:!0,maxLength:200,value:Y.modelId,onChange:Q=>D({...Y,modelId:Q.target.value}),placeholder:"model-name"})]}),c.jsx("button",{type:"submit",disabled:J,children:_("保存并继续","Save and continue")})]})]}),!j&&c.jsxs("div",{className:"pi-provider-add-actions",children:[c.jsx("button",{type:"button",disabled:!P||ve.length===0||K,onClick:()=>{T(null),V("builtin"),$("")},children:_("+ 添加提供方","+ Add provider")}),c.jsx("button",{type:"button",disabled:K,onClick:()=>{T(null),V("custom")},children:_("+ 添加自定义提供方","+ Add custom provider")})]})]})}const yu="pi-web-theme",os=new Set,F3=window.matchMedia("(prefers-color-scheme: dark)");let bl=O3();function O3(){try{const e=localStorage.getItem(yu);if(e==="light"||e==="dark"||e==="system")return e}catch{}return"system"}function Xo(){document.body.toggleAttribute("data-ds-dark-theme",bl==="dark"||bl==="system"&&F3.matches)}function A_(){Xo(),F3.addEventListener("change",Xo),window.addEventListener("storage",e=>{e.key===yu&&(bl=O3(),Xo(),os.forEach(r=>r()))})}function F_(e){bl=e;try{localStorage.setItem(yu,e)}catch{}Xo(),os.forEach(r=>r())}function O_(){return E.useSyncExternalStore(e=>(os.add(e),()=>{os.delete(e)}),()=>bl)}const $_="_group_8jvbt_4",B_="_title_8jvbt_12",H_="_cubeRow_8jvbt_19",V_="_themeCube_8jvbt_29",U_="_selected_8jvbt_48",gl={group:$_,title:B_,cubeRow:H_,themeCube:V_,selected:U_};function W_(){const e=O_(),r=kr(),i=[{id:"light",label:r==="zh"?"浅色":"Light",Icon:j5},{id:"dark",label:r==="zh"?"深色":"Dark",Icon:L5},{id:"system",label:r==="zh"?"跟随系统":"System",Icon:N5}];return c.jsxs("div",{className:gl.group,children:[c.jsx("div",{className:gl.title,children:r==="zh"?"外观":"Appearance"}),c.jsx("div",{className:gl.cubeRow,children:i.map(({id:o,label:s,Icon:u})=>c.jsxs("button",{type:"button",className:ot(gl.themeCube,e===o&&gl.selected),"aria-pressed":e===o,onClick:()=>F_(o),children:[c.jsx(u,{}),s]},o))})]})}const q_="_row_14tot_1",Z_="_title_14tot_9",Q_="_selectorWrap_14tot_17",G_="_selector_14tot_17",K_="_option_14tot_37",Y_="_chevron_14tot_38",X_="_menu_14tot_40",$r={row:q_,title:Z_,selectorWrap:Q_,selector:G_,option:K_,chevron:Y_,menu:X_},xi=[{id:"zh",label:"中文"},{id:"en",label:"English"}];function J_(){var f;const e=kr(),[r,i]=E.useState(!1),o=E.useRef(null),s=E.useRef(null),u=E.useRef(null);E.useEffect(()=>{var y;if(!r)return;(y=u.current)==null||y.focus();const p=x=>{var v;(v=o.current)!=null&&v.contains(x.target)||i(!1)},m=x=>{var v;x.key==="Escape"&&(x.preventDefault(),x.stopImmediatePropagation(),i(!1),(v=s.current)==null||v.focus())};return document.addEventListener("pointerdown",p),document.addEventListener("keydown",m),()=>{document.removeEventListener("pointerdown",p),document.removeEventListener("keydown",m)}},[r]);const d=p=>{var m;zg(p),i(!1),(m=s.current)==null||m.focus()};return c.jsxs("div",{className:$r.row,ref:o,children:[c.jsx("div",{className:$r.title,children:e==="zh"?"语言":"Language"}),c.jsxs("div",{className:$r.selectorWrap,children:[c.jsxs("button",{ref:s,type:"button",className:$r.selector,"aria-label":e==="zh"?"语言":"Language","aria-haspopup":"menu","aria-expanded":r,onClick:()=>i(p=>!p),children:[(f=xi.find(p=>p.id===e))==null?void 0:f.label,c.jsx("svg",{className:$r.chevron,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:c.jsx("path",{d:"m3.5 5.25 3.5 3.5 3.5-3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),r&&c.jsx("div",{className:$r.menu,role:"menu","aria-label":e==="zh"?"选择语言":"Choose language",onKeyDown:p=>{var x,v;if(p.key!=="ArrowDown"&&p.key!=="ArrowUp")return;p.preventDefault();const m=xi.findIndex(C=>{var k;return C.id===((k=document.activeElement)==null?void 0:k.dataset.locale)}),y=xi[(m+(p.key==="ArrowDown"?1:xi.length-1))%xi.length];(v=(x=o.current)==null?void 0:x.querySelector(`[data-locale="${y.id}"]`))==null||v.focus()},children:xi.map(p=>c.jsxs("button",{ref:p.id===e?u:void 0,type:"button",role:"menuitemradio","aria-checked":p.id===e,"data-locale":p.id,className:$r.option,onClick:()=>d(p.id),children:[c.jsx("span",{children:p.label}),p.id===e&&c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:c.jsx("path",{d:"m3 8 3.2 3.2L13 4.5",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})]},p.id))})]})]})}const eS="_overlay_f00qz_61",tS="_mask_f00qz_70",nS="_panel_f00qz_83",rS="_nav_f00qz_105",iS="_navTitle_f00qz_116",lS="_navList_f00qz_125",oS="_navCell_f00qz_133",sS="_active_f00qz_156",aS="_navIcon_f00qz_160",uS="_navLabel_f00qz_164",cS="_content_f00qz_173",dS="_header_f00qz_181",fS="_actions_f00qz_192",pS="_close_f00qz_202",hS="_options_f00qz_82",Ct={overlay:eS,mask:tS,panel:nS,nav:rS,navTitle:iS,navList:lS,navCell:oS,active:sS,navIcon:aS,navLabel:uS,content:cS,header:dS,actions:fS,close:pS,options:hS};function mS(e){return e==="general"?c.jsx(vd,{className:Ct.navIcon,size:16}):e==="models"?c.jsx(Cd,{className:Ct.navIcon,size:16}):e==="packages"?c.jsx(P5,{className:Ct.navIcon,size:16}):e==="extensions"?c.jsx(S5,{className:Ct.navIcon,size:16}):c.jsx(I5,{className:Ct.navIcon,size:16})}function gS({title:e,sections:r,activeId:i,onSelect:o,onClose:s,children:u}){const d=kr(),f=E.useId(),p=E.useRef(null);return E.useEffect(()=>{var y;(y=p.current)==null||y.focus();const m=x=>{x.key==="Escape"&&!x.defaultPrevented&&!(x.target instanceof Element&&x.target.closest('[role="menu"]'))&&s()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[s]),c.jsxs("div",{className:Ct.overlay,role:"presentation",children:[c.jsx("div",{className:Ct.mask,"aria-hidden":"true",onClick:s}),c.jsxs("div",{className:Ct.panel,role:"dialog","aria-modal":"true","aria-labelledby":f,children:[c.jsxs("nav",{className:Ct.nav,"aria-label":d==="zh"?"Pi 设置分类":"Pi settings sections",children:[c.jsx("div",{className:Ct.navTitle,id:f,children:e}),c.jsx("div",{className:Ct.navList,children:r.map(m=>c.jsxs("button",{type:"button",className:`${Ct.navCell} ${i===m.id?Ct.active:""}`,"aria-current":i===m.id?"true":void 0,onClick:()=>o(m.id),children:[mS(m.id),c.jsx("span",{className:Ct.navLabel,children:m.label})]},m.id))})]}),c.jsxs("div",{className:Ct.content,children:[c.jsxs("header",{className:Ct.header,children:[c.jsx("div",{className:Ct.actions}),c.jsx("button",{ref:p,className:Ct.close,type:"button",onClick:s,"aria-label":d==="zh"?"关闭 Pi 设置":"Close Pi settings",children:c.jsx(ss,{size:14})})]}),c.jsx("div",{className:Ct.options,children:u})]})]})]})}function yi(e){return/^(?:npm:|git:|https?:\/\/|ssh:\/\/|git@)/i.test(e.trim())}function xS(e){var J;const r=kr(),i=(z,ne)=>L3(r,z,ne),o=[{kind:"packages",title:i("包与扩展","Packages & extensions"),hint:i("包可以包含扩展和技能;本地扩展也可以单独加载。","Packages can contain extensions and skills; local extensions can also be loaded separately."),placeholder:i("npm 包名、Git 地址或本地目录","npm package, Git URL, or local directory")},{kind:"skills",title:i("技能","Skills"),hint:i("Pi 已发现和加载的技能。","Skills discovered and loaded by Pi."),placeholder:i("SKILL.md 文件或目录路径","SKILL.md file or directory path")}],s=[{id:"general",label:i("通用设置","General")},{id:"models",label:i("模型","Models")},...o.map(({kind:z,title:ne})=>({id:z,label:z==="packages"?i("包与扩展","Packages"):ne}))],{onBack:u,getConfig:d,updateConfig:f}=e,[p,m]=E.useState(null),[y,x]=E.useState({packages:"",extensions:"",skills:""}),[v,C]=E.useState(e.setupMode?"models":"general"),[k,P]=E.useState(!1),[R,j]=E.useState(!0),[V,b]=E.useState("");E.useEffect(()=>{e.setupMode&&C("models")},[e.setupMode]),E.useEffect(()=>{let z=!0;return d().then(ne=>{z&&m(ne)}).catch(ne=>{z&&b(ne instanceof Error?ne.message:i("无法读取 Pi 设置","Could not load Pi settings"))}).finally(()=>{z&&j(!1)}),()=>{z=!1}},[]);const $=async()=>{j(!0),b("");try{m(await d())}catch(z){b(z instanceof Error?z.message:i("无法读取 Pi 设置","Could not load Pi settings"))}finally{j(!1)}},B=async(z,ne,S)=>{P(!0),b("");try{m(await f(z,"global",ne,S)),ne==="add"&&x(A=>({...A,[z]:""}))}catch(A){b(A instanceof Error?A.message:i("保存失败","Save failed"))}finally{P(!1)}},T=o.find(({kind:z})=>z===v),ee=T?(p==null?void 0:p.global[T.kind])??[]:[],ie=T?((J=p==null?void 0:p.installed)==null?void 0:J[T.kind])??[]:[],Y=T?y[T.kind].trim():"",D=(T==null?void 0:T.kind)!=="packages"&&yi(Y),L=new Set((p==null?void 0:p.installed.packages.map(z=>z.source))??[]),Z=(p==null?void 0:p.installed.extensions.filter(z=>!L.has(z.source)))??[],te=(p==null?void 0:p.global.packages.filter(z=>!L.has(z)))??[],W=y.extensions.trim(),O=yi(W),I=z=>{x(ne=>({...ne,packages:z})),C("packages"),b("")};return c.jsxs(gS,{title:i("Pi 设置","Pi Settings"),sections:s,activeId:v,onSelect:z=>{C(z),b("")},onClose:u,children:[v==="general"&&c.jsxs("div",{className:"pi-settings-content",children:[c.jsx("h2",{children:i("通用设置","General")}),c.jsx("p",{className:"pi-settings-intro",children:i("调整网页的显示方式。","Choose how the web interface appears.")}),c.jsxs("div",{className:"pi-settings-general",children:[c.jsx(J_,{}),c.jsx(W_,{})]})]}),v==="models"&&c.jsx(R_,{setupMode:e.setupMode,onReturnToConversation:u,getProviders:e.getProviders,getProviderModels:e.getProviderModels,updateProviderModel:e.updateProviderModel,logoutProvider:e.logoutProvider,addCustomProvider:e.addCustomProvider,startLogin:e.startProviderLogin,getLogin:e.getProviderLogin,getActiveLogin:e.getActiveProviderLogin,respondLogin:e.respondProviderLogin,cancelLogin:e.cancelProviderLogin,refreshModels:e.refreshModels}),T&&c.jsxs("div",{className:"pi-settings-content",children:[c.jsx("h2",{children:T.title}),c.jsxs("p",{className:"pi-settings-intro",children:[T.hint," ",i("添加或移除后会重新加载 Pi 资源。","Pi resources reload after you add or remove one.")]}),V&&c.jsx("p",{className:"pi-settings-error",role:"alert",children:V}),p?c.jsxs(c.Fragment,{children:[c.jsxs("section",{className:"pi-settings-section","aria-label":`${i("已发现","Discovered ")}${T.title}`,children:[c.jsxs("h3",{children:[T.kind==="packages"?i("已安装的包","Installed packages"):i("已发现的技能","Discovered skills")," ",c.jsx("span",{children:ie.length})]}),c.jsx("ul",{children:ie.length?ie.map(z=>{const ne=T.kind==="packages"?p.installed.extensions.filter(S=>S.source===z.source):[];return c.jsxs("li",{className:"pi-resource-item",children:[c.jsxs("div",{className:"pi-resource-main",children:[c.jsx("strong",{title:z.name,children:z.name}),c.jsx("small",{title:z.path||z.source,children:z.path||z.source}),ne.length>0&&c.jsxs("div",{className:"pi-package-contents",children:[c.jsx("span",{children:i("包含扩展","Includes extensions")}),ne.map(S=>c.jsx("span",{title:S.path,children:S.name},S.path))]})]}),c.jsxs("div",{className:"pi-resource-actions",children:[c.jsxs("span",{className:"pi-resource-meta",children:[z.enabled?i("已启用","Enabled"):i("已停用","Disabled")," · ",z.scope==="project"?i("项目","Project"):z.scope==="user"?i("用户","User"):i("临时","Temporary")]}),T.kind==="packages"&&p.global.packages.includes(z.source)&&c.jsx("button",{type:"button",disabled:k,onClick:()=>{B("packages","remove",z.source)},children:i("移除","Remove")})]})]},`${z.path}:${z.source}`)}):c.jsxs("li",{className:"pi-settings-empty",children:[i("未发现","No "),T.title]})})]}),T.kind==="packages"&&c.jsxs("section",{className:"pi-settings-section","aria-label":i("独立扩展","Standalone extensions"),children:[c.jsxs("h3",{children:[i("独立扩展","Standalone extensions")," ",c.jsx("span",{children:Z.length})]}),c.jsx("ul",{children:Z.length?Z.map(z=>c.jsxs("li",{className:"pi-resource-item",children:[c.jsxs("div",{className:"pi-resource-main",children:[c.jsx("strong",{title:z.name,children:z.name}),c.jsx("small",{title:z.path,children:z.path})]}),c.jsxs("span",{className:"pi-resource-meta",children:[z.enabled?i("已启用","Enabled"):i("已停用","Disabled")," · ",z.scope==="project"?i("项目","Project"):z.scope==="user"?i("用户","User"):i("临时","Temporary")]})]},z.path)):c.jsx("li",{className:"pi-settings-empty",children:i("未发现独立扩展","No standalone extensions found")})})]}),c.jsxs("section",{className:"pi-settings-section","aria-label":`${i("手动配置","Configure ")}${T.title}`,children:[c.jsx("h3",{children:T.kind==="packages"?i("添加包","Add package"):i("手动配置技能","Configure skills manually")}),(T.kind==="packages"?te:ee).length>0&&c.jsx("ul",{children:(T.kind==="packages"?te:ee).map(z=>c.jsxs("li",{className:"pi-config-item",children:[c.jsxs("div",{className:"pi-resource-main",children:[c.jsx("code",{title:z,children:z}),T.kind==="packages"&&c.jsx("small",{children:i("已配置,但未发现安装目录","Configured, but installation directory was not found")}),T.kind!=="packages"&&yi(z)&&c.jsx("small",{className:"pi-config-warning",children:i("未加载:包来源请在“包与扩展”中添加。","Not loaded: add package sources under Packages & extensions.")})]}),c.jsxs("div",{className:"pi-resource-actions",children:[T.kind!=="packages"&&yi(z)&&c.jsx("button",{type:"button",disabled:k,onClick:()=>I(z),children:i("转到包","Go to packages")}),c.jsx("button",{type:"button",disabled:k,"aria-label":`${i("移除","Remove")} ${z}`,onClick:()=>{B(T.kind,"remove",z)},children:i("移除","Remove")})]})]},z))}),c.jsxs("form",{onSubmit:z=>{z.preventDefault(),Y&&!D&&B(T.kind,"add",Y)},children:[c.jsx("input",{"aria-label":`${i("添加","Add ")}${T.title}`,"aria-invalid":D||void 0,"aria-describedby":D?"pi-config-source-help":void 0,placeholder:T.placeholder,value:y[T.kind],onChange:z=>x(ne=>({...ne,[T.kind]:z.target.value}))}),c.jsx("button",{type:"submit",disabled:k||!Y||D,children:i("添加","Add")})]}),D&&c.jsxs("p",{id:"pi-config-source-help",className:"pi-config-hint",children:[i("这是包来源,请在「包」中添加。","This is a package source. Add it under Packages."),c.jsx("button",{type:"button",onClick:()=>I(Y),children:i("转到包","Go to packages")})]})]}),T.kind==="packages"&&c.jsxs("section",{className:"pi-settings-section","aria-label":i("手动配置扩展路径","Configure extension paths manually"),children:[c.jsx("h3",{children:i("扩展路径","Extension paths")}),p.global.extensions.length>0&&c.jsx("ul",{children:p.global.extensions.map(z=>c.jsxs("li",{className:"pi-config-item",children:[c.jsxs("div",{className:"pi-resource-main",children:[c.jsx("code",{title:z,children:z}),yi(z)&&c.jsx("small",{className:"pi-config-warning",children:i("未加载:包来源不能作为扩展路径,请在上方添加包。","Not loaded: package sources cannot be extension paths. Add the package above.")})]}),c.jsxs("div",{className:"pi-resource-actions",children:[yi(z)&&c.jsx("button",{type:"button",disabled:k,onClick:()=>I(z),children:i("填入包","Use as package")}),c.jsx("button",{type:"button",disabled:k,onClick:()=>{B("extensions","remove",z)},children:i("移除","Remove")})]})]},z))}),c.jsxs("form",{onSubmit:z=>{z.preventDefault(),W&&!O&&B("extensions","add",W)},children:[c.jsx("input",{"aria-label":i("添加扩展路径","Add extension path"),"aria-invalid":O||void 0,"aria-describedby":O?"pi-extension-source-help":void 0,placeholder:i("扩展文件或目录路径","Extension file or directory path"),value:y.extensions,onChange:z=>x(ne=>({...ne,extensions:z.target.value}))}),c.jsx("button",{type:"submit",disabled:k||!W||O,children:i("添加扩展","Add extension")})]}),O&&c.jsxs("p",{id:"pi-extension-source-help",className:"pi-config-hint",children:[i("这是包来源,请使用上方的“添加包”输入框。","This is a package source. Use the Add package field above."),c.jsx("button",{type:"button",onClick:()=>I(W),children:i("填入包","Use as package")})]})]})]}):R?c.jsx("p",{role:"status",children:i("正在读取设置…","Loading settings…")}):c.jsx("button",{className:"pi-settings-retry",type:"button",onClick:()=>{$()},children:i("重试读取设置","Retry loading settings")})]},T.kind)]})}const W1=location.hash.slice(1);W1&&(sessionStorage.setItem("pi-web-token",W1),history.replaceState(null,"",location.pathname));const Cr=W1||sessionStorage.getItem("pi-web-token");async function ut(e,r,i){const o=await fetch(e,{method:"POST",headers:{Authorization:`Bearer ${Cr}`,"Content-Type":"application/json"},body:JSON.stringify(r),signal:i}),s=await o.json();if(!o.ok)throw new Error(s.error||_(`请求失败:${o.status}`,`Request failed: ${o.status}`));return s}async function hn(e){const r=await fetch(e,{headers:{Authorization:`Bearer ${Cr}`}}),i=await r.json();if(!r.ok)throw new Error(i.error||_(`请求失败:${r.status}`,`Request failed: ${r.status}`));return i}function yS(){const e=kr(),[r,i]=E.useState(null),[o,s]=E.useState(null),[u,d]=E.useState(Cr?"connecting":"missing-token"),[f,p]=E.useState(""),[m,y]=E.useState([]),[x,v]=E.useState("loading"),[C,k]=E.useState([]),[P,R]=E.useState({items:[],activeId:null,sessions:[]}),[j,V]=E.useState(null);return E.useEffect(()=>{if(!Cr)return;const b=new AbortController;let $,B=!0;return(async()=>{var ee;for(;B;)try{d("connecting");const ie=await fetch("/api/events",{headers:{Authorization:`Bearer ${Cr}`},signal:b.signal});if(!ie.ok||!ie.body)throw new Error(ie.status===401?_("访问令牌无效,请在 Pi 中重新输入 /web。","Invalid access token. Run /web again in Pi."):_("连接 Pi 失败","Could not connect to Pi"));d("connected"),p("");const Y=ie.body.getReader(),D=new TextDecoder;let L="";for(;B;){const{done:Z,value:te}=await Y.read();if(Z)break;L+=D.decode(te,{stream:!0});let W=L.indexOf(`
92
+ `);for(;W!==-1;){const O=L.slice(0,W);if(L=L.slice(W+1),O){const I=JSON.parse(O);I.type==="snapshot"&&((ee=I.session)==null?void 0:ee.schemaVersion)===1&&(i(I.session),I.session.idle&&s(null)),I.type==="stream"&&s(I.message),I.type==="workspaces"&&R(I.value),I.type==="error"&&p(I.message)}W=L.indexOf(`
93
+ `)}}throw new Error(_("Pi 网页连接已关闭","The Pi web connection has closed"))}catch(ie){if(!B)return;d("disconnected"),v("loading"),p(ie instanceof Error?ie.message:_("连接 Pi 失败","Could not connect to Pi")),await new Promise(Y=>{$=setTimeout(Y,1500)})}})(),()=>{B=!1,b.abort(),$&&clearTimeout($)}},[]),E.useEffect(()=>{Cr||p(_("请在 Pi 终端输入 /web,打开显示的完整地址。","Enter /web in the Pi terminal and open the full address shown."))},[e]),E.useEffect(()=>{if(u!=="connected")return;let b=!0;return v("loading"),hn("/api/models").then($=>{b&&(y($),v("ready"))}).catch($=>{b&&(v("error"),p($ instanceof Error?$.message:_("无法获取模型列表","Could not load the model list")))}),hn("/api/commands").then($=>{b&&k($)}).catch(()=>{b&&k([])}),()=>{b=!1}},[u,r==null?void 0:r.sessionId]),E.useEffect(()=>{if(u!=="connected")return;let b=!0;return hn("/api/workspaces").then($=>{b&&R($)}).catch(()=>{}),hn("/api/directory/capability").then($=>{b&&V($.kind)}).catch(()=>{b&&V("browse")}),()=>{b=!1}},[u]),{session:r,streaming:o,connection:u,error:f,models:m,modelsStatus:x,commands:C,workspaces:P,directoryPickerKind:j,async pickDirectory(){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return(await ut("/api/directory/pick",{sessionId:r.sessionId})).path},async listDirectory(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return ut("/api/directory/list",{sessionId:r.sessionId,...b===void 0?{}:{path:b}},$)},async createDirectory(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return(await ut("/api/directory/create",{sessionId:r.sessionId,path:b,name:$})).path},clearError:()=>p(""),async upload(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));const B=`/api/attachment?sessionId=${encodeURIComponent(r.sessionId)}&name=${encodeURIComponent(b.name)}`,T=await fetch(B,{method:"POST",headers:{Authorization:`Bearer ${Cr}`,"Content-Type":b.type||"application/octet-stream"},body:b,signal:$}),ee=await T.json();if(T.status===404)throw new Error(_("当前 Pi 桥接服务仍是旧版。请在 Pi 中输入 /reload,再输入 /web 并打开新地址,然后重试上传。","The Pi bridge is outdated. Run /reload, then /web in Pi, open the new address, and retry the upload."));if(!T.ok)throw new Error(ee.error||_(`上传失败:${T.status}`,`Upload failed: ${T.status}`));return ee},async discardAttachment(b){!r||u!=="connected"||await ut("/api/attachment/remove",{sessionId:r.sessionId,id:b})},async send(b,$=[]){if(!(!r||u!=="connected")){p("");try{await ut("/api/message",{sessionId:r.sessionId,text:b,attachments:$})}catch(B){throw p(B instanceof Error?B.message:_("发送失败","Send failed")),B}}},async loadMessageImage(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));const B=`/api/image?sessionId=${encodeURIComponent(r.sessionId)}&messageId=${encodeURIComponent(b)}&index=${$}`,T=await fetch(B,{headers:{Authorization:`Bearer ${Cr}`}});if(!T.ok)throw new Error(_("图片读取失败","Could not load image"));return T.blob()},async stop(){if(!(!r||u!=="connected"))try{await ut("/api/abort",{sessionId:r.sessionId}),p("")}catch(b){throw p(b instanceof Error?b.message:_("停止失败","Could not stop")),b}},async compact(){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));try{await ut("/api/compact",{sessionId:r.sessionId}),p("")}catch(b){throw p(b instanceof Error?b.message:_("压缩失败","Compaction failed")),b}},async newSession(){if(!(!r||u!=="connected"))try{await ut("/api/new-session",{sessionId:r.sessionId})}catch(b){throw p(b instanceof Error?b.message:_("无法创建新会话","Could not create a new session")),b}},async addWorkspace(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/workspace/add",{sessionId:r.sessionId,path:b,create:$})},async selectWorkspace(b){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/workspace/select",{sessionId:r.sessionId,id:b})},async newSessionInWorkspace(b){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/workspace/new-session",{sessionId:r.sessionId,id:b})},async removeWorkspace(b){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/workspace/remove",{sessionId:r.sessionId,id:b})},async selectSession(b,$,B){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/session/select",{sessionId:r.sessionId,workspaceId:b,id:$,path:B??""})},async setModel(b,$){if(!(!r||u!=="connected"))try{await ut("/api/model",{sessionId:r.sessionId,provider:b,id:$}),p("")}catch(B){throw p(B instanceof Error?B.message:_("切换模型失败","Could not change model")),B}},async setThinkingLevel(b){if(!(!r||u!=="connected"))try{await ut("/api/thinking-level",{sessionId:r.sessionId,level:b}),p("")}catch($){throw p($ instanceof Error?$.message:_("切换推理强度失败","Could not change reasoning effort")),$}},async getConfig(){return hn("/api/config")},async getProviders(){return hn("/api/providers")},async getProviderModels(b){return hn(`/api/provider/models?providerId=${encodeURIComponent(b)}`)},async updateProviderModel(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/provider/models",{sessionId:r.sessionId,providerId:b,change:$});try{y(await hn("/api/models")),v("ready")}catch{p(_("模型已保存,但会话模型列表暂时无法刷新。","Model saved, but the conversation model list could not refresh."))}},async logoutProvider(b){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/provider/logout",{sessionId:r.sessionId,providerId:b});try{y(await hn("/api/models")),v("ready")}catch{p(_("认证已移除,但会话模型列表暂时无法刷新。","Credentials removed, but the conversation model list could not refresh."))}},async addCustomProvider(b){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/provider/custom",{sessionId:r.sessionId,provider:b})},async startProviderLogin(b,$,B){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return ut("/api/provider/login",{sessionId:r.sessionId,providerId:b,method:$,...B===void 0?{}:{initialSecret:B}})},async getProviderLogin(b){return hn(`/api/provider/login?id=${encodeURIComponent(b)}`)},async getActiveProviderLogin(){return(await hn("/api/provider/login/active")).active},async respondProviderLogin(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/provider/login/respond",{sessionId:r.sessionId,id:b,value:$})},async cancelProviderLogin(b){!r||u!=="connected"||await ut("/api/provider/login/cancel",{sessionId:r.sessionId,id:b})},async refreshModels(){y(await hn("/api/models")),v("ready")},async updateConfig(b,$,B,T){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return ut("/api/config",{sessionId:r.sessionId,kind:b,scope:$,action:B,value:T})}}}function vS(){kr();const e={"session.new.label":_("新会话","New session"),"session.new":_("新会话","New session"),"toggle.open":_("展开侧栏","Expand sidebar"),"toggle.collapse":_("收起侧栏","Collapse sidebar"),"panels.label":_("面板","Panels"),"brand.localBuild":"pi-webapp"},r=yS(),[i,o]=E.useState(!1),s=r.connection==="connected"&&r.session!==null&&r.modelsStatus==="ready"&&r.models.length===0;E.useEffect(()=>{s&&o(!0)},[s]);const u=E.useCallback(()=>{o(!1),requestAnimationFrame(()=>{var P;return(P=document.querySelector(".pi-settings-sidebar"))==null?void 0:P.focus()})},[]),[d,f]=E.useState(()=>({sidebar:280,viewportWidth:window.innerWidth,narrowExpanded:!1,rightbar:null,rightbarShown:!1,rightbarTrack:!1,rightbarFullscreen:!1,rightbarInstant:!1})),p=E.useMemo(()=>({setViewportWidth(P){f(R=>R.viewportWidth===P?R:{...R,viewportWidth:P,narrowExpanded:R.viewportWidth<1024!=P<1024?!1:R.narrowExpanded})},setSidebar(P){f(R=>({...R,sidebar:Math.min(420,Math.max(264,Math.round(P)))}))},setRightbar(P){}}),[]),m=()=>f(P=>P.viewportWidth<1024?{...P,narrowExpanded:!P.narrowExpanded}:{...P,sidebar:P.sidebar===0?280:0}),y=P=>P({layoutInfo:d}),x=P=>P({activePanelId:null}),v=P=>P([]),C=(P,R,j)=>P==="sidebar.brand.mark"?c.jsx(Jo,{size:24}):P==="sidebar.brand.name"?c.jsx("span",{children:"pi-webapp"}):P==="sidebar.settings"?c.jsx("div",{className:`pi-settings-trigger-row ${R.wide?"":"pi-settings-trigger-rail"}`,children:c.jsxs("button",{className:"pi-settings-sidebar","data-wide":R.wide,type:"button","aria-label":_("Pi 设置","Pi Settings"),"aria-haspopup":"dialog","aria-expanded":i,onClick:()=>o(!0),children:[R.wide?c.jsx(vd,{size:16}):c.jsx(x5,{size:18}),R.wide&&c.jsx("span",{children:_("Pi 设置","Pi Settings")})]})}):P==="sidebar.workspaces"?c.jsx(T_,{wide:R.wide,expandSidebar:R.expandSidebar,session:r.session,workspaces:r.workspaces,onAdd:r.addWorkspace,directoryPickerKind:r.directoryPickerKind,pickDirectory:r.pickDirectory,listDirectory:r.listDirectory,createDirectory:r.createDirectory,onRemove:r.removeWorkspace,onSelectSession:r.selectSession,onNewSession:r.newSessionInWorkspace}):(j==null?void 0:j.fallback)??null,k=(P,R)=>P==="sidebar"?c.jsx(a6,{collapsed:R.collapsed,width:R.width,startSession:()=>{r.newSession().catch(()=>{})},toggleSidebar:m,selectPanel:()=>{},usePanels:v,usePanelInfo:x,t:j=>e[j]??j,renderSlot:C}):P==="main"?c.jsx(Vw,{session:r.session,streaming:r.streaming,connection:r.connection,error:r.error,onSend:r.send,onLoadImage:r.loadMessageImage,onUpload:r.upload,onDiscardAttachment:r.discardAttachment,onStop:r.stop,onCompact:r.compact,onNewSession:r.newSession,commands:r.commands,models:r.models,modelsStatus:r.modelsStatus,onConfigureModels:()=>o(!0),onSetModel:r.setModel,onSetThinkingLevel:r.setThinkingLevel}):null;return c.jsxs(c.Fragment,{children:[c.jsx(a5,{useStore:y,usePanelInfo:x,actions:p,renderSlot:k,t:P=>e[P]??P}),i&&c.jsx(xS,{onBack:u,setupMode:s,getConfig:r.getConfig,updateConfig:r.updateConfig,getProviders:r.getProviders,getProviderModels:r.getProviderModels,updateProviderModel:r.updateProviderModel,logoutProvider:r.logoutProvider,addCustomProvider:r.addCustomProvider,startProviderLogin:r.startProviderLogin,getProviderLogin:r.getProviderLogin,getActiveProviderLogin:r.getActiveProviderLogin,respondProviderLogin:r.respondProviderLogin,cancelProviderLogin:r.cancelProviderLogin,refreshModels:r.refreshModels})]})}A_();Tg();const $3=document.getElementById("root");if(!$3)throw new Error("Missing #root");V4.createRoot($3).render(c.jsx(vS,{}));